@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.
1,039 lines (1,038 loc) • 65 kB
TypeScript
import { z } from 'zod';
export declare const TransactionEventSchema: 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;
eventType: z.ZodEnum<{
Ended: "Ended";
Started: "Started";
Updated: "Updated";
}>;
meterValue: z.ZodOptional<z.ZodTuple<[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>;
transactionEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionDatabaseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
sampledValue: z.ZodTuple<[z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>], z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
timestamp: z.ZodISODateTime;
connectorId: z.ZodOptional<z.ZodNumber>;
tariffId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>], 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>;
transactionEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionDatabaseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
sampledValue: z.ZodTuple<[z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>], z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
timestamp: z.ZodISODateTime;
connectorId: z.ZodOptional<z.ZodNumber>;
tariffId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>>>;
timestamp: z.ZodISODateTime;
triggerReason: z.ZodEnum<{
Trigger: "Trigger";
EnergyLimitReached: "EnergyLimitReached";
TimeLimitReached: "TimeLimitReached";
Authorized: "Authorized";
CablePluggedIn: "CablePluggedIn";
ChargingRateChanged: "ChargingRateChanged";
ChargingStateChanged: "ChargingStateChanged";
Deauthorized: "Deauthorized";
EVCommunicationLost: "EVCommunicationLost";
EVConnectTimeout: "EVConnectTimeout";
MeterValueClock: "MeterValueClock";
MeterValuePeriodic: "MeterValuePeriodic";
UnlockCommand: "UnlockCommand";
StopAuthorized: "StopAuthorized";
EVDeparted: "EVDeparted";
EVDetected: "EVDetected";
RemoteStop: "RemoteStop";
RemoteStart: "RemoteStart";
AbnormalCondition: "AbnormalCondition";
SignedDataReceived: "SignedDataReceived";
ResetCommand: "ResetCommand";
}>;
seqNo: z.ZodNumber;
offline: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
numberOfPhasesUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
cableMaxCurrent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionDatabaseId: z.ZodOptional<z.ZodNumber>;
transactionInfo: z.ZodOptional<z.ZodObject<{
transactionId: z.ZodString;
chargingState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Charging: "Charging";
EVConnected: "EVConnected";
SuspendedEV: "SuspendedEV";
SuspendedEVSE: "SuspendedEVSE";
Idle: "Idle";
}>>>;
timeSpentCharging: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
stoppedReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Local: "Local";
Other: "Other";
DeAuthorized: "DeAuthorized";
EmergencyStop: "EmergencyStop";
EnergyLimitReached: "EnergyLimitReached";
EVDisconnected: "EVDisconnected";
GroundFault: "GroundFault";
ImmediateReset: "ImmediateReset";
LocalOutOfCredit: "LocalOutOfCredit";
MasterPass: "MasterPass";
OvercurrentFault: "OvercurrentFault";
PowerLoss: "PowerLoss";
PowerQuality: "PowerQuality";
Reboot: "Reboot";
Remote: "Remote";
SOCLimitReached: "SOCLimitReached";
StoppedByEV: "StoppedByEV";
TimeLimitReached: "TimeLimitReached";
Timeout: "Timeout";
}>>>;
remoteStartId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
tariffId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
transactionLimit: z.ZodNullable<z.ZodOptional<z.ZodObject<{
maxCost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxEnergy: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxSoC: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
evseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
evse: z.ZodOptional<z.ZodObject<{
id: 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>>;
connectorId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
updatedAt: z.ZodOptional<z.ZodDate>;
createdAt: z.ZodOptional<z.ZodDate>;
databaseId: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;
idTokenValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
idTokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
customData: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
}, z.core.$strip>;
export declare const TransactionEventProps: {
id: "id";
ocppConnectionName: "ocppConnectionName";
tenant: "tenant";
reservationId: "reservationId";
timestamp: "timestamp";
meterValue: "meterValue";
evseId: "evseId";
eventType: "eventType";
triggerReason: "triggerReason";
seqNo: "seqNo";
transactionInfo: "transactionInfo";
tenantId: "tenantId";
updatedAt: "updatedAt";
createdAt: "createdAt";
idTokenType: "idTokenType";
customData: "customData";
evse: "evse";
transactionDatabaseId: "transactionDatabaseId";
idTokenValue: "idTokenValue";
offline: "offline";
numberOfPhasesUsed: "numberOfPhasesUsed";
cableMaxCurrent: "cableMaxCurrent";
};
export type TransactionEventDto = z.infer<typeof TransactionEventSchema>;
export declare const TransactionEventCreateSchema: z.ZodObject<{
ocppConnectionName: z.ZodString;
reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
timestamp: z.ZodISODateTime;
evseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
eventType: z.ZodEnum<{
Ended: "Ended";
Started: "Started";
Updated: "Updated";
}>;
triggerReason: z.ZodEnum<{
Trigger: "Trigger";
EnergyLimitReached: "EnergyLimitReached";
TimeLimitReached: "TimeLimitReached";
Authorized: "Authorized";
CablePluggedIn: "CablePluggedIn";
ChargingRateChanged: "ChargingRateChanged";
ChargingStateChanged: "ChargingStateChanged";
Deauthorized: "Deauthorized";
EVCommunicationLost: "EVCommunicationLost";
EVConnectTimeout: "EVConnectTimeout";
MeterValueClock: "MeterValueClock";
MeterValuePeriodic: "MeterValuePeriodic";
UnlockCommand: "UnlockCommand";
StopAuthorized: "StopAuthorized";
EVDeparted: "EVDeparted";
EVDetected: "EVDetected";
RemoteStop: "RemoteStop";
RemoteStart: "RemoteStart";
AbnormalCondition: "AbnormalCondition";
SignedDataReceived: "SignedDataReceived";
ResetCommand: "ResetCommand";
}>;
seqNo: z.ZodNumber;
transactionInfo: z.ZodOptional<z.ZodObject<{
transactionId: z.ZodString;
chargingState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Charging: "Charging";
EVConnected: "EVConnected";
SuspendedEV: "SuspendedEV";
SuspendedEVSE: "SuspendedEVSE";
Idle: "Idle";
}>>>;
timeSpentCharging: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
stoppedReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Local: "Local";
Other: "Other";
DeAuthorized: "DeAuthorized";
EmergencyStop: "EmergencyStop";
EnergyLimitReached: "EnergyLimitReached";
EVDisconnected: "EVDisconnected";
GroundFault: "GroundFault";
ImmediateReset: "ImmediateReset";
LocalOutOfCredit: "LocalOutOfCredit";
MasterPass: "MasterPass";
OvercurrentFault: "OvercurrentFault";
PowerLoss: "PowerLoss";
PowerQuality: "PowerQuality";
Reboot: "Reboot";
Remote: "Remote";
SOCLimitReached: "SOCLimitReached";
StoppedByEV: "StoppedByEV";
TimeLimitReached: "TimeLimitReached";
Timeout: "Timeout";
}>>>;
remoteStartId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
tariffId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
transactionLimit: z.ZodNullable<z.ZodOptional<z.ZodObject<{
maxCost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxEnergy: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
maxSoC: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
tenantId: z.ZodOptional<z.ZodNumber>;
idTokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
customData: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
transactionDatabaseId: z.ZodOptional<z.ZodNumber>;
idTokenValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
offline: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
numberOfPhasesUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
cableMaxCurrent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>;
export type TransactionEventCreate = z.infer<typeof TransactionEventCreateSchema>;
export declare const transactionEventSchemas: {
TransactionEvent: 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;
eventType: z.ZodEnum<{
Ended: "Ended";
Started: "Started";
Updated: "Updated";
}>;
meterValue: z.ZodOptional<z.ZodTuple<[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>;
transactionEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionDatabaseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
sampledValue: z.ZodTuple<[z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>], z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";
"L3-L1": "L3-L1";
}>>>;
location: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Cable: "Cable";
Body: "Body";
EV: "EV";
Inlet: "Inlet";
Outlet: "Outlet";
}>>>;
signedMeterValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
signedMeterData: z.ZodString;
signingMethod: z.ZodString;
encodingMethod: z.ZodString;
publicKey: z.ZodString;
}, z.core.$strip>>>;
unitOfMeasure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
multiplier: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
timestamp: z.ZodISODateTime;
connectorId: z.ZodOptional<z.ZodNumber>;
tariffId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>], 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>;
transactionEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
transactionDatabaseId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
sampledValue: z.ZodTuple<[z.ZodObject<{
value: z.ZodNumber;
context: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
Other: "Other";
"Interruption.Begin": "Interruption.Begin";
"Interruption.End": "Interruption.End";
"Sample.Clock": "Sample.Clock";
"Sample.Periodic": "Sample.Periodic";
"Transaction.Begin": "Transaction.Begin";
"Transaction.End": "Transaction.End";
Trigger: "Trigger";
}>>>;
measurand: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
"Current.Export": "Current.Export";
"Current.Import": "Current.Import";
"Current.Offered": "Current.Offered";
"Energy.Active.Export.Register": "Energy.Active.Export.Register";
"Energy.Active.Import.Register": "Energy.Active.Import.Register";
"Energy.Reactive.Export.Register": "Energy.Reactive.Export.Register";
"Energy.Reactive.Import.Register": "Energy.Reactive.Import.Register";
"Energy.Active.Export.Interval": "Energy.Active.Export.Interval";
"Energy.Active.Import.Interval": "Energy.Active.Import.Interval";
"Energy.Active.Net": "Energy.Active.Net";
"Energy.Reactive.Export.Interval": "Energy.Reactive.Export.Interval";
"Energy.Reactive.Import.Interval": "Energy.Reactive.Import.Interval";
"Energy.Reactive.Net": "Energy.Reactive.Net";
"Energy.Apparent.Net": "Energy.Apparent.Net";
"Energy.Apparent.Import": "Energy.Apparent.Import";
"Energy.Apparent.Export": "Energy.Apparent.Export";
Frequency: "Frequency";
"Power.Active.Export": "Power.Active.Export";
"Power.Active.Import": "Power.Active.Import";
"Power.Factor": "Power.Factor";
"Power.Offered": "Power.Offered";
"Power.Reactive.Export": "Power.Reactive.Export";
"Power.Reactive.Import": "Power.Reactive.Import";
RPM: "RPM";
SoC: "SoC";
Temperature: "Temperature";
Voltage: "Voltage";
}>>>;
phase: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
L1: "L1";
L2: "L2";
L3: "L3";
N: "N";
"L1-N": "L1-N";
"L2-N": "L2-N";
"L3-N": "L3-N";
"L1-L2": "L1-L2";
"L2-L3": "L2-L3";