UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

21 lines (20 loc) 625 B
import { OCPP2_0_1 } from '@citrineos/base'; import { Model } from 'sequelize-typescript'; import { Variable } from './Variable'; export declare class Component extends Model implements OCPP2_0_1.ComponentType { static readonly MODEL_NAME: string; /** * Fields */ name: string; instance?: string | null; /** * Relations */ evse?: OCPP2_0_1.EVSEType; evseDatabaseId?: number | null; variables?: OCPP2_0_1.VariableType[]; customData?: OCPP2_0_1.CustomDataType | null; addVariable: (variable: Variable) => Promise<void>; getVariables: () => Promise<Variable[]>; }