@citrineos/configuration
Version:
The configuration module for OCPP v2.0.1. This module is not intended to be used directly, but rather as a dependency for other modules.
36 lines (35 loc) • 2.84 kB
TypeScript
import { FastifyInstance } from 'fastify';
import { ILogObj, Logger } from 'tslog';
import { IConfigurationModuleApi } from '../interface';
import { ConfigurationModule } from '../module';
import { AbstractModuleApi, CallAction, IMessageConfirmation, OCPP2_0_1 } from '@citrineos/base';
/**
* Server API for the Configuration component.
*/
export declare class ConfigurationOcpp201Api extends AbstractModuleApi<ConfigurationModule> implements IConfigurationModuleApi {
/**
* Constructor for the class.
*
* @param {ConfigurationModule} ConfigurationComponent - The Configuration component.
* @param {FastifyInstance} server - The server instance.
* @param {Logger<ILogObj>} [logger] - Optional logger instance.
*/
constructor(ConfigurationComponent: ConfigurationModule, server: FastifyInstance, logger?: Logger<ILogObj>);
setNetworkProfile(identifier: string[], tenantId: string, request: OCPP2_0_1.SetNetworkProfileRequest, callbackUrl?: string, extraQueries?: Record<string, any>): Promise<IMessageConfirmation[]>;
clearDisplayMessage(identifier: string[], tenantId: string, request: OCPP2_0_1.ClearDisplayMessageRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
getDisplayMessages(identifier: string[], tenantId: string, request: OCPP2_0_1.GetDisplayMessagesRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
publishFirmware(identifier: string[], tenantId: string, request: OCPP2_0_1.PublishFirmwareRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
setDisplayMessage(identifier: string[], tenantId: string, request: OCPP2_0_1.SetDisplayMessageRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
unpublishFirmware(identifier: string[], tenantId: string, request: OCPP2_0_1.UnpublishFirmwareRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
updateFirmware(identifier: string[], tenantId: string, request: OCPP2_0_1.UpdateFirmwareRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
reset(identifier: string[], tenantId: string, request: OCPP2_0_1.ResetRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
changeAvailability(identifier: string[], tenantId: string, request: OCPP2_0_1.ChangeAvailabilityRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
triggerMessage(identifier: string[], tenantId: string, request: OCPP2_0_1.TriggerMessageRequest, callbackUrl?: string): Promise<IMessageConfirmation[]>;
/**
* Overrides superclass method to generate the URL path based on the input {@link CallAction} and the module's endpoint prefix configuration.
*
* @param {CallAction} input - The input {@link CallAction}.
* @return {string} - The generated URL path.
*/
protected _toMessagePath(input: CallAction): string;
}