ocpp-standard-schema
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

OCPP Schemas for 1.5, 1.6 and 2.0

This package contains JSON schemas and typescript interfaces for said OCPP protocols

Install

npm install --save ocpp-standard-schema

Example

import {Ocpp15Schemas, Ocpp15Types ,Ocpp16Schemas, Ocpp16Types, Ocpp20Schemas, Ocpp20Types} from 'ocpp-standard-schema';


// Interfaces can beused as follows
const AuthorizeRequest: Ocpp16Types.AuthorizeRequest = {
  idTag: 'testTag',
};

// Schemas can be used as follows
const AuthorizeRequestSchema = Ocpp16Schemas.AuthorizeRequest;

OCPP 2.0 contain type information for the underlying data types also. They are not exposed through the normal module structure but you can still find them

import {CustomDataType} from 'ocpp-standard-schema/build/src/ocpp-20-types/AuthorizeRequest'

Readme

Keywords

none

Package Sidebar

Install

npm i ocpp-standard-schema

Weekly Downloads

161

Version

2.2.0

License

ISC

Unpacked Size

1.21 MB

Total Files

1040

Last publish

Collaborators

  • tiiasalo
  • tommi_hagelberg
  • juuso_ahtiainen
  • teemu_arponen
  • waltu