@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
34 lines (33 loc) • 1.07 kB
TypeScript
import type { ComponentDto, EventDataDto, VariableDto, TenantDto } from '@citrineos/base';
import { OCPP2_0_1 } from '@citrineos/base';
import { Model } from 'sequelize-typescript';
export declare class EventData extends Model implements OCPP2_0_1.EventDataType, EventDataDto {
static readonly MODEL_NAME: string;
/**
* Fields
*/
stationId: string;
eventId: number;
trigger: OCPP2_0_1.EventTriggerEnumType;
cause?: number | null;
timestamp: string;
actualValue: string;
techCode?: string | null;
techInfo?: string | null;
cleared?: boolean | null;
transactionId?: string | null;
variableMonitoringId?: number | null;
eventNotificationType: OCPP2_0_1.EventNotificationEnumType;
/**
* Relations
*/
variable: VariableDto;
variableId?: number;
component: ComponentDto;
componentId?: number;
customData?: OCPP2_0_1.CustomDataType | null;
tenantId: number;
tenant?: TenantDto;
static setDefaultTenant(instance: EventData): void;
constructor(...args: any[]);
}