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.

30 lines 1.35 kB
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project // // SPDX-License-Identifier: Apache-2.0 import { z } from 'zod'; import { ServerNetworkProfileSchema } from './server.network.profile.dto.js'; import { SetNetworkProfileSchema } from './set.network.profile.dto.js'; import { BaseSchema } from './types/base.dto.js'; export const ChargingStationNetworkProfileSchema = BaseSchema.extend({ id: z.number().int().optional(), ocppConnectionName: z.string(), configurationSlot: z.number().int(), setNetworkProfileId: z.number().int(), setNetworkProfile: SetNetworkProfileSchema, websocketServerConfigId: z.string().optional(), websocketServerConfig: ServerNetworkProfileSchema.optional(), }); export const ChargingStationNetworkProfileProps = ChargingStationNetworkProfileSchema.keyof().enum; export const ChargingStationNetworkProfileCreateSchema = ChargingStationNetworkProfileSchema.omit({ id: true, tenant: true, setNetworkProfile: true, websocketServerConfig: true, updatedAt: true, createdAt: true, }); export const chargingStationNetworkProfileSchemas = { ChargingStationNetworkProfile: ChargingStationNetworkProfileSchema, ChargingStationNetworkProfileCreate: ChargingStationNetworkProfileCreateSchema, }; //# sourceMappingURL=charging.station.network.profile.dto.js.map