UNPKG

@citrineos/base

Version:

The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.

26 lines 951 B
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project // // SPDX-License-Identifier: Apache-2.0 import { z } from 'zod'; import { BaseSchema } from './types/base.dto.js'; export const CompositeScheduleSchema = BaseSchema.extend({ id: z.number().int().optional(), ocppConnectionName: z.string(), evseId: z.number().int(), duration: z.number().int(), scheduleStart: z.iso.datetime(), chargingRateUnit: z.string(), chargingSchedulePeriod: z.tuple([z.any()]).rest(z.any()), }); export const CompositeScheduleProps = CompositeScheduleSchema.keyof().enum; export const CompositeScheduleCreateSchema = CompositeScheduleSchema.omit({ id: true, tenant: true, updatedAt: true, createdAt: true, }); export const compositeScheduleSchemas = { CompositeSchedule: CompositeScheduleSchema, CompositeScheduleCreate: CompositeScheduleCreateSchema, }; //# sourceMappingURL=composite.schedule.dto.js.map