import type { JsonObject, OCPPVersion } from '../../../../types/index.js'
+import type { OCPP20MessageFormatEnumType } from '../../../../types/index.js'
import {
OCPP16AuthorizationStatus,
/** Personal message for user display */
readonly personalMessage?: {
content: string
- format: 'ASCII' | 'HTML' | 'URI' | 'UTF8'
+ format: OCPP20MessageFormatEnumType
language?: string
}
type UnifiedIdentifier,
} from '../../../../../src/charging-station/ocpp/auth/types/AuthTypes.js'
import { AuthHelpers } from '../../../../../src/charging-station/ocpp/auth/utils/AuthHelpers.js'
+import { OCPP20MessageFormatEnumType } from '../../../../../src/types/index.js'
import { standardCleanup } from '../../../../helpers/TestLifecycleHelpers.js'
await describe('AuthHelpers', async () => {
method: AuthenticationMethod.LOCAL_LIST,
personalMessage: {
content: 'Welcome',
- format: 'ASCII',
+ format: OCPP20MessageFormatEnumType.ASCII,
},
status: AuthorizationStatus.ACCEPTED,
timestamp: new Date('2024-01-01T00:00:00Z'),