@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
21 lines (20 loc) • 655 B
TypeScript
import { OCPP2_0_1 } from '@citrineos/base';
import { Variable } from './Variable';
import { BaseModelWithTenant } from '../BaseModelWithTenant';
export declare class Component extends BaseModelWithTenant 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[]>;
}