@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
11 lines (10 loc) • 1.15 kB
TypeScript
import type { CallAction, OCPPVersionType } from '../ocpp/rpc/message.js';
import type { IMessage } from '../interfaces/messages/Message.js';
import { OcppError } from '../ocpp/rpc/message.js';
import type { OcppRequest, OcppResponse } from '../ocpp/internal-types.js';
import { EventGroup, MessageOrigin } from '../interfaces/messages/internal-types.js';
export declare class RequestBuilder {
static buildCall(ocppConnectionName: string, correlationId: string, tenantId: number, action: CallAction, payload: OcppRequest, eventGroup: EventGroup, origin: MessageOrigin, protocol: OCPPVersionType, timestamp?: Date): IMessage<OcppRequest>;
static buildCallResult(ocppConnectionName: string, correlationId: string, tenantId: number, action: CallAction, payload: OcppResponse, eventGroup: EventGroup, origin: MessageOrigin, protocol: OCPPVersionType, timestamp?: Date): IMessage<OcppResponse>;
static buildCallError(ocppConnectionName: string, correlationId: string, tenantId: number, action: CallAction, payload: OcppError, eventGroup: EventGroup, origin: MessageOrigin, protocol: OCPPVersionType, timestamp?: Date): IMessage<OcppError>;
}