-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
614 lines (532 loc) · 37.7 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
/**
* Generated by scripts/validators-ast.ts */
import { schemas } from "../../schemas";
import { validateOCPPPayload } from "../../validation";
import { type AuthorizeResponseV16, type AuthorizeRequestV16, type BootNotificationResponseV16, type BootNotificationRequestV16, type CancelReservationResponseV16, type CancelReservationRequestV16, type CertificateSignedResponseV16, type CertificateSignedRequestV16, type ChangeAvailabilityResponseV16, type ChangeAvailabilityRequestV16, type ChangeConfigurationResponseV16, type ChangeConfigurationRequestV16, type ClearCacheResponseV16, type ClearCacheRequestV16, type ClearChargingProfileResponseV16, type ClearChargingProfileRequestV16, type DataTransferResponseV16, type DataTransferRequestV16, type DeleteCertificateResponseV16, type DeleteCertificateRequestV16, type DiagnosticsStatusNotificationResponseV16, type DiagnosticsStatusNotificationRequestV16, type ExtendedTriggerMessageResponseV16, type ExtendedTriggerMessageRequestV16, type FirmwareStatusNotificationResponseV16, type FirmwareStatusNotificationRequestV16, type GetCompositeScheduleResponseV16, type GetCompositeScheduleRequestV16, type GetConfigurationResponseV16, type GetConfigurationRequestV16, type GetDiagnosticsResponseV16, type GetDiagnosticsRequestV16, type GetInstalledCertificateIdsResponseV16, type GetInstalledCertificateIdsRequestV16, type GetLocalListVersionResponseV16, type GetLocalListVersionRequestV16, type GetLogResponseV16, type GetLogRequestV16, type HeartbeatResponseV16, type HeartbeatRequestV16, type InstallCertificateResponseV16, type InstallCertificateRequestV16, type LogStatusNotificationResponseV16, type LogStatusNotificationRequestV16, type MeterValuesResponseV16, type MeterValuesRequestV16, type RemoteStartTransactionResponseV16, type RemoteStartTransactionRequestV16, type RemoteStopTransactionResponseV16, type RemoteStopTransactionRequestV16, type ReserveNowResponseV16, type ReserveNowRequestV16, type ResetResponseV16, type ResetRequestV16, type RpcCallErrorV16, type RpcCallResultV16, type RpcCallV16, type SecurityEventNotificationResponseV16, type SecurityEventNotificationRequestV16, type SendLocalListResponseV16, type SendLocalListRequestV16, type SetChargingProfileResponseV16, type SetChargingProfileRequestV16, type SignCertificateResponseV16, type SignCertificateRequestV16, type SignedFirmwareStatusNotificationResponseV16, type SignedFirmwareStatusNotificationRequestV16, type SignedUpdateFirmwareResponseV16, type SignedUpdateFirmwareRequestV16, type StartTransactionResponseV16, type StartTransactionRequestV16, type StatusNotificationResponseV16, type StatusNotificationRequestV16, type StopTransactionResponseV16, type StopTransactionRequestV16, type TriggerMessageResponseV16, type TriggerMessageRequestV16, type UnlockConnectorResponseV16, type UnlockConnectorRequestV16, type UpdateFirmwareResponseV16, type UpdateFirmwareRequestV16 } from "./../../types/v16";
/**
* Validation function for AuthorizeResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidAuthorizeResponseV16 = (data: unknown): data is AuthorizeResponseV16 => validateOCPPPayload(schemas.v16.authorizeResponseV16, data);
/**
* Validation function for AuthorizeRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidAuthorizeRequestV16 = (data: unknown): data is AuthorizeRequestV16 => validateOCPPPayload(schemas.v16.authorizeRequestV16, data);
/**
* Validation function for BootNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidBootNotificationResponseV16 = (data: unknown): data is BootNotificationResponseV16 => validateOCPPPayload(schemas.v16.bootNotificationResponseV16, data);
/**
* Validation function for BootNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidBootNotificationRequestV16 = (data: unknown): data is BootNotificationRequestV16 => validateOCPPPayload(schemas.v16.bootNotificationRequestV16, data);
/**
* Validation function for CancelReservationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidCancelReservationResponseV16 = (data: unknown): data is CancelReservationResponseV16 => validateOCPPPayload(schemas.v16.cancelReservationResponseV16, data);
/**
* Validation function for CancelReservationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidCancelReservationRequestV16 = (data: unknown): data is CancelReservationRequestV16 => validateOCPPPayload(schemas.v16.cancelReservationRequestV16, data);
/**
* Validation function for CertificateSignedResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidCertificateSignedResponseV16 = (data: unknown): data is CertificateSignedResponseV16 => validateOCPPPayload(schemas.v16.certificateSignedResponseV16, data);
/**
* Validation function for CertificateSignedRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidCertificateSignedRequestV16 = (data: unknown): data is CertificateSignedRequestV16 => validateOCPPPayload(schemas.v16.certificateSignedRequestV16, data);
/**
* Validation function for ChangeAvailabilityResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidChangeAvailabilityResponseV16 = (data: unknown): data is ChangeAvailabilityResponseV16 => validateOCPPPayload(schemas.v16.changeAvailabilityResponseV16, data);
/**
* Validation function for ChangeAvailabilityRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidChangeAvailabilityRequestV16 = (data: unknown): data is ChangeAvailabilityRequestV16 => validateOCPPPayload(schemas.v16.changeAvailabilityRequestV16, data);
/**
* Validation function for ChangeConfigurationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidChangeConfigurationResponseV16 = (data: unknown): data is ChangeConfigurationResponseV16 => validateOCPPPayload(schemas.v16.changeConfigurationResponseV16, data);
/**
* Validation function for ChangeConfigurationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidChangeConfigurationRequestV16 = (data: unknown): data is ChangeConfigurationRequestV16 => validateOCPPPayload(schemas.v16.changeConfigurationRequestV16, data);
/**
* Validation function for ClearCacheResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidClearCacheResponseV16 = (data: unknown): data is ClearCacheResponseV16 => validateOCPPPayload(schemas.v16.clearCacheResponseV16, data);
/**
* Validation function for ClearCacheRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidClearCacheRequestV16 = (data: unknown): data is ClearCacheRequestV16 => validateOCPPPayload(schemas.v16.clearCacheRequestV16, data);
/**
* Validation function for ClearChargingProfileResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidClearChargingProfileResponseV16 = (data: unknown): data is ClearChargingProfileResponseV16 => validateOCPPPayload(schemas.v16.clearChargingProfileResponseV16, data);
/**
* Validation function for ClearChargingProfileRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidClearChargingProfileRequestV16 = (data: unknown): data is ClearChargingProfileRequestV16 => validateOCPPPayload(schemas.v16.clearChargingProfileRequestV16, data);
/**
* Validation function for DataTransferResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDataTransferResponseV16 = (data: unknown): data is DataTransferResponseV16 => validateOCPPPayload(schemas.v16.dataTransferResponseV16, data);
/**
* Validation function for DataTransferRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDataTransferRequestV16 = (data: unknown): data is DataTransferRequestV16 => validateOCPPPayload(schemas.v16.dataTransferRequestV16, data);
/**
* Validation function for DeleteCertificateResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDeleteCertificateResponseV16 = (data: unknown): data is DeleteCertificateResponseV16 => validateOCPPPayload(schemas.v16.deleteCertificateResponseV16, data);
/**
* Validation function for DeleteCertificateRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDeleteCertificateRequestV16 = (data: unknown): data is DeleteCertificateRequestV16 => validateOCPPPayload(schemas.v16.deleteCertificateRequestV16, data);
/**
* Validation function for DiagnosticsStatusNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDiagnosticsStatusNotificationResponseV16 = (data: unknown): data is DiagnosticsStatusNotificationResponseV16 => validateOCPPPayload(schemas.v16.diagnosticsStatusNotificationResponseV16, data);
/**
* Validation function for DiagnosticsStatusNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidDiagnosticsStatusNotificationRequestV16 = (data: unknown): data is DiagnosticsStatusNotificationRequestV16 => validateOCPPPayload(schemas.v16.diagnosticsStatusNotificationRequestV16, data);
/**
* Validation function for ExtendedTriggerMessageResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidExtendedTriggerMessageResponseV16 = (data: unknown): data is ExtendedTriggerMessageResponseV16 => validateOCPPPayload(schemas.v16.extendedTriggerMessageResponseV16, data);
/**
* Validation function for ExtendedTriggerMessageRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidExtendedTriggerMessageRequestV16 = (data: unknown): data is ExtendedTriggerMessageRequestV16 => validateOCPPPayload(schemas.v16.extendedTriggerMessageRequestV16, data);
/**
* Validation function for FirmwareStatusNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidFirmwareStatusNotificationResponseV16 = (data: unknown): data is FirmwareStatusNotificationResponseV16 => validateOCPPPayload(schemas.v16.firmwareStatusNotificationResponseV16, data);
/**
* Validation function for FirmwareStatusNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidFirmwareStatusNotificationRequestV16 = (data: unknown): data is FirmwareStatusNotificationRequestV16 => validateOCPPPayload(schemas.v16.firmwareStatusNotificationRequestV16, data);
/**
* Validation function for GetCompositeScheduleResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetCompositeScheduleResponseV16 = (data: unknown): data is GetCompositeScheduleResponseV16 => validateOCPPPayload(schemas.v16.getCompositeScheduleResponseV16, data);
/**
* Validation function for GetCompositeScheduleRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetCompositeScheduleRequestV16 = (data: unknown): data is GetCompositeScheduleRequestV16 => validateOCPPPayload(schemas.v16.getCompositeScheduleRequestV16, data);
/**
* Validation function for GetConfigurationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetConfigurationResponseV16 = (data: unknown): data is GetConfigurationResponseV16 => validateOCPPPayload(schemas.v16.getConfigurationResponseV16, data);
/**
* Validation function for GetConfigurationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetConfigurationRequestV16 = (data: unknown): data is GetConfigurationRequestV16 => validateOCPPPayload(schemas.v16.getConfigurationRequestV16, data);
/**
* Validation function for GetDiagnosticsResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetDiagnosticsResponseV16 = (data: unknown): data is GetDiagnosticsResponseV16 => validateOCPPPayload(schemas.v16.getDiagnosticsResponseV16, data);
/**
* Validation function for GetDiagnosticsRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetDiagnosticsRequestV16 = (data: unknown): data is GetDiagnosticsRequestV16 => validateOCPPPayload(schemas.v16.getDiagnosticsRequestV16, data);
/**
* Validation function for GetInstalledCertificateIdsResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetInstalledCertificateIdsResponseV16 = (data: unknown): data is GetInstalledCertificateIdsResponseV16 => validateOCPPPayload(schemas.v16.getInstalledCertificateIdsResponseV16, data);
/**
* Validation function for GetInstalledCertificateIdsRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetInstalledCertificateIdsRequestV16 = (data: unknown): data is GetInstalledCertificateIdsRequestV16 => validateOCPPPayload(schemas.v16.getInstalledCertificateIdsRequestV16, data);
/**
* Validation function for GetLocalListVersionResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetLocalListVersionResponseV16 = (data: unknown): data is GetLocalListVersionResponseV16 => validateOCPPPayload(schemas.v16.getLocalListVersionResponseV16, data);
/**
* Validation function for GetLocalListVersionRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetLocalListVersionRequestV16 = (data: unknown): data is GetLocalListVersionRequestV16 => validateOCPPPayload(schemas.v16.getLocalListVersionRequestV16, data);
/**
* Validation function for GetLogResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetLogResponseV16 = (data: unknown): data is GetLogResponseV16 => validateOCPPPayload(schemas.v16.getLogResponseV16, data);
/**
* Validation function for GetLogRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidGetLogRequestV16 = (data: unknown): data is GetLogRequestV16 => validateOCPPPayload(schemas.v16.getLogRequestV16, data);
/**
* Validation function for HeartbeatResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidHeartbeatResponseV16 = (data: unknown): data is HeartbeatResponseV16 => validateOCPPPayload(schemas.v16.heartbeatResponseV16, data);
/**
* Validation function for HeartbeatRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidHeartbeatRequestV16 = (data: unknown): data is HeartbeatRequestV16 => validateOCPPPayload(schemas.v16.heartbeatRequestV16, data);
/**
* Validation function for InstallCertificateResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidInstallCertificateResponseV16 = (data: unknown): data is InstallCertificateResponseV16 => validateOCPPPayload(schemas.v16.installCertificateResponseV16, data);
/**
* Validation function for InstallCertificateRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidInstallCertificateRequestV16 = (data: unknown): data is InstallCertificateRequestV16 => validateOCPPPayload(schemas.v16.installCertificateRequestV16, data);
/**
* Validation function for LogStatusNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidLogStatusNotificationResponseV16 = (data: unknown): data is LogStatusNotificationResponseV16 => validateOCPPPayload(schemas.v16.logStatusNotificationResponseV16, data);
/**
* Validation function for LogStatusNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidLogStatusNotificationRequestV16 = (data: unknown): data is LogStatusNotificationRequestV16 => validateOCPPPayload(schemas.v16.logStatusNotificationRequestV16, data);
/**
* Validation function for MeterValuesResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidMeterValuesResponseV16 = (data: unknown): data is MeterValuesResponseV16 => validateOCPPPayload(schemas.v16.meterValuesResponseV16, data);
/**
* Validation function for MeterValuesRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidMeterValuesRequestV16 = (data: unknown): data is MeterValuesRequestV16 => validateOCPPPayload(schemas.v16.meterValuesRequestV16, data);
/**
* Validation function for RemoteStartTransactionResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRemoteStartTransactionResponseV16 = (data: unknown): data is RemoteStartTransactionResponseV16 => validateOCPPPayload(schemas.v16.remoteStartTransactionResponseV16, data);
/**
* Validation function for RemoteStartTransactionRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRemoteStartTransactionRequestV16 = (data: unknown): data is RemoteStartTransactionRequestV16 => validateOCPPPayload(schemas.v16.remoteStartTransactionRequestV16, data);
/**
* Validation function for RemoteStopTransactionResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRemoteStopTransactionResponseV16 = (data: unknown): data is RemoteStopTransactionResponseV16 => validateOCPPPayload(schemas.v16.remoteStopTransactionResponseV16, data);
/**
* Validation function for RemoteStopTransactionRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRemoteStopTransactionRequestV16 = (data: unknown): data is RemoteStopTransactionRequestV16 => validateOCPPPayload(schemas.v16.remoteStopTransactionRequestV16, data);
/**
* Validation function for ReserveNowResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidReserveNowResponseV16 = (data: unknown): data is ReserveNowResponseV16 => validateOCPPPayload(schemas.v16.reserveNowResponseV16, data);
/**
* Validation function for ReserveNowRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidReserveNowRequestV16 = (data: unknown): data is ReserveNowRequestV16 => validateOCPPPayload(schemas.v16.reserveNowRequestV16, data);
/**
* Validation function for ResetResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidResetResponseV16 = (data: unknown): data is ResetResponseV16 => validateOCPPPayload(schemas.v16.resetResponseV16, data);
/**
* Validation function for ResetRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidResetRequestV16 = (data: unknown): data is ResetRequestV16 => validateOCPPPayload(schemas.v16.resetRequestV16, data);
/**
* Validation function for RpcCallErrorV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRpcCallErrorV16 = (data: unknown): data is RpcCallErrorV16 => validateOCPPPayload(schemas.v16.rpcCallErrorV16, data);
/**
* Validation function for RpcCallResultV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRpcCallResultV16 = (data: unknown): data is RpcCallResultV16 => validateOCPPPayload(schemas.v16.rpcCallResultV16, data);
/**
* Validation function for RpcCallV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidRpcCallV16 = (data: unknown): data is RpcCallV16 => validateOCPPPayload(schemas.v16.rpcCallV16, data);
/**
* Validation function for SecurityEventNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSecurityEventNotificationResponseV16 = (data: unknown): data is SecurityEventNotificationResponseV16 => validateOCPPPayload(schemas.v16.securityEventNotificationResponseV16, data);
/**
* Validation function for SecurityEventNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSecurityEventNotificationRequestV16 = (data: unknown): data is SecurityEventNotificationRequestV16 => validateOCPPPayload(schemas.v16.securityEventNotificationRequestV16, data);
/**
* Validation function for SendLocalListResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSendLocalListResponseV16 = (data: unknown): data is SendLocalListResponseV16 => validateOCPPPayload(schemas.v16.sendLocalListResponseV16, data);
/**
* Validation function for SendLocalListRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSendLocalListRequestV16 = (data: unknown): data is SendLocalListRequestV16 => validateOCPPPayload(schemas.v16.sendLocalListRequestV16, data);
/**
* Validation function for SetChargingProfileResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSetChargingProfileResponseV16 = (data: unknown): data is SetChargingProfileResponseV16 => validateOCPPPayload(schemas.v16.setChargingProfileResponseV16, data);
/**
* Validation function for SetChargingProfileRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSetChargingProfileRequestV16 = (data: unknown): data is SetChargingProfileRequestV16 => validateOCPPPayload(schemas.v16.setChargingProfileRequestV16, data);
/**
* Validation function for SignCertificateResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignCertificateResponseV16 = (data: unknown): data is SignCertificateResponseV16 => validateOCPPPayload(schemas.v16.signCertificateResponseV16, data);
/**
* Validation function for SignCertificateRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignCertificateRequestV16 = (data: unknown): data is SignCertificateRequestV16 => validateOCPPPayload(schemas.v16.signCertificateRequestV16, data);
/**
* Validation function for SignedFirmwareStatusNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignedFirmwareStatusNotificationResponseV16 = (data: unknown): data is SignedFirmwareStatusNotificationResponseV16 => validateOCPPPayload(schemas.v16.signedFirmwareStatusNotificationResponseV16, data);
/**
* Validation function for SignedFirmwareStatusNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignedFirmwareStatusNotificationRequestV16 = (data: unknown): data is SignedFirmwareStatusNotificationRequestV16 => validateOCPPPayload(schemas.v16.signedFirmwareStatusNotificationRequestV16, data);
/**
* Validation function for SignedUpdateFirmwareResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignedUpdateFirmwareResponseV16 = (data: unknown): data is SignedUpdateFirmwareResponseV16 => validateOCPPPayload(schemas.v16.signedUpdateFirmwareResponseV16, data);
/**
* Validation function for SignedUpdateFirmwareRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidSignedUpdateFirmwareRequestV16 = (data: unknown): data is SignedUpdateFirmwareRequestV16 => validateOCPPPayload(schemas.v16.signedUpdateFirmwareRequestV16, data);
/**
* Validation function for StartTransactionResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStartTransactionResponseV16 = (data: unknown): data is StartTransactionResponseV16 => validateOCPPPayload(schemas.v16.startTransactionResponseV16, data);
/**
* Validation function for StartTransactionRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStartTransactionRequestV16 = (data: unknown): data is StartTransactionRequestV16 => validateOCPPPayload(schemas.v16.startTransactionRequestV16, data);
/**
* Validation function for StatusNotificationResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStatusNotificationResponseV16 = (data: unknown): data is StatusNotificationResponseV16 => validateOCPPPayload(schemas.v16.statusNotificationResponseV16, data);
/**
* Validation function for StatusNotificationRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStatusNotificationRequestV16 = (data: unknown): data is StatusNotificationRequestV16 => validateOCPPPayload(schemas.v16.statusNotificationRequestV16, data);
/**
* Validation function for StopTransactionResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStopTransactionResponseV16 = (data: unknown): data is StopTransactionResponseV16 => validateOCPPPayload(schemas.v16.stopTransactionResponseV16, data);
/**
* Validation function for StopTransactionRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidStopTransactionRequestV16 = (data: unknown): data is StopTransactionRequestV16 => validateOCPPPayload(schemas.v16.stopTransactionRequestV16, data);
/**
* Validation function for TriggerMessageResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidTriggerMessageResponseV16 = (data: unknown): data is TriggerMessageResponseV16 => validateOCPPPayload(schemas.v16.triggerMessageResponseV16, data);
/**
* Validation function for TriggerMessageRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidTriggerMessageRequestV16 = (data: unknown): data is TriggerMessageRequestV16 => validateOCPPPayload(schemas.v16.triggerMessageRequestV16, data);
/**
* Validation function for UnlockConnectorResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidUnlockConnectorResponseV16 = (data: unknown): data is UnlockConnectorResponseV16 => validateOCPPPayload(schemas.v16.unlockConnectorResponseV16, data);
/**
* Validation function for UnlockConnectorRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidUnlockConnectorRequestV16 = (data: unknown): data is UnlockConnectorRequestV16 => validateOCPPPayload(schemas.v16.unlockConnectorRequestV16, data);
/**
* Validation function for UpdateFirmwareResponseV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidUpdateFirmwareResponseV16 = (data: unknown): data is UpdateFirmwareResponseV16 => validateOCPPPayload(schemas.v16.updateFirmwareResponseV16, data);
/**
* Validation function for UpdateFirmwareRequestV16 using JSON included schema.
* @param { unknown } data JSON decoded payload to validate
* @returns { boolean } true if payload is valid against schema, false otherwise
* */
export const isValidUpdateFirmwareRequestV16 = (data: unknown): data is UpdateFirmwareRequestV16 => validateOCPPPayload(schemas.v16.updateFirmwareRequestV16, data);
export const actionValidatorV16: Record<string, (data: unknown) => boolean> = {
Authorize: isValidAuthorizeRequestV16,
BootNotification: isValidBootNotificationRequestV16,
CancelReservation: isValidCancelReservationRequestV16,
CertificateSigned: isValidCertificateSignedRequestV16,
ChangeAvailability: isValidChangeAvailabilityRequestV16,
ChangeConfiguration: isValidChangeConfigurationRequestV16,
ClearCache: isValidClearCacheRequestV16,
ClearChargingProfile: isValidClearChargingProfileRequestV16,
DataTransfer: isValidDataTransferRequestV16,
DeleteCertificate: isValidDeleteCertificateRequestV16,
DiagnosticsStatusNotification: isValidDiagnosticsStatusNotificationRequestV16,
ExtendedTriggerMessage: isValidExtendedTriggerMessageRequestV16,
FirmwareStatusNotification: isValidFirmwareStatusNotificationRequestV16,
GetCompositeSchedule: isValidGetCompositeScheduleRequestV16,
GetConfiguration: isValidGetConfigurationRequestV16,
GetDiagnostics: isValidGetDiagnosticsRequestV16,
GetInstalledCertificateIds: isValidGetInstalledCertificateIdsRequestV16,
GetLocalListVersion: isValidGetLocalListVersionRequestV16,
GetLog: isValidGetLogRequestV16,
Heartbeat: isValidHeartbeatRequestV16,
InstallCertificate: isValidInstallCertificateRequestV16,
LogStatusNotification: isValidLogStatusNotificationRequestV16,
MeterValues: isValidMeterValuesRequestV16,
RemoteStartTransaction: isValidRemoteStartTransactionRequestV16,
RemoteStopTransaction: isValidRemoteStopTransactionRequestV16,
ReserveNow: isValidReserveNowRequestV16,
Reset: isValidResetRequestV16,
SecurityEventNotification: isValidSecurityEventNotificationRequestV16,
SendLocalList: isValidSendLocalListRequestV16,
SetChargingProfile: isValidSetChargingProfileRequestV16,
SignCertificate: isValidSignCertificateRequestV16,
SignedFirmwareStatusNotification: isValidSignedFirmwareStatusNotificationRequestV16,
SignedUpdateFirmware: isValidSignedUpdateFirmwareRequestV16,
StartTransaction: isValidStartTransactionRequestV16,
StatusNotification: isValidStatusNotificationRequestV16,
StopTransaction: isValidStopTransactionRequestV16,
TriggerMessage: isValidTriggerMessageRequestV16,
UnlockConnector: isValidUnlockConnectorRequestV16,
UpdateFirmware: isValidUpdateFirmwareRequestV16
};