@salesforce/lds-adapters-industries-cpq 1.320.0 → 1.321.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-cpq.js +165 -108
- package/dist/es/es2018/types/src/generated/types/ConfiguratorAttributeOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductCatalogOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorUnitOfMeasureOutputRepresentation.d.ts +37 -0
- package/package.json +4 -4
- package/sfdc/index.js +106 -49
- package/src/raml/api.raml +28 -0
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$Y(obj, path = 'PreviewInputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -154,7 +154,7 @@ function validate$X(obj, path = 'PreviewInputRepresentation') {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
const VERSION$l = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$X(obj, path = 'CpqMessageOutputRepresentation') {
|
|
158
158
|
const v_error = (() => {
|
|
159
159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
160
160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -276,7 +276,7 @@ function equals$l(existing, incoming) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const VERSION$k = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
-
function validate$
|
|
279
|
+
function validate$W(obj, path = 'ApiStatusOutputRepresentation') {
|
|
280
280
|
const v_error = (() => {
|
|
281
281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
282
282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -290,7 +290,7 @@ function validate$V(obj, path = 'ApiStatusOutputRepresentation') {
|
|
|
290
290
|
for (let i = 0; i < obj_messages.length; i++) {
|
|
291
291
|
const obj_messages_item = obj_messages[i];
|
|
292
292
|
const path_messages_item = path_messages + '[' + i + ']';
|
|
293
|
-
const referencepath_messages_itemValidationError = validate$
|
|
293
|
+
const referencepath_messages_itemValidationError = validate$X(obj_messages_item, path_messages_item);
|
|
294
294
|
if (referencepath_messages_itemValidationError !== null) {
|
|
295
295
|
let message = 'Object doesn\'t match CpqMessageOutputRepresentation (at "' + path_messages_item + '")\n';
|
|
296
296
|
message += referencepath_messages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -379,7 +379,7 @@ function equals$k(existing, incoming) {
|
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
function validate$
|
|
382
|
+
function validate$V(obj, path = 'FacetValueRepresentation') {
|
|
383
383
|
const v_error = (() => {
|
|
384
384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
385
385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -409,7 +409,7 @@ function validate$U(obj, path = 'FacetValueRepresentation') {
|
|
|
409
409
|
return v_error === undefined ? null : v_error;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
function validate$
|
|
412
|
+
function validate$U(obj, path = 'SearchProductsFacetRepresentation') {
|
|
413
413
|
const v_error = (() => {
|
|
414
414
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
415
415
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -444,7 +444,7 @@ function validate$T(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
444
444
|
for (let i = 0; i < obj_values.length; i++) {
|
|
445
445
|
const obj_values_item = obj_values[i];
|
|
446
446
|
const path_values_item = path_values + '[' + i + ']';
|
|
447
|
-
const referencepath_values_itemValidationError = validate$
|
|
447
|
+
const referencepath_values_itemValidationError = validate$V(obj_values_item, path_values_item);
|
|
448
448
|
if (referencepath_values_itemValidationError !== null) {
|
|
449
449
|
let message = 'Object doesn\'t match FacetValueRepresentation (at "' + path_values_item + '")\n';
|
|
450
450
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -458,14 +458,14 @@ function validate$T(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
458
458
|
|
|
459
459
|
const TTL$b = 1000;
|
|
460
460
|
const VERSION$j = "d4404c373b22855446ba4f933f08573c";
|
|
461
|
-
function validate$
|
|
461
|
+
function validate$T(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
462
462
|
const v_error = (() => {
|
|
463
463
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
464
464
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
465
465
|
}
|
|
466
466
|
const obj_apiStatus = obj.apiStatus;
|
|
467
467
|
const path_apiStatus = path + '.apiStatus';
|
|
468
|
-
const referencepath_apiStatusValidationError = validate$
|
|
468
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
469
469
|
if (referencepath_apiStatusValidationError !== null) {
|
|
470
470
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
471
471
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -484,7 +484,7 @@ function validate$S(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
484
484
|
for (let i = 0; i < obj_facets.length; i++) {
|
|
485
485
|
const obj_facets_item = obj_facets[i];
|
|
486
486
|
const path_facets_item = path_facets + '[' + i + ']';
|
|
487
|
-
const referencepath_facets_itemValidationError = validate$
|
|
487
|
+
const referencepath_facets_itemValidationError = validate$U(obj_facets_item, path_facets_item);
|
|
488
488
|
if (referencepath_facets_itemValidationError !== null) {
|
|
489
489
|
let message = 'Object doesn\'t match SearchProductsFacetRepresentation (at "' + path_facets_item + '")\n';
|
|
490
490
|
message += referencepath_facets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -563,7 +563,7 @@ function equals$j(existing, incoming) {
|
|
|
563
563
|
}
|
|
564
564
|
const ingest$c = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
565
565
|
if (process.env.NODE_ENV !== 'production') {
|
|
566
|
-
const validateError = validate$
|
|
566
|
+
const validateError = validate$T(input);
|
|
567
567
|
if (validateError !== null) {
|
|
568
568
|
throw validateError;
|
|
569
569
|
}
|
|
@@ -629,7 +629,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(preview_Conf
|
|
|
629
629
|
function typeCheckConfig$h(untrustedConfig) {
|
|
630
630
|
const config = {};
|
|
631
631
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
632
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
632
|
+
const referencePreviewInputRepresentationValidationError = validate$Y(untrustedConfig_previewInput);
|
|
633
633
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
634
634
|
config.previewInput = untrustedConfig_previewInput;
|
|
635
635
|
}
|
|
@@ -677,7 +677,7 @@ const previewAdapterFactory = (luvio) => {
|
|
|
677
677
|
};
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
function validate$
|
|
680
|
+
function validate$S(obj, path = 'ProductListInputRepresentation') {
|
|
681
681
|
const v_error = (() => {
|
|
682
682
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
683
683
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -814,7 +814,7 @@ const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(productList_
|
|
|
814
814
|
function typeCheckConfig$g(untrustedConfig) {
|
|
815
815
|
const config = {};
|
|
816
816
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
817
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
817
|
+
const referenceProductListInputRepresentationValidationError = validate$S(untrustedConfig_requestBody);
|
|
818
818
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
819
819
|
config.requestBody = untrustedConfig_requestBody;
|
|
820
820
|
}
|
|
@@ -862,7 +862,7 @@ const productListAdapterFactory = (luvio) => {
|
|
|
862
862
|
};
|
|
863
863
|
};
|
|
864
864
|
|
|
865
|
-
function validate$
|
|
865
|
+
function validate$R(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
866
866
|
const v_error = (() => {
|
|
867
867
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
868
868
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -886,7 +886,7 @@ function validate$Q(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
|
886
886
|
return v_error === undefined ? null : v_error;
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
-
function validate$
|
|
889
|
+
function validate$Q(obj, path = 'FilterInputRepresentation') {
|
|
890
890
|
const v_error = (() => {
|
|
891
891
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
892
892
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -899,7 +899,7 @@ function validate$P(obj, path = 'FilterInputRepresentation') {
|
|
|
899
899
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
900
900
|
const obj_criteria_item = obj_criteria[i];
|
|
901
901
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
902
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
902
|
+
const referencepath_criteria_itemValidationError = validate$R(obj_criteria_item, path_criteria_item);
|
|
903
903
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
904
904
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
905
905
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -910,7 +910,7 @@ function validate$P(obj, path = 'FilterInputRepresentation') {
|
|
|
910
910
|
return v_error === undefined ? null : v_error;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
function validate$
|
|
913
|
+
function validate$P(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
914
914
|
const v_error = (() => {
|
|
915
915
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
916
916
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -923,7 +923,7 @@ function validate$O(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
923
923
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
924
924
|
const obj_criteria_item = obj_criteria[i];
|
|
925
925
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
926
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
926
|
+
const referencepath_criteria_itemValidationError = validate$R(obj_criteria_item, path_criteria_item);
|
|
927
927
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
928
928
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
929
929
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -939,7 +939,7 @@ function validate$O(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
939
939
|
return v_error === undefined ? null : v_error;
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
function validate$
|
|
942
|
+
function validate$O(obj, path = 'GuidedSelectionSearchTermInputRepresentation') {
|
|
943
943
|
const v_error = (() => {
|
|
944
944
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
945
945
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -969,7 +969,7 @@ function validate$N(obj, path = 'GuidedSelectionSearchTermInputRepresentation')
|
|
|
969
969
|
return v_error === undefined ? null : v_error;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
function validate$
|
|
972
|
+
function validate$N(obj, path = 'GuidedSelectionSearchTermOutputRepresentation') {
|
|
973
973
|
const v_error = (() => {
|
|
974
974
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
975
975
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -997,14 +997,14 @@ function validate$M(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
|
|
|
997
997
|
|
|
998
998
|
const TTL$a = 1000;
|
|
999
999
|
const VERSION$i = "59b55511c24a0471c3f3a7aa8c21c5c1";
|
|
1000
|
-
function validate$
|
|
1000
|
+
function validate$M(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
1001
1001
|
const v_error = (() => {
|
|
1002
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1003
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1004
1004
|
}
|
|
1005
1005
|
const obj_apiStatus = obj.apiStatus;
|
|
1006
1006
|
const path_apiStatus = path + '.apiStatus';
|
|
1007
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1007
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
1008
1008
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1009
1009
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1010
1010
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1066,7 +1066,7 @@ function validate$L(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1066
1066
|
for (let i = 0; i < obj_searchTerms.length; i++) {
|
|
1067
1067
|
const obj_searchTerms_item = obj_searchTerms[i];
|
|
1068
1068
|
const path_searchTerms_item = path_searchTerms + '[' + i + ']';
|
|
1069
|
-
const referencepath_searchTerms_itemValidationError = validate$
|
|
1069
|
+
const referencepath_searchTerms_itemValidationError = validate$N(obj_searchTerms_item, path_searchTerms_item);
|
|
1070
1070
|
if (referencepath_searchTerms_itemValidationError !== null) {
|
|
1071
1071
|
let message = 'Object doesn\'t match GuidedSelectionSearchTermOutputRepresentation (at "' + path_searchTerms_item + '")\n';
|
|
1072
1072
|
message += referencepath_searchTerms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1120,7 +1120,7 @@ function equals$i(existing, incoming) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
const ingest$b = function GuidedSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1122
1122
|
if (process.env.NODE_ENV !== 'production') {
|
|
1123
|
-
const validateError = validate$
|
|
1123
|
+
const validateError = validate$M(input);
|
|
1124
1124
|
if (validateError !== null) {
|
|
1125
1125
|
throw validateError;
|
|
1126
1126
|
}
|
|
@@ -1219,7 +1219,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1222
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
1222
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
1223
1223
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1224
1224
|
config.filter = untrustedConfig_filter;
|
|
1225
1225
|
}
|
|
@@ -1228,7 +1228,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1228
1228
|
const untrustedConfig_relatedObjectFilters_array = [];
|
|
1229
1229
|
for (let i = 0, arrayLength = untrustedConfig_relatedObjectFilters.length; i < arrayLength; i++) {
|
|
1230
1230
|
const untrustedConfig_relatedObjectFilters_item = untrustedConfig_relatedObjectFilters[i];
|
|
1231
|
-
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$
|
|
1231
|
+
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$P(untrustedConfig_relatedObjectFilters_item);
|
|
1232
1232
|
if (referenceRelatedObjectFilterInputRepresentationValidationError === null) {
|
|
1233
1233
|
untrustedConfig_relatedObjectFilters_array.push(untrustedConfig_relatedObjectFilters_item);
|
|
1234
1234
|
}
|
|
@@ -1247,7 +1247,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1247
1247
|
const untrustedConfig_searchTerms_array = [];
|
|
1248
1248
|
for (let i = 0, arrayLength = untrustedConfig_searchTerms.length; i < arrayLength; i++) {
|
|
1249
1249
|
const untrustedConfig_searchTerms_item = untrustedConfig_searchTerms[i];
|
|
1250
|
-
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$
|
|
1250
|
+
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$O(untrustedConfig_searchTerms_item);
|
|
1251
1251
|
if (referenceGuidedSelectionSearchTermInputRepresentationValidationError === null) {
|
|
1252
1252
|
untrustedConfig_searchTerms_array.push(untrustedConfig_searchTerms_item);
|
|
1253
1253
|
}
|
|
@@ -1298,7 +1298,7 @@ const guidedSelectionProductListAdapterFactory = (luvio) => {
|
|
|
1298
1298
|
};
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
|
-
function validate$
|
|
1301
|
+
function validate$L(obj, path = 'SearchProductsInputRepresentation') {
|
|
1302
1302
|
const v_error = (() => {
|
|
1303
1303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1304
1304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1442,7 +1442,7 @@ const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(searchProduc
|
|
|
1442
1442
|
function typeCheckConfig$e(untrustedConfig) {
|
|
1443
1443
|
const config = {};
|
|
1444
1444
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1445
|
-
const referenceSearchProductsInputRepresentationValidationError = validate$
|
|
1445
|
+
const referenceSearchProductsInputRepresentationValidationError = validate$L(untrustedConfig_requestBody);
|
|
1446
1446
|
if (referenceSearchProductsInputRepresentationValidationError === null) {
|
|
1447
1447
|
config.requestBody = untrustedConfig_requestBody;
|
|
1448
1448
|
}
|
|
@@ -1490,7 +1490,7 @@ const searchProductListAdapterFactory = (luvio) => {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
};
|
|
1492
1492
|
|
|
1493
|
-
function validate$
|
|
1493
|
+
function validate$K(obj, path = 'ProductDataInput') {
|
|
1494
1494
|
const v_error = (() => {
|
|
1495
1495
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1496
1496
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1513,14 +1513,14 @@ function validate$J(obj, path = 'ProductDataInput') {
|
|
|
1513
1513
|
|
|
1514
1514
|
const TTL$9 = 1000;
|
|
1515
1515
|
const VERSION$h = "7d789beb75307985bad3ddf01d82b242";
|
|
1516
|
-
function validate$
|
|
1516
|
+
function validate$J(obj, path = 'CpqBaseBulkDetailsOutput') {
|
|
1517
1517
|
const v_error = (() => {
|
|
1518
1518
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1519
1519
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1520
1520
|
}
|
|
1521
1521
|
const obj_apiStatus = obj.apiStatus;
|
|
1522
1522
|
const path_apiStatus = path + '.apiStatus';
|
|
1523
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1523
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
1524
1524
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1525
1525
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1526
1526
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1591,7 +1591,7 @@ function equals$h(existing, incoming) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
const ingest$a = function CpqBaseBulkDetailsOutputIngest(input, path, luvio, store, timestamp) {
|
|
1593
1593
|
if (process.env.NODE_ENV !== 'production') {
|
|
1594
|
-
const validateError = validate$
|
|
1594
|
+
const validateError = validate$J(input);
|
|
1595
1595
|
if (validateError !== null) {
|
|
1596
1596
|
throw validateError;
|
|
1597
1597
|
}
|
|
@@ -1681,7 +1681,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
1681
1681
|
const untrustedConfig_productData_array = [];
|
|
1682
1682
|
for (let i = 0, arrayLength = untrustedConfig_productData.length; i < arrayLength; i++) {
|
|
1683
1683
|
const untrustedConfig_productData_item = untrustedConfig_productData[i];
|
|
1684
|
-
const referenceProductDataInputValidationError = validate$
|
|
1684
|
+
const referenceProductDataInputValidationError = validate$K(untrustedConfig_productData_item);
|
|
1685
1685
|
if (referenceProductDataInputValidationError === null) {
|
|
1686
1686
|
untrustedConfig_productData_array.push(untrustedConfig_productData_item);
|
|
1687
1687
|
}
|
|
@@ -1739,7 +1739,7 @@ const bulkProductDetailsAdapterFactory = (luvio) => {
|
|
|
1739
1739
|
};
|
|
1740
1740
|
};
|
|
1741
1741
|
|
|
1742
|
-
function validate$
|
|
1742
|
+
function validate$I(obj, path = 'ProductDetailsInputRepresentation') {
|
|
1743
1743
|
const v_error = (() => {
|
|
1744
1744
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1745
1745
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1790,14 +1790,14 @@ function validate$H(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
1790
1790
|
|
|
1791
1791
|
const TTL$8 = 1000;
|
|
1792
1792
|
const VERSION$g = "6e77a7585bc4d094518eb201471d85ea";
|
|
1793
|
-
function validate$
|
|
1793
|
+
function validate$H(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
1794
1794
|
const v_error = (() => {
|
|
1795
1795
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1796
1796
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1797
1797
|
}
|
|
1798
1798
|
const obj_apiStatus = obj.apiStatus;
|
|
1799
1799
|
const path_apiStatus = path + '.apiStatus';
|
|
1800
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1800
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
1801
1801
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1802
1802
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1803
1803
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1845,7 +1845,7 @@ function equals$g(existing, incoming) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
const ingest$9 = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1847
1847
|
if (process.env.NODE_ENV !== 'production') {
|
|
1848
|
-
const validateError = validate$
|
|
1848
|
+
const validateError = validate$H(input);
|
|
1849
1849
|
if (validateError !== null) {
|
|
1850
1850
|
throw validateError;
|
|
1851
1851
|
}
|
|
@@ -1913,7 +1913,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
1913
1913
|
const config = {};
|
|
1914
1914
|
typeCheckConfig$i(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
1915
1915
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1916
|
-
const referenceProductDetailsInputRepresentationValidationError = validate$
|
|
1916
|
+
const referenceProductDetailsInputRepresentationValidationError = validate$I(untrustedConfig_requestBody);
|
|
1917
1917
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
1918
1918
|
config.requestBody = untrustedConfig_requestBody;
|
|
1919
1919
|
}
|
|
@@ -2021,7 +2021,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
2021
2021
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2022
2022
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2023
2023
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2024
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2024
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
2025
2025
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2026
2026
|
config.filter = untrustedConfig_filter;
|
|
2027
2027
|
}
|
|
@@ -2143,7 +2143,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
2143
2143
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2144
2144
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2145
2145
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2146
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2146
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
2147
2147
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2148
2148
|
config.filter = untrustedConfig_filter;
|
|
2149
2149
|
}
|
|
@@ -2206,7 +2206,7 @@ const categoryDetailsAdapterFactory = (luvio) => {
|
|
|
2206
2206
|
};
|
|
2207
2207
|
};
|
|
2208
2208
|
|
|
2209
|
-
function validate$
|
|
2209
|
+
function validate$G(obj, path = 'CreateCartInputRepresentation') {
|
|
2210
2210
|
const v_error = (() => {
|
|
2211
2211
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2212
2212
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2277,14 +2277,14 @@ function validate$F(obj, path = 'CreateCartInputRepresentation') {
|
|
|
2277
2277
|
|
|
2278
2278
|
const TTL$7 = 1000;
|
|
2279
2279
|
const VERSION$f = "1f730145ab6b9f6b4d070b5eade57b4c";
|
|
2280
|
-
function validate$
|
|
2280
|
+
function validate$F(obj, path = 'CreateCartOutputRepresentation') {
|
|
2281
2281
|
const v_error = (() => {
|
|
2282
2282
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2283
2283
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2284
2284
|
}
|
|
2285
2285
|
const obj_apiStatus = obj.apiStatus;
|
|
2286
2286
|
const path_apiStatus = path + '.apiStatus';
|
|
2287
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2287
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
2288
2288
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2289
2289
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2290
2290
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2329,7 +2329,7 @@ function equals$f(existing, incoming) {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
const ingest$8 = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2331
2331
|
if (process.env.NODE_ENV !== 'production') {
|
|
2332
|
-
const validateError = validate$
|
|
2332
|
+
const validateError = validate$F(input);
|
|
2333
2333
|
if (validateError !== null) {
|
|
2334
2334
|
throw validateError;
|
|
2335
2335
|
}
|
|
@@ -2395,7 +2395,7 @@ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(createCart_C
|
|
|
2395
2395
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2396
2396
|
const config = {};
|
|
2397
2397
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
2398
|
-
const referenceCreateCartInputRepresentationValidationError = validate$
|
|
2398
|
+
const referenceCreateCartInputRepresentationValidationError = validate$G(untrustedConfig_createCartRequestPayload);
|
|
2399
2399
|
if (referenceCreateCartInputRepresentationValidationError === null) {
|
|
2400
2400
|
config.createCartRequestPayload = untrustedConfig_createCartRequestPayload;
|
|
2401
2401
|
}
|
|
@@ -2444,7 +2444,7 @@ const createCartAdapterFactory = (luvio) => {
|
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
2446
|
const VERSION$e = "c49b7c37c117b93f62b9696af8a68cdc";
|
|
2447
|
-
function validate$
|
|
2447
|
+
function validate$E(obj, path = 'AttributePickListValueOutputRepresentation') {
|
|
2448
2448
|
const v_error = (() => {
|
|
2449
2449
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2450
2450
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2716,7 +2716,7 @@ function equals$e(existing, incoming) {
|
|
|
2716
2716
|
}
|
|
2717
2717
|
|
|
2718
2718
|
const VERSION$d = "78e748e628eb86e688eec1678db105d8";
|
|
2719
|
-
function validate$
|
|
2719
|
+
function validate$D(obj, path = 'AttributePickListOutputRepresentation') {
|
|
2720
2720
|
const v_error = (() => {
|
|
2721
2721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2722
2722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2765,7 +2765,7 @@ function validate$C(obj, path = 'AttributePickListOutputRepresentation') {
|
|
|
2765
2765
|
for (let i = 0; i < obj_values.length; i++) {
|
|
2766
2766
|
const obj_values_item = obj_values[i];
|
|
2767
2767
|
const path_values_item = path_values + '[' + i + ']';
|
|
2768
|
-
const referencepath_values_itemValidationError = validate$
|
|
2768
|
+
const referencepath_values_itemValidationError = validate$E(obj_values_item, path_values_item);
|
|
2769
2769
|
if (referencepath_values_itemValidationError !== null) {
|
|
2770
2770
|
let message = 'Object doesn\'t match AttributePickListValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
2771
2771
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2906,7 +2906,7 @@ function equals$d(existing, incoming) {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
|
|
2908
2908
|
const VERSION$c = "a721b7658e0e47f6255b519635c8e0d4";
|
|
2909
|
-
function validate$
|
|
2909
|
+
function validate$C(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
2910
2910
|
const v_error = (() => {
|
|
2911
2911
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2912
2912
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2935,7 +2935,7 @@ function validate$B(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
|
2935
2935
|
if (obj.attributePickList !== undefined) {
|
|
2936
2936
|
const obj_attributePickList = obj.attributePickList;
|
|
2937
2937
|
const path_attributePickList = path + '.attributePickList';
|
|
2938
|
-
const referencepath_attributePickListValidationError = validate$
|
|
2938
|
+
const referencepath_attributePickListValidationError = validate$D(obj_attributePickList, path_attributePickList);
|
|
2939
2939
|
if (referencepath_attributePickListValidationError !== null) {
|
|
2940
2940
|
let message = 'Object doesn\'t match AttributePickListOutputRepresentation (at "' + path_attributePickList + '")\n';
|
|
2941
2941
|
message += referencepath_attributePickListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3650,7 +3650,7 @@ function equals$c(existing, incoming) {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
|
|
3652
3652
|
const VERSION$b = "63ca2614b6879bfb4df068438d7e78ec";
|
|
3653
|
-
function validate$
|
|
3653
|
+
function validate$B(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
3654
3654
|
const v_error = (() => {
|
|
3655
3655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3656
3656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3692,7 +3692,7 @@ function validate$A(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
|
3692
3692
|
for (let i = 0; i < obj_records.length; i++) {
|
|
3693
3693
|
const obj_records_item = obj_records[i];
|
|
3694
3694
|
const path_records_item = path_records + '[' + i + ']';
|
|
3695
|
-
const referencepath_records_itemValidationError = validate$
|
|
3695
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
3696
3696
|
if (referencepath_records_itemValidationError !== null) {
|
|
3697
3697
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
|
|
3698
3698
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3890,7 +3890,7 @@ function equals$b(existing, incoming) {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
|
|
3892
3892
|
const VERSION$a = "a59ef129f333de8bbfe140f39144b415";
|
|
3893
|
-
function validate$
|
|
3893
|
+
function validate$A(obj, path = 'CartItemOutputRepresentation') {
|
|
3894
3894
|
const v_error = (() => {
|
|
3895
3895
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3896
3896
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3904,7 +3904,7 @@ function validate$z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
3904
3904
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
3905
3905
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
3906
3906
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
3907
|
-
const referencepath_attributeCategories_itemValidationError = validate$
|
|
3907
|
+
const referencepath_attributeCategories_itemValidationError = validate$B(obj_attributeCategories_item, path_attributeCategories_item);
|
|
3908
3908
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
3909
3909
|
let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
3910
3910
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3921,7 +3921,7 @@ function validate$z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
3921
3921
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3922
3922
|
const obj_attributes_item = obj_attributes[i];
|
|
3923
3923
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3924
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3924
|
+
const referencepath_attributes_itemValidationError = validate$C(obj_attributes_item, path_attributes_item);
|
|
3925
3925
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3926
3926
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
3927
3927
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4211,7 +4211,7 @@ function equals$a(existing, incoming) {
|
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
4213
|
const VERSION$9 = "dbbe0e43dcf8f1d5334798bb12acca37";
|
|
4214
|
-
function validate$
|
|
4214
|
+
function validate$z(obj, path = 'CartItemsOutputRepresentation') {
|
|
4215
4215
|
const v_error = (() => {
|
|
4216
4216
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4217
4217
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4225,7 +4225,7 @@ function validate$y(obj, path = 'CartItemsOutputRepresentation') {
|
|
|
4225
4225
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4226
4226
|
const obj_records_item = obj_records[i];
|
|
4227
4227
|
const path_records_item = path_records + '[' + i + ']';
|
|
4228
|
-
const referencepath_records_itemValidationError = validate$
|
|
4228
|
+
const referencepath_records_itemValidationError = validate$A(obj_records_item, path_records_item);
|
|
4229
4229
|
if (referencepath_records_itemValidationError !== null) {
|
|
4230
4230
|
let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
|
|
4231
4231
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4301,7 +4301,7 @@ function equals$9(existing, incoming) {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
|
|
4303
4303
|
const VERSION$8 = "ce1e52694d8508b2f5239ba28287dc1e";
|
|
4304
|
-
function validate$
|
|
4304
|
+
function validate$y(obj, path = 'PricingTotalOutputRepresentation') {
|
|
4305
4305
|
const v_error = (() => {
|
|
4306
4306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4307
4307
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4419,14 +4419,14 @@ function equals$8(existing, incoming) {
|
|
|
4419
4419
|
}
|
|
4420
4420
|
|
|
4421
4421
|
const VERSION$7 = "db83704358e5d7a3f3f3622cdd0a5114";
|
|
4422
|
-
function validate$
|
|
4422
|
+
function validate$x(obj, path = 'GetCartOutputRepresentation') {
|
|
4423
4423
|
const v_error = (() => {
|
|
4424
4424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4425
4425
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4426
4426
|
}
|
|
4427
4427
|
const obj_apiStatus = obj.apiStatus;
|
|
4428
4428
|
const path_apiStatus = path + '.apiStatus';
|
|
4429
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4429
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
4430
4430
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4431
4431
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4432
4432
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4442,7 +4442,7 @@ function validate$w(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4442
4442
|
if (obj.cartItems !== undefined) {
|
|
4443
4443
|
const obj_cartItems = obj.cartItems;
|
|
4444
4444
|
const path_cartItems = path + '.cartItems';
|
|
4445
|
-
const referencepath_cartItemsValidationError = validate$
|
|
4445
|
+
const referencepath_cartItemsValidationError = validate$z(obj_cartItems, path_cartItems);
|
|
4446
4446
|
if (referencepath_cartItemsValidationError !== null) {
|
|
4447
4447
|
let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
|
|
4448
4448
|
message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4458,7 +4458,7 @@ function validate$w(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4458
4458
|
for (let i = 0; i < obj_totals.length; i++) {
|
|
4459
4459
|
const obj_totals_item = obj_totals[i];
|
|
4460
4460
|
const path_totals_item = path_totals + '[' + i + ']';
|
|
4461
|
-
const referencepath_totals_itemValidationError = validate$
|
|
4461
|
+
const referencepath_totals_itemValidationError = validate$y(obj_totals_item, path_totals_item);
|
|
4462
4462
|
if (referencepath_totals_itemValidationError !== null) {
|
|
4463
4463
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
|
|
4464
4464
|
message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4562,7 +4562,7 @@ function equals$7(existing, incoming) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
const ingest$7 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4564
4564
|
if (process.env.NODE_ENV !== 'production') {
|
|
4565
|
-
const validateError = validate$
|
|
4565
|
+
const validateError = validate$x(input);
|
|
4566
4566
|
if (validateError !== null) {
|
|
4567
4567
|
throw validateError;
|
|
4568
4568
|
}
|
|
@@ -4714,7 +4714,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
|
|
|
4714
4714
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4715
4715
|
};
|
|
4716
4716
|
|
|
4717
|
-
function validate$
|
|
4717
|
+
function validate$w(obj, path = 'UpdateCartInputRepresentation') {
|
|
4718
4718
|
const v_error = (() => {
|
|
4719
4719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4720
4720
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4749,7 +4749,7 @@ function validate$v(obj, path = 'UpdateCartInputRepresentation') {
|
|
|
4749
4749
|
return v_error === undefined ? null : v_error;
|
|
4750
4750
|
}
|
|
4751
4751
|
|
|
4752
|
-
function validate$
|
|
4752
|
+
function validate$v(obj, path = 'ValidationResultOutputRepresentation') {
|
|
4753
4753
|
const v_error = (() => {
|
|
4754
4754
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4755
4755
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4793,7 +4793,7 @@ function validate$u(obj, path = 'ValidationResultOutputRepresentation') {
|
|
|
4793
4793
|
return v_error === undefined ? null : v_error;
|
|
4794
4794
|
}
|
|
4795
4795
|
|
|
4796
|
-
function validate$
|
|
4796
|
+
function validate$u(obj, path = 'ValidateCartOutputRepresentation') {
|
|
4797
4797
|
const v_error = (() => {
|
|
4798
4798
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4799
4799
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4807,7 +4807,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4807
4807
|
for (let i = 0; i < obj_attributeErrors.length; i++) {
|
|
4808
4808
|
const obj_attributeErrors_item = obj_attributeErrors[i];
|
|
4809
4809
|
const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
|
|
4810
|
-
const referencepath_attributeErrors_itemValidationError = validate$
|
|
4810
|
+
const referencepath_attributeErrors_itemValidationError = validate$v(obj_attributeErrors_item, path_attributeErrors_item);
|
|
4811
4811
|
if (referencepath_attributeErrors_itemValidationError !== null) {
|
|
4812
4812
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
|
|
4813
4813
|
message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4824,7 +4824,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4824
4824
|
for (let i = 0; i < obj_breErrors.length; i++) {
|
|
4825
4825
|
const obj_breErrors_item = obj_breErrors[i];
|
|
4826
4826
|
const path_breErrors_item = path_breErrors + '[' + i + ']';
|
|
4827
|
-
const referencepath_breErrors_itemValidationError = validate$
|
|
4827
|
+
const referencepath_breErrors_itemValidationError = validate$v(obj_breErrors_item, path_breErrors_item);
|
|
4828
4828
|
if (referencepath_breErrors_itemValidationError !== null) {
|
|
4829
4829
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
|
|
4830
4830
|
message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4841,7 +4841,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4841
4841
|
for (let i = 0; i < obj_cardinalityErrors.length; i++) {
|
|
4842
4842
|
const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
|
|
4843
4843
|
const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
|
|
4844
|
-
const referencepath_cardinalityErrors_itemValidationError = validate$
|
|
4844
|
+
const referencepath_cardinalityErrors_itemValidationError = validate$v(obj_cardinalityErrors_item, path_cardinalityErrors_item);
|
|
4845
4845
|
if (referencepath_cardinalityErrors_itemValidationError !== null) {
|
|
4846
4846
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
|
|
4847
4847
|
message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4862,14 +4862,14 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4862
4862
|
|
|
4863
4863
|
const TTL$6 = 1000;
|
|
4864
4864
|
const VERSION$6 = "b0d6081a9f20773285c8aeb2e715ead3";
|
|
4865
|
-
function validate$
|
|
4865
|
+
function validate$t(obj, path = 'UpdateCartOutputRepresentation') {
|
|
4866
4866
|
const v_error = (() => {
|
|
4867
4867
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4868
4868
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4869
4869
|
}
|
|
4870
4870
|
const obj_apiStatus = obj.apiStatus;
|
|
4871
4871
|
const path_apiStatus = path + '.apiStatus';
|
|
4872
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4872
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
4873
4873
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4874
4874
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4875
4875
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4877,7 +4877,7 @@ function validate$s(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
4877
4877
|
}
|
|
4878
4878
|
const obj_validationResults = obj.validationResults;
|
|
4879
4879
|
const path_validationResults = path + '.validationResults';
|
|
4880
|
-
const referencepath_validationResultsValidationError = validate$
|
|
4880
|
+
const referencepath_validationResultsValidationError = validate$u(obj_validationResults, path_validationResults);
|
|
4881
4881
|
if (referencepath_validationResultsValidationError !== null) {
|
|
4882
4882
|
let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
|
|
4883
4883
|
message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4915,7 +4915,7 @@ function equals$6(existing, incoming) {
|
|
|
4915
4915
|
}
|
|
4916
4916
|
const ingest$6 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4917
4917
|
if (process.env.NODE_ENV !== 'production') {
|
|
4918
|
-
const validateError = validate$
|
|
4918
|
+
const validateError = validate$t(input);
|
|
4919
4919
|
if (validateError !== null) {
|
|
4920
4920
|
throw validateError;
|
|
4921
4921
|
}
|
|
@@ -4983,7 +4983,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
4983
4983
|
const config = {};
|
|
4984
4984
|
typeCheckConfig$i(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
4985
4985
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4986
|
-
const referenceUpdateCartInputRepresentationValidationError = validate$
|
|
4986
|
+
const referenceUpdateCartInputRepresentationValidationError = validate$w(untrustedConfig_requestBody);
|
|
4987
4987
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
4988
4988
|
config.requestBody = untrustedConfig_requestBody;
|
|
4989
4989
|
}
|
|
@@ -5031,7 +5031,7 @@ const updateCartAdapterFactory = (luvio) => {
|
|
|
5031
5031
|
};
|
|
5032
5032
|
};
|
|
5033
5033
|
|
|
5034
|
-
function validate$
|
|
5034
|
+
function validate$s(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
5035
5035
|
const v_error = (() => {
|
|
5036
5036
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5037
5037
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5070,14 +5070,14 @@ function validate$r(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
|
5070
5070
|
|
|
5071
5071
|
const TTL$5 = 1000;
|
|
5072
5072
|
const VERSION$5 = "7f205594e7cf298b4bee71200afab626";
|
|
5073
|
-
function validate$
|
|
5073
|
+
function validate$r(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
5074
5074
|
const v_error = (() => {
|
|
5075
5075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5076
5076
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5077
5077
|
}
|
|
5078
5078
|
const obj_apiStatus = obj.apiStatus;
|
|
5079
5079
|
const path_apiStatus = path + '.apiStatus';
|
|
5080
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5080
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
5081
5081
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5082
5082
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5083
5083
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5122,7 +5122,7 @@ function equals$5(existing, incoming) {
|
|
|
5122
5122
|
}
|
|
5123
5123
|
const ingest$5 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5124
5124
|
if (process.env.NODE_ENV !== 'production') {
|
|
5125
|
-
const validateError = validate$
|
|
5125
|
+
const validateError = validate$r(input);
|
|
5126
5126
|
if (validateError !== null) {
|
|
5127
5127
|
throw validateError;
|
|
5128
5128
|
}
|
|
@@ -5190,7 +5190,7 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
5190
5190
|
const config = {};
|
|
5191
5191
|
typeCheckConfig$i(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
5192
5192
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5193
|
-
const referenceUpdateCartItemsInputRepresentationValidationError = validate$
|
|
5193
|
+
const referenceUpdateCartItemsInputRepresentationValidationError = validate$s(untrustedConfig_requestBody);
|
|
5194
5194
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
5195
5195
|
config.requestBody = untrustedConfig_requestBody;
|
|
5196
5196
|
}
|
|
@@ -5238,7 +5238,7 @@ const updateCartItemsAdapterFactory = (luvio) => {
|
|
|
5238
5238
|
};
|
|
5239
5239
|
};
|
|
5240
5240
|
|
|
5241
|
-
function validate$
|
|
5241
|
+
function validate$q(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
5242
5242
|
const v_error = (() => {
|
|
5243
5243
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5244
5244
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5277,14 +5277,14 @@ function validate$p(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
|
5277
5277
|
|
|
5278
5278
|
const TTL$4 = 1000;
|
|
5279
5279
|
const VERSION$4 = "34153309b079451754e6d3fbf85bb8bd";
|
|
5280
|
-
function validate$
|
|
5280
|
+
function validate$p(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
5281
5281
|
const v_error = (() => {
|
|
5282
5282
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5283
5283
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5284
5284
|
}
|
|
5285
5285
|
const obj_apiStatus = obj.apiStatus;
|
|
5286
5286
|
const path_apiStatus = path + '.apiStatus';
|
|
5287
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5287
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
5288
5288
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5289
5289
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5290
5290
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5329,7 +5329,7 @@ function equals$4(existing, incoming) {
|
|
|
5329
5329
|
}
|
|
5330
5330
|
const ingest$4 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5331
5331
|
if (process.env.NODE_ENV !== 'production') {
|
|
5332
|
-
const validateError = validate$
|
|
5332
|
+
const validateError = validate$p(input);
|
|
5333
5333
|
if (validateError !== null) {
|
|
5334
5334
|
throw validateError;
|
|
5335
5335
|
}
|
|
@@ -5397,7 +5397,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5397
5397
|
const config = {};
|
|
5398
5398
|
typeCheckConfig$i(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
5399
5399
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5400
|
-
const referenceCreateCartItemsInputRepresentationValidationError = validate$
|
|
5400
|
+
const referenceCreateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
|
|
5401
5401
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
5402
5402
|
config.requestBody = untrustedConfig_requestBody;
|
|
5403
5403
|
}
|
|
@@ -5445,7 +5445,7 @@ const createCartItemsAdapterFactory = (luvio) => {
|
|
|
5445
5445
|
};
|
|
5446
5446
|
};
|
|
5447
5447
|
|
|
5448
|
-
function validate$
|
|
5448
|
+
function validate$o(obj, path = 'PriceCartInputRepresentation') {
|
|
5449
5449
|
const v_error = (() => {
|
|
5450
5450
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5451
5451
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5484,14 +5484,14 @@ function validate$n(obj, path = 'PriceCartInputRepresentation') {
|
|
|
5484
5484
|
|
|
5485
5485
|
const TTL$3 = 1000;
|
|
5486
5486
|
const VERSION$3 = "b1e28ba15f534459065f2870a9dc703d";
|
|
5487
|
-
function validate$
|
|
5487
|
+
function validate$n(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
5488
5488
|
const v_error = (() => {
|
|
5489
5489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5490
5490
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5491
5491
|
}
|
|
5492
5492
|
const obj_apiStatus = obj.apiStatus;
|
|
5493
5493
|
const path_apiStatus = path + '.apiStatus';
|
|
5494
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5494
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
5495
5495
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5496
5496
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5497
5497
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5513,7 +5513,7 @@ function validate$m(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
5513
5513
|
for (let i = 0; i < obj_cartPricingTotals.length; i++) {
|
|
5514
5514
|
const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
|
|
5515
5515
|
const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
|
|
5516
|
-
const referencepath_cartPricingTotals_itemValidationError = validate$
|
|
5516
|
+
const referencepath_cartPricingTotals_itemValidationError = validate$y(obj_cartPricingTotals_item, path_cartPricingTotals_item);
|
|
5517
5517
|
if (referencepath_cartPricingTotals_itemValidationError !== null) {
|
|
5518
5518
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
|
|
5519
5519
|
message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5553,7 +5553,7 @@ function equals$3(existing, incoming) {
|
|
|
5553
5553
|
}
|
|
5554
5554
|
const ingest$3 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5555
5555
|
if (process.env.NODE_ENV !== 'production') {
|
|
5556
|
-
const validateError = validate$
|
|
5556
|
+
const validateError = validate$n(input);
|
|
5557
5557
|
if (validateError !== null) {
|
|
5558
5558
|
throw validateError;
|
|
5559
5559
|
}
|
|
@@ -5621,7 +5621,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
5621
5621
|
const config = {};
|
|
5622
5622
|
typeCheckConfig$i(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
5623
5623
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5624
|
-
const referencePriceCartInputRepresentationValidationError = validate$
|
|
5624
|
+
const referencePriceCartInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
|
|
5625
5625
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
5626
5626
|
config.requestBody = untrustedConfig_requestBody;
|
|
5627
5627
|
}
|
|
@@ -5669,7 +5669,7 @@ const priceCartAdapterFactory = (luvio) => {
|
|
|
5669
5669
|
};
|
|
5670
5670
|
};
|
|
5671
5671
|
|
|
5672
|
-
function validate$
|
|
5672
|
+
function validate$m(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
5673
5673
|
const v_error = (() => {
|
|
5674
5674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5675
5675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5697,7 +5697,7 @@ function validate$l(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
|
5697
5697
|
return v_error === undefined ? null : v_error;
|
|
5698
5698
|
}
|
|
5699
5699
|
|
|
5700
|
-
function validate$
|
|
5700
|
+
function validate$l(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
5701
5701
|
const v_error = (() => {
|
|
5702
5702
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5703
5703
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5762,7 +5762,7 @@ function validate$k(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
|
5762
5762
|
return v_error === undefined ? null : v_error;
|
|
5763
5763
|
}
|
|
5764
5764
|
|
|
5765
|
-
function validate$
|
|
5765
|
+
function validate$k(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
5766
5766
|
const v_error = (() => {
|
|
5767
5767
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5768
5768
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5785,7 +5785,7 @@ function validate$j(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
|
5785
5785
|
return v_error === undefined ? null : v_error;
|
|
5786
5786
|
}
|
|
5787
5787
|
|
|
5788
|
-
function validate$
|
|
5788
|
+
function validate$j(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
5789
5789
|
const v_error = (() => {
|
|
5790
5790
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5791
5791
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5813,7 +5813,7 @@ function validate$i(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
|
5813
5813
|
return v_error === undefined ? null : v_error;
|
|
5814
5814
|
}
|
|
5815
5815
|
|
|
5816
|
-
function validate$
|
|
5816
|
+
function validate$i(obj, path = 'ConfiguratorInputRepresentation') {
|
|
5817
5817
|
const v_error = (() => {
|
|
5818
5818
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5819
5819
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5827,7 +5827,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5827
5827
|
for (let i = 0; i < obj_addedNodes.length; i++) {
|
|
5828
5828
|
const obj_addedNodes_item = obj_addedNodes[i];
|
|
5829
5829
|
const path_addedNodes_item = path_addedNodes + '[' + i + ']';
|
|
5830
|
-
const referencepath_addedNodes_itemValidationError = validate$
|
|
5830
|
+
const referencepath_addedNodes_itemValidationError = validate$m(obj_addedNodes_item, path_addedNodes_item);
|
|
5831
5831
|
if (referencepath_addedNodes_itemValidationError !== null) {
|
|
5832
5832
|
let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
|
|
5833
5833
|
message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5838,7 +5838,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5838
5838
|
if (obj.configuratorOptions !== undefined) {
|
|
5839
5839
|
const obj_configuratorOptions = obj.configuratorOptions;
|
|
5840
5840
|
const path_configuratorOptions = path + '.configuratorOptions';
|
|
5841
|
-
const referencepath_configuratorOptionsValidationError = validate$
|
|
5841
|
+
const referencepath_configuratorOptionsValidationError = validate$l(obj_configuratorOptions, path_configuratorOptions);
|
|
5842
5842
|
if (referencepath_configuratorOptionsValidationError !== null) {
|
|
5843
5843
|
let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
|
|
5844
5844
|
message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5896,7 +5896,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5896
5896
|
for (let i = 0; i < obj_deletedNodes.length; i++) {
|
|
5897
5897
|
const obj_deletedNodes_item = obj_deletedNodes[i];
|
|
5898
5898
|
const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
|
|
5899
|
-
const referencepath_deletedNodes_itemValidationError = validate$
|
|
5899
|
+
const referencepath_deletedNodes_itemValidationError = validate$k(obj_deletedNodes_item, path_deletedNodes_item);
|
|
5900
5900
|
if (referencepath_deletedNodes_itemValidationError !== null) {
|
|
5901
5901
|
let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
|
|
5902
5902
|
message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6004,7 +6004,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6004
6004
|
for (let i = 0; i < obj_updatedNodes.length; i++) {
|
|
6005
6005
|
const obj_updatedNodes_item = obj_updatedNodes[i];
|
|
6006
6006
|
const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
|
|
6007
|
-
const referencepath_updatedNodes_itemValidationError = validate$
|
|
6007
|
+
const referencepath_updatedNodes_itemValidationError = validate$j(obj_updatedNodes_item, path_updatedNodes_item);
|
|
6008
6008
|
if (referencepath_updatedNodes_itemValidationError !== null) {
|
|
6009
6009
|
let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
|
|
6010
6010
|
message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6016,7 +6016,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6016
6016
|
return v_error === undefined ? null : v_error;
|
|
6017
6017
|
}
|
|
6018
6018
|
|
|
6019
|
-
function validate$
|
|
6019
|
+
function validate$h(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
|
|
6020
6020
|
const v_error = (() => {
|
|
6021
6021
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6022
6022
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6053,7 +6053,7 @@ function validate$g(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentatio
|
|
|
6053
6053
|
return v_error === undefined ? null : v_error;
|
|
6054
6054
|
}
|
|
6055
6055
|
|
|
6056
|
-
function validate$
|
|
6056
|
+
function validate$g(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
|
|
6057
6057
|
const v_error = (() => {
|
|
6058
6058
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6059
6059
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6132,7 +6132,7 @@ function validate$f(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
|
|
|
6132
6132
|
return v_error === undefined ? null : v_error;
|
|
6133
6133
|
}
|
|
6134
6134
|
|
|
6135
|
-
function validate$
|
|
6135
|
+
function validate$f(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
|
|
6136
6136
|
const v_error = (() => {
|
|
6137
6137
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6138
6138
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6174,7 +6174,7 @@ function validate$e(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6174
6174
|
for (let i = 0; i < obj_values.length; i++) {
|
|
6175
6175
|
const obj_values_item = obj_values[i];
|
|
6176
6176
|
const path_values_item = path_values + '[' + i + ']';
|
|
6177
|
-
const referencepath_values_itemValidationError = validate$
|
|
6177
|
+
const referencepath_values_itemValidationError = validate$g(obj_values_item, path_values_item);
|
|
6178
6178
|
if (referencepath_values_itemValidationError !== null) {
|
|
6179
6179
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
6180
6180
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6186,6 +6186,43 @@ function validate$e(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6186
6186
|
return v_error === undefined ? null : v_error;
|
|
6187
6187
|
}
|
|
6188
6188
|
|
|
6189
|
+
function validate$e(obj, path = 'ConfiguratorUnitOfMeasureOutputRepresentation') {
|
|
6190
|
+
const v_error = (() => {
|
|
6191
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6192
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6193
|
+
}
|
|
6194
|
+
if (obj.id !== undefined) {
|
|
6195
|
+
const obj_id = obj.id;
|
|
6196
|
+
const path_id = path + '.id';
|
|
6197
|
+
if (typeof obj_id !== 'string') {
|
|
6198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6199
|
+
}
|
|
6200
|
+
}
|
|
6201
|
+
if (obj.name !== undefined) {
|
|
6202
|
+
const obj_name = obj.name;
|
|
6203
|
+
const path_name = path + '.name';
|
|
6204
|
+
if (typeof obj_name !== 'string') {
|
|
6205
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
if (obj.roundingMethod !== undefined) {
|
|
6209
|
+
const obj_roundingMethod = obj.roundingMethod;
|
|
6210
|
+
const path_roundingMethod = path + '.roundingMethod';
|
|
6211
|
+
if (typeof obj_roundingMethod !== 'string') {
|
|
6212
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roundingMethod + '" (at "' + path_roundingMethod + '")');
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
if (obj.scale !== undefined) {
|
|
6216
|
+
const obj_scale = obj.scale;
|
|
6217
|
+
const path_scale = path + '.scale';
|
|
6218
|
+
if (typeof obj_scale !== 'number' || (typeof obj_scale === 'number' && Math.floor(obj_scale) !== obj_scale)) {
|
|
6219
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_scale + '" (at "' + path_scale + '")');
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
})();
|
|
6223
|
+
return v_error === undefined ? null : v_error;
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6189
6226
|
function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
6190
6227
|
const v_error = (() => {
|
|
6191
6228
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6208,7 +6245,7 @@ function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6208
6245
|
if (obj.attributePicklist !== undefined) {
|
|
6209
6246
|
const obj_attributePicklist = obj.attributePicklist;
|
|
6210
6247
|
const path_attributePicklist = path + '.attributePicklist';
|
|
6211
|
-
const referencepath_attributePicklistValidationError = validate$
|
|
6248
|
+
const referencepath_attributePicklistValidationError = validate$f(obj_attributePicklist, path_attributePicklist);
|
|
6212
6249
|
if (referencepath_attributePicklistValidationError !== null) {
|
|
6213
6250
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
|
|
6214
6251
|
message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6362,6 +6399,16 @@ function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6362
6399
|
return new TypeError('Expected "string" but received "' + typeof obj_stepValue + '" (at "' + path_stepValue + '")');
|
|
6363
6400
|
}
|
|
6364
6401
|
}
|
|
6402
|
+
if (obj.unitOfMeasure !== undefined) {
|
|
6403
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
6404
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
6405
|
+
const referencepath_unitOfMeasureValidationError = validate$e(obj_unitOfMeasure, path_unitOfMeasure);
|
|
6406
|
+
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
6407
|
+
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
6408
|
+
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6409
|
+
return new TypeError(message);
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6365
6412
|
if (obj.userValue !== undefined) {
|
|
6366
6413
|
const obj_userValue = obj.userValue;
|
|
6367
6414
|
const path_userValue = path + '.userValue';
|
|
@@ -6974,7 +7021,7 @@ function validate$3(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
6974
7021
|
for (let i = 0; i < obj_additionalFields.length; i++) {
|
|
6975
7022
|
const obj_additionalFields_item = obj_additionalFields[i];
|
|
6976
7023
|
const path_additionalFields_item = path_additionalFields + '[' + i + ']';
|
|
6977
|
-
const referencepath_additionalFields_itemValidationError = validate$
|
|
7024
|
+
const referencepath_additionalFields_itemValidationError = validate$h(obj_additionalFields_item, path_additionalFields_item);
|
|
6978
7025
|
if (referencepath_additionalFields_itemValidationError !== null) {
|
|
6979
7026
|
let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
|
|
6980
7027
|
message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7213,6 +7260,16 @@ function validate$3(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7213
7260
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
7214
7261
|
}
|
|
7215
7262
|
}
|
|
7263
|
+
if (obj.unitOfMeasure !== undefined) {
|
|
7264
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
7265
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
7266
|
+
const referencepath_unitOfMeasureValidationError = validate$e(obj_unitOfMeasure, path_unitOfMeasure);
|
|
7267
|
+
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
7268
|
+
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
7269
|
+
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7270
|
+
return new TypeError(message);
|
|
7271
|
+
}
|
|
7272
|
+
}
|
|
7216
7273
|
})();
|
|
7217
7274
|
return v_error === undefined ? null : v_error;
|
|
7218
7275
|
}
|
|
@@ -7407,7 +7464,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(configure_Co
|
|
|
7407
7464
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7408
7465
|
const config = {};
|
|
7409
7466
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
7410
|
-
const referenceConfiguratorInputRepresentationValidationError = validate$
|
|
7467
|
+
const referenceConfiguratorInputRepresentationValidationError = validate$i(untrustedConfig_configuratorInput);
|
|
7411
7468
|
if (referenceConfiguratorInputRepresentationValidationError === null) {
|
|
7412
7469
|
config.configuratorInput = untrustedConfig_configuratorInput;
|
|
7413
7470
|
}
|