X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FTransaction.ts;h=2a8a0ad46648978d3fe8b0fbab43f3cf008b812d;hb=69074173770c04bc5e5aa744b655edf9491daa46;hp=83764a21f73e9eb4b8187ccc9fd46eaf50f3e4b1;hpb=7e3926cc4cda3fa4db175501b239cb3d8c575d4f;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Transaction.ts b/src/types/ocpp/Transaction.ts index 83764a21..2a8a0ad4 100644 --- a/src/types/ocpp/Transaction.ts +++ b/src/types/ocpp/Transaction.ts @@ -1,19 +1,32 @@ -import { OCPP16AuthorizationStatus, OCPP16AuthorizeResponse, OCPP16StartTransactionResponse, OCPP16StopTransactionReason, OCPP16StopTransactionResponse } from './1.6/Transaction'; - -export type AuthorizationStatus = OCPP16AuthorizationStatus; +import { + OCPP16AuthorizationStatus, + type OCPP16AuthorizeRequest, + type OCPP16AuthorizeResponse, + type OCPP16StartTransactionRequest, + type OCPP16StartTransactionResponse, + OCPP16StopTransactionReason, + type OCPP16StopTransactionRequest, + type OCPP16StopTransactionResponse, +} from './1.6/Transaction'; export const AuthorizationStatus = { ...OCPP16AuthorizationStatus, -}; +} as const; +export type AuthorizationStatus = OCPP16AuthorizationStatus; -export type AuthorizeResponse = OCPP16AuthorizeResponse; +export type AuthorizeRequest = OCPP16AuthorizeRequest; -export type StopTransactionReason = OCPP16StopTransactionReason; +export type AuthorizeResponse = OCPP16AuthorizeResponse; export const StopTransactionReason = { ...OCPP16StopTransactionReason, -}; +} as const; +export type StopTransactionReason = OCPP16StopTransactionReason; + +export type StartTransactionRequest = OCPP16StartTransactionRequest; export type StartTransactionResponse = OCPP16StartTransactionResponse; +export type StopTransactionRequest = OCPP16StopTransactionRequest; + export type StopTransactionResponse = OCPP16StopTransactionResponse;