UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

22 lines (21 loc) 766 B
import { OCPP2_0_1 } from '@citrineos/base'; import { Component } from './Component'; import { VariableAttribute } from './VariableAttribute'; import { BaseModelWithTenant } from '../BaseModelWithTenant'; export declare class Variable extends BaseModelWithTenant implements OCPP2_0_1.VariableType { static readonly MODEL_NAME: string; /** * Fields */ name: string; instance?: string | null; /** * Relations */ components?: OCPP2_0_1.ComponentType[]; variableAttributes?: VariableAttribute[]; variableCharacteristics?: OCPP2_0_1.VariableCharacteristicsType; customData?: OCPP2_0_1.CustomDataType | null; addComponent: (variable: Component) => Promise<void>; getComponents: () => Promise<Component[]>; }