@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) • 597 B
TypeScript
import { CallAction } from '../../ocpp/rpc/message';
/**
* Decorator for use in module API class to expose methods as REST OCPP message endpoints.
*
* @param {CallAction} action - The call action.
* @param {object} bodySchema - The body schema.
* @param {Record<string, any>} optionalQuerystrings - The optional querystrings.
* @return {void} This function does not return anything.
*/
export declare const AsMessageEndpoint: (action: CallAction, bodySchema: object, optionalQuerystrings?: Record<string, any>) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;