| 1 | import type { JsonObject } from '../../JsonType'; |
| 2 | import type { GenericStatus } from '../Responses'; |
| 3 | |
| 4 | export enum DataEnumType { |
| 5 | // eslint-disable-next-line id-blacklist |
| 6 | string = 'string', |
| 7 | decimal = 'decimal', |
| 8 | integer = 'integer', |
| 9 | dateTime = 'dateTime', |
| 10 | // eslint-disable-next-line id-blacklist |
| 11 | boolean = 'boolean', |
| 12 | OptionList = 'OptionList', |
| 13 | SequenceList = 'SequenceList', |
| 14 | MemberList = 'MemberList', |
| 15 | } |
| 16 | |
| 17 | export enum BootReasonEnumType { |
| 18 | ApplicationReset = 'ApplicationReset', |
| 19 | FirmwareUpdate = 'FirmwareUpdate', |
| 20 | LocalReset = 'LocalReset', |
| 21 | PowerUp = 'PowerUp', |
| 22 | RemoteReset = 'RemoteReset', |
| 23 | ScheduledReset = 'ScheduledReset', |
| 24 | Triggered = 'Triggered', |
| 25 | Unknown = 'Unknown', |
| 26 | Watchdog = 'Watchdog', |
| 27 | } |
| 28 | |
| 29 | export enum OperationalStatusEnumType { |
| 30 | Operative = 'Operative', |
| 31 | Inoperative = 'Inoperative', |
| 32 | } |
| 33 | |
| 34 | export enum OCPP20ConnectorStatusEnumType { |
| 35 | Available = 'Available', |
| 36 | Occupied = 'Occupied', |
| 37 | Reserved = 'Reserved', |
| 38 | Unavailable = 'Unavailable', |
| 39 | Faulted = 'Faulted', |
| 40 | } |
| 41 | |
| 42 | export type GenericStatusEnumType = GenericStatus; |
| 43 | |
| 44 | export enum HashAlgorithmEnumType { |
| 45 | SHA256 = 'SHA256', |
| 46 | SHA384 = 'SHA384', |
| 47 | SHA512 = 'SHA512', |
| 48 | } |
| 49 | |
| 50 | export enum GetCertificateIdUseEnumType { |
| 51 | V2GRootCertificate = 'V2GRootCertificate', |
| 52 | MORootCertificate = 'MORootCertificate', |
| 53 | CSMSRootCertificate = 'CSMSRootCertificate', |
| 54 | V2GCertificateChain = 'V2GCertificateChain', |
| 55 | ManufacturerRootCertificate = 'ManufacturerRootCertificate', |
| 56 | } |
| 57 | |
| 58 | export enum GetCertificateStatusEnumType { |
| 59 | Accepted = 'Accepted', |
| 60 | Failed = 'Failed', |
| 61 | } |
| 62 | |
| 63 | export enum GetInstalledCertificateStatusEnumType { |
| 64 | Accepted = 'Accepted', |
| 65 | NotFound = 'NotFound', |
| 66 | } |
| 67 | |
| 68 | export enum InstallCertificateStatusEnumType { |
| 69 | Accepted = 'Accepted', |
| 70 | Rejected = 'Rejected', |
| 71 | Failed = 'Failed', |
| 72 | } |
| 73 | |
| 74 | export enum InstallCertificateUseEnumType { |
| 75 | V2GRootCertificate = 'V2GRootCertificate', |
| 76 | MORootCertificate = 'MORootCertificate', |
| 77 | CSMSRootCertificate = 'CSMSRootCertificate', |
| 78 | ManufacturerRootCertificate = 'ManufacturerRootCertificate', |
| 79 | } |
| 80 | |
| 81 | export enum DeleteCertificateStatusEnumType { |
| 82 | Accepted = 'Accepted', |
| 83 | Failed = 'Failed', |
| 84 | NotFound = 'NotFound', |
| 85 | } |
| 86 | |
| 87 | export enum CertificateActionEnumType { |
| 88 | Install = 'Install', |
| 89 | Update = 'Update', |
| 90 | } |
| 91 | |
| 92 | export enum CertificateSigningUseEnumType { |
| 93 | ChargingStationCertificate = 'ChargingStationCertificate', |
| 94 | V2GCertificate = 'V2GCertificate', |
| 95 | } |
| 96 | |
| 97 | export type CertificateSignedStatusEnumType = GenericStatusEnumType; |
| 98 | |
| 99 | export type CertificateHashDataType = { |
| 100 | hashAlgorithm: HashAlgorithmEnumType; |
| 101 | issuerNameHash: string; |
| 102 | issuerKeyHash: string; |
| 103 | serialNumber: string; |
| 104 | } & JsonObject; |
| 105 | |
| 106 | export type CertificateHashDataChainType = { |
| 107 | certificateType: GetCertificateIdUseEnumType; |
| 108 | certificateHashData: CertificateHashDataType; |
| 109 | childCertificateHashData?: CertificateHashDataType; |
| 110 | } & JsonObject; |
| 111 | |
| 112 | export type OCSPRequestDataType = { |
| 113 | hashAlgorithm: HashAlgorithmEnumType; |
| 114 | issuerNameHash: string; |
| 115 | issuerKeyHash: string; |
| 116 | serialNumber: string; |
| 117 | responderURL: string; |
| 118 | } & JsonObject; |
| 119 | |
| 120 | export type StatusInfoType = { |
| 121 | reasonCode: string; |
| 122 | additionalInfo?: string; |
| 123 | } & JsonObject; |
| 124 | |
| 125 | export type EVSEType = { |
| 126 | id: number; |
| 127 | connectorId?: string; |
| 128 | } & JsonObject; |