ocpp-messages 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/compile.js +41 -0
  2. package/package.json +5 -3
  3. package/schema/v2.0/AuthorizeRequest.json +171 -0
  4. package/schema/v2.0/AuthorizeResponse.json +233 -0
  5. package/schema/v2.0/BootNotificationRequest.json +114 -0
  6. package/schema/v2.0/BootNotificationResponse.json +83 -0
  7. package/schema/v2.0/CancelReservationRequest.json +35 -0
  8. package/schema/v2.0/CancelReservationResponse.json +71 -0
  9. package/schema/v2.0/CertificateSignedRequest.json +49 -0
  10. package/schema/v2.0/CertificateSignedResponse.json +71 -0
  11. package/schema/v2.0/ChangeAvailabilityRequest.json +69 -0
  12. package/schema/v2.0/ChangeAvailabilityResponse.json +72 -0
  13. package/schema/v2.0/ClearCacheRequest.json +28 -0
  14. package/schema/v2.0/ClearCacheResponse.json +71 -0
  15. package/schema/v2.0/ClearChargingProfileRequest.json +69 -0
  16. package/schema/v2.0/ClearChargingProfileResponse.json +71 -0
  17. package/schema/v2.0/ClearDisplayMessageRequest.json +35 -0
  18. package/schema/v2.0/ClearDisplayMessageResponse.json +71 -0
  19. package/schema/v2.0/ClearVariableMonitoringRequest.json +40 -0
  20. package/schema/v2.0/ClearVariableMonitoringResponse.json +98 -0
  21. package/schema/v2.0/ClearedChargingLimitRequest.json +50 -0
  22. package/schema/v2.0/ClearedChargingLimitResponse.json +28 -0
  23. package/schema/v2.0/CostUpdatedRequest.json +41 -0
  24. package/schema/v2.0/CostUpdatedResponse.json +28 -0
  25. package/schema/v2.0/CustomerInformationRequest.json +173 -0
  26. package/schema/v2.0/CustomerInformationResponse.json +72 -0
  27. package/schema/v2.0/DataTransferRequest.json +44 -0
  28. package/schema/v2.0/DataTransferResponse.json +76 -0
  29. package/schema/v2.0/DeleteCertificateRequest.json +79 -0
  30. package/schema/v2.0/DeleteCertificateResponse.json +72 -0
  31. package/schema/v2.0/FirmwareStatusNotificationRequest.json +60 -0
  32. package/schema/v2.0/FirmwareStatusNotificationResponse.json +28 -0
  33. package/schema/v2.0/Get15118EVCertificateRequest.json +56 -0
  34. package/schema/v2.0/Get15118EVCertificateResponse.json +77 -0
  35. package/schema/v2.0/GetBaseReportRequest.json +50 -0
  36. package/schema/v2.0/GetBaseReportResponse.json +73 -0
  37. package/schema/v2.0/GetCertificateStatusRequest.json +85 -0
  38. package/schema/v2.0/GetCertificateStatusResponse.json +76 -0
  39. package/schema/v2.0/GetChargingProfilesRequest.json +103 -0
  40. package/schema/v2.0/GetChargingProfilesResponse.json +71 -0
  41. package/schema/v2.0/GetCompositeScheduleRequest.json +53 -0
  42. package/schema/v2.0/GetCompositeScheduleResponse.json +157 -0
  43. package/schema/v2.0/GetDisplayMessagesRequest.json +73 -0
  44. package/schema/v2.0/GetDisplayMessagesResponse.json +71 -0
  45. package/schema/v2.0/GetInstalledCertificateIdsRequest.json +49 -0
  46. package/schema/v2.0/GetInstalledCertificateIdsResponse.json +166 -0
  47. package/schema/v2.0/GetLocalListVersionRequest.json +28 -0
  48. package/schema/v2.0/GetLocalListVersionResponse.json +35 -0
  49. package/schema/v2.0/GetLogRequest.json +90 -0
  50. package/schema/v2.0/GetLogResponse.json +77 -0
  51. package/schema/v2.0/GetMonitoringReportRequest.json +156 -0
  52. package/schema/v2.0/GetMonitoringReportResponse.json +73 -0
  53. package/schema/v2.0/GetReportRequest.json +157 -0
  54. package/schema/v2.0/GetReportResponse.json +73 -0
  55. package/schema/v2.0/GetTransactionStatusRequest.json +33 -0
  56. package/schema/v2.0/GetTransactionStatusResponse.json +39 -0
  57. package/schema/v2.0/GetVariablesRequest.json +149 -0
  58. package/schema/v2.0/GetVariablesResponse.json +198 -0
  59. package/schema/v2.0/HeartbeatRequest.json +28 -0
  60. package/schema/v2.0/HeartbeatResponse.json +36 -0
  61. package/schema/v2.0/InstallCertificateRequest.json +52 -0
  62. package/schema/v2.0/InstallCertificateResponse.json +72 -0
  63. package/schema/v2.0/LogStatusNotificationRequest.json +54 -0
  64. package/schema/v2.0/LogStatusNotificationResponse.json +28 -0
  65. package/schema/v2.0/MeterValuesRequest.json +251 -0
  66. package/schema/v2.0/MeterValuesResponse.json +28 -0
  67. package/schema/v2.0/NotifyChargingLimitRequest.json +323 -0
  68. package/schema/v2.0/NotifyChargingLimitResponse.json +28 -0
  69. package/schema/v2.0/NotifyCustomerInformationRequest.json +57 -0
  70. package/schema/v2.0/NotifyCustomerInformationResponse.json +28 -0
  71. package/schema/v2.0/NotifyDisplayMessagesRequest.json +207 -0
  72. package/schema/v2.0/NotifyDisplayMessagesResponse.json +28 -0
  73. package/schema/v2.0/NotifyEVChargingNeedsRequest.json +169 -0
  74. package/schema/v2.0/NotifyEVChargingNeedsResponse.json +72 -0
  75. package/schema/v2.0/NotifyEVChargingScheduleRequest.json +289 -0
  76. package/schema/v2.0/NotifyEVChargingScheduleResponse.json +71 -0
  77. package/schema/v2.0/NotifyEventRequest.json +224 -0
  78. package/schema/v2.0/NotifyEventResponse.json +28 -0
  79. package/schema/v2.0/NotifyMonitoringReportRequest.json +212 -0
  80. package/schema/v2.0/NotifyMonitoringReportResponse.json +28 -0
  81. package/schema/v2.0/NotifyReportRequest.json +279 -0
  82. package/schema/v2.0/NotifyReportResponse.json +28 -0
  83. package/schema/v2.0/PublishFirmwareRequest.json +55 -0
  84. package/schema/v2.0/PublishFirmwareResponse.json +71 -0
  85. package/schema/v2.0/PublishFirmwareStatusNotificationRequest.json +66 -0
  86. package/schema/v2.0/PublishFirmwareStatusNotificationResponse.json +28 -0
  87. package/schema/v2.0/ReportChargingProfilesRequest.json +406 -0
  88. package/schema/v2.0/ReportChargingProfilesResponse.json +28 -0
  89. package/schema/v2.0/RequestStartTransactionRequest.json +457 -0
  90. package/schema/v2.0/RequestStartTransactionResponse.json +76 -0
  91. package/schema/v2.0/RequestStopTransactionRequest.json +36 -0
  92. package/schema/v2.0/RequestStopTransactionResponse.json +71 -0
  93. package/schema/v2.0/ReservationStatusUpdateRequest.json +49 -0
  94. package/schema/v2.0/ReservationStatusUpdateResponse.json +28 -0
  95. package/schema/v2.0/ReserveNowRequest.json +157 -0
  96. package/schema/v2.0/ReserveNowResponse.json +74 -0
  97. package/schema/v2.0/ResetRequest.json +48 -0
  98. package/schema/v2.0/ResetResponse.json +72 -0
  99. package/schema/v2.0/SecurityEventNotificationRequest.json +47 -0
  100. package/schema/v2.0/SecurityEventNotificationResponse.json +28 -0
  101. package/schema/v2.0/SendLocalListRequest.json +258 -0
  102. package/schema/v2.0/SendLocalListResponse.json +72 -0
  103. package/schema/v2.0/SetChargingProfileRequest.json +375 -0
  104. package/schema/v2.0/SetChargingProfileResponse.json +71 -0
  105. package/schema/v2.0/SetDisplayMessageRequest.json +193 -0
  106. package/schema/v2.0/SetDisplayMessageResponse.json +75 -0
  107. package/schema/v2.0/SetMonitoringBaseRequest.json +45 -0
  108. package/schema/v2.0/SetMonitoringBaseResponse.json +73 -0
  109. package/schema/v2.0/SetMonitoringLevelRequest.json +35 -0
  110. package/schema/v2.0/SetMonitoringLevelResponse.json +71 -0
  111. package/schema/v2.0/SetNetworkProfileRequest.json +241 -0
  112. package/schema/v2.0/SetNetworkProfileResponse.json +72 -0
  113. package/schema/v2.0/SetVariableMonitoringRequest.json +169 -0
  114. package/schema/v2.0/SetVariableMonitoringResponse.json +204 -0
  115. package/schema/v2.0/SetVariablesRequest.json +154 -0
  116. package/schema/v2.0/SetVariablesResponse.json +193 -0
  117. package/schema/v2.0/SignCertificateRequest.json +49 -0
  118. package/schema/v2.0/SignCertificateResponse.json +71 -0
  119. package/schema/v2.0/StatusNotificationRequest.json +63 -0
  120. package/schema/v2.0/StatusNotificationResponse.json +28 -0
  121. package/schema/v2.0/TransactionEventRequest.json +497 -0
  122. package/schema/v2.0/TransactionEventResponse.json +223 -0
  123. package/schema/v2.0/TriggerMessageRequest.json +78 -0
  124. package/schema/v2.0/TriggerMessageResponse.json +72 -0
  125. package/schema/v2.0/UnlockConnectorRequest.json +40 -0
  126. package/schema/v2.0/UnlockConnectorResponse.json +73 -0
  127. package/schema/v2.0/UnpublishFirmwareRequest.json +36 -0
  128. package/schema/v2.0/UnpublishFirmwareResponse.json +45 -0
  129. package/schema/v2.0/UpdateFirmwareRequest.json +87 -0
  130. package/schema/v2.0/UpdateFirmwareResponse.json +74 -0
  131. package/v1.6/MeterValues.d.ts +51 -71
  132. package/v2.0/AuthorizeRequest.d.ts +2 -2
  133. package/v2.0/AuthorizeResponse.d.ts +2 -2
  134. package/v2.0/BootNotificationRequest.d.ts +2 -2
  135. package/v2.0/BootNotificationResponse.d.ts +2 -2
  136. package/v2.0/CancelReservationRequest.d.ts +2 -2
  137. package/v2.0/CancelReservationResponse.d.ts +2 -2
  138. package/v2.0/CertificateSignedRequest.d.ts +2 -2
  139. package/v2.0/CertificateSignedResponse.d.ts +2 -2
  140. package/v2.0/ChangeAvailabilityRequest.d.ts +2 -2
  141. package/v2.0/ChangeAvailabilityResponse.d.ts +2 -2
  142. package/v2.0/ClearCacheRequest.d.ts +2 -2
  143. package/v2.0/ClearCacheResponse.d.ts +2 -2
  144. package/v2.0/ClearChargingProfileRequest.d.ts +2 -2
  145. package/v2.0/ClearChargingProfileResponse.d.ts +2 -2
  146. package/v2.0/ClearDisplayMessageRequest.d.ts +2 -2
  147. package/v2.0/ClearDisplayMessageResponse.d.ts +2 -2
  148. package/v2.0/ClearVariableMonitoringRequest.d.ts +2 -2
  149. package/v2.0/ClearVariableMonitoringResponse.d.ts +2 -2
  150. package/v2.0/ClearedChargingLimitRequest.d.ts +2 -2
  151. package/v2.0/ClearedChargingLimitResponse.d.ts +2 -2
  152. package/v2.0/CostUpdatedRequest.d.ts +2 -2
  153. package/v2.0/CostUpdatedResponse.d.ts +2 -2
  154. package/v2.0/CustomerInformationRequest.d.ts +2 -2
  155. package/v2.0/CustomerInformationResponse.d.ts +2 -2
  156. package/v2.0/DataTransferRequest.d.ts +2 -2
  157. package/v2.0/DataTransferResponse.d.ts +2 -2
  158. package/v2.0/DeleteCertificateRequest.d.ts +2 -2
  159. package/v2.0/DeleteCertificateResponse.d.ts +2 -2
  160. package/v2.0/FirmwareStatusNotificationRequest.d.ts +2 -2
  161. package/v2.0/FirmwareStatusNotificationResponse.d.ts +2 -2
  162. package/v2.0/Get15118EVCertificateRequest.d.ts +2 -2
  163. package/v2.0/Get15118EVCertificateResponse.d.ts +2 -2
  164. package/v2.0/GetBaseReportRequest.d.ts +2 -2
  165. package/v2.0/GetBaseReportResponse.d.ts +2 -2
  166. package/v2.0/GetCertificateStatusRequest.d.ts +2 -2
  167. package/v2.0/GetCertificateStatusResponse.d.ts +2 -2
  168. package/v2.0/GetChargingProfilesRequest.d.ts +2 -2
  169. package/v2.0/GetChargingProfilesResponse.d.ts +2 -2
  170. package/v2.0/GetCompositeScheduleRequest.d.ts +2 -2
  171. package/v2.0/GetCompositeScheduleResponse.d.ts +2 -2
  172. package/v2.0/GetDisplayMessagesRequest.d.ts +2 -2
  173. package/v2.0/GetDisplayMessagesResponse.d.ts +2 -2
  174. package/v2.0/GetInstalledCertificateIdsRequest.d.ts +2 -2
  175. package/v2.0/GetInstalledCertificateIdsResponse.d.ts +2 -2
  176. package/v2.0/GetLocalListVersionRequest.d.ts +2 -2
  177. package/v2.0/GetLocalListVersionResponse.d.ts +2 -2
  178. package/v2.0/GetLogRequest.d.ts +2 -2
  179. package/v2.0/GetLogResponse.d.ts +2 -2
  180. package/v2.0/GetMonitoringReportRequest.d.ts +2 -2
  181. package/v2.0/GetMonitoringReportResponse.d.ts +2 -2
  182. package/v2.0/GetReportRequest.d.ts +2 -2
  183. package/v2.0/GetReportResponse.d.ts +2 -2
  184. package/v2.0/GetTransactionStatusRequest.d.ts +2 -2
  185. package/v2.0/GetTransactionStatusResponse.d.ts +2 -2
  186. package/v2.0/GetVariablesRequest.d.ts +2 -2
  187. package/v2.0/GetVariablesResponse.d.ts +2 -2
  188. package/v2.0/HeartbeatRequest.d.ts +2 -2
  189. package/v2.0/HeartbeatResponse.d.ts +2 -2
  190. package/v2.0/InstallCertificateRequest.d.ts +2 -2
  191. package/v2.0/InstallCertificateResponse.d.ts +2 -2
  192. package/v2.0/LogStatusNotificationRequest.d.ts +2 -2
  193. package/v2.0/LogStatusNotificationResponse.d.ts +2 -2
  194. package/v2.0/MeterValuesRequest.d.ts +2 -2
  195. package/v2.0/MeterValuesResponse.d.ts +2 -2
  196. package/v2.0/NotifyChargingLimitRequest.d.ts +2 -2
  197. package/v2.0/NotifyChargingLimitResponse.d.ts +2 -2
  198. package/v2.0/NotifyCustomerInformationRequest.d.ts +2 -2
  199. package/v2.0/NotifyCustomerInformationResponse.d.ts +2 -2
  200. package/v2.0/NotifyDisplayMessagesRequest.d.ts +2 -2
  201. package/v2.0/NotifyDisplayMessagesResponse.d.ts +2 -2
  202. package/v2.0/NotifyEVChargingNeedsRequest.d.ts +2 -2
  203. package/v2.0/NotifyEVChargingNeedsResponse.d.ts +2 -2
  204. package/v2.0/NotifyEVChargingScheduleRequest.d.ts +2 -2
  205. package/v2.0/NotifyEVChargingScheduleResponse.d.ts +2 -2
  206. package/v2.0/NotifyEventRequest.d.ts +2 -2
  207. package/v2.0/NotifyEventResponse.d.ts +2 -2
  208. package/v2.0/NotifyMonitoringReportRequest.d.ts +2 -2
  209. package/v2.0/NotifyMonitoringReportResponse.d.ts +2 -2
  210. package/v2.0/NotifyReportRequest.d.ts +2 -2
  211. package/v2.0/NotifyReportResponse.d.ts +2 -2
  212. package/v2.0/PublishFirmwareRequest.d.ts +2 -2
  213. package/v2.0/PublishFirmwareResponse.d.ts +2 -2
  214. package/v2.0/PublishFirmwareStatusNotificationRequest.d.ts +2 -2
  215. package/v2.0/PublishFirmwareStatusNotificationResponse.d.ts +2 -2
  216. package/v2.0/ReportChargingProfilesRequest.d.ts +2 -2
  217. package/v2.0/ReportChargingProfilesResponse.d.ts +2 -2
  218. package/v2.0/RequestStartTransactionRequest.d.ts +2 -2
  219. package/v2.0/RequestStartTransactionResponse.d.ts +2 -2
  220. package/v2.0/RequestStopTransactionRequest.d.ts +2 -2
  221. package/v2.0/RequestStopTransactionResponse.d.ts +2 -2
  222. package/v2.0/ReservationStatusUpdateRequest.d.ts +2 -2
  223. package/v2.0/ReservationStatusUpdateResponse.d.ts +2 -2
  224. package/v2.0/ReserveNowRequest.d.ts +2 -2
  225. package/v2.0/ReserveNowResponse.d.ts +2 -2
  226. package/v2.0/ResetRequest.d.ts +2 -2
  227. package/v2.0/ResetResponse.d.ts +2 -2
  228. package/v2.0/SecurityEventNotificationRequest.d.ts +2 -2
  229. package/v2.0/SecurityEventNotificationResponse.d.ts +2 -2
  230. package/v2.0/SendLocalListRequest.d.ts +2 -2
  231. package/v2.0/SendLocalListResponse.d.ts +2 -2
  232. package/v2.0/SetChargingProfileRequest.d.ts +2 -2
  233. package/v2.0/SetChargingProfileResponse.d.ts +2 -2
  234. package/v2.0/SetDisplayMessageRequest.d.ts +2 -2
  235. package/v2.0/SetDisplayMessageResponse.d.ts +2 -2
  236. package/v2.0/SetMonitoringBaseRequest.d.ts +2 -2
  237. package/v2.0/SetMonitoringBaseResponse.d.ts +2 -2
  238. package/v2.0/SetMonitoringLevelRequest.d.ts +2 -2
  239. package/v2.0/SetMonitoringLevelResponse.d.ts +2 -2
  240. package/v2.0/SetNetworkProfileRequest.d.ts +2 -2
  241. package/v2.0/SetNetworkProfileResponse.d.ts +2 -2
  242. package/v2.0/SetVariableMonitoringRequest.d.ts +2 -2
  243. package/v2.0/SetVariableMonitoringResponse.d.ts +2 -2
  244. package/v2.0/SetVariablesRequest.d.ts +2 -2
  245. package/v2.0/SetVariablesResponse.d.ts +2 -2
  246. package/v2.0/SignCertificateRequest.d.ts +2 -2
  247. package/v2.0/SignCertificateResponse.d.ts +2 -2
  248. package/v2.0/StatusNotificationRequest.d.ts +2 -2
  249. package/v2.0/StatusNotificationResponse.d.ts +2 -2
  250. package/v2.0/TransactionEventRequest.d.ts +2 -2
  251. package/v2.0/TransactionEventResponse.d.ts +2 -2
  252. package/v2.0/TriggerMessageRequest.d.ts +2 -2
  253. package/v2.0/TriggerMessageResponse.d.ts +2 -2
  254. package/v2.0/UnlockConnectorRequest.d.ts +2 -2
  255. package/v2.0/UnlockConnectorResponse.d.ts +2 -2
  256. package/v2.0/UnpublishFirmwareRequest.d.ts +2 -2
  257. package/v2.0/UnpublishFirmwareResponse.d.ts +2 -2
  258. package/v2.0/UpdateFirmwareRequest.d.ts +2 -2
  259. package/v2.0/UpdateFirmwareResponse.d.ts +2 -2
  260. package/v2.0/index.d.ts +338 -129
  261. package/schema/v2.0/AuthorizeRequest_v1p0.json +0 -133
  262. package/schema/v2.0/AuthorizeResponse_v1p0.json +0 -154
  263. package/schema/v2.0/BootNotificationRequest_v1p0.json +0 -81
  264. package/schema/v2.0/BootNotificationResponse_v1p0.json +0 -30
  265. package/schema/v2.0/CancelReservationRequest_v1p0.json +0 -15
  266. package/schema/v2.0/CancelReservationResponse_v1p0.json +0 -20
  267. package/schema/v2.0/CertificateSignedRequest_v1p0.json +0 -29
  268. package/schema/v2.0/CertificateSignedResponse_v1p0.json +0 -20
  269. package/schema/v2.0/ChangeAvailabilityRequest_v1p0.json +0 -24
  270. package/schema/v2.0/ChangeAvailabilityResponse_v1p0.json +0 -21
  271. package/schema/v2.0/ClearCacheRequest_v1p0.json +0 -7
  272. package/schema/v2.0/ClearCacheResponse_v1p0.json +0 -20
  273. package/schema/v2.0/ClearChargingProfileRequest_v1p0.json +0 -43
  274. package/schema/v2.0/ClearChargingProfileResponse_v1p0.json +0 -20
  275. package/schema/v2.0/ClearDisplayMessageRequest_v1p0.json +0 -15
  276. package/schema/v2.0/ClearDisplayMessageResponse_v1p0.json +0 -20
  277. package/schema/v2.0/ClearVariableMonitoringRequest_v1p0.json +0 -20
  278. package/schema/v2.0/ClearVariableMonitoringResponse_v1p0.json +0 -48
  279. package/schema/v2.0/ClearedChargingLimitRequest_v1p0.json +0 -25
  280. package/schema/v2.0/ClearedChargingLimitResponse_v1p0.json +0 -7
  281. package/schema/v2.0/CostUpdatedRequest_v1p0.json +0 -20
  282. package/schema/v2.0/CostUpdatedResponse_v1p0.json +0 -7
  283. package/schema/v2.0/CustomerInformationRequest_v1p0.json +0 -130
  284. package/schema/v2.0/CustomerInformationResponse_v1p0.json +0 -21
  285. package/schema/v2.0/DataTransferRequest_v1p0.json +0 -21
  286. package/schema/v2.0/DataTransferResponse_v1p0.json +0 -23
  287. package/schema/v2.0/DeleteCertificateRequest_v1p0.json +0 -54
  288. package/schema/v2.0/DeleteCertificateResponse_v1p0.json +0 -21
  289. package/schema/v2.0/FirmwareStatusNotificationRequest_v1p0.json +0 -40
  290. package/schema/v2.0/FirmwareStatusNotificationResponse_v1p0.json +0 -7
  291. package/schema/v2.0/Get15118EVCertificateRequest_v1p0.json +0 -21
  292. package/schema/v2.0/Get15118EVCertificateResponse_v1p0.json +0 -62
  293. package/schema/v2.0/GetBaseReportRequest_v1p0.json +0 -25
  294. package/schema/v2.0/GetBaseReportResponse_v1p0.json +0 -21
  295. package/schema/v2.0/GetCertificateStatusRequest_v1p0.json +0 -58
  296. package/schema/v2.0/GetCertificateStatusResponse_v1p0.json +0 -24
  297. package/schema/v2.0/GetChargingProfilesRequest_v1p0.json +0 -73
  298. package/schema/v2.0/GetChargingProfilesResponse_v1p0.json +0 -20
  299. package/schema/v2.0/GetCompositeScheduleRequest_v1p0.json +0 -27
  300. package/schema/v2.0/GetCompositeScheduleResponse_v1p0.json +0 -108
  301. package/schema/v2.0/GetDisplayMessagesRequest_v1p0.json +0 -42
  302. package/schema/v2.0/GetDisplayMessagesResponse_v1p0.json +0 -20
  303. package/schema/v2.0/GetInstalledCertificateIdsRequest_v1p0.json +0 -24
  304. package/schema/v2.0/GetInstalledCertificateIdsResponse_v1p0.json +0 -70
  305. package/schema/v2.0/GetLocalListVersionRequest_v1p0.json +0 -7
  306. package/schema/v2.0/GetLocalListVersionResponse_v1p0.json +0 -15
  307. package/schema/v2.0/GetLogRequest_v1p0.json +0 -61
  308. package/schema/v2.0/GetLogResponse_v1p0.json +0 -25
  309. package/schema/v2.0/GetMonitoringReportRequest_v1p0.json +0 -112
  310. package/schema/v2.0/GetMonitoringReportResponse_v1p0.json +0 -21
  311. package/schema/v2.0/GetReportRequest_v1p0.json +0 -113
  312. package/schema/v2.0/GetReportResponse_v1p0.json +0 -21
  313. package/schema/v2.0/GetTransactionStatusRequest_v1p0.json +0 -13
  314. package/schema/v2.0/GetTransactionStatusResponse_v1p0.json +0 -18
  315. package/schema/v2.0/GetVariablesRequest_v1p0.json +0 -108
  316. package/schema/v2.0/GetVariablesResponse_v1p0.json +0 -127
  317. package/schema/v2.0/HeartbeatRequest_v1p0.json +0 -7
  318. package/schema/v2.0/HeartbeatResponse_v1p0.json +0 -16
  319. package/schema/v2.0/InstallCertificateRequest_v1p0.json +0 -29
  320. package/schema/v2.0/InstallCertificateResponse_v1p0.json +0 -25
  321. package/schema/v2.0/LogStatusNotificationRequest_v1p0.json +0 -29
  322. package/schema/v2.0/LogStatusNotificationResponse_v1p0.json +0 -7
  323. package/schema/v2.0/MeterValuesRequest_v1p0.json +0 -212
  324. package/schema/v2.0/MeterValuesResponse_v1p0.json +0 -7
  325. package/schema/v2.0/NotifyCentralChargingNeedsRequest_v1p0.json +0 -191
  326. package/schema/v2.0/NotifyCentralChargingNeedsResponse_v1p0.json +0 -20
  327. package/schema/v2.0/NotifyChargingLimitRequest_v1p0.json +0 -117
  328. package/schema/v2.0/NotifyChargingLimitResponse_v1p0.json +0 -7
  329. package/schema/v2.0/NotifyCustomerInformationRequest_v1p0.json +0 -32
  330. package/schema/v2.0/NotifyCustomerInformationResponse_v1p0.json +0 -7
  331. package/schema/v2.0/NotifyDisplayMessagesRequest_v1p0.json +0 -157
  332. package/schema/v2.0/NotifyDisplayMessagesResponse_v1p0.json +0 -7
  333. package/schema/v2.0/NotifyEVChargingNeedsRequest_v1p0.json +0 -125
  334. package/schema/v2.0/NotifyEVChargingNeedsResponse_v1p0.json +0 -21
  335. package/schema/v2.0/NotifyEVChargingScheduleRequest_v1p0.json +0 -88
  336. package/schema/v2.0/NotifyEVChargingScheduleResponse_v1p0.json +0 -20
  337. package/schema/v2.0/NotifyEventRequest_v1p0.json +0 -193
  338. package/schema/v2.0/NotifyEventResponse_v1p0.json +0 -7
  339. package/schema/v2.0/NotifyMonitoringReportRequest_v1p0.json +0 -160
  340. package/schema/v2.0/NotifyMonitoringReportResponse_v1p0.json +0 -7
  341. package/schema/v2.0/NotifyReportRequest_v1p0.json +0 -216
  342. package/schema/v2.0/NotifyReportResponse_v1p0.json +0 -7
  343. package/schema/v2.0/PublishFirmwareRequest_v1p0.json +0 -24
  344. package/schema/v2.0/PublishFirmwareResponse_v1p0.json +0 -20
  345. package/schema/v2.0/PublishFirmwareStatusNotificationRequest_v1p0.json +0 -36
  346. package/schema/v2.0/PublishFirmwareStatusNotificationResponse_v1p0.json +0 -7
  347. package/schema/v2.0/Renegotiate15118ScheduleRequest_v1p0.json +0 -33
  348. package/schema/v2.0/Renegotiate15118ScheduleResponse_v1p0.json +0 -20
  349. package/schema/v2.0/ReportChargingProfilesRequest_v1p0.json +0 -183
  350. package/schema/v2.0/ReportChargingProfilesResponse_v1p0.json +0 -7
  351. package/schema/v2.0/RequestStartTransactionRequest_v1p0.json +0 -222
  352. package/schema/v2.0/RequestStartTransactionResponse_v1p0.json +0 -24
  353. package/schema/v2.0/RequestStopTransactionRequest_v1p0.json +0 -16
  354. package/schema/v2.0/RequestStopTransactionResponse_v1p0.json +0 -20
  355. package/schema/v2.0/ReservationStatusUpdateRequest_v1p0.json +0 -24
  356. package/schema/v2.0/ReservationStatusUpdateResponse_v1p0.json +0 -7
  357. package/schema/v2.0/ReserveNowRequest_v1p0.json +0 -151
  358. package/schema/v2.0/ReserveNowResponse_v1p0.json +0 -23
  359. package/schema/v2.0/ResetRequest_v1p0.json +0 -20
  360. package/schema/v2.0/ResetResponse_v1p0.json +0 -21
  361. package/schema/v2.0/SecurityEventNotificationRequest_v1p0.json +0 -41
  362. package/schema/v2.0/SecurityEventNotificationResponse_v1p0.json +0 -7
  363. package/schema/v2.0/SendLocalListRequest_v1p0.json +0 -211
  364. package/schema/v2.0/SendLocalListResponse_v1p0.json +0 -21
  365. package/schema/v2.0/SetChargingProfileRequest_v1p0.json +0 -158
  366. package/schema/v2.0/SetChargingProfileResponse_v1p0.json +0 -20
  367. package/schema/v2.0/SetDisplayMessageRequest_v1p0.json +0 -144
  368. package/schema/v2.0/SetDisplayMessageResponse_v1p0.json +0 -24
  369. package/schema/v2.0/SetMonitoringBaseRequest_v1p0.json +0 -21
  370. package/schema/v2.0/SetMonitoringBaseResponse_v1p0.json +0 -21
  371. package/schema/v2.0/SetMonitoringLevelRequest_v1p0.json +0 -15
  372. package/schema/v2.0/SetMonitoringLevelResponse_v1p0.json +0 -20
  373. package/schema/v2.0/SetNetworkProfileRequest_v1p0.json +0 -182
  374. package/schema/v2.0/SetNetworkProfileResponse_v1p0.json +0 -21
  375. package/schema/v2.0/SetVariableMonitoringRequest_v1p0.json +0 -123
  376. package/schema/v2.0/SetVariableMonitoringResponse_v1p0.json +0 -133
  377. package/schema/v2.0/SetVariablesRequest_v1p0.json +0 -113
  378. package/schema/v2.0/SetVariablesResponse_v1p0.json +0 -126
  379. package/schema/v2.0/SignCertificateRequest_v1p0.json +0 -24
  380. package/schema/v2.0/SignCertificateResponse_v1p0.json +0 -20
  381. package/schema/v2.0/StatusNotificationRequest_v1p0.json +0 -36
  382. package/schema/v2.0/StatusNotificationResponse_v1p0.json +0 -7
  383. package/schema/v2.0/TransactionEventRequest_v1p0.json +0 -415
  384. package/schema/v2.0/TransactionEventResponse_v1p0.json +0 -136
  385. package/schema/v2.0/TriggerMessageRequest_v1p0.json +0 -51
  386. package/schema/v2.0/TriggerMessageResponse_v1p0.json +0 -21
  387. package/schema/v2.0/UnlockConnectorRequest_v1p0.json +0 -19
  388. package/schema/v2.0/UnlockConnectorResponse_v1p0.json +0 -20
  389. package/schema/v2.0/UnpublishFirmwareRequest_v1p0.json +0 -16
  390. package/schema/v2.0/UnpublishFirmwareResponse_v1p0.json +0 -21
  391. package/schema/v2.0/Update15118EVCertificateRequest_v1p0.json +0 -21
  392. package/schema/v2.0/Update15118EVCertificateResponse_v1p0.json +0 -24
  393. package/schema/v2.0/UpdateFirmwareRequest_v1p0.json +0 -58
  394. package/schema/v2.0/UpdateFirmwareResponse_v1p0.json +0 -21
package/compile.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  const { compileFromFile } = require("json-schema-to-typescript");
3
3
  const fs = require("fs");
4
+
5
+ // Compile v1.6 schemas
4
6
  fs.readdir(__dirname + "/schema/v1.6", function (err, files) {
5
7
  //handling error
6
8
  if (err) {
@@ -15,3 +17,42 @@ fs.readdir(__dirname + "/schema/v1.6", function (err, files) {
15
17
  console.log(file);
16
18
  });
17
19
  });
20
+
21
+ // Compile v2.0 schemas with custom naming
22
+ const { compile } = require("json-schema-to-typescript");
23
+
24
+ fs.readdir(__dirname + "/schema/v2.0", function (err, files) {
25
+ //handling error
26
+ if (err) {
27
+ return console.log("Unable to scan directory: " + err);
28
+ }
29
+ //listing all files using forEach
30
+ files.forEach(function (file) {
31
+ // Skip if not a JSON file
32
+ if (!file.endsWith('.json')) return;
33
+
34
+ // Extract base name (e.g., "AuthorizeRequest" from "AuthorizeRequest.json" or "AuthorizeRequest_v1p0.json")
35
+ const baseName = file.replace(/(_v1p0)?\.json$/, "");
36
+ const filePath = `${__dirname}/schema/v2.0/${file}`;
37
+
38
+ // Read file and strip BOM if present
39
+ let content = fs.readFileSync(filePath, "utf8");
40
+ if (content.charCodeAt(0) === 0xfeff) {
41
+ content = content.slice(1);
42
+ }
43
+
44
+ const schema = JSON.parse(content);
45
+
46
+ // compile from schema
47
+ compile(schema, baseName)
48
+ .then((ts) => {
49
+ // Replace any remaining URN-based interface names with clean names
50
+ const cleanedTs = ts.replace(/export interface Urn\w+/g, `export interface ${baseName}`);
51
+ fs.writeFileSync(`${__dirname}/v2.0/${baseName}.d.ts`, cleanedTs);
52
+ })
53
+ .catch((err) => {
54
+ console.error(`Error compiling ${file}:`, err.message);
55
+ });
56
+ console.log(file);
57
+ });
58
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocpp-messages",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript definitions for Open Charge Point Protocol (OCPP)",
5
5
  "main": "",
6
6
  "author": "Roman Morawek, embyt GmbH",
@@ -22,7 +22,9 @@
22
22
  "v2.0"
23
23
  ],
24
24
  "devDependencies": {
25
- "json-schema-to-typescript": "^13.1.1"
25
+ "json-schema-to-typescript": "^15.0.4"
26
26
  },
27
- "scripts": {}
27
+ "scripts": {
28
+ "build": "node compile.js"
29
+ }
28
30
  }
@@ -0,0 +1,171 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "$id": "urn:OCPP:Cp:2:2020:3:AuthorizeRequest",
4
+ "comment": "OCPP 2.0.1 FINAL",
5
+ "definitions": {
6
+ "CustomDataType": {
7
+ "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8
+ "javaType": "CustomData",
9
+ "type": "object",
10
+ "properties": {
11
+ "vendorId": {
12
+ "type": "string",
13
+ "maxLength": 255
14
+ }
15
+ },
16
+ "required": [
17
+ "vendorId"
18
+ ]
19
+ },
20
+ "HashAlgorithmEnumType": {
21
+ "description": "Used algorithms for the hashes provided.\r\n",
22
+ "javaType": "HashAlgorithmEnum",
23
+ "type": "string",
24
+ "additionalProperties": false,
25
+ "enum": [
26
+ "SHA256",
27
+ "SHA384",
28
+ "SHA512"
29
+ ]
30
+ },
31
+ "IdTokenEnumType": {
32
+ "description": "Enumeration of possible idToken types.\r\n",
33
+ "javaType": "IdTokenEnum",
34
+ "type": "string",
35
+ "additionalProperties": false,
36
+ "enum": [
37
+ "Central",
38
+ "eMAID",
39
+ "ISO14443",
40
+ "ISO15693",
41
+ "KeyCode",
42
+ "Local",
43
+ "MacAddress",
44
+ "NoAuthorization"
45
+ ]
46
+ },
47
+ "AdditionalInfoType": {
48
+ "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
49
+ "javaType": "AdditionalInfo",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "customData": {
54
+ "$ref": "#/definitions/CustomDataType"
55
+ },
56
+ "additionalIdToken": {
57
+ "description": "This field specifies the additional IdToken.\r\n",
58
+ "type": "string",
59
+ "maxLength": 36
60
+ },
61
+ "type": {
62
+ "description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
63
+ "type": "string",
64
+ "maxLength": 50
65
+ }
66
+ },
67
+ "required": [
68
+ "additionalIdToken",
69
+ "type"
70
+ ]
71
+ },
72
+ "IdTokenType": {
73
+ "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
74
+ "javaType": "IdToken",
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "properties": {
78
+ "customData": {
79
+ "$ref": "#/definitions/CustomDataType"
80
+ },
81
+ "additionalInfo": {
82
+ "type": "array",
83
+ "additionalItems": false,
84
+ "items": {
85
+ "$ref": "#/definitions/AdditionalInfoType"
86
+ },
87
+ "minItems": 1
88
+ },
89
+ "idToken": {
90
+ "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
91
+ "type": "string",
92
+ "maxLength": 36
93
+ },
94
+ "type": {
95
+ "$ref": "#/definitions/IdTokenEnumType"
96
+ }
97
+ },
98
+ "required": [
99
+ "idToken",
100
+ "type"
101
+ ]
102
+ },
103
+ "OCSPRequestDataType": {
104
+ "javaType": "OCSPRequestData",
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "properties": {
108
+ "customData": {
109
+ "$ref": "#/definitions/CustomDataType"
110
+ },
111
+ "hashAlgorithm": {
112
+ "$ref": "#/definitions/HashAlgorithmEnumType"
113
+ },
114
+ "issuerNameHash": {
115
+ "description": "Hashed value of the Issuer DN (Distinguished Name).\r\n\r\n",
116
+ "type": "string",
117
+ "maxLength": 128
118
+ },
119
+ "issuerKeyHash": {
120
+ "description": "Hashed value of the issuers public key\r\n",
121
+ "type": "string",
122
+ "maxLength": 128
123
+ },
124
+ "serialNumber": {
125
+ "description": "The serial number of the certificate.\r\n",
126
+ "type": "string",
127
+ "maxLength": 40
128
+ },
129
+ "responderURL": {
130
+ "description": "This contains the responder URL (Case insensitive). \r\n\r\n",
131
+ "type": "string",
132
+ "maxLength": 512
133
+ }
134
+ },
135
+ "required": [
136
+ "hashAlgorithm",
137
+ "issuerNameHash",
138
+ "issuerKeyHash",
139
+ "serialNumber",
140
+ "responderURL"
141
+ ]
142
+ }
143
+ },
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "customData": {
148
+ "$ref": "#/definitions/CustomDataType"
149
+ },
150
+ "idToken": {
151
+ "$ref": "#/definitions/IdTokenType"
152
+ },
153
+ "certificate": {
154
+ "description": "The X.509 certificated presented by EV and encoded in PEM format.\r\n",
155
+ "type": "string",
156
+ "maxLength": 5500
157
+ },
158
+ "iso15118CertificateHashData": {
159
+ "type": "array",
160
+ "additionalItems": false,
161
+ "items": {
162
+ "$ref": "#/definitions/OCSPRequestDataType"
163
+ },
164
+ "minItems": 1,
165
+ "maxItems": 4
166
+ }
167
+ },
168
+ "required": [
169
+ "idToken"
170
+ ]
171
+ }
@@ -0,0 +1,233 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "$id": "urn:OCPP:Cp:2:2020:3:AuthorizeResponse",
4
+ "comment": "OCPP 2.0.1 FINAL",
5
+ "definitions": {
6
+ "CustomDataType": {
7
+ "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8
+ "javaType": "CustomData",
9
+ "type": "object",
10
+ "properties": {
11
+ "vendorId": {
12
+ "type": "string",
13
+ "maxLength": 255
14
+ }
15
+ },
16
+ "required": [
17
+ "vendorId"
18
+ ]
19
+ },
20
+ "AuthorizationStatusEnumType": {
21
+ "description": "ID_ Token. Status. Authorization_ Status\r\nurn:x-oca:ocpp:uid:1:569372\r\nCurrent status of the ID Token.\r\n",
22
+ "javaType": "AuthorizationStatusEnum",
23
+ "type": "string",
24
+ "additionalProperties": false,
25
+ "enum": [
26
+ "Accepted",
27
+ "Blocked",
28
+ "ConcurrentTx",
29
+ "Expired",
30
+ "Invalid",
31
+ "NoCredit",
32
+ "NotAllowedTypeEVSE",
33
+ "NotAtThisLocation",
34
+ "NotAtThisTime",
35
+ "Unknown"
36
+ ]
37
+ },
38
+ "AuthorizeCertificateStatusEnumType": {
39
+ "description": "Certificate status information. \r\n- if all certificates are valid: return 'Accepted'.\r\n- if one of the certificates was revoked, return 'CertificateRevoked'.\r\n",
40
+ "javaType": "AuthorizeCertificateStatusEnum",
41
+ "type": "string",
42
+ "additionalProperties": false,
43
+ "enum": [
44
+ "Accepted",
45
+ "SignatureError",
46
+ "CertificateExpired",
47
+ "CertificateRevoked",
48
+ "NoCertificateAvailable",
49
+ "CertChainError",
50
+ "ContractCancelled"
51
+ ]
52
+ },
53
+ "IdTokenEnumType": {
54
+ "description": "Enumeration of possible idToken types.\r\n",
55
+ "javaType": "IdTokenEnum",
56
+ "type": "string",
57
+ "additionalProperties": false,
58
+ "enum": [
59
+ "Central",
60
+ "eMAID",
61
+ "ISO14443",
62
+ "ISO15693",
63
+ "KeyCode",
64
+ "Local",
65
+ "MacAddress",
66
+ "NoAuthorization"
67
+ ]
68
+ },
69
+ "MessageFormatEnumType": {
70
+ "description": "Message_ Content. Format. Message_ Format_ Code\r\nurn:x-enexis:ecdm:uid:1:570848\r\nFormat of the message.\r\n",
71
+ "javaType": "MessageFormatEnum",
72
+ "type": "string",
73
+ "additionalProperties": false,
74
+ "enum": [
75
+ "ASCII",
76
+ "HTML",
77
+ "URI",
78
+ "UTF8"
79
+ ]
80
+ },
81
+ "AdditionalInfoType": {
82
+ "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
83
+ "javaType": "AdditionalInfo",
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "customData": {
88
+ "$ref": "#/definitions/CustomDataType"
89
+ },
90
+ "additionalIdToken": {
91
+ "description": "This field specifies the additional IdToken.\r\n",
92
+ "type": "string",
93
+ "maxLength": 36
94
+ },
95
+ "type": {
96
+ "description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
97
+ "type": "string",
98
+ "maxLength": 50
99
+ }
100
+ },
101
+ "required": [
102
+ "additionalIdToken",
103
+ "type"
104
+ ]
105
+ },
106
+ "IdTokenInfoType": {
107
+ "description": "ID_ Token\r\nurn:x-oca:ocpp:uid:2:233247\r\nContains status information about an identifier.\r\nIt is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.\r\n",
108
+ "javaType": "IdTokenInfo",
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "properties": {
112
+ "customData": {
113
+ "$ref": "#/definitions/CustomDataType"
114
+ },
115
+ "status": {
116
+ "$ref": "#/definitions/AuthorizationStatusEnumType"
117
+ },
118
+ "cacheExpiryDateTime": {
119
+ "description": "ID_ Token. Expiry. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569373\r\nDate and Time after which the token must be considered invalid.\r\n",
120
+ "type": "string",
121
+ "format": "date-time"
122
+ },
123
+ "chargingPriority": {
124
+ "description": "Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one. \r\n",
125
+ "type": "integer"
126
+ },
127
+ "language1": {
128
+ "description": "ID_ Token. Language1. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569374\r\nPreferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n\r\n",
129
+ "type": "string",
130
+ "maxLength": 8
131
+ },
132
+ "evseId": {
133
+ "description": "Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.\r\n\r\n",
134
+ "type": "array",
135
+ "additionalItems": false,
136
+ "items": {
137
+ "type": "integer"
138
+ },
139
+ "minItems": 1
140
+ },
141
+ "groupIdToken": {
142
+ "$ref": "#/definitions/IdTokenType"
143
+ },
144
+ "language2": {
145
+ "description": "ID_ Token. Language2. Language_ Code\r\nurn:x-oca:ocpp:uid:1:569375\r\nSecond preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
146
+ "type": "string",
147
+ "maxLength": 8
148
+ },
149
+ "personalMessage": {
150
+ "$ref": "#/definitions/MessageContentType"
151
+ }
152
+ },
153
+ "required": [
154
+ "status"
155
+ ]
156
+ },
157
+ "IdTokenType": {
158
+ "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
159
+ "javaType": "IdToken",
160
+ "type": "object",
161
+ "additionalProperties": false,
162
+ "properties": {
163
+ "customData": {
164
+ "$ref": "#/definitions/CustomDataType"
165
+ },
166
+ "additionalInfo": {
167
+ "type": "array",
168
+ "additionalItems": false,
169
+ "items": {
170
+ "$ref": "#/definitions/AdditionalInfoType"
171
+ },
172
+ "minItems": 1
173
+ },
174
+ "idToken": {
175
+ "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
176
+ "type": "string",
177
+ "maxLength": 36
178
+ },
179
+ "type": {
180
+ "$ref": "#/definitions/IdTokenEnumType"
181
+ }
182
+ },
183
+ "required": [
184
+ "idToken",
185
+ "type"
186
+ ]
187
+ },
188
+ "MessageContentType": {
189
+ "description": "Message_ Content\r\nurn:x-enexis:ecdm:uid:2:234490\r\nContains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
190
+ "javaType": "MessageContent",
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "properties": {
194
+ "customData": {
195
+ "$ref": "#/definitions/CustomDataType"
196
+ },
197
+ "format": {
198
+ "$ref": "#/definitions/MessageFormatEnumType"
199
+ },
200
+ "language": {
201
+ "description": "Message_ Content. Language. Language_ Code\r\nurn:x-enexis:ecdm:uid:1:570849\r\nMessage language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
202
+ "type": "string",
203
+ "maxLength": 8
204
+ },
205
+ "content": {
206
+ "description": "Message_ Content. Content. Message\r\nurn:x-enexis:ecdm:uid:1:570852\r\nMessage contents.\r\n\r\n",
207
+ "type": "string",
208
+ "maxLength": 512
209
+ }
210
+ },
211
+ "required": [
212
+ "format",
213
+ "content"
214
+ ]
215
+ }
216
+ },
217
+ "type": "object",
218
+ "additionalProperties": false,
219
+ "properties": {
220
+ "customData": {
221
+ "$ref": "#/definitions/CustomDataType"
222
+ },
223
+ "idTokenInfo": {
224
+ "$ref": "#/definitions/IdTokenInfoType"
225
+ },
226
+ "certificateStatus": {
227
+ "$ref": "#/definitions/AuthorizeCertificateStatusEnumType"
228
+ }
229
+ },
230
+ "required": [
231
+ "idTokenInfo"
232
+ ]
233
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "$id": "urn:OCPP:Cp:2:2020:3:BootNotificationRequest",
4
+ "comment": "OCPP 2.0.1 FINAL",
5
+ "definitions": {
6
+ "CustomDataType": {
7
+ "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8
+ "javaType": "CustomData",
9
+ "type": "object",
10
+ "properties": {
11
+ "vendorId": {
12
+ "type": "string",
13
+ "maxLength": 255
14
+ }
15
+ },
16
+ "required": [
17
+ "vendorId"
18
+ ]
19
+ },
20
+ "BootReasonEnumType": {
21
+ "description": "This contains the reason for sending this message to the CSMS.\r\n",
22
+ "javaType": "BootReasonEnum",
23
+ "type": "string",
24
+ "additionalProperties": false,
25
+ "enum": [
26
+ "ApplicationReset",
27
+ "FirmwareUpdate",
28
+ "LocalReset",
29
+ "PowerUp",
30
+ "RemoteReset",
31
+ "ScheduledReset",
32
+ "Triggered",
33
+ "Unknown",
34
+ "Watchdog"
35
+ ]
36
+ },
37
+ "ChargingStationType": {
38
+ "description": "Charge_ Point\r\nurn:x-oca:ocpp:uid:2:233122\r\nThe physical system where an Electrical Vehicle (EV) can be charged.\r\n",
39
+ "javaType": "ChargingStation",
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "customData": {
44
+ "$ref": "#/definitions/CustomDataType"
45
+ },
46
+ "serialNumber": {
47
+ "description": "Device. Serial_ Number. Serial_ Number\r\nurn:x-oca:ocpp:uid:1:569324\r\nVendor-specific device identifier.\r\n",
48
+ "type": "string",
49
+ "maxLength": 25
50
+ },
51
+ "model": {
52
+ "description": "Device. Model. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569325\r\nDefines the model of the device.\r\n",
53
+ "type": "string",
54
+ "maxLength": 20
55
+ },
56
+ "modem": {
57
+ "$ref": "#/definitions/ModemType"
58
+ },
59
+ "vendorName": {
60
+ "description": "Identifies the vendor (not necessarily in a unique manner).\r\n",
61
+ "type": "string",
62
+ "maxLength": 50
63
+ },
64
+ "firmwareVersion": {
65
+ "description": "This contains the firmware version of the Charging Station.\r\n\r\n",
66
+ "type": "string",
67
+ "maxLength": 50
68
+ }
69
+ },
70
+ "required": [
71
+ "model",
72
+ "vendorName"
73
+ ]
74
+ },
75
+ "ModemType": {
76
+ "description": "Wireless_ Communication_ Module\r\nurn:x-oca:ocpp:uid:2:233306\r\nDefines parameters required for initiating and maintaining wireless communication with other devices.\r\n",
77
+ "javaType": "Modem",
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "customData": {
82
+ "$ref": "#/definitions/CustomDataType"
83
+ },
84
+ "iccid": {
85
+ "description": "Wireless_ Communication_ Module. ICCID. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569327\r\nThis contains the ICCID of the modem’s SIM card.\r\n",
86
+ "type": "string",
87
+ "maxLength": 20
88
+ },
89
+ "imsi": {
90
+ "description": "Wireless_ Communication_ Module. IMSI. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569328\r\nThis contains the IMSI of the modem’s SIM card.\r\n",
91
+ "type": "string",
92
+ "maxLength": 20
93
+ }
94
+ }
95
+ }
96
+ },
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "properties": {
100
+ "customData": {
101
+ "$ref": "#/definitions/CustomDataType"
102
+ },
103
+ "chargingStation": {
104
+ "$ref": "#/definitions/ChargingStationType"
105
+ },
106
+ "reason": {
107
+ "$ref": "#/definitions/BootReasonEnumType"
108
+ }
109
+ },
110
+ "required": [
111
+ "reason",
112
+ "chargingStation"
113
+ ]
114
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "$id": "urn:OCPP:Cp:2:2020:3:BootNotificationResponse",
4
+ "comment": "OCPP 2.0.1 FINAL",
5
+ "definitions": {
6
+ "CustomDataType": {
7
+ "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8
+ "javaType": "CustomData",
9
+ "type": "object",
10
+ "properties": {
11
+ "vendorId": {
12
+ "type": "string",
13
+ "maxLength": 255
14
+ }
15
+ },
16
+ "required": [
17
+ "vendorId"
18
+ ]
19
+ },
20
+ "RegistrationStatusEnumType": {
21
+ "description": "This contains whether the Charging Station has been registered\r\nwithin the CSMS.\r\n",
22
+ "javaType": "RegistrationStatusEnum",
23
+ "type": "string",
24
+ "additionalProperties": false,
25
+ "enum": [
26
+ "Accepted",
27
+ "Pending",
28
+ "Rejected"
29
+ ]
30
+ },
31
+ "StatusInfoType": {
32
+ "description": "Element providing more information about the status.\r\n",
33
+ "javaType": "StatusInfo",
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "properties": {
37
+ "customData": {
38
+ "$ref": "#/definitions/CustomDataType"
39
+ },
40
+ "reasonCode": {
41
+ "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
42
+ "type": "string",
43
+ "maxLength": 20
44
+ },
45
+ "additionalInfo": {
46
+ "description": "Additional text to provide detailed information.\r\n",
47
+ "type": "string",
48
+ "maxLength": 512
49
+ }
50
+ },
51
+ "required": [
52
+ "reasonCode"
53
+ ]
54
+ }
55
+ },
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "customData": {
60
+ "$ref": "#/definitions/CustomDataType"
61
+ },
62
+ "currentTime": {
63
+ "description": "This contains the CSMS’s current time.\r\n",
64
+ "type": "string",
65
+ "format": "date-time"
66
+ },
67
+ "interval": {
68
+ "description": "When <<cmn_registrationstatusenumtype,Status>> is Accepted, this contains the heartbeat interval in seconds. If the CSMS returns something other than Accepted, the value of the interval field indicates the minimum wait time before sending a next BootNotification request.\r\n",
69
+ "type": "integer"
70
+ },
71
+ "status": {
72
+ "$ref": "#/definitions/RegistrationStatusEnumType"
73
+ },
74
+ "statusInfo": {
75
+ "$ref": "#/definitions/StatusInfoType"
76
+ }
77
+ },
78
+ "required": [
79
+ "currentTime",
80
+ "interval",
81
+ "status"
82
+ ]
83
+ }