@salesforce/lds-adapters-revenue-usage-detail 1.378.0 → 1.379.1
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 +777 -287
- package/dist/es/es2018/types/src/generated/types/BindingObjectGrantDetailOutputRepresentation.d.ts +3 -7
- package/dist/es/es2018/types/src/generated/types/BindingObjectResourceGrantAndPolicyDetailOutputRepresentation.d.ts +4 -3
- package/package.json +3 -3
- package/sfdc/index.js +781 -291
- package/src/raml/api.raml +2 -5
package/sfdc/index.js
CHANGED
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$f = "e0ac6bf27e20d64b8c2926f058c43ea4";
|
|
126
|
+
function validate$f(obj, path = 'UsageDetailErrorResponseRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -146,10 +146,10 @@ function validate$e(obj, path = 'UsageDetailErrorResponseRepresentation') {
|
|
|
146
146
|
})();
|
|
147
147
|
return v_error === undefined ? null : v_error;
|
|
148
148
|
}
|
|
149
|
-
const select$
|
|
149
|
+
const select$j = function UsageDetailErrorResponseRepresentationSelect() {
|
|
150
150
|
return {
|
|
151
151
|
kind: 'Fragment',
|
|
152
|
-
version: VERSION$
|
|
152
|
+
version: VERSION$f,
|
|
153
153
|
private: [],
|
|
154
154
|
selections: [
|
|
155
155
|
{
|
|
@@ -167,7 +167,7 @@ const select$i = function UsageDetailErrorResponseRepresentationSelect() {
|
|
|
167
167
|
]
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
-
function equals$
|
|
170
|
+
function equals$f(existing, incoming) {
|
|
171
171
|
const existing_errorCode = existing.errorCode;
|
|
172
172
|
const incoming_errorCode = incoming.errorCode;
|
|
173
173
|
if (!(existing_errorCode === incoming_errorCode)) {
|
|
@@ -186,8 +186,8 @@ function equals$e(existing, incoming) {
|
|
|
186
186
|
return true;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
const VERSION$
|
|
190
|
-
function validate$
|
|
189
|
+
const VERSION$e = "52841d9c877e06c71e0dcddc6196cee0";
|
|
190
|
+
function validate$e(obj, path = 'RateAdjustmentsOutputRepresentation') {
|
|
191
191
|
const v_error = (() => {
|
|
192
192
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
193
193
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -398,10 +398,10 @@ function validate$d(obj, path = 'RateAdjustmentsOutputRepresentation') {
|
|
|
398
398
|
})();
|
|
399
399
|
return v_error === undefined ? null : v_error;
|
|
400
400
|
}
|
|
401
|
-
const select$
|
|
401
|
+
const select$i = function RateAdjustmentsOutputRepresentationSelect() {
|
|
402
402
|
return {
|
|
403
403
|
kind: 'Fragment',
|
|
404
|
-
version: VERSION$
|
|
404
|
+
version: VERSION$e,
|
|
405
405
|
private: [],
|
|
406
406
|
selections: [
|
|
407
407
|
{
|
|
@@ -444,7 +444,7 @@ const select$h = function RateAdjustmentsOutputRepresentationSelect() {
|
|
|
444
444
|
]
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
|
-
function equals$
|
|
447
|
+
function equals$e(existing, incoming) {
|
|
448
448
|
const existing_rateAdjustmentId = existing.rateAdjustmentId;
|
|
449
449
|
const incoming_rateAdjustmentId = incoming.rateAdjustmentId;
|
|
450
450
|
if (!(existing_rateAdjustmentId === incoming_rateAdjustmentId)) {
|
|
@@ -506,8 +506,8 @@ function equals$d(existing, incoming) {
|
|
|
506
506
|
return true;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
const VERSION$
|
|
510
|
-
function validate$
|
|
509
|
+
const VERSION$d = "750a8174fcbd532f0a64116220b53185";
|
|
510
|
+
function validate$d(obj, path = 'PolicyDetailOutputRepresentation') {
|
|
511
511
|
const v_error = (() => {
|
|
512
512
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
513
513
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -567,10 +567,10 @@ function validate$c(obj, path = 'PolicyDetailOutputRepresentation') {
|
|
|
567
567
|
})();
|
|
568
568
|
return v_error === undefined ? null : v_error;
|
|
569
569
|
}
|
|
570
|
-
const select$
|
|
570
|
+
const select$h = function PolicyDetailOutputRepresentationSelect() {
|
|
571
571
|
return {
|
|
572
572
|
kind: 'Fragment',
|
|
573
|
-
version: VERSION$
|
|
573
|
+
version: VERSION$d,
|
|
574
574
|
private: [],
|
|
575
575
|
selections: [
|
|
576
576
|
{
|
|
@@ -584,7 +584,7 @@ const select$g = function PolicyDetailOutputRepresentationSelect() {
|
|
|
584
584
|
]
|
|
585
585
|
};
|
|
586
586
|
};
|
|
587
|
-
function equals$
|
|
587
|
+
function equals$d(existing, incoming) {
|
|
588
588
|
const existing_id = existing.id;
|
|
589
589
|
const incoming_id = incoming.id;
|
|
590
590
|
if (!(existing_id === incoming_id)) {
|
|
@@ -598,8 +598,8 @@ function equals$c(existing, incoming) {
|
|
|
598
598
|
return true;
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
-
const VERSION$
|
|
602
|
-
function validate$
|
|
601
|
+
const VERSION$c = "8d4fc60883c9534fc4637046cb405afe";
|
|
602
|
+
function validate$c(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
603
603
|
const v_error = (() => {
|
|
604
604
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
605
605
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -714,7 +714,7 @@ function validate$b(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
714
714
|
const path_usageRefreshPolicy = path + '.usageRefreshPolicy';
|
|
715
715
|
let obj_usageRefreshPolicy_union0 = null;
|
|
716
716
|
const obj_usageRefreshPolicy_union0_error = (() => {
|
|
717
|
-
const referencepath_usageRefreshPolicyValidationError = validate$
|
|
717
|
+
const referencepath_usageRefreshPolicyValidationError = validate$d(obj_usageRefreshPolicy, path_usageRefreshPolicy);
|
|
718
718
|
if (referencepath_usageRefreshPolicyValidationError !== null) {
|
|
719
719
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRefreshPolicy + '")\n';
|
|
720
720
|
message += referencepath_usageRefreshPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -743,7 +743,7 @@ function validate$b(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
743
743
|
const path_usageRolloverPolicy = path + '.usageRolloverPolicy';
|
|
744
744
|
let obj_usageRolloverPolicy_union0 = null;
|
|
745
745
|
const obj_usageRolloverPolicy_union0_error = (() => {
|
|
746
|
-
const referencepath_usageRolloverPolicyValidationError = validate$
|
|
746
|
+
const referencepath_usageRolloverPolicyValidationError = validate$d(obj_usageRolloverPolicy, path_usageRolloverPolicy);
|
|
747
747
|
if (referencepath_usageRolloverPolicyValidationError !== null) {
|
|
748
748
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRolloverPolicy + '")\n';
|
|
749
749
|
message += referencepath_usageRolloverPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -823,11 +823,11 @@ function validate$b(obj, path = 'NegotiatedGrantDetailOutputRepresentation') {
|
|
|
823
823
|
})();
|
|
824
824
|
return v_error === undefined ? null : v_error;
|
|
825
825
|
}
|
|
826
|
-
const select$
|
|
827
|
-
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$
|
|
826
|
+
const select$g = function NegotiatedGrantDetailOutputRepresentationSelect() {
|
|
827
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$h();
|
|
828
828
|
return {
|
|
829
829
|
kind: 'Fragment',
|
|
830
|
-
version: VERSION$
|
|
830
|
+
version: VERSION$c,
|
|
831
831
|
private: [],
|
|
832
832
|
selections: [
|
|
833
833
|
{
|
|
@@ -870,7 +870,7 @@ const select$f = function NegotiatedGrantDetailOutputRepresentationSelect() {
|
|
|
870
870
|
]
|
|
871
871
|
};
|
|
872
872
|
};
|
|
873
|
-
function equals$
|
|
873
|
+
function equals$c(existing, incoming) {
|
|
874
874
|
const existing_grantType = existing.grantType;
|
|
875
875
|
const incoming_grantType = incoming.grantType;
|
|
876
876
|
if (!(existing_grantType === incoming_grantType)) {
|
|
@@ -904,7 +904,7 @@ function equals$b(existing, incoming) {
|
|
|
904
904
|
if (!(existing_usageRefreshPolicy === incoming_usageRefreshPolicy
|
|
905
905
|
|| (existing_usageRefreshPolicy != null &&
|
|
906
906
|
incoming_usageRefreshPolicy != null &&
|
|
907
|
-
equals$
|
|
907
|
+
equals$d(existing_usageRefreshPolicy, incoming_usageRefreshPolicy)))) {
|
|
908
908
|
return false;
|
|
909
909
|
}
|
|
910
910
|
const existing_usageRolloverPolicy = existing.usageRolloverPolicy;
|
|
@@ -912,7 +912,7 @@ function equals$b(existing, incoming) {
|
|
|
912
912
|
if (!(existing_usageRolloverPolicy === incoming_usageRolloverPolicy
|
|
913
913
|
|| (existing_usageRolloverPolicy != null &&
|
|
914
914
|
incoming_usageRolloverPolicy != null &&
|
|
915
|
-
equals$
|
|
915
|
+
equals$d(existing_usageRolloverPolicy, incoming_usageRolloverPolicy)))) {
|
|
916
916
|
return false;
|
|
917
917
|
}
|
|
918
918
|
const existing_validityPeriodTerm = existing.validityPeriodTerm;
|
|
@@ -928,8 +928,8 @@ function equals$b(existing, incoming) {
|
|
|
928
928
|
return true;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
-
const VERSION$
|
|
932
|
-
function validate$
|
|
931
|
+
const VERSION$b = "acaecc54e4457dd62382644206c35637";
|
|
932
|
+
function validate$b(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
933
933
|
const v_error = (() => {
|
|
934
934
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
935
935
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -966,7 +966,7 @@ function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
966
966
|
const path_ratingFrequencyPolicy = path + '.ratingFrequencyPolicy';
|
|
967
967
|
let obj_ratingFrequencyPolicy_union0 = null;
|
|
968
968
|
const obj_ratingFrequencyPolicy_union0_error = (() => {
|
|
969
|
-
const referencepath_ratingFrequencyPolicyValidationError = validate$
|
|
969
|
+
const referencepath_ratingFrequencyPolicyValidationError = validate$d(obj_ratingFrequencyPolicy, path_ratingFrequencyPolicy);
|
|
970
970
|
if (referencepath_ratingFrequencyPolicyValidationError !== null) {
|
|
971
971
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_ratingFrequencyPolicy + '")\n';
|
|
972
972
|
message += referencepath_ratingFrequencyPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -995,7 +995,7 @@ function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
995
995
|
const path_usageAggregationPolicy = path + '.usageAggregationPolicy';
|
|
996
996
|
let obj_usageAggregationPolicy_union0 = null;
|
|
997
997
|
const obj_usageAggregationPolicy_union0_error = (() => {
|
|
998
|
-
const referencepath_usageAggregationPolicyValidationError = validate$
|
|
998
|
+
const referencepath_usageAggregationPolicyValidationError = validate$d(obj_usageAggregationPolicy, path_usageAggregationPolicy);
|
|
999
999
|
if (referencepath_usageAggregationPolicyValidationError !== null) {
|
|
1000
1000
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageAggregationPolicy + '")\n';
|
|
1001
1001
|
message += referencepath_usageAggregationPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1024,7 +1024,7 @@ function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
1024
1024
|
const path_usageCommitmentPolicy = path + '.usageCommitmentPolicy';
|
|
1025
1025
|
let obj_usageCommitmentPolicy_union0 = null;
|
|
1026
1026
|
const obj_usageCommitmentPolicy_union0_error = (() => {
|
|
1027
|
-
const referencepath_usageCommitmentPolicyValidationError = validate$
|
|
1027
|
+
const referencepath_usageCommitmentPolicyValidationError = validate$d(obj_usageCommitmentPolicy, path_usageCommitmentPolicy);
|
|
1028
1028
|
if (referencepath_usageCommitmentPolicyValidationError !== null) {
|
|
1029
1029
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageCommitmentPolicy + '")\n';
|
|
1030
1030
|
message += referencepath_usageCommitmentPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1053,7 +1053,7 @@ function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
1053
1053
|
const path_usageOveragePolicy = path + '.usageOveragePolicy';
|
|
1054
1054
|
let obj_usageOveragePolicy_union0 = null;
|
|
1055
1055
|
const obj_usageOveragePolicy_union0_error = (() => {
|
|
1056
|
-
const referencepath_usageOveragePolicyValidationError = validate$
|
|
1056
|
+
const referencepath_usageOveragePolicyValidationError = validate$d(obj_usageOveragePolicy, path_usageOveragePolicy);
|
|
1057
1057
|
if (referencepath_usageOveragePolicyValidationError !== null) {
|
|
1058
1058
|
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageOveragePolicy + '")\n';
|
|
1059
1059
|
message += referencepath_usageOveragePolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1081,11 +1081,11 @@ function validate$a(obj, path = 'ResourcePolicyDetailOutputRepresentation') {
|
|
|
1081
1081
|
})();
|
|
1082
1082
|
return v_error === undefined ? null : v_error;
|
|
1083
1083
|
}
|
|
1084
|
-
const select$
|
|
1085
|
-
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$
|
|
1084
|
+
const select$f = function ResourcePolicyDetailOutputRepresentationSelect() {
|
|
1085
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$h();
|
|
1086
1086
|
return {
|
|
1087
1087
|
kind: 'Fragment',
|
|
1088
|
-
version: VERSION$
|
|
1088
|
+
version: VERSION$b,
|
|
1089
1089
|
private: [],
|
|
1090
1090
|
selections: [
|
|
1091
1091
|
{
|
|
@@ -1120,7 +1120,7 @@ const select$e = function ResourcePolicyDetailOutputRepresentationSelect() {
|
|
|
1120
1120
|
]
|
|
1121
1121
|
};
|
|
1122
1122
|
};
|
|
1123
|
-
function equals$
|
|
1123
|
+
function equals$b(existing, incoming) {
|
|
1124
1124
|
const existing_id = existing.id;
|
|
1125
1125
|
const incoming_id = incoming.id;
|
|
1126
1126
|
// if at least one of these optionals is defined
|
|
@@ -1139,7 +1139,7 @@ function equals$a(existing, incoming) {
|
|
|
1139
1139
|
if (!(existing_ratingFrequencyPolicy === incoming_ratingFrequencyPolicy
|
|
1140
1140
|
|| (existing_ratingFrequencyPolicy != null &&
|
|
1141
1141
|
incoming_ratingFrequencyPolicy != null &&
|
|
1142
|
-
equals$
|
|
1142
|
+
equals$d(existing_ratingFrequencyPolicy, incoming_ratingFrequencyPolicy)))) {
|
|
1143
1143
|
return false;
|
|
1144
1144
|
}
|
|
1145
1145
|
const existing_usageAggregationPolicy = existing.usageAggregationPolicy;
|
|
@@ -1147,7 +1147,7 @@ function equals$a(existing, incoming) {
|
|
|
1147
1147
|
if (!(existing_usageAggregationPolicy === incoming_usageAggregationPolicy
|
|
1148
1148
|
|| (existing_usageAggregationPolicy != null &&
|
|
1149
1149
|
incoming_usageAggregationPolicy != null &&
|
|
1150
|
-
equals$
|
|
1150
|
+
equals$d(existing_usageAggregationPolicy, incoming_usageAggregationPolicy)))) {
|
|
1151
1151
|
return false;
|
|
1152
1152
|
}
|
|
1153
1153
|
const existing_usageCommitmentPolicy = existing.usageCommitmentPolicy;
|
|
@@ -1155,7 +1155,7 @@ function equals$a(existing, incoming) {
|
|
|
1155
1155
|
if (!(existing_usageCommitmentPolicy === incoming_usageCommitmentPolicy
|
|
1156
1156
|
|| (existing_usageCommitmentPolicy != null &&
|
|
1157
1157
|
incoming_usageCommitmentPolicy != null &&
|
|
1158
|
-
equals$
|
|
1158
|
+
equals$d(existing_usageCommitmentPolicy, incoming_usageCommitmentPolicy)))) {
|
|
1159
1159
|
return false;
|
|
1160
1160
|
}
|
|
1161
1161
|
const existing_usageOveragePolicy = existing.usageOveragePolicy;
|
|
@@ -1163,14 +1163,14 @@ function equals$a(existing, incoming) {
|
|
|
1163
1163
|
if (!(existing_usageOveragePolicy === incoming_usageOveragePolicy
|
|
1164
1164
|
|| (existing_usageOveragePolicy != null &&
|
|
1165
1165
|
incoming_usageOveragePolicy != null &&
|
|
1166
|
-
equals$
|
|
1166
|
+
equals$d(existing_usageOveragePolicy, incoming_usageOveragePolicy)))) {
|
|
1167
1167
|
return false;
|
|
1168
1168
|
}
|
|
1169
1169
|
return true;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
const VERSION$
|
|
1173
|
-
function validate$
|
|
1172
|
+
const VERSION$a = "b89882d349b55468ea9c26a4b5cf2ea1";
|
|
1173
|
+
function validate$a(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresentation') {
|
|
1174
1174
|
const v_error = (() => {
|
|
1175
1175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1176
1176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1178,7 +1178,7 @@ function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
1178
1178
|
if (obj.grantDetail !== undefined) {
|
|
1179
1179
|
const obj_grantDetail = obj.grantDetail;
|
|
1180
1180
|
const path_grantDetail = path + '.grantDetail';
|
|
1181
|
-
const referencepath_grantDetailValidationError = validate$
|
|
1181
|
+
const referencepath_grantDetailValidationError = validate$c(obj_grantDetail, path_grantDetail);
|
|
1182
1182
|
if (referencepath_grantDetailValidationError !== null) {
|
|
1183
1183
|
let message = 'Object doesn\'t match NegotiatedGrantDetailOutputRepresentation (at "' + path_grantDetail + '")\n';
|
|
1184
1184
|
message += referencepath_grantDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1188,7 +1188,7 @@ function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
1188
1188
|
if (obj.negotiatedGrantDetail !== undefined) {
|
|
1189
1189
|
const obj_negotiatedGrantDetail = obj.negotiatedGrantDetail;
|
|
1190
1190
|
const path_negotiatedGrantDetail = path + '.negotiatedGrantDetail';
|
|
1191
|
-
const referencepath_negotiatedGrantDetailValidationError = validate$
|
|
1191
|
+
const referencepath_negotiatedGrantDetailValidationError = validate$c(obj_negotiatedGrantDetail, path_negotiatedGrantDetail);
|
|
1192
1192
|
if (referencepath_negotiatedGrantDetailValidationError !== null) {
|
|
1193
1193
|
let message = 'Object doesn\'t match NegotiatedGrantDetailOutputRepresentation (at "' + path_negotiatedGrantDetail + '")\n';
|
|
1194
1194
|
message += referencepath_negotiatedGrantDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1198,7 +1198,7 @@ function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
1198
1198
|
if (obj.negotiatedResourcePolicyDetail !== undefined) {
|
|
1199
1199
|
const obj_negotiatedResourcePolicyDetail = obj.negotiatedResourcePolicyDetail;
|
|
1200
1200
|
const path_negotiatedResourcePolicyDetail = path + '.negotiatedResourcePolicyDetail';
|
|
1201
|
-
const referencepath_negotiatedResourcePolicyDetailValidationError = validate$
|
|
1201
|
+
const referencepath_negotiatedResourcePolicyDetailValidationError = validate$b(obj_negotiatedResourcePolicyDetail, path_negotiatedResourcePolicyDetail);
|
|
1202
1202
|
if (referencepath_negotiatedResourcePolicyDetailValidationError !== null) {
|
|
1203
1203
|
let message = 'Object doesn\'t match ResourcePolicyDetailOutputRepresentation (at "' + path_negotiatedResourcePolicyDetail + '")\n';
|
|
1204
1204
|
message += referencepath_negotiatedResourcePolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1208,7 +1208,7 @@ function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
1208
1208
|
if (obj.resourcePolicyDetail !== undefined) {
|
|
1209
1209
|
const obj_resourcePolicyDetail = obj.resourcePolicyDetail;
|
|
1210
1210
|
const path_resourcePolicyDetail = path + '.resourcePolicyDetail';
|
|
1211
|
-
const referencepath_resourcePolicyDetailValidationError = validate$
|
|
1211
|
+
const referencepath_resourcePolicyDetailValidationError = validate$b(obj_resourcePolicyDetail, path_resourcePolicyDetail);
|
|
1212
1212
|
if (referencepath_resourcePolicyDetailValidationError !== null) {
|
|
1213
1213
|
let message = 'Object doesn\'t match ResourcePolicyDetailOutputRepresentation (at "' + path_resourcePolicyDetail + '")\n';
|
|
1214
1214
|
message += referencepath_resourcePolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1218,12 +1218,12 @@ function validate$9(obj, path = 'UsageResourceGrantAndPolicyDetailOutputRepresen
|
|
|
1218
1218
|
})();
|
|
1219
1219
|
return v_error === undefined ? null : v_error;
|
|
1220
1220
|
}
|
|
1221
|
-
const select$
|
|
1222
|
-
const { selections: NegotiatedGrantDetailOutputRepresentation__selections, opaque: NegotiatedGrantDetailOutputRepresentation__opaque, } = select$
|
|
1223
|
-
const { selections: ResourcePolicyDetailOutputRepresentation__selections, opaque: ResourcePolicyDetailOutputRepresentation__opaque, } = select$
|
|
1221
|
+
const select$e = function UsageResourceGrantAndPolicyDetailOutputRepresentationSelect() {
|
|
1222
|
+
const { selections: NegotiatedGrantDetailOutputRepresentation__selections, opaque: NegotiatedGrantDetailOutputRepresentation__opaque, } = select$g();
|
|
1223
|
+
const { selections: ResourcePolicyDetailOutputRepresentation__selections, opaque: ResourcePolicyDetailOutputRepresentation__opaque, } = select$f();
|
|
1224
1224
|
return {
|
|
1225
1225
|
kind: 'Fragment',
|
|
1226
|
-
version: VERSION$
|
|
1226
|
+
version: VERSION$a,
|
|
1227
1227
|
private: [],
|
|
1228
1228
|
selections: [
|
|
1229
1229
|
{
|
|
@@ -1253,7 +1253,7 @@ const select$d = function UsageResourceGrantAndPolicyDetailOutputRepresentationS
|
|
|
1253
1253
|
]
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
|
-
function equals$
|
|
1256
|
+
function equals$a(existing, incoming) {
|
|
1257
1257
|
const existing_grantDetail = existing.grantDetail;
|
|
1258
1258
|
const incoming_grantDetail = incoming.grantDetail;
|
|
1259
1259
|
// if at least one of these optionals is defined
|
|
@@ -1263,7 +1263,7 @@ function equals$9(existing, incoming) {
|
|
|
1263
1263
|
if (existing_grantDetail === undefined || incoming_grantDetail === undefined) {
|
|
1264
1264
|
return false;
|
|
1265
1265
|
}
|
|
1266
|
-
if (!(equals$
|
|
1266
|
+
if (!(equals$c(existing_grantDetail, incoming_grantDetail))) {
|
|
1267
1267
|
return false;
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
@@ -1276,7 +1276,7 @@ function equals$9(existing, incoming) {
|
|
|
1276
1276
|
if (existing_negotiatedGrantDetail === undefined || incoming_negotiatedGrantDetail === undefined) {
|
|
1277
1277
|
return false;
|
|
1278
1278
|
}
|
|
1279
|
-
if (!(equals$
|
|
1279
|
+
if (!(equals$c(existing_negotiatedGrantDetail, incoming_negotiatedGrantDetail))) {
|
|
1280
1280
|
return false;
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
@@ -1289,7 +1289,7 @@ function equals$9(existing, incoming) {
|
|
|
1289
1289
|
if (existing_negotiatedResourcePolicyDetail === undefined || incoming_negotiatedResourcePolicyDetail === undefined) {
|
|
1290
1290
|
return false;
|
|
1291
1291
|
}
|
|
1292
|
-
if (!(equals$
|
|
1292
|
+
if (!(equals$b(existing_negotiatedResourcePolicyDetail, incoming_negotiatedResourcePolicyDetail))) {
|
|
1293
1293
|
return false;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
@@ -1302,15 +1302,15 @@ function equals$9(existing, incoming) {
|
|
|
1302
1302
|
if (existing_resourcePolicyDetail === undefined || incoming_resourcePolicyDetail === undefined) {
|
|
1303
1303
|
return false;
|
|
1304
1304
|
}
|
|
1305
|
-
if (!(equals$
|
|
1305
|
+
if (!(equals$b(existing_resourcePolicyDetail, incoming_resourcePolicyDetail))) {
|
|
1306
1306
|
return false;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
return true;
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
-
const VERSION$
|
|
1313
|
-
function validate$
|
|
1312
|
+
const VERSION$9 = "a399d4f31b7dcae001794cce64c40be8";
|
|
1313
|
+
function validate$9(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
1314
1314
|
const v_error = (() => {
|
|
1315
1315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1316
1316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1607,7 +1607,7 @@ function validate$8(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1607
1607
|
const path_rateAdjustments_item = path_rateAdjustments + '[' + i + ']';
|
|
1608
1608
|
let obj_rateAdjustments_item_union0 = null;
|
|
1609
1609
|
const obj_rateAdjustments_item_union0_error = (() => {
|
|
1610
|
-
const referencepath_rateAdjustments_itemValidationError = validate$
|
|
1610
|
+
const referencepath_rateAdjustments_itemValidationError = validate$e(obj_rateAdjustments_item, path_rateAdjustments_item);
|
|
1611
1611
|
if (referencepath_rateAdjustments_itemValidationError !== null) {
|
|
1612
1612
|
let message = 'Object doesn\'t match RateAdjustmentsOutputRepresentation (at "' + path_rateAdjustments_item + '")\n';
|
|
1613
1613
|
message += referencepath_rateAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1719,7 @@ function validate$8(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1719
1719
|
if (obj.usageResourceGrantAndPolicyDetail !== undefined) {
|
|
1720
1720
|
const obj_usageResourceGrantAndPolicyDetail = obj.usageResourceGrantAndPolicyDetail;
|
|
1721
1721
|
const path_usageResourceGrantAndPolicyDetail = path + '.usageResourceGrantAndPolicyDetail';
|
|
1722
|
-
const referencepath_usageResourceGrantAndPolicyDetailValidationError = validate$
|
|
1722
|
+
const referencepath_usageResourceGrantAndPolicyDetailValidationError = validate$a(obj_usageResourceGrantAndPolicyDetail, path_usageResourceGrantAndPolicyDetail);
|
|
1723
1723
|
if (referencepath_usageResourceGrantAndPolicyDetailValidationError !== null) {
|
|
1724
1724
|
let message = 'Object doesn\'t match UsageResourceGrantAndPolicyDetailOutputRepresentation (at "' + path_usageResourceGrantAndPolicyDetail + '")\n';
|
|
1725
1725
|
message += referencepath_usageResourceGrantAndPolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1757,12 +1757,12 @@ function validate$8(obj, path = 'RateCardEntryOutputRepresentation') {
|
|
|
1757
1757
|
})();
|
|
1758
1758
|
return v_error === undefined ? null : v_error;
|
|
1759
1759
|
}
|
|
1760
|
-
const select$
|
|
1761
|
-
const { selections: RateAdjustmentsOutputRepresentation__selections, opaque: RateAdjustmentsOutputRepresentation__opaque, } = select$
|
|
1762
|
-
const { selections: UsageResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: UsageResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$
|
|
1760
|
+
const select$d = function RateCardEntryOutputRepresentationSelect() {
|
|
1761
|
+
const { selections: RateAdjustmentsOutputRepresentation__selections, opaque: RateAdjustmentsOutputRepresentation__opaque, } = select$i();
|
|
1762
|
+
const { selections: UsageResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: UsageResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$e();
|
|
1763
1763
|
return {
|
|
1764
1764
|
kind: 'Fragment',
|
|
1765
|
-
version: VERSION$
|
|
1765
|
+
version: VERSION$9,
|
|
1766
1766
|
private: [],
|
|
1767
1767
|
selections: [
|
|
1768
1768
|
{
|
|
@@ -1850,7 +1850,7 @@ const select$c = function RateCardEntryOutputRepresentationSelect() {
|
|
|
1850
1850
|
]
|
|
1851
1851
|
};
|
|
1852
1852
|
};
|
|
1853
|
-
function equals$
|
|
1853
|
+
function equals$9(existing, incoming) {
|
|
1854
1854
|
const existing_rateCardEntryId = existing.rateCardEntryId;
|
|
1855
1855
|
const incoming_rateCardEntryId = incoming.rateCardEntryId;
|
|
1856
1856
|
if (!(existing_rateCardEntryId === incoming_rateCardEntryId)) {
|
|
@@ -1954,7 +1954,7 @@ function equals$8(existing, incoming) {
|
|
|
1954
1954
|
if (!(existing_rateAdjustments_item === incoming_rateAdjustments_item
|
|
1955
1955
|
|| (existing_rateAdjustments_item != null &&
|
|
1956
1956
|
incoming_rateAdjustments_item != null &&
|
|
1957
|
-
equals$
|
|
1957
|
+
equals$e(existing_rateAdjustments_item, incoming_rateAdjustments_item)))) {
|
|
1958
1958
|
return false;
|
|
1959
1959
|
}
|
|
1960
1960
|
});
|
|
@@ -1985,7 +1985,7 @@ function equals$8(existing, incoming) {
|
|
|
1985
1985
|
if (existing_usageResourceGrantAndPolicyDetail === undefined || incoming_usageResourceGrantAndPolicyDetail === undefined) {
|
|
1986
1986
|
return false;
|
|
1987
1987
|
}
|
|
1988
|
-
if (!(equals$
|
|
1988
|
+
if (!(equals$a(existing_usageResourceGrantAndPolicyDetail, incoming_usageResourceGrantAndPolicyDetail))) {
|
|
1989
1989
|
return false;
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
@@ -2006,8 +2006,8 @@ function equals$8(existing, incoming) {
|
|
|
2006
2006
|
}
|
|
2007
2007
|
|
|
2008
2008
|
const TTL$1 = 1000;
|
|
2009
|
-
const VERSION$
|
|
2010
|
-
function validate$
|
|
2009
|
+
const VERSION$8 = "338996bd44a293867ffaab2724d4c41f";
|
|
2010
|
+
function validate$8(obj, path = 'UsageDetailOutputRepresentation') {
|
|
2011
2011
|
const v_error = (() => {
|
|
2012
2012
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2013
2013
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2021,7 +2021,7 @@ function validate$7(obj, path = 'UsageDetailOutputRepresentation') {
|
|
|
2021
2021
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
2022
2022
|
const obj_errors_item = obj_errors[i];
|
|
2023
2023
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
2024
|
-
const referencepath_errors_itemValidationError = validate$
|
|
2024
|
+
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
2025
2025
|
if (referencepath_errors_itemValidationError !== null) {
|
|
2026
2026
|
let message = 'Object doesn\'t match UsageDetailErrorResponseRepresentation (at "' + path_errors_item + '")\n';
|
|
2027
2027
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2038,7 +2038,7 @@ function validate$7(obj, path = 'UsageDetailOutputRepresentation') {
|
|
|
2038
2038
|
for (let i = 0; i < obj_records.length; i++) {
|
|
2039
2039
|
const obj_records_item = obj_records[i];
|
|
2040
2040
|
const path_records_item = path_records + '[' + i + ']';
|
|
2041
|
-
const referencepath_records_itemValidationError = validate$
|
|
2041
|
+
const referencepath_records_itemValidationError = validate$9(obj_records_item, path_records_item);
|
|
2042
2042
|
if (referencepath_records_itemValidationError !== null) {
|
|
2043
2043
|
let message = 'Object doesn\'t match RateCardEntryOutputRepresentation (at "' + path_records_item + '")\n';
|
|
2044
2044
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2053,12 +2053,12 @@ const RepresentationType$1 = 'UsageDetailOutputRepresentation';
|
|
|
2053
2053
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2054
2054
|
return input;
|
|
2055
2055
|
}
|
|
2056
|
-
const select$
|
|
2057
|
-
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$
|
|
2058
|
-
const { selections: RateCardEntryOutputRepresentation__selections, opaque: RateCardEntryOutputRepresentation__opaque, } = select$
|
|
2056
|
+
const select$c = function UsageDetailOutputRepresentationSelect() {
|
|
2057
|
+
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$j();
|
|
2058
|
+
const { selections: RateCardEntryOutputRepresentation__selections, opaque: RateCardEntryOutputRepresentation__opaque, } = select$d();
|
|
2059
2059
|
return {
|
|
2060
2060
|
kind: 'Fragment',
|
|
2061
|
-
version: VERSION$
|
|
2061
|
+
version: VERSION$8,
|
|
2062
2062
|
private: [],
|
|
2063
2063
|
selections: [
|
|
2064
2064
|
{
|
|
@@ -2078,7 +2078,7 @@ const select$b = function UsageDetailOutputRepresentationSelect() {
|
|
|
2078
2078
|
]
|
|
2079
2079
|
};
|
|
2080
2080
|
};
|
|
2081
|
-
function equals$
|
|
2081
|
+
function equals$8(existing, incoming) {
|
|
2082
2082
|
const existing_errors = existing.errors;
|
|
2083
2083
|
const incoming_errors = incoming.errors;
|
|
2084
2084
|
// if at least one of these optionals is defined
|
|
@@ -2089,7 +2089,7 @@ function equals$7(existing, incoming) {
|
|
|
2089
2089
|
return false;
|
|
2090
2090
|
}
|
|
2091
2091
|
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
2092
|
-
if (!(equals$
|
|
2092
|
+
if (!(equals$f(existing_errors_item, incoming_errors_item))) {
|
|
2093
2093
|
return false;
|
|
2094
2094
|
}
|
|
2095
2095
|
});
|
|
@@ -2107,7 +2107,7 @@ function equals$7(existing, incoming) {
|
|
|
2107
2107
|
return false;
|
|
2108
2108
|
}
|
|
2109
2109
|
const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
|
|
2110
|
-
if (!(equals$
|
|
2110
|
+
if (!(equals$9(existing_records_item, incoming_records_item))) {
|
|
2111
2111
|
return false;
|
|
2112
2112
|
}
|
|
2113
2113
|
});
|
|
@@ -2119,14 +2119,14 @@ function equals$7(existing, incoming) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
const ingest$1 = function UsageDetailOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2121
2121
|
if (process.env.NODE_ENV !== 'production') {
|
|
2122
|
-
const validateError = validate$
|
|
2122
|
+
const validateError = validate$8(input);
|
|
2123
2123
|
if (validateError !== null) {
|
|
2124
2124
|
throw validateError;
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
const key = path.fullPath;
|
|
2128
2128
|
const ttlToUse = TTL$1;
|
|
2129
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "usage-detail", VERSION$
|
|
2129
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "usage-detail", VERSION$8, RepresentationType$1, equals$8);
|
|
2130
2130
|
return createLink(key);
|
|
2131
2131
|
};
|
|
2132
2132
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2139,8 +2139,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
2142
|
-
function select$
|
|
2143
|
-
return select$
|
|
2142
|
+
function select$b(luvio, params) {
|
|
2143
|
+
return select$c();
|
|
2144
2144
|
}
|
|
2145
2145
|
function keyBuilder$7(luvio, params) {
|
|
2146
2146
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
@@ -2154,7 +2154,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2154
2154
|
luvio.storeIngest(key, ingest$1, body);
|
|
2155
2155
|
const snapshot = luvio.storeLookup({
|
|
2156
2156
|
recordId: key,
|
|
2157
|
-
node: select$
|
|
2157
|
+
node: select$b(),
|
|
2158
2158
|
variables: {},
|
|
2159
2159
|
}, snapshotRefresh);
|
|
2160
2160
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2171,7 +2171,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
2171
2171
|
const storeMetadataParams = {
|
|
2172
2172
|
ttl: TTL$1,
|
|
2173
2173
|
namespace: keyPrefix,
|
|
2174
|
-
version: VERSION$
|
|
2174
|
+
version: VERSION$8,
|
|
2175
2175
|
representationName: RepresentationType$1
|
|
2176
2176
|
};
|
|
2177
2177
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2223,7 +2223,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
function adapterFragment$3(luvio, config) {
|
|
2225
2225
|
createResourceParams$3(config);
|
|
2226
|
-
return select$
|
|
2226
|
+
return select$b();
|
|
2227
2227
|
}
|
|
2228
2228
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2229
2229
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -2279,8 +2279,8 @@ const getAssetUsageDetailsAdapterFactory = (luvio) => function usageDetail__getA
|
|
|
2279
2279
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2280
2280
|
};
|
|
2281
2281
|
|
|
2282
|
-
const VERSION$
|
|
2283
|
-
function validate$
|
|
2282
|
+
const VERSION$7 = "9071132028d85d83aeb0f3722cfb88cf";
|
|
2283
|
+
function validate$7(obj, path = 'BindingObjectRateAdjustmentsOutputRepresentation') {
|
|
2284
2284
|
const v_error = (() => {
|
|
2285
2285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2286
2286
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2470,10 +2470,10 @@ function validate$6(obj, path = 'BindingObjectRateAdjustmentsOutputRepresentatio
|
|
|
2470
2470
|
})();
|
|
2471
2471
|
return v_error === undefined ? null : v_error;
|
|
2472
2472
|
}
|
|
2473
|
-
const select$
|
|
2473
|
+
const select$a = function BindingObjectRateAdjustmentsOutputRepresentationSelect() {
|
|
2474
2474
|
return {
|
|
2475
2475
|
kind: 'Fragment',
|
|
2476
|
-
version: VERSION$
|
|
2476
|
+
version: VERSION$7,
|
|
2477
2477
|
private: [],
|
|
2478
2478
|
selections: [
|
|
2479
2479
|
{
|
|
@@ -2507,7 +2507,7 @@ const select$9 = function BindingObjectRateAdjustmentsOutputRepresentationSelect
|
|
|
2507
2507
|
]
|
|
2508
2508
|
};
|
|
2509
2509
|
};
|
|
2510
|
-
function equals$
|
|
2510
|
+
function equals$7(existing, incoming) {
|
|
2511
2511
|
const existing_lowerBound = existing.lowerBound;
|
|
2512
2512
|
const incoming_lowerBound = incoming.lowerBound;
|
|
2513
2513
|
if (!(existing_lowerBound === incoming_lowerBound)) {
|
|
@@ -2546,8 +2546,8 @@ function equals$6(existing, incoming) {
|
|
|
2546
2546
|
return true;
|
|
2547
2547
|
}
|
|
2548
2548
|
|
|
2549
|
-
const VERSION$
|
|
2550
|
-
function validate$
|
|
2549
|
+
const VERSION$6 = "c712ee5181793d7a6f21ef43f715b2b3";
|
|
2550
|
+
function validate$6(obj, path = 'BindingObjectRateOutputRepresentation') {
|
|
2551
2551
|
const v_error = (() => {
|
|
2552
2552
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2553
2553
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2614,7 +2614,7 @@ function validate$5(obj, path = 'BindingObjectRateOutputRepresentation') {
|
|
|
2614
2614
|
const path_negotiatedRateAdjustments_item = path_negotiatedRateAdjustments + '[' + i + ']';
|
|
2615
2615
|
let obj_negotiatedRateAdjustments_item_union0 = null;
|
|
2616
2616
|
const obj_negotiatedRateAdjustments_item_union0_error = (() => {
|
|
2617
|
-
const referencepath_negotiatedRateAdjustments_itemValidationError = validate$
|
|
2617
|
+
const referencepath_negotiatedRateAdjustments_itemValidationError = validate$7(obj_negotiatedRateAdjustments_item, path_negotiatedRateAdjustments_item);
|
|
2618
2618
|
if (referencepath_negotiatedRateAdjustments_itemValidationError !== null) {
|
|
2619
2619
|
let message = 'Object doesn\'t match BindingObjectRateAdjustmentsOutputRepresentation (at "' + path_negotiatedRateAdjustments_item + '")\n';
|
|
2620
2620
|
message += referencepath_negotiatedRateAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2721,11 +2721,11 @@ function validate$5(obj, path = 'BindingObjectRateOutputRepresentation') {
|
|
|
2721
2721
|
})();
|
|
2722
2722
|
return v_error === undefined ? null : v_error;
|
|
2723
2723
|
}
|
|
2724
|
-
const select$
|
|
2725
|
-
const { selections: BindingObjectRateAdjustmentsOutputRepresentation__selections, opaque: BindingObjectRateAdjustmentsOutputRepresentation__opaque, } = select$
|
|
2724
|
+
const select$9 = function BindingObjectRateOutputRepresentationSelect() {
|
|
2725
|
+
const { selections: BindingObjectRateAdjustmentsOutputRepresentation__selections, opaque: BindingObjectRateAdjustmentsOutputRepresentation__opaque, } = select$a();
|
|
2726
2726
|
return {
|
|
2727
2727
|
kind: 'Fragment',
|
|
2728
|
-
version: VERSION$
|
|
2728
|
+
version: VERSION$6,
|
|
2729
2729
|
private: [],
|
|
2730
2730
|
selections: [
|
|
2731
2731
|
{
|
|
@@ -2758,7 +2758,7 @@ const select$8 = function BindingObjectRateOutputRepresentationSelect() {
|
|
|
2758
2758
|
]
|
|
2759
2759
|
};
|
|
2760
2760
|
};
|
|
2761
|
-
function equals$
|
|
2761
|
+
function equals$6(existing, incoming) {
|
|
2762
2762
|
const existing_id = existing.id;
|
|
2763
2763
|
const incoming_id = incoming.id;
|
|
2764
2764
|
if (!(existing_id === incoming_id)) {
|
|
@@ -2775,7 +2775,7 @@ function equals$5(existing, incoming) {
|
|
|
2775
2775
|
if (!(existing_negotiatedRateAdjustments_item === incoming_negotiatedRateAdjustments_item
|
|
2776
2776
|
|| (existing_negotiatedRateAdjustments_item != null &&
|
|
2777
2777
|
incoming_negotiatedRateAdjustments_item != null &&
|
|
2778
|
-
equals$
|
|
2778
|
+
equals$7(existing_negotiatedRateAdjustments_item, incoming_negotiatedRateAdjustments_item)))) {
|
|
2779
2779
|
return false;
|
|
2780
2780
|
}
|
|
2781
2781
|
});
|
|
@@ -2800,36 +2800,145 @@ function equals$5(existing, incoming) {
|
|
|
2800
2800
|
return true;
|
|
2801
2801
|
}
|
|
2802
2802
|
|
|
2803
|
-
const VERSION$
|
|
2804
|
-
function validate$
|
|
2803
|
+
const VERSION$5 = "33e33f0cd2919c7a3113b7c4b63348fb";
|
|
2804
|
+
function validate$5(obj, path = 'LookupDetailOutputRepresentation') {
|
|
2805
2805
|
const v_error = (() => {
|
|
2806
2806
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2807
2807
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2808
2808
|
}
|
|
2809
|
-
const
|
|
2810
|
-
const
|
|
2811
|
-
let
|
|
2812
|
-
const
|
|
2813
|
-
if (typeof
|
|
2814
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
2809
|
+
const obj_id = obj.id;
|
|
2810
|
+
const path_id = path + '.id';
|
|
2811
|
+
let obj_id_union0 = null;
|
|
2812
|
+
const obj_id_union0_error = (() => {
|
|
2813
|
+
if (typeof obj_id !== 'string') {
|
|
2814
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2815
2815
|
}
|
|
2816
2816
|
})();
|
|
2817
|
-
if (
|
|
2818
|
-
|
|
2817
|
+
if (obj_id_union0_error != null) {
|
|
2818
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
2819
2819
|
}
|
|
2820
|
-
let
|
|
2821
|
-
const
|
|
2822
|
-
if (
|
|
2823
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
2820
|
+
let obj_id_union1 = null;
|
|
2821
|
+
const obj_id_union1_error = (() => {
|
|
2822
|
+
if (obj_id !== null) {
|
|
2823
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2824
2824
|
}
|
|
2825
2825
|
})();
|
|
2826
|
-
if (
|
|
2827
|
-
|
|
2826
|
+
if (obj_id_union1_error != null) {
|
|
2827
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
2828
2828
|
}
|
|
2829
|
-
if (
|
|
2830
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2831
|
-
message += '\n' +
|
|
2832
|
-
message += '\n' +
|
|
2829
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
2830
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2831
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2832
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2833
|
+
return new TypeError(message);
|
|
2834
|
+
}
|
|
2835
|
+
})();
|
|
2836
|
+
return v_error === undefined ? null : v_error;
|
|
2837
|
+
}
|
|
2838
|
+
const select$8 = function LookupDetailOutputRepresentationSelect() {
|
|
2839
|
+
return {
|
|
2840
|
+
kind: 'Fragment',
|
|
2841
|
+
version: VERSION$5,
|
|
2842
|
+
private: [],
|
|
2843
|
+
selections: [
|
|
2844
|
+
{
|
|
2845
|
+
name: 'id',
|
|
2846
|
+
kind: 'Scalar'
|
|
2847
|
+
}
|
|
2848
|
+
]
|
|
2849
|
+
};
|
|
2850
|
+
};
|
|
2851
|
+
function equals$5(existing, incoming) {
|
|
2852
|
+
const existing_id = existing.id;
|
|
2853
|
+
const incoming_id = incoming.id;
|
|
2854
|
+
if (!(existing_id === incoming_id)) {
|
|
2855
|
+
return false;
|
|
2856
|
+
}
|
|
2857
|
+
return true;
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
const VERSION$4 = "22170829b3cf236b15897c1874cea75d";
|
|
2861
|
+
function validate$4(obj, path = 'BindingObjectGrantDetailOutputRepresentation') {
|
|
2862
|
+
const v_error = (() => {
|
|
2863
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2864
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2865
|
+
}
|
|
2866
|
+
const obj_effectiveEndDate = obj.effectiveEndDate;
|
|
2867
|
+
const path_effectiveEndDate = path + '.effectiveEndDate';
|
|
2868
|
+
let obj_effectiveEndDate_union0 = null;
|
|
2869
|
+
const obj_effectiveEndDate_union0_error = (() => {
|
|
2870
|
+
if (typeof obj_effectiveEndDate !== 'string') {
|
|
2871
|
+
return new TypeError('Expected "string" but received "' + typeof obj_effectiveEndDate + '" (at "' + path_effectiveEndDate + '")');
|
|
2872
|
+
}
|
|
2873
|
+
})();
|
|
2874
|
+
if (obj_effectiveEndDate_union0_error != null) {
|
|
2875
|
+
obj_effectiveEndDate_union0 = obj_effectiveEndDate_union0_error.message;
|
|
2876
|
+
}
|
|
2877
|
+
let obj_effectiveEndDate_union1 = null;
|
|
2878
|
+
const obj_effectiveEndDate_union1_error = (() => {
|
|
2879
|
+
if (obj_effectiveEndDate !== null) {
|
|
2880
|
+
return new TypeError('Expected "null" but received "' + typeof obj_effectiveEndDate + '" (at "' + path_effectiveEndDate + '")');
|
|
2881
|
+
}
|
|
2882
|
+
})();
|
|
2883
|
+
if (obj_effectiveEndDate_union1_error != null) {
|
|
2884
|
+
obj_effectiveEndDate_union1 = obj_effectiveEndDate_union1_error.message;
|
|
2885
|
+
}
|
|
2886
|
+
if (obj_effectiveEndDate_union0 && obj_effectiveEndDate_union1) {
|
|
2887
|
+
let message = 'Object doesn\'t match union (at "' + path_effectiveEndDate + '")';
|
|
2888
|
+
message += '\n' + obj_effectiveEndDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2889
|
+
message += '\n' + obj_effectiveEndDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2890
|
+
return new TypeError(message);
|
|
2891
|
+
}
|
|
2892
|
+
const obj_effectiveStartDate = obj.effectiveStartDate;
|
|
2893
|
+
const path_effectiveStartDate = path + '.effectiveStartDate';
|
|
2894
|
+
let obj_effectiveStartDate_union0 = null;
|
|
2895
|
+
const obj_effectiveStartDate_union0_error = (() => {
|
|
2896
|
+
if (typeof obj_effectiveStartDate !== 'string') {
|
|
2897
|
+
return new TypeError('Expected "string" but received "' + typeof obj_effectiveStartDate + '" (at "' + path_effectiveStartDate + '")');
|
|
2898
|
+
}
|
|
2899
|
+
})();
|
|
2900
|
+
if (obj_effectiveStartDate_union0_error != null) {
|
|
2901
|
+
obj_effectiveStartDate_union0 = obj_effectiveStartDate_union0_error.message;
|
|
2902
|
+
}
|
|
2903
|
+
let obj_effectiveStartDate_union1 = null;
|
|
2904
|
+
const obj_effectiveStartDate_union1_error = (() => {
|
|
2905
|
+
if (obj_effectiveStartDate !== null) {
|
|
2906
|
+
return new TypeError('Expected "null" but received "' + typeof obj_effectiveStartDate + '" (at "' + path_effectiveStartDate + '")');
|
|
2907
|
+
}
|
|
2908
|
+
})();
|
|
2909
|
+
if (obj_effectiveStartDate_union1_error != null) {
|
|
2910
|
+
obj_effectiveStartDate_union1 = obj_effectiveStartDate_union1_error.message;
|
|
2911
|
+
}
|
|
2912
|
+
if (obj_effectiveStartDate_union0 && obj_effectiveStartDate_union1) {
|
|
2913
|
+
let message = 'Object doesn\'t match union (at "' + path_effectiveStartDate + '")';
|
|
2914
|
+
message += '\n' + obj_effectiveStartDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2915
|
+
message += '\n' + obj_effectiveStartDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2916
|
+
return new TypeError(message);
|
|
2917
|
+
}
|
|
2918
|
+
const obj_grantType = obj.grantType;
|
|
2919
|
+
const path_grantType = path + '.grantType';
|
|
2920
|
+
let obj_grantType_union0 = null;
|
|
2921
|
+
const obj_grantType_union0_error = (() => {
|
|
2922
|
+
if (typeof obj_grantType !== 'string') {
|
|
2923
|
+
return new TypeError('Expected "string" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
2924
|
+
}
|
|
2925
|
+
})();
|
|
2926
|
+
if (obj_grantType_union0_error != null) {
|
|
2927
|
+
obj_grantType_union0 = obj_grantType_union0_error.message;
|
|
2928
|
+
}
|
|
2929
|
+
let obj_grantType_union1 = null;
|
|
2930
|
+
const obj_grantType_union1_error = (() => {
|
|
2931
|
+
if (obj_grantType !== null) {
|
|
2932
|
+
return new TypeError('Expected "null" but received "' + typeof obj_grantType + '" (at "' + path_grantType + '")');
|
|
2933
|
+
}
|
|
2934
|
+
})();
|
|
2935
|
+
if (obj_grantType_union1_error != null) {
|
|
2936
|
+
obj_grantType_union1 = obj_grantType_union1_error.message;
|
|
2937
|
+
}
|
|
2938
|
+
if (obj_grantType_union0 && obj_grantType_union1) {
|
|
2939
|
+
let message = 'Object doesn\'t match union (at "' + path_grantType + '")';
|
|
2940
|
+
message += '\n' + obj_grantType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2941
|
+
message += '\n' + obj_grantType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2833
2942
|
return new TypeError(message);
|
|
2834
2943
|
}
|
|
2835
2944
|
const obj_id = obj.id;
|
|
@@ -2858,131 +2967,563 @@ function validate$4(obj, path = 'BindingObjectResourcePolicyDetailOutputRepresen
|
|
|
2858
2967
|
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2859
2968
|
return new TypeError(message);
|
|
2860
2969
|
}
|
|
2861
|
-
const
|
|
2862
|
-
const
|
|
2863
|
-
let
|
|
2864
|
-
const
|
|
2865
|
-
const
|
|
2866
|
-
if (
|
|
2867
|
-
let message = 'Object doesn\'t match
|
|
2868
|
-
message +=
|
|
2970
|
+
const obj_product = obj.product;
|
|
2971
|
+
const path_product = path + '.product';
|
|
2972
|
+
let obj_product_union0 = null;
|
|
2973
|
+
const obj_product_union0_error = (() => {
|
|
2974
|
+
const referencepath_productValidationError = validate$5(obj_product, path_product);
|
|
2975
|
+
if (referencepath_productValidationError !== null) {
|
|
2976
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_product + '")\n';
|
|
2977
|
+
message += referencepath_productValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2869
2978
|
return new TypeError(message);
|
|
2870
2979
|
}
|
|
2871
2980
|
})();
|
|
2872
|
-
if (
|
|
2873
|
-
|
|
2981
|
+
if (obj_product_union0_error != null) {
|
|
2982
|
+
obj_product_union0 = obj_product_union0_error.message;
|
|
2874
2983
|
}
|
|
2875
|
-
let
|
|
2876
|
-
const
|
|
2877
|
-
if (
|
|
2878
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
2984
|
+
let obj_product_union1 = null;
|
|
2985
|
+
const obj_product_union1_error = (() => {
|
|
2986
|
+
if (obj_product !== null) {
|
|
2987
|
+
return new TypeError('Expected "null" but received "' + typeof obj_product + '" (at "' + path_product + '")');
|
|
2879
2988
|
}
|
|
2880
2989
|
})();
|
|
2881
|
-
if (
|
|
2882
|
-
|
|
2990
|
+
if (obj_product_union1_error != null) {
|
|
2991
|
+
obj_product_union1 = obj_product_union1_error.message;
|
|
2883
2992
|
}
|
|
2884
|
-
if (
|
|
2885
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2886
|
-
message += '\n' +
|
|
2887
|
-
message += '\n' +
|
|
2993
|
+
if (obj_product_union0 && obj_product_union1) {
|
|
2994
|
+
let message = 'Object doesn\'t match union (at "' + path_product + '")';
|
|
2995
|
+
message += '\n' + obj_product_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2996
|
+
message += '\n' + obj_product_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2888
2997
|
return new TypeError(message);
|
|
2889
2998
|
}
|
|
2890
|
-
const
|
|
2891
|
-
const
|
|
2892
|
-
let
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageAggregationPolicy + '")\n';
|
|
2897
|
-
message += referencepath_usageAggregationPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2898
|
-
return new TypeError(message);
|
|
2999
|
+
const obj_quantity = obj.quantity;
|
|
3000
|
+
const path_quantity = path + '.quantity';
|
|
3001
|
+
let obj_quantity_union0 = null;
|
|
3002
|
+
const obj_quantity_union0_error = (() => {
|
|
3003
|
+
if (typeof obj_quantity !== 'number') {
|
|
3004
|
+
return new TypeError('Expected "number" but received "' + typeof obj_quantity + '" (at "' + path_quantity + '")');
|
|
2899
3005
|
}
|
|
2900
3006
|
})();
|
|
2901
|
-
if (
|
|
2902
|
-
|
|
3007
|
+
if (obj_quantity_union0_error != null) {
|
|
3008
|
+
obj_quantity_union0 = obj_quantity_union0_error.message;
|
|
2903
3009
|
}
|
|
2904
|
-
let
|
|
2905
|
-
const
|
|
2906
|
-
if (
|
|
2907
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3010
|
+
let obj_quantity_union1 = null;
|
|
3011
|
+
const obj_quantity_union1_error = (() => {
|
|
3012
|
+
if (obj_quantity !== null) {
|
|
3013
|
+
return new TypeError('Expected "null" but received "' + typeof obj_quantity + '" (at "' + path_quantity + '")');
|
|
2908
3014
|
}
|
|
2909
3015
|
})();
|
|
2910
|
-
if (
|
|
2911
|
-
|
|
3016
|
+
if (obj_quantity_union1_error != null) {
|
|
3017
|
+
obj_quantity_union1 = obj_quantity_union1_error.message;
|
|
2912
3018
|
}
|
|
2913
|
-
if (
|
|
2914
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2915
|
-
message += '\n' +
|
|
2916
|
-
message += '\n' +
|
|
3019
|
+
if (obj_quantity_union0 && obj_quantity_union1) {
|
|
3020
|
+
let message = 'Object doesn\'t match union (at "' + path_quantity + '")';
|
|
3021
|
+
message += '\n' + obj_quantity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3022
|
+
message += '\n' + obj_quantity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2917
3023
|
return new TypeError(message);
|
|
2918
3024
|
}
|
|
2919
|
-
const
|
|
2920
|
-
const
|
|
2921
|
-
let
|
|
2922
|
-
const
|
|
2923
|
-
const
|
|
2924
|
-
if (
|
|
2925
|
-
let message = 'Object doesn\'t match
|
|
2926
|
-
message +=
|
|
3025
|
+
const obj_record = obj.record;
|
|
3026
|
+
const path_record = path + '.record';
|
|
3027
|
+
let obj_record_union0 = null;
|
|
3028
|
+
const obj_record_union0_error = (() => {
|
|
3029
|
+
const referencepath_recordValidationError = validate$5(obj_record, path_record);
|
|
3030
|
+
if (referencepath_recordValidationError !== null) {
|
|
3031
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_record + '")\n';
|
|
3032
|
+
message += referencepath_recordValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2927
3033
|
return new TypeError(message);
|
|
2928
3034
|
}
|
|
2929
3035
|
})();
|
|
2930
|
-
if (
|
|
2931
|
-
|
|
3036
|
+
if (obj_record_union0_error != null) {
|
|
3037
|
+
obj_record_union0 = obj_record_union0_error.message;
|
|
2932
3038
|
}
|
|
2933
|
-
let
|
|
2934
|
-
const
|
|
2935
|
-
if (
|
|
2936
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3039
|
+
let obj_record_union1 = null;
|
|
3040
|
+
const obj_record_union1_error = (() => {
|
|
3041
|
+
if (obj_record !== null) {
|
|
3042
|
+
return new TypeError('Expected "null" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
2937
3043
|
}
|
|
2938
3044
|
})();
|
|
2939
|
-
if (
|
|
2940
|
-
|
|
3045
|
+
if (obj_record_union1_error != null) {
|
|
3046
|
+
obj_record_union1 = obj_record_union1_error.message;
|
|
2941
3047
|
}
|
|
2942
|
-
if (
|
|
2943
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2944
|
-
message += '\n' +
|
|
2945
|
-
message += '\n' +
|
|
3048
|
+
if (obj_record_union0 && obj_record_union1) {
|
|
3049
|
+
let message = 'Object doesn\'t match union (at "' + path_record + '")';
|
|
3050
|
+
message += '\n' + obj_record_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3051
|
+
message += '\n' + obj_record_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2946
3052
|
return new TypeError(message);
|
|
2947
3053
|
}
|
|
2948
|
-
const
|
|
2949
|
-
const
|
|
2950
|
-
let
|
|
2951
|
-
const
|
|
2952
|
-
const
|
|
2953
|
-
if (
|
|
2954
|
-
let message = 'Object doesn\'t match
|
|
2955
|
-
message +=
|
|
3054
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
3055
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
3056
|
+
let obj_unitOfMeasure_union0 = null;
|
|
3057
|
+
const obj_unitOfMeasure_union0_error = (() => {
|
|
3058
|
+
const referencepath_unitOfMeasureValidationError = validate$5(obj_unitOfMeasure, path_unitOfMeasure);
|
|
3059
|
+
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
3060
|
+
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
3061
|
+
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2956
3062
|
return new TypeError(message);
|
|
2957
3063
|
}
|
|
2958
3064
|
})();
|
|
2959
|
-
if (
|
|
2960
|
-
|
|
3065
|
+
if (obj_unitOfMeasure_union0_error != null) {
|
|
3066
|
+
obj_unitOfMeasure_union0 = obj_unitOfMeasure_union0_error.message;
|
|
2961
3067
|
}
|
|
2962
|
-
let
|
|
2963
|
-
const
|
|
2964
|
-
if (
|
|
2965
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3068
|
+
let obj_unitOfMeasure_union1 = null;
|
|
3069
|
+
const obj_unitOfMeasure_union1_error = (() => {
|
|
3070
|
+
if (obj_unitOfMeasure !== null) {
|
|
3071
|
+
return new TypeError('Expected "null" but received "' + typeof obj_unitOfMeasure + '" (at "' + path_unitOfMeasure + '")');
|
|
2966
3072
|
}
|
|
2967
3073
|
})();
|
|
2968
|
-
if (
|
|
2969
|
-
|
|
3074
|
+
if (obj_unitOfMeasure_union1_error != null) {
|
|
3075
|
+
obj_unitOfMeasure_union1 = obj_unitOfMeasure_union1_error.message;
|
|
2970
3076
|
}
|
|
2971
|
-
if (
|
|
2972
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2973
|
-
message += '\n' +
|
|
2974
|
-
message += '\n' +
|
|
2975
|
-
return new TypeError(message);
|
|
3077
|
+
if (obj_unitOfMeasure_union0 && obj_unitOfMeasure_union1) {
|
|
3078
|
+
let message = 'Object doesn\'t match union (at "' + path_unitOfMeasure + '")';
|
|
3079
|
+
message += '\n' + obj_unitOfMeasure_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3080
|
+
message += '\n' + obj_unitOfMeasure_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3081
|
+
return new TypeError(message);
|
|
3082
|
+
}
|
|
3083
|
+
const obj_usageRefreshPolicy = obj.usageRefreshPolicy;
|
|
3084
|
+
const path_usageRefreshPolicy = path + '.usageRefreshPolicy';
|
|
3085
|
+
let obj_usageRefreshPolicy_union0 = null;
|
|
3086
|
+
const obj_usageRefreshPolicy_union0_error = (() => {
|
|
3087
|
+
const referencepath_usageRefreshPolicyValidationError = validate$d(obj_usageRefreshPolicy, path_usageRefreshPolicy);
|
|
3088
|
+
if (referencepath_usageRefreshPolicyValidationError !== null) {
|
|
3089
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRefreshPolicy + '")\n';
|
|
3090
|
+
message += referencepath_usageRefreshPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3091
|
+
return new TypeError(message);
|
|
3092
|
+
}
|
|
3093
|
+
})();
|
|
3094
|
+
if (obj_usageRefreshPolicy_union0_error != null) {
|
|
3095
|
+
obj_usageRefreshPolicy_union0 = obj_usageRefreshPolicy_union0_error.message;
|
|
3096
|
+
}
|
|
3097
|
+
let obj_usageRefreshPolicy_union1 = null;
|
|
3098
|
+
const obj_usageRefreshPolicy_union1_error = (() => {
|
|
3099
|
+
if (obj_usageRefreshPolicy !== null) {
|
|
3100
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRefreshPolicy + '" (at "' + path_usageRefreshPolicy + '")');
|
|
3101
|
+
}
|
|
3102
|
+
})();
|
|
3103
|
+
if (obj_usageRefreshPolicy_union1_error != null) {
|
|
3104
|
+
obj_usageRefreshPolicy_union1 = obj_usageRefreshPolicy_union1_error.message;
|
|
3105
|
+
}
|
|
3106
|
+
if (obj_usageRefreshPolicy_union0 && obj_usageRefreshPolicy_union1) {
|
|
3107
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRefreshPolicy + '")';
|
|
3108
|
+
message += '\n' + obj_usageRefreshPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3109
|
+
message += '\n' + obj_usageRefreshPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3110
|
+
return new TypeError(message);
|
|
3111
|
+
}
|
|
3112
|
+
const obj_usageRolloverPolicy = obj.usageRolloverPolicy;
|
|
3113
|
+
const path_usageRolloverPolicy = path + '.usageRolloverPolicy';
|
|
3114
|
+
let obj_usageRolloverPolicy_union0 = null;
|
|
3115
|
+
const obj_usageRolloverPolicy_union0_error = (() => {
|
|
3116
|
+
const referencepath_usageRolloverPolicyValidationError = validate$d(obj_usageRolloverPolicy, path_usageRolloverPolicy);
|
|
3117
|
+
if (referencepath_usageRolloverPolicyValidationError !== null) {
|
|
3118
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageRolloverPolicy + '")\n';
|
|
3119
|
+
message += referencepath_usageRolloverPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3120
|
+
return new TypeError(message);
|
|
3121
|
+
}
|
|
3122
|
+
})();
|
|
3123
|
+
if (obj_usageRolloverPolicy_union0_error != null) {
|
|
3124
|
+
obj_usageRolloverPolicy_union0 = obj_usageRolloverPolicy_union0_error.message;
|
|
3125
|
+
}
|
|
3126
|
+
let obj_usageRolloverPolicy_union1 = null;
|
|
3127
|
+
const obj_usageRolloverPolicy_union1_error = (() => {
|
|
3128
|
+
if (obj_usageRolloverPolicy !== null) {
|
|
3129
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageRolloverPolicy + '" (at "' + path_usageRolloverPolicy + '")');
|
|
3130
|
+
}
|
|
3131
|
+
})();
|
|
3132
|
+
if (obj_usageRolloverPolicy_union1_error != null) {
|
|
3133
|
+
obj_usageRolloverPolicy_union1 = obj_usageRolloverPolicy_union1_error.message;
|
|
3134
|
+
}
|
|
3135
|
+
if (obj_usageRolloverPolicy_union0 && obj_usageRolloverPolicy_union1) {
|
|
3136
|
+
let message = 'Object doesn\'t match union (at "' + path_usageRolloverPolicy + '")';
|
|
3137
|
+
message += '\n' + obj_usageRolloverPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3138
|
+
message += '\n' + obj_usageRolloverPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3139
|
+
return new TypeError(message);
|
|
3140
|
+
}
|
|
3141
|
+
const obj_validityPeriodTerm = obj.validityPeriodTerm;
|
|
3142
|
+
const path_validityPeriodTerm = path + '.validityPeriodTerm';
|
|
3143
|
+
let obj_validityPeriodTerm_union0 = null;
|
|
3144
|
+
const obj_validityPeriodTerm_union0_error = (() => {
|
|
3145
|
+
if (typeof obj_validityPeriodTerm !== 'number') {
|
|
3146
|
+
return new TypeError('Expected "number" but received "' + typeof obj_validityPeriodTerm + '" (at "' + path_validityPeriodTerm + '")');
|
|
3147
|
+
}
|
|
3148
|
+
})();
|
|
3149
|
+
if (obj_validityPeriodTerm_union0_error != null) {
|
|
3150
|
+
obj_validityPeriodTerm_union0 = obj_validityPeriodTerm_union0_error.message;
|
|
3151
|
+
}
|
|
3152
|
+
let obj_validityPeriodTerm_union1 = null;
|
|
3153
|
+
const obj_validityPeriodTerm_union1_error = (() => {
|
|
3154
|
+
if (obj_validityPeriodTerm !== null) {
|
|
3155
|
+
return new TypeError('Expected "null" but received "' + typeof obj_validityPeriodTerm + '" (at "' + path_validityPeriodTerm + '")');
|
|
3156
|
+
}
|
|
3157
|
+
})();
|
|
3158
|
+
if (obj_validityPeriodTerm_union1_error != null) {
|
|
3159
|
+
obj_validityPeriodTerm_union1 = obj_validityPeriodTerm_union1_error.message;
|
|
3160
|
+
}
|
|
3161
|
+
if (obj_validityPeriodTerm_union0 && obj_validityPeriodTerm_union1) {
|
|
3162
|
+
let message = 'Object doesn\'t match union (at "' + path_validityPeriodTerm + '")';
|
|
3163
|
+
message += '\n' + obj_validityPeriodTerm_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3164
|
+
message += '\n' + obj_validityPeriodTerm_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3165
|
+
return new TypeError(message);
|
|
3166
|
+
}
|
|
3167
|
+
const obj_validityPeriodUnit = obj.validityPeriodUnit;
|
|
3168
|
+
const path_validityPeriodUnit = path + '.validityPeriodUnit';
|
|
3169
|
+
let obj_validityPeriodUnit_union0 = null;
|
|
3170
|
+
const obj_validityPeriodUnit_union0_error = (() => {
|
|
3171
|
+
if (typeof obj_validityPeriodUnit !== 'string') {
|
|
3172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_validityPeriodUnit + '" (at "' + path_validityPeriodUnit + '")');
|
|
3173
|
+
}
|
|
3174
|
+
})();
|
|
3175
|
+
if (obj_validityPeriodUnit_union0_error != null) {
|
|
3176
|
+
obj_validityPeriodUnit_union0 = obj_validityPeriodUnit_union0_error.message;
|
|
3177
|
+
}
|
|
3178
|
+
let obj_validityPeriodUnit_union1 = null;
|
|
3179
|
+
const obj_validityPeriodUnit_union1_error = (() => {
|
|
3180
|
+
if (obj_validityPeriodUnit !== null) {
|
|
3181
|
+
return new TypeError('Expected "null" but received "' + typeof obj_validityPeriodUnit + '" (at "' + path_validityPeriodUnit + '")');
|
|
3182
|
+
}
|
|
3183
|
+
})();
|
|
3184
|
+
if (obj_validityPeriodUnit_union1_error != null) {
|
|
3185
|
+
obj_validityPeriodUnit_union1 = obj_validityPeriodUnit_union1_error.message;
|
|
3186
|
+
}
|
|
3187
|
+
if (obj_validityPeriodUnit_union0 && obj_validityPeriodUnit_union1) {
|
|
3188
|
+
let message = 'Object doesn\'t match union (at "' + path_validityPeriodUnit + '")';
|
|
3189
|
+
message += '\n' + obj_validityPeriodUnit_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3190
|
+
message += '\n' + obj_validityPeriodUnit_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3191
|
+
return new TypeError(message);
|
|
2976
3192
|
}
|
|
2977
3193
|
})();
|
|
2978
3194
|
return v_error === undefined ? null : v_error;
|
|
2979
3195
|
}
|
|
2980
|
-
const select$7 = function
|
|
2981
|
-
const { selections:
|
|
3196
|
+
const select$7 = function BindingObjectGrantDetailOutputRepresentationSelect() {
|
|
3197
|
+
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$8();
|
|
3198
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$h();
|
|
2982
3199
|
return {
|
|
2983
3200
|
kind: 'Fragment',
|
|
2984
3201
|
version: VERSION$4,
|
|
2985
3202
|
private: [],
|
|
3203
|
+
selections: [
|
|
3204
|
+
{
|
|
3205
|
+
name: 'effectiveEndDate',
|
|
3206
|
+
kind: 'Scalar'
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
name: 'effectiveStartDate',
|
|
3210
|
+
kind: 'Scalar'
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
name: 'grantType',
|
|
3214
|
+
kind: 'Scalar'
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
name: 'id',
|
|
3218
|
+
kind: 'Scalar'
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
name: 'product',
|
|
3222
|
+
kind: 'Object',
|
|
3223
|
+
nullable: true,
|
|
3224
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
name: 'quantity',
|
|
3228
|
+
kind: 'Scalar'
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
name: 'record',
|
|
3232
|
+
kind: 'Object',
|
|
3233
|
+
nullable: true,
|
|
3234
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
name: 'unitOfMeasure',
|
|
3238
|
+
kind: 'Object',
|
|
3239
|
+
nullable: true,
|
|
3240
|
+
selections: LookupDetailOutputRepresentation__selections
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
name: 'usageRefreshPolicy',
|
|
3244
|
+
kind: 'Object',
|
|
3245
|
+
nullable: true,
|
|
3246
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
name: 'usageRolloverPolicy',
|
|
3250
|
+
kind: 'Object',
|
|
3251
|
+
nullable: true,
|
|
3252
|
+
selections: PolicyDetailOutputRepresentation__selections
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
name: 'validityPeriodTerm',
|
|
3256
|
+
kind: 'Scalar'
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
name: 'validityPeriodUnit',
|
|
3260
|
+
kind: 'Scalar'
|
|
3261
|
+
}
|
|
3262
|
+
]
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
function equals$4(existing, incoming) {
|
|
3266
|
+
const existing_effectiveEndDate = existing.effectiveEndDate;
|
|
3267
|
+
const incoming_effectiveEndDate = incoming.effectiveEndDate;
|
|
3268
|
+
if (!(existing_effectiveEndDate === incoming_effectiveEndDate)) {
|
|
3269
|
+
return false;
|
|
3270
|
+
}
|
|
3271
|
+
const existing_effectiveStartDate = existing.effectiveStartDate;
|
|
3272
|
+
const incoming_effectiveStartDate = incoming.effectiveStartDate;
|
|
3273
|
+
if (!(existing_effectiveStartDate === incoming_effectiveStartDate)) {
|
|
3274
|
+
return false;
|
|
3275
|
+
}
|
|
3276
|
+
const existing_grantType = existing.grantType;
|
|
3277
|
+
const incoming_grantType = incoming.grantType;
|
|
3278
|
+
if (!(existing_grantType === incoming_grantType)) {
|
|
3279
|
+
return false;
|
|
3280
|
+
}
|
|
3281
|
+
const existing_id = existing.id;
|
|
3282
|
+
const incoming_id = incoming.id;
|
|
3283
|
+
if (!(existing_id === incoming_id)) {
|
|
3284
|
+
return false;
|
|
3285
|
+
}
|
|
3286
|
+
const existing_product = existing.product;
|
|
3287
|
+
const incoming_product = incoming.product;
|
|
3288
|
+
if (!(existing_product === incoming_product
|
|
3289
|
+
|| (existing_product != null &&
|
|
3290
|
+
incoming_product != null &&
|
|
3291
|
+
equals$5(existing_product, incoming_product)))) {
|
|
3292
|
+
return false;
|
|
3293
|
+
}
|
|
3294
|
+
const existing_quantity = existing.quantity;
|
|
3295
|
+
const incoming_quantity = incoming.quantity;
|
|
3296
|
+
if (!(existing_quantity === incoming_quantity)) {
|
|
3297
|
+
return false;
|
|
3298
|
+
}
|
|
3299
|
+
const existing_record = existing.record;
|
|
3300
|
+
const incoming_record = incoming.record;
|
|
3301
|
+
if (!(existing_record === incoming_record
|
|
3302
|
+
|| (existing_record != null &&
|
|
3303
|
+
incoming_record != null &&
|
|
3304
|
+
equals$5(existing_record, incoming_record)))) {
|
|
3305
|
+
return false;
|
|
3306
|
+
}
|
|
3307
|
+
const existing_unitOfMeasure = existing.unitOfMeasure;
|
|
3308
|
+
const incoming_unitOfMeasure = incoming.unitOfMeasure;
|
|
3309
|
+
if (!(existing_unitOfMeasure === incoming_unitOfMeasure
|
|
3310
|
+
|| (existing_unitOfMeasure != null &&
|
|
3311
|
+
incoming_unitOfMeasure != null &&
|
|
3312
|
+
equals$5(existing_unitOfMeasure, incoming_unitOfMeasure)))) {
|
|
3313
|
+
return false;
|
|
3314
|
+
}
|
|
3315
|
+
const existing_usageRefreshPolicy = existing.usageRefreshPolicy;
|
|
3316
|
+
const incoming_usageRefreshPolicy = incoming.usageRefreshPolicy;
|
|
3317
|
+
if (!(existing_usageRefreshPolicy === incoming_usageRefreshPolicy
|
|
3318
|
+
|| (existing_usageRefreshPolicy != null &&
|
|
3319
|
+
incoming_usageRefreshPolicy != null &&
|
|
3320
|
+
equals$d(existing_usageRefreshPolicy, incoming_usageRefreshPolicy)))) {
|
|
3321
|
+
return false;
|
|
3322
|
+
}
|
|
3323
|
+
const existing_usageRolloverPolicy = existing.usageRolloverPolicy;
|
|
3324
|
+
const incoming_usageRolloverPolicy = incoming.usageRolloverPolicy;
|
|
3325
|
+
if (!(existing_usageRolloverPolicy === incoming_usageRolloverPolicy
|
|
3326
|
+
|| (existing_usageRolloverPolicy != null &&
|
|
3327
|
+
incoming_usageRolloverPolicy != null &&
|
|
3328
|
+
equals$d(existing_usageRolloverPolicy, incoming_usageRolloverPolicy)))) {
|
|
3329
|
+
return false;
|
|
3330
|
+
}
|
|
3331
|
+
const existing_validityPeriodTerm = existing.validityPeriodTerm;
|
|
3332
|
+
const incoming_validityPeriodTerm = incoming.validityPeriodTerm;
|
|
3333
|
+
if (!(existing_validityPeriodTerm === incoming_validityPeriodTerm)) {
|
|
3334
|
+
return false;
|
|
3335
|
+
}
|
|
3336
|
+
const existing_validityPeriodUnit = existing.validityPeriodUnit;
|
|
3337
|
+
const incoming_validityPeriodUnit = incoming.validityPeriodUnit;
|
|
3338
|
+
if (!(existing_validityPeriodUnit === incoming_validityPeriodUnit)) {
|
|
3339
|
+
return false;
|
|
3340
|
+
}
|
|
3341
|
+
return true;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
const VERSION$3 = "4ac471e759f07d5b598ca0dec1fedd12";
|
|
3345
|
+
function validate$3(obj, path = 'BindingObjectResourcePolicyDetailOutputRepresentation') {
|
|
3346
|
+
const v_error = (() => {
|
|
3347
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3348
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3349
|
+
}
|
|
3350
|
+
const obj_drawdownOrder = obj.drawdownOrder;
|
|
3351
|
+
const path_drawdownOrder = path + '.drawdownOrder';
|
|
3352
|
+
let obj_drawdownOrder_union0 = null;
|
|
3353
|
+
const obj_drawdownOrder_union0_error = (() => {
|
|
3354
|
+
if (typeof obj_drawdownOrder !== 'string') {
|
|
3355
|
+
return new TypeError('Expected "string" but received "' + typeof obj_drawdownOrder + '" (at "' + path_drawdownOrder + '")');
|
|
3356
|
+
}
|
|
3357
|
+
})();
|
|
3358
|
+
if (obj_drawdownOrder_union0_error != null) {
|
|
3359
|
+
obj_drawdownOrder_union0 = obj_drawdownOrder_union0_error.message;
|
|
3360
|
+
}
|
|
3361
|
+
let obj_drawdownOrder_union1 = null;
|
|
3362
|
+
const obj_drawdownOrder_union1_error = (() => {
|
|
3363
|
+
if (obj_drawdownOrder !== null) {
|
|
3364
|
+
return new TypeError('Expected "null" but received "' + typeof obj_drawdownOrder + '" (at "' + path_drawdownOrder + '")');
|
|
3365
|
+
}
|
|
3366
|
+
})();
|
|
3367
|
+
if (obj_drawdownOrder_union1_error != null) {
|
|
3368
|
+
obj_drawdownOrder_union1 = obj_drawdownOrder_union1_error.message;
|
|
3369
|
+
}
|
|
3370
|
+
if (obj_drawdownOrder_union0 && obj_drawdownOrder_union1) {
|
|
3371
|
+
let message = 'Object doesn\'t match union (at "' + path_drawdownOrder + '")';
|
|
3372
|
+
message += '\n' + obj_drawdownOrder_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3373
|
+
message += '\n' + obj_drawdownOrder_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3374
|
+
return new TypeError(message);
|
|
3375
|
+
}
|
|
3376
|
+
const obj_id = obj.id;
|
|
3377
|
+
const path_id = path + '.id';
|
|
3378
|
+
let obj_id_union0 = null;
|
|
3379
|
+
const obj_id_union0_error = (() => {
|
|
3380
|
+
if (typeof obj_id !== 'string') {
|
|
3381
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3382
|
+
}
|
|
3383
|
+
})();
|
|
3384
|
+
if (obj_id_union0_error != null) {
|
|
3385
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3386
|
+
}
|
|
3387
|
+
let obj_id_union1 = null;
|
|
3388
|
+
const obj_id_union1_error = (() => {
|
|
3389
|
+
if (obj_id !== null) {
|
|
3390
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3391
|
+
}
|
|
3392
|
+
})();
|
|
3393
|
+
if (obj_id_union1_error != null) {
|
|
3394
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3395
|
+
}
|
|
3396
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3397
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3398
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3399
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3400
|
+
return new TypeError(message);
|
|
3401
|
+
}
|
|
3402
|
+
const obj_ratingFrequencyPolicy = obj.ratingFrequencyPolicy;
|
|
3403
|
+
const path_ratingFrequencyPolicy = path + '.ratingFrequencyPolicy';
|
|
3404
|
+
let obj_ratingFrequencyPolicy_union0 = null;
|
|
3405
|
+
const obj_ratingFrequencyPolicy_union0_error = (() => {
|
|
3406
|
+
const referencepath_ratingFrequencyPolicyValidationError = validate$d(obj_ratingFrequencyPolicy, path_ratingFrequencyPolicy);
|
|
3407
|
+
if (referencepath_ratingFrequencyPolicyValidationError !== null) {
|
|
3408
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_ratingFrequencyPolicy + '")\n';
|
|
3409
|
+
message += referencepath_ratingFrequencyPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3410
|
+
return new TypeError(message);
|
|
3411
|
+
}
|
|
3412
|
+
})();
|
|
3413
|
+
if (obj_ratingFrequencyPolicy_union0_error != null) {
|
|
3414
|
+
obj_ratingFrequencyPolicy_union0 = obj_ratingFrequencyPolicy_union0_error.message;
|
|
3415
|
+
}
|
|
3416
|
+
let obj_ratingFrequencyPolicy_union1 = null;
|
|
3417
|
+
const obj_ratingFrequencyPolicy_union1_error = (() => {
|
|
3418
|
+
if (obj_ratingFrequencyPolicy !== null) {
|
|
3419
|
+
return new TypeError('Expected "null" but received "' + typeof obj_ratingFrequencyPolicy + '" (at "' + path_ratingFrequencyPolicy + '")');
|
|
3420
|
+
}
|
|
3421
|
+
})();
|
|
3422
|
+
if (obj_ratingFrequencyPolicy_union1_error != null) {
|
|
3423
|
+
obj_ratingFrequencyPolicy_union1 = obj_ratingFrequencyPolicy_union1_error.message;
|
|
3424
|
+
}
|
|
3425
|
+
if (obj_ratingFrequencyPolicy_union0 && obj_ratingFrequencyPolicy_union1) {
|
|
3426
|
+
let message = 'Object doesn\'t match union (at "' + path_ratingFrequencyPolicy + '")';
|
|
3427
|
+
message += '\n' + obj_ratingFrequencyPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3428
|
+
message += '\n' + obj_ratingFrequencyPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3429
|
+
return new TypeError(message);
|
|
3430
|
+
}
|
|
3431
|
+
const obj_usageAggregationPolicy = obj.usageAggregationPolicy;
|
|
3432
|
+
const path_usageAggregationPolicy = path + '.usageAggregationPolicy';
|
|
3433
|
+
let obj_usageAggregationPolicy_union0 = null;
|
|
3434
|
+
const obj_usageAggregationPolicy_union0_error = (() => {
|
|
3435
|
+
const referencepath_usageAggregationPolicyValidationError = validate$d(obj_usageAggregationPolicy, path_usageAggregationPolicy);
|
|
3436
|
+
if (referencepath_usageAggregationPolicyValidationError !== null) {
|
|
3437
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageAggregationPolicy + '")\n';
|
|
3438
|
+
message += referencepath_usageAggregationPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3439
|
+
return new TypeError(message);
|
|
3440
|
+
}
|
|
3441
|
+
})();
|
|
3442
|
+
if (obj_usageAggregationPolicy_union0_error != null) {
|
|
3443
|
+
obj_usageAggregationPolicy_union0 = obj_usageAggregationPolicy_union0_error.message;
|
|
3444
|
+
}
|
|
3445
|
+
let obj_usageAggregationPolicy_union1 = null;
|
|
3446
|
+
const obj_usageAggregationPolicy_union1_error = (() => {
|
|
3447
|
+
if (obj_usageAggregationPolicy !== null) {
|
|
3448
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageAggregationPolicy + '" (at "' + path_usageAggregationPolicy + '")');
|
|
3449
|
+
}
|
|
3450
|
+
})();
|
|
3451
|
+
if (obj_usageAggregationPolicy_union1_error != null) {
|
|
3452
|
+
obj_usageAggregationPolicy_union1 = obj_usageAggregationPolicy_union1_error.message;
|
|
3453
|
+
}
|
|
3454
|
+
if (obj_usageAggregationPolicy_union0 && obj_usageAggregationPolicy_union1) {
|
|
3455
|
+
let message = 'Object doesn\'t match union (at "' + path_usageAggregationPolicy + '")';
|
|
3456
|
+
message += '\n' + obj_usageAggregationPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3457
|
+
message += '\n' + obj_usageAggregationPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3458
|
+
return new TypeError(message);
|
|
3459
|
+
}
|
|
3460
|
+
const obj_usageCommitmentPolicy = obj.usageCommitmentPolicy;
|
|
3461
|
+
const path_usageCommitmentPolicy = path + '.usageCommitmentPolicy';
|
|
3462
|
+
let obj_usageCommitmentPolicy_union0 = null;
|
|
3463
|
+
const obj_usageCommitmentPolicy_union0_error = (() => {
|
|
3464
|
+
const referencepath_usageCommitmentPolicyValidationError = validate$d(obj_usageCommitmentPolicy, path_usageCommitmentPolicy);
|
|
3465
|
+
if (referencepath_usageCommitmentPolicyValidationError !== null) {
|
|
3466
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageCommitmentPolicy + '")\n';
|
|
3467
|
+
message += referencepath_usageCommitmentPolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3468
|
+
return new TypeError(message);
|
|
3469
|
+
}
|
|
3470
|
+
})();
|
|
3471
|
+
if (obj_usageCommitmentPolicy_union0_error != null) {
|
|
3472
|
+
obj_usageCommitmentPolicy_union0 = obj_usageCommitmentPolicy_union0_error.message;
|
|
3473
|
+
}
|
|
3474
|
+
let obj_usageCommitmentPolicy_union1 = null;
|
|
3475
|
+
const obj_usageCommitmentPolicy_union1_error = (() => {
|
|
3476
|
+
if (obj_usageCommitmentPolicy !== null) {
|
|
3477
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageCommitmentPolicy + '" (at "' + path_usageCommitmentPolicy + '")');
|
|
3478
|
+
}
|
|
3479
|
+
})();
|
|
3480
|
+
if (obj_usageCommitmentPolicy_union1_error != null) {
|
|
3481
|
+
obj_usageCommitmentPolicy_union1 = obj_usageCommitmentPolicy_union1_error.message;
|
|
3482
|
+
}
|
|
3483
|
+
if (obj_usageCommitmentPolicy_union0 && obj_usageCommitmentPolicy_union1) {
|
|
3484
|
+
let message = 'Object doesn\'t match union (at "' + path_usageCommitmentPolicy + '")';
|
|
3485
|
+
message += '\n' + obj_usageCommitmentPolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3486
|
+
message += '\n' + obj_usageCommitmentPolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3487
|
+
return new TypeError(message);
|
|
3488
|
+
}
|
|
3489
|
+
const obj_usageOveragePolicy = obj.usageOveragePolicy;
|
|
3490
|
+
const path_usageOveragePolicy = path + '.usageOveragePolicy';
|
|
3491
|
+
let obj_usageOveragePolicy_union0 = null;
|
|
3492
|
+
const obj_usageOveragePolicy_union0_error = (() => {
|
|
3493
|
+
const referencepath_usageOveragePolicyValidationError = validate$d(obj_usageOveragePolicy, path_usageOveragePolicy);
|
|
3494
|
+
if (referencepath_usageOveragePolicyValidationError !== null) {
|
|
3495
|
+
let message = 'Object doesn\'t match PolicyDetailOutputRepresentation (at "' + path_usageOveragePolicy + '")\n';
|
|
3496
|
+
message += referencepath_usageOveragePolicyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3497
|
+
return new TypeError(message);
|
|
3498
|
+
}
|
|
3499
|
+
})();
|
|
3500
|
+
if (obj_usageOveragePolicy_union0_error != null) {
|
|
3501
|
+
obj_usageOveragePolicy_union0 = obj_usageOveragePolicy_union0_error.message;
|
|
3502
|
+
}
|
|
3503
|
+
let obj_usageOveragePolicy_union1 = null;
|
|
3504
|
+
const obj_usageOveragePolicy_union1_error = (() => {
|
|
3505
|
+
if (obj_usageOveragePolicy !== null) {
|
|
3506
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usageOveragePolicy + '" (at "' + path_usageOveragePolicy + '")');
|
|
3507
|
+
}
|
|
3508
|
+
})();
|
|
3509
|
+
if (obj_usageOveragePolicy_union1_error != null) {
|
|
3510
|
+
obj_usageOveragePolicy_union1 = obj_usageOveragePolicy_union1_error.message;
|
|
3511
|
+
}
|
|
3512
|
+
if (obj_usageOveragePolicy_union0 && obj_usageOveragePolicy_union1) {
|
|
3513
|
+
let message = 'Object doesn\'t match union (at "' + path_usageOveragePolicy + '")';
|
|
3514
|
+
message += '\n' + obj_usageOveragePolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3515
|
+
message += '\n' + obj_usageOveragePolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3516
|
+
return new TypeError(message);
|
|
3517
|
+
}
|
|
3518
|
+
})();
|
|
3519
|
+
return v_error === undefined ? null : v_error;
|
|
3520
|
+
}
|
|
3521
|
+
const select$6 = function BindingObjectResourcePolicyDetailOutputRepresentationSelect() {
|
|
3522
|
+
const { selections: PolicyDetailOutputRepresentation__selections, opaque: PolicyDetailOutputRepresentation__opaque, } = select$h();
|
|
3523
|
+
return {
|
|
3524
|
+
kind: 'Fragment',
|
|
3525
|
+
version: VERSION$3,
|
|
3526
|
+
private: [],
|
|
2986
3527
|
selections: [
|
|
2987
3528
|
{
|
|
2988
3529
|
name: 'drawdownOrder',
|
|
@@ -3019,7 +3560,7 @@ const select$7 = function BindingObjectResourcePolicyDetailOutputRepresentationS
|
|
|
3019
3560
|
]
|
|
3020
3561
|
};
|
|
3021
3562
|
};
|
|
3022
|
-
function equals$
|
|
3563
|
+
function equals$3(existing, incoming) {
|
|
3023
3564
|
const existing_drawdownOrder = existing.drawdownOrder;
|
|
3024
3565
|
const incoming_drawdownOrder = incoming.drawdownOrder;
|
|
3025
3566
|
if (!(existing_drawdownOrder === incoming_drawdownOrder)) {
|
|
@@ -3035,7 +3576,7 @@ function equals$4(existing, incoming) {
|
|
|
3035
3576
|
if (!(existing_ratingFrequencyPolicy === incoming_ratingFrequencyPolicy
|
|
3036
3577
|
|| (existing_ratingFrequencyPolicy != null &&
|
|
3037
3578
|
incoming_ratingFrequencyPolicy != null &&
|
|
3038
|
-
equals$
|
|
3579
|
+
equals$d(existing_ratingFrequencyPolicy, incoming_ratingFrequencyPolicy)))) {
|
|
3039
3580
|
return false;
|
|
3040
3581
|
}
|
|
3041
3582
|
const existing_usageAggregationPolicy = existing.usageAggregationPolicy;
|
|
@@ -3043,7 +3584,7 @@ function equals$4(existing, incoming) {
|
|
|
3043
3584
|
if (!(existing_usageAggregationPolicy === incoming_usageAggregationPolicy
|
|
3044
3585
|
|| (existing_usageAggregationPolicy != null &&
|
|
3045
3586
|
incoming_usageAggregationPolicy != null &&
|
|
3046
|
-
equals$
|
|
3587
|
+
equals$d(existing_usageAggregationPolicy, incoming_usageAggregationPolicy)))) {
|
|
3047
3588
|
return false;
|
|
3048
3589
|
}
|
|
3049
3590
|
const existing_usageCommitmentPolicy = existing.usageCommitmentPolicy;
|
|
@@ -3051,7 +3592,7 @@ function equals$4(existing, incoming) {
|
|
|
3051
3592
|
if (!(existing_usageCommitmentPolicy === incoming_usageCommitmentPolicy
|
|
3052
3593
|
|| (existing_usageCommitmentPolicy != null &&
|
|
3053
3594
|
incoming_usageCommitmentPolicy != null &&
|
|
3054
|
-
equals$
|
|
3595
|
+
equals$d(existing_usageCommitmentPolicy, incoming_usageCommitmentPolicy)))) {
|
|
3055
3596
|
return false;
|
|
3056
3597
|
}
|
|
3057
3598
|
const existing_usageOveragePolicy = existing.usageOveragePolicy;
|
|
@@ -3059,14 +3600,14 @@ function equals$4(existing, incoming) {
|
|
|
3059
3600
|
if (!(existing_usageOveragePolicy === incoming_usageOveragePolicy
|
|
3060
3601
|
|| (existing_usageOveragePolicy != null &&
|
|
3061
3602
|
incoming_usageOveragePolicy != null &&
|
|
3062
|
-
equals$
|
|
3603
|
+
equals$d(existing_usageOveragePolicy, incoming_usageOveragePolicy)))) {
|
|
3063
3604
|
return false;
|
|
3064
3605
|
}
|
|
3065
3606
|
return true;
|
|
3066
3607
|
}
|
|
3067
3608
|
|
|
3068
|
-
const VERSION$
|
|
3069
|
-
function validate$
|
|
3609
|
+
const VERSION$2 = "ec9b1f7cc93c689c690b479b3ef6f931";
|
|
3610
|
+
function validate$2(obj, path = 'BindingObjectResourceGrantAndPolicyDetailOutputRepresentation') {
|
|
3070
3611
|
const v_error = (() => {
|
|
3071
3612
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3072
3613
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3080,15 +3621,18 @@ function validate$3(obj, path = 'BindingObjectResourceGrantAndPolicyDetailOutput
|
|
|
3080
3621
|
for (let i = 0; i < obj_bindingObjectGrantDetail.length; i++) {
|
|
3081
3622
|
const obj_bindingObjectGrantDetail_item = obj_bindingObjectGrantDetail[i];
|
|
3082
3623
|
const path_bindingObjectGrantDetail_item = path_bindingObjectGrantDetail + '[' + i + ']';
|
|
3083
|
-
|
|
3084
|
-
|
|
3624
|
+
const referencepath_bindingObjectGrantDetail_itemValidationError = validate$4(obj_bindingObjectGrantDetail_item, path_bindingObjectGrantDetail_item);
|
|
3625
|
+
if (referencepath_bindingObjectGrantDetail_itemValidationError !== null) {
|
|
3626
|
+
let message = 'Object doesn\'t match BindingObjectGrantDetailOutputRepresentation (at "' + path_bindingObjectGrantDetail_item + '")\n';
|
|
3627
|
+
message += referencepath_bindingObjectGrantDetail_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3628
|
+
return new TypeError(message);
|
|
3085
3629
|
}
|
|
3086
3630
|
}
|
|
3087
3631
|
}
|
|
3088
3632
|
if (obj.bindingObjectResourcePolicyDetail !== undefined) {
|
|
3089
3633
|
const obj_bindingObjectResourcePolicyDetail = obj.bindingObjectResourcePolicyDetail;
|
|
3090
3634
|
const path_bindingObjectResourcePolicyDetail = path + '.bindingObjectResourcePolicyDetail';
|
|
3091
|
-
const referencepath_bindingObjectResourcePolicyDetailValidationError = validate$
|
|
3635
|
+
const referencepath_bindingObjectResourcePolicyDetailValidationError = validate$3(obj_bindingObjectResourcePolicyDetail, path_bindingObjectResourcePolicyDetail);
|
|
3092
3636
|
if (referencepath_bindingObjectResourcePolicyDetailValidationError !== null) {
|
|
3093
3637
|
let message = 'Object doesn\'t match BindingObjectResourcePolicyDetailOutputRepresentation (at "' + path_bindingObjectResourcePolicyDetail + '")\n';
|
|
3094
3638
|
message += referencepath_bindingObjectResourcePolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3098,17 +3642,20 @@ function validate$3(obj, path = 'BindingObjectResourceGrantAndPolicyDetailOutput
|
|
|
3098
3642
|
})();
|
|
3099
3643
|
return v_error === undefined ? null : v_error;
|
|
3100
3644
|
}
|
|
3101
|
-
const select$
|
|
3102
|
-
const { selections:
|
|
3645
|
+
const select$5 = function BindingObjectResourceGrantAndPolicyDetailOutputRepresentationSelect() {
|
|
3646
|
+
const { selections: BindingObjectGrantDetailOutputRepresentation__selections, opaque: BindingObjectGrantDetailOutputRepresentation__opaque, } = select$7();
|
|
3647
|
+
const { selections: BindingObjectResourcePolicyDetailOutputRepresentation__selections, opaque: BindingObjectResourcePolicyDetailOutputRepresentation__opaque, } = select$6();
|
|
3103
3648
|
return {
|
|
3104
3649
|
kind: 'Fragment',
|
|
3105
|
-
version: VERSION$
|
|
3650
|
+
version: VERSION$2,
|
|
3106
3651
|
private: [],
|
|
3107
3652
|
selections: [
|
|
3108
3653
|
{
|
|
3109
3654
|
name: 'bindingObjectGrantDetail',
|
|
3110
3655
|
kind: 'Object',
|
|
3111
|
-
|
|
3656
|
+
plural: true,
|
|
3657
|
+
selections: BindingObjectGrantDetailOutputRepresentation__selections,
|
|
3658
|
+
required: false
|
|
3112
3659
|
},
|
|
3113
3660
|
{
|
|
3114
3661
|
name: 'bindingObjectResourcePolicyDetail',
|
|
@@ -3119,7 +3666,7 @@ const select$6 = function BindingObjectResourceGrantAndPolicyDetailOutputReprese
|
|
|
3119
3666
|
]
|
|
3120
3667
|
};
|
|
3121
3668
|
};
|
|
3122
|
-
function equals$
|
|
3669
|
+
function equals$2(existing, incoming) {
|
|
3123
3670
|
const existing_bindingObjectGrantDetail = existing.bindingObjectGrantDetail;
|
|
3124
3671
|
const incoming_bindingObjectGrantDetail = incoming.bindingObjectGrantDetail;
|
|
3125
3672
|
// if at least one of these optionals is defined
|
|
@@ -3130,7 +3677,7 @@ function equals$3(existing, incoming) {
|
|
|
3130
3677
|
return false;
|
|
3131
3678
|
}
|
|
3132
3679
|
const equals_bindingObjectGrantDetail_items = equalsArray(existing_bindingObjectGrantDetail, incoming_bindingObjectGrantDetail, (existing_bindingObjectGrantDetail_item, incoming_bindingObjectGrantDetail_item) => {
|
|
3133
|
-
if (
|
|
3680
|
+
if (!(equals$4(existing_bindingObjectGrantDetail_item, incoming_bindingObjectGrantDetail_item))) {
|
|
3134
3681
|
return false;
|
|
3135
3682
|
}
|
|
3136
3683
|
});
|
|
@@ -3147,70 +3694,13 @@ function equals$3(existing, incoming) {
|
|
|
3147
3694
|
if (existing_bindingObjectResourcePolicyDetail === undefined || incoming_bindingObjectResourcePolicyDetail === undefined) {
|
|
3148
3695
|
return false;
|
|
3149
3696
|
}
|
|
3150
|
-
if (!(equals$
|
|
3697
|
+
if (!(equals$3(existing_bindingObjectResourcePolicyDetail, incoming_bindingObjectResourcePolicyDetail))) {
|
|
3151
3698
|
return false;
|
|
3152
3699
|
}
|
|
3153
3700
|
}
|
|
3154
3701
|
return true;
|
|
3155
3702
|
}
|
|
3156
3703
|
|
|
3157
|
-
const VERSION$2 = "33e33f0cd2919c7a3113b7c4b63348fb";
|
|
3158
|
-
function validate$2(obj, path = 'LookupDetailOutputRepresentation') {
|
|
3159
|
-
const v_error = (() => {
|
|
3160
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3161
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3162
|
-
}
|
|
3163
|
-
const obj_id = obj.id;
|
|
3164
|
-
const path_id = path + '.id';
|
|
3165
|
-
let obj_id_union0 = null;
|
|
3166
|
-
const obj_id_union0_error = (() => {
|
|
3167
|
-
if (typeof obj_id !== 'string') {
|
|
3168
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3169
|
-
}
|
|
3170
|
-
})();
|
|
3171
|
-
if (obj_id_union0_error != null) {
|
|
3172
|
-
obj_id_union0 = obj_id_union0_error.message;
|
|
3173
|
-
}
|
|
3174
|
-
let obj_id_union1 = null;
|
|
3175
|
-
const obj_id_union1_error = (() => {
|
|
3176
|
-
if (obj_id !== null) {
|
|
3177
|
-
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3178
|
-
}
|
|
3179
|
-
})();
|
|
3180
|
-
if (obj_id_union1_error != null) {
|
|
3181
|
-
obj_id_union1 = obj_id_union1_error.message;
|
|
3182
|
-
}
|
|
3183
|
-
if (obj_id_union0 && obj_id_union1) {
|
|
3184
|
-
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3185
|
-
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3186
|
-
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3187
|
-
return new TypeError(message);
|
|
3188
|
-
}
|
|
3189
|
-
})();
|
|
3190
|
-
return v_error === undefined ? null : v_error;
|
|
3191
|
-
}
|
|
3192
|
-
const select$5 = function LookupDetailOutputRepresentationSelect() {
|
|
3193
|
-
return {
|
|
3194
|
-
kind: 'Fragment',
|
|
3195
|
-
version: VERSION$2,
|
|
3196
|
-
private: [],
|
|
3197
|
-
selections: [
|
|
3198
|
-
{
|
|
3199
|
-
name: 'id',
|
|
3200
|
-
kind: 'Scalar'
|
|
3201
|
-
}
|
|
3202
|
-
]
|
|
3203
|
-
};
|
|
3204
|
-
};
|
|
3205
|
-
function equals$2(existing, incoming) {
|
|
3206
|
-
const existing_id = existing.id;
|
|
3207
|
-
const incoming_id = incoming.id;
|
|
3208
|
-
if (!(existing_id === incoming_id)) {
|
|
3209
|
-
return false;
|
|
3210
|
-
}
|
|
3211
|
-
return true;
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
3704
|
const VERSION$1 = "9ac3605c04ffb39f20c8db01c7a72e5d";
|
|
3215
3705
|
function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
3216
3706
|
const v_error = (() => {
|
|
@@ -3220,7 +3710,7 @@ function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
|
3220
3710
|
if (obj.bindingObjectRate !== undefined) {
|
|
3221
3711
|
const obj_bindingObjectRate = obj.bindingObjectRate;
|
|
3222
3712
|
const path_bindingObjectRate = path + '.bindingObjectRate';
|
|
3223
|
-
const referencepath_bindingObjectRateValidationError = validate$
|
|
3713
|
+
const referencepath_bindingObjectRateValidationError = validate$6(obj_bindingObjectRate, path_bindingObjectRate);
|
|
3224
3714
|
if (referencepath_bindingObjectRateValidationError !== null) {
|
|
3225
3715
|
let message = 'Object doesn\'t match BindingObjectRateOutputRepresentation (at "' + path_bindingObjectRate + '")\n';
|
|
3226
3716
|
message += referencepath_bindingObjectRateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3230,7 +3720,7 @@ function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
|
3230
3720
|
if (obj.bindingObjectResourceGrantAndPolicyDetail !== undefined) {
|
|
3231
3721
|
const obj_bindingObjectResourceGrantAndPolicyDetail = obj.bindingObjectResourceGrantAndPolicyDetail;
|
|
3232
3722
|
const path_bindingObjectResourceGrantAndPolicyDetail = path + '.bindingObjectResourceGrantAndPolicyDetail';
|
|
3233
|
-
const referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError = validate$
|
|
3723
|
+
const referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError = validate$2(obj_bindingObjectResourceGrantAndPolicyDetail, path_bindingObjectResourceGrantAndPolicyDetail);
|
|
3234
3724
|
if (referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError !== null) {
|
|
3235
3725
|
let message = 'Object doesn\'t match BindingObjectResourceGrantAndPolicyDetailOutputRepresentation (at "' + path_bindingObjectResourceGrantAndPolicyDetail + '")\n';
|
|
3236
3726
|
message += referencepath_bindingObjectResourceGrantAndPolicyDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3240,7 +3730,7 @@ function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
|
3240
3730
|
if (obj.usageResource !== undefined) {
|
|
3241
3731
|
const obj_usageResource = obj.usageResource;
|
|
3242
3732
|
const path_usageResource = path + '.usageResource';
|
|
3243
|
-
const referencepath_usageResourceValidationError = validate$
|
|
3733
|
+
const referencepath_usageResourceValidationError = validate$5(obj_usageResource, path_usageResource);
|
|
3244
3734
|
if (referencepath_usageResourceValidationError !== null) {
|
|
3245
3735
|
let message = 'Object doesn\'t match LookupDetailOutputRepresentation (at "' + path_usageResource + '")\n';
|
|
3246
3736
|
message += referencepath_usageResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3251,9 +3741,9 @@ function validate$1(obj, path = 'BindingObjectDetailOutputRepresentation') {
|
|
|
3251
3741
|
return v_error === undefined ? null : v_error;
|
|
3252
3742
|
}
|
|
3253
3743
|
const select$4 = function BindingObjectDetailOutputRepresentationSelect() {
|
|
3254
|
-
const { selections: BindingObjectRateOutputRepresentation__selections, opaque: BindingObjectRateOutputRepresentation__opaque, } = select$
|
|
3255
|
-
const { selections: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$
|
|
3256
|
-
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$
|
|
3744
|
+
const { selections: BindingObjectRateOutputRepresentation__selections, opaque: BindingObjectRateOutputRepresentation__opaque, } = select$9();
|
|
3745
|
+
const { selections: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__selections, opaque: BindingObjectResourceGrantAndPolicyDetailOutputRepresentation__opaque, } = select$5();
|
|
3746
|
+
const { selections: LookupDetailOutputRepresentation__selections, opaque: LookupDetailOutputRepresentation__opaque, } = select$8();
|
|
3257
3747
|
return {
|
|
3258
3748
|
kind: 'Fragment',
|
|
3259
3749
|
version: VERSION$1,
|
|
@@ -3290,7 +3780,7 @@ function equals$1(existing, incoming) {
|
|
|
3290
3780
|
if (existing_bindingObjectRate === undefined || incoming_bindingObjectRate === undefined) {
|
|
3291
3781
|
return false;
|
|
3292
3782
|
}
|
|
3293
|
-
if (!(equals$
|
|
3783
|
+
if (!(equals$6(existing_bindingObjectRate, incoming_bindingObjectRate))) {
|
|
3294
3784
|
return false;
|
|
3295
3785
|
}
|
|
3296
3786
|
}
|
|
@@ -3303,7 +3793,7 @@ function equals$1(existing, incoming) {
|
|
|
3303
3793
|
if (existing_bindingObjectResourceGrantAndPolicyDetail === undefined || incoming_bindingObjectResourceGrantAndPolicyDetail === undefined) {
|
|
3304
3794
|
return false;
|
|
3305
3795
|
}
|
|
3306
|
-
if (!(equals$
|
|
3796
|
+
if (!(equals$2(existing_bindingObjectResourceGrantAndPolicyDetail, incoming_bindingObjectResourceGrantAndPolicyDetail))) {
|
|
3307
3797
|
return false;
|
|
3308
3798
|
}
|
|
3309
3799
|
}
|
|
@@ -3316,7 +3806,7 @@ function equals$1(existing, incoming) {
|
|
|
3316
3806
|
if (existing_usageResource === undefined || incoming_usageResource === undefined) {
|
|
3317
3807
|
return false;
|
|
3318
3808
|
}
|
|
3319
|
-
if (!(equals$
|
|
3809
|
+
if (!(equals$5(existing_usageResource, incoming_usageResource))) {
|
|
3320
3810
|
return false;
|
|
3321
3811
|
}
|
|
3322
3812
|
}
|
|
@@ -3339,7 +3829,7 @@ function validate(obj, path = 'UsageDetailBindingObjectOutputRepresentation') {
|
|
|
3339
3829
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
3340
3830
|
const obj_errors_item = obj_errors[i];
|
|
3341
3831
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
3342
|
-
const referencepath_errors_itemValidationError = validate$
|
|
3832
|
+
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
3343
3833
|
if (referencepath_errors_itemValidationError !== null) {
|
|
3344
3834
|
let message = 'Object doesn\'t match UsageDetailErrorResponseRepresentation (at "' + path_errors_item + '")\n';
|
|
3345
3835
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3372,7 +3862,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
3372
3862
|
return input;
|
|
3373
3863
|
}
|
|
3374
3864
|
const select$3 = function UsageDetailBindingObjectOutputRepresentationSelect() {
|
|
3375
|
-
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$
|
|
3865
|
+
const { selections: UsageDetailErrorResponseRepresentation__selections, opaque: UsageDetailErrorResponseRepresentation__opaque, } = select$j();
|
|
3376
3866
|
const { selections: BindingObjectDetailOutputRepresentation__selections, opaque: BindingObjectDetailOutputRepresentation__opaque, } = select$4();
|
|
3377
3867
|
return {
|
|
3378
3868
|
kind: 'Fragment',
|
|
@@ -3407,7 +3897,7 @@ function equals(existing, incoming) {
|
|
|
3407
3897
|
return false;
|
|
3408
3898
|
}
|
|
3409
3899
|
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
3410
|
-
if (!(equals$
|
|
3900
|
+
if (!(equals$f(existing_errors_item, incoming_errors_item))) {
|
|
3411
3901
|
return false;
|
|
3412
3902
|
}
|
|
3413
3903
|
});
|
|
@@ -3597,7 +4087,7 @@ const getBindingObjectUsageDetailsAdapterFactory = (luvio) => function usageDeta
|
|
|
3597
4087
|
};
|
|
3598
4088
|
|
|
3599
4089
|
function select$1(luvio, params) {
|
|
3600
|
-
return select$
|
|
4090
|
+
return select$c();
|
|
3601
4091
|
}
|
|
3602
4092
|
function keyBuilder$3(luvio, params) {
|
|
3603
4093
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'orderItemId:' + params.urlParams.orderItemId + ')';
|
|
@@ -3628,7 +4118,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
3628
4118
|
const storeMetadataParams = {
|
|
3629
4119
|
ttl: TTL$1,
|
|
3630
4120
|
namespace: keyPrefix,
|
|
3631
|
-
version: VERSION$
|
|
4121
|
+
version: VERSION$8,
|
|
3632
4122
|
representationName: RepresentationType$1
|
|
3633
4123
|
};
|
|
3634
4124
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3737,7 +4227,7 @@ const getOrderUsageDetailsAdapterFactory = (luvio) => function usageDetail__getO
|
|
|
3737
4227
|
};
|
|
3738
4228
|
|
|
3739
4229
|
function select(luvio, params) {
|
|
3740
|
-
return select$
|
|
4230
|
+
return select$c();
|
|
3741
4231
|
}
|
|
3742
4232
|
function keyBuilder$1(luvio, params) {
|
|
3743
4233
|
return keyPrefix + '::UsageDetailOutputRepresentation:(' + 'effectiveDate:' + params.queryParams.effectiveDate + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'quoteLineItemId:' + params.urlParams.quoteLineItemId + ')';
|
|
@@ -3768,7 +4258,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
3768
4258
|
const storeMetadataParams = {
|
|
3769
4259
|
ttl: TTL$1,
|
|
3770
4260
|
namespace: keyPrefix,
|
|
3771
|
-
version: VERSION$
|
|
4261
|
+
version: VERSION$8,
|
|
3772
4262
|
representationName: RepresentationType$1
|
|
3773
4263
|
};
|
|
3774
4264
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3940,4 +4430,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3940
4430
|
});
|
|
3941
4431
|
|
|
3942
4432
|
export { getAssetUsageDetails, getAssetUsageDetails_imperative, getBindingObjectUsageDetails, getBindingObjectUsageDetails_imperative, getOrderUsageDetails, getOrderUsageDetails_imperative, getQuoteUsageDetails, getQuoteUsageDetails_imperative };
|
|
3943
|
-
// version: 1.
|
|
4433
|
+
// version: 1.379.1-7ea94edc38
|