UNPKG

ocpp-messages

Version:

TypeScript definitions for Open Charge Point Protocol (OCPP)

84 lines (81 loc) 3.14 kB
/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Charging_ Profile. Charging_ Profile_ Purpose. Charging_ Profile_ Purpose_ Code * urn:x-oca:ocpp:uid:1:569231 * Defines the purpose of the schedule transferred by this profile * */ export type ChargingProfilePurposeEnumType = | "ChargingStationExternalConstraints" | "ChargingStationMaxProfile" | "TxDefaultProfile" | "TxProfile"; export type ChargingLimitSourceEnumType = "EMS" | "Other" | "SO" | "CSO"; export interface UrnOCPPCp220203GetChargingProfilesRequest { customData?: CustomDataType; /** * Reference identification that is to be used by the Charging Station in the <<reportchargingprofilesrequest, ReportChargingProfilesRequest>> when provided. * */ requestId: number; /** * For which EVSE installed charging profiles SHALL be reported. If 0, only charging profiles installed on the Charging Station itself (the grid connection) SHALL be reported. If omitted, all installed charging profiles SHALL be reported. * */ evseId?: number; chargingProfile: ChargingProfileCriterionType; } /** * This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data. */ export interface CustomDataType { vendorId: string; [k: string]: unknown; } /** * Charging_ Profile * urn:x-oca:ocpp:uid:2:233255 * A ChargingProfile consists of ChargingSchedule, describing the amount of power or current that can be delivered per time interval. * */ export interface ChargingProfileCriterionType { customData?: CustomDataType; chargingProfilePurpose?: ChargingProfilePurposeEnumType; /** * Charging_ Profile. Stack_ Level. Counter * urn:x-oca:ocpp:uid:1:569230 * Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0. * */ stackLevel?: number; /** * List of all the chargingProfileIds requested. Any ChargingProfile that matches one of these profiles will be reported. If omitted, the Charging Station SHALL not filter on chargingProfileId. This field SHALL NOT contain more ids than set in <<configkey-charging-profile-entries,ChargingProfileEntries.maxLimit>> * * * * @minItems 1 */ chargingProfileId?: [number, ...number[]]; /** * For which charging limit sources, charging profiles SHALL be reported. If omitted, the Charging Station SHALL not filter on chargingLimitSource. * * * @minItems 1 * @maxItems 4 */ chargingLimitSource?: | [ChargingLimitSourceEnumType] | [ChargingLimitSourceEnumType, ChargingLimitSourceEnumType] | [ChargingLimitSourceEnumType, ChargingLimitSourceEnumType, ChargingLimitSourceEnumType] | [ ChargingLimitSourceEnumType, ChargingLimitSourceEnumType, ChargingLimitSourceEnumType, ChargingLimitSourceEnumType ]; }