@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
19 lines • 697 B
JavaScript
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
//
// SPDX-License-Identifier: Apache-2.0
import { OCPP1_6 } from '@citrineos/base';
export class BootMapper {
static toRegistrationStatusEnumType(status) {
switch (status) {
case 'Accepted':
return OCPP1_6.BootNotificationResponseStatus.Accepted;
case 'Pending':
return OCPP1_6.BootNotificationResponseStatus.Pending;
case 'Rejected':
return OCPP1_6.BootNotificationResponseStatus.Rejected;
default:
throw new Error(`Invalid status: ${status}`);
}
}
}
//# sourceMappingURL=BootMapper.js.map