X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FTransaction.ts;h=75034efc92a6550afedc481b0ef3901116134b6c;hb=66a7748ddeda8c94d7562a1ce58d440319654a4c;hp=83764a21f73e9eb4b8187ccc9fd46eaf50f3e4b1;hpb=1af50fac1ab71fed19f11864d1644261046698a3;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Transaction.ts b/src/types/ocpp/Transaction.ts index 83764a21..75034efc 100644 --- a/src/types/ocpp/Transaction.ts +++ b/src/types/ocpp/Transaction.ts @@ -1,19 +1,34 @@ -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.js' export const AuthorizationStatus = { - ...OCPP16AuthorizationStatus, -}; + ...OCPP16AuthorizationStatus +} as const +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type AuthorizationStatus = OCPP16AuthorizationStatus -export type AuthorizeResponse = OCPP16AuthorizeResponse; +export type AuthorizeRequest = OCPP16AuthorizeRequest -export type StopTransactionReason = OCPP16StopTransactionReason; +export type AuthorizeResponse = OCPP16AuthorizeResponse export const StopTransactionReason = { - ...OCPP16StopTransactionReason, -}; + ...OCPP16StopTransactionReason +} as const +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type StopTransactionReason = OCPP16StopTransactionReason + +export type StartTransactionRequest = OCPP16StartTransactionRequest + +export type StartTransactionResponse = OCPP16StartTransactionResponse -export type StartTransactionResponse = OCPP16StartTransactionResponse; +export type StopTransactionRequest = OCPP16StopTransactionRequest -export type StopTransactionResponse = OCPP16StopTransactionResponse; +export type StopTransactionResponse = OCPP16StopTransactionResponse