@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
75 lines • 1.75 kB
JavaScript
;
// Copyright (c) 2023 S44, LLC
// Copyright Contributors to the CitrineOS Project
//
// SPDX-License-Identifier: Apache 2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateOrUpdateVariableAttributeQuerySchema = exports.VariableAttributeQuerySchema = void 0;
const base_1 = require("@citrineos/base");
exports.VariableAttributeQuerySchema = (0, base_1.QuerySchema)('VariableAttributeQuerySchema', [
{
key: 'stationId',
type: 'string',
required: true,
},
{
key: 'tenantId',
type: 'number',
required: true,
defaultValue: String(base_1.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',
},
]);
exports.CreateOrUpdateVariableAttributeQuerySchema = (0, base_1.QuerySchema)('CreateOrUpdateVariableAttributeQuerySchema', [
{
key: 'tenantId',
type: 'number',
required: true,
defaultValue: String(base_1.DEFAULT_TENANT_ID),
},
{
key: 'stationId',
type: 'string',
required: true,
},
{
key: 'setOnCharger',
type: 'boolean',
},
]);
//# sourceMappingURL=VariableAttribute.js.map