kirby-ocpp 0.1.2 → 0.3.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 (122) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +192 -88
  3. package/THIRD_PARTY_NOTICES.md +6 -2
  4. package/bin/kirby-ocpp.js +77 -0
  5. package/package.json +23 -44
  6. package/dist/cli.d.ts +0 -2
  7. package/dist/cli.js +0 -72
  8. package/dist/config.d.ts +0 -2
  9. package/dist/config.js +0 -53
  10. package/dist/ocpp/client.d.ts +0 -59
  11. package/dist/ocpp/client.js +0 -299
  12. package/dist/ocpp/schema-validator.d.ts +0 -15
  13. package/dist/ocpp/schema-validator.js +0 -75
  14. package/dist/ocpp/schemas/json/Authorize.json +0 -16
  15. package/dist/ocpp/schemas/json/AuthorizeResponse.json +0 -40
  16. package/dist/ocpp/schemas/json/BootNotification.json +0 -49
  17. package/dist/ocpp/schemas/json/BootNotificationResponse.json +0 -30
  18. package/dist/ocpp/schemas/json/CancelReservation.json +0 -15
  19. package/dist/ocpp/schemas/json/CancelReservationResponse.json +0 -20
  20. package/dist/ocpp/schemas/json/ChangeAvailability.json +0 -24
  21. package/dist/ocpp/schemas/json/ChangeAvailabilityResponse.json +0 -21
  22. package/dist/ocpp/schemas/json/ChangeConfiguration.json +0 -21
  23. package/dist/ocpp/schemas/json/ChangeConfigurationResponse.json +0 -22
  24. package/dist/ocpp/schemas/json/ClearCache.json +0 -8
  25. package/dist/ocpp/schemas/json/ClearCacheResponse.json +0 -20
  26. package/dist/ocpp/schemas/json/ClearChargingProfile.json +0 -27
  27. package/dist/ocpp/schemas/json/ClearChargingProfileResponse.json +0 -20
  28. package/dist/ocpp/schemas/json/DataTransfer.json +0 -23
  29. package/dist/ocpp/schemas/json/DataTransferResponse.json +0 -25
  30. package/dist/ocpp/schemas/json/DiagnosticsStatusNotification.json +0 -22
  31. package/dist/ocpp/schemas/json/DiagnosticsStatusNotificationResponse.json +0 -8
  32. package/dist/ocpp/schemas/json/FirmwareStatusNotification.json +0 -25
  33. package/dist/ocpp/schemas/json/FirmwareStatusNotificationResponse.json +0 -8
  34. package/dist/ocpp/schemas/json/GetCompositeSchedule.json +0 -27
  35. package/dist/ocpp/schemas/json/GetCompositeScheduleResponse.json +0 -79
  36. package/dist/ocpp/schemas/json/GetConfiguration.json +0 -16
  37. package/dist/ocpp/schemas/json/GetConfigurationResponse.json +0 -40
  38. package/dist/ocpp/schemas/json/GetDiagnostics.json +0 -30
  39. package/dist/ocpp/schemas/json/GetDiagnosticsResponse.json +0 -13
  40. package/dist/ocpp/schemas/json/GetLocalListVersion.json +0 -8
  41. package/dist/ocpp/schemas/json/GetLocalListVersionResponse.json +0 -15
  42. package/dist/ocpp/schemas/json/Heartbeat.json +0 -8
  43. package/dist/ocpp/schemas/json/HeartbeatResponse.json +0 -16
  44. package/dist/ocpp/schemas/json/MeterValues.json +0 -151
  45. package/dist/ocpp/schemas/json/MeterValuesResponse.json +0 -8
  46. package/dist/ocpp/schemas/json/RemoteStartTransaction.json +0 -127
  47. package/dist/ocpp/schemas/json/RemoteStartTransactionResponse.json +0 -20
  48. package/dist/ocpp/schemas/json/RemoteStopTransaction.json +0 -15
  49. package/dist/ocpp/schemas/json/RemoteStopTransactionResponse.json +0 -20
  50. package/dist/ocpp/schemas/json/ReserveNow.json +0 -33
  51. package/dist/ocpp/schemas/json/ReserveNowResponse.json +0 -23
  52. package/dist/ocpp/schemas/json/Reset.json +0 -20
  53. package/dist/ocpp/schemas/json/ResetResponse.json +0 -20
  54. package/dist/ocpp/schemas/json/SendLocalList.json +0 -68
  55. package/dist/ocpp/schemas/json/SendLocalListResponse.json +0 -22
  56. package/dist/ocpp/schemas/json/SetChargingProfile.json +0 -124
  57. package/dist/ocpp/schemas/json/SetChargingProfileResponse.json +0 -21
  58. package/dist/ocpp/schemas/json/StartTransaction.json +0 -32
  59. package/dist/ocpp/schemas/json/StartTransactionResponse.json +0 -44
  60. package/dist/ocpp/schemas/json/StatusNotification.json +0 -70
  61. package/dist/ocpp/schemas/json/StatusNotificationResponse.json +0 -8
  62. package/dist/ocpp/schemas/json/StopTransaction.json +0 -177
  63. package/dist/ocpp/schemas/json/StopTransactionResponse.json +0 -37
  64. package/dist/ocpp/schemas/json/TriggerMessage.json +0 -27
  65. package/dist/ocpp/schemas/json/TriggerMessageResponse.json +0 -21
  66. package/dist/ocpp/schemas/json/UnlockConnector.json +0 -15
  67. package/dist/ocpp/schemas/json/UnlockConnectorResponse.json +0 -21
  68. package/dist/ocpp/schemas/json/UpdateFirmware.json +0 -27
  69. package/dist/ocpp/schemas/json/UpdateFirmwareResponse.json +0 -8
  70. package/dist/ocpp/types.d.ts +0 -106
  71. package/dist/ocpp/types.js +0 -1
  72. package/dist/station/authorization.d.ts +0 -20
  73. package/dist/station/authorization.js +0 -78
  74. package/dist/station/charging-profile-registry.d.ts +0 -18
  75. package/dist/station/charging-profile-registry.js +0 -125
  76. package/dist/station/configuration-commands.d.ts +0 -11
  77. package/dist/station/configuration-commands.js +0 -29
  78. package/dist/station/configuration-registry.d.ts +0 -13
  79. package/dist/station/configuration-registry.js +0 -39
  80. package/dist/station/configuration.d.ts +0 -7
  81. package/dist/station/configuration.js +0 -88
  82. package/dist/station/connector-registry.d.ts +0 -25
  83. package/dist/station/connector-registry.js +0 -89
  84. package/dist/station/connector-status.d.ts +0 -7
  85. package/dist/station/connector-status.js +0 -66
  86. package/dist/station/local-auth-list.d.ts +0 -8
  87. package/dist/station/local-auth-list.js +0 -31
  88. package/dist/station/maintenance-lifecycle.d.ts +0 -25
  89. package/dist/station/maintenance-lifecycle.js +0 -110
  90. package/dist/station/meter-value-scheduler.d.ts +0 -21
  91. package/dist/station/meter-value-scheduler.js +0 -78
  92. package/dist/station/metering.d.ts +0 -15
  93. package/dist/station/metering.js +0 -138
  94. package/dist/station/ocpp-message.d.ts +0 -2
  95. package/dist/station/ocpp-message.js +0 -9
  96. package/dist/station/offline-transaction-sync.d.ts +0 -29
  97. package/dist/station/offline-transaction-sync.js +0 -99
  98. package/dist/station/payload.d.ts +0 -4
  99. package/dist/station/payload.js +0 -12
  100. package/dist/station/persistence.d.ts +0 -28
  101. package/dist/station/persistence.js +0 -206
  102. package/dist/station/reservation-rules.d.ts +0 -3
  103. package/dist/station/reservation-rules.js +0 -18
  104. package/dist/station/reservation-scheduler.d.ts +0 -11
  105. package/dist/station/reservation-scheduler.js +0 -33
  106. package/dist/station/smart-charging.d.ts +0 -45
  107. package/dist/station/smart-charging.js +0 -251
  108. package/dist/station/status-scheduler.d.ts +0 -16
  109. package/dist/station/status-scheduler.js +0 -58
  110. package/dist/station/transaction-message-retry.d.ts +0 -3
  111. package/dist/station/transaction-message-retry.js +0 -7
  112. package/dist/station/transaction-rules.d.ts +0 -7
  113. package/dist/station/transaction-rules.js +0 -34
  114. package/dist/station/trigger-message.d.ts +0 -2
  115. package/dist/station/trigger-message.js +0 -11
  116. package/dist/station-store.d.ts +0 -41
  117. package/dist/station-store.js +0 -104
  118. package/dist/station.d.ts +0 -113
  119. package/dist/station.js +0 -1204
  120. package/dist/tui.d.ts +0 -96
  121. package/dist/tui.js +0 -1656
  122. package/docs/OCPP_1.6J_CONFORMANCE.md +0 -61
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ChangeAvailabilityRequest",
4
- "title": "ChangeAvailabilityRequest",
5
- "type": "object",
6
- "properties": {
7
- "connectorId": {
8
- "type": "integer"
9
- },
10
- "type": {
11
- "type": "string",
12
- "additionalProperties": false,
13
- "enum": [
14
- "Inoperative",
15
- "Operative"
16
- ]
17
- }
18
- },
19
- "additionalProperties": false,
20
- "required": [
21
- "connectorId",
22
- "type"
23
- ]
24
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ChangeAvailabilityResponse",
4
- "title": "ChangeAvailabilityResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Rejected",
13
- "Scheduled"
14
- ]
15
- }
16
- },
17
- "additionalProperties": false,
18
- "required": [
19
- "status"
20
- ]
21
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ChangeConfigurationRequest",
4
- "title": "ChangeConfigurationRequest",
5
- "type": "object",
6
- "properties": {
7
- "key": {
8
- "type": "string",
9
- "maxLength": 50
10
- },
11
- "value": {
12
- "type": "string",
13
- "maxLength": 500
14
- }
15
- },
16
- "additionalProperties": false,
17
- "required": [
18
- "key",
19
- "value"
20
- ]
21
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ChangeConfigurationResponse",
4
- "title": "ChangeConfigurationResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Rejected",
13
- "RebootRequired",
14
- "NotSupported"
15
- ]
16
- }
17
- },
18
- "additionalProperties": false,
19
- "required": [
20
- "status"
21
- ]
22
- }
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ClearCacheRequest",
4
- "title": "ClearCacheRequest",
5
- "type": "object",
6
- "properties": {},
7
- "additionalProperties": false
8
- }
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ClearCacheResponse",
4
- "title": "ClearCacheResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Rejected"
13
- ]
14
- }
15
- },
16
- "additionalProperties": false,
17
- "required": [
18
- "status"
19
- ]
20
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ClearChargingProfileRequest",
4
- "title": "ClearChargingProfileRequest",
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "integer"
9
- },
10
- "connectorId": {
11
- "type": "integer"
12
- },
13
- "chargingProfilePurpose": {
14
- "type": "string",
15
- "additionalProperties": false,
16
- "enum": [
17
- "ChargePointMaxProfile",
18
- "TxDefaultProfile",
19
- "TxProfile"
20
- ]
21
- },
22
- "stackLevel": {
23
- "type": "integer"
24
- }
25
- },
26
- "additionalProperties": false
27
- }
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:ClearChargingProfileResponse",
4
- "title": "ClearChargingProfileResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Unknown"
13
- ]
14
- }
15
- },
16
- "additionalProperties": false,
17
- "required": [
18
- "status"
19
- ]
20
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:DataTransferRequest",
4
- "title": "DataTransferRequest",
5
- "type": "object",
6
- "properties": {
7
- "vendorId": {
8
- "type": "string",
9
- "maxLength": 255
10
- },
11
- "messageId": {
12
- "type": "string",
13
- "maxLength": 50
14
- },
15
- "data": {
16
- "type": "string"
17
- }
18
- },
19
- "additionalProperties": false,
20
- "required": [
21
- "vendorId"
22
- ]
23
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:DataTransferResponse",
4
- "title": "DataTransferResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Rejected",
13
- "UnknownMessageId",
14
- "UnknownVendorId"
15
- ]
16
- },
17
- "data": {
18
- "type": "string"
19
- }
20
- },
21
- "additionalProperties": false,
22
- "required": [
23
- "status"
24
- ]
25
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:DiagnosticsStatusNotificationRequest",
4
- "title": "DiagnosticsStatusNotificationRequest",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Idle",
12
- "Uploaded",
13
- "UploadFailed",
14
- "Uploading"
15
- ]
16
- }
17
- },
18
- "additionalProperties": false,
19
- "required": [
20
- "status"
21
- ]
22
- }
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:DiagnosticsStatusNotificationResponse",
4
- "title": "DiagnosticsStatusNotificationResponse",
5
- "type": "object",
6
- "properties": {},
7
- "additionalProperties": false
8
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationRequest",
4
- "title": "FirmwareStatusNotificationRequest",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Downloaded",
12
- "DownloadFailed",
13
- "Downloading",
14
- "Idle",
15
- "InstallationFailed",
16
- "Installing",
17
- "Installed"
18
- ]
19
- }
20
- },
21
- "additionalProperties": false,
22
- "required": [
23
- "status"
24
- ]
25
- }
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationResponse",
4
- "title": "FirmwareStatusNotificationResponse",
5
- "type": "object",
6
- "properties": {},
7
- "additionalProperties": false
8
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetCompositeScheduleRequest",
4
- "title": "GetCompositeScheduleRequest",
5
- "type": "object",
6
- "properties": {
7
- "connectorId": {
8
- "type": "integer"
9
- },
10
- "duration": {
11
- "type": "integer"
12
- },
13
- "chargingRateUnit": {
14
- "type": "string",
15
- "additionalProperties": false,
16
- "enum": [
17
- "A",
18
- "W"
19
- ]
20
- }
21
- },
22
- "additionalProperties": false,
23
- "required": [
24
- "connectorId",
25
- "duration"
26
- ]
27
- }
@@ -1,79 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetCompositeScheduleResponse",
4
- "title": "GetCompositeScheduleResponse",
5
- "type": "object",
6
- "properties": {
7
- "status": {
8
- "type": "string",
9
- "additionalProperties": false,
10
- "enum": [
11
- "Accepted",
12
- "Rejected"
13
- ]
14
- },
15
- "connectorId": {
16
- "type": "integer"
17
- },
18
- "scheduleStart": {
19
- "type": "string",
20
- "format": "date-time"
21
- },
22
- "chargingSchedule": {
23
- "type": "object",
24
- "properties": {
25
- "duration": {
26
- "type": "integer"
27
- },
28
- "startSchedule": {
29
- "type": "string",
30
- "format": "date-time"
31
- },
32
- "chargingRateUnit": {
33
- "type": "string",
34
- "additionalProperties": false,
35
- "enum": [
36
- "A",
37
- "W"
38
- ]
39
- },
40
- "chargingSchedulePeriod": {
41
- "type": "array",
42
- "items": {
43
- "type": "object",
44
- "properties": {
45
- "startPeriod": {
46
- "type": "integer"
47
- },
48
- "limit": {
49
- "type": "number",
50
- "multipleOf" : 0.1
51
- },
52
- "numberPhases": {
53
- "type": "integer"
54
- }
55
- },
56
- "additionalProperties": false,
57
- "required": [
58
- "startPeriod",
59
- "limit"
60
- ]
61
- }
62
- },
63
- "minChargingRate": {
64
- "type": "number",
65
- "multipleOf" : 0.1
66
- }
67
- },
68
- "additionalProperties": false,
69
- "required": [
70
- "chargingRateUnit",
71
- "chargingSchedulePeriod"
72
- ]
73
- }
74
- },
75
- "additionalProperties": false,
76
- "required": [
77
- "status"
78
- ]
79
- }
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetConfigurationRequest",
4
- "title": "GetConfigurationRequest",
5
- "type": "object",
6
- "properties": {
7
- "key": {
8
- "type": "array",
9
- "items": {
10
- "type": "string",
11
- "maxLength": 50
12
- }
13
- }
14
- },
15
- "additionalProperties": false
16
- }
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetConfigurationResponse",
4
- "title": "GetConfigurationResponse",
5
- "type": "object",
6
- "properties": {
7
- "configurationKey": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "key": {
13
- "type": "string",
14
- "maxLength": 50
15
- },
16
- "readonly": {
17
- "type": "boolean"
18
- },
19
- "value": {
20
- "type": "string",
21
- "maxLength": 500
22
- }
23
- },
24
- "additionalProperties": false,
25
- "required": [
26
- "key",
27
- "readonly"
28
- ]
29
- }
30
- },
31
- "unknownKey": {
32
- "type": "array",
33
- "items": {
34
- "type": "string",
35
- "maxLength": 50
36
- }
37
- }
38
- },
39
- "additionalProperties": false
40
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetDiagnosticsRequest",
4
- "title": "GetDiagnosticsRequest",
5
- "type": "object",
6
- "properties": {
7
- "location": {
8
- "type": "string",
9
- "format": "uri"
10
- },
11
- "retries": {
12
- "type": "integer"
13
- },
14
- "retryInterval": {
15
- "type": "integer"
16
- },
17
- "startTime": {
18
- "type": "string",
19
- "format": "date-time"
20
- },
21
- "stopTime": {
22
- "type": "string",
23
- "format": "date-time"
24
- }
25
- },
26
- "additionalProperties": false,
27
- "required": [
28
- "location"
29
- ]
30
- }
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetDiagnosticsResponse",
4
- "title": "GetDiagnosticsResponse",
5
- "type": "object",
6
- "properties": {
7
- "fileName": {
8
- "type": "string",
9
- "maxLength": 255
10
- }
11
- },
12
- "additionalProperties": false
13
- }
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetLocalListVersionRequest",
4
- "title": "GetLocalListVersionRequest",
5
- "type": "object",
6
- "properties": {},
7
- "additionalProperties": false
8
- }
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:GetLocalListVersionResponse",
4
- "title": "GetLocalListVersionResponse",
5
- "type": "object",
6
- "properties": {
7
- "listVersion": {
8
- "type": "integer"
9
- }
10
- },
11
- "additionalProperties": false,
12
- "required": [
13
- "listVersion"
14
- ]
15
- }
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:HeartbeatRequest",
4
- "title": "HeartbeatRequest",
5
- "type": "object",
6
- "properties": {},
7
- "additionalProperties": false
8
- }
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "id": "urn:OCPP:1.6:2019:12:HeartbeatResponse",
4
- "title": "HeartbeatResponse",
5
- "type": "object",
6
- "properties": {
7
- "currentTime": {
8
- "type": "string",
9
- "format": "date-time"
10
- }
11
- },
12
- "additionalProperties": false,
13
- "required": [
14
- "currentTime"
15
- ]
16
- }