@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.
16 lines (15 loc) • 626 B
TypeScript
export interface QuerySchemaProperties {
key: string;
type: string;
defaultValue?: string;
required?: boolean;
pattern?: string;
}
/**
* Utility function for creating querystring schemas for fastify route definitions
* @param name - The name of the schema
* @param {QuerySchemaProperties} properties An array of objects each representing a unique property. Properties with types ending in '[]' will be treated as arrays of that type.
* @returns
*/
export declare const QuerySchema: (name: string, properties: QuerySchemaProperties[]) => object;
export declare const MessageConfirmationSchema: object;