UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

15 lines (14 loc) 1.05 kB
import type { AuthorizationStatusEnumType, IdTokenEnumType } from '@citrineos/base'; import { OCPP2_0_1 } from '@citrineos/base'; import { Authorization } from '../../model/index.js'; export declare class AuthorizationMapper { static toAuthorizationData(authorization: Authorization): OCPP2_0_1.AuthorizationData; static toIdToken(authorization: Authorization): OCPP2_0_1.IdTokenType; static toIdTokenInfo(authorization: Authorization): OCPP2_0_1.IdTokenInfoType; static toMessageContentType(messageContent: any): OCPP2_0_1.MessageContentType; static toMessageFormatEnum(messageFormat: string): OCPP2_0_1.MessageFormatEnumType; static fromAuthorizationStatusEnumType(status: AuthorizationStatusEnumType): OCPP2_0_1.AuthorizationStatusEnumType; static toAuthorizationStatusEnumType(status: OCPP2_0_1.AuthorizationStatusEnumType): AuthorizationStatusEnumType; static toIdTokenEnumType(type: IdTokenEnumType): OCPP2_0_1.IdTokenEnumType; static fromIdTokenEnumType(type: OCPP2_0_1.IdTokenEnumType): IdTokenEnumType; }