@salesforce/lds-adapters-revenue-usage-detail 1.366.0 → 1.367.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/revenue-usage-detail.js +2120 -199
- package/dist/es/es2018/types/src/generated/adapters/getGrantBindingUsageDetails.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/resources/getCommerceUsageManagementBindingTargetUsageDetailsByGrantBindingTargetId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/BindingObjectDetailOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/BindingObjectGrantDetailOutputRepresentation.d.ts +63 -0
- package/dist/es/es2018/types/src/generated/types/BindingObjectRateOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/BindingObjectResourceGrantAndPolicyDetailOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/BindingObjectResourcePolicyDetailOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/BindingTargetRateAdjustmentsOutputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/LookupDetailOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/NegotiatedGrantDetailOutputRepresentation.d.ts +15 -1
- package/dist/es/es2018/types/src/generated/types/PolicyDetailOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/UsageDetailBindingTargetOutputRepresentation.d.ts +34 -0
- package/package.json +3 -3
- package/sfdc/index.js +2264 -343
- package/src/raml/api.raml +186 -1
- package/src/raml/luvio.raml +2 -0
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$f = "e0ac6bf27e20d64b8c2926f058c43ea4";
|
|
116
|
+
function validate$f(obj, path = 'UsageDetailErrorResponseRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -136,10 +136,10 @@ function validate$7(obj, path = 'UsageDetailErrorResponseRepresentation') {
|
|
|
136
136
|
})();
|
|
137
137
|
return v_error === undefined ? null : v_error;
|
|
138
138
|
}
|
|
139
|
-
const select$
|
|
139
|
+
const select$j = function UsageDetailErrorResponseRepresentationSelect() {
|
|
140
140
|
return {
|
|
141
141
|
kind: 'Fragment',
|
|
142
|
-
version: VERSION$
|
|
142
|
+
version: VERSION$f,
|
|
143
143
|
private: [],
|
|
144
144
|
selections: [
|
|
145
145
|
{
|
|
@@ -157,7 +157,7 @@ const select$b = function UsageDetailErrorResponseRepresentationSelect() {
|
|
|
157
157
|
]
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
function equals$
|
|
160
|
+
function equals$f(existing, incoming) {
|
|
161
161
|
const existing_errorCode = existing.errorCode;
|
|
162
162
|
const incoming_errorCode = incoming.errorCode;
|
|
163
163
|
if (!(existing_errorCode === incoming_errorCode)) {
|
|
@@ -176,8 +176,8 @@ function equals$7(existing, incoming) {
|
|
|
176
176
|
return true;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const VERSION$
|
|
180
|
-
function validate$
|
|
179
|
+
const VERSION$e = "52841d9c877e06c71e0dcddc6196cee0";
|
|
180
|
+
function validate$e(obj, path = 'RateAdjustmentsOutputRepresentation') {
|
|
181
181
|
const v_error = (() => {
|
|
182
182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
183
183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -388,10 +388,10 @@ function validate$6(obj, path = 'RateAdjustmentsOutputRepresentation') {
|
|
|
388
388
|
})();
|
|
389
389
|
return v_error === undefined ? null : v_error;
|
|
390
390
|
}
|
|
391
|
-
const select$
|
|
391
|
+
const select$i = function RateAdjustmentsOutputRepresentationSelect() {
|
|
392
392
|
return {
|
|
393
393
|
kind: 'Fragment',
|
|
394
|
-
version: VERSION$
|
|
394
|
+
version: VERSION$e,
|
|
395
395
|
private: [],
|
|
396
396
|
selections: [
|
|
397
397
|
{
|
|
@@ -434,7 +434,7 @@ const select$a = function RateAdjustmentsOutputRepresentationSelect() {
|
|
|
434
434
|
]
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
|
-
function equals$
|
|
437
|
+
function equals$e(existing, incoming) {
|
|
438
438
|
const existing_rateAdjustmentId = existing.rateAdjustmentId;
|
|
439
439
|
const incoming_rateAdjustmentId = incoming.rateAdjustmentId;
|
|
440
440
|
if (!(existing_rateAdjustmentId === incoming_rateAdjustmentId)) {
|
|
@@ -496,12 +496,257 @@ function equals$6(existing, incoming) {
|
|
|
496
496
|
return true;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
const VERSION$
|
|
500
|
-
function validate$
|
|
499
|
+
const VERSION$d = "67d5675e279ac0732188db24dd3b572b";
|
|
500
|
+
function validate$d(obj, path = 'LookupDetailOutputRepresentation') {
|
|
501
|
+
const v_error = (() => {
|
|
502
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
503
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
504
|
+
}
|
|
505
|
+
const obj_displayName = obj.displayName;
|
|
506
|
+
const path_displayName = path + '.displayName';
|
|
507
|
+
let obj_displayName_union0 = null;
|
|
508
|
+
const obj_displayName_union0_error = (() => {
|
|
509
|
+
if (typeof obj_displayName !== 'string') {
|
|
510
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
511
|
+
}
|
|
512
|
+
})();
|
|
513
|
+
if (obj_displayName_union0_error != null) {
|
|
514
|
+
obj_displayName_union0 = obj_displayName_union0_error.message;
|
|
515
|
+
}
|
|
516
|
+
let obj_displayName_union1 = null;
|
|
517
|
+
const obj_displayName_union1_error = (() => {
|
|
518
|
+
if (obj_displayName !== null) {
|
|
519
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
520
|
+
}
|
|
521
|
+
})();
|
|
522
|
+
if (obj_displayName_union1_error != null) {
|
|
523
|
+
obj_displayName_union1 = obj_displayName_union1_error.message;
|
|
524
|
+
}
|
|
525
|
+
if (obj_displayName_union0 && obj_displayName_union1) {
|
|
526
|
+
let message = 'Object doesn\'t match union (at "' + path_displayName + '")';
|
|
527
|
+
message += '\n' + obj_displayName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
528
|
+
message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
529
|
+
return new TypeError(message);
|
|
530
|
+
}
|
|
531
|
+
const obj_id = obj.id;
|
|
532
|
+
const path_id = path + '.id';
|
|
533
|
+
let obj_id_union0 = null;
|
|
534
|
+
const obj_id_union0_error = (() => {
|
|
535
|
+
if (typeof obj_id !== 'string') {
|
|
536
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
537
|
+
}
|
|
538
|
+
})();
|
|
539
|
+
if (obj_id_union0_error != null) {
|
|
540
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
541
|
+
}
|
|
542
|
+
let obj_id_union1 = null;
|
|
543
|
+
const obj_id_union1_error = (() => {
|
|
544
|
+
if (obj_id !== null) {
|
|
545
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
546
|
+
}
|
|
547
|
+
})();
|
|
548
|
+
if (obj_id_union1_error != null) {
|
|
549
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
550
|
+
}
|
|
551
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
552
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
553
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
554
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
555
|
+
return new TypeError(message);
|
|
556
|
+
}
|
|
557
|
+
})();
|
|
558
|
+
return v_error === undefined ? null : v_error;
|
|
559
|
+
}
|
|
560
|
+
const select$h = function LookupDetailOutputRepresentationSelect() {
|
|
561
|
+
return {
|
|
562
|
+
kind: 'Fragment',
|
|
563
|
+
version: VERSION$d,
|
|
564
|
+
private: [],
|
|
565
|
+
selections: [
|
|
566
|
+
{
|
|
567
|
+
name: 'displayName',
|
|
568
|
+
kind: 'Scalar'
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: 'id',
|
|
572
|
+
kind: 'Scalar'
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
function equals$d(existing, incoming) {
|
|
578
|
+
const existing_displayName = existing.displayName;
|
|
579
|
+
const incoming_displayName = incoming.displayName;
|
|
580
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
581
|
+
return false;
|
|
582
|
+
}
|
|
583
|
+
const existing_id = existing.id;
|
|
584
|
+
const incoming_id = incoming.id;
|
|
585
|
+
if (!(existing_id === incoming_id)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
return true;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
const VERSION$c = "f35bcd3f15926a483d2a5af34de1a329";
|
|
592
|
+
function validate$c(obj, path = 'PolicyDetailOutputRepresentation') {
|
|
593
|
+
const v_error = (() => {
|
|
594
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
596
|
+
}
|
|
597
|
+
const obj_displayName = obj.displayName;
|
|
598
|
+
const path_displayName = path + '.displayName';
|
|
599
|
+
let obj_displayName_union0 = null;
|
|
600
|
+
const obj_displayName_union0_error = (() => {
|
|
601
|
+
if (typeof obj_displayName !== 'string') {
|
|
602
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
603
|
+
}
|
|
604
|
+
})();
|
|
605
|
+
if (obj_displayName_union0_error != null) {
|
|
606
|
+
obj_displayName_union0 = obj_displayName_union0_error.message;
|
|
607
|
+
}
|
|
608
|
+
let obj_displayName_union1 = null;
|
|
609
|
+
const obj_displayName_union1_error = (() => {
|
|
610
|
+
if (obj_displayName !== null) {
|
|
611
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
612
|
+
}
|
|
613
|
+
})();
|
|
614
|
+
if (obj_displayName_union1_error != null) {
|
|
615
|
+
obj_displayName_union1 = obj_displayName_union1_error.message;
|
|
616
|
+
}
|
|
617
|
+
if (obj_displayName_union0 && obj_displayName_union1) {
|
|
618
|
+
let message = 'Object doesn\'t match union (at "' + path_displayName + '")';
|
|
619
|
+
message += '\n' + obj_displayName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
620
|
+
message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
621
|
+
return new TypeError(message);
|
|
622
|
+
}
|
|
623
|
+
const obj_id = obj.id;
|
|
624
|
+
const path_id = path + '.id';
|
|
625
|
+
let obj_id_union0 = null;
|
|
626
|
+
const obj_id_union0_error = (() => {
|
|
627
|
+
if (typeof obj_id !== 'string') {
|
|
628
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
629
|
+
}
|
|
630
|
+
})();
|
|
631
|
+
if (obj_id_union0_error != null) {
|
|
632
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
633
|
+
}
|
|
634
|
+
let obj_id_union1 = null;
|
|
635
|
+
const obj_id_union1_error = (() => {
|
|
636
|
+
if (obj_id !== null) {
|
|
637
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
638
|
+
}
|
|
639
|
+
})();
|
|
640
|
+
if (obj_id_union1_error != null) {
|
|
641
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
642
|
+
}
|
|
643
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
644
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
645
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
646
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
647
|
+
return new TypeError(message);
|
|
648
|
+
}
|
|
649
|
+
const obj_negotiable = obj.negotiable;
|
|
650
|
+
const path_negotiable = path + '.negotiable';
|
|
651
|
+
let obj_negotiable_union0 = null;
|
|
652
|
+
const obj_negotiable_union0_error = (() => {
|
|
653
|
+
if (typeof obj_negotiable !== 'string') {
|
|
654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_negotiable + '" (at "' + path_negotiable + '")');
|
|
655
|
+
}
|
|
656
|
+
})();
|
|
657
|
+
if (obj_negotiable_union0_error != null) {
|
|
658
|
+
obj_negotiable_union0 = obj_negotiable_union0_error.message;
|
|
659
|
+
}
|
|
660
|
+
let obj_negotiable_union1 = null;
|
|
661
|
+
const obj_negotiable_union1_error = (() => {
|
|
662
|
+
if (obj_negotiable !== null) {
|
|
663
|
+
return new TypeError('Expected "null" but received "' + typeof obj_negotiable + '" (at "' + path_negotiable + '")');
|
|
664
|
+
}
|
|
665
|
+
})();
|
|
666
|
+
if (obj_negotiable_union1_error != null) {
|
|
667
|
+
obj_negotiable_union1 = obj_negotiable_union1_error.message;
|
|
668
|
+
}
|
|
669
|
+
if (obj_negotiable_union0 && obj_negotiable_union1) {
|
|
670
|
+
let message = 'Object doesn\'t match union (at "' + path_negotiable + '")';
|
|
671
|
+
message += '\n' + obj_negotiable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
672
|
+
message += '\n' + obj_negotiable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
673
|
+
return new TypeError(message);
|
|
674
|
+
}
|
|
675
|
+
})();
|
|
676
|
+
return v_error === undefined ? null : v_error;
|
|
677
|
+
}
|
|
678
|
+
const select$g = function PolicyDetailOutputRepresentationSelect() {
|
|
679
|
+
return {
|
|
680
|
+
kind: 'Fragment',
|
|
681
|
+
version: VERSION$c,
|
|
682
|
+
private: [],
|
|
683
|
+
selections: [
|
|
684
|
+
{
|
|
685
|
+
name: 'displayName',
|
|
686
|
+
kind: 'Scalar'
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
name: 'id',
|
|
690
|
+
kind: 'Scalar'
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: 'negotiable',
|
|
694
|
+
kind: 'Scalar'
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
function equals$c(existing, incoming) {
|
|
700
|
+
const existing_displayName = existing.displayName;
|
|
701
|
+
const incoming_displayName = incoming.displayName;
|
|
702
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
705
|
+
const existing_id = existing.id;
|
|
706
|
+
const incoming_id = incoming.id;
|
|
707
|
+
if (!(existing_id === incoming_id)) {
|
|
708
|
+
return false;
|
|
709
|
+
}
|
|
710
|
+
const existing_negotiable = existing.negotiable;
|
|
711
|
+
const incoming_negotiable = incoming.negotiable;
|
|
712
|
+
if (!(existing_negotiable === incoming_negotiable)) {
|
|
713
|
+
return false;
|
|
714
|
+
}
|
|
715
|
+
return true;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
const VERSION$b = "28276a3ccb2e90df6b8142faa95261aa";
|
|
719
|
+
function validate$b(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
501
720
|
const v_error = (() => {
|
|
502
721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
503
722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
504
723
|
}
|
|
724
|
+
const obj_grantType = obj.grantType;
|
|
725
|
+
const path_grantType = path + '.grantType';
|
|
726
|
+
let obj_grantType_union0 = null;
|
|
727
|
+
const obj_grantType_union0_error = (() => {
|
|
728
|
+
if (typeof obj_grantType !== 'string') {
|
|
729
|
+
return new TypeError('Expected "string" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
730
|
+
}
|
|
731
|
+
})();
|
|
732
|
+
if (obj_grantType_union0_error != null) {
|
|
733
|
+
obj_grantType_union0 = obj_grantType_union0_error.message;
|
|
734
|
+
}
|
|
735
|
+
let obj_grantType_union1 = null;
|
|
736
|
+
const obj_grantType_union1_error = (() => {
|
|
737
|
+
if (obj_grantType !== null) {
|
|
738
|
+
return new TypeError('Expected "null" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
739
|
+
}
|
|
740
|
+
})();
|
|
741
|
+
if (obj_grantType_union1_error != null) {
|
|
742
|
+
obj_grantType_union1 = obj_grantType_union1_error.message;
|
|
743
|
+
}
|
|
744
|
+
if (obj_grantType_union0 && obj_grantType_union1) {
|
|
745
|
+
let message = 'Object doesn\'t match union (at "' + path_grantType + '")';
|
|
746
|
+
message += '\n' + obj_grantType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
747
|
+
message += '\n' + obj_grantType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
748
|
+
return new TypeError(message);
|
|
749
|
+
}
|
|
505
750
|
const obj_quantity = obj.quantity;
|
|
506
751
|
const path_quantity = path + '.quantity';
|
|
507
752
|
let obj_quantity_union0 = null;
|
|
@@ -528,6 +773,35 @@ function validate$5(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
528
773
|
message += '\n' + obj_quantity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
529
774
|
return new TypeError(message);
|
|
530
775
|
}
|
|
776
|
+
const obj_record = obj.record;
|
|
777
|
+
const path_record = path + '.record';
|
|
778
|
+
let obj_record_union0 = null;
|
|
779
|
+
const obj_record_union0_error = (() => {
|
|
780
|
+
const referencepath_recordValidationError = validate$d(obj_record, path_record);
|
|
781
|
+
if (referencepath_recordValidationError !== null) {
|
|
782
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_record + '")\n';
|
|
783
|
+
message += referencepath_recordValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
784
|
+
return new TypeError(message);
|
|
785
|
+
}
|
|
786
|
+
})();
|
|
787
|
+
if (obj_record_union0_error != null) {
|
|
788
|
+
obj_record_union0 = obj_record_union0_error.message;
|
|
789
|
+
}
|
|
790
|
+
let obj_record_union1 = null;
|
|
791
|
+
const obj_record_union1_error = (() => {
|
|
792
|
+
if (obj_record !== null) {
|
|
793
|
+
return new TypeError('Expected "null" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
794
|
+
}
|
|
795
|
+
})();
|
|
796
|
+
if (obj_record_union1_error != null) {
|
|
797
|
+
obj_record_union1 = obj_record_union1_error.message;
|
|
798
|
+
}
|
|
799
|
+
if (obj_record_union0 && obj_record_union1) {
|
|
800
|
+
let message = 'Object doesn\'t match union (at "' + path_record + '")';
|
|
801
|
+
message += '\n' + obj_record_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
802
|
+
message += '\n' + obj_record_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
803
|
+
return new TypeError(message);
|
|
804
|
+
}
|
|
531
805
|
const obj_usageGrantNegotiable = obj.usageGrantNegotiable;
|
|
532
806
|
const path_usageGrantNegotiable = path + '.usageGrantNegotiable';
|
|
533
807
|
let obj_usageGrantNegotiable_union0 = null;
|
|
@@ -554,6 +828,64 @@ function validate$5(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
554
828
|
message += '\n' + obj_usageGrantNegotiable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
555
829
|
return new TypeError(message);
|
|
556
830
|
}
|
|
831
|
+
const obj_usageRefreshPolicy = obj.usageRefreshPolicy;
|
|
832
|
+
const path_usageRefreshPolicy = path + '.usageRefreshPolicy';
|
|
833
|
+
let obj_usageRefreshPolicy_union0 = null;
|
|
834
|
+
const obj_usageRefreshPolicy_union0_error = (() => {
|
|
835
|
+
const referencepath_usageRefreshPolicyValidationError = validate$c(obj_usageRefreshPolicy, path_usageRefreshPolicy);
|
|
836
|
+
if (referencepath_usageRefreshPolicyValidationError !== null) {
|
|
837
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRefreshPolicy + '")\n';
|
|
838
|
+
message += referencepath_usageRefreshPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
839
|
+
return new TypeError(message);
|
|
840
|
+
}
|
|
841
|
+
})();
|
|
842
|
+
if (obj_usageRefreshPolicy_union0_error != null) {
|
|
843
|
+
obj_usageRefreshPolicy_union0 = obj_usageRefreshPolicy_union0_error.message;
|
|
844
|
+
}
|
|
845
|
+
let obj_usageRefreshPolicy_union1 = null;
|
|
846
|
+
const obj_usageRefreshPolicy_union1_error = (() => {
|
|
847
|
+
if (obj_usageRefreshPolicy !== null) {
|
|
848
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRefreshPolicy + '" (at "' + path_usageRefreshPolicy + '")');
|
|
849
|
+
}
|
|
850
|
+
})();
|
|
851
|
+
if (obj_usageRefreshPolicy_union1_error != null) {
|
|
852
|
+
obj_usageRefreshPolicy_union1 = obj_usageRefreshPolicy_union1_error.message;
|
|
853
|
+
}
|
|
854
|
+
if (obj_usageRefreshPolicy_union0 && obj_usageRefreshPolicy_union1) {
|
|
855
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRefreshPolicy + '")';
|
|
856
|
+
message += '\n' + obj_usageRefreshPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
857
|
+
message += '\n' + obj_usageRefreshPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
858
|
+
return new TypeError(message);
|
|
859
|
+
}
|
|
860
|
+
const obj_usageRolloverPolicy = obj.usageRolloverPolicy;
|
|
861
|
+
const path_usageRolloverPolicy = path + '.usageRolloverPolicy';
|
|
862
|
+
let obj_usageRolloverPolicy_union0 = null;
|
|
863
|
+
const obj_usageRolloverPolicy_union0_error = (() => {
|
|
864
|
+
const referencepath_usageRolloverPolicyValidationError = validate$c(obj_usageRolloverPolicy, path_usageRolloverPolicy);
|
|
865
|
+
if (referencepath_usageRolloverPolicyValidationError !== null) {
|
|
866
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRolloverPolicy + '")\n';
|
|
867
|
+
message += referencepath_usageRolloverPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
868
|
+
return new TypeError(message);
|
|
869
|
+
}
|
|
870
|
+
})();
|
|
871
|
+
if (obj_usageRolloverPolicy_union0_error != null) {
|
|
872
|
+
obj_usageRolloverPolicy_union0 = obj_usageRolloverPolicy_union0_error.message;
|
|
873
|
+
}
|
|
874
|
+
let obj_usageRolloverPolicy_union1 = null;
|
|
875
|
+
const obj_usageRolloverPolicy_union1_error = (() => {
|
|
876
|
+
if (obj_usageRolloverPolicy !== null) {
|
|
877
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRolloverPolicy + '" (at "' + path_usageRolloverPolicy + '")');
|
|
878
|
+
}
|
|
879
|
+
})();
|
|
880
|
+
if (obj_usageRolloverPolicy_union1_error != null) {
|
|
881
|
+
obj_usageRolloverPolicy_union1 = obj_usageRolloverPolicy_union1_error.message;
|
|
882
|
+
}
|
|
883
|
+
if (obj_usageRolloverPolicy_union0 && obj_usageRolloverPolicy_union1) {
|
|
884
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRolloverPolicy + '")';
|
|
885
|
+
message += '\n' + obj_usageRolloverPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
886
|
+
message += '\n' + obj_usageRolloverPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
887
|
+
return new TypeError(message);
|
|
888
|
+
}
|
|
557
889
|
const obj_validityPeriodTerm = obj.validityPeriodTerm;
|
|
558
890
|
const path_validityPeriodTerm = path + '.validityPeriodTerm';
|
|
559
891
|
let obj_validityPeriodTerm_union0 = null;
|
|
@@ -609,20 +941,44 @@ function validate$5(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
609
941
|
})();
|
|
610
942
|
return v_error === undefined ? null : v_error;
|
|
611
943
|
}
|
|
612
|
-
const select$
|
|
944
|
+
const select$f = function NegotiatedGrantDetailOutputRepresentationSelect() {
|
|
945
|
+
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$h();
|
|
946
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$g();
|
|
613
947
|
return {
|
|
614
948
|
kind: 'Fragment',
|
|
615
|
-
version: VERSION$
|
|
949
|
+
version: VERSION$b,
|
|
616
950
|
private: [],
|
|
617
951
|
selections: [
|
|
952
|
+
{
|
|
953
|
+
name: 'grantType',
|
|
954
|
+
kind: 'Scalar'
|
|
955
|
+
},
|
|
618
956
|
{
|
|
619
957
|
name: 'quantity',
|
|
620
958
|
kind: 'Scalar'
|
|
621
959
|
},
|
|
960
|
+
{
|
|
961
|
+
name: 'record',
|
|
962
|
+
kind: 'Object',
|
|
963
|
+
nullable: true,
|
|
964
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
965
|
+
},
|
|
622
966
|
{
|
|
623
967
|
name: 'usageGrantNegotiable',
|
|
624
968
|
kind: 'Scalar'
|
|
625
969
|
},
|
|
970
|
+
{
|
|
971
|
+
name: 'usageRefreshPolicy',
|
|
972
|
+
kind: 'Object',
|
|
973
|
+
nullable: true,
|
|
974
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
name: 'usageRolloverPolicy',
|
|
978
|
+
kind: 'Object',
|
|
979
|
+
nullable: true,
|
|
980
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
981
|
+
},
|
|
626
982
|
{
|
|
627
983
|
name: 'validityPeriodTerm',
|
|
628
984
|
kind: 'Scalar'
|
|
@@ -634,17 +990,46 @@ const select$9 = function NegotiatedGrantDetailOutputRepresentationSelect() {
|
|
|
634
990
|
]
|
|
635
991
|
};
|
|
636
992
|
};
|
|
637
|
-
function equals$
|
|
993
|
+
function equals$b(existing, incoming) {
|
|
994
|
+
const existing_grantType = existing.grantType;
|
|
995
|
+
const incoming_grantType = incoming.grantType;
|
|
996
|
+
if (!(existing_grantType === incoming_grantType)) {
|
|
997
|
+
return false;
|
|
998
|
+
}
|
|
638
999
|
const existing_quantity = existing.quantity;
|
|
639
1000
|
const incoming_quantity = incoming.quantity;
|
|
640
1001
|
if (!(existing_quantity === incoming_quantity)) {
|
|
641
1002
|
return false;
|
|
642
1003
|
}
|
|
1004
|
+
const existing_record = existing.record;
|
|
1005
|
+
const incoming_record = incoming.record;
|
|
1006
|
+
if (!(existing_record === incoming_record
|
|
1007
|
+
|| (existing_record != null &&
|
|
1008
|
+
incoming_record != null &&
|
|
1009
|
+
equals$d(existing_record, incoming_record)))) {
|
|
1010
|
+
return false;
|
|
1011
|
+
}
|
|
643
1012
|
const existing_usageGrantNegotiable = existing.usageGrantNegotiable;
|
|
644
1013
|
const incoming_usageGrantNegotiable = incoming.usageGrantNegotiable;
|
|
645
1014
|
if (!(existing_usageGrantNegotiable === incoming_usageGrantNegotiable)) {
|
|
646
1015
|
return false;
|
|
647
1016
|
}
|
|
1017
|
+
const existing_usageRefreshPolicy = existing.usageRefreshPolicy;
|
|
1018
|
+
const incoming_usageRefreshPolicy = incoming.usageRefreshPolicy;
|
|
1019
|
+
if (!(existing_usageRefreshPolicy === incoming_usageRefreshPolicy
|
|
1020
|
+
|| (existing_usageRefreshPolicy != null &&
|
|
1021
|
+
incoming_usageRefreshPolicy != null &&
|
|
1022
|
+
equals$c(existing_usageRefreshPolicy, incoming_usageRefreshPolicy)))) {
|
|
1023
|
+
return false;
|
|
1024
|
+
}
|
|
1025
|
+
const existing_usageRolloverPolicy = existing.usageRolloverPolicy;
|
|
1026
|
+
const incoming_usageRolloverPolicy = incoming.usageRolloverPolicy;
|
|
1027
|
+
if (!(existing_usageRolloverPolicy === incoming_usageRolloverPolicy
|
|
1028
|
+
|| (existing_usageRolloverPolicy != null &&
|
|
1029
|
+
incoming_usageRolloverPolicy != null &&
|
|
1030
|
+
equals$c(existing_usageRolloverPolicy, incoming_usageRolloverPolicy)))) {
|
|
1031
|
+
return false;
|
|
1032
|
+
}
|
|
648
1033
|
const existing_validityPeriodTerm = existing.validityPeriodTerm;
|
|
649
1034
|
const incoming_validityPeriodTerm = incoming.validityPeriodTerm;
|
|
650
1035
|
if (!(existing_validityPeriodTerm === incoming_validityPeriodTerm)) {
|
|
@@ -658,115 +1043,23 @@ function equals$5(existing, incoming) {
|
|
|
658
1043
|
return true;
|
|
659
1044
|
}
|
|
660
1045
|
|
|
661
|
-
const VERSION$
|
|
662
|
-
function validate$
|
|
1046
|
+
const VERSION$a = "07a37bae7ee83b942c78731de94dce06";
|
|
1047
|
+
function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
663
1048
|
const v_error = (() => {
|
|
664
1049
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
665
1050
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
666
1051
|
}
|
|
667
|
-
const
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
})();
|
|
675
|
-
if (obj_id_union0_error != null) {
|
|
676
|
-
obj_id_union0 = obj_id_union0_error.message;
|
|
677
|
-
}
|
|
678
|
-
let obj_id_union1 = null;
|
|
679
|
-
const obj_id_union1_error = (() => {
|
|
680
|
-
if (obj_id !== null) {
|
|
681
|
-
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
682
|
-
}
|
|
683
|
-
})();
|
|
684
|
-
if (obj_id_union1_error != null) {
|
|
685
|
-
obj_id_union1 = obj_id_union1_error.message;
|
|
686
|
-
}
|
|
687
|
-
if (obj_id_union0 && obj_id_union1) {
|
|
688
|
-
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
689
|
-
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
690
|
-
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
691
|
-
return new TypeError(message);
|
|
692
|
-
}
|
|
693
|
-
const obj_negotiable = obj.negotiable;
|
|
694
|
-
const path_negotiable = path + '.negotiable';
|
|
695
|
-
let obj_negotiable_union0 = null;
|
|
696
|
-
const obj_negotiable_union0_error = (() => {
|
|
697
|
-
if (typeof obj_negotiable !== 'string') {
|
|
698
|
-
return new TypeError('Expected "string" but received "' + typeof obj_negotiable + '" (at "' + path_negotiable + '")');
|
|
699
|
-
}
|
|
700
|
-
})();
|
|
701
|
-
if (obj_negotiable_union0_error != null) {
|
|
702
|
-
obj_negotiable_union0 = obj_negotiable_union0_error.message;
|
|
703
|
-
}
|
|
704
|
-
let obj_negotiable_union1 = null;
|
|
705
|
-
const obj_negotiable_union1_error = (() => {
|
|
706
|
-
if (obj_negotiable !== null) {
|
|
707
|
-
return new TypeError('Expected "null" but received "' + typeof obj_negotiable + '" (at "' + path_negotiable + '")');
|
|
708
|
-
}
|
|
709
|
-
})();
|
|
710
|
-
if (obj_negotiable_union1_error != null) {
|
|
711
|
-
obj_negotiable_union1 = obj_negotiable_union1_error.message;
|
|
712
|
-
}
|
|
713
|
-
if (obj_negotiable_union0 && obj_negotiable_union1) {
|
|
714
|
-
let message = 'Object doesn\'t match union (at "' + path_negotiable + '")';
|
|
715
|
-
message += '\n' + obj_negotiable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
716
|
-
message += '\n' + obj_negotiable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
717
|
-
return new TypeError(message);
|
|
718
|
-
}
|
|
719
|
-
})();
|
|
720
|
-
return v_error === undefined ? null : v_error;
|
|
721
|
-
}
|
|
722
|
-
const select$8 = function PolicyDetailOutputRepresentationSelect() {
|
|
723
|
-
return {
|
|
724
|
-
kind: 'Fragment',
|
|
725
|
-
version: VERSION$4,
|
|
726
|
-
private: [],
|
|
727
|
-
selections: [
|
|
728
|
-
{
|
|
729
|
-
name: 'id',
|
|
730
|
-
kind: 'Scalar'
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
name: 'negotiable',
|
|
734
|
-
kind: 'Scalar'
|
|
735
|
-
}
|
|
736
|
-
]
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
|
-
function equals$4(existing, incoming) {
|
|
740
|
-
const existing_id = existing.id;
|
|
741
|
-
const incoming_id = incoming.id;
|
|
742
|
-
if (!(existing_id === incoming_id)) {
|
|
743
|
-
return false;
|
|
744
|
-
}
|
|
745
|
-
const existing_negotiable = existing.negotiable;
|
|
746
|
-
const incoming_negotiable = incoming.negotiable;
|
|
747
|
-
if (!(existing_negotiable === incoming_negotiable)) {
|
|
748
|
-
return false;
|
|
749
|
-
}
|
|
750
|
-
return true;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
const VERSION$3 = "07a37bae7ee83b942c78731de94dce06";
|
|
754
|
-
function validate$3(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
755
|
-
const v_error = (() => {
|
|
756
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
757
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
758
|
-
}
|
|
759
|
-
const obj_ratingFrequencyPolicy = obj.ratingFrequencyPolicy;
|
|
760
|
-
const path_ratingFrequencyPolicy = path + '.ratingFrequencyPolicy';
|
|
761
|
-
const referencepath_ratingFrequencyPolicyValidationError = validate$4(obj_ratingFrequencyPolicy, path_ratingFrequencyPolicy);
|
|
762
|
-
if (referencepath_ratingFrequencyPolicyValidationError !== null) {
|
|
763
|
-
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_ratingFrequencyPolicy + '")\n';
|
|
764
|
-
message += referencepath_ratingFrequencyPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
765
|
-
return new TypeError(message);
|
|
1052
|
+
const obj_ratingFrequencyPolicy = obj.ratingFrequencyPolicy;
|
|
1053
|
+
const path_ratingFrequencyPolicy = path + '.ratingFrequencyPolicy';
|
|
1054
|
+
const referencepath_ratingFrequencyPolicyValidationError = validate$c(obj_ratingFrequencyPolicy, path_ratingFrequencyPolicy);
|
|
1055
|
+
if (referencepath_ratingFrequencyPolicyValidationError !== null) {
|
|
1056
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_ratingFrequencyPolicy + '")\n';
|
|
1057
|
+
message += referencepath_ratingFrequencyPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1058
|
+
return new TypeError(message);
|
|
766
1059
|
}
|
|
767
1060
|
const obj_usageAggregationPolicy = obj.usageAggregationPolicy;
|
|
768
1061
|
const path_usageAggregationPolicy = path + '.usageAggregationPolicy';
|
|
769
|
-
const referencepath_usageAggregationPolicyValidationError = validate$
|
|
1062
|
+
const referencepath_usageAggregationPolicyValidationError = validate$c(obj_usageAggregationPolicy, path_usageAggregationPolicy);
|
|
770
1063
|
if (referencepath_usageAggregationPolicyValidationError !== null) {
|
|
771
1064
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageAggregationPolicy + '")\n';
|
|
772
1065
|
message += referencepath_usageAggregationPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -774,7 +1067,7 @@ function validate$3(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
774
1067
|
}
|
|
775
1068
|
const obj_usageCommitmentPolicy = obj.usageCommitmentPolicy;
|
|
776
1069
|
const path_usageCommitmentPolicy = path + '.usageCommitmentPolicy';
|
|
777
|
-
const referencepath_usageCommitmentPolicyValidationError = validate$
|
|
1070
|
+
const referencepath_usageCommitmentPolicyValidationError = validate$c(obj_usageCommitmentPolicy, path_usageCommitmentPolicy);
|
|
778
1071
|
if (referencepath_usageCommitmentPolicyValidationError !== null) {
|
|
779
1072
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageCommitmentPolicy + '")\n';
|
|
780
1073
|
message += referencepath_usageCommitmentPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -782,7 +1075,7 @@ function validate$3(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
782
1075
|
}
|
|
783
1076
|
const obj_usageOveragePolicy = obj.usageOveragePolicy;
|
|
784
1077
|
const path_usageOveragePolicy = path + '.usageOveragePolicy';
|
|
785
|
-
const referencepath_usageOveragePolicyValidationError = validate$
|
|
1078
|
+
const referencepath_usageOveragePolicyValidationError = validate$c(obj_usageOveragePolicy, path_usageOveragePolicy);
|
|
786
1079
|
if (referencepath_usageOveragePolicyValidationError !== null) {
|
|
787
1080
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageOveragePolicy + '")\n';
|
|
788
1081
|
message += referencepath_usageOveragePolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -791,11 +1084,11 @@ function validate$3(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
791
1084
|
})();
|
|
792
1085
|
return v_error === undefined ? null : v_error;
|
|
793
1086
|
}
|
|
794
|
-
const select$
|
|
795
|
-
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$
|
|
1087
|
+
const select$e = function ResourcePolicyDetailOutputRepresentationSelect() {
|
|
1088
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$g();
|
|
796
1089
|
return {
|
|
797
1090
|
kind: 'Fragment',
|
|
798
|
-
version: VERSION$
|
|
1091
|
+
version: VERSION$a,
|
|
799
1092
|
private: [],
|
|
800
1093
|
selections: [
|
|
801
1094
|
{
|
|
@@ -821,32 +1114,32 @@ const select$7 = function ResourcePolicyDetailOutputRepresentationSelect() {
|
|
|
821
1114
|
]
|
|
822
1115
|
};
|
|
823
1116
|
};
|
|
824
|
-
function equals$
|
|
1117
|
+
function equals$a(existing, incoming) {
|
|
825
1118
|
const existing_ratingFrequencyPolicy = existing.ratingFrequencyPolicy;
|
|
826
1119
|
const incoming_ratingFrequencyPolicy = incoming.ratingFrequencyPolicy;
|
|
827
|
-
if (!(equals$
|
|
1120
|
+
if (!(equals$c(existing_ratingFrequencyPolicy, incoming_ratingFrequencyPolicy))) {
|
|
828
1121
|
return false;
|
|
829
1122
|
}
|
|
830
1123
|
const existing_usageAggregationPolicy = existing.usageAggregationPolicy;
|
|
831
1124
|
const incoming_usageAggregationPolicy = incoming.usageAggregationPolicy;
|
|
832
|
-
if (!(equals$
|
|
1125
|
+
if (!(equals$c(existing_usageAggregationPolicy, incoming_usageAggregationPolicy))) {
|
|
833
1126
|
return false;
|
|
834
1127
|
}
|
|
835
1128
|
const existing_usageCommitmentPolicy = existing.usageCommitmentPolicy;
|
|
836
1129
|
const incoming_usageCommitmentPolicy = incoming.usageCommitmentPolicy;
|
|
837
|
-
if (!(equals$
|
|
1130
|
+
if (!(equals$c(existing_usageCommitmentPolicy, incoming_usageCommitmentPolicy))) {
|
|
838
1131
|
return false;
|
|
839
1132
|
}
|
|
840
1133
|
const existing_usageOveragePolicy = existing.usageOveragePolicy;
|
|
841
1134
|
const incoming_usageOveragePolicy = incoming.usageOveragePolicy;
|
|
842
|
-
if (!(equals$
|
|
1135
|
+
if (!(equals$c(existing_usageOveragePolicy, incoming_usageOveragePolicy))) {
|
|
843
1136
|
return false;
|
|
844
1137
|
}
|
|
845
1138
|
return true;
|
|
846
1139
|
}
|
|
847
1140
|
|
|
848
|
-
const VERSION$
|
|
849
|
-
function validate$
|
|
1141
|
+
const VERSION$9 = "7523d9d74a364f47e83eb82ed33b4d19";
|
|
1142
|
+
function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresentation') {
|
|
850
1143
|
const v_error = (() => {
|
|
851
1144
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
852
1145
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -854,7 +1147,7 @@ function validate$2(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
854
1147
|
if (obj.negotiatedGrantDetail !== undefined) {
|
|
855
1148
|
const obj_negotiatedGrantDetail = obj.negotiatedGrantDetail;
|
|
856
1149
|
const path_negotiatedGrantDetail = path + '.negotiatedGrantDetail';
|
|
857
|
-
const referencepath_negotiatedGrantDetailValidationError = validate$
|
|
1150
|
+
const referencepath_negotiatedGrantDetailValidationError = validate$b(obj_negotiatedGrantDetail, path_negotiatedGrantDetail);
|
|
858
1151
|
if (referencepath_negotiatedGrantDetailValidationError !== null) {
|
|
859
1152
|
let message = 'Object doesn\'t match NegotiatedGrantDetailOutputRepresentation (at "' + path_negotiatedGrantDetail + '")\n';
|
|
860
1153
|
message += referencepath_negotiatedGrantDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -864,7 +1157,7 @@ function validate$2(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
864
1157
|
if (obj.resourcePolicyDetail !== undefined) {
|
|
865
1158
|
const obj_resourcePolicyDetail = obj.resourcePolicyDetail;
|
|
866
1159
|
const path_resourcePolicyDetail = path + '.resourcePolicyDetail';
|
|
867
|
-
const referencepath_resourcePolicyDetailValidationError = validate$
|
|
1160
|
+
const referencepath_resourcePolicyDetailValidationError = validate$a(obj_resourcePolicyDetail, path_resourcePolicyDetail);
|
|
868
1161
|
if (referencepath_resourcePolicyDetailValidationError !== null) {
|
|
869
1162
|
let message = 'Object doesn\'t match ResourcePolicyDetailOutputRepresentation (at "' + path_resourcePolicyDetail + '")\n';
|
|
870
1163
|
message += referencepath_resourcePolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -874,12 +1167,12 @@ function validate$2(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
874
1167
|
})();
|
|
875
1168
|
return v_error === undefined ? null : v_error;
|
|
876
1169
|
}
|
|
877
|
-
const select$
|
|
878
|
-
const { selections: NegotiatedGrantDetailOutputRepresentation__selections, opaque: NegotiatedGrantDetailOutputRepresentation__opaque, } = select$
|
|
879
|
-
const { selections: ResourcePolicyDetailOutputRepresentation__selections, opaque: ResourcePolicyDetailOutputRepresentation__opaque, } = select$
|
|
1170
|
+
const select$d = function UsageResourceGrantAndPolicyDetailOutputRepresentationSelect() {
|
|
1171
|
+
const { selections: NegotiatedGrantDetailOutputRepresentation__selections, opaque: NegotiatedGrantDetailOutputRepresentation__opaque, } = select$f();
|
|
1172
|
+
const { selections: ResourcePolicyDetailOutputRepresentation__selections, opaque: ResourcePolicyDetailOutputRepresentation__opaque, } = select$e();
|
|
880
1173
|
return {
|
|
881
1174
|
kind: 'Fragment',
|
|
882
|
-
version: VERSION$
|
|
1175
|
+
version: VERSION$9,
|
|
883
1176
|
private: [],
|
|
884
1177
|
selections: [
|
|
885
1178
|
{
|
|
@@ -897,7 +1190,7 @@ const select$6 = function UsageResourceGrantAndPolicyDetailOutputRepresentationS
|
|
|
897
1190
|
]
|
|
898
1191
|
};
|
|
899
1192
|
};
|
|
900
|
-
function equals$
|
|
1193
|
+
function equals$9(existing, incoming) {
|
|
901
1194
|
const existing_negotiatedGrantDetail = existing.negotiatedGrantDetail;
|
|
902
1195
|
const incoming_negotiatedGrantDetail = incoming.negotiatedGrantDetail;
|
|
903
1196
|
// if at least one of these optionals is defined
|
|
@@ -907,7 +1200,7 @@ function equals$2(existing, incoming) {
|
|
|
907
1200
|
if (existing_negotiatedGrantDetail === undefined || incoming_negotiatedGrantDetail === undefined) {
|
|
908
1201
|
return false;
|
|
909
1202
|
}
|
|
910
|
-
if (!(equals$
|
|
1203
|
+
if (!(equals$b(existing_negotiatedGrantDetail, incoming_negotiatedGrantDetail))) {
|
|
911
1204
|
return false;
|
|
912
1205
|
}
|
|
913
1206
|
}
|
|
@@ -920,15 +1213,15 @@ function equals$2(existing, incoming) {
|
|
|
920
1213
|
if (existing_resourcePolicyDetail === undefined || incoming_resourcePolicyDetail === undefined) {
|
|
921
1214
|
return false;
|
|
922
1215
|
}
|
|
923
|
-
if (!(equals$
|
|
1216
|
+
if (!(equals$a(existing_resourcePolicyDetail, incoming_resourcePolicyDetail))) {
|
|
924
1217
|
return false;
|
|
925
1218
|
}
|
|
926
1219
|
}
|
|
927
1220
|
return true;
|
|
928
1221
|
}
|
|
929
1222
|
|
|
930
|
-
const VERSION$
|
|
931
|
-
function validate$
|
|
1223
|
+
const VERSION$8 = "722abe8ff9e5e64bac3048b74a55789d";
|
|
1224
|
+
function validate$8(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
932
1225
|
const v_error = (() => {
|
|
933
1226
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
934
1227
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1197,7 +1490,7 @@ function validate$1(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1197
1490
|
const path_rateAdjustments_item = path_rateAdjustments + '[' + i + ']';
|
|
1198
1491
|
let obj_rateAdjustments_item_union0 = null;
|
|
1199
1492
|
const obj_rateAdjustments_item_union0_error = (() => {
|
|
1200
|
-
const referencepath_rateAdjustments_itemValidationError = validate$
|
|
1493
|
+
const referencepath_rateAdjustments_itemValidationError = validate$e(obj_rateAdjustments_item, path_rateAdjustments_item);
|
|
1201
1494
|
if (referencepath_rateAdjustments_itemValidationError !== null) {
|
|
1202
1495
|
let message = 'Object doesn\'t match RateAdjustmentsOutputRepresentation (at "' + path_rateAdjustments_item + '")\n';
|
|
1203
1496
|
message += referencepath_rateAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1309,7 +1602,7 @@ function validate$1(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1309
1602
|
if (obj.usageResourceGrantAndPolicyDetail !== undefined) {
|
|
1310
1603
|
const obj_usageResourceGrantAndPolicyDetail = obj.usageResourceGrantAndPolicyDetail;
|
|
1311
1604
|
const path_usageResourceGrantAndPolicyDetail = path + '.usageResourceGrantAndPolicyDetail';
|
|
1312
|
-
const referencepath_usageResourceGrantAndPolicyDetailValidationError = validate$
|
|
1605
|
+
const referencepath_usageResourceGrantAndPolicyDetailValidationError = validate$9(obj_usageResourceGrantAndPolicyDetail, path_usageResourceGrantAndPolicyDetail);
|
|
1313
1606
|
if (referencepath_usageResourceGrantAndPolicyDetailValidationError !== null) {
|
|
1314
1607
|
let message = 'Object doesn\'t match UsageResourceGrantAndPolicyDetailOutputRepresentation (at "' + path_usageResourceGrantAndPolicyDetail + '")\n';
|
|
1315
1608
|
message += referencepath_usageResourceGrantAndPolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1326,12 +1619,12 @@ function validate$1(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1326
1619
|
})();
|
|
1327
1620
|
return v_error === undefined ? null : v_error;
|
|
1328
1621
|
}
|
|
1329
|
-
const select$
|
|
1330
|
-
const { selections: RateAdjustmentsOutputRepresentation__selections, opaque: RateAdjustmentsOutputRepresentation__opaque, } = select$
|
|
1331
|
-
const { selections: UsageResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: UsageResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$
|
|
1622
|
+
const select$c = function RateCardEntryOutputRepresentationSelect() {
|
|
1623
|
+
const { selections: RateAdjustmentsOutputRepresentation__selections, opaque: RateAdjustmentsOutputRepresentation__opaque, } = select$i();
|
|
1624
|
+
const { selections: UsageResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: UsageResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$d();
|
|
1332
1625
|
return {
|
|
1333
1626
|
kind: 'Fragment',
|
|
1334
|
-
version: VERSION$
|
|
1627
|
+
version: VERSION$8,
|
|
1335
1628
|
private: [],
|
|
1336
1629
|
selections: [
|
|
1337
1630
|
{
|
|
@@ -1414,7 +1707,7 @@ const select$5 = function RateCardEntryOutputRepresentationSelect() {
|
|
|
1414
1707
|
]
|
|
1415
1708
|
};
|
|
1416
1709
|
};
|
|
1417
|
-
function equals$
|
|
1710
|
+
function equals$8(existing, incoming) {
|
|
1418
1711
|
const existing_rateCardEntryId = existing.rateCardEntryId;
|
|
1419
1712
|
const incoming_rateCardEntryId = incoming.rateCardEntryId;
|
|
1420
1713
|
if (!(existing_rateCardEntryId === incoming_rateCardEntryId)) {
|
|
@@ -1518,7 +1811,7 @@ function equals$1(existing, incoming) {
|
|
|
1518
1811
|
if (!(existing_rateAdjustments_item === incoming_rateAdjustments_item
|
|
1519
1812
|
|| (existing_rateAdjustments_item != null &&
|
|
1520
1813
|
incoming_rateAdjustments_item != null &&
|
|
1521
|
-
equals$
|
|
1814
|
+
equals$e(existing_rateAdjustments_item, incoming_rateAdjustments_item)))) {
|
|
1522
1815
|
return false;
|
|
1523
1816
|
}
|
|
1524
1817
|
});
|
|
@@ -1549,16 +1842,16 @@ function equals$1(existing, incoming) {
|
|
|
1549
1842
|
if (existing_usageResourceGrantAndPolicyDetail === undefined || incoming_usageResourceGrantAndPolicyDetail === undefined) {
|
|
1550
1843
|
return false;
|
|
1551
1844
|
}
|
|
1552
|
-
if (!(equals$
|
|
1845
|
+
if (!(equals$9(existing_usageResourceGrantAndPolicyDetail, incoming_usageResourceGrantAndPolicyDetail))) {
|
|
1553
1846
|
return false;
|
|
1554
1847
|
}
|
|
1555
1848
|
}
|
|
1556
1849
|
return true;
|
|
1557
1850
|
}
|
|
1558
1851
|
|
|
1559
|
-
const TTL = 1000;
|
|
1560
|
-
const VERSION = "338996bd44a293867ffaab2724d4c41f";
|
|
1561
|
-
function validate(obj, path = 'UsageDetailOutputRepresentation') {
|
|
1852
|
+
const TTL$1 = 1000;
|
|
1853
|
+
const VERSION$7 = "338996bd44a293867ffaab2724d4c41f";
|
|
1854
|
+
function validate$7(obj, path = 'UsageDetailOutputRepresentation') {
|
|
1562
1855
|
const v_error = (() => {
|
|
1563
1856
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1564
1857
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1572,7 +1865,7 @@ function validate(obj, path = 'UsageDetailOutputRepresentation') {
|
|
|
1572
1865
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1573
1866
|
const obj_errors_item = obj_errors[i];
|
|
1574
1867
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1575
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1868
|
+
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
1576
1869
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1577
1870
|
let message = 'Object doesn\'t match UsageDetailErrorResponseRepresentation (at "' + path_errors_item + '")\n';
|
|
1578
1871
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1589,7 +1882,7 @@ function validate(obj, path = 'UsageDetailOutputRepresentation') {
|
|
|
1589
1882
|
for (let i = 0; i < obj_records.length; i++) {
|
|
1590
1883
|
const obj_records_item = obj_records[i];
|
|
1591
1884
|
const path_records_item = path_records + '[' + i + ']';
|
|
1592
|
-
const referencepath_records_itemValidationError = validate$
|
|
1885
|
+
const referencepath_records_itemValidationError = validate$8(obj_records_item, path_records_item);
|
|
1593
1886
|
if (referencepath_records_itemValidationError !== null) {
|
|
1594
1887
|
let message = 'Object doesn\'t match RateCardEntryOutputRepresentation (at "' + path_records_item + '")\n';
|
|
1595
1888
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1600,16 +1893,16 @@ function validate(obj, path = 'UsageDetailOutputRepresentation') {
|
|
|
1600
1893
|
})();
|
|
1601
1894
|
return v_error === undefined ? null : v_error;
|
|
1602
1895
|
}
|
|
1603
|
-
const RepresentationType = 'UsageDetailOutputRepresentation';
|
|
1604
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1896
|
+
const RepresentationType$1 = 'UsageDetailOutputRepresentation';
|
|
1897
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1605
1898
|
return input;
|
|
1606
1899
|
}
|
|
1607
|
-
const select$
|
|
1608
|
-
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$
|
|
1609
|
-
const { selections: RateCardEntryOutputRepresentation__selections, opaque: RateCardEntryOutputRepresentation__opaque, } = select$
|
|
1900
|
+
const select$b = function UsageDetailOutputRepresentationSelect() {
|
|
1901
|
+
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$j();
|
|
1902
|
+
const { selections: RateCardEntryOutputRepresentation__selections, opaque: RateCardEntryOutputRepresentation__opaque, } = select$c();
|
|
1610
1903
|
return {
|
|
1611
1904
|
kind: 'Fragment',
|
|
1612
|
-
version: VERSION,
|
|
1905
|
+
version: VERSION$7,
|
|
1613
1906
|
private: [],
|
|
1614
1907
|
selections: [
|
|
1615
1908
|
{
|
|
@@ -1629,7 +1922,7 @@ const select$4 = function UsageDetailOutputRepresentationSelect() {
|
|
|
1629
1922
|
]
|
|
1630
1923
|
};
|
|
1631
1924
|
};
|
|
1632
|
-
function equals(existing, incoming) {
|
|
1925
|
+
function equals$7(existing, incoming) {
|
|
1633
1926
|
const existing_errors = existing.errors;
|
|
1634
1927
|
const incoming_errors = incoming.errors;
|
|
1635
1928
|
// if at least one of these optionals is defined
|
|
@@ -1640,7 +1933,7 @@ function equals(existing, incoming) {
|
|
|
1640
1933
|
return false;
|
|
1641
1934
|
}
|
|
1642
1935
|
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
1643
|
-
if (!(equals$
|
|
1936
|
+
if (!(equals$f(existing_errors_item, incoming_errors_item))) {
|
|
1644
1937
|
return false;
|
|
1645
1938
|
}
|
|
1646
1939
|
});
|
|
@@ -1658,7 +1951,7 @@ function equals(existing, incoming) {
|
|
|
1658
1951
|
return false;
|
|
1659
1952
|
}
|
|
1660
1953
|
const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
|
|
1661
|
-
if (!(equals$
|
|
1954
|
+
if (!(equals$8(existing_records_item, incoming_records_item))) {
|
|
1662
1955
|
return false;
|
|
1663
1956
|
}
|
|
1664
1957
|
});
|
|
@@ -1668,44 +1961,44 @@ function equals(existing, incoming) {
|
|
|
1668
1961
|
}
|
|
1669
1962
|
return true;
|
|
1670
1963
|
}
|
|
1671
|
-
const ingest = function UsageDetailOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1964
|
+
const ingest$1 = function UsageDetailOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1672
1965
|
if (process.env.NODE_ENV !== 'production') {
|
|
1673
|
-
const validateError = validate(input);
|
|
1966
|
+
const validateError = validate$7(input);
|
|
1674
1967
|
if (validateError !== null) {
|
|
1675
1968
|
throw validateError;
|
|
1676
1969
|
}
|
|
1677
1970
|
}
|
|
1678
1971
|
const key = path.fullPath;
|
|
1679
|
-
const ttlToUse = TTL;
|
|
1680
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "usage-detail", VERSION, RepresentationType, equals);
|
|
1972
|
+
const ttlToUse = TTL$1;
|
|
1973
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "usage-detail", VERSION$7, RepresentationType$1, equals$7);
|
|
1681
1974
|
return createLink(key);
|
|
1682
1975
|
};
|
|
1683
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1976
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1684
1977
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1685
1978
|
const rootKey = fullPathFactory();
|
|
1686
1979
|
rootKeySet.set(rootKey, {
|
|
1687
1980
|
namespace: keyPrefix,
|
|
1688
|
-
representationName: RepresentationType,
|
|
1981
|
+
representationName: RepresentationType$1,
|
|
1689
1982
|
mergeable: false
|
|
1690
1983
|
});
|
|
1691
1984
|
}
|
|
1692
1985
|
|
|
1693
|
-
function select$
|
|
1694
|
-
return select$
|
|
1986
|
+
function select$a(luvio, params) {
|
|
1987
|
+
return select$b();
|
|
1695
1988
|
}
|
|
1696
1989
|
function keyBuilder$7(luvio, params) {
|
|
1697
1990
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
1698
1991
|
}
|
|
1699
1992
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1700
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
1993
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
1701
1994
|
}
|
|
1702
1995
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
1703
1996
|
const { body } = response;
|
|
1704
1997
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
1705
|
-
luvio.storeIngest(key, ingest, body);
|
|
1998
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1706
1999
|
const snapshot = luvio.storeLookup({
|
|
1707
2000
|
recordId: key,
|
|
1708
|
-
node: select$
|
|
2001
|
+
node: select$a(),
|
|
1709
2002
|
variables: {},
|
|
1710
2003
|
}, snapshotRefresh);
|
|
1711
2004
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1720,10 +2013,10 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
1720
2013
|
const key = keyBuilder$7(luvio, params);
|
|
1721
2014
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1722
2015
|
const storeMetadataParams = {
|
|
1723
|
-
ttl: TTL,
|
|
2016
|
+
ttl: TTL$1,
|
|
1724
2017
|
namespace: keyPrefix,
|
|
1725
|
-
version: VERSION,
|
|
1726
|
-
representationName: RepresentationType
|
|
2018
|
+
version: VERSION$7,
|
|
2019
|
+
representationName: RepresentationType$1
|
|
1727
2020
|
};
|
|
1728
2021
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1729
2022
|
return errorSnapshot;
|
|
@@ -1774,7 +2067,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
1774
2067
|
}
|
|
1775
2068
|
function adapterFragment$3(luvio, config) {
|
|
1776
2069
|
createResourceParams$3(config);
|
|
1777
|
-
return select$
|
|
2070
|
+
return select$a();
|
|
1778
2071
|
}
|
|
1779
2072
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1780
2073
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -1830,22 +2123,22 @@ const getAssetUsageDetailsAdapterFactory = (luvio) => function usageDetail__getA
|
|
|
1830
2123
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1831
2124
|
};
|
|
1832
2125
|
|
|
1833
|
-
function select$
|
|
1834
|
-
return select$
|
|
2126
|
+
function select$9(luvio, params) {
|
|
2127
|
+
return select$b();
|
|
1835
2128
|
}
|
|
1836
2129
|
function keyBuilder$5(luvio, params) {
|
|
1837
2130
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'quoteLineItemId:' + params.urlParams.quoteLineItemId + ')';
|
|
1838
2131
|
}
|
|
1839
2132
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1840
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
2133
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1841
2134
|
}
|
|
1842
2135
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1843
2136
|
const { body } = response;
|
|
1844
2137
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
1845
|
-
luvio.storeIngest(key, ingest, body);
|
|
2138
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1846
2139
|
const snapshot = luvio.storeLookup({
|
|
1847
2140
|
recordId: key,
|
|
1848
|
-
node: select$
|
|
2141
|
+
node: select$9(),
|
|
1849
2142
|
variables: {},
|
|
1850
2143
|
}, snapshotRefresh);
|
|
1851
2144
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1860,10 +2153,10 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
1860
2153
|
const key = keyBuilder$5(luvio, params);
|
|
1861
2154
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1862
2155
|
const storeMetadataParams = {
|
|
1863
|
-
ttl: TTL,
|
|
2156
|
+
ttl: TTL$1,
|
|
1864
2157
|
namespace: keyPrefix,
|
|
1865
|
-
version: VERSION,
|
|
1866
|
-
representationName: RepresentationType
|
|
2158
|
+
version: VERSION$7,
|
|
2159
|
+
representationName: RepresentationType$1
|
|
1867
2160
|
};
|
|
1868
2161
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1869
2162
|
return errorSnapshot;
|
|
@@ -1914,7 +2207,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
1914
2207
|
}
|
|
1915
2208
|
function adapterFragment$2(luvio, config) {
|
|
1916
2209
|
createResourceParams$2(config);
|
|
1917
|
-
return select$
|
|
2210
|
+
return select$9();
|
|
1918
2211
|
}
|
|
1919
2212
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1920
2213
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -1970,22 +2263,22 @@ const getQuoteUsageDetailsAdapterFactory = (luvio) => function usageDetail__getQ
|
|
|
1970
2263
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1971
2264
|
};
|
|
1972
2265
|
|
|
1973
|
-
function select$
|
|
1974
|
-
return select$
|
|
2266
|
+
function select$8(luvio, params) {
|
|
2267
|
+
return select$b();
|
|
1975
2268
|
}
|
|
1976
2269
|
function keyBuilder$3(luvio, params) {
|
|
1977
2270
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'orderItemId:' + params.urlParams.orderItemId + ')';
|
|
1978
2271
|
}
|
|
1979
2272
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1980
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
2273
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1981
2274
|
}
|
|
1982
2275
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1983
2276
|
const { body } = response;
|
|
1984
2277
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
1985
|
-
luvio.storeIngest(key, ingest, body);
|
|
2278
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1986
2279
|
const snapshot = luvio.storeLookup({
|
|
1987
2280
|
recordId: key,
|
|
1988
|
-
node: select$
|
|
2281
|
+
node: select$8(),
|
|
1989
2282
|
variables: {},
|
|
1990
2283
|
}, snapshotRefresh);
|
|
1991
2284
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2000,10 +2293,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
2000
2293
|
const key = keyBuilder$3(luvio, params);
|
|
2001
2294
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2002
2295
|
const storeMetadataParams = {
|
|
2003
|
-
ttl: TTL,
|
|
2296
|
+
ttl: TTL$1,
|
|
2004
2297
|
namespace: keyPrefix,
|
|
2005
|
-
version: VERSION,
|
|
2006
|
-
representationName: RepresentationType
|
|
2298
|
+
version: VERSION$7,
|
|
2299
|
+
representationName: RepresentationType$1
|
|
2007
2300
|
};
|
|
2008
2301
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2009
2302
|
return errorSnapshot;
|
|
@@ -2054,7 +2347,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
2054
2347
|
}
|
|
2055
2348
|
function adapterFragment$1(luvio, config) {
|
|
2056
2349
|
createResourceParams$1(config);
|
|
2057
|
-
return select$
|
|
2350
|
+
return select$8();
|
|
2058
2351
|
}
|
|
2059
2352
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2060
2353
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
@@ -2110,11 +2403,1639 @@ const getOrderUsageDetailsAdapterFactory = (luvio) => function usageDetail__getO
|
|
|
2110
2403
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2111
2404
|
};
|
|
2112
2405
|
|
|
2113
|
-
|
|
2114
|
-
|
|
2406
|
+
const VERSION$6 = "07d9eb931ac4af7bfaef982400a6e40e";
|
|
2407
|
+
function validate$6(obj, path = 'BindingTargetRateAdjustmentsOutputRepresentation') {
|
|
2408
|
+
const v_error = (() => {
|
|
2409
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2410
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2411
|
+
}
|
|
2412
|
+
const obj_lowerBound = obj.lowerBound;
|
|
2413
|
+
const path_lowerBound = path + '.lowerBound';
|
|
2414
|
+
let obj_lowerBound_union0 = null;
|
|
2415
|
+
const obj_lowerBound_union0_error = (() => {
|
|
2416
|
+
if (typeof obj_lowerBound !== 'number') {
|
|
2417
|
+
return new TypeError('Expected "number" but received "' + typeof obj_lowerBound + '" (at "' + path_lowerBound + '")');
|
|
2418
|
+
}
|
|
2419
|
+
})();
|
|
2420
|
+
if (obj_lowerBound_union0_error != null) {
|
|
2421
|
+
obj_lowerBound_union0 = obj_lowerBound_union0_error.message;
|
|
2422
|
+
}
|
|
2423
|
+
let obj_lowerBound_union1 = null;
|
|
2424
|
+
const obj_lowerBound_union1_error = (() => {
|
|
2425
|
+
if (obj_lowerBound !== null) {
|
|
2426
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lowerBound + '" (at "' + path_lowerBound + '")');
|
|
2427
|
+
}
|
|
2428
|
+
})();
|
|
2429
|
+
if (obj_lowerBound_union1_error != null) {
|
|
2430
|
+
obj_lowerBound_union1 = obj_lowerBound_union1_error.message;
|
|
2431
|
+
}
|
|
2432
|
+
if (obj_lowerBound_union0 && obj_lowerBound_union1) {
|
|
2433
|
+
let message = 'Object doesn\'t match union (at "' + path_lowerBound + '")';
|
|
2434
|
+
message += '\n' + obj_lowerBound_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2435
|
+
message += '\n' + obj_lowerBound_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2436
|
+
return new TypeError(message);
|
|
2437
|
+
}
|
|
2438
|
+
const obj_name = obj.name;
|
|
2439
|
+
const path_name = path + '.name';
|
|
2440
|
+
let obj_name_union0 = null;
|
|
2441
|
+
const obj_name_union0_error = (() => {
|
|
2442
|
+
if (typeof obj_name !== 'string') {
|
|
2443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2444
|
+
}
|
|
2445
|
+
})();
|
|
2446
|
+
if (obj_name_union0_error != null) {
|
|
2447
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
2448
|
+
}
|
|
2449
|
+
let obj_name_union1 = null;
|
|
2450
|
+
const obj_name_union1_error = (() => {
|
|
2451
|
+
if (obj_name !== null) {
|
|
2452
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2453
|
+
}
|
|
2454
|
+
})();
|
|
2455
|
+
if (obj_name_union1_error != null) {
|
|
2456
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
2457
|
+
}
|
|
2458
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
2459
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
2460
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2461
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2462
|
+
return new TypeError(message);
|
|
2463
|
+
}
|
|
2464
|
+
const obj_rateAdjustmentId = obj.rateAdjustmentId;
|
|
2465
|
+
const path_rateAdjustmentId = path + '.rateAdjustmentId';
|
|
2466
|
+
let obj_rateAdjustmentId_union0 = null;
|
|
2467
|
+
const obj_rateAdjustmentId_union0_error = (() => {
|
|
2468
|
+
if (typeof obj_rateAdjustmentId !== 'string') {
|
|
2469
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rateAdjustmentId + '" (at "' + path_rateAdjustmentId + '")');
|
|
2470
|
+
}
|
|
2471
|
+
})();
|
|
2472
|
+
if (obj_rateAdjustmentId_union0_error != null) {
|
|
2473
|
+
obj_rateAdjustmentId_union0 = obj_rateAdjustmentId_union0_error.message;
|
|
2474
|
+
}
|
|
2475
|
+
let obj_rateAdjustmentId_union1 = null;
|
|
2476
|
+
const obj_rateAdjustmentId_union1_error = (() => {
|
|
2477
|
+
if (obj_rateAdjustmentId !== null) {
|
|
2478
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rateAdjustmentId + '" (at "' + path_rateAdjustmentId + '")');
|
|
2479
|
+
}
|
|
2480
|
+
})();
|
|
2481
|
+
if (obj_rateAdjustmentId_union1_error != null) {
|
|
2482
|
+
obj_rateAdjustmentId_union1 = obj_rateAdjustmentId_union1_error.message;
|
|
2483
|
+
}
|
|
2484
|
+
if (obj_rateAdjustmentId_union0 && obj_rateAdjustmentId_union1) {
|
|
2485
|
+
let message = 'Object doesn\'t match union (at "' + path_rateAdjustmentId + '")';
|
|
2486
|
+
message += '\n' + obj_rateAdjustmentId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2487
|
+
message += '\n' + obj_rateAdjustmentId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2488
|
+
return new TypeError(message);
|
|
2489
|
+
}
|
|
2490
|
+
const obj_rateAdjustmentType = obj.rateAdjustmentType;
|
|
2491
|
+
const path_rateAdjustmentType = path + '.rateAdjustmentType';
|
|
2492
|
+
let obj_rateAdjustmentType_union0 = null;
|
|
2493
|
+
const obj_rateAdjustmentType_union0_error = (() => {
|
|
2494
|
+
if (typeof obj_rateAdjustmentType !== 'string') {
|
|
2495
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rateAdjustmentType + '" (at "' + path_rateAdjustmentType + '")');
|
|
2496
|
+
}
|
|
2497
|
+
})();
|
|
2498
|
+
if (obj_rateAdjustmentType_union0_error != null) {
|
|
2499
|
+
obj_rateAdjustmentType_union0 = obj_rateAdjustmentType_union0_error.message;
|
|
2500
|
+
}
|
|
2501
|
+
let obj_rateAdjustmentType_union1 = null;
|
|
2502
|
+
const obj_rateAdjustmentType_union1_error = (() => {
|
|
2503
|
+
if (obj_rateAdjustmentType !== null) {
|
|
2504
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rateAdjustmentType + '" (at "' + path_rateAdjustmentType + '")');
|
|
2505
|
+
}
|
|
2506
|
+
})();
|
|
2507
|
+
if (obj_rateAdjustmentType_union1_error != null) {
|
|
2508
|
+
obj_rateAdjustmentType_union1 = obj_rateAdjustmentType_union1_error.message;
|
|
2509
|
+
}
|
|
2510
|
+
if (obj_rateAdjustmentType_union0 && obj_rateAdjustmentType_union1) {
|
|
2511
|
+
let message = 'Object doesn\'t match union (at "' + path_rateAdjustmentType + '")';
|
|
2512
|
+
message += '\n' + obj_rateAdjustmentType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2513
|
+
message += '\n' + obj_rateAdjustmentType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2514
|
+
return new TypeError(message);
|
|
2515
|
+
}
|
|
2516
|
+
const obj_rateAdjustmentValue = obj.rateAdjustmentValue;
|
|
2517
|
+
const path_rateAdjustmentValue = path + '.rateAdjustmentValue';
|
|
2518
|
+
let obj_rateAdjustmentValue_union0 = null;
|
|
2519
|
+
const obj_rateAdjustmentValue_union0_error = (() => {
|
|
2520
|
+
if (typeof obj_rateAdjustmentValue !== 'number') {
|
|
2521
|
+
return new TypeError('Expected "number" but received "' + typeof obj_rateAdjustmentValue + '" (at "' + path_rateAdjustmentValue + '")');
|
|
2522
|
+
}
|
|
2523
|
+
})();
|
|
2524
|
+
if (obj_rateAdjustmentValue_union0_error != null) {
|
|
2525
|
+
obj_rateAdjustmentValue_union0 = obj_rateAdjustmentValue_union0_error.message;
|
|
2526
|
+
}
|
|
2527
|
+
let obj_rateAdjustmentValue_union1 = null;
|
|
2528
|
+
const obj_rateAdjustmentValue_union1_error = (() => {
|
|
2529
|
+
if (obj_rateAdjustmentValue !== null) {
|
|
2530
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rateAdjustmentValue + '" (at "' + path_rateAdjustmentValue + '")');
|
|
2531
|
+
}
|
|
2532
|
+
})();
|
|
2533
|
+
if (obj_rateAdjustmentValue_union1_error != null) {
|
|
2534
|
+
obj_rateAdjustmentValue_union1 = obj_rateAdjustmentValue_union1_error.message;
|
|
2535
|
+
}
|
|
2536
|
+
if (obj_rateAdjustmentValue_union0 && obj_rateAdjustmentValue_union1) {
|
|
2537
|
+
let message = 'Object doesn\'t match union (at "' + path_rateAdjustmentValue + '")';
|
|
2538
|
+
message += '\n' + obj_rateAdjustmentValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2539
|
+
message += '\n' + obj_rateAdjustmentValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2540
|
+
return new TypeError(message);
|
|
2541
|
+
}
|
|
2542
|
+
const obj_tierUnitOfMeasure = obj.tierUnitOfMeasure;
|
|
2543
|
+
const path_tierUnitOfMeasure = path + '.tierUnitOfMeasure';
|
|
2544
|
+
let obj_tierUnitOfMeasure_union0 = null;
|
|
2545
|
+
const obj_tierUnitOfMeasure_union0_error = (() => {
|
|
2546
|
+
if (typeof obj_tierUnitOfMeasure !== 'string') {
|
|
2547
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tierUnitOfMeasure + '" (at "' + path_tierUnitOfMeasure + '")');
|
|
2548
|
+
}
|
|
2549
|
+
})();
|
|
2550
|
+
if (obj_tierUnitOfMeasure_union0_error != null) {
|
|
2551
|
+
obj_tierUnitOfMeasure_union0 = obj_tierUnitOfMeasure_union0_error.message;
|
|
2552
|
+
}
|
|
2553
|
+
let obj_tierUnitOfMeasure_union1 = null;
|
|
2554
|
+
const obj_tierUnitOfMeasure_union1_error = (() => {
|
|
2555
|
+
if (obj_tierUnitOfMeasure !== null) {
|
|
2556
|
+
return new TypeError('Expected "null" but received "' + typeof obj_tierUnitOfMeasure + '" (at "' + path_tierUnitOfMeasure + '")');
|
|
2557
|
+
}
|
|
2558
|
+
})();
|
|
2559
|
+
if (obj_tierUnitOfMeasure_union1_error != null) {
|
|
2560
|
+
obj_tierUnitOfMeasure_union1 = obj_tierUnitOfMeasure_union1_error.message;
|
|
2561
|
+
}
|
|
2562
|
+
if (obj_tierUnitOfMeasure_union0 && obj_tierUnitOfMeasure_union1) {
|
|
2563
|
+
let message = 'Object doesn\'t match union (at "' + path_tierUnitOfMeasure + '")';
|
|
2564
|
+
message += '\n' + obj_tierUnitOfMeasure_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2565
|
+
message += '\n' + obj_tierUnitOfMeasure_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2566
|
+
return new TypeError(message);
|
|
2567
|
+
}
|
|
2568
|
+
const obj_upperBound = obj.upperBound;
|
|
2569
|
+
const path_upperBound = path + '.upperBound';
|
|
2570
|
+
let obj_upperBound_union0 = null;
|
|
2571
|
+
const obj_upperBound_union0_error = (() => {
|
|
2572
|
+
if (typeof obj_upperBound !== 'number') {
|
|
2573
|
+
return new TypeError('Expected "number" but received "' + typeof obj_upperBound + '" (at "' + path_upperBound + '")');
|
|
2574
|
+
}
|
|
2575
|
+
})();
|
|
2576
|
+
if (obj_upperBound_union0_error != null) {
|
|
2577
|
+
obj_upperBound_union0 = obj_upperBound_union0_error.message;
|
|
2578
|
+
}
|
|
2579
|
+
let obj_upperBound_union1 = null;
|
|
2580
|
+
const obj_upperBound_union1_error = (() => {
|
|
2581
|
+
if (obj_upperBound !== null) {
|
|
2582
|
+
return new TypeError('Expected "null" but received "' + typeof obj_upperBound + '" (at "' + path_upperBound + '")');
|
|
2583
|
+
}
|
|
2584
|
+
})();
|
|
2585
|
+
if (obj_upperBound_union1_error != null) {
|
|
2586
|
+
obj_upperBound_union1 = obj_upperBound_union1_error.message;
|
|
2587
|
+
}
|
|
2588
|
+
if (obj_upperBound_union0 && obj_upperBound_union1) {
|
|
2589
|
+
let message = 'Object doesn\'t match union (at "' + path_upperBound + '")';
|
|
2590
|
+
message += '\n' + obj_upperBound_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2591
|
+
message += '\n' + obj_upperBound_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2592
|
+
return new TypeError(message);
|
|
2593
|
+
}
|
|
2594
|
+
})();
|
|
2595
|
+
return v_error === undefined ? null : v_error;
|
|
2596
|
+
}
|
|
2597
|
+
const select$7 = function BindingTargetRateAdjustmentsOutputRepresentationSelect() {
|
|
2598
|
+
return {
|
|
2599
|
+
kind: 'Fragment',
|
|
2600
|
+
version: VERSION$6,
|
|
2601
|
+
private: [],
|
|
2602
|
+
selections: [
|
|
2603
|
+
{
|
|
2604
|
+
name: 'lowerBound',
|
|
2605
|
+
kind: 'Scalar'
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
name: 'name',
|
|
2609
|
+
kind: 'Scalar'
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
name: 'rateAdjustmentId',
|
|
2613
|
+
kind: 'Scalar'
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
name: 'rateAdjustmentType',
|
|
2617
|
+
kind: 'Scalar'
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
name: 'rateAdjustmentValue',
|
|
2621
|
+
kind: 'Scalar'
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
name: 'tierUnitOfMeasure',
|
|
2625
|
+
kind: 'Scalar'
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
name: 'upperBound',
|
|
2629
|
+
kind: 'Scalar'
|
|
2630
|
+
}
|
|
2631
|
+
]
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2634
|
+
function equals$6(existing, incoming) {
|
|
2635
|
+
const existing_lowerBound = existing.lowerBound;
|
|
2636
|
+
const incoming_lowerBound = incoming.lowerBound;
|
|
2637
|
+
if (!(existing_lowerBound === incoming_lowerBound)) {
|
|
2638
|
+
return false;
|
|
2639
|
+
}
|
|
2640
|
+
const existing_name = existing.name;
|
|
2641
|
+
const incoming_name = incoming.name;
|
|
2642
|
+
if (!(existing_name === incoming_name)) {
|
|
2643
|
+
return false;
|
|
2644
|
+
}
|
|
2645
|
+
const existing_rateAdjustmentId = existing.rateAdjustmentId;
|
|
2646
|
+
const incoming_rateAdjustmentId = incoming.rateAdjustmentId;
|
|
2647
|
+
if (!(existing_rateAdjustmentId === incoming_rateAdjustmentId)) {
|
|
2648
|
+
return false;
|
|
2649
|
+
}
|
|
2650
|
+
const existing_rateAdjustmentType = existing.rateAdjustmentType;
|
|
2651
|
+
const incoming_rateAdjustmentType = incoming.rateAdjustmentType;
|
|
2652
|
+
if (!(existing_rateAdjustmentType === incoming_rateAdjustmentType)) {
|
|
2653
|
+
return false;
|
|
2654
|
+
}
|
|
2655
|
+
const existing_rateAdjustmentValue = existing.rateAdjustmentValue;
|
|
2656
|
+
const incoming_rateAdjustmentValue = incoming.rateAdjustmentValue;
|
|
2657
|
+
if (!(existing_rateAdjustmentValue === incoming_rateAdjustmentValue)) {
|
|
2658
|
+
return false;
|
|
2659
|
+
}
|
|
2660
|
+
const existing_tierUnitOfMeasure = existing.tierUnitOfMeasure;
|
|
2661
|
+
const incoming_tierUnitOfMeasure = incoming.tierUnitOfMeasure;
|
|
2662
|
+
if (!(existing_tierUnitOfMeasure === incoming_tierUnitOfMeasure)) {
|
|
2663
|
+
return false;
|
|
2664
|
+
}
|
|
2665
|
+
const existing_upperBound = existing.upperBound;
|
|
2666
|
+
const incoming_upperBound = incoming.upperBound;
|
|
2667
|
+
if (!(existing_upperBound === incoming_upperBound)) {
|
|
2668
|
+
return false;
|
|
2669
|
+
}
|
|
2670
|
+
return true;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
const VERSION$5 = "7ac7357dfb22c56e5519072f5af7caa0";
|
|
2674
|
+
function validate$5(obj, path = 'BindingObjectRateOutputRepresentation') {
|
|
2675
|
+
const v_error = (() => {
|
|
2676
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2677
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2678
|
+
}
|
|
2679
|
+
const obj_id = obj.id;
|
|
2680
|
+
const path_id = path + '.id';
|
|
2681
|
+
let obj_id_union0 = null;
|
|
2682
|
+
const obj_id_union0_error = (() => {
|
|
2683
|
+
if (typeof obj_id !== 'string') {
|
|
2684
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2685
|
+
}
|
|
2686
|
+
})();
|
|
2687
|
+
if (obj_id_union0_error != null) {
|
|
2688
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
2689
|
+
}
|
|
2690
|
+
let obj_id_union1 = null;
|
|
2691
|
+
const obj_id_union1_error = (() => {
|
|
2692
|
+
if (obj_id !== null) {
|
|
2693
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2694
|
+
}
|
|
2695
|
+
})();
|
|
2696
|
+
if (obj_id_union1_error != null) {
|
|
2697
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
2698
|
+
}
|
|
2699
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
2700
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2701
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2702
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2703
|
+
return new TypeError(message);
|
|
2704
|
+
}
|
|
2705
|
+
const obj_negotiatedRate = obj.negotiatedRate;
|
|
2706
|
+
const path_negotiatedRate = path + '.negotiatedRate';
|
|
2707
|
+
let obj_negotiatedRate_union0 = null;
|
|
2708
|
+
const obj_negotiatedRate_union0_error = (() => {
|
|
2709
|
+
if (typeof obj_negotiatedRate !== 'number') {
|
|
2710
|
+
return new TypeError('Expected "number" but received "' + typeof obj_negotiatedRate + '" (at "' + path_negotiatedRate + '")');
|
|
2711
|
+
}
|
|
2712
|
+
})();
|
|
2713
|
+
if (obj_negotiatedRate_union0_error != null) {
|
|
2714
|
+
obj_negotiatedRate_union0 = obj_negotiatedRate_union0_error.message;
|
|
2715
|
+
}
|
|
2716
|
+
let obj_negotiatedRate_union1 = null;
|
|
2717
|
+
const obj_negotiatedRate_union1_error = (() => {
|
|
2718
|
+
if (obj_negotiatedRate !== null) {
|
|
2719
|
+
return new TypeError('Expected "null" but received "' + typeof obj_negotiatedRate + '" (at "' + path_negotiatedRate + '")');
|
|
2720
|
+
}
|
|
2721
|
+
})();
|
|
2722
|
+
if (obj_negotiatedRate_union1_error != null) {
|
|
2723
|
+
obj_negotiatedRate_union1 = obj_negotiatedRate_union1_error.message;
|
|
2724
|
+
}
|
|
2725
|
+
if (obj_negotiatedRate_union0 && obj_negotiatedRate_union1) {
|
|
2726
|
+
let message = 'Object doesn\'t match union (at "' + path_negotiatedRate + '")';
|
|
2727
|
+
message += '\n' + obj_negotiatedRate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2728
|
+
message += '\n' + obj_negotiatedRate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2729
|
+
return new TypeError(message);
|
|
2730
|
+
}
|
|
2731
|
+
const obj_negotiatedRateAdjustments = obj.negotiatedRateAdjustments;
|
|
2732
|
+
const path_negotiatedRateAdjustments = path + '.negotiatedRateAdjustments';
|
|
2733
|
+
if (!ArrayIsArray(obj_negotiatedRateAdjustments)) {
|
|
2734
|
+
return new TypeError('Expected "array" but received "' + typeof obj_negotiatedRateAdjustments + '" (at "' + path_negotiatedRateAdjustments + '")');
|
|
2735
|
+
}
|
|
2736
|
+
for (let i = 0; i < obj_negotiatedRateAdjustments.length; i++) {
|
|
2737
|
+
const obj_negotiatedRateAdjustments_item = obj_negotiatedRateAdjustments[i];
|
|
2738
|
+
const path_negotiatedRateAdjustments_item = path_negotiatedRateAdjustments + '[' + i + ']';
|
|
2739
|
+
let obj_negotiatedRateAdjustments_item_union0 = null;
|
|
2740
|
+
const obj_negotiatedRateAdjustments_item_union0_error = (() => {
|
|
2741
|
+
const referencepath_negotiatedRateAdjustments_itemValidationError = validate$6(obj_negotiatedRateAdjustments_item, path_negotiatedRateAdjustments_item);
|
|
2742
|
+
if (referencepath_negotiatedRateAdjustments_itemValidationError !== null) {
|
|
2743
|
+
let message = 'Object doesn\'t match BindingTargetRateAdjustmentsOutputRepresentation (at "' + path_negotiatedRateAdjustments_item + '")\n';
|
|
2744
|
+
message += referencepath_negotiatedRateAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2745
|
+
return new TypeError(message);
|
|
2746
|
+
}
|
|
2747
|
+
})();
|
|
2748
|
+
if (obj_negotiatedRateAdjustments_item_union0_error != null) {
|
|
2749
|
+
obj_negotiatedRateAdjustments_item_union0 = obj_negotiatedRateAdjustments_item_union0_error.message;
|
|
2750
|
+
}
|
|
2751
|
+
let obj_negotiatedRateAdjustments_item_union1 = null;
|
|
2752
|
+
const obj_negotiatedRateAdjustments_item_union1_error = (() => {
|
|
2753
|
+
if (obj_negotiatedRateAdjustments_item !== null) {
|
|
2754
|
+
return new TypeError('Expected "null" but received "' + typeof obj_negotiatedRateAdjustments_item + '" (at "' + path_negotiatedRateAdjustments_item + '")');
|
|
2755
|
+
}
|
|
2756
|
+
})();
|
|
2757
|
+
if (obj_negotiatedRateAdjustments_item_union1_error != null) {
|
|
2758
|
+
obj_negotiatedRateAdjustments_item_union1 = obj_negotiatedRateAdjustments_item_union1_error.message;
|
|
2759
|
+
}
|
|
2760
|
+
if (obj_negotiatedRateAdjustments_item_union0 && obj_negotiatedRateAdjustments_item_union1) {
|
|
2761
|
+
let message = 'Object doesn\'t match union (at "' + path_negotiatedRateAdjustments_item + '")';
|
|
2762
|
+
message += '\n' + obj_negotiatedRateAdjustments_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2763
|
+
message += '\n' + obj_negotiatedRateAdjustments_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2764
|
+
return new TypeError(message);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
const obj_rate = obj.rate;
|
|
2768
|
+
const path_rate = path + '.rate';
|
|
2769
|
+
let obj_rate_union0 = null;
|
|
2770
|
+
const obj_rate_union0_error = (() => {
|
|
2771
|
+
if (typeof obj_rate !== 'number') {
|
|
2772
|
+
return new TypeError('Expected "number" but received "' + typeof obj_rate + '" (at "' + path_rate + '")');
|
|
2773
|
+
}
|
|
2774
|
+
})();
|
|
2775
|
+
if (obj_rate_union0_error != null) {
|
|
2776
|
+
obj_rate_union0 = obj_rate_union0_error.message;
|
|
2777
|
+
}
|
|
2778
|
+
let obj_rate_union1 = null;
|
|
2779
|
+
const obj_rate_union1_error = (() => {
|
|
2780
|
+
if (obj_rate !== null) {
|
|
2781
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rate + '" (at "' + path_rate + '")');
|
|
2782
|
+
}
|
|
2783
|
+
})();
|
|
2784
|
+
if (obj_rate_union1_error != null) {
|
|
2785
|
+
obj_rate_union1 = obj_rate_union1_error.message;
|
|
2786
|
+
}
|
|
2787
|
+
if (obj_rate_union0 && obj_rate_union1) {
|
|
2788
|
+
let message = 'Object doesn\'t match union (at "' + path_rate + '")';
|
|
2789
|
+
message += '\n' + obj_rate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2790
|
+
message += '\n' + obj_rate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2791
|
+
return new TypeError(message);
|
|
2792
|
+
}
|
|
2793
|
+
const obj_rateCardEntryId = obj.rateCardEntryId;
|
|
2794
|
+
const path_rateCardEntryId = path + '.rateCardEntryId';
|
|
2795
|
+
let obj_rateCardEntryId_union0 = null;
|
|
2796
|
+
const obj_rateCardEntryId_union0_error = (() => {
|
|
2797
|
+
if (typeof obj_rateCardEntryId !== 'string') {
|
|
2798
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rateCardEntryId + '" (at "' + path_rateCardEntryId + '")');
|
|
2799
|
+
}
|
|
2800
|
+
})();
|
|
2801
|
+
if (obj_rateCardEntryId_union0_error != null) {
|
|
2802
|
+
obj_rateCardEntryId_union0 = obj_rateCardEntryId_union0_error.message;
|
|
2803
|
+
}
|
|
2804
|
+
let obj_rateCardEntryId_union1 = null;
|
|
2805
|
+
const obj_rateCardEntryId_union1_error = (() => {
|
|
2806
|
+
if (obj_rateCardEntryId !== null) {
|
|
2807
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rateCardEntryId + '" (at "' + path_rateCardEntryId + '")');
|
|
2808
|
+
}
|
|
2809
|
+
})();
|
|
2810
|
+
if (obj_rateCardEntryId_union1_error != null) {
|
|
2811
|
+
obj_rateCardEntryId_union1 = obj_rateCardEntryId_union1_error.message;
|
|
2812
|
+
}
|
|
2813
|
+
if (obj_rateCardEntryId_union0 && obj_rateCardEntryId_union1) {
|
|
2814
|
+
let message = 'Object doesn\'t match union (at "' + path_rateCardEntryId + '")';
|
|
2815
|
+
message += '\n' + obj_rateCardEntryId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2816
|
+
message += '\n' + obj_rateCardEntryId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2817
|
+
return new TypeError(message);
|
|
2818
|
+
}
|
|
2819
|
+
const obj_rateUnitOfMeasureName = obj.rateUnitOfMeasureName;
|
|
2820
|
+
const path_rateUnitOfMeasureName = path + '.rateUnitOfMeasureName';
|
|
2821
|
+
let obj_rateUnitOfMeasureName_union0 = null;
|
|
2822
|
+
const obj_rateUnitOfMeasureName_union0_error = (() => {
|
|
2823
|
+
if (typeof obj_rateUnitOfMeasureName !== 'string') {
|
|
2824
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rateUnitOfMeasureName + '" (at "' + path_rateUnitOfMeasureName + '")');
|
|
2825
|
+
}
|
|
2826
|
+
})();
|
|
2827
|
+
if (obj_rateUnitOfMeasureName_union0_error != null) {
|
|
2828
|
+
obj_rateUnitOfMeasureName_union0 = obj_rateUnitOfMeasureName_union0_error.message;
|
|
2829
|
+
}
|
|
2830
|
+
let obj_rateUnitOfMeasureName_union1 = null;
|
|
2831
|
+
const obj_rateUnitOfMeasureName_union1_error = (() => {
|
|
2832
|
+
if (obj_rateUnitOfMeasureName !== null) {
|
|
2833
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rateUnitOfMeasureName + '" (at "' + path_rateUnitOfMeasureName + '")');
|
|
2834
|
+
}
|
|
2835
|
+
})();
|
|
2836
|
+
if (obj_rateUnitOfMeasureName_union1_error != null) {
|
|
2837
|
+
obj_rateUnitOfMeasureName_union1 = obj_rateUnitOfMeasureName_union1_error.message;
|
|
2838
|
+
}
|
|
2839
|
+
if (obj_rateUnitOfMeasureName_union0 && obj_rateUnitOfMeasureName_union1) {
|
|
2840
|
+
let message = 'Object doesn\'t match union (at "' + path_rateUnitOfMeasureName + '")';
|
|
2841
|
+
message += '\n' + obj_rateUnitOfMeasureName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2842
|
+
message += '\n' + obj_rateUnitOfMeasureName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2843
|
+
return new TypeError(message);
|
|
2844
|
+
}
|
|
2845
|
+
})();
|
|
2846
|
+
return v_error === undefined ? null : v_error;
|
|
2847
|
+
}
|
|
2848
|
+
const select$6 = function BindingObjectRateOutputRepresentationSelect() {
|
|
2849
|
+
const { selections: BindingTargetRateAdjustmentsOutputRepresentation__selections, opaque: BindingTargetRateAdjustmentsOutputRepresentation__opaque, } = select$7();
|
|
2850
|
+
return {
|
|
2851
|
+
kind: 'Fragment',
|
|
2852
|
+
version: VERSION$5,
|
|
2853
|
+
private: [],
|
|
2854
|
+
selections: [
|
|
2855
|
+
{
|
|
2856
|
+
name: 'id',
|
|
2857
|
+
kind: 'Scalar'
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
name: 'negotiatedRate',
|
|
2861
|
+
kind: 'Scalar'
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
name: 'negotiatedRateAdjustments',
|
|
2865
|
+
kind: 'Object',
|
|
2866
|
+
nullable: true,
|
|
2867
|
+
plural: true,
|
|
2868
|
+
selections: BindingTargetRateAdjustmentsOutputRepresentation__selections
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
name: 'rate',
|
|
2872
|
+
kind: 'Scalar'
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
name: 'rateCardEntryId',
|
|
2876
|
+
kind: 'Scalar'
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
name: 'rateUnitOfMeasureName',
|
|
2880
|
+
kind: 'Scalar'
|
|
2881
|
+
}
|
|
2882
|
+
]
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
function equals$5(existing, incoming) {
|
|
2886
|
+
const existing_id = existing.id;
|
|
2887
|
+
const incoming_id = incoming.id;
|
|
2888
|
+
if (!(existing_id === incoming_id)) {
|
|
2889
|
+
return false;
|
|
2890
|
+
}
|
|
2891
|
+
const existing_negotiatedRate = existing.negotiatedRate;
|
|
2892
|
+
const incoming_negotiatedRate = incoming.negotiatedRate;
|
|
2893
|
+
if (!(existing_negotiatedRate === incoming_negotiatedRate)) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2896
|
+
const existing_negotiatedRateAdjustments = existing.negotiatedRateAdjustments;
|
|
2897
|
+
const incoming_negotiatedRateAdjustments = incoming.negotiatedRateAdjustments;
|
|
2898
|
+
const equals_negotiatedRateAdjustments_items = equalsArray(existing_negotiatedRateAdjustments, incoming_negotiatedRateAdjustments, (existing_negotiatedRateAdjustments_item, incoming_negotiatedRateAdjustments_item) => {
|
|
2899
|
+
if (!(existing_negotiatedRateAdjustments_item === incoming_negotiatedRateAdjustments_item
|
|
2900
|
+
|| (existing_negotiatedRateAdjustments_item != null &&
|
|
2901
|
+
incoming_negotiatedRateAdjustments_item != null &&
|
|
2902
|
+
equals$6(existing_negotiatedRateAdjustments_item, incoming_negotiatedRateAdjustments_item)))) {
|
|
2903
|
+
return false;
|
|
2904
|
+
}
|
|
2905
|
+
});
|
|
2906
|
+
if (equals_negotiatedRateAdjustments_items === false) {
|
|
2907
|
+
return false;
|
|
2908
|
+
}
|
|
2909
|
+
const existing_rate = existing.rate;
|
|
2910
|
+
const incoming_rate = incoming.rate;
|
|
2911
|
+
if (!(existing_rate === incoming_rate)) {
|
|
2912
|
+
return false;
|
|
2913
|
+
}
|
|
2914
|
+
const existing_rateCardEntryId = existing.rateCardEntryId;
|
|
2915
|
+
const incoming_rateCardEntryId = incoming.rateCardEntryId;
|
|
2916
|
+
if (!(existing_rateCardEntryId === incoming_rateCardEntryId)) {
|
|
2917
|
+
return false;
|
|
2918
|
+
}
|
|
2919
|
+
const existing_rateUnitOfMeasureName = existing.rateUnitOfMeasureName;
|
|
2920
|
+
const incoming_rateUnitOfMeasureName = incoming.rateUnitOfMeasureName;
|
|
2921
|
+
if (!(existing_rateUnitOfMeasureName === incoming_rateUnitOfMeasureName)) {
|
|
2922
|
+
return false;
|
|
2923
|
+
}
|
|
2924
|
+
return true;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
const VERSION$4 = "e6ec7120bab5a161ab7c9c40c821d32d";
|
|
2928
|
+
function validate$4(obj, path = 'BindingObjectGrantDetailOutputRepresentation') {
|
|
2929
|
+
const v_error = (() => {
|
|
2930
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2931
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2932
|
+
}
|
|
2933
|
+
const obj_effectiveEndDate = obj.effectiveEndDate;
|
|
2934
|
+
const path_effectiveEndDate = path + '.effectiveEndDate';
|
|
2935
|
+
let obj_effectiveEndDate_union0 = null;
|
|
2936
|
+
const obj_effectiveEndDate_union0_error = (() => {
|
|
2937
|
+
if (typeof obj_effectiveEndDate !== 'string') {
|
|
2938
|
+
return new TypeError('Expected "string" but received "' + typeof obj_effectiveEndDate + '" (at "' + path_effectiveEndDate + '")');
|
|
2939
|
+
}
|
|
2940
|
+
})();
|
|
2941
|
+
if (obj_effectiveEndDate_union0_error != null) {
|
|
2942
|
+
obj_effectiveEndDate_union0 = obj_effectiveEndDate_union0_error.message;
|
|
2943
|
+
}
|
|
2944
|
+
let obj_effectiveEndDate_union1 = null;
|
|
2945
|
+
const obj_effectiveEndDate_union1_error = (() => {
|
|
2946
|
+
if (obj_effectiveEndDate !== null) {
|
|
2947
|
+
return new TypeError('Expected "null" but received "' + typeof obj_effectiveEndDate + '" (at "' + path_effectiveEndDate + '")');
|
|
2948
|
+
}
|
|
2949
|
+
})();
|
|
2950
|
+
if (obj_effectiveEndDate_union1_error != null) {
|
|
2951
|
+
obj_effectiveEndDate_union1 = obj_effectiveEndDate_union1_error.message;
|
|
2952
|
+
}
|
|
2953
|
+
if (obj_effectiveEndDate_union0 && obj_effectiveEndDate_union1) {
|
|
2954
|
+
let message = 'Object doesn\'t match union (at "' + path_effectiveEndDate + '")';
|
|
2955
|
+
message += '\n' + obj_effectiveEndDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2956
|
+
message += '\n' + obj_effectiveEndDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2957
|
+
return new TypeError(message);
|
|
2958
|
+
}
|
|
2959
|
+
const obj_effectiveStartDate = obj.effectiveStartDate;
|
|
2960
|
+
const path_effectiveStartDate = path + '.effectiveStartDate';
|
|
2961
|
+
let obj_effectiveStartDate_union0 = null;
|
|
2962
|
+
const obj_effectiveStartDate_union0_error = (() => {
|
|
2963
|
+
if (typeof obj_effectiveStartDate !== 'string') {
|
|
2964
|
+
return new TypeError('Expected "string" but received "' + typeof obj_effectiveStartDate + '" (at "' + path_effectiveStartDate + '")');
|
|
2965
|
+
}
|
|
2966
|
+
})();
|
|
2967
|
+
if (obj_effectiveStartDate_union0_error != null) {
|
|
2968
|
+
obj_effectiveStartDate_union0 = obj_effectiveStartDate_union0_error.message;
|
|
2969
|
+
}
|
|
2970
|
+
let obj_effectiveStartDate_union1 = null;
|
|
2971
|
+
const obj_effectiveStartDate_union1_error = (() => {
|
|
2972
|
+
if (obj_effectiveStartDate !== null) {
|
|
2973
|
+
return new TypeError('Expected "null" but received "' + typeof obj_effectiveStartDate + '" (at "' + path_effectiveStartDate + '")');
|
|
2974
|
+
}
|
|
2975
|
+
})();
|
|
2976
|
+
if (obj_effectiveStartDate_union1_error != null) {
|
|
2977
|
+
obj_effectiveStartDate_union1 = obj_effectiveStartDate_union1_error.message;
|
|
2978
|
+
}
|
|
2979
|
+
if (obj_effectiveStartDate_union0 && obj_effectiveStartDate_union1) {
|
|
2980
|
+
let message = 'Object doesn\'t match union (at "' + path_effectiveStartDate + '")';
|
|
2981
|
+
message += '\n' + obj_effectiveStartDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2982
|
+
message += '\n' + obj_effectiveStartDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2983
|
+
return new TypeError(message);
|
|
2984
|
+
}
|
|
2985
|
+
const obj_grantType = obj.grantType;
|
|
2986
|
+
const path_grantType = path + '.grantType';
|
|
2987
|
+
let obj_grantType_union0 = null;
|
|
2988
|
+
const obj_grantType_union0_error = (() => {
|
|
2989
|
+
if (typeof obj_grantType !== 'string') {
|
|
2990
|
+
return new TypeError('Expected "string" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
2991
|
+
}
|
|
2992
|
+
})();
|
|
2993
|
+
if (obj_grantType_union0_error != null) {
|
|
2994
|
+
obj_grantType_union0 = obj_grantType_union0_error.message;
|
|
2995
|
+
}
|
|
2996
|
+
let obj_grantType_union1 = null;
|
|
2997
|
+
const obj_grantType_union1_error = (() => {
|
|
2998
|
+
if (obj_grantType !== null) {
|
|
2999
|
+
return new TypeError('Expected "null" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
3000
|
+
}
|
|
3001
|
+
})();
|
|
3002
|
+
if (obj_grantType_union1_error != null) {
|
|
3003
|
+
obj_grantType_union1 = obj_grantType_union1_error.message;
|
|
3004
|
+
}
|
|
3005
|
+
if (obj_grantType_union0 && obj_grantType_union1) {
|
|
3006
|
+
let message = 'Object doesn\'t match union (at "' + path_grantType + '")';
|
|
3007
|
+
message += '\n' + obj_grantType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3008
|
+
message += '\n' + obj_grantType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3009
|
+
return new TypeError(message);
|
|
3010
|
+
}
|
|
3011
|
+
const obj_id = obj.id;
|
|
3012
|
+
const path_id = path + '.id';
|
|
3013
|
+
let obj_id_union0 = null;
|
|
3014
|
+
const obj_id_union0_error = (() => {
|
|
3015
|
+
if (typeof obj_id !== 'string') {
|
|
3016
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3017
|
+
}
|
|
3018
|
+
})();
|
|
3019
|
+
if (obj_id_union0_error != null) {
|
|
3020
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3021
|
+
}
|
|
3022
|
+
let obj_id_union1 = null;
|
|
3023
|
+
const obj_id_union1_error = (() => {
|
|
3024
|
+
if (obj_id !== null) {
|
|
3025
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3026
|
+
}
|
|
3027
|
+
})();
|
|
3028
|
+
if (obj_id_union1_error != null) {
|
|
3029
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3030
|
+
}
|
|
3031
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3032
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3033
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3034
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3035
|
+
return new TypeError(message);
|
|
3036
|
+
}
|
|
3037
|
+
const obj_product = obj.product;
|
|
3038
|
+
const path_product = path + '.product';
|
|
3039
|
+
let obj_product_union0 = null;
|
|
3040
|
+
const obj_product_union0_error = (() => {
|
|
3041
|
+
const referencepath_productValidationError = validate$d(obj_product, path_product);
|
|
3042
|
+
if (referencepath_productValidationError !== null) {
|
|
3043
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_product + '")\n';
|
|
3044
|
+
message += referencepath_productValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3045
|
+
return new TypeError(message);
|
|
3046
|
+
}
|
|
3047
|
+
})();
|
|
3048
|
+
if (obj_product_union0_error != null) {
|
|
3049
|
+
obj_product_union0 = obj_product_union0_error.message;
|
|
3050
|
+
}
|
|
3051
|
+
let obj_product_union1 = null;
|
|
3052
|
+
const obj_product_union1_error = (() => {
|
|
3053
|
+
if (obj_product !== null) {
|
|
3054
|
+
return new TypeError('Expected "null" but received "' + typeof obj_product + '" (at "' + path_product + '")');
|
|
3055
|
+
}
|
|
3056
|
+
})();
|
|
3057
|
+
if (obj_product_union1_error != null) {
|
|
3058
|
+
obj_product_union1 = obj_product_union1_error.message;
|
|
3059
|
+
}
|
|
3060
|
+
if (obj_product_union0 && obj_product_union1) {
|
|
3061
|
+
let message = 'Object doesn\'t match union (at "' + path_product + '")';
|
|
3062
|
+
message += '\n' + obj_product_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3063
|
+
message += '\n' + obj_product_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3064
|
+
return new TypeError(message);
|
|
3065
|
+
}
|
|
3066
|
+
const obj_quantity = obj.quantity;
|
|
3067
|
+
const path_quantity = path + '.quantity';
|
|
3068
|
+
let obj_quantity_union0 = null;
|
|
3069
|
+
const obj_quantity_union0_error = (() => {
|
|
3070
|
+
if (typeof obj_quantity !== 'number') {
|
|
3071
|
+
return new TypeError('Expected "number" but received "' + typeof obj_quantity + '" (at "' + path_quantity + '")');
|
|
3072
|
+
}
|
|
3073
|
+
})();
|
|
3074
|
+
if (obj_quantity_union0_error != null) {
|
|
3075
|
+
obj_quantity_union0 = obj_quantity_union0_error.message;
|
|
3076
|
+
}
|
|
3077
|
+
let obj_quantity_union1 = null;
|
|
3078
|
+
const obj_quantity_union1_error = (() => {
|
|
3079
|
+
if (obj_quantity !== null) {
|
|
3080
|
+
return new TypeError('Expected "null" but received "' + typeof obj_quantity + '" (at "' + path_quantity + '")');
|
|
3081
|
+
}
|
|
3082
|
+
})();
|
|
3083
|
+
if (obj_quantity_union1_error != null) {
|
|
3084
|
+
obj_quantity_union1 = obj_quantity_union1_error.message;
|
|
3085
|
+
}
|
|
3086
|
+
if (obj_quantity_union0 && obj_quantity_union1) {
|
|
3087
|
+
let message = 'Object doesn\'t match union (at "' + path_quantity + '")';
|
|
3088
|
+
message += '\n' + obj_quantity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3089
|
+
message += '\n' + obj_quantity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3090
|
+
return new TypeError(message);
|
|
3091
|
+
}
|
|
3092
|
+
const obj_record = obj.record;
|
|
3093
|
+
const path_record = path + '.record';
|
|
3094
|
+
let obj_record_union0 = null;
|
|
3095
|
+
const obj_record_union0_error = (() => {
|
|
3096
|
+
const referencepath_recordValidationError = validate$d(obj_record, path_record);
|
|
3097
|
+
if (referencepath_recordValidationError !== null) {
|
|
3098
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_record + '")\n';
|
|
3099
|
+
message += referencepath_recordValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3100
|
+
return new TypeError(message);
|
|
3101
|
+
}
|
|
3102
|
+
})();
|
|
3103
|
+
if (obj_record_union0_error != null) {
|
|
3104
|
+
obj_record_union0 = obj_record_union0_error.message;
|
|
3105
|
+
}
|
|
3106
|
+
let obj_record_union1 = null;
|
|
3107
|
+
const obj_record_union1_error = (() => {
|
|
3108
|
+
if (obj_record !== null) {
|
|
3109
|
+
return new TypeError('Expected "null" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
3110
|
+
}
|
|
3111
|
+
})();
|
|
3112
|
+
if (obj_record_union1_error != null) {
|
|
3113
|
+
obj_record_union1 = obj_record_union1_error.message;
|
|
3114
|
+
}
|
|
3115
|
+
if (obj_record_union0 && obj_record_union1) {
|
|
3116
|
+
let message = 'Object doesn\'t match union (at "' + path_record + '")';
|
|
3117
|
+
message += '\n' + obj_record_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3118
|
+
message += '\n' + obj_record_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3119
|
+
return new TypeError(message);
|
|
3120
|
+
}
|
|
3121
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
3122
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
3123
|
+
let obj_unitOfMeasure_union0 = null;
|
|
3124
|
+
const obj_unitOfMeasure_union0_error = (() => {
|
|
3125
|
+
if (typeof obj_unitOfMeasure !== 'string') {
|
|
3126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_unitOfMeasure + '" (at "' + path_unitOfMeasure + '")');
|
|
3127
|
+
}
|
|
3128
|
+
})();
|
|
3129
|
+
if (obj_unitOfMeasure_union0_error != null) {
|
|
3130
|
+
obj_unitOfMeasure_union0 = obj_unitOfMeasure_union0_error.message;
|
|
3131
|
+
}
|
|
3132
|
+
let obj_unitOfMeasure_union1 = null;
|
|
3133
|
+
const obj_unitOfMeasure_union1_error = (() => {
|
|
3134
|
+
if (obj_unitOfMeasure !== null) {
|
|
3135
|
+
return new TypeError('Expected "null" but received "' + typeof obj_unitOfMeasure + '" (at "' + path_unitOfMeasure + '")');
|
|
3136
|
+
}
|
|
3137
|
+
})();
|
|
3138
|
+
if (obj_unitOfMeasure_union1_error != null) {
|
|
3139
|
+
obj_unitOfMeasure_union1 = obj_unitOfMeasure_union1_error.message;
|
|
3140
|
+
}
|
|
3141
|
+
if (obj_unitOfMeasure_union0 && obj_unitOfMeasure_union1) {
|
|
3142
|
+
let message = 'Object doesn\'t match union (at "' + path_unitOfMeasure + '")';
|
|
3143
|
+
message += '\n' + obj_unitOfMeasure_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3144
|
+
message += '\n' + obj_unitOfMeasure_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3145
|
+
return new TypeError(message);
|
|
3146
|
+
}
|
|
3147
|
+
const obj_usageRefreshPolicy = obj.usageRefreshPolicy;
|
|
3148
|
+
const path_usageRefreshPolicy = path + '.usageRefreshPolicy';
|
|
3149
|
+
let obj_usageRefreshPolicy_union0 = null;
|
|
3150
|
+
const obj_usageRefreshPolicy_union0_error = (() => {
|
|
3151
|
+
const referencepath_usageRefreshPolicyValidationError = validate$c(obj_usageRefreshPolicy, path_usageRefreshPolicy);
|
|
3152
|
+
if (referencepath_usageRefreshPolicyValidationError !== null) {
|
|
3153
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRefreshPolicy + '")\n';
|
|
3154
|
+
message += referencepath_usageRefreshPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3155
|
+
return new TypeError(message);
|
|
3156
|
+
}
|
|
3157
|
+
})();
|
|
3158
|
+
if (obj_usageRefreshPolicy_union0_error != null) {
|
|
3159
|
+
obj_usageRefreshPolicy_union0 = obj_usageRefreshPolicy_union0_error.message;
|
|
3160
|
+
}
|
|
3161
|
+
let obj_usageRefreshPolicy_union1 = null;
|
|
3162
|
+
const obj_usageRefreshPolicy_union1_error = (() => {
|
|
3163
|
+
if (obj_usageRefreshPolicy !== null) {
|
|
3164
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRefreshPolicy + '" (at "' + path_usageRefreshPolicy + '")');
|
|
3165
|
+
}
|
|
3166
|
+
})();
|
|
3167
|
+
if (obj_usageRefreshPolicy_union1_error != null) {
|
|
3168
|
+
obj_usageRefreshPolicy_union1 = obj_usageRefreshPolicy_union1_error.message;
|
|
3169
|
+
}
|
|
3170
|
+
if (obj_usageRefreshPolicy_union0 && obj_usageRefreshPolicy_union1) {
|
|
3171
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRefreshPolicy + '")';
|
|
3172
|
+
message += '\n' + obj_usageRefreshPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3173
|
+
message += '\n' + obj_usageRefreshPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3174
|
+
return new TypeError(message);
|
|
3175
|
+
}
|
|
3176
|
+
const obj_usageRolloverPolicy = obj.usageRolloverPolicy;
|
|
3177
|
+
const path_usageRolloverPolicy = path + '.usageRolloverPolicy';
|
|
3178
|
+
let obj_usageRolloverPolicy_union0 = null;
|
|
3179
|
+
const obj_usageRolloverPolicy_union0_error = (() => {
|
|
3180
|
+
const referencepath_usageRolloverPolicyValidationError = validate$c(obj_usageRolloverPolicy, path_usageRolloverPolicy);
|
|
3181
|
+
if (referencepath_usageRolloverPolicyValidationError !== null) {
|
|
3182
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRolloverPolicy + '")\n';
|
|
3183
|
+
message += referencepath_usageRolloverPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3184
|
+
return new TypeError(message);
|
|
3185
|
+
}
|
|
3186
|
+
})();
|
|
3187
|
+
if (obj_usageRolloverPolicy_union0_error != null) {
|
|
3188
|
+
obj_usageRolloverPolicy_union0 = obj_usageRolloverPolicy_union0_error.message;
|
|
3189
|
+
}
|
|
3190
|
+
let obj_usageRolloverPolicy_union1 = null;
|
|
3191
|
+
const obj_usageRolloverPolicy_union1_error = (() => {
|
|
3192
|
+
if (obj_usageRolloverPolicy !== null) {
|
|
3193
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRolloverPolicy + '" (at "' + path_usageRolloverPolicy + '")');
|
|
3194
|
+
}
|
|
3195
|
+
})();
|
|
3196
|
+
if (obj_usageRolloverPolicy_union1_error != null) {
|
|
3197
|
+
obj_usageRolloverPolicy_union1 = obj_usageRolloverPolicy_union1_error.message;
|
|
3198
|
+
}
|
|
3199
|
+
if (obj_usageRolloverPolicy_union0 && obj_usageRolloverPolicy_union1) {
|
|
3200
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRolloverPolicy + '")';
|
|
3201
|
+
message += '\n' + obj_usageRolloverPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3202
|
+
message += '\n' + obj_usageRolloverPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3203
|
+
return new TypeError(message);
|
|
3204
|
+
}
|
|
3205
|
+
const obj_validityPeriodTerm = obj.validityPeriodTerm;
|
|
3206
|
+
const path_validityPeriodTerm = path + '.validityPeriodTerm';
|
|
3207
|
+
let obj_validityPeriodTerm_union0 = null;
|
|
3208
|
+
const obj_validityPeriodTerm_union0_error = (() => {
|
|
3209
|
+
if (typeof obj_validityPeriodTerm !== 'number') {
|
|
3210
|
+
return new TypeError('Expected "number" but received "' + typeof obj_validityPeriodTerm + '" (at "' + path_validityPeriodTerm + '")');
|
|
3211
|
+
}
|
|
3212
|
+
})();
|
|
3213
|
+
if (obj_validityPeriodTerm_union0_error != null) {
|
|
3214
|
+
obj_validityPeriodTerm_union0 = obj_validityPeriodTerm_union0_error.message;
|
|
3215
|
+
}
|
|
3216
|
+
let obj_validityPeriodTerm_union1 = null;
|
|
3217
|
+
const obj_validityPeriodTerm_union1_error = (() => {
|
|
3218
|
+
if (obj_validityPeriodTerm !== null) {
|
|
3219
|
+
return new TypeError('Expected "null" but received "' + typeof obj_validityPeriodTerm + '" (at "' + path_validityPeriodTerm + '")');
|
|
3220
|
+
}
|
|
3221
|
+
})();
|
|
3222
|
+
if (obj_validityPeriodTerm_union1_error != null) {
|
|
3223
|
+
obj_validityPeriodTerm_union1 = obj_validityPeriodTerm_union1_error.message;
|
|
3224
|
+
}
|
|
3225
|
+
if (obj_validityPeriodTerm_union0 && obj_validityPeriodTerm_union1) {
|
|
3226
|
+
let message = 'Object doesn\'t match union (at "' + path_validityPeriodTerm + '")';
|
|
3227
|
+
message += '\n' + obj_validityPeriodTerm_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3228
|
+
message += '\n' + obj_validityPeriodTerm_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3229
|
+
return new TypeError(message);
|
|
3230
|
+
}
|
|
3231
|
+
const obj_validityPeriodUnit = obj.validityPeriodUnit;
|
|
3232
|
+
const path_validityPeriodUnit = path + '.validityPeriodUnit';
|
|
3233
|
+
let obj_validityPeriodUnit_union0 = null;
|
|
3234
|
+
const obj_validityPeriodUnit_union0_error = (() => {
|
|
3235
|
+
if (typeof obj_validityPeriodUnit !== 'string') {
|
|
3236
|
+
return new TypeError('Expected "string" but received "' + typeof obj_validityPeriodUnit + '" (at "' + path_validityPeriodUnit + '")');
|
|
3237
|
+
}
|
|
3238
|
+
})();
|
|
3239
|
+
if (obj_validityPeriodUnit_union0_error != null) {
|
|
3240
|
+
obj_validityPeriodUnit_union0 = obj_validityPeriodUnit_union0_error.message;
|
|
3241
|
+
}
|
|
3242
|
+
let obj_validityPeriodUnit_union1 = null;
|
|
3243
|
+
const obj_validityPeriodUnit_union1_error = (() => {
|
|
3244
|
+
if (obj_validityPeriodUnit !== null) {
|
|
3245
|
+
return new TypeError('Expected "null" but received "' + typeof obj_validityPeriodUnit + '" (at "' + path_validityPeriodUnit + '")');
|
|
3246
|
+
}
|
|
3247
|
+
})();
|
|
3248
|
+
if (obj_validityPeriodUnit_union1_error != null) {
|
|
3249
|
+
obj_validityPeriodUnit_union1 = obj_validityPeriodUnit_union1_error.message;
|
|
3250
|
+
}
|
|
3251
|
+
if (obj_validityPeriodUnit_union0 && obj_validityPeriodUnit_union1) {
|
|
3252
|
+
let message = 'Object doesn\'t match union (at "' + path_validityPeriodUnit + '")';
|
|
3253
|
+
message += '\n' + obj_validityPeriodUnit_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3254
|
+
message += '\n' + obj_validityPeriodUnit_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3255
|
+
return new TypeError(message);
|
|
3256
|
+
}
|
|
3257
|
+
})();
|
|
3258
|
+
return v_error === undefined ? null : v_error;
|
|
3259
|
+
}
|
|
3260
|
+
const select$5 = function BindingObjectGrantDetailOutputRepresentationSelect() {
|
|
3261
|
+
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$h();
|
|
3262
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$g();
|
|
3263
|
+
return {
|
|
3264
|
+
kind: 'Fragment',
|
|
3265
|
+
version: VERSION$4,
|
|
3266
|
+
private: [],
|
|
3267
|
+
selections: [
|
|
3268
|
+
{
|
|
3269
|
+
name: 'effectiveEndDate',
|
|
3270
|
+
kind: 'Scalar'
|
|
3271
|
+
},
|
|
3272
|
+
{
|
|
3273
|
+
name: 'effectiveStartDate',
|
|
3274
|
+
kind: 'Scalar'
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
name: 'grantType',
|
|
3278
|
+
kind: 'Scalar'
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
name: 'id',
|
|
3282
|
+
kind: 'Scalar'
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
name: 'product',
|
|
3286
|
+
kind: 'Object',
|
|
3287
|
+
nullable: true,
|
|
3288
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
name: 'quantity',
|
|
3292
|
+
kind: 'Scalar'
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
name: 'record',
|
|
3296
|
+
kind: 'Object',
|
|
3297
|
+
nullable: true,
|
|
3298
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
name: 'unitOfMeasure',
|
|
3302
|
+
kind: 'Scalar'
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
name: 'usageRefreshPolicy',
|
|
3306
|
+
kind: 'Object',
|
|
3307
|
+
nullable: true,
|
|
3308
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
name: 'usageRolloverPolicy',
|
|
3312
|
+
kind: 'Object',
|
|
3313
|
+
nullable: true,
|
|
3314
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
name: 'validityPeriodTerm',
|
|
3318
|
+
kind: 'Scalar'
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
name: 'validityPeriodUnit',
|
|
3322
|
+
kind: 'Scalar'
|
|
3323
|
+
}
|
|
3324
|
+
]
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
function equals$4(existing, incoming) {
|
|
3328
|
+
const existing_effectiveEndDate = existing.effectiveEndDate;
|
|
3329
|
+
const incoming_effectiveEndDate = incoming.effectiveEndDate;
|
|
3330
|
+
if (!(existing_effectiveEndDate === incoming_effectiveEndDate)) {
|
|
3331
|
+
return false;
|
|
3332
|
+
}
|
|
3333
|
+
const existing_effectiveStartDate = existing.effectiveStartDate;
|
|
3334
|
+
const incoming_effectiveStartDate = incoming.effectiveStartDate;
|
|
3335
|
+
if (!(existing_effectiveStartDate === incoming_effectiveStartDate)) {
|
|
3336
|
+
return false;
|
|
3337
|
+
}
|
|
3338
|
+
const existing_grantType = existing.grantType;
|
|
3339
|
+
const incoming_grantType = incoming.grantType;
|
|
3340
|
+
if (!(existing_grantType === incoming_grantType)) {
|
|
3341
|
+
return false;
|
|
3342
|
+
}
|
|
3343
|
+
const existing_id = existing.id;
|
|
3344
|
+
const incoming_id = incoming.id;
|
|
3345
|
+
if (!(existing_id === incoming_id)) {
|
|
3346
|
+
return false;
|
|
3347
|
+
}
|
|
3348
|
+
const existing_product = existing.product;
|
|
3349
|
+
const incoming_product = incoming.product;
|
|
3350
|
+
if (!(existing_product === incoming_product
|
|
3351
|
+
|| (existing_product != null &&
|
|
3352
|
+
incoming_product != null &&
|
|
3353
|
+
equals$d(existing_product, incoming_product)))) {
|
|
3354
|
+
return false;
|
|
3355
|
+
}
|
|
3356
|
+
const existing_quantity = existing.quantity;
|
|
3357
|
+
const incoming_quantity = incoming.quantity;
|
|
3358
|
+
if (!(existing_quantity === incoming_quantity)) {
|
|
3359
|
+
return false;
|
|
3360
|
+
}
|
|
3361
|
+
const existing_record = existing.record;
|
|
3362
|
+
const incoming_record = incoming.record;
|
|
3363
|
+
if (!(existing_record === incoming_record
|
|
3364
|
+
|| (existing_record != null &&
|
|
3365
|
+
incoming_record != null &&
|
|
3366
|
+
equals$d(existing_record, incoming_record)))) {
|
|
3367
|
+
return false;
|
|
3368
|
+
}
|
|
3369
|
+
const existing_unitOfMeasure = existing.unitOfMeasure;
|
|
3370
|
+
const incoming_unitOfMeasure = incoming.unitOfMeasure;
|
|
3371
|
+
if (!(existing_unitOfMeasure === incoming_unitOfMeasure)) {
|
|
3372
|
+
return false;
|
|
3373
|
+
}
|
|
3374
|
+
const existing_usageRefreshPolicy = existing.usageRefreshPolicy;
|
|
3375
|
+
const incoming_usageRefreshPolicy = incoming.usageRefreshPolicy;
|
|
3376
|
+
if (!(existing_usageRefreshPolicy === incoming_usageRefreshPolicy
|
|
3377
|
+
|| (existing_usageRefreshPolicy != null &&
|
|
3378
|
+
incoming_usageRefreshPolicy != null &&
|
|
3379
|
+
equals$c(existing_usageRefreshPolicy, incoming_usageRefreshPolicy)))) {
|
|
3380
|
+
return false;
|
|
3381
|
+
}
|
|
3382
|
+
const existing_usageRolloverPolicy = existing.usageRolloverPolicy;
|
|
3383
|
+
const incoming_usageRolloverPolicy = incoming.usageRolloverPolicy;
|
|
3384
|
+
if (!(existing_usageRolloverPolicy === incoming_usageRolloverPolicy
|
|
3385
|
+
|| (existing_usageRolloverPolicy != null &&
|
|
3386
|
+
incoming_usageRolloverPolicy != null &&
|
|
3387
|
+
equals$c(existing_usageRolloverPolicy, incoming_usageRolloverPolicy)))) {
|
|
3388
|
+
return false;
|
|
3389
|
+
}
|
|
3390
|
+
const existing_validityPeriodTerm = existing.validityPeriodTerm;
|
|
3391
|
+
const incoming_validityPeriodTerm = incoming.validityPeriodTerm;
|
|
3392
|
+
if (!(existing_validityPeriodTerm === incoming_validityPeriodTerm)) {
|
|
3393
|
+
return false;
|
|
3394
|
+
}
|
|
3395
|
+
const existing_validityPeriodUnit = existing.validityPeriodUnit;
|
|
3396
|
+
const incoming_validityPeriodUnit = incoming.validityPeriodUnit;
|
|
3397
|
+
if (!(existing_validityPeriodUnit === incoming_validityPeriodUnit)) {
|
|
3398
|
+
return false;
|
|
3399
|
+
}
|
|
3400
|
+
return true;
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
const VERSION$3 = "4ac471e759f07d5b598ca0dec1fedd12";
|
|
3404
|
+
function validate$3(obj, path = 'BindingObjectResourcePolicyDetailOutputRepresentation') {
|
|
3405
|
+
const v_error = (() => {
|
|
3406
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3407
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3408
|
+
}
|
|
3409
|
+
const obj_drawdownOrder = obj.drawdownOrder;
|
|
3410
|
+
const path_drawdownOrder = path + '.drawdownOrder';
|
|
3411
|
+
let obj_drawdownOrder_union0 = null;
|
|
3412
|
+
const obj_drawdownOrder_union0_error = (() => {
|
|
3413
|
+
if (typeof obj_drawdownOrder !== 'string') {
|
|
3414
|
+
return new TypeError('Expected "string" but received "' + typeof obj_drawdownOrder + '" (at "' + path_drawdownOrder + '")');
|
|
3415
|
+
}
|
|
3416
|
+
})();
|
|
3417
|
+
if (obj_drawdownOrder_union0_error != null) {
|
|
3418
|
+
obj_drawdownOrder_union0 = obj_drawdownOrder_union0_error.message;
|
|
3419
|
+
}
|
|
3420
|
+
let obj_drawdownOrder_union1 = null;
|
|
3421
|
+
const obj_drawdownOrder_union1_error = (() => {
|
|
3422
|
+
if (obj_drawdownOrder !== null) {
|
|
3423
|
+
return new TypeError('Expected "null" but received "' + typeof obj_drawdownOrder + '" (at "' + path_drawdownOrder + '")');
|
|
3424
|
+
}
|
|
3425
|
+
})();
|
|
3426
|
+
if (obj_drawdownOrder_union1_error != null) {
|
|
3427
|
+
obj_drawdownOrder_union1 = obj_drawdownOrder_union1_error.message;
|
|
3428
|
+
}
|
|
3429
|
+
if (obj_drawdownOrder_union0 && obj_drawdownOrder_union1) {
|
|
3430
|
+
let message = 'Object doesn\'t match union (at "' + path_drawdownOrder + '")';
|
|
3431
|
+
message += '\n' + obj_drawdownOrder_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3432
|
+
message += '\n' + obj_drawdownOrder_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3433
|
+
return new TypeError(message);
|
|
3434
|
+
}
|
|
3435
|
+
const obj_id = obj.id;
|
|
3436
|
+
const path_id = path + '.id';
|
|
3437
|
+
let obj_id_union0 = null;
|
|
3438
|
+
const obj_id_union0_error = (() => {
|
|
3439
|
+
if (typeof obj_id !== 'string') {
|
|
3440
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3441
|
+
}
|
|
3442
|
+
})();
|
|
3443
|
+
if (obj_id_union0_error != null) {
|
|
3444
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3445
|
+
}
|
|
3446
|
+
let obj_id_union1 = null;
|
|
3447
|
+
const obj_id_union1_error = (() => {
|
|
3448
|
+
if (obj_id !== null) {
|
|
3449
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3450
|
+
}
|
|
3451
|
+
})();
|
|
3452
|
+
if (obj_id_union1_error != null) {
|
|
3453
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3454
|
+
}
|
|
3455
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3456
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3457
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3458
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3459
|
+
return new TypeError(message);
|
|
3460
|
+
}
|
|
3461
|
+
const obj_ratingFrequencyPolicy = obj.ratingFrequencyPolicy;
|
|
3462
|
+
const path_ratingFrequencyPolicy = path + '.ratingFrequencyPolicy';
|
|
3463
|
+
let obj_ratingFrequencyPolicy_union0 = null;
|
|
3464
|
+
const obj_ratingFrequencyPolicy_union0_error = (() => {
|
|
3465
|
+
const referencepath_ratingFrequencyPolicyValidationError = validate$c(obj_ratingFrequencyPolicy, path_ratingFrequencyPolicy);
|
|
3466
|
+
if (referencepath_ratingFrequencyPolicyValidationError !== null) {
|
|
3467
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_ratingFrequencyPolicy + '")\n';
|
|
3468
|
+
message += referencepath_ratingFrequencyPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3469
|
+
return new TypeError(message);
|
|
3470
|
+
}
|
|
3471
|
+
})();
|
|
3472
|
+
if (obj_ratingFrequencyPolicy_union0_error != null) {
|
|
3473
|
+
obj_ratingFrequencyPolicy_union0 = obj_ratingFrequencyPolicy_union0_error.message;
|
|
3474
|
+
}
|
|
3475
|
+
let obj_ratingFrequencyPolicy_union1 = null;
|
|
3476
|
+
const obj_ratingFrequencyPolicy_union1_error = (() => {
|
|
3477
|
+
if (obj_ratingFrequencyPolicy !== null) {
|
|
3478
|
+
return new TypeError('Expected "null" but received "' + typeof obj_ratingFrequencyPolicy + '" (at "' + path_ratingFrequencyPolicy + '")');
|
|
3479
|
+
}
|
|
3480
|
+
})();
|
|
3481
|
+
if (obj_ratingFrequencyPolicy_union1_error != null) {
|
|
3482
|
+
obj_ratingFrequencyPolicy_union1 = obj_ratingFrequencyPolicy_union1_error.message;
|
|
3483
|
+
}
|
|
3484
|
+
if (obj_ratingFrequencyPolicy_union0 && obj_ratingFrequencyPolicy_union1) {
|
|
3485
|
+
let message = 'Object doesn\'t match union (at "' + path_ratingFrequencyPolicy + '")';
|
|
3486
|
+
message += '\n' + obj_ratingFrequencyPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3487
|
+
message += '\n' + obj_ratingFrequencyPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3488
|
+
return new TypeError(message);
|
|
3489
|
+
}
|
|
3490
|
+
const obj_usageAggregationPolicy = obj.usageAggregationPolicy;
|
|
3491
|
+
const path_usageAggregationPolicy = path + '.usageAggregationPolicy';
|
|
3492
|
+
let obj_usageAggregationPolicy_union0 = null;
|
|
3493
|
+
const obj_usageAggregationPolicy_union0_error = (() => {
|
|
3494
|
+
const referencepath_usageAggregationPolicyValidationError = validate$c(obj_usageAggregationPolicy, path_usageAggregationPolicy);
|
|
3495
|
+
if (referencepath_usageAggregationPolicyValidationError !== null) {
|
|
3496
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageAggregationPolicy + '")\n';
|
|
3497
|
+
message += referencepath_usageAggregationPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3498
|
+
return new TypeError(message);
|
|
3499
|
+
}
|
|
3500
|
+
})();
|
|
3501
|
+
if (obj_usageAggregationPolicy_union0_error != null) {
|
|
3502
|
+
obj_usageAggregationPolicy_union0 = obj_usageAggregationPolicy_union0_error.message;
|
|
3503
|
+
}
|
|
3504
|
+
let obj_usageAggregationPolicy_union1 = null;
|
|
3505
|
+
const obj_usageAggregationPolicy_union1_error = (() => {
|
|
3506
|
+
if (obj_usageAggregationPolicy !== null) {
|
|
3507
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageAggregationPolicy + '" (at "' + path_usageAggregationPolicy + '")');
|
|
3508
|
+
}
|
|
3509
|
+
})();
|
|
3510
|
+
if (obj_usageAggregationPolicy_union1_error != null) {
|
|
3511
|
+
obj_usageAggregationPolicy_union1 = obj_usageAggregationPolicy_union1_error.message;
|
|
3512
|
+
}
|
|
3513
|
+
if (obj_usageAggregationPolicy_union0 && obj_usageAggregationPolicy_union1) {
|
|
3514
|
+
let message = 'Object doesn\'t match union (at "' + path_usageAggregationPolicy + '")';
|
|
3515
|
+
message += '\n' + obj_usageAggregationPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3516
|
+
message += '\n' + obj_usageAggregationPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3517
|
+
return new TypeError(message);
|
|
3518
|
+
}
|
|
3519
|
+
const obj_usageCommitmentPolicy = obj.usageCommitmentPolicy;
|
|
3520
|
+
const path_usageCommitmentPolicy = path + '.usageCommitmentPolicy';
|
|
3521
|
+
let obj_usageCommitmentPolicy_union0 = null;
|
|
3522
|
+
const obj_usageCommitmentPolicy_union0_error = (() => {
|
|
3523
|
+
const referencepath_usageCommitmentPolicyValidationError = validate$c(obj_usageCommitmentPolicy, path_usageCommitmentPolicy);
|
|
3524
|
+
if (referencepath_usageCommitmentPolicyValidationError !== null) {
|
|
3525
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageCommitmentPolicy + '")\n';
|
|
3526
|
+
message += referencepath_usageCommitmentPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3527
|
+
return new TypeError(message);
|
|
3528
|
+
}
|
|
3529
|
+
})();
|
|
3530
|
+
if (obj_usageCommitmentPolicy_union0_error != null) {
|
|
3531
|
+
obj_usageCommitmentPolicy_union0 = obj_usageCommitmentPolicy_union0_error.message;
|
|
3532
|
+
}
|
|
3533
|
+
let obj_usageCommitmentPolicy_union1 = null;
|
|
3534
|
+
const obj_usageCommitmentPolicy_union1_error = (() => {
|
|
3535
|
+
if (obj_usageCommitmentPolicy !== null) {
|
|
3536
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageCommitmentPolicy + '" (at "' + path_usageCommitmentPolicy + '")');
|
|
3537
|
+
}
|
|
3538
|
+
})();
|
|
3539
|
+
if (obj_usageCommitmentPolicy_union1_error != null) {
|
|
3540
|
+
obj_usageCommitmentPolicy_union1 = obj_usageCommitmentPolicy_union1_error.message;
|
|
3541
|
+
}
|
|
3542
|
+
if (obj_usageCommitmentPolicy_union0 && obj_usageCommitmentPolicy_union1) {
|
|
3543
|
+
let message = 'Object doesn\'t match union (at "' + path_usageCommitmentPolicy + '")';
|
|
3544
|
+
message += '\n' + obj_usageCommitmentPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3545
|
+
message += '\n' + obj_usageCommitmentPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3546
|
+
return new TypeError(message);
|
|
3547
|
+
}
|
|
3548
|
+
const obj_usageOveragePolicy = obj.usageOveragePolicy;
|
|
3549
|
+
const path_usageOveragePolicy = path + '.usageOveragePolicy';
|
|
3550
|
+
let obj_usageOveragePolicy_union0 = null;
|
|
3551
|
+
const obj_usageOveragePolicy_union0_error = (() => {
|
|
3552
|
+
const referencepath_usageOveragePolicyValidationError = validate$c(obj_usageOveragePolicy, path_usageOveragePolicy);
|
|
3553
|
+
if (referencepath_usageOveragePolicyValidationError !== null) {
|
|
3554
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageOveragePolicy + '")\n';
|
|
3555
|
+
message += referencepath_usageOveragePolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3556
|
+
return new TypeError(message);
|
|
3557
|
+
}
|
|
3558
|
+
})();
|
|
3559
|
+
if (obj_usageOveragePolicy_union0_error != null) {
|
|
3560
|
+
obj_usageOveragePolicy_union0 = obj_usageOveragePolicy_union0_error.message;
|
|
3561
|
+
}
|
|
3562
|
+
let obj_usageOveragePolicy_union1 = null;
|
|
3563
|
+
const obj_usageOveragePolicy_union1_error = (() => {
|
|
3564
|
+
if (obj_usageOveragePolicy !== null) {
|
|
3565
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageOveragePolicy + '" (at "' + path_usageOveragePolicy + '")');
|
|
3566
|
+
}
|
|
3567
|
+
})();
|
|
3568
|
+
if (obj_usageOveragePolicy_union1_error != null) {
|
|
3569
|
+
obj_usageOveragePolicy_union1 = obj_usageOveragePolicy_union1_error.message;
|
|
3570
|
+
}
|
|
3571
|
+
if (obj_usageOveragePolicy_union0 && obj_usageOveragePolicy_union1) {
|
|
3572
|
+
let message = 'Object doesn\'t match union (at "' + path_usageOveragePolicy + '")';
|
|
3573
|
+
message += '\n' + obj_usageOveragePolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3574
|
+
message += '\n' + obj_usageOveragePolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3575
|
+
return new TypeError(message);
|
|
3576
|
+
}
|
|
3577
|
+
})();
|
|
3578
|
+
return v_error === undefined ? null : v_error;
|
|
3579
|
+
}
|
|
3580
|
+
const select$4 = function BindingObjectResourcePolicyDetailOutputRepresentationSelect() {
|
|
3581
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$g();
|
|
3582
|
+
return {
|
|
3583
|
+
kind: 'Fragment',
|
|
3584
|
+
version: VERSION$3,
|
|
3585
|
+
private: [],
|
|
3586
|
+
selections: [
|
|
3587
|
+
{
|
|
3588
|
+
name: 'drawdownOrder',
|
|
3589
|
+
kind: 'Scalar'
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
name: 'id',
|
|
3593
|
+
kind: 'Scalar'
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
name: 'ratingFrequencyPolicy',
|
|
3597
|
+
kind: 'Object',
|
|
3598
|
+
nullable: true,
|
|
3599
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
name: 'usageAggregationPolicy',
|
|
3603
|
+
kind: 'Object',
|
|
3604
|
+
nullable: true,
|
|
3605
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
name: 'usageCommitmentPolicy',
|
|
3609
|
+
kind: 'Object',
|
|
3610
|
+
nullable: true,
|
|
3611
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
name: 'usageOveragePolicy',
|
|
3615
|
+
kind: 'Object',
|
|
3616
|
+
nullable: true,
|
|
3617
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3618
|
+
}
|
|
3619
|
+
]
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
function equals$3(existing, incoming) {
|
|
3623
|
+
const existing_drawdownOrder = existing.drawdownOrder;
|
|
3624
|
+
const incoming_drawdownOrder = incoming.drawdownOrder;
|
|
3625
|
+
if (!(existing_drawdownOrder === incoming_drawdownOrder)) {
|
|
3626
|
+
return false;
|
|
3627
|
+
}
|
|
3628
|
+
const existing_id = existing.id;
|
|
3629
|
+
const incoming_id = incoming.id;
|
|
3630
|
+
if (!(existing_id === incoming_id)) {
|
|
3631
|
+
return false;
|
|
3632
|
+
}
|
|
3633
|
+
const existing_ratingFrequencyPolicy = existing.ratingFrequencyPolicy;
|
|
3634
|
+
const incoming_ratingFrequencyPolicy = incoming.ratingFrequencyPolicy;
|
|
3635
|
+
if (!(existing_ratingFrequencyPolicy === incoming_ratingFrequencyPolicy
|
|
3636
|
+
|| (existing_ratingFrequencyPolicy != null &&
|
|
3637
|
+
incoming_ratingFrequencyPolicy != null &&
|
|
3638
|
+
equals$c(existing_ratingFrequencyPolicy, incoming_ratingFrequencyPolicy)))) {
|
|
3639
|
+
return false;
|
|
3640
|
+
}
|
|
3641
|
+
const existing_usageAggregationPolicy = existing.usageAggregationPolicy;
|
|
3642
|
+
const incoming_usageAggregationPolicy = incoming.usageAggregationPolicy;
|
|
3643
|
+
if (!(existing_usageAggregationPolicy === incoming_usageAggregationPolicy
|
|
3644
|
+
|| (existing_usageAggregationPolicy != null &&
|
|
3645
|
+
incoming_usageAggregationPolicy != null &&
|
|
3646
|
+
equals$c(existing_usageAggregationPolicy, incoming_usageAggregationPolicy)))) {
|
|
3647
|
+
return false;
|
|
3648
|
+
}
|
|
3649
|
+
const existing_usageCommitmentPolicy = existing.usageCommitmentPolicy;
|
|
3650
|
+
const incoming_usageCommitmentPolicy = incoming.usageCommitmentPolicy;
|
|
3651
|
+
if (!(existing_usageCommitmentPolicy === incoming_usageCommitmentPolicy
|
|
3652
|
+
|| (existing_usageCommitmentPolicy != null &&
|
|
3653
|
+
incoming_usageCommitmentPolicy != null &&
|
|
3654
|
+
equals$c(existing_usageCommitmentPolicy, incoming_usageCommitmentPolicy)))) {
|
|
3655
|
+
return false;
|
|
3656
|
+
}
|
|
3657
|
+
const existing_usageOveragePolicy = existing.usageOveragePolicy;
|
|
3658
|
+
const incoming_usageOveragePolicy = incoming.usageOveragePolicy;
|
|
3659
|
+
if (!(existing_usageOveragePolicy === incoming_usageOveragePolicy
|
|
3660
|
+
|| (existing_usageOveragePolicy != null &&
|
|
3661
|
+
incoming_usageOveragePolicy != null &&
|
|
3662
|
+
equals$c(existing_usageOveragePolicy, incoming_usageOveragePolicy)))) {
|
|
3663
|
+
return false;
|
|
3664
|
+
}
|
|
3665
|
+
return true;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
const VERSION$2 = "2549cb45d6f8bdcc5881e1f37b6c9073";
|
|
3669
|
+
function validate$2(obj, path = 'BindingObjectResourceGrantAndPolicyDetailOutputRepresentation') {
|
|
3670
|
+
const v_error = (() => {
|
|
3671
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3672
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3673
|
+
}
|
|
3674
|
+
if (obj.bindingObjectGrantDetail !== undefined) {
|
|
3675
|
+
const obj_bindingObjectGrantDetail = obj.bindingObjectGrantDetail;
|
|
3676
|
+
const path_bindingObjectGrantDetail = path + '.bindingObjectGrantDetail';
|
|
3677
|
+
if (!ArrayIsArray(obj_bindingObjectGrantDetail)) {
|
|
3678
|
+
return new TypeError('Expected "array" but received "' + typeof obj_bindingObjectGrantDetail + '" (at "' + path_bindingObjectGrantDetail + '")');
|
|
3679
|
+
}
|
|
3680
|
+
for (let i = 0; i < obj_bindingObjectGrantDetail.length; i++) {
|
|
3681
|
+
const obj_bindingObjectGrantDetail_item = obj_bindingObjectGrantDetail[i];
|
|
3682
|
+
const path_bindingObjectGrantDetail_item = path_bindingObjectGrantDetail + '[' + i + ']';
|
|
3683
|
+
let obj_bindingObjectGrantDetail_item_union0 = null;
|
|
3684
|
+
const obj_bindingObjectGrantDetail_item_union0_error = (() => {
|
|
3685
|
+
const referencepath_bindingObjectGrantDetail_itemValidationError = validate$4(obj_bindingObjectGrantDetail_item, path_bindingObjectGrantDetail_item);
|
|
3686
|
+
if (referencepath_bindingObjectGrantDetail_itemValidationError !== null) {
|
|
3687
|
+
let message = 'Object doesn\'t match BindingObjectGrantDetailOutputRepresentation (at "' + path_bindingObjectGrantDetail_item + '")\n';
|
|
3688
|
+
message += referencepath_bindingObjectGrantDetail_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3689
|
+
return new TypeError(message);
|
|
3690
|
+
}
|
|
3691
|
+
})();
|
|
3692
|
+
if (obj_bindingObjectGrantDetail_item_union0_error != null) {
|
|
3693
|
+
obj_bindingObjectGrantDetail_item_union0 = obj_bindingObjectGrantDetail_item_union0_error.message;
|
|
3694
|
+
}
|
|
3695
|
+
let obj_bindingObjectGrantDetail_item_union1 = null;
|
|
3696
|
+
const obj_bindingObjectGrantDetail_item_union1_error = (() => {
|
|
3697
|
+
if (obj_bindingObjectGrantDetail_item !== null) {
|
|
3698
|
+
return new TypeError('Expected "null" but received "' + typeof obj_bindingObjectGrantDetail_item + '" (at "' + path_bindingObjectGrantDetail_item + '")');
|
|
3699
|
+
}
|
|
3700
|
+
})();
|
|
3701
|
+
if (obj_bindingObjectGrantDetail_item_union1_error != null) {
|
|
3702
|
+
obj_bindingObjectGrantDetail_item_union1 = obj_bindingObjectGrantDetail_item_union1_error.message;
|
|
3703
|
+
}
|
|
3704
|
+
if (obj_bindingObjectGrantDetail_item_union0 && obj_bindingObjectGrantDetail_item_union1) {
|
|
3705
|
+
let message = 'Object doesn\'t match union (at "' + path_bindingObjectGrantDetail_item + '")';
|
|
3706
|
+
message += '\n' + obj_bindingObjectGrantDetail_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3707
|
+
message += '\n' + obj_bindingObjectGrantDetail_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3708
|
+
return new TypeError(message);
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
if (obj.bindingObjectResourcePolicyDetail !== undefined) {
|
|
3713
|
+
const obj_bindingObjectResourcePolicyDetail = obj.bindingObjectResourcePolicyDetail;
|
|
3714
|
+
const path_bindingObjectResourcePolicyDetail = path + '.bindingObjectResourcePolicyDetail';
|
|
3715
|
+
const referencepath_bindingObjectResourcePolicyDetailValidationError = validate$3(obj_bindingObjectResourcePolicyDetail, path_bindingObjectResourcePolicyDetail);
|
|
3716
|
+
if (referencepath_bindingObjectResourcePolicyDetailValidationError !== null) {
|
|
3717
|
+
let message = 'Object doesn\'t match BindingObjectResourcePolicyDetailOutputRepresentation (at "' + path_bindingObjectResourcePolicyDetail + '")\n';
|
|
3718
|
+
message += referencepath_bindingObjectResourcePolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3719
|
+
return new TypeError(message);
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
})();
|
|
3723
|
+
return v_error === undefined ? null : v_error;
|
|
3724
|
+
}
|
|
3725
|
+
const select$3 = function BindingObjectResourceGrantAndPolicyDetailOutputRepresentationSelect() {
|
|
3726
|
+
const { selections: BindingObjectGrantDetailOutputRepresentation__selections, opaque: BindingObjectGrantDetailOutputRepresentation__opaque, } = select$5();
|
|
3727
|
+
const { selections: BindingObjectResourcePolicyDetailOutputRepresentation__selections, opaque: BindingObjectResourcePolicyDetailOutputRepresentation__opaque, } = select$4();
|
|
3728
|
+
return {
|
|
3729
|
+
kind: 'Fragment',
|
|
3730
|
+
version: VERSION$2,
|
|
3731
|
+
private: [],
|
|
3732
|
+
selections: [
|
|
3733
|
+
{
|
|
3734
|
+
name: 'bindingObjectGrantDetail',
|
|
3735
|
+
kind: 'Object',
|
|
3736
|
+
nullable: true,
|
|
3737
|
+
plural: true,
|
|
3738
|
+
selections: BindingObjectGrantDetailOutputRepresentation__selections,
|
|
3739
|
+
required: false
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
name: 'bindingObjectResourcePolicyDetail',
|
|
3743
|
+
kind: 'Object',
|
|
3744
|
+
selections: BindingObjectResourcePolicyDetailOutputRepresentation__selections,
|
|
3745
|
+
required: false
|
|
3746
|
+
}
|
|
3747
|
+
]
|
|
3748
|
+
};
|
|
3749
|
+
};
|
|
3750
|
+
function equals$2(existing, incoming) {
|
|
3751
|
+
const existing_bindingObjectGrantDetail = existing.bindingObjectGrantDetail;
|
|
3752
|
+
const incoming_bindingObjectGrantDetail = incoming.bindingObjectGrantDetail;
|
|
3753
|
+
// if at least one of these optionals is defined
|
|
3754
|
+
if (existing_bindingObjectGrantDetail !== undefined || incoming_bindingObjectGrantDetail !== undefined) {
|
|
3755
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3756
|
+
// not equal
|
|
3757
|
+
if (existing_bindingObjectGrantDetail === undefined || incoming_bindingObjectGrantDetail === undefined) {
|
|
3758
|
+
return false;
|
|
3759
|
+
}
|
|
3760
|
+
const equals_bindingObjectGrantDetail_items = equalsArray(existing_bindingObjectGrantDetail, incoming_bindingObjectGrantDetail, (existing_bindingObjectGrantDetail_item, incoming_bindingObjectGrantDetail_item) => {
|
|
3761
|
+
if (!(existing_bindingObjectGrantDetail_item === incoming_bindingObjectGrantDetail_item
|
|
3762
|
+
|| (existing_bindingObjectGrantDetail_item != null &&
|
|
3763
|
+
incoming_bindingObjectGrantDetail_item != null &&
|
|
3764
|
+
equals$4(existing_bindingObjectGrantDetail_item, incoming_bindingObjectGrantDetail_item)))) {
|
|
3765
|
+
return false;
|
|
3766
|
+
}
|
|
3767
|
+
});
|
|
3768
|
+
if (equals_bindingObjectGrantDetail_items === false) {
|
|
3769
|
+
return false;
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
const existing_bindingObjectResourcePolicyDetail = existing.bindingObjectResourcePolicyDetail;
|
|
3773
|
+
const incoming_bindingObjectResourcePolicyDetail = incoming.bindingObjectResourcePolicyDetail;
|
|
3774
|
+
// if at least one of these optionals is defined
|
|
3775
|
+
if (existing_bindingObjectResourcePolicyDetail !== undefined || incoming_bindingObjectResourcePolicyDetail !== undefined) {
|
|
3776
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3777
|
+
// not equal
|
|
3778
|
+
if (existing_bindingObjectResourcePolicyDetail === undefined || incoming_bindingObjectResourcePolicyDetail === undefined) {
|
|
3779
|
+
return false;
|
|
3780
|
+
}
|
|
3781
|
+
if (!(equals$3(existing_bindingObjectResourcePolicyDetail, incoming_bindingObjectResourcePolicyDetail))) {
|
|
3782
|
+
return false;
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
return true;
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
const VERSION$1 = "9ac3605c04ffb39f20c8db01c7a72e5d";
|
|
3789
|
+
function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
3790
|
+
const v_error = (() => {
|
|
3791
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3792
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3793
|
+
}
|
|
3794
|
+
if (obj.bindingObjectRate !== undefined) {
|
|
3795
|
+
const obj_bindingObjectRate = obj.bindingObjectRate;
|
|
3796
|
+
const path_bindingObjectRate = path + '.bindingObjectRate';
|
|
3797
|
+
const referencepath_bindingObjectRateValidationError = validate$5(obj_bindingObjectRate, path_bindingObjectRate);
|
|
3798
|
+
if (referencepath_bindingObjectRateValidationError !== null) {
|
|
3799
|
+
let message = 'Object doesn\'t match BindingObjectRateOutputRepresentation (at "' + path_bindingObjectRate + '")\n';
|
|
3800
|
+
message += referencepath_bindingObjectRateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3801
|
+
return new TypeError(message);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
if (obj.bindingObjectResourceGrantAndPolicyDetail !== undefined) {
|
|
3805
|
+
const obj_bindingObjectResourceGrantAndPolicyDetail = obj.bindingObjectResourceGrantAndPolicyDetail;
|
|
3806
|
+
const path_bindingObjectResourceGrantAndPolicyDetail = path + '.bindingObjectResourceGrantAndPolicyDetail';
|
|
3807
|
+
const referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError = validate$2(obj_bindingObjectResourceGrantAndPolicyDetail, path_bindingObjectResourceGrantAndPolicyDetail);
|
|
3808
|
+
if (referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError !== null) {
|
|
3809
|
+
let message = 'Object doesn\'t match BindingObjectResourceGrantAndPolicyDetailOutputRepresentation (at "' + path_bindingObjectResourceGrantAndPolicyDetail + '")\n';
|
|
3810
|
+
message += referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3811
|
+
return new TypeError(message);
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
if (obj.usageResource !== undefined) {
|
|
3815
|
+
const obj_usageResource = obj.usageResource;
|
|
3816
|
+
const path_usageResource = path + '.usageResource';
|
|
3817
|
+
const referencepath_usageResourceValidationError = validate$d(obj_usageResource, path_usageResource);
|
|
3818
|
+
if (referencepath_usageResourceValidationError !== null) {
|
|
3819
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_usageResource + '")\n';
|
|
3820
|
+
message += referencepath_usageResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3821
|
+
return new TypeError(message);
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
})();
|
|
3825
|
+
return v_error === undefined ? null : v_error;
|
|
3826
|
+
}
|
|
3827
|
+
const select$2 = function BindingObjectDetailOutputRepresentationSelect() {
|
|
3828
|
+
const { selections: BindingObjectRateOutputRepresentation__selections, opaque: BindingObjectRateOutputRepresentation__opaque, } = select$6();
|
|
3829
|
+
const { selections: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$3();
|
|
3830
|
+
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$h();
|
|
3831
|
+
return {
|
|
3832
|
+
kind: 'Fragment',
|
|
3833
|
+
version: VERSION$1,
|
|
3834
|
+
private: [],
|
|
3835
|
+
selections: [
|
|
3836
|
+
{
|
|
3837
|
+
name: 'bindingObjectRate',
|
|
3838
|
+
kind: 'Object',
|
|
3839
|
+
selections: BindingObjectRateOutputRepresentation__selections,
|
|
3840
|
+
required: false
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
name: 'bindingObjectResourceGrantAndPolicyDetail',
|
|
3844
|
+
kind: 'Object',
|
|
3845
|
+
selections: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__selections,
|
|
3846
|
+
required: false
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
name: 'usageResource',
|
|
3850
|
+
kind: 'Object',
|
|
3851
|
+
selections: LookupDetailOutputRepresentation__selections,
|
|
3852
|
+
required: false
|
|
3853
|
+
}
|
|
3854
|
+
]
|
|
3855
|
+
};
|
|
3856
|
+
};
|
|
3857
|
+
function equals$1(existing, incoming) {
|
|
3858
|
+
const existing_bindingObjectRate = existing.bindingObjectRate;
|
|
3859
|
+
const incoming_bindingObjectRate = incoming.bindingObjectRate;
|
|
3860
|
+
// if at least one of these optionals is defined
|
|
3861
|
+
if (existing_bindingObjectRate !== undefined || incoming_bindingObjectRate !== undefined) {
|
|
3862
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3863
|
+
// not equal
|
|
3864
|
+
if (existing_bindingObjectRate === undefined || incoming_bindingObjectRate === undefined) {
|
|
3865
|
+
return false;
|
|
3866
|
+
}
|
|
3867
|
+
if (!(equals$5(existing_bindingObjectRate, incoming_bindingObjectRate))) {
|
|
3868
|
+
return false;
|
|
3869
|
+
}
|
|
3870
|
+
}
|
|
3871
|
+
const existing_bindingObjectResourceGrantAndPolicyDetail = existing.bindingObjectResourceGrantAndPolicyDetail;
|
|
3872
|
+
const incoming_bindingObjectResourceGrantAndPolicyDetail = incoming.bindingObjectResourceGrantAndPolicyDetail;
|
|
3873
|
+
// if at least one of these optionals is defined
|
|
3874
|
+
if (existing_bindingObjectResourceGrantAndPolicyDetail !== undefined || incoming_bindingObjectResourceGrantAndPolicyDetail !== undefined) {
|
|
3875
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3876
|
+
// not equal
|
|
3877
|
+
if (existing_bindingObjectResourceGrantAndPolicyDetail === undefined || incoming_bindingObjectResourceGrantAndPolicyDetail === undefined) {
|
|
3878
|
+
return false;
|
|
3879
|
+
}
|
|
3880
|
+
if (!(equals$2(existing_bindingObjectResourceGrantAndPolicyDetail, incoming_bindingObjectResourceGrantAndPolicyDetail))) {
|
|
3881
|
+
return false;
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
const existing_usageResource = existing.usageResource;
|
|
3885
|
+
const incoming_usageResource = incoming.usageResource;
|
|
3886
|
+
// if at least one of these optionals is defined
|
|
3887
|
+
if (existing_usageResource !== undefined || incoming_usageResource !== undefined) {
|
|
3888
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3889
|
+
// not equal
|
|
3890
|
+
if (existing_usageResource === undefined || incoming_usageResource === undefined) {
|
|
3891
|
+
return false;
|
|
3892
|
+
}
|
|
3893
|
+
if (!(equals$d(existing_usageResource, incoming_usageResource))) {
|
|
3894
|
+
return false;
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3897
|
+
return true;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
const TTL = 1000;
|
|
3901
|
+
const VERSION = "0f0dbfd598a1b58ec6909726752412ad";
|
|
3902
|
+
function validate(obj, path = 'UsageDetailBindingTargetOutputRepresentation') {
|
|
3903
|
+
const v_error = (() => {
|
|
3904
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3905
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3906
|
+
}
|
|
3907
|
+
if (obj.errors !== undefined) {
|
|
3908
|
+
const obj_errors = obj.errors;
|
|
3909
|
+
const path_errors = path + '.errors';
|
|
3910
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
3911
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
3912
|
+
}
|
|
3913
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
3914
|
+
const obj_errors_item = obj_errors[i];
|
|
3915
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
3916
|
+
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
3917
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
3918
|
+
let message = 'Object doesn\'t match UsageDetailErrorResponseRepresentation (at "' + path_errors_item + '")\n';
|
|
3919
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3920
|
+
return new TypeError(message);
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
if (obj.records !== undefined) {
|
|
3925
|
+
const obj_records = obj.records;
|
|
3926
|
+
const path_records = path + '.records';
|
|
3927
|
+
if (!ArrayIsArray(obj_records)) {
|
|
3928
|
+
return new TypeError('Expected "array" but received "' + typeof obj_records + '" (at "' + path_records + '")');
|
|
3929
|
+
}
|
|
3930
|
+
for (let i = 0; i < obj_records.length; i++) {
|
|
3931
|
+
const obj_records_item = obj_records[i];
|
|
3932
|
+
const path_records_item = path_records + '[' + i + ']';
|
|
3933
|
+
const referencepath_records_itemValidationError = validate$1(obj_records_item, path_records_item);
|
|
3934
|
+
if (referencepath_records_itemValidationError !== null) {
|
|
3935
|
+
let message = 'Object doesn\'t match BindingObjectDetailOutputRepresentation (at "' + path_records_item + '")\n';
|
|
3936
|
+
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3937
|
+
return new TypeError(message);
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
})();
|
|
3942
|
+
return v_error === undefined ? null : v_error;
|
|
3943
|
+
}
|
|
3944
|
+
const RepresentationType = 'UsageDetailBindingTargetOutputRepresentation';
|
|
3945
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3946
|
+
return input;
|
|
3947
|
+
}
|
|
3948
|
+
const select$1 = function UsageDetailBindingTargetOutputRepresentationSelect() {
|
|
3949
|
+
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$j();
|
|
3950
|
+
const { selections: BindingObjectDetailOutputRepresentation__selections, opaque: BindingObjectDetailOutputRepresentation__opaque, } = select$2();
|
|
3951
|
+
return {
|
|
3952
|
+
kind: 'Fragment',
|
|
3953
|
+
version: VERSION,
|
|
3954
|
+
private: [],
|
|
3955
|
+
selections: [
|
|
3956
|
+
{
|
|
3957
|
+
name: 'errors',
|
|
3958
|
+
kind: 'Object',
|
|
3959
|
+
plural: true,
|
|
3960
|
+
selections: UsageDetailErrorResponseRepresentation__selections,
|
|
3961
|
+
required: false
|
|
3962
|
+
},
|
|
3963
|
+
{
|
|
3964
|
+
name: 'records',
|
|
3965
|
+
kind: 'Object',
|
|
3966
|
+
plural: true,
|
|
3967
|
+
selections: BindingObjectDetailOutputRepresentation__selections,
|
|
3968
|
+
required: false
|
|
3969
|
+
}
|
|
3970
|
+
]
|
|
3971
|
+
};
|
|
3972
|
+
};
|
|
3973
|
+
function equals(existing, incoming) {
|
|
3974
|
+
const existing_errors = existing.errors;
|
|
3975
|
+
const incoming_errors = incoming.errors;
|
|
3976
|
+
// if at least one of these optionals is defined
|
|
3977
|
+
if (existing_errors !== undefined || incoming_errors !== undefined) {
|
|
3978
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3979
|
+
// not equal
|
|
3980
|
+
if (existing_errors === undefined || incoming_errors === undefined) {
|
|
3981
|
+
return false;
|
|
3982
|
+
}
|
|
3983
|
+
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
3984
|
+
if (!(equals$f(existing_errors_item, incoming_errors_item))) {
|
|
3985
|
+
return false;
|
|
3986
|
+
}
|
|
3987
|
+
});
|
|
3988
|
+
if (equals_errors_items === false) {
|
|
3989
|
+
return false;
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3992
|
+
const existing_records = existing.records;
|
|
3993
|
+
const incoming_records = incoming.records;
|
|
3994
|
+
// if at least one of these optionals is defined
|
|
3995
|
+
if (existing_records !== undefined || incoming_records !== undefined) {
|
|
3996
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3997
|
+
// not equal
|
|
3998
|
+
if (existing_records === undefined || incoming_records === undefined) {
|
|
3999
|
+
return false;
|
|
4000
|
+
}
|
|
4001
|
+
const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
|
|
4002
|
+
if (!(equals$1(existing_records_item, incoming_records_item))) {
|
|
4003
|
+
return false;
|
|
4004
|
+
}
|
|
4005
|
+
});
|
|
4006
|
+
if (equals_records_items === false) {
|
|
4007
|
+
return false;
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
return true;
|
|
4011
|
+
}
|
|
4012
|
+
const ingest = function UsageDetailBindingTargetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4013
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4014
|
+
const validateError = validate(input);
|
|
4015
|
+
if (validateError !== null) {
|
|
4016
|
+
throw validateError;
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
const key = path.fullPath;
|
|
4020
|
+
const ttlToUse = TTL;
|
|
4021
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "usage-detail", VERSION, RepresentationType, equals);
|
|
4022
|
+
return createLink(key);
|
|
4023
|
+
};
|
|
4024
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
4025
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4026
|
+
const rootKey = fullPathFactory();
|
|
4027
|
+
rootKeySet.set(rootKey, {
|
|
4028
|
+
namespace: keyPrefix,
|
|
4029
|
+
representationName: RepresentationType,
|
|
4030
|
+
mergeable: false
|
|
4031
|
+
});
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
function select(luvio, params) {
|
|
4035
|
+
return select$1();
|
|
2115
4036
|
}
|
|
2116
4037
|
function keyBuilder$1(luvio, params) {
|
|
2117
|
-
return keyPrefix + '::
|
|
4038
|
+
return keyPrefix + '::UsageDetailBindingTargetOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'grantBindingTargetId:' + params.urlParams.grantBindingTargetId + ')';
|
|
2118
4039
|
}
|
|
2119
4040
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2120
4041
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|