UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

71 lines 1.57 kB
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project // // SPDX-License-Identifier: Apache-2.0 import { DEFAULT_TENANT_ID, OCPP2_0_1, QuerySchema } from '@citrineos/base'; export const VariableAttributeQuerySchema = QuerySchema('VariableAttributeQuerySchema', [ { key: 'stationId', type: 'string', required: true, }, { key: 'tenantId', type: 'number', required: true, defaultValue: String(DEFAULT_TENANT_ID), }, { key: 'type', type: 'string', }, { key: 'value', type: 'string', }, { key: 'status', type: 'string', }, { key: 'component_evse_id', type: 'number', }, { key: 'component_evse_connectorId', type: 'number', }, { key: 'component_name', type: 'string', }, { key: 'component_instance', type: 'string', }, { key: 'variable_name', type: 'string', }, { key: 'variable_instance', type: 'string', }, ]); export const CreateOrUpdateVariableAttributeQuerySchema = QuerySchema('CreateOrUpdateVariableAttributeQuerySchema', [ { key: 'tenantId', type: 'number', required: true, defaultValue: String(DEFAULT_TENANT_ID), }, { key: 'stationId', type: 'string', required: true, }, { key: 'setOnCharger', type: 'boolean', }, ]); //# sourceMappingURL=VariableAttribute.js.map