-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
989 lines (857 loc) · 62.1 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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
/**
* Generated by scripts/validators-ast.ts */
import { schemas } from "../../schemas";
import { validateOCPPPayload } from "../../validation";
import { type AuthorizeResponseV201, type AuthorizeRequestV201, type BootNotificationResponseV201, type BootNotificationRequestV201, type CancelReservationResponseV201, type CancelReservationRequestV201, type CertificateSignedResponseV201, type CertificateSignedRequestV201, type ChangeAvailabilityResponseV201, type ChangeAvailabilityRequestV201, type ClearCacheResponseV201, type ClearCacheRequestV201, type ClearChargingProfileResponseV201, type ClearChargingProfileRequestV201, type ClearDisplayMessageResponseV201, type ClearDisplayMessageRequestV201, type ClearVariableMonitoringResponseV201, type ClearVariableMonitoringRequestV201, type ClearedChargingLimitResponseV201, type ClearedChargingLimitRequestV201, type CostUpdatedResponseV201, type CostUpdatedRequestV201, type CustomerInformationResponseV201, type CustomerInformationRequestV201, type DataTransferResponseV201, type DataTransferRequestV201, type DeleteCertificateResponseV201, type DeleteCertificateRequestV201, type FirmwareStatusNotificationResponseV201, type FirmwareStatusNotificationRequestV201, type GetBaseReportResponseV201, type GetBaseReportRequestV201, type GetCertificateStatusResponseV201, type GetCertificateStatusRequestV201, type GetChargingProfilesResponseV201, type GetChargingProfilesRequestV201, type GetCompositeScheduleResponseV201, type GetCompositeScheduleRequestV201, type GetDisplayMessagesResponseV201, type GetDisplayMessagesRequestV201, type GetInstalledCertificateIdsResponseV201, type GetInstalledCertificateIdsRequestV201, type GetLocalListVersionResponseV201, type GetLocalListVersionRequestV201, type GetLogResponseV201, type GetLogRequestV201, type GetMonitoringReportResponseV201, type GetMonitoringReportRequestV201, type GetReportResponseV201, type GetReportRequestV201, type GetTransactionStatusResponseV201, type GetTransactionStatusRequestV201, type GetVariablesResponseV201, type GetVariablesRequestV201, type Get15118EVCertificateResponseV201, type Get15118EVCertificateRequestV201, type HeartbeatResponseV201, type HeartbeatRequestV201, type InstallCertificateResponseV201, type InstallCertificateRequestV201, type LogStatusNotificationResponseV201, type LogStatusNotificationRequestV201, type MeterValuesResponseV201, type MeterValuesRequestV201, type NotifyChargingLimitResponseV201, type NotifyChargingLimitRequestV201, type NotifyCustomerInformationResponseV201, type NotifyCustomerInformationRequestV201, type NotifyDisplayMessagesResponseV201, type NotifyDisplayMessagesRequestV201, type NotifyEVChargingNeedsResponseV201, type NotifyEVChargingNeedsRequestV201, type NotifyEVChargingScheduleResponseV201, type NotifyEVChargingScheduleRequestV201, type NotifyEventResponseV201, type NotifyEventRequestV201, type NotifyMonitoringReportResponseV201, type NotifyMonitoringReportRequestV201, type NotifyReportResponseV201, type NotifyReportRequestV201, type PublishFirmwareResponseV201, type PublishFirmwareStatusNotificationResponseV201, type PublishFirmwareStatusNotificationRequestV201, type PublishFirmwareRequestV201, type ReportChargingProfilesResponseV201, type ReportChargingProfilesRequestV201, type ReservationStatusUpdateResponseV201, type ReservationStatusUpdateRequestV201, type ReserveNowResponseV201, type ReserveNowRequestV201, type ResetResponseV201, type ResetRequestV201, type RpcCallErrorV201, type RpcCallResultV201, type RpcCallV201, type SecurityEventNotificationResponseV201, type SecurityEventNotificationRequestV201, type SendLocalListResponseV201, type SendLocalListRequestV201, type SetChargingProfileResponseV201, type SetChargingProfileRequestV201, type SetDisplayMessageResponseV201, type SetDisplayMessageRequestV201, type SetMonitoringBaseResponseV201, type SetMonitoringBaseRequestV201, type SetMonitoringLevelResponseV201, type SetMonitoringLevelRequestV201, type SetNetworkProfileResponseV201, type SetNetworkProfileRequestV201, type SetVariableMonitoringResponseV201, type SetVariableMonitoringRequestV201, type SetVariablesResponseV201, type SetVariablesRequestV201, type SignCertificateResponseV201, type SignCertificateRequestV201, type RequestStartTransactionResponseV201, type RequestStartTransactionRequestV201, type StatusNotificationResponseV201, type StatusNotificationRequestV201, type RequestStopTransactionResponseV201, type RequestStopTransactionRequestV201, type TransactionEventResponseV201, type TransactionEventRequestV201, type TriggerMessageResponseV201, type TriggerMessageRequestV201, type UnlockConnectorResponseV201, type UnlockConnectorRequestV201, type UnpublishFirmwareResponseV201, type UnpublishFirmwareRequestV201, type UpdateFirmwareResponseV201, type UpdateFirmwareRequestV201 } from "./../../types/v201";
/**
* Validation function for AuthorizeResponseV201 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 isValidAuthorizeResponseV201 = (data: unknown): data is AuthorizeResponseV201 => validateOCPPPayload(schemas.v201.authorizeResponseV201, data);
/**
* Validation function for AuthorizeRequestV201 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 isValidAuthorizeRequestV201 = (data: unknown): data is AuthorizeRequestV201 => validateOCPPPayload(schemas.v201.authorizeRequestV201, data);
/**
* Validation function for BootNotificationResponseV201 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 isValidBootNotificationResponseV201 = (data: unknown): data is BootNotificationResponseV201 => validateOCPPPayload(schemas.v201.bootNotificationResponseV201, data);
/**
* Validation function for BootNotificationRequestV201 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 isValidBootNotificationRequestV201 = (data: unknown): data is BootNotificationRequestV201 => validateOCPPPayload(schemas.v201.bootNotificationRequestV201, data);
/**
* Validation function for CancelReservationResponseV201 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 isValidCancelReservationResponseV201 = (data: unknown): data is CancelReservationResponseV201 => validateOCPPPayload(schemas.v201.cancelReservationResponseV201, data);
/**
* Validation function for CancelReservationRequestV201 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 isValidCancelReservationRequestV201 = (data: unknown): data is CancelReservationRequestV201 => validateOCPPPayload(schemas.v201.cancelReservationRequestV201, data);
/**
* Validation function for CertificateSignedResponseV201 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 isValidCertificateSignedResponseV201 = (data: unknown): data is CertificateSignedResponseV201 => validateOCPPPayload(schemas.v201.certificateSignedResponseV201, data);
/**
* Validation function for CertificateSignedRequestV201 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 isValidCertificateSignedRequestV201 = (data: unknown): data is CertificateSignedRequestV201 => validateOCPPPayload(schemas.v201.certificateSignedRequestV201, data);
/**
* Validation function for ChangeAvailabilityResponseV201 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 isValidChangeAvailabilityResponseV201 = (data: unknown): data is ChangeAvailabilityResponseV201 => validateOCPPPayload(schemas.v201.changeAvailabilityResponseV201, data);
/**
* Validation function for ChangeAvailabilityRequestV201 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 isValidChangeAvailabilityRequestV201 = (data: unknown): data is ChangeAvailabilityRequestV201 => validateOCPPPayload(schemas.v201.changeAvailabilityRequestV201, data);
/**
* Validation function for ClearCacheResponseV201 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 isValidClearCacheResponseV201 = (data: unknown): data is ClearCacheResponseV201 => validateOCPPPayload(schemas.v201.clearCacheResponseV201, data);
/**
* Validation function for ClearCacheRequestV201 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 isValidClearCacheRequestV201 = (data: unknown): data is ClearCacheRequestV201 => validateOCPPPayload(schemas.v201.clearCacheRequestV201, data);
/**
* Validation function for ClearChargingProfileResponseV201 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 isValidClearChargingProfileResponseV201 = (data: unknown): data is ClearChargingProfileResponseV201 => validateOCPPPayload(schemas.v201.clearChargingProfileResponseV201, data);
/**
* Validation function for ClearChargingProfileRequestV201 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 isValidClearChargingProfileRequestV201 = (data: unknown): data is ClearChargingProfileRequestV201 => validateOCPPPayload(schemas.v201.clearChargingProfileRequestV201, data);
/**
* Validation function for ClearDisplayMessageResponseV201 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 isValidClearDisplayMessageResponseV201 = (data: unknown): data is ClearDisplayMessageResponseV201 => validateOCPPPayload(schemas.v201.clearDisplayMessageResponseV201, data);
/**
* Validation function for ClearDisplayMessageRequestV201 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 isValidClearDisplayMessageRequestV201 = (data: unknown): data is ClearDisplayMessageRequestV201 => validateOCPPPayload(schemas.v201.clearDisplayMessageRequestV201, data);
/**
* Validation function for ClearVariableMonitoringResponseV201 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 isValidClearVariableMonitoringResponseV201 = (data: unknown): data is ClearVariableMonitoringResponseV201 => validateOCPPPayload(schemas.v201.clearVariableMonitoringResponseV201, data);
/**
* Validation function for ClearVariableMonitoringRequestV201 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 isValidClearVariableMonitoringRequestV201 = (data: unknown): data is ClearVariableMonitoringRequestV201 => validateOCPPPayload(schemas.v201.clearVariableMonitoringRequestV201, data);
/**
* Validation function for ClearedChargingLimitResponseV201 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 isValidClearedChargingLimitResponseV201 = (data: unknown): data is ClearedChargingLimitResponseV201 => validateOCPPPayload(schemas.v201.clearedChargingLimitResponseV201, data);
/**
* Validation function for ClearedChargingLimitRequestV201 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 isValidClearedChargingLimitRequestV201 = (data: unknown): data is ClearedChargingLimitRequestV201 => validateOCPPPayload(schemas.v201.clearedChargingLimitRequestV201, data);
/**
* Validation function for CostUpdatedResponseV201 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 isValidCostUpdatedResponseV201 = (data: unknown): data is CostUpdatedResponseV201 => validateOCPPPayload(schemas.v201.costUpdatedResponseV201, data);
/**
* Validation function for CostUpdatedRequestV201 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 isValidCostUpdatedRequestV201 = (data: unknown): data is CostUpdatedRequestV201 => validateOCPPPayload(schemas.v201.costUpdatedRequestV201, data);
/**
* Validation function for CustomerInformationResponseV201 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 isValidCustomerInformationResponseV201 = (data: unknown): data is CustomerInformationResponseV201 => validateOCPPPayload(schemas.v201.customerInformationResponseV201, data);
/**
* Validation function for CustomerInformationRequestV201 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 isValidCustomerInformationRequestV201 = (data: unknown): data is CustomerInformationRequestV201 => validateOCPPPayload(schemas.v201.customerInformationRequestV201, data);
/**
* Validation function for DataTransferResponseV201 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 isValidDataTransferResponseV201 = (data: unknown): data is DataTransferResponseV201 => validateOCPPPayload(schemas.v201.dataTransferResponseV201, data);
/**
* Validation function for DataTransferRequestV201 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 isValidDataTransferRequestV201 = (data: unknown): data is DataTransferRequestV201 => validateOCPPPayload(schemas.v201.dataTransferRequestV201, data);
/**
* Validation function for DeleteCertificateResponseV201 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 isValidDeleteCertificateResponseV201 = (data: unknown): data is DeleteCertificateResponseV201 => validateOCPPPayload(schemas.v201.deleteCertificateResponseV201, data);
/**
* Validation function for DeleteCertificateRequestV201 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 isValidDeleteCertificateRequestV201 = (data: unknown): data is DeleteCertificateRequestV201 => validateOCPPPayload(schemas.v201.deleteCertificateRequestV201, data);
/**
* Validation function for FirmwareStatusNotificationResponseV201 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 isValidFirmwareStatusNotificationResponseV201 = (data: unknown): data is FirmwareStatusNotificationResponseV201 => validateOCPPPayload(schemas.v201.firmwareStatusNotificationResponseV201, data);
/**
* Validation function for FirmwareStatusNotificationRequestV201 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 isValidFirmwareStatusNotificationRequestV201 = (data: unknown): data is FirmwareStatusNotificationRequestV201 => validateOCPPPayload(schemas.v201.firmwareStatusNotificationRequestV201, data);
/**
* Validation function for GetBaseReportResponseV201 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 isValidGetBaseReportResponseV201 = (data: unknown): data is GetBaseReportResponseV201 => validateOCPPPayload(schemas.v201.getBaseReportResponseV201, data);
/**
* Validation function for GetBaseReportRequestV201 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 isValidGetBaseReportRequestV201 = (data: unknown): data is GetBaseReportRequestV201 => validateOCPPPayload(schemas.v201.getBaseReportRequestV201, data);
/**
* Validation function for GetCertificateStatusResponseV201 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 isValidGetCertificateStatusResponseV201 = (data: unknown): data is GetCertificateStatusResponseV201 => validateOCPPPayload(schemas.v201.getCertificateStatusResponseV201, data);
/**
* Validation function for GetCertificateStatusRequestV201 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 isValidGetCertificateStatusRequestV201 = (data: unknown): data is GetCertificateStatusRequestV201 => validateOCPPPayload(schemas.v201.getCertificateStatusRequestV201, data);
/**
* Validation function for GetChargingProfilesResponseV201 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 isValidGetChargingProfilesResponseV201 = (data: unknown): data is GetChargingProfilesResponseV201 => validateOCPPPayload(schemas.v201.getChargingProfilesResponseV201, data);
/**
* Validation function for GetChargingProfilesRequestV201 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 isValidGetChargingProfilesRequestV201 = (data: unknown): data is GetChargingProfilesRequestV201 => validateOCPPPayload(schemas.v201.getChargingProfilesRequestV201, data);
/**
* Validation function for GetCompositeScheduleResponseV201 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 isValidGetCompositeScheduleResponseV201 = (data: unknown): data is GetCompositeScheduleResponseV201 => validateOCPPPayload(schemas.v201.getCompositeScheduleResponseV201, data);
/**
* Validation function for GetCompositeScheduleRequestV201 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 isValidGetCompositeScheduleRequestV201 = (data: unknown): data is GetCompositeScheduleRequestV201 => validateOCPPPayload(schemas.v201.getCompositeScheduleRequestV201, data);
/**
* Validation function for GetDisplayMessagesResponseV201 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 isValidGetDisplayMessagesResponseV201 = (data: unknown): data is GetDisplayMessagesResponseV201 => validateOCPPPayload(schemas.v201.getDisplayMessagesResponseV201, data);
/**
* Validation function for GetDisplayMessagesRequestV201 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 isValidGetDisplayMessagesRequestV201 = (data: unknown): data is GetDisplayMessagesRequestV201 => validateOCPPPayload(schemas.v201.getDisplayMessagesRequestV201, data);
/**
* Validation function for GetInstalledCertificateIdsResponseV201 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 isValidGetInstalledCertificateIdsResponseV201 = (data: unknown): data is GetInstalledCertificateIdsResponseV201 => validateOCPPPayload(schemas.v201.getInstalledCertificateIdsResponseV201, data);
/**
* Validation function for GetInstalledCertificateIdsRequestV201 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 isValidGetInstalledCertificateIdsRequestV201 = (data: unknown): data is GetInstalledCertificateIdsRequestV201 => validateOCPPPayload(schemas.v201.getInstalledCertificateIdsRequestV201, data);
/**
* Validation function for GetLocalListVersionResponseV201 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 isValidGetLocalListVersionResponseV201 = (data: unknown): data is GetLocalListVersionResponseV201 => validateOCPPPayload(schemas.v201.getLocalListVersionResponseV201, data);
/**
* Validation function for GetLocalListVersionRequestV201 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 isValidGetLocalListVersionRequestV201 = (data: unknown): data is GetLocalListVersionRequestV201 => validateOCPPPayload(schemas.v201.getLocalListVersionRequestV201, data);
/**
* Validation function for GetLogResponseV201 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 isValidGetLogResponseV201 = (data: unknown): data is GetLogResponseV201 => validateOCPPPayload(schemas.v201.getLogResponseV201, data);
/**
* Validation function for GetLogRequestV201 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 isValidGetLogRequestV201 = (data: unknown): data is GetLogRequestV201 => validateOCPPPayload(schemas.v201.getLogRequestV201, data);
/**
* Validation function for GetMonitoringReportResponseV201 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 isValidGetMonitoringReportResponseV201 = (data: unknown): data is GetMonitoringReportResponseV201 => validateOCPPPayload(schemas.v201.getMonitoringReportResponseV201, data);
/**
* Validation function for GetMonitoringReportRequestV201 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 isValidGetMonitoringReportRequestV201 = (data: unknown): data is GetMonitoringReportRequestV201 => validateOCPPPayload(schemas.v201.getMonitoringReportRequestV201, data);
/**
* Validation function for GetReportResponseV201 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 isValidGetReportResponseV201 = (data: unknown): data is GetReportResponseV201 => validateOCPPPayload(schemas.v201.getReportResponseV201, data);
/**
* Validation function for GetReportRequestV201 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 isValidGetReportRequestV201 = (data: unknown): data is GetReportRequestV201 => validateOCPPPayload(schemas.v201.getReportRequestV201, data);
/**
* Validation function for GetTransactionStatusResponseV201 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 isValidGetTransactionStatusResponseV201 = (data: unknown): data is GetTransactionStatusResponseV201 => validateOCPPPayload(schemas.v201.getTransactionStatusResponseV201, data);
/**
* Validation function for GetTransactionStatusRequestV201 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 isValidGetTransactionStatusRequestV201 = (data: unknown): data is GetTransactionStatusRequestV201 => validateOCPPPayload(schemas.v201.getTransactionStatusRequestV201, data);
/**
* Validation function for GetVariablesResponseV201 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 isValidGetVariablesResponseV201 = (data: unknown): data is GetVariablesResponseV201 => validateOCPPPayload(schemas.v201.getVariablesResponseV201, data);
/**
* Validation function for GetVariablesRequestV201 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 isValidGetVariablesRequestV201 = (data: unknown): data is GetVariablesRequestV201 => validateOCPPPayload(schemas.v201.getVariablesRequestV201, data);
/**
* Validation function for Get15118EVCertificateResponseV201 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 isValidGet15118EVCertificateResponseV201 = (data: unknown): data is Get15118EVCertificateResponseV201 => validateOCPPPayload(schemas.v201.get15118EVCertificateResponseV201, data);
/**
* Validation function for Get15118EVCertificateRequestV201 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 isValidGet15118EVCertificateRequestV201 = (data: unknown): data is Get15118EVCertificateRequestV201 => validateOCPPPayload(schemas.v201.get15118EVCertificateRequestV201, data);
/**
* Validation function for HeartbeatResponseV201 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 isValidHeartbeatResponseV201 = (data: unknown): data is HeartbeatResponseV201 => validateOCPPPayload(schemas.v201.heartbeatResponseV201, data);
/**
* Validation function for HeartbeatRequestV201 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 isValidHeartbeatRequestV201 = (data: unknown): data is HeartbeatRequestV201 => validateOCPPPayload(schemas.v201.heartbeatRequestV201, data);
/**
* Validation function for InstallCertificateResponseV201 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 isValidInstallCertificateResponseV201 = (data: unknown): data is InstallCertificateResponseV201 => validateOCPPPayload(schemas.v201.installCertificateResponseV201, data);
/**
* Validation function for InstallCertificateRequestV201 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 isValidInstallCertificateRequestV201 = (data: unknown): data is InstallCertificateRequestV201 => validateOCPPPayload(schemas.v201.installCertificateRequestV201, data);
/**
* Validation function for LogStatusNotificationResponseV201 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 isValidLogStatusNotificationResponseV201 = (data: unknown): data is LogStatusNotificationResponseV201 => validateOCPPPayload(schemas.v201.logStatusNotificationResponseV201, data);
/**
* Validation function for LogStatusNotificationRequestV201 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 isValidLogStatusNotificationRequestV201 = (data: unknown): data is LogStatusNotificationRequestV201 => validateOCPPPayload(schemas.v201.logStatusNotificationRequestV201, data);
/**
* Validation function for MeterValuesResponseV201 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 isValidMeterValuesResponseV201 = (data: unknown): data is MeterValuesResponseV201 => validateOCPPPayload(schemas.v201.meterValuesResponseV201, data);
/**
* Validation function for MeterValuesRequestV201 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 isValidMeterValuesRequestV201 = (data: unknown): data is MeterValuesRequestV201 => validateOCPPPayload(schemas.v201.meterValuesRequestV201, data);
/**
* Validation function for NotifyChargingLimitResponseV201 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 isValidNotifyChargingLimitResponseV201 = (data: unknown): data is NotifyChargingLimitResponseV201 => validateOCPPPayload(schemas.v201.notifyChargingLimitResponseV201, data);
/**
* Validation function for NotifyChargingLimitRequestV201 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 isValidNotifyChargingLimitRequestV201 = (data: unknown): data is NotifyChargingLimitRequestV201 => validateOCPPPayload(schemas.v201.notifyChargingLimitRequestV201, data);
/**
* Validation function for NotifyCustomerInformationResponseV201 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 isValidNotifyCustomerInformationResponseV201 = (data: unknown): data is NotifyCustomerInformationResponseV201 => validateOCPPPayload(schemas.v201.notifyCustomerInformationResponseV201, data);
/**
* Validation function for NotifyCustomerInformationRequestV201 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 isValidNotifyCustomerInformationRequestV201 = (data: unknown): data is NotifyCustomerInformationRequestV201 => validateOCPPPayload(schemas.v201.notifyCustomerInformationRequestV201, data);
/**
* Validation function for NotifyDisplayMessagesResponseV201 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 isValidNotifyDisplayMessagesResponseV201 = (data: unknown): data is NotifyDisplayMessagesResponseV201 => validateOCPPPayload(schemas.v201.notifyDisplayMessagesResponseV201, data);
/**
* Validation function for NotifyDisplayMessagesRequestV201 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 isValidNotifyDisplayMessagesRequestV201 = (data: unknown): data is NotifyDisplayMessagesRequestV201 => validateOCPPPayload(schemas.v201.notifyDisplayMessagesRequestV201, data);
/**
* Validation function for NotifyEVChargingNeedsResponseV201 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 isValidNotifyEVChargingNeedsResponseV201 = (data: unknown): data is NotifyEVChargingNeedsResponseV201 => validateOCPPPayload(schemas.v201.notifyEVChargingNeedsResponseV201, data);
/**
* Validation function for NotifyEVChargingNeedsRequestV201 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 isValidNotifyEVChargingNeedsRequestV201 = (data: unknown): data is NotifyEVChargingNeedsRequestV201 => validateOCPPPayload(schemas.v201.notifyEVChargingNeedsRequestV201, data);
/**
* Validation function for NotifyEVChargingScheduleResponseV201 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 isValidNotifyEVChargingScheduleResponseV201 = (data: unknown): data is NotifyEVChargingScheduleResponseV201 => validateOCPPPayload(schemas.v201.notifyEVChargingScheduleResponseV201, data);
/**
* Validation function for NotifyEVChargingScheduleRequestV201 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 isValidNotifyEVChargingScheduleRequestV201 = (data: unknown): data is NotifyEVChargingScheduleRequestV201 => validateOCPPPayload(schemas.v201.notifyEVChargingScheduleRequestV201, data);
/**
* Validation function for NotifyEventResponseV201 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 isValidNotifyEventResponseV201 = (data: unknown): data is NotifyEventResponseV201 => validateOCPPPayload(schemas.v201.notifyEventResponseV201, data);
/**
* Validation function for NotifyEventRequestV201 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 isValidNotifyEventRequestV201 = (data: unknown): data is NotifyEventRequestV201 => validateOCPPPayload(schemas.v201.notifyEventRequestV201, data);
/**
* Validation function for NotifyMonitoringReportResponseV201 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 isValidNotifyMonitoringReportResponseV201 = (data: unknown): data is NotifyMonitoringReportResponseV201 => validateOCPPPayload(schemas.v201.notifyMonitoringReportResponseV201, data);
/**
* Validation function for NotifyMonitoringReportRequestV201 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 isValidNotifyMonitoringReportRequestV201 = (data: unknown): data is NotifyMonitoringReportRequestV201 => validateOCPPPayload(schemas.v201.notifyMonitoringReportRequestV201, data);
/**
* Validation function for NotifyReportResponseV201 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 isValidNotifyReportResponseV201 = (data: unknown): data is NotifyReportResponseV201 => validateOCPPPayload(schemas.v201.notifyReportResponseV201, data);
/**
* Validation function for NotifyReportRequestV201 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 isValidNotifyReportRequestV201 = (data: unknown): data is NotifyReportRequestV201 => validateOCPPPayload(schemas.v201.notifyReportRequestV201, data);
/**
* Validation function for PublishFirmwareResponseV201 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 isValidPublishFirmwareResponseV201 = (data: unknown): data is PublishFirmwareResponseV201 => validateOCPPPayload(schemas.v201.publishFirmwareResponseV201, data);
/**
* Validation function for PublishFirmwareStatusNotificationResponseV201 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 isValidPublishFirmwareStatusNotificationResponseV201 = (data: unknown): data is PublishFirmwareStatusNotificationResponseV201 => validateOCPPPayload(schemas.v201.publishFirmwareStatusNotificationResponseV201, data);
/**
* Validation function for PublishFirmwareStatusNotificationRequestV201 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 isValidPublishFirmwareStatusNotificationRequestV201 = (data: unknown): data is PublishFirmwareStatusNotificationRequestV201 => validateOCPPPayload(schemas.v201.publishFirmwareStatusNotificationRequestV201, data);
/**
* Validation function for PublishFirmwareRequestV201 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 isValidPublishFirmwareRequestV201 = (data: unknown): data is PublishFirmwareRequestV201 => validateOCPPPayload(schemas.v201.publishFirmwareRequestV201, data);
/**
* Validation function for ReportChargingProfilesResponseV201 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 isValidReportChargingProfilesResponseV201 = (data: unknown): data is ReportChargingProfilesResponseV201 => validateOCPPPayload(schemas.v201.reportChargingProfilesResponseV201, data);
/**
* Validation function for ReportChargingProfilesRequestV201 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 isValidReportChargingProfilesRequestV201 = (data: unknown): data is ReportChargingProfilesRequestV201 => validateOCPPPayload(schemas.v201.reportChargingProfilesRequestV201, data);
/**
* Validation function for ReservationStatusUpdateResponseV201 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 isValidReservationStatusUpdateResponseV201 = (data: unknown): data is ReservationStatusUpdateResponseV201 => validateOCPPPayload(schemas.v201.reservationStatusUpdateResponseV201, data);
/**
* Validation function for ReservationStatusUpdateRequestV201 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 isValidReservationStatusUpdateRequestV201 = (data: unknown): data is ReservationStatusUpdateRequestV201 => validateOCPPPayload(schemas.v201.reservationStatusUpdateRequestV201, data);
/**
* Validation function for ReserveNowResponseV201 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 isValidReserveNowResponseV201 = (data: unknown): data is ReserveNowResponseV201 => validateOCPPPayload(schemas.v201.reserveNowResponseV201, data);
/**
* Validation function for ReserveNowRequestV201 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 isValidReserveNowRequestV201 = (data: unknown): data is ReserveNowRequestV201 => validateOCPPPayload(schemas.v201.reserveNowRequestV201, data);
/**
* Validation function for ResetResponseV201 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 isValidResetResponseV201 = (data: unknown): data is ResetResponseV201 => validateOCPPPayload(schemas.v201.resetResponseV201, data);
/**
* Validation function for ResetRequestV201 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 isValidResetRequestV201 = (data: unknown): data is ResetRequestV201 => validateOCPPPayload(schemas.v201.resetRequestV201, data);
/**
* Validation function for RpcCallErrorV201 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 isValidRpcCallErrorV201 = (data: unknown): data is RpcCallErrorV201 => validateOCPPPayload(schemas.v201.rpcCallErrorV201, data);
/**
* Validation function for RpcCallResultV201 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 isValidRpcCallResultV201 = (data: unknown): data is RpcCallResultV201 => validateOCPPPayload(schemas.v201.rpcCallResultV201, data);
/**
* Validation function for RpcCallV201 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 isValidRpcCallV201 = (data: unknown): data is RpcCallV201 => validateOCPPPayload(schemas.v201.rpcCallV201, data);
/**
* Validation function for SecurityEventNotificationResponseV201 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 isValidSecurityEventNotificationResponseV201 = (data: unknown): data is SecurityEventNotificationResponseV201 => validateOCPPPayload(schemas.v201.securityEventNotificationResponseV201, data);
/**
* Validation function for SecurityEventNotificationRequestV201 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 isValidSecurityEventNotificationRequestV201 = (data: unknown): data is SecurityEventNotificationRequestV201 => validateOCPPPayload(schemas.v201.securityEventNotificationRequestV201, data);
/**
* Validation function for SendLocalListResponseV201 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 isValidSendLocalListResponseV201 = (data: unknown): data is SendLocalListResponseV201 => validateOCPPPayload(schemas.v201.sendLocalListResponseV201, data);
/**
* Validation function for SendLocalListRequestV201 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 isValidSendLocalListRequestV201 = (data: unknown): data is SendLocalListRequestV201 => validateOCPPPayload(schemas.v201.sendLocalListRequestV201, data);
/**
* Validation function for SetChargingProfileResponseV201 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 isValidSetChargingProfileResponseV201 = (data: unknown): data is SetChargingProfileResponseV201 => validateOCPPPayload(schemas.v201.setChargingProfileResponseV201, data);
/**
* Validation function for SetChargingProfileRequestV201 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 isValidSetChargingProfileRequestV201 = (data: unknown): data is SetChargingProfileRequestV201 => validateOCPPPayload(schemas.v201.setChargingProfileRequestV201, data);
/**
* Validation function for SetDisplayMessageResponseV201 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 isValidSetDisplayMessageResponseV201 = (data: unknown): data is SetDisplayMessageResponseV201 => validateOCPPPayload(schemas.v201.setDisplayMessageResponseV201, data);
/**
* Validation function for SetDisplayMessageRequestV201 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 isValidSetDisplayMessageRequestV201 = (data: unknown): data is SetDisplayMessageRequestV201 => validateOCPPPayload(schemas.v201.setDisplayMessageRequestV201, data);
/**
* Validation function for SetMonitoringBaseResponseV201 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 isValidSetMonitoringBaseResponseV201 = (data: unknown): data is SetMonitoringBaseResponseV201 => validateOCPPPayload(schemas.v201.setMonitoringBaseResponseV201, data);
/**
* Validation function for SetMonitoringBaseRequestV201 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 isValidSetMonitoringBaseRequestV201 = (data: unknown): data is SetMonitoringBaseRequestV201 => validateOCPPPayload(schemas.v201.setMonitoringBaseRequestV201, data);
/**
* Validation function for SetMonitoringLevelResponseV201 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 isValidSetMonitoringLevelResponseV201 = (data: unknown): data is SetMonitoringLevelResponseV201 => validateOCPPPayload(schemas.v201.setMonitoringLevelResponseV201, data);
/**
* Validation function for SetMonitoringLevelRequestV201 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 isValidSetMonitoringLevelRequestV201 = (data: unknown): data is SetMonitoringLevelRequestV201 => validateOCPPPayload(schemas.v201.setMonitoringLevelRequestV201, data);
/**
* Validation function for SetNetworkProfileResponseV201 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 isValidSetNetworkProfileResponseV201 = (data: unknown): data is SetNetworkProfileResponseV201 => validateOCPPPayload(schemas.v201.setNetworkProfileResponseV201, data);
/**
* Validation function for SetNetworkProfileRequestV201 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 isValidSetNetworkProfileRequestV201 = (data: unknown): data is SetNetworkProfileRequestV201 => validateOCPPPayload(schemas.v201.setNetworkProfileRequestV201, data);
/**
* Validation function for SetVariableMonitoringResponseV201 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 isValidSetVariableMonitoringResponseV201 = (data: unknown): data is SetVariableMonitoringResponseV201 => validateOCPPPayload(schemas.v201.setVariableMonitoringResponseV201, data);
/**
* Validation function for SetVariableMonitoringRequestV201 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 isValidSetVariableMonitoringRequestV201 = (data: unknown): data is SetVariableMonitoringRequestV201 => validateOCPPPayload(schemas.v201.setVariableMonitoringRequestV201, data);
/**
* Validation function for SetVariablesResponseV201 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 isValidSetVariablesResponseV201 = (data: unknown): data is SetVariablesResponseV201 => validateOCPPPayload(schemas.v201.setVariablesResponseV201, data);
/**
* Validation function for SetVariablesRequestV201 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 isValidSetVariablesRequestV201 = (data: unknown): data is SetVariablesRequestV201 => validateOCPPPayload(schemas.v201.setVariablesRequestV201, data);
/**
* Validation function for SignCertificateResponseV201 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 isValidSignCertificateResponseV201 = (data: unknown): data is SignCertificateResponseV201 => validateOCPPPayload(schemas.v201.signCertificateResponseV201, data);
/**
* Validation function for SignCertificateRequestV201 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 isValidSignCertificateRequestV201 = (data: unknown): data is SignCertificateRequestV201 => validateOCPPPayload(schemas.v201.signCertificateRequestV201, data);
/**
* Validation function for RequestStartTransactionResponseV201 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 isValidRequestStartTransactionResponseV201 = (data: unknown): data is RequestStartTransactionResponseV201 => validateOCPPPayload(schemas.v201.requestStartTransactionResponseV201, data);
/**
* Validation function for RequestStartTransactionRequestV201 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 isValidRequestStartTransactionRequestV201 = (data: unknown): data is RequestStartTransactionRequestV201 => validateOCPPPayload(schemas.v201.requestStartTransactionRequestV201, data);
/**
* Validation function for StatusNotificationResponseV201 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 isValidStatusNotificationResponseV201 = (data: unknown): data is StatusNotificationResponseV201 => validateOCPPPayload(schemas.v201.statusNotificationResponseV201, data);
/**
* Validation function for StatusNotificationRequestV201 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 isValidStatusNotificationRequestV201 = (data: unknown): data is StatusNotificationRequestV201 => validateOCPPPayload(schemas.v201.statusNotificationRequestV201, data);
/**
* Validation function for RequestStopTransactionResponseV201 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 isValidRequestStopTransactionResponseV201 = (data: unknown): data is RequestStopTransactionResponseV201 => validateOCPPPayload(schemas.v201.requestStopTransactionResponseV201, data);
/**
* Validation function for RequestStopTransactionRequestV201 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 isValidRequestStopTransactionRequestV201 = (data: unknown): data is RequestStopTransactionRequestV201 => validateOCPPPayload(schemas.v201.requestStopTransactionRequestV201, data);
/**
* Validation function for TransactionEventResponseV201 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 isValidTransactionEventResponseV201 = (data: unknown): data is TransactionEventResponseV201 => validateOCPPPayload(schemas.v201.transactionEventResponseV201, data);
/**
* Validation function for TransactionEventRequestV201 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 isValidTransactionEventRequestV201 = (data: unknown): data is TransactionEventRequestV201 => validateOCPPPayload(schemas.v201.transactionEventRequestV201, data);
/**
* Validation function for TriggerMessageResponseV201 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 isValidTriggerMessageResponseV201 = (data: unknown): data is TriggerMessageResponseV201 => validateOCPPPayload(schemas.v201.triggerMessageResponseV201, data);
/**
* Validation function for TriggerMessageRequestV201 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 isValidTriggerMessageRequestV201 = (data: unknown): data is TriggerMessageRequestV201 => validateOCPPPayload(schemas.v201.triggerMessageRequestV201, data);
/**
* Validation function for UnlockConnectorResponseV201 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 isValidUnlockConnectorResponseV201 = (data: unknown): data is UnlockConnectorResponseV201 => validateOCPPPayload(schemas.v201.unlockConnectorResponseV201, data);
/**
* Validation function for UnlockConnectorRequestV201 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 isValidUnlockConnectorRequestV201 = (data: unknown): data is UnlockConnectorRequestV201 => validateOCPPPayload(schemas.v201.unlockConnectorRequestV201, data);
/**
* Validation function for UnpublishFirmwareResponseV201 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 isValidUnpublishFirmwareResponseV201 = (data: unknown): data is UnpublishFirmwareResponseV201 => validateOCPPPayload(schemas.v201.unpublishFirmwareResponseV201, data);
/**
* Validation function for UnpublishFirmwareRequestV201 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 isValidUnpublishFirmwareRequestV201 = (data: unknown): data is UnpublishFirmwareRequestV201 => validateOCPPPayload(schemas.v201.unpublishFirmwareRequestV201, data);
/**
* Validation function for UpdateFirmwareResponseV201 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 isValidUpdateFirmwareResponseV201 = (data: unknown): data is UpdateFirmwareResponseV201 => validateOCPPPayload(schemas.v201.updateFirmwareResponseV201, data);
/**
* Validation function for UpdateFirmwareRequestV201 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 isValidUpdateFirmwareRequestV201 = (data: unknown): data is UpdateFirmwareRequestV201 => validateOCPPPayload(schemas.v201.updateFirmwareRequestV201, data);
export const actionValidatorV201: Record<string, (data: unknown) => boolean> = {
Authorize: isValidAuthorizeRequestV201,
BootNotification: isValidBootNotificationRequestV201,
CancelReservation: isValidCancelReservationRequestV201,
CertificateSigned: isValidCertificateSignedRequestV201,
ChangeAvailability: isValidChangeAvailabilityRequestV201,
ClearCache: isValidClearCacheRequestV201,
ClearChargingProfile: isValidClearChargingProfileRequestV201,
ClearDisplayMessage: isValidClearDisplayMessageRequestV201,
ClearVariableMonitoring: isValidClearVariableMonitoringRequestV201,
ClearedChargingLimit: isValidClearedChargingLimitRequestV201,
CostUpdated: isValidCostUpdatedRequestV201,
CustomerInformation: isValidCustomerInformationRequestV201,
DataTransfer: isValidDataTransferRequestV201,
DeleteCertificate: isValidDeleteCertificateRequestV201,
FirmwareStatusNotification: isValidFirmwareStatusNotificationRequestV201,
GetBaseReport: isValidGetBaseReportRequestV201,
GetCertificateStatus: isValidGetCertificateStatusRequestV201,
GetChargingProfiles: isValidGetChargingProfilesRequestV201,
GetCompositeSchedule: isValidGetCompositeScheduleRequestV201,
GetDisplayMessages: isValidGetDisplayMessagesRequestV201,
GetInstalledCertificateIds: isValidGetInstalledCertificateIdsRequestV201,
GetLocalListVersion: isValidGetLocalListVersionRequestV201,
GetLog: isValidGetLogRequestV201,
GetMonitoringReport: isValidGetMonitoringReportRequestV201,
GetReport: isValidGetReportRequestV201,
GetTransactionStatus: isValidGetTransactionStatusRequestV201,
GetVariables: isValidGetVariablesRequestV201,
Get15118EVCertificate: isValidGet15118EVCertificateRequestV201,
Heartbeat: isValidHeartbeatRequestV201,
InstallCertificate: isValidInstallCertificateRequestV201,
LogStatusNotification: isValidLogStatusNotificationRequestV201,
MeterValues: isValidMeterValuesRequestV201,
NotifyChargingLimit: isValidNotifyChargingLimitRequestV201,
NotifyCustomerInformation: isValidNotifyCustomerInformationRequestV201,
NotifyDisplayMessages: isValidNotifyDisplayMessagesRequestV201,
NotifyEVChargingNeeds: isValidNotifyEVChargingNeedsRequestV201,
NotifyEVChargingSchedule: isValidNotifyEVChargingScheduleRequestV201,
NotifyEvent: isValidNotifyEventRequestV201,
NotifyMonitoringReport: isValidNotifyMonitoringReportRequestV201,
NotifyReport: isValidNotifyReportRequestV201,
PublishFirmwareStatusNotification: isValidPublishFirmwareStatusNotificationRequestV201,
PublishFirmware: isValidPublishFirmwareRequestV201,
ReportChargingProfiles: isValidReportChargingProfilesRequestV201,
ReservationStatusUpdate: isValidReservationStatusUpdateRequestV201,
ReserveNow: isValidReserveNowRequestV201,
Reset: isValidResetRequestV201,
SecurityEventNotification: isValidSecurityEventNotificationRequestV201,
SendLocalList: isValidSendLocalListRequestV201,
SetChargingProfile: isValidSetChargingProfileRequestV201,
SetDisplayMessage: isValidSetDisplayMessageRequestV201,
SetMonitoringBase: isValidSetMonitoringBaseRequestV201,
SetMonitoringLevel: isValidSetMonitoringLevelRequestV201,
SetNetworkProfile: isValidSetNetworkProfileRequestV201,
SetVariableMonitoring: isValidSetVariableMonitoringRequestV201,
SetVariables: isValidSetVariablesRequestV201,
SignCertificate: isValidSignCertificateRequestV201,
RequestStartTransaction: isValidRequestStartTransactionRequestV201,
StatusNotification: isValidStatusNotificationRequestV201,
RequestStopTransaction: isValidRequestStopTransactionRequestV201,
TransactionEvent: isValidTransactionEventRequestV201,
TriggerMessage: isValidTriggerMessageRequestV201,
UnlockConnector: isValidUnlockConnectorRequestV201,
UnpublishFirmware: isValidUnpublishFirmwareRequestV201,
UpdateFirmware: isValidUpdateFirmwareRequestV201
};