@salesforce/lds-adapters-industries-cpq 1.396.0 → 1.397.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 +215 -176
- package/dist/es/es2018/types/src/generated/adapters/productRecommendations.d.ts +4 -2
- package/dist/es/es2018/types/src/generated/resources/postRevenueProductDiscoveryProductsRecommendations.d.ts +4 -2
- package/dist/es/es2018/types/src/generated/types/ProductRecommendationInputRepresentation.d.ts +10 -7
- package/dist/es/es2018/types/src/generated/types/UserContextInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/VisibilityRulesOutputRepresentation.d.ts +7 -1
- package/package.json +4 -4
- package/sfdc/index.js +190 -151
- package/src/raml/api.raml +31 -5
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$1o(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$1n(obj, path = 'PreviewInputRepresentation') {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
const VERSION$t = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$1n(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$t(existing, incoming) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const VERSION$s = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
-
function validate$
|
|
279
|
+
function validate$1m(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$1l(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$1n(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$s(existing, incoming) {
|
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
function validate$
|
|
382
|
+
function validate$1l(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 + '")');
|
|
@@ -402,7 +402,7 @@ function validate$1k(obj, path = 'FacetValueRepresentation') {
|
|
|
402
402
|
return v_error === undefined ? null : v_error;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
function validate$
|
|
405
|
+
function validate$1k(obj, path = 'SearchProductsFacetRepresentation') {
|
|
406
406
|
const v_error = (() => {
|
|
407
407
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
408
408
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -444,7 +444,7 @@ function validate$1j(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$1l(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$1j(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
458
458
|
|
|
459
459
|
const TTL$j = 1000;
|
|
460
460
|
const VERSION$r = "4b7b85fac2d5af69b24fafa7375618f8";
|
|
461
|
-
function validate$
|
|
461
|
+
function validate$1j(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$1m(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');
|
|
@@ -486,7 +486,7 @@ function validate$1i(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
486
486
|
for (let i = 0; i < obj_facets.length; i++) {
|
|
487
487
|
const obj_facets_item = obj_facets[i];
|
|
488
488
|
const path_facets_item = path_facets + '[' + i + ']';
|
|
489
|
-
const referencepath_facets_itemValidationError = validate$
|
|
489
|
+
const referencepath_facets_itemValidationError = validate$1k(obj_facets_item, path_facets_item);
|
|
490
490
|
if (referencepath_facets_itemValidationError !== null) {
|
|
491
491
|
let message = 'Object doesn\'t match SearchProductsFacetRepresentation (at "' + path_facets_item + '")\n';
|
|
492
492
|
message += referencepath_facets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -565,7 +565,7 @@ function equals$r(existing, incoming) {
|
|
|
565
565
|
}
|
|
566
566
|
const ingest$k = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
567
567
|
if (process.env.NODE_ENV !== 'production') {
|
|
568
|
-
const validateError = validate$
|
|
568
|
+
const validateError = validate$1j(input);
|
|
569
569
|
if (validateError !== null) {
|
|
570
570
|
throw validateError;
|
|
571
571
|
}
|
|
@@ -631,7 +631,7 @@ const createResourceParams$q = /*#__PURE__*/ createResourceParams$r(preview_Conf
|
|
|
631
631
|
function typeCheckConfig$q(untrustedConfig) {
|
|
632
632
|
const config = {};
|
|
633
633
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
634
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
634
|
+
const referencePreviewInputRepresentationValidationError = validate$1o(untrustedConfig_previewInput);
|
|
635
635
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
636
636
|
config.previewInput = untrustedConfig_previewInput;
|
|
637
637
|
}
|
|
@@ -679,7 +679,7 @@ const previewAdapterFactory = (luvio) => {
|
|
|
679
679
|
};
|
|
680
680
|
};
|
|
681
681
|
|
|
682
|
-
function validate$
|
|
682
|
+
function validate$1i(obj, path = 'ProductListInputRepresentation') {
|
|
683
683
|
const v_error = (() => {
|
|
684
684
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
685
685
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -846,7 +846,7 @@ const createResourceParams$p = /*#__PURE__*/ createResourceParams$r(productList_
|
|
|
846
846
|
function typeCheckConfig$p(untrustedConfig) {
|
|
847
847
|
const config = {};
|
|
848
848
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
849
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
849
|
+
const referenceProductListInputRepresentationValidationError = validate$1i(untrustedConfig_requestBody);
|
|
850
850
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
851
851
|
config.requestBody = untrustedConfig_requestBody;
|
|
852
852
|
}
|
|
@@ -894,7 +894,7 @@ const productListAdapterFactory = (luvio) => {
|
|
|
894
894
|
};
|
|
895
895
|
};
|
|
896
896
|
|
|
897
|
-
function validate$
|
|
897
|
+
function validate$1h(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
898
898
|
const v_error = (() => {
|
|
899
899
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
900
900
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -925,7 +925,7 @@ function validate$1g(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
|
925
925
|
return v_error === undefined ? null : v_error;
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
function validate$
|
|
928
|
+
function validate$1g(obj, path = 'FilterInputRepresentation') {
|
|
929
929
|
const v_error = (() => {
|
|
930
930
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
931
931
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -938,7 +938,7 @@ function validate$1f(obj, path = 'FilterInputRepresentation') {
|
|
|
938
938
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
939
939
|
const obj_criteria_item = obj_criteria[i];
|
|
940
940
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
941
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
941
|
+
const referencepath_criteria_itemValidationError = validate$1h(obj_criteria_item, path_criteria_item);
|
|
942
942
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
943
943
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
944
944
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -949,7 +949,7 @@ function validate$1f(obj, path = 'FilterInputRepresentation') {
|
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
-
function validate$
|
|
952
|
+
function validate$1f(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
953
953
|
const v_error = (() => {
|
|
954
954
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
955
955
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -962,7 +962,7 @@ function validate$1e(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
962
962
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
963
963
|
const obj_criteria_item = obj_criteria[i];
|
|
964
964
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
965
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
965
|
+
const referencepath_criteria_itemValidationError = validate$1h(obj_criteria_item, path_criteria_item);
|
|
966
966
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
967
967
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
968
968
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -978,7 +978,7 @@ function validate$1e(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
978
978
|
return v_error === undefined ? null : v_error;
|
|
979
979
|
}
|
|
980
980
|
|
|
981
|
-
function validate$
|
|
981
|
+
function validate$1e(obj, path = 'GuidedSelectionSearchTermInputRepresentation') {
|
|
982
982
|
const v_error = (() => {
|
|
983
983
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
984
984
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1008,7 +1008,7 @@ function validate$1d(obj, path = 'GuidedSelectionSearchTermInputRepresentation')
|
|
|
1008
1008
|
return v_error === undefined ? null : v_error;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
-
function validate$
|
|
1011
|
+
function validate$1d(obj, path = 'GuidedSelectionSearchTermOutputRepresentation') {
|
|
1012
1012
|
const v_error = (() => {
|
|
1013
1013
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1014
1014
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1036,14 +1036,14 @@ function validate$1c(obj, path = 'GuidedSelectionSearchTermOutputRepresentation'
|
|
|
1036
1036
|
|
|
1037
1037
|
const TTL$i = 1000;
|
|
1038
1038
|
const VERSION$q = "59b55511c24a0471c3f3a7aa8c21c5c1";
|
|
1039
|
-
function validate$
|
|
1039
|
+
function validate$1c(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
1040
1040
|
const v_error = (() => {
|
|
1041
1041
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1042
1042
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1043
1043
|
}
|
|
1044
1044
|
const obj_apiStatus = obj.apiStatus;
|
|
1045
1045
|
const path_apiStatus = path + '.apiStatus';
|
|
1046
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1046
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
1047
1047
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1048
1048
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1049
1049
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1105,7 +1105,7 @@ function validate$1b(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1105
1105
|
for (let i = 0; i < obj_searchTerms.length; i++) {
|
|
1106
1106
|
const obj_searchTerms_item = obj_searchTerms[i];
|
|
1107
1107
|
const path_searchTerms_item = path_searchTerms + '[' + i + ']';
|
|
1108
|
-
const referencepath_searchTerms_itemValidationError = validate$
|
|
1108
|
+
const referencepath_searchTerms_itemValidationError = validate$1d(obj_searchTerms_item, path_searchTerms_item);
|
|
1109
1109
|
if (referencepath_searchTerms_itemValidationError !== null) {
|
|
1110
1110
|
let message = 'Object doesn\'t match GuidedSelectionSearchTermOutputRepresentation (at "' + path_searchTerms_item + '")\n';
|
|
1111
1111
|
message += referencepath_searchTerms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1159,7 +1159,7 @@ function equals$q(existing, incoming) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
const ingest$j = function GuidedSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1161
1161
|
if (process.env.NODE_ENV !== 'production') {
|
|
1162
|
-
const validateError = validate$
|
|
1162
|
+
const validateError = validate$1c(input);
|
|
1163
1163
|
if (validateError !== null) {
|
|
1164
1164
|
throw validateError;
|
|
1165
1165
|
}
|
|
@@ -1262,7 +1262,7 @@ function typeCheckConfig$o(untrustedConfig) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1265
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
1265
|
+
const referenceFilterInputRepresentationValidationError = validate$1g(untrustedConfig_filter);
|
|
1266
1266
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1267
1267
|
config.filter = untrustedConfig_filter;
|
|
1268
1268
|
}
|
|
@@ -1271,7 +1271,7 @@ function typeCheckConfig$o(untrustedConfig) {
|
|
|
1271
1271
|
const untrustedConfig_relatedObjectFilters_array = [];
|
|
1272
1272
|
for (let i = 0, arrayLength = untrustedConfig_relatedObjectFilters.length; i < arrayLength; i++) {
|
|
1273
1273
|
const untrustedConfig_relatedObjectFilters_item = untrustedConfig_relatedObjectFilters[i];
|
|
1274
|
-
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$
|
|
1274
|
+
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$1f(untrustedConfig_relatedObjectFilters_item);
|
|
1275
1275
|
if (referenceRelatedObjectFilterInputRepresentationValidationError === null) {
|
|
1276
1276
|
untrustedConfig_relatedObjectFilters_array.push(untrustedConfig_relatedObjectFilters_item);
|
|
1277
1277
|
}
|
|
@@ -1283,7 +1283,7 @@ function typeCheckConfig$o(untrustedConfig) {
|
|
|
1283
1283
|
const untrustedConfig_searchTerms_array = [];
|
|
1284
1284
|
for (let i = 0, arrayLength = untrustedConfig_searchTerms.length; i < arrayLength; i++) {
|
|
1285
1285
|
const untrustedConfig_searchTerms_item = untrustedConfig_searchTerms[i];
|
|
1286
|
-
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$
|
|
1286
|
+
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$1e(untrustedConfig_searchTerms_item);
|
|
1287
1287
|
if (referenceGuidedSelectionSearchTermInputRepresentationValidationError === null) {
|
|
1288
1288
|
untrustedConfig_searchTerms_array.push(untrustedConfig_searchTerms_item);
|
|
1289
1289
|
}
|
|
@@ -1341,7 +1341,7 @@ const guidedSelectionProductListAdapterFactory = (luvio) => {
|
|
|
1341
1341
|
};
|
|
1342
1342
|
};
|
|
1343
1343
|
|
|
1344
|
-
function validate$
|
|
1344
|
+
function validate$1b(obj, path = 'SearchProductsInputRepresentation') {
|
|
1345
1345
|
const v_error = (() => {
|
|
1346
1346
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1347
1347
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1515,7 +1515,7 @@ const createResourceParams$n = /*#__PURE__*/ createResourceParams$r(searchProduc
|
|
|
1515
1515
|
function typeCheckConfig$n(untrustedConfig) {
|
|
1516
1516
|
const config = {};
|
|
1517
1517
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1518
|
-
const referenceSearchProductsInputRepresentationValidationError = validate$
|
|
1518
|
+
const referenceSearchProductsInputRepresentationValidationError = validate$1b(untrustedConfig_requestBody);
|
|
1519
1519
|
if (referenceSearchProductsInputRepresentationValidationError === null) {
|
|
1520
1520
|
config.requestBody = untrustedConfig_requestBody;
|
|
1521
1521
|
}
|
|
@@ -1563,7 +1563,7 @@ const searchProductListAdapterFactory = (luvio) => {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
};
|
|
1565
1565
|
|
|
1566
|
-
function validate$
|
|
1566
|
+
function validate$1a(obj, path = 'SmartSelectionSearchInputRepresentation') {
|
|
1567
1567
|
const v_error = (() => {
|
|
1568
1568
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1569
1569
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1628,14 +1628,14 @@ function validate$19(obj, path = 'SmartSelectionSearchInputRepresentation') {
|
|
|
1628
1628
|
|
|
1629
1629
|
const TTL$h = 1000;
|
|
1630
1630
|
const VERSION$p = "e87e2b76b6416343fc10adaad3180935";
|
|
1631
|
-
function validate$
|
|
1631
|
+
function validate$19(obj, path = 'SmartSelectionOutputRepresentation') {
|
|
1632
1632
|
const v_error = (() => {
|
|
1633
1633
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1634
1634
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1635
1635
|
}
|
|
1636
1636
|
const obj_apiStatus = obj.apiStatus;
|
|
1637
1637
|
const path_apiStatus = path + '.apiStatus';
|
|
1638
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1638
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
1639
1639
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1640
1640
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1641
1641
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1699,7 +1699,7 @@ function equals$p(existing, incoming) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
const ingest$i = function SmartSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1701
1701
|
if (process.env.NODE_ENV !== 'production') {
|
|
1702
|
-
const validateError = validate$
|
|
1702
|
+
const validateError = validate$19(input);
|
|
1703
1703
|
if (validateError !== null) {
|
|
1704
1704
|
throw validateError;
|
|
1705
1705
|
}
|
|
@@ -1769,7 +1769,7 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
1769
1769
|
const config = {};
|
|
1770
1770
|
typeCheckConfig$r(untrustedConfig, config, smartProductSelection_ConfigPropertyMetadata);
|
|
1771
1771
|
const untrustedConfig_searchParams = untrustedConfig.searchParams;
|
|
1772
|
-
const referenceSmartSelectionSearchInputRepresentationValidationError = validate$
|
|
1772
|
+
const referenceSmartSelectionSearchInputRepresentationValidationError = validate$1a(untrustedConfig_searchParams);
|
|
1773
1773
|
if (referenceSmartSelectionSearchInputRepresentationValidationError === null) {
|
|
1774
1774
|
config.searchParams = untrustedConfig_searchParams;
|
|
1775
1775
|
}
|
|
@@ -1817,7 +1817,7 @@ const smartProductSelectionAdapterFactory = (luvio) => {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
};
|
|
1819
1819
|
|
|
1820
|
-
function validate$
|
|
1820
|
+
function validate$18(obj, path = 'ProductDataInput') {
|
|
1821
1821
|
const v_error = (() => {
|
|
1822
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1823
1823
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1840,14 +1840,14 @@ function validate$17(obj, path = 'ProductDataInput') {
|
|
|
1840
1840
|
|
|
1841
1841
|
const TTL$g = 1000;
|
|
1842
1842
|
const VERSION$o = "7d789beb75307985bad3ddf01d82b242";
|
|
1843
|
-
function validate$
|
|
1843
|
+
function validate$17(obj, path = 'CpqBaseBulkDetailsOutput') {
|
|
1844
1844
|
const v_error = (() => {
|
|
1845
1845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1846
1846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1847
1847
|
}
|
|
1848
1848
|
const obj_apiStatus = obj.apiStatus;
|
|
1849
1849
|
const path_apiStatus = path + '.apiStatus';
|
|
1850
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1850
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
1851
1851
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1852
1852
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1853
1853
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1918,7 +1918,7 @@ function equals$o(existing, incoming) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
const ingest$h = function CpqBaseBulkDetailsOutputIngest(input, path, luvio, store, timestamp) {
|
|
1920
1920
|
if (process.env.NODE_ENV !== 'production') {
|
|
1921
|
-
const validateError = validate$
|
|
1921
|
+
const validateError = validate$17(input);
|
|
1922
1922
|
if (validateError !== null) {
|
|
1923
1923
|
throw validateError;
|
|
1924
1924
|
}
|
|
@@ -2008,7 +2008,7 @@ function typeCheckConfig$l(untrustedConfig) {
|
|
|
2008
2008
|
const untrustedConfig_productData_array = [];
|
|
2009
2009
|
for (let i = 0, arrayLength = untrustedConfig_productData.length; i < arrayLength; i++) {
|
|
2010
2010
|
const untrustedConfig_productData_item = untrustedConfig_productData[i];
|
|
2011
|
-
const referenceProductDataInputValidationError = validate$
|
|
2011
|
+
const referenceProductDataInputValidationError = validate$18(untrustedConfig_productData_item);
|
|
2012
2012
|
if (referenceProductDataInputValidationError === null) {
|
|
2013
2013
|
untrustedConfig_productData_array.push(untrustedConfig_productData_item);
|
|
2014
2014
|
}
|
|
@@ -2066,7 +2066,7 @@ const bulkProductDetailsAdapterFactory = (luvio) => {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
};
|
|
2068
2068
|
|
|
2069
|
-
function validate$
|
|
2069
|
+
function validate$16(obj, path = 'ProductDetailsInputRepresentation') {
|
|
2070
2070
|
const v_error = (() => {
|
|
2071
2071
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2072
2072
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2117,14 +2117,14 @@ function validate$15(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
2117
2117
|
|
|
2118
2118
|
const TTL$f = 1000;
|
|
2119
2119
|
const VERSION$n = "2f20f99218d11f5ad756aff76b7a815e";
|
|
2120
|
-
function validate$
|
|
2120
|
+
function validate$15(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
2121
2121
|
const v_error = (() => {
|
|
2122
2122
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2123
2123
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2124
2124
|
}
|
|
2125
2125
|
const obj_apiStatus = obj.apiStatus;
|
|
2126
2126
|
const path_apiStatus = path + '.apiStatus';
|
|
2127
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2127
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
2128
2128
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2129
2129
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2130
2130
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2174,7 +2174,7 @@ function equals$n(existing, incoming) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
const ingest$g = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2176
2176
|
if (process.env.NODE_ENV !== 'production') {
|
|
2177
|
-
const validateError = validate$
|
|
2177
|
+
const validateError = validate$15(input);
|
|
2178
2178
|
if (validateError !== null) {
|
|
2179
2179
|
throw validateError;
|
|
2180
2180
|
}
|
|
@@ -2242,7 +2242,7 @@ function typeCheckConfig$k(untrustedConfig) {
|
|
|
2242
2242
|
const config = {};
|
|
2243
2243
|
typeCheckConfig$r(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
2244
2244
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
2245
|
-
const referenceProductDetailsInputRepresentationValidationError = validate$
|
|
2245
|
+
const referenceProductDetailsInputRepresentationValidationError = validate$16(untrustedConfig_requestBody);
|
|
2246
2246
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
2247
2247
|
config.requestBody = untrustedConfig_requestBody;
|
|
2248
2248
|
}
|
|
@@ -2351,7 +2351,7 @@ function typeCheckConfig$j(untrustedConfig) {
|
|
|
2351
2351
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2352
2352
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2353
2353
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2354
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2354
|
+
const referenceFilterInputRepresentationValidationError = validate$1g(untrustedConfig_filter);
|
|
2355
2355
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2356
2356
|
config.filter = untrustedConfig_filter;
|
|
2357
2357
|
}
|
|
@@ -2474,7 +2474,7 @@ function typeCheckConfig$i(untrustedConfig) {
|
|
|
2474
2474
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2475
2475
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2476
2476
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2477
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2477
|
+
const referenceFilterInputRepresentationValidationError = validate$1g(untrustedConfig_filter);
|
|
2478
2478
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2479
2479
|
config.filter = untrustedConfig_filter;
|
|
2480
2480
|
}
|
|
@@ -2537,7 +2537,7 @@ const categoryDetailsAdapterFactory = (luvio) => {
|
|
|
2537
2537
|
};
|
|
2538
2538
|
};
|
|
2539
2539
|
|
|
2540
|
-
function validate$
|
|
2540
|
+
function validate$14(obj, path = 'CreateCartInputRepresentation') {
|
|
2541
2541
|
const v_error = (() => {
|
|
2542
2542
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2543
2543
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2608,14 +2608,14 @@ function validate$13(obj, path = 'CreateCartInputRepresentation') {
|
|
|
2608
2608
|
|
|
2609
2609
|
const TTL$e = 1000;
|
|
2610
2610
|
const VERSION$m = "1f730145ab6b9f6b4d070b5eade57b4c";
|
|
2611
|
-
function validate$
|
|
2611
|
+
function validate$13(obj, path = 'CreateCartOutputRepresentation') {
|
|
2612
2612
|
const v_error = (() => {
|
|
2613
2613
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2614
2614
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2615
2615
|
}
|
|
2616
2616
|
const obj_apiStatus = obj.apiStatus;
|
|
2617
2617
|
const path_apiStatus = path + '.apiStatus';
|
|
2618
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2618
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
2619
2619
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2620
2620
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2621
2621
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2660,7 +2660,7 @@ function equals$m(existing, incoming) {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
const ingest$f = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2662
2662
|
if (process.env.NODE_ENV !== 'production') {
|
|
2663
|
-
const validateError = validate$
|
|
2663
|
+
const validateError = validate$13(input);
|
|
2664
2664
|
if (validateError !== null) {
|
|
2665
2665
|
throw validateError;
|
|
2666
2666
|
}
|
|
@@ -2726,7 +2726,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$r(createCart_C
|
|
|
2726
2726
|
function typeCheckConfig$h(untrustedConfig) {
|
|
2727
2727
|
const config = {};
|
|
2728
2728
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
2729
|
-
const referenceCreateCartInputRepresentationValidationError = validate$
|
|
2729
|
+
const referenceCreateCartInputRepresentationValidationError = validate$14(untrustedConfig_createCartRequestPayload);
|
|
2730
2730
|
if (referenceCreateCartInputRepresentationValidationError === null) {
|
|
2731
2731
|
config.createCartRequestPayload = untrustedConfig_createCartRequestPayload;
|
|
2732
2732
|
}
|
|
@@ -2775,7 +2775,7 @@ const createCartAdapterFactory = (luvio) => {
|
|
|
2775
2775
|
};
|
|
2776
2776
|
|
|
2777
2777
|
const VERSION$l = "c49b7c37c117b93f62b9696af8a68cdc";
|
|
2778
|
-
function validate$
|
|
2778
|
+
function validate$12(obj, path = 'AttributePickListValueOutputRepresentation') {
|
|
2779
2779
|
const v_error = (() => {
|
|
2780
2780
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2781
2781
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3047,7 +3047,7 @@ function equals$l(existing, incoming) {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
3049
|
const VERSION$k = "cef4f713a2e486855d50324a822053ff";
|
|
3050
|
-
function validate$
|
|
3050
|
+
function validate$11(obj, path = 'AttributePickListOutputRepresentation') {
|
|
3051
3051
|
const v_error = (() => {
|
|
3052
3052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3053
3053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3103,7 +3103,7 @@ function validate$10(obj, path = 'AttributePickListOutputRepresentation') {
|
|
|
3103
3103
|
for (let i = 0; i < obj_values.length; i++) {
|
|
3104
3104
|
const obj_values_item = obj_values[i];
|
|
3105
3105
|
const path_values_item = path_values + '[' + i + ']';
|
|
3106
|
-
const referencepath_values_itemValidationError = validate$
|
|
3106
|
+
const referencepath_values_itemValidationError = validate$12(obj_values_item, path_values_item);
|
|
3107
3107
|
if (referencepath_values_itemValidationError !== null) {
|
|
3108
3108
|
let message = 'Object doesn\'t match AttributePickListValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
3109
3109
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3262,7 +3262,7 @@ function equals$k(existing, incoming) {
|
|
|
3262
3262
|
}
|
|
3263
3263
|
|
|
3264
3264
|
const VERSION$j = "a721b7658e0e47f6255b519635c8e0d4";
|
|
3265
|
-
function validate
|
|
3265
|
+
function validate$10(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
3266
3266
|
const v_error = (() => {
|
|
3267
3267
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3268
3268
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3291,7 +3291,7 @@ function validate$$(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
|
3291
3291
|
if (obj.attributePickList !== undefined) {
|
|
3292
3292
|
const obj_attributePickList = obj.attributePickList;
|
|
3293
3293
|
const path_attributePickList = path + '.attributePickList';
|
|
3294
|
-
const referencepath_attributePickListValidationError = validate$
|
|
3294
|
+
const referencepath_attributePickListValidationError = validate$11(obj_attributePickList, path_attributePickList);
|
|
3295
3295
|
if (referencepath_attributePickListValidationError !== null) {
|
|
3296
3296
|
let message = 'Object doesn\'t match AttributePickListOutputRepresentation (at "' + path_attributePickList + '")\n';
|
|
3297
3297
|
message += referencepath_attributePickListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4006,7 +4006,7 @@ function equals$j(existing, incoming) {
|
|
|
4006
4006
|
}
|
|
4007
4007
|
|
|
4008
4008
|
const VERSION$i = "63ca2614b6879bfb4df068438d7e78ec";
|
|
4009
|
-
function validate
|
|
4009
|
+
function validate$$(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
4010
4010
|
const v_error = (() => {
|
|
4011
4011
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4012
4012
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4048,7 +4048,7 @@ function validate$_(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
|
4048
4048
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4049
4049
|
const obj_records_item = obj_records[i];
|
|
4050
4050
|
const path_records_item = path_records + '[' + i + ']';
|
|
4051
|
-
const referencepath_records_itemValidationError = validate
|
|
4051
|
+
const referencepath_records_itemValidationError = validate$10(obj_records_item, path_records_item);
|
|
4052
4052
|
if (referencepath_records_itemValidationError !== null) {
|
|
4053
4053
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
|
|
4054
4054
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4246,7 +4246,7 @@ function equals$i(existing, incoming) {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
|
|
4248
4248
|
const VERSION$h = "a59ef129f333de8bbfe140f39144b415";
|
|
4249
|
-
function validate$
|
|
4249
|
+
function validate$_(obj, path = 'CartItemOutputRepresentation') {
|
|
4250
4250
|
const v_error = (() => {
|
|
4251
4251
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4252
4252
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4260,7 +4260,7 @@ function validate$Z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
4260
4260
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
4261
4261
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
4262
4262
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
4263
|
-
const referencepath_attributeCategories_itemValidationError = validate
|
|
4263
|
+
const referencepath_attributeCategories_itemValidationError = validate$$(obj_attributeCategories_item, path_attributeCategories_item);
|
|
4264
4264
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
4265
4265
|
let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
4266
4266
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4277,7 +4277,7 @@ function validate$Z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
4277
4277
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
4278
4278
|
const obj_attributes_item = obj_attributes[i];
|
|
4279
4279
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4280
|
-
const referencepath_attributes_itemValidationError = validate
|
|
4280
|
+
const referencepath_attributes_itemValidationError = validate$10(obj_attributes_item, path_attributes_item);
|
|
4281
4281
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4282
4282
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4283
4283
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4567,7 +4567,7 @@ function equals$h(existing, incoming) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
|
|
4569
4569
|
const VERSION$g = "dbbe0e43dcf8f1d5334798bb12acca37";
|
|
4570
|
-
function validate$
|
|
4570
|
+
function validate$Z(obj, path = 'CartItemsOutputRepresentation') {
|
|
4571
4571
|
const v_error = (() => {
|
|
4572
4572
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4573
4573
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4581,7 +4581,7 @@ function validate$Y(obj, path = 'CartItemsOutputRepresentation') {
|
|
|
4581
4581
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4582
4582
|
const obj_records_item = obj_records[i];
|
|
4583
4583
|
const path_records_item = path_records + '[' + i + ']';
|
|
4584
|
-
const referencepath_records_itemValidationError = validate$
|
|
4584
|
+
const referencepath_records_itemValidationError = validate$_(obj_records_item, path_records_item);
|
|
4585
4585
|
if (referencepath_records_itemValidationError !== null) {
|
|
4586
4586
|
let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
|
|
4587
4587
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4657,7 +4657,7 @@ function equals$g(existing, incoming) {
|
|
|
4657
4657
|
}
|
|
4658
4658
|
|
|
4659
4659
|
const VERSION$f = "ce1e52694d8508b2f5239ba28287dc1e";
|
|
4660
|
-
function validate$
|
|
4660
|
+
function validate$Y(obj, path = 'PricingTotalOutputRepresentation') {
|
|
4661
4661
|
const v_error = (() => {
|
|
4662
4662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4663
4663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4775,14 +4775,14 @@ function equals$f(existing, incoming) {
|
|
|
4775
4775
|
}
|
|
4776
4776
|
|
|
4777
4777
|
const VERSION$e = "db83704358e5d7a3f3f3622cdd0a5114";
|
|
4778
|
-
function validate$
|
|
4778
|
+
function validate$X(obj, path = 'GetCartOutputRepresentation') {
|
|
4779
4779
|
const v_error = (() => {
|
|
4780
4780
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4781
4781
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4782
4782
|
}
|
|
4783
4783
|
const obj_apiStatus = obj.apiStatus;
|
|
4784
4784
|
const path_apiStatus = path + '.apiStatus';
|
|
4785
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4785
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
4786
4786
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4787
4787
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4788
4788
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4798,7 +4798,7 @@ function validate$W(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4798
4798
|
if (obj.cartItems !== undefined) {
|
|
4799
4799
|
const obj_cartItems = obj.cartItems;
|
|
4800
4800
|
const path_cartItems = path + '.cartItems';
|
|
4801
|
-
const referencepath_cartItemsValidationError = validate$
|
|
4801
|
+
const referencepath_cartItemsValidationError = validate$Z(obj_cartItems, path_cartItems);
|
|
4802
4802
|
if (referencepath_cartItemsValidationError !== null) {
|
|
4803
4803
|
let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
|
|
4804
4804
|
message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4814,7 +4814,7 @@ function validate$W(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4814
4814
|
for (let i = 0; i < obj_totals.length; i++) {
|
|
4815
4815
|
const obj_totals_item = obj_totals[i];
|
|
4816
4816
|
const path_totals_item = path_totals + '[' + i + ']';
|
|
4817
|
-
const referencepath_totals_itemValidationError = validate$
|
|
4817
|
+
const referencepath_totals_itemValidationError = validate$Y(obj_totals_item, path_totals_item);
|
|
4818
4818
|
if (referencepath_totals_itemValidationError !== null) {
|
|
4819
4819
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
|
|
4820
4820
|
message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4918,7 +4918,7 @@ function equals$e(existing, incoming) {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
const ingest$e = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4920
4920
|
if (process.env.NODE_ENV !== 'production') {
|
|
4921
|
-
const validateError = validate$
|
|
4921
|
+
const validateError = validate$X(input);
|
|
4922
4922
|
if (validateError !== null) {
|
|
4923
4923
|
throw validateError;
|
|
4924
4924
|
}
|
|
@@ -5070,7 +5070,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
|
|
|
5070
5070
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
5071
5071
|
};
|
|
5072
5072
|
|
|
5073
|
-
function validate$
|
|
5073
|
+
function validate$W(obj, path = 'UpdateCartInputRepresentation') {
|
|
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 + '")');
|
|
@@ -5105,7 +5105,7 @@ function validate$V(obj, path = 'UpdateCartInputRepresentation') {
|
|
|
5105
5105
|
return v_error === undefined ? null : v_error;
|
|
5106
5106
|
}
|
|
5107
5107
|
|
|
5108
|
-
function validate$
|
|
5108
|
+
function validate$V(obj, path = 'ValidationResultOutputRepresentation') {
|
|
5109
5109
|
const v_error = (() => {
|
|
5110
5110
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5111
5111
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5149,7 +5149,7 @@ function validate$U(obj, path = 'ValidationResultOutputRepresentation') {
|
|
|
5149
5149
|
return v_error === undefined ? null : v_error;
|
|
5150
5150
|
}
|
|
5151
5151
|
|
|
5152
|
-
function validate$
|
|
5152
|
+
function validate$U(obj, path = 'ValidateCartOutputRepresentation') {
|
|
5153
5153
|
const v_error = (() => {
|
|
5154
5154
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5155
5155
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5163,7 +5163,7 @@ function validate$T(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
5163
5163
|
for (let i = 0; i < obj_attributeErrors.length; i++) {
|
|
5164
5164
|
const obj_attributeErrors_item = obj_attributeErrors[i];
|
|
5165
5165
|
const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
|
|
5166
|
-
const referencepath_attributeErrors_itemValidationError = validate$
|
|
5166
|
+
const referencepath_attributeErrors_itemValidationError = validate$V(obj_attributeErrors_item, path_attributeErrors_item);
|
|
5167
5167
|
if (referencepath_attributeErrors_itemValidationError !== null) {
|
|
5168
5168
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
|
|
5169
5169
|
message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5180,7 +5180,7 @@ function validate$T(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
5180
5180
|
for (let i = 0; i < obj_breErrors.length; i++) {
|
|
5181
5181
|
const obj_breErrors_item = obj_breErrors[i];
|
|
5182
5182
|
const path_breErrors_item = path_breErrors + '[' + i + ']';
|
|
5183
|
-
const referencepath_breErrors_itemValidationError = validate$
|
|
5183
|
+
const referencepath_breErrors_itemValidationError = validate$V(obj_breErrors_item, path_breErrors_item);
|
|
5184
5184
|
if (referencepath_breErrors_itemValidationError !== null) {
|
|
5185
5185
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
|
|
5186
5186
|
message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5197,7 +5197,7 @@ function validate$T(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
5197
5197
|
for (let i = 0; i < obj_cardinalityErrors.length; i++) {
|
|
5198
5198
|
const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
|
|
5199
5199
|
const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
|
|
5200
|
-
const referencepath_cardinalityErrors_itemValidationError = validate$
|
|
5200
|
+
const referencepath_cardinalityErrors_itemValidationError = validate$V(obj_cardinalityErrors_item, path_cardinalityErrors_item);
|
|
5201
5201
|
if (referencepath_cardinalityErrors_itemValidationError !== null) {
|
|
5202
5202
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
|
|
5203
5203
|
message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5218,14 +5218,14 @@ function validate$T(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
5218
5218
|
|
|
5219
5219
|
const TTL$d = 1000;
|
|
5220
5220
|
const VERSION$d = "b0d6081a9f20773285c8aeb2e715ead3";
|
|
5221
|
-
function validate$
|
|
5221
|
+
function validate$T(obj, path = 'UpdateCartOutputRepresentation') {
|
|
5222
5222
|
const v_error = (() => {
|
|
5223
5223
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5224
5224
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5225
5225
|
}
|
|
5226
5226
|
const obj_apiStatus = obj.apiStatus;
|
|
5227
5227
|
const path_apiStatus = path + '.apiStatus';
|
|
5228
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5228
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
5229
5229
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5230
5230
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5231
5231
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5233,7 +5233,7 @@ function validate$S(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
5233
5233
|
}
|
|
5234
5234
|
const obj_validationResults = obj.validationResults;
|
|
5235
5235
|
const path_validationResults = path + '.validationResults';
|
|
5236
|
-
const referencepath_validationResultsValidationError = validate$
|
|
5236
|
+
const referencepath_validationResultsValidationError = validate$U(obj_validationResults, path_validationResults);
|
|
5237
5237
|
if (referencepath_validationResultsValidationError !== null) {
|
|
5238
5238
|
let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
|
|
5239
5239
|
message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5271,7 +5271,7 @@ function equals$d(existing, incoming) {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
const ingest$d = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5273
5273
|
if (process.env.NODE_ENV !== 'production') {
|
|
5274
|
-
const validateError = validate$
|
|
5274
|
+
const validateError = validate$T(input);
|
|
5275
5275
|
if (validateError !== null) {
|
|
5276
5276
|
throw validateError;
|
|
5277
5277
|
}
|
|
@@ -5339,7 +5339,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
5339
5339
|
const config = {};
|
|
5340
5340
|
typeCheckConfig$r(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
5341
5341
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5342
|
-
const referenceUpdateCartInputRepresentationValidationError = validate$
|
|
5342
|
+
const referenceUpdateCartInputRepresentationValidationError = validate$W(untrustedConfig_requestBody);
|
|
5343
5343
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
5344
5344
|
config.requestBody = untrustedConfig_requestBody;
|
|
5345
5345
|
}
|
|
@@ -5387,7 +5387,7 @@ const updateCartAdapterFactory = (luvio) => {
|
|
|
5387
5387
|
};
|
|
5388
5388
|
};
|
|
5389
5389
|
|
|
5390
|
-
function validate$
|
|
5390
|
+
function validate$S(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
5391
5391
|
const v_error = (() => {
|
|
5392
5392
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5393
5393
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5426,14 +5426,14 @@ function validate$R(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
|
5426
5426
|
|
|
5427
5427
|
const TTL$c = 1000;
|
|
5428
5428
|
const VERSION$c = "7f205594e7cf298b4bee71200afab626";
|
|
5429
|
-
function validate$
|
|
5429
|
+
function validate$R(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
5430
5430
|
const v_error = (() => {
|
|
5431
5431
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5432
5432
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5433
5433
|
}
|
|
5434
5434
|
const obj_apiStatus = obj.apiStatus;
|
|
5435
5435
|
const path_apiStatus = path + '.apiStatus';
|
|
5436
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5436
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
5437
5437
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5438
5438
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5439
5439
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5478,7 +5478,7 @@ function equals$c(existing, incoming) {
|
|
|
5478
5478
|
}
|
|
5479
5479
|
const ingest$c = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5480
5480
|
if (process.env.NODE_ENV !== 'production') {
|
|
5481
|
-
const validateError = validate$
|
|
5481
|
+
const validateError = validate$R(input);
|
|
5482
5482
|
if (validateError !== null) {
|
|
5483
5483
|
throw validateError;
|
|
5484
5484
|
}
|
|
@@ -5546,7 +5546,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
5546
5546
|
const config = {};
|
|
5547
5547
|
typeCheckConfig$r(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
5548
5548
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5549
|
-
const referenceUpdateCartItemsInputRepresentationValidationError = validate$
|
|
5549
|
+
const referenceUpdateCartItemsInputRepresentationValidationError = validate$S(untrustedConfig_requestBody);
|
|
5550
5550
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
5551
5551
|
config.requestBody = untrustedConfig_requestBody;
|
|
5552
5552
|
}
|
|
@@ -5594,7 +5594,7 @@ const updateCartItemsAdapterFactory = (luvio) => {
|
|
|
5594
5594
|
};
|
|
5595
5595
|
};
|
|
5596
5596
|
|
|
5597
|
-
function validate$
|
|
5597
|
+
function validate$Q(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
5598
5598
|
const v_error = (() => {
|
|
5599
5599
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5600
5600
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5633,14 +5633,14 @@ function validate$P(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
|
5633
5633
|
|
|
5634
5634
|
const TTL$b = 1000;
|
|
5635
5635
|
const VERSION$b = "34153309b079451754e6d3fbf85bb8bd";
|
|
5636
|
-
function validate$
|
|
5636
|
+
function validate$P(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
5637
5637
|
const v_error = (() => {
|
|
5638
5638
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5639
5639
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5640
5640
|
}
|
|
5641
5641
|
const obj_apiStatus = obj.apiStatus;
|
|
5642
5642
|
const path_apiStatus = path + '.apiStatus';
|
|
5643
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5643
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
5644
5644
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5645
5645
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5646
5646
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5685,7 +5685,7 @@ function equals$b(existing, incoming) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
const ingest$b = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5687
5687
|
if (process.env.NODE_ENV !== 'production') {
|
|
5688
|
-
const validateError = validate$
|
|
5688
|
+
const validateError = validate$P(input);
|
|
5689
5689
|
if (validateError !== null) {
|
|
5690
5690
|
throw validateError;
|
|
5691
5691
|
}
|
|
@@ -5753,7 +5753,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
5753
5753
|
const config = {};
|
|
5754
5754
|
typeCheckConfig$r(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
5755
5755
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5756
|
-
const referenceCreateCartItemsInputRepresentationValidationError = validate$
|
|
5756
|
+
const referenceCreateCartItemsInputRepresentationValidationError = validate$Q(untrustedConfig_requestBody);
|
|
5757
5757
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
5758
5758
|
config.requestBody = untrustedConfig_requestBody;
|
|
5759
5759
|
}
|
|
@@ -5801,7 +5801,7 @@ const createCartItemsAdapterFactory = (luvio) => {
|
|
|
5801
5801
|
};
|
|
5802
5802
|
};
|
|
5803
5803
|
|
|
5804
|
-
function validate$
|
|
5804
|
+
function validate$O(obj, path = 'PriceCartInputRepresentation') {
|
|
5805
5805
|
const v_error = (() => {
|
|
5806
5806
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5807
5807
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5840,14 +5840,14 @@ function validate$N(obj, path = 'PriceCartInputRepresentation') {
|
|
|
5840
5840
|
|
|
5841
5841
|
const TTL$a = 1000;
|
|
5842
5842
|
const VERSION$a = "b1e28ba15f534459065f2870a9dc703d";
|
|
5843
|
-
function validate$
|
|
5843
|
+
function validate$N(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
5844
5844
|
const v_error = (() => {
|
|
5845
5845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5846
5846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5847
5847
|
}
|
|
5848
5848
|
const obj_apiStatus = obj.apiStatus;
|
|
5849
5849
|
const path_apiStatus = path + '.apiStatus';
|
|
5850
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5850
|
+
const referencepath_apiStatusValidationError = validate$1m(obj_apiStatus, path_apiStatus);
|
|
5851
5851
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5852
5852
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5853
5853
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5869,7 +5869,7 @@ function validate$M(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
5869
5869
|
for (let i = 0; i < obj_cartPricingTotals.length; i++) {
|
|
5870
5870
|
const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
|
|
5871
5871
|
const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
|
|
5872
|
-
const referencepath_cartPricingTotals_itemValidationError = validate$
|
|
5872
|
+
const referencepath_cartPricingTotals_itemValidationError = validate$Y(obj_cartPricingTotals_item, path_cartPricingTotals_item);
|
|
5873
5873
|
if (referencepath_cartPricingTotals_itemValidationError !== null) {
|
|
5874
5874
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
|
|
5875
5875
|
message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5909,7 +5909,7 @@ function equals$a(existing, incoming) {
|
|
|
5909
5909
|
}
|
|
5910
5910
|
const ingest$a = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5911
5911
|
if (process.env.NODE_ENV !== 'production') {
|
|
5912
|
-
const validateError = validate$
|
|
5912
|
+
const validateError = validate$N(input);
|
|
5913
5913
|
if (validateError !== null) {
|
|
5914
5914
|
throw validateError;
|
|
5915
5915
|
}
|
|
@@ -5977,7 +5977,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
5977
5977
|
const config = {};
|
|
5978
5978
|
typeCheckConfig$r(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
5979
5979
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5980
|
-
const referencePriceCartInputRepresentationValidationError = validate$
|
|
5980
|
+
const referencePriceCartInputRepresentationValidationError = validate$O(untrustedConfig_requestBody);
|
|
5981
5981
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
5982
5982
|
config.requestBody = untrustedConfig_requestBody;
|
|
5983
5983
|
}
|
|
@@ -6025,7 +6025,7 @@ const priceCartAdapterFactory = (luvio) => {
|
|
|
6025
6025
|
};
|
|
6026
6026
|
};
|
|
6027
6027
|
|
|
6028
|
-
function validate$
|
|
6028
|
+
function validate$M(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
6029
6029
|
const v_error = (() => {
|
|
6030
6030
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6031
6031
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6053,7 +6053,7 @@ function validate$L(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
|
6053
6053
|
return v_error === undefined ? null : v_error;
|
|
6054
6054
|
}
|
|
6055
6055
|
|
|
6056
|
-
function validate$
|
|
6056
|
+
function validate$L(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
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 + '")');
|
|
@@ -6118,7 +6118,7 @@ function validate$K(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
|
6118
6118
|
return v_error === undefined ? null : v_error;
|
|
6119
6119
|
}
|
|
6120
6120
|
|
|
6121
|
-
function validate$
|
|
6121
|
+
function validate$K(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
6122
6122
|
const v_error = (() => {
|
|
6123
6123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6124
6124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6141,7 +6141,7 @@ function validate$J(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
|
6141
6141
|
return v_error === undefined ? null : v_error;
|
|
6142
6142
|
}
|
|
6143
6143
|
|
|
6144
|
-
function validate$
|
|
6144
|
+
function validate$J(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
6145
6145
|
const v_error = (() => {
|
|
6146
6146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6147
6147
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6169,7 +6169,7 @@ function validate$I(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
|
6169
6169
|
return v_error === undefined ? null : v_error;
|
|
6170
6170
|
}
|
|
6171
6171
|
|
|
6172
|
-
function validate$
|
|
6172
|
+
function validate$I(obj, path = 'ConfiguratorInputRepresentation') {
|
|
6173
6173
|
const v_error = (() => {
|
|
6174
6174
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6175
6175
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6183,7 +6183,7 @@ function validate$H(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6183
6183
|
for (let i = 0; i < obj_addedNodes.length; i++) {
|
|
6184
6184
|
const obj_addedNodes_item = obj_addedNodes[i];
|
|
6185
6185
|
const path_addedNodes_item = path_addedNodes + '[' + i + ']';
|
|
6186
|
-
const referencepath_addedNodes_itemValidationError = validate$
|
|
6186
|
+
const referencepath_addedNodes_itemValidationError = validate$M(obj_addedNodes_item, path_addedNodes_item);
|
|
6187
6187
|
if (referencepath_addedNodes_itemValidationError !== null) {
|
|
6188
6188
|
let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
|
|
6189
6189
|
message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6194,7 +6194,7 @@ function validate$H(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6194
6194
|
if (obj.configuratorOptions !== undefined) {
|
|
6195
6195
|
const obj_configuratorOptions = obj.configuratorOptions;
|
|
6196
6196
|
const path_configuratorOptions = path + '.configuratorOptions';
|
|
6197
|
-
const referencepath_configuratorOptionsValidationError = validate$
|
|
6197
|
+
const referencepath_configuratorOptionsValidationError = validate$L(obj_configuratorOptions, path_configuratorOptions);
|
|
6198
6198
|
if (referencepath_configuratorOptionsValidationError !== null) {
|
|
6199
6199
|
let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
|
|
6200
6200
|
message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6259,7 +6259,7 @@ function validate$H(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6259
6259
|
for (let i = 0; i < obj_deletedNodes.length; i++) {
|
|
6260
6260
|
const obj_deletedNodes_item = obj_deletedNodes[i];
|
|
6261
6261
|
const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
|
|
6262
|
-
const referencepath_deletedNodes_itemValidationError = validate$
|
|
6262
|
+
const referencepath_deletedNodes_itemValidationError = validate$K(obj_deletedNodes_item, path_deletedNodes_item);
|
|
6263
6263
|
if (referencepath_deletedNodes_itemValidationError !== null) {
|
|
6264
6264
|
let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
|
|
6265
6265
|
message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6367,7 +6367,7 @@ function validate$H(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6367
6367
|
for (let i = 0; i < obj_updatedNodes.length; i++) {
|
|
6368
6368
|
const obj_updatedNodes_item = obj_updatedNodes[i];
|
|
6369
6369
|
const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
|
|
6370
|
-
const referencepath_updatedNodes_itemValidationError = validate$
|
|
6370
|
+
const referencepath_updatedNodes_itemValidationError = validate$J(obj_updatedNodes_item, path_updatedNodes_item);
|
|
6371
6371
|
if (referencepath_updatedNodes_itemValidationError !== null) {
|
|
6372
6372
|
let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
|
|
6373
6373
|
message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6379,7 +6379,7 @@ function validate$H(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6379
6379
|
return v_error === undefined ? null : v_error;
|
|
6380
6380
|
}
|
|
6381
6381
|
|
|
6382
|
-
function validate$
|
|
6382
|
+
function validate$H(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
|
|
6383
6383
|
const v_error = (() => {
|
|
6384
6384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6385
6385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6416,7 +6416,7 @@ function validate$G(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentatio
|
|
|
6416
6416
|
return v_error === undefined ? null : v_error;
|
|
6417
6417
|
}
|
|
6418
6418
|
|
|
6419
|
-
function validate$
|
|
6419
|
+
function validate$G(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
|
|
6420
6420
|
const v_error = (() => {
|
|
6421
6421
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6422
6422
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6495,7 +6495,7 @@ function validate$F(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
|
|
|
6495
6495
|
return v_error === undefined ? null : v_error;
|
|
6496
6496
|
}
|
|
6497
6497
|
|
|
6498
|
-
function validate$
|
|
6498
|
+
function validate$F(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
|
|
6499
6499
|
const v_error = (() => {
|
|
6500
6500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6501
6501
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6537,7 +6537,7 @@ function validate$E(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6537
6537
|
for (let i = 0; i < obj_values.length; i++) {
|
|
6538
6538
|
const obj_values_item = obj_values[i];
|
|
6539
6539
|
const path_values_item = path_values + '[' + i + ']';
|
|
6540
|
-
const referencepath_values_itemValidationError = validate$
|
|
6540
|
+
const referencepath_values_itemValidationError = validate$G(obj_values_item, path_values_item);
|
|
6541
6541
|
if (referencepath_values_itemValidationError !== null) {
|
|
6542
6542
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
6543
6543
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6549,7 +6549,7 @@ function validate$E(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6549
6549
|
return v_error === undefined ? null : v_error;
|
|
6550
6550
|
}
|
|
6551
6551
|
|
|
6552
|
-
function validate$
|
|
6552
|
+
function validate$E(obj, path = 'ConfiguratorUnitOfMeasureOutputRepresentation') {
|
|
6553
6553
|
const v_error = (() => {
|
|
6554
6554
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6555
6555
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6593,7 +6593,7 @@ function validate$D(obj, path = 'ConfiguratorUnitOfMeasureOutputRepresentation')
|
|
|
6593
6593
|
return v_error === undefined ? null : v_error;
|
|
6594
6594
|
}
|
|
6595
6595
|
|
|
6596
|
-
function validate$
|
|
6596
|
+
function validate$D(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
6597
6597
|
const v_error = (() => {
|
|
6598
6598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6599
6599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6615,7 +6615,7 @@ function validate$C(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6615
6615
|
if (obj.attributePicklist !== undefined) {
|
|
6616
6616
|
const obj_attributePicklist = obj.attributePicklist;
|
|
6617
6617
|
const path_attributePicklist = path + '.attributePicklist';
|
|
6618
|
-
const referencepath_attributePicklistValidationError = validate$
|
|
6618
|
+
const referencepath_attributePicklistValidationError = validate$F(obj_attributePicklist, path_attributePicklist);
|
|
6619
6619
|
if (referencepath_attributePicklistValidationError !== null) {
|
|
6620
6620
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
|
|
6621
6621
|
message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6772,7 +6772,7 @@ function validate$C(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6772
6772
|
if (obj.unitOfMeasure !== undefined) {
|
|
6773
6773
|
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
6774
6774
|
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
6775
|
-
const referencepath_unitOfMeasureValidationError = validate$
|
|
6775
|
+
const referencepath_unitOfMeasureValidationError = validate$E(obj_unitOfMeasure, path_unitOfMeasure);
|
|
6776
6776
|
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
6777
6777
|
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
6778
6778
|
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6804,7 +6804,7 @@ function validate$C(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6804
6804
|
return v_error === undefined ? null : v_error;
|
|
6805
6805
|
}
|
|
6806
6806
|
|
|
6807
|
-
function validate$
|
|
6807
|
+
function validate$C(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
|
|
6808
6808
|
const v_error = (() => {
|
|
6809
6809
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6810
6810
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6818,7 +6818,7 @@ function validate$B(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
|
|
|
6818
6818
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
6819
6819
|
const obj_attributes_item = obj_attributes[i];
|
|
6820
6820
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
6821
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
6821
|
+
const referencepath_attributes_itemValidationError = validate$D(obj_attributes_item, path_attributes_item);
|
|
6822
6822
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
6823
6823
|
let message = 'Object doesn\'t match ConfiguratorAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
6824
6824
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6879,7 +6879,7 @@ function validate$B(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
|
|
|
6879
6879
|
return v_error === undefined ? null : v_error;
|
|
6880
6880
|
}
|
|
6881
6881
|
|
|
6882
|
-
function validate$
|
|
6882
|
+
function validate$B(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
|
|
6883
6883
|
const v_error = (() => {
|
|
6884
6884
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6885
6885
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6930,7 +6930,7 @@ function validate$A(obj, path = 'ConfiguratorPricingModelOutputRepresentation')
|
|
|
6930
6930
|
return v_error === undefined ? null : v_error;
|
|
6931
6931
|
}
|
|
6932
6932
|
|
|
6933
|
-
function validate$
|
|
6933
|
+
function validate$A(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
6934
6934
|
const v_error = (() => {
|
|
6935
6935
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6936
6936
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6994,7 +6994,7 @@ function validate$z(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
|
6994
6994
|
if (obj.pricingModel !== undefined) {
|
|
6995
6995
|
const obj_pricingModel = obj.pricingModel;
|
|
6996
6996
|
const path_pricingModel = path + '.pricingModel';
|
|
6997
|
-
const referencepath_pricingModelValidationError = validate$
|
|
6997
|
+
const referencepath_pricingModelValidationError = validate$B(obj_pricingModel, path_pricingModel);
|
|
6998
6998
|
if (referencepath_pricingModelValidationError !== null) {
|
|
6999
6999
|
let message = 'Object doesn\'t match ConfiguratorPricingModelOutputRepresentation (at "' + path_pricingModel + '")\n';
|
|
7000
7000
|
message += referencepath_pricingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7008,7 +7008,7 @@ function validate$z(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
|
7008
7008
|
return v_error === undefined ? null : v_error;
|
|
7009
7009
|
}
|
|
7010
7010
|
|
|
7011
|
-
function validate$
|
|
7011
|
+
function validate$z(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
|
|
7012
7012
|
const v_error = (() => {
|
|
7013
7013
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7014
7014
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7024,7 +7024,7 @@ function validate$y(obj, path = 'ConfiguratorProductClassificationOutputRepresen
|
|
|
7024
7024
|
return v_error === undefined ? null : v_error;
|
|
7025
7025
|
}
|
|
7026
7026
|
|
|
7027
|
-
function validate$
|
|
7027
|
+
function validate$y(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
|
|
7028
7028
|
const v_error = (() => {
|
|
7029
7029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7030
7030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7038,7 +7038,7 @@ function validate$x(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
7038
7038
|
for (let i = 0; i < obj_childGroups.length; i++) {
|
|
7039
7039
|
const obj_childGroups_item = obj_childGroups[i];
|
|
7040
7040
|
const path_childGroups_item = path_childGroups + '[' + i + ']';
|
|
7041
|
-
const referencepath_childGroups_itemValidationError = validate$
|
|
7041
|
+
const referencepath_childGroups_itemValidationError = validate$y(obj_childGroups_item, path_childGroups_item);
|
|
7042
7042
|
if (referencepath_childGroups_itemValidationError !== null) {
|
|
7043
7043
|
let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_childGroups_item + '")\n';
|
|
7044
7044
|
message += referencepath_childGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7055,7 +7055,7 @@ function validate$x(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
7055
7055
|
for (let i = 0; i < obj_classifications.length; i++) {
|
|
7056
7056
|
const obj_classifications_item = obj_classifications[i];
|
|
7057
7057
|
const path_classifications_item = path_classifications + '[' + i + ']';
|
|
7058
|
-
const referencepath_classifications_itemValidationError = validate$
|
|
7058
|
+
const referencepath_classifications_itemValidationError = validate$z(obj_classifications_item, path_classifications_item);
|
|
7059
7059
|
if (referencepath_classifications_itemValidationError !== null) {
|
|
7060
7060
|
let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_classifications_item + '")\n';
|
|
7061
7061
|
message += referencepath_classifications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7079,7 +7079,7 @@ function validate$x(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
7079
7079
|
for (let i = 0; i < obj_components.length; i++) {
|
|
7080
7080
|
const obj_components_item = obj_components[i];
|
|
7081
7081
|
const path_components_item = path_components + '[' + i + ']';
|
|
7082
|
-
const referencepath_components_itemValidationError = validate$
|
|
7082
|
+
const referencepath_components_itemValidationError = validate$t(obj_components_item, path_components_item);
|
|
7083
7083
|
if (referencepath_components_itemValidationError !== null) {
|
|
7084
7084
|
let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_components_item + '")\n';
|
|
7085
7085
|
message += referencepath_components_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7147,7 +7147,7 @@ function validate$x(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
7147
7147
|
return v_error === undefined ? null : v_error;
|
|
7148
7148
|
}
|
|
7149
7149
|
|
|
7150
|
-
function validate$
|
|
7150
|
+
function validate$x(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
|
|
7151
7151
|
const v_error = (() => {
|
|
7152
7152
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7153
7153
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7262,7 +7262,7 @@ function validate$w(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
7262
7262
|
if (obj.unitOfMeasure !== undefined) {
|
|
7263
7263
|
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
7264
7264
|
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
7265
|
-
const referencepath_unitOfMeasureValidationError = validate$
|
|
7265
|
+
const referencepath_unitOfMeasureValidationError = validate$E(obj_unitOfMeasure, path_unitOfMeasure);
|
|
7266
7266
|
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
7267
7267
|
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
7268
7268
|
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7273,7 +7273,7 @@ function validate$w(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
7273
7273
|
return v_error === undefined ? null : v_error;
|
|
7274
7274
|
}
|
|
7275
7275
|
|
|
7276
|
-
function validate$
|
|
7276
|
+
function validate$w(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
|
|
7277
7277
|
const v_error = (() => {
|
|
7278
7278
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7279
7279
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7324,7 +7324,7 @@ function validate$v(obj, path = 'ConfiguratorProductSellingModelOutputRepresenta
|
|
|
7324
7324
|
return v_error === undefined ? null : v_error;
|
|
7325
7325
|
}
|
|
7326
7326
|
|
|
7327
|
-
function validate$
|
|
7327
|
+
function validate$v(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
|
|
7328
7328
|
const v_error = (() => {
|
|
7329
7329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7330
7330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7346,7 +7346,7 @@ function validate$u(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
|
|
|
7346
7346
|
if (obj.productSellingModel !== undefined) {
|
|
7347
7347
|
const obj_productSellingModel = obj.productSellingModel;
|
|
7348
7348
|
const path_productSellingModel = path + '.productSellingModel';
|
|
7349
|
-
const referencepath_productSellingModelValidationError = validate$
|
|
7349
|
+
const referencepath_productSellingModelValidationError = validate$w(obj_productSellingModel, path_productSellingModel);
|
|
7350
7350
|
if (referencepath_productSellingModelValidationError !== null) {
|
|
7351
7351
|
let message = 'Object doesn\'t match ConfiguratorProductSellingModelOutputRepresentation (at "' + path_productSellingModel + '")\n';
|
|
7352
7352
|
message += referencepath_productSellingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7364,7 +7364,7 @@ function validate$u(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
|
|
|
7364
7364
|
return v_error === undefined ? null : v_error;
|
|
7365
7365
|
}
|
|
7366
7366
|
|
|
7367
|
-
function validate$
|
|
7367
|
+
function validate$u(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
|
|
7368
7368
|
const v_error = (() => {
|
|
7369
7369
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7370
7370
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7387,7 +7387,7 @@ function validate$t(obj, path = 'ConfiguratorQualificationContextOutputRepresent
|
|
|
7387
7387
|
return v_error === undefined ? null : v_error;
|
|
7388
7388
|
}
|
|
7389
7389
|
|
|
7390
|
-
function validate$
|
|
7390
|
+
function validate$t(obj, path = 'ConfiguratorProductCatalogOutputRepresentation') {
|
|
7391
7391
|
const v_error = (() => {
|
|
7392
7392
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7393
7393
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7401,7 +7401,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7401
7401
|
for (let i = 0; i < obj_additionalFields.length; i++) {
|
|
7402
7402
|
const obj_additionalFields_item = obj_additionalFields[i];
|
|
7403
7403
|
const path_additionalFields_item = path_additionalFields + '[' + i + ']';
|
|
7404
|
-
const referencepath_additionalFields_itemValidationError = validate$
|
|
7404
|
+
const referencepath_additionalFields_itemValidationError = validate$H(obj_additionalFields_item, path_additionalFields_item);
|
|
7405
7405
|
if (referencepath_additionalFields_itemValidationError !== null) {
|
|
7406
7406
|
let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
|
|
7407
7407
|
message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7418,7 +7418,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7418
7418
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
7419
7419
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
7420
7420
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
7421
|
-
const referencepath_attributeCategories_itemValidationError = validate$
|
|
7421
|
+
const referencepath_attributeCategories_itemValidationError = validate$C(obj_attributeCategories_item, path_attributeCategories_item);
|
|
7422
7422
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
7423
7423
|
let message = 'Object doesn\'t match ConfiguratorAttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
7424
7424
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7540,7 +7540,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7540
7540
|
for (let i = 0; i < obj_prices.length; i++) {
|
|
7541
7541
|
const obj_prices_item = obj_prices[i];
|
|
7542
7542
|
const path_prices_item = path_prices + '[' + i + ']';
|
|
7543
|
-
const referencepath_prices_itemValidationError = validate$
|
|
7543
|
+
const referencepath_prices_itemValidationError = validate$A(obj_prices_item, path_prices_item);
|
|
7544
7544
|
if (referencepath_prices_itemValidationError !== null) {
|
|
7545
7545
|
let message = 'Object doesn\'t match ConfiguratorPriceOutputRepresentation (at "' + path_prices_item + '")\n';
|
|
7546
7546
|
message += referencepath_prices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7551,7 +7551,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7551
7551
|
if (obj.productClassification !== undefined) {
|
|
7552
7552
|
const obj_productClassification = obj.productClassification;
|
|
7553
7553
|
const path_productClassification = path + '.productClassification';
|
|
7554
|
-
const referencepath_productClassificationValidationError = validate$
|
|
7554
|
+
const referencepath_productClassificationValidationError = validate$z(obj_productClassification, path_productClassification);
|
|
7555
7555
|
if (referencepath_productClassificationValidationError !== null) {
|
|
7556
7556
|
let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_productClassification + '")\n';
|
|
7557
7557
|
message += referencepath_productClassificationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7574,7 +7574,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7574
7574
|
for (let i = 0; i < obj_productComponentGroups.length; i++) {
|
|
7575
7575
|
const obj_productComponentGroups_item = obj_productComponentGroups[i];
|
|
7576
7576
|
const path_productComponentGroups_item = path_productComponentGroups + '[' + i + ']';
|
|
7577
|
-
const referencepath_productComponentGroups_itemValidationError = validate$
|
|
7577
|
+
const referencepath_productComponentGroups_itemValidationError = validate$y(obj_productComponentGroups_item, path_productComponentGroups_item);
|
|
7578
7578
|
if (referencepath_productComponentGroups_itemValidationError !== null) {
|
|
7579
7579
|
let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_productComponentGroups_item + '")\n';
|
|
7580
7580
|
message += referencepath_productComponentGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7585,7 +7585,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7585
7585
|
if (obj.productRelatedComponent !== undefined) {
|
|
7586
7586
|
const obj_productRelatedComponent = obj.productRelatedComponent;
|
|
7587
7587
|
const path_productRelatedComponent = path + '.productRelatedComponent';
|
|
7588
|
-
const referencepath_productRelatedComponentValidationError = validate$
|
|
7588
|
+
const referencepath_productRelatedComponentValidationError = validate$x(obj_productRelatedComponent, path_productRelatedComponent);
|
|
7589
7589
|
if (referencepath_productRelatedComponentValidationError !== null) {
|
|
7590
7590
|
let message = 'Object doesn\'t match ConfiguratorProductRelatedComponentOutputRepresentation (at "' + path_productRelatedComponent + '")\n';
|
|
7591
7591
|
message += referencepath_productRelatedComponentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7601,7 +7601,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7601
7601
|
for (let i = 0; i < obj_productSellingModelOptions.length; i++) {
|
|
7602
7602
|
const obj_productSellingModelOptions_item = obj_productSellingModelOptions[i];
|
|
7603
7603
|
const path_productSellingModelOptions_item = path_productSellingModelOptions + '[' + i + ']';
|
|
7604
|
-
const referencepath_productSellingModelOptions_itemValidationError = validate$
|
|
7604
|
+
const referencepath_productSellingModelOptions_itemValidationError = validate$v(obj_productSellingModelOptions_item, path_productSellingModelOptions_item);
|
|
7605
7605
|
if (referencepath_productSellingModelOptions_itemValidationError !== null) {
|
|
7606
7606
|
let message = 'Object doesn\'t match ConfiguratorProductSellingModelOptionOutputRepresentation (at "' + path_productSellingModelOptions_item + '")\n';
|
|
7607
7607
|
message += referencepath_productSellingModelOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7626,7 +7626,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7626
7626
|
if (obj.qualificationContext !== undefined) {
|
|
7627
7627
|
const obj_qualificationContext = obj.qualificationContext;
|
|
7628
7628
|
const path_qualificationContext = path + '.qualificationContext';
|
|
7629
|
-
const referencepath_qualificationContextValidationError = validate$
|
|
7629
|
+
const referencepath_qualificationContextValidationError = validate$u(obj_qualificationContext, path_qualificationContext);
|
|
7630
7630
|
if (referencepath_qualificationContextValidationError !== null) {
|
|
7631
7631
|
let message = 'Object doesn\'t match ConfiguratorQualificationContextOutputRepresentation (at "' + path_qualificationContext + '")\n';
|
|
7632
7632
|
message += referencepath_qualificationContextValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7643,7 +7643,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7643
7643
|
if (obj.unitOfMeasure !== undefined) {
|
|
7644
7644
|
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
7645
7645
|
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
7646
|
-
const referencepath_unitOfMeasureValidationError = validate$
|
|
7646
|
+
const referencepath_unitOfMeasureValidationError = validate$E(obj_unitOfMeasure, path_unitOfMeasure);
|
|
7647
7647
|
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
7648
7648
|
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
7649
7649
|
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7656,7 +7656,7 @@ function validate$s(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7656
7656
|
|
|
7657
7657
|
const TTL$9 = 1000;
|
|
7658
7658
|
const VERSION$9 = "2b964fefc1aca8e13065fe8adf646aac";
|
|
7659
|
-
function validate$
|
|
7659
|
+
function validate$s(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
7660
7660
|
const v_error = (() => {
|
|
7661
7661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7662
7662
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7670,7 +7670,7 @@ function validate$r(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
|
7670
7670
|
for (let i = 0; i < obj_catalogProducts.length; i++) {
|
|
7671
7671
|
const obj_catalogProducts_item = obj_catalogProducts[i];
|
|
7672
7672
|
const path_catalogProducts_item = path_catalogProducts + '[' + i + ']';
|
|
7673
|
-
const referencepath_catalogProducts_itemValidationError = validate$
|
|
7673
|
+
const referencepath_catalogProducts_itemValidationError = validate$t(obj_catalogProducts_item, path_catalogProducts_item);
|
|
7674
7674
|
if (referencepath_catalogProducts_itemValidationError !== null) {
|
|
7675
7675
|
let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_catalogProducts_item + '")\n';
|
|
7676
7676
|
message += referencepath_catalogProducts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7778,7 +7778,7 @@ function equals$9(existing, incoming) {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
const ingest$9 = function ConfiguratorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7780
7780
|
if (process.env.NODE_ENV !== 'production') {
|
|
7781
|
-
const validateError = validate$
|
|
7781
|
+
const validateError = validate$s(input);
|
|
7782
7782
|
if (validateError !== null) {
|
|
7783
7783
|
throw validateError;
|
|
7784
7784
|
}
|
|
@@ -7844,7 +7844,7 @@ const createResourceParams$b = /*#__PURE__*/ createResourceParams$r(configure_Co
|
|
|
7844
7844
|
function typeCheckConfig$b(untrustedConfig) {
|
|
7845
7845
|
const config = {};
|
|
7846
7846
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
7847
|
-
const referenceConfiguratorInputRepresentationValidationError = validate$
|
|
7847
|
+
const referenceConfiguratorInputRepresentationValidationError = validate$I(untrustedConfig_configuratorInput);
|
|
7848
7848
|
if (referenceConfiguratorInputRepresentationValidationError === null) {
|
|
7849
7849
|
config.configuratorInput = untrustedConfig_configuratorInput;
|
|
7850
7850
|
}
|
|
@@ -7894,7 +7894,7 @@ const configureAdapterFactory = (luvio) => {
|
|
|
7894
7894
|
|
|
7895
7895
|
const TTL$8 = 1000;
|
|
7896
7896
|
const VERSION$8 = "8e3c9e65f1fddd951abbd11521a4b723";
|
|
7897
|
-
function validate$
|
|
7897
|
+
function validate$r(obj, path = 'ConfiguratorRuleOutputRepresentation') {
|
|
7898
7898
|
const v_error = (() => {
|
|
7899
7899
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7900
7900
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7978,7 +7978,7 @@ function equals$8(existing, incoming) {
|
|
|
7978
7978
|
}
|
|
7979
7979
|
const ingest$8 = function ConfiguratorRuleOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7980
7980
|
if (process.env.NODE_ENV !== 'production') {
|
|
7981
|
-
const validateError = validate$
|
|
7981
|
+
const validateError = validate$r(input);
|
|
7982
7982
|
if (validateError !== null) {
|
|
7983
7983
|
throw validateError;
|
|
7984
7984
|
}
|
|
@@ -8282,7 +8282,7 @@ const updateRuleAdapterFactory = (luvio) => {
|
|
|
8282
8282
|
|
|
8283
8283
|
const TTL$7 = 1000;
|
|
8284
8284
|
const VERSION$7 = "1be371071f697a9043a29a27c23d89f4";
|
|
8285
|
-
function validate$
|
|
8285
|
+
function validate$q(obj, path = 'ConfiguratorRuleValidatorOutputRepresentation') {
|
|
8286
8286
|
const v_error = (() => {
|
|
8287
8287
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8288
8288
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8336,7 +8336,7 @@ function equals$7(existing, incoming) {
|
|
|
8336
8336
|
}
|
|
8337
8337
|
const ingest$7 = function ConfiguratorRuleValidatorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8338
8338
|
if (process.env.NODE_ENV !== 'production') {
|
|
8339
|
-
const validateError = validate$
|
|
8339
|
+
const validateError = validate$q(input);
|
|
8340
8340
|
if (validateError !== null) {
|
|
8341
8341
|
throw validateError;
|
|
8342
8342
|
}
|
|
@@ -8448,7 +8448,7 @@ const validateRuleAdapterFactory = (luvio) => {
|
|
|
8448
8448
|
|
|
8449
8449
|
const TTL$6 = 1000;
|
|
8450
8450
|
const VERSION$6 = "6bce26088e4b8564d9ee7c02403d414b";
|
|
8451
|
-
function validate$
|
|
8451
|
+
function validate$p(obj, path = 'FavoriteOutputRepresenation') {
|
|
8452
8452
|
const v_error = (() => {
|
|
8453
8453
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8454
8454
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8510,7 +8510,7 @@ function equals$6(existing, incoming) {
|
|
|
8510
8510
|
}
|
|
8511
8511
|
const ingest$6 = function FavoriteOutputRepresenationIngest(input, path, luvio, store, timestamp) {
|
|
8512
8512
|
if (process.env.NODE_ENV !== 'production') {
|
|
8513
|
-
const validateError = validate$
|
|
8513
|
+
const validateError = validate$p(input);
|
|
8514
8514
|
if (validateError !== null) {
|
|
8515
8515
|
throw validateError;
|
|
8516
8516
|
}
|
|
@@ -8532,7 +8532,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8532
8532
|
|
|
8533
8533
|
const TTL$5 = 1000;
|
|
8534
8534
|
const VERSION$5 = "c521dd2b17ea5e623d9df6f96e19e180";
|
|
8535
|
-
function validate$
|
|
8535
|
+
function validate$o(obj, path = 'FavoriteListOutputRepresenation') {
|
|
8536
8536
|
const v_error = (() => {
|
|
8537
8537
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8538
8538
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8557,7 +8557,7 @@ function validate$n(obj, path = 'FavoriteListOutputRepresenation') {
|
|
|
8557
8557
|
for (let i = 0; i < obj_savedConfigurations.length; i++) {
|
|
8558
8558
|
const obj_savedConfigurations_item = obj_savedConfigurations[i];
|
|
8559
8559
|
const path_savedConfigurations_item = path_savedConfigurations + '[' + i + ']';
|
|
8560
|
-
const referencepath_savedConfigurations_itemValidationError = validate$
|
|
8560
|
+
const referencepath_savedConfigurations_itemValidationError = validate$p(obj_savedConfigurations_item, path_savedConfigurations_item);
|
|
8561
8561
|
if (referencepath_savedConfigurations_itemValidationError !== null) {
|
|
8562
8562
|
let message = 'Object doesn\'t match FavoriteOutputRepresenation (at "' + path_savedConfigurations_item + '")\n';
|
|
8563
8563
|
message += referencepath_savedConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8592,7 +8592,7 @@ function equals$5(existing, incoming) {
|
|
|
8592
8592
|
}
|
|
8593
8593
|
const ingest$5 = function FavoriteListOutputRepresenationIngest(input, path, luvio, store, timestamp) {
|
|
8594
8594
|
if (process.env.NODE_ENV !== 'production') {
|
|
8595
|
-
const validateError = validate$
|
|
8595
|
+
const validateError = validate$o(input);
|
|
8596
8596
|
if (validateError !== null) {
|
|
8597
8597
|
throw validateError;
|
|
8598
8598
|
}
|
|
@@ -8752,7 +8752,7 @@ const getFavoriteAdapterFactory = (luvio) => function cpq__getFavorite(untrusted
|
|
|
8752
8752
|
|
|
8753
8753
|
const TTL$4 = 1000;
|
|
8754
8754
|
const VERSION$4 = "09d50a26bf62c8269bab20d873985dd0";
|
|
8755
|
-
function validate$
|
|
8755
|
+
function validate$n(obj, path = 'CreateFavoriteOutputRepresentation') {
|
|
8756
8756
|
const v_error = (() => {
|
|
8757
8757
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8758
8758
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8806,7 +8806,7 @@ function equals$4(existing, incoming) {
|
|
|
8806
8806
|
}
|
|
8807
8807
|
const ingest$4 = function CreateFavoriteOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8808
8808
|
if (process.env.NODE_ENV !== 'production') {
|
|
8809
|
-
const validateError = validate$
|
|
8809
|
+
const validateError = validate$n(input);
|
|
8810
8810
|
if (validateError !== null) {
|
|
8811
8811
|
throw validateError;
|
|
8812
8812
|
}
|
|
@@ -9145,7 +9145,7 @@ const deleteFavoriteAdapterFactory = (luvio) => {
|
|
|
9145
9145
|
|
|
9146
9146
|
const TTL$3 = 1000;
|
|
9147
9147
|
const VERSION$3 = "8ac618e4f6c114642d00b7e6d113118c";
|
|
9148
|
-
function validate$
|
|
9148
|
+
function validate$m(obj, path = 'UpdateFavoriteOutputRepresentation') {
|
|
9149
9149
|
const v_error = (() => {
|
|
9150
9150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9151
9151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9199,7 +9199,7 @@ function equals$3(existing, incoming) {
|
|
|
9199
9199
|
}
|
|
9200
9200
|
const ingest$3 = function UpdateFavoriteOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9201
9201
|
if (process.env.NODE_ENV !== 'production') {
|
|
9202
|
-
const validateError = validate$
|
|
9202
|
+
const validateError = validate$m(input);
|
|
9203
9203
|
if (validateError !== null) {
|
|
9204
9204
|
throw validateError;
|
|
9205
9205
|
}
|
|
@@ -9314,7 +9314,7 @@ const updateFavoriteAdapterFactory = (luvio) => {
|
|
|
9314
9314
|
|
|
9315
9315
|
const TTL$2 = 1000;
|
|
9316
9316
|
const VERSION$2 = "e6a859c01faf4b8d5c20cdc36dbb5b85";
|
|
9317
|
-
function validate$
|
|
9317
|
+
function validate$l(obj, path = 'ShareFavoriteOutputRepresentation') {
|
|
9318
9318
|
const v_error = (() => {
|
|
9319
9319
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9320
9320
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9368,7 +9368,7 @@ function equals$2(existing, incoming) {
|
|
|
9368
9368
|
}
|
|
9369
9369
|
const ingest$2 = function ShareFavoriteOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9370
9370
|
if (process.env.NODE_ENV !== 'production') {
|
|
9371
|
-
const validateError = validate$
|
|
9371
|
+
const validateError = validate$l(input);
|
|
9372
9372
|
if (validateError !== null) {
|
|
9373
9373
|
throw validateError;
|
|
9374
9374
|
}
|
|
@@ -9479,7 +9479,7 @@ const shareFavoriteAdapterFactory = (luvio) => {
|
|
|
9479
9479
|
};
|
|
9480
9480
|
};
|
|
9481
9481
|
|
|
9482
|
-
function validate$
|
|
9482
|
+
function validate$k(obj, path = 'ConfigRuleErrorsOutputRepresentation') {
|
|
9483
9483
|
const v_error = (() => {
|
|
9484
9484
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9485
9485
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9502,7 +9502,7 @@ function validate$j(obj, path = 'ConfigRuleErrorsOutputRepresentation') {
|
|
|
9502
9502
|
return v_error === undefined ? null : v_error;
|
|
9503
9503
|
}
|
|
9504
9504
|
|
|
9505
|
-
function validate$
|
|
9505
|
+
function validate$j(obj, path = 'MessageRulesOutputRepresentation') {
|
|
9506
9506
|
const v_error = (() => {
|
|
9507
9507
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9508
9508
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9539,7 +9539,7 @@ function validate$i(obj, path = 'MessageRulesOutputRepresentation') {
|
|
|
9539
9539
|
return v_error === undefined ? null : v_error;
|
|
9540
9540
|
}
|
|
9541
9541
|
|
|
9542
|
-
function validate$
|
|
9542
|
+
function validate$i(obj, path = 'ProductRecommendationRulesOutputRepresentation') {
|
|
9543
9543
|
const v_error = (() => {
|
|
9544
9544
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9545
9545
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9583,7 +9583,7 @@ function validate$h(obj, path = 'ProductRecommendationRulesOutputRepresentation'
|
|
|
9583
9583
|
return v_error === undefined ? null : v_error;
|
|
9584
9584
|
}
|
|
9585
9585
|
|
|
9586
|
-
function validate$
|
|
9586
|
+
function validate$h(obj, path = 'VisibilityRulesOutputRepresentation') {
|
|
9587
9587
|
const v_error = (() => {
|
|
9588
9588
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9589
9589
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9602,6 +9602,13 @@ function validate$g(obj, path = 'VisibilityRulesOutputRepresentation') {
|
|
|
9602
9602
|
return new TypeError('Expected "string" but received "' + typeof obj_attributePicklistValueId + '" (at "' + path_attributePicklistValueId + '")');
|
|
9603
9603
|
}
|
|
9604
9604
|
}
|
|
9605
|
+
if (obj.message !== undefined) {
|
|
9606
|
+
const obj_message = obj.message;
|
|
9607
|
+
const path_message = path + '.message';
|
|
9608
|
+
if (typeof obj_message !== 'string') {
|
|
9609
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
9610
|
+
}
|
|
9611
|
+
}
|
|
9605
9612
|
if (obj.prcId !== undefined) {
|
|
9606
9613
|
const obj_prcId = obj.prcId;
|
|
9607
9614
|
const path_prcId = path + '.prcId';
|
|
@@ -9609,6 +9616,20 @@ function validate$g(obj, path = 'VisibilityRulesOutputRepresentation') {
|
|
|
9609
9616
|
return new TypeError('Expected "string" but received "' + typeof obj_prcId + '" (at "' + path_prcId + '")');
|
|
9610
9617
|
}
|
|
9611
9618
|
}
|
|
9619
|
+
if (obj.productIds !== undefined) {
|
|
9620
|
+
const obj_productIds = obj.productIds;
|
|
9621
|
+
const path_productIds = path + '.productIds';
|
|
9622
|
+
if (!ArrayIsArray(obj_productIds)) {
|
|
9623
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productIds + '" (at "' + path_productIds + '")');
|
|
9624
|
+
}
|
|
9625
|
+
for (let i = 0; i < obj_productIds.length; i++) {
|
|
9626
|
+
const obj_productIds_item = obj_productIds[i];
|
|
9627
|
+
const path_productIds_item = path_productIds + '[' + i + ']';
|
|
9628
|
+
if (typeof obj_productIds_item !== 'string') {
|
|
9629
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productIds_item + '" (at "' + path_productIds_item + '")');
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
}
|
|
9612
9633
|
if (obj.scope !== undefined) {
|
|
9613
9634
|
const obj_scope = obj.scope;
|
|
9614
9635
|
const path_scope = path + '.scope';
|
|
@@ -9643,7 +9664,7 @@ function validate$g(obj, path = 'VisibilityRulesOutputRepresentation') {
|
|
|
9643
9664
|
|
|
9644
9665
|
const TTL$1 = 1000;
|
|
9645
9666
|
const VERSION$1 = "f50538d4dfd457964a17424ee3b0f6ba";
|
|
9646
|
-
function validate$
|
|
9667
|
+
function validate$g(obj, path = 'ConfigRuleOutputRepresentation') {
|
|
9647
9668
|
const v_error = (() => {
|
|
9648
9669
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9649
9670
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9657,7 +9678,7 @@ function validate$f(obj, path = 'ConfigRuleOutputRepresentation') {
|
|
|
9657
9678
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
9658
9679
|
const obj_errors_item = obj_errors[i];
|
|
9659
9680
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
9660
|
-
const referencepath_errors_itemValidationError = validate$
|
|
9681
|
+
const referencepath_errors_itemValidationError = validate$k(obj_errors_item, path_errors_item);
|
|
9661
9682
|
if (referencepath_errors_itemValidationError !== null) {
|
|
9662
9683
|
let message = 'Object doesn\'t match ConfigRuleErrorsOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
9663
9684
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9674,7 +9695,7 @@ function validate$f(obj, path = 'ConfigRuleOutputRepresentation') {
|
|
|
9674
9695
|
for (let i = 0; i < obj_messageRules.length; i++) {
|
|
9675
9696
|
const obj_messageRules_item = obj_messageRules[i];
|
|
9676
9697
|
const path_messageRules_item = path_messageRules + '[' + i + ']';
|
|
9677
|
-
const referencepath_messageRules_itemValidationError = validate$
|
|
9698
|
+
const referencepath_messageRules_itemValidationError = validate$j(obj_messageRules_item, path_messageRules_item);
|
|
9678
9699
|
if (referencepath_messageRules_itemValidationError !== null) {
|
|
9679
9700
|
let message = 'Object doesn\'t match MessageRulesOutputRepresentation (at "' + path_messageRules_item + '")\n';
|
|
9680
9701
|
message += referencepath_messageRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9691,7 +9712,7 @@ function validate$f(obj, path = 'ConfigRuleOutputRepresentation') {
|
|
|
9691
9712
|
for (let i = 0; i < obj_productRecommendationRules.length; i++) {
|
|
9692
9713
|
const obj_productRecommendationRules_item = obj_productRecommendationRules[i];
|
|
9693
9714
|
const path_productRecommendationRules_item = path_productRecommendationRules + '[' + i + ']';
|
|
9694
|
-
const referencepath_productRecommendationRules_itemValidationError = validate$
|
|
9715
|
+
const referencepath_productRecommendationRules_itemValidationError = validate$i(obj_productRecommendationRules_item, path_productRecommendationRules_item);
|
|
9695
9716
|
if (referencepath_productRecommendationRules_itemValidationError !== null) {
|
|
9696
9717
|
let message = 'Object doesn\'t match ProductRecommendationRulesOutputRepresentation (at "' + path_productRecommendationRules_item + '")\n';
|
|
9697
9718
|
message += referencepath_productRecommendationRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9720,7 +9741,7 @@ function validate$f(obj, path = 'ConfigRuleOutputRepresentation') {
|
|
|
9720
9741
|
for (let i = 0; i < obj_visibilityRules.length; i++) {
|
|
9721
9742
|
const obj_visibilityRules_item = obj_visibilityRules[i];
|
|
9722
9743
|
const path_visibilityRules_item = path_visibilityRules + '[' + i + ']';
|
|
9723
|
-
const referencepath_visibilityRules_itemValidationError = validate$
|
|
9744
|
+
const referencepath_visibilityRules_itemValidationError = validate$h(obj_visibilityRules_item, path_visibilityRules_item);
|
|
9724
9745
|
if (referencepath_visibilityRules_itemValidationError !== null) {
|
|
9725
9746
|
let message = 'Object doesn\'t match VisibilityRulesOutputRepresentation (at "' + path_visibilityRules_item + '")\n';
|
|
9726
9747
|
message += referencepath_visibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9760,7 +9781,7 @@ function equals$1(existing, incoming) {
|
|
|
9760
9781
|
}
|
|
9761
9782
|
const ingest$1 = function ConfigRuleOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9762
9783
|
if (process.env.NODE_ENV !== 'production') {
|
|
9763
|
-
const validateError = validate$
|
|
9784
|
+
const validateError = validate$g(input);
|
|
9764
9785
|
if (validateError !== null) {
|
|
9765
9786
|
throw validateError;
|
|
9766
9787
|
}
|
|
@@ -9892,6 +9913,25 @@ const executeConfigRulesAdapterFactory = (luvio) => {
|
|
|
9892
9913
|
};
|
|
9893
9914
|
};
|
|
9894
9915
|
|
|
9916
|
+
function validate$f(obj, path = 'UserContextInputRepresentation') {
|
|
9917
|
+
const v_error = (() => {
|
|
9918
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9919
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9920
|
+
}
|
|
9921
|
+
const obj_accountId = obj.accountId;
|
|
9922
|
+
const path_accountId = path + '.accountId';
|
|
9923
|
+
if (typeof obj_accountId !== 'string') {
|
|
9924
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accountId + '" (at "' + path_accountId + '")');
|
|
9925
|
+
}
|
|
9926
|
+
const obj_contactId = obj.contactId;
|
|
9927
|
+
const path_contactId = path + '.contactId';
|
|
9928
|
+
if (typeof obj_contactId !== 'string') {
|
|
9929
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contactId + '" (at "' + path_contactId + '")');
|
|
9930
|
+
}
|
|
9931
|
+
})();
|
|
9932
|
+
return v_error === undefined ? null : v_error;
|
|
9933
|
+
}
|
|
9934
|
+
|
|
9895
9935
|
function validate$e(obj, path = 'ProductRecommendationErrorsOutputRepresentation') {
|
|
9896
9936
|
const v_error = (() => {
|
|
9897
9937
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10720,14 +10760,15 @@ const adapterName = 'productRecommendations';
|
|
|
10720
10760
|
const productRecommendations_ConfigPropertyMetadata = [
|
|
10721
10761
|
generateParamConfigMetadata('additionalContextData', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10722
10762
|
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10763
|
+
generateParamConfigMetadata('catalogId', false, 2 /* Body */, 0 /* String */),
|
|
10723
10764
|
generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
|
|
10724
10765
|
generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
|
|
10725
10766
|
generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
|
|
10767
|
+
generateParamConfigMetadata('cursor', false, 2 /* Body */, 0 /* String */),
|
|
10726
10768
|
generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
|
|
10727
10769
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
10728
10770
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10729
10771
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
10730
|
-
generateParamConfigMetadata('offset', false, 2 /* Body */, 3 /* Integer */),
|
|
10731
10772
|
generateParamConfigMetadata('priceBookId', false, 2 /* Body */, 0 /* String */),
|
|
10732
10773
|
generateParamConfigMetadata('pricingProcedure', false, 2 /* Body */, 0 /* String */),
|
|
10733
10774
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10751,7 +10792,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
10751
10792
|
}
|
|
10752
10793
|
}
|
|
10753
10794
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
10754
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
10795
|
+
const referenceFilterInputRepresentationValidationError = validate$1g(untrustedConfig_filter);
|
|
10755
10796
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
10756
10797
|
config.filter = untrustedConfig_filter;
|
|
10757
10798
|
}
|
|
@@ -10770,11 +10811,9 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
10770
10811
|
config.transactionId = untrustedConfig_transactionId;
|
|
10771
10812
|
}
|
|
10772
10813
|
const untrustedConfig_userContext = untrustedConfig.userContext;
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
config.userContext = untrustedConfig_userContext_object;
|
|
10777
|
-
}
|
|
10814
|
+
const referenceUserContextInputRepresentationValidationError = validate$f(untrustedConfig_userContext);
|
|
10815
|
+
if (referenceUserContextInputRepresentationValidationError === null) {
|
|
10816
|
+
config.userContext = untrustedConfig_userContext;
|
|
10778
10817
|
}
|
|
10779
10818
|
return config;
|
|
10780
10819
|
}
|