@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
193 lines (192 loc) • 8.29 kB
TypeScript
import { z } from 'zod';
export declare const InstalledCertificateSchema: z.ZodObject<{
tenantId: z.ZodOptional<z.ZodNumber>;
tenant: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodNumber>;
name: z.ZodString;
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
partyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serverProfileOCPI: z.ZodOptional<z.ZodNullable<z.ZodObject<{
credentialsRole: z.ZodObject<{
role: z.ZodEnum<{
CPO: "CPO";
EMSP: "EMSP";
HUB: "HUB";
NAP: "NAP";
NSP: "NSP";
SCSP: "SCSP";
}>;
businessDetails: z.ZodObject<{
name: z.ZodString;
website: z.ZodOptional<z.ZodString>;
logo: z.ZodOptional<z.ZodObject<{
url: z.ZodString;
type: z.ZodString;
category: z.ZodString;
width: z.ZodOptional<z.ZodNumber>;
height: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
versionDetails: z.ZodArray<z.ZodObject<{
version: z.ZodEnum<{
"2.2.1": "2.2.1";
}>;
versionDetailsUrl: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
versionEndpoints: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
identifier: z.ZodString;
url: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>>>;
isUserTenant: z.ZodDefault<z.ZodBoolean>;
maxChargingStations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
updatedAt: z.ZodOptional<z.ZodDate>;
createdAt: z.ZodOptional<z.ZodDate>;
}, z.core.$strip>>;
updatedAt: z.ZodOptional<z.ZodDate>;
createdAt: z.ZodOptional<z.ZodDate>;
id: z.ZodOptional<z.ZodNumber>;
ocppConnectionName: z.ZodString;
hashAlgorithm: z.ZodEnum<{
SHA256: "SHA256";
SHA384: "SHA384";
SHA512: "SHA512";
}>;
issuerNameHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
issuerKeyHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
certificateType: z.ZodEnum<{
V2GRootCertificate: "V2GRootCertificate";
MORootCertificate: "MORootCertificate";
CSMSRootCertificate: "CSMSRootCertificate";
V2GCertificateChain: "V2GCertificateChain";
ManufacturerRootCertificate: "ManufacturerRootCertificate";
OEMRootCertificate: "OEMRootCertificate";
}>;
}, z.core.$strip>;
export declare const InstalledCertificateProps: {
id: "id";
ocppConnectionName: "ocppConnectionName";
tenant: "tenant";
hashAlgorithm: "hashAlgorithm";
issuerNameHash: "issuerNameHash";
issuerKeyHash: "issuerKeyHash";
serialNumber: "serialNumber";
certificateType: "certificateType";
tenantId: "tenantId";
updatedAt: "updatedAt";
createdAt: "createdAt";
};
export type InstalledCertificateDto = z.infer<typeof InstalledCertificateSchema>;
export declare const InstalledCertificateCreateSchema: z.ZodObject<{
ocppConnectionName: z.ZodString;
hashAlgorithm: z.ZodEnum<{
SHA256: "SHA256";
SHA384: "SHA384";
SHA512: "SHA512";
}>;
issuerNameHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
issuerKeyHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
certificateType: z.ZodEnum<{
V2GRootCertificate: "V2GRootCertificate";
MORootCertificate: "MORootCertificate";
CSMSRootCertificate: "CSMSRootCertificate";
V2GCertificateChain: "V2GCertificateChain";
ManufacturerRootCertificate: "ManufacturerRootCertificate";
OEMRootCertificate: "OEMRootCertificate";
}>;
tenantId: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type InstalledCertificateCreate = z.infer<typeof InstalledCertificateCreateSchema>;
export declare const installedCertificateSchemas: {
InstalledCertificate: z.ZodObject<{
tenantId: z.ZodOptional<z.ZodNumber>;
tenant: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodNumber>;
name: z.ZodString;
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
partyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serverProfileOCPI: z.ZodOptional<z.ZodNullable<z.ZodObject<{
credentialsRole: z.ZodObject<{
role: z.ZodEnum<{
CPO: "CPO";
EMSP: "EMSP";
HUB: "HUB";
NAP: "NAP";
NSP: "NSP";
SCSP: "SCSP";
}>;
businessDetails: z.ZodObject<{
name: z.ZodString;
website: z.ZodOptional<z.ZodString>;
logo: z.ZodOptional<z.ZodObject<{
url: z.ZodString;
type: z.ZodString;
category: z.ZodString;
width: z.ZodOptional<z.ZodNumber>;
height: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
versionDetails: z.ZodArray<z.ZodObject<{
version: z.ZodEnum<{
"2.2.1": "2.2.1";
}>;
versionDetailsUrl: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
versionEndpoints: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
identifier: z.ZodString;
url: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>>>;
isUserTenant: z.ZodDefault<z.ZodBoolean>;
maxChargingStations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
updatedAt: z.ZodOptional<z.ZodDate>;
createdAt: z.ZodOptional<z.ZodDate>;
}, z.core.$strip>>;
updatedAt: z.ZodOptional<z.ZodDate>;
createdAt: z.ZodOptional<z.ZodDate>;
id: z.ZodOptional<z.ZodNumber>;
ocppConnectionName: z.ZodString;
hashAlgorithm: z.ZodEnum<{
SHA256: "SHA256";
SHA384: "SHA384";
SHA512: "SHA512";
}>;
issuerNameHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
issuerKeyHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
certificateType: z.ZodEnum<{
V2GRootCertificate: "V2GRootCertificate";
MORootCertificate: "MORootCertificate";
CSMSRootCertificate: "CSMSRootCertificate";
V2GCertificateChain: "V2GCertificateChain";
ManufacturerRootCertificate: "ManufacturerRootCertificate";
OEMRootCertificate: "OEMRootCertificate";
}>;
}, z.core.$strip>;
InstalledCertificateCreate: z.ZodObject<{
ocppConnectionName: z.ZodString;
hashAlgorithm: z.ZodEnum<{
SHA256: "SHA256";
SHA384: "SHA384";
SHA512: "SHA512";
}>;
issuerNameHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
issuerKeyHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
certificateType: z.ZodEnum<{
V2GRootCertificate: "V2GRootCertificate";
MORootCertificate: "MORootCertificate";
CSMSRootCertificate: "CSMSRootCertificate";
V2GCertificateChain: "V2GCertificateChain";
ManufacturerRootCertificate: "ManufacturerRootCertificate";
OEMRootCertificate: "OEMRootCertificate";
}>;
tenantId: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
};