@salesforce/lds-adapters-industries-cpq 1.239.0 → 1.241.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 +668 -95
- package/dist/es/es2018/types/src/generated/types/ConfiguratorAddedNodeInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorAdditionalFieldsOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorDeletedNodeInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorInputRepresentation.d.ts +28 -10
- package/dist/es/es2018/types/src/generated/types/ConfiguratorOptionsInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductCatalogOutputRepresentation.d.ts +39 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductClassificationOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductComponentGroupOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductRelatedComponentOutputRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductSellingModelOptionOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductSellingModelOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorUpdatedNodeInputRepresentation.d.ts +31 -0
- package/package.json +1 -1
- package/sfdc/index.js +602 -29
- package/src/raml/api.raml +221 -8
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$L(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$D(obj, path = 'PreviewInputRepresentation') {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
const VERSION$h = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$K(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$h(existing, incoming) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const VERSION$g = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
-
function validate$
|
|
279
|
+
function validate$J(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$B(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$K(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');
|
|
@@ -381,14 +381,14 @@ function equals$g(existing, incoming) {
|
|
|
381
381
|
|
|
382
382
|
const TTL$7 = 1000;
|
|
383
383
|
const VERSION$f = "0dec45c09b18523023bddd12cc806a3d";
|
|
384
|
-
function validate$
|
|
384
|
+
function validate$I(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
385
385
|
const v_error = (() => {
|
|
386
386
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
387
387
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
388
388
|
}
|
|
389
389
|
const obj_apiStatus = obj.apiStatus;
|
|
390
390
|
const path_apiStatus = path + '.apiStatus';
|
|
391
|
-
const referencepath_apiStatusValidationError = validate$
|
|
391
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
392
392
|
if (referencepath_apiStatusValidationError !== null) {
|
|
393
393
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
394
394
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -471,7 +471,7 @@ function equals$f(existing, incoming) {
|
|
|
471
471
|
}
|
|
472
472
|
const ingest$8 = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
473
473
|
if (process.env.NODE_ENV !== 'production') {
|
|
474
|
-
const validateError = validate$
|
|
474
|
+
const validateError = validate$I(input);
|
|
475
475
|
if (validateError !== null) {
|
|
476
476
|
throw validateError;
|
|
477
477
|
}
|
|
@@ -537,7 +537,7 @@ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(preview_Conf
|
|
|
537
537
|
function typeCheckConfig$a(untrustedConfig) {
|
|
538
538
|
const config = {};
|
|
539
539
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
540
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
540
|
+
const referencePreviewInputRepresentationValidationError = validate$L(untrustedConfig_previewInput);
|
|
541
541
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
542
542
|
config.previewInput = untrustedConfig_previewInput;
|
|
543
543
|
}
|
|
@@ -585,7 +585,7 @@ const previewAdapterFactory = (luvio) => {
|
|
|
585
585
|
};
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$H(obj, path = 'ProductListInputRepresentation') {
|
|
589
589
|
const v_error = (() => {
|
|
590
590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -725,7 +725,7 @@ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(productList_
|
|
|
725
725
|
function typeCheckConfig$9(untrustedConfig) {
|
|
726
726
|
const config = {};
|
|
727
727
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
728
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
728
|
+
const referenceProductListInputRepresentationValidationError = validate$H(untrustedConfig_requestBody);
|
|
729
729
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
730
730
|
config.requestBody = untrustedConfig_requestBody;
|
|
731
731
|
}
|
|
@@ -773,7 +773,7 @@ const productListAdapterFactory = (luvio) => {
|
|
|
773
773
|
};
|
|
774
774
|
};
|
|
775
775
|
|
|
776
|
-
function validate$
|
|
776
|
+
function validate$G(obj, path = 'SearchProductsInputRepresentation') {
|
|
777
777
|
const v_error = (() => {
|
|
778
778
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
779
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -917,7 +917,7 @@ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(searchProduc
|
|
|
917
917
|
function typeCheckConfig$8(untrustedConfig) {
|
|
918
918
|
const config = {};
|
|
919
919
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
920
|
-
const referenceSearchProductsInputRepresentationValidationError = validate$
|
|
920
|
+
const referenceSearchProductsInputRepresentationValidationError = validate$G(untrustedConfig_requestBody);
|
|
921
921
|
if (referenceSearchProductsInputRepresentationValidationError === null) {
|
|
922
922
|
config.requestBody = untrustedConfig_requestBody;
|
|
923
923
|
}
|
|
@@ -965,7 +965,7 @@ const searchProductListAdapterFactory = (luvio) => {
|
|
|
965
965
|
};
|
|
966
966
|
};
|
|
967
967
|
|
|
968
|
-
function validate$
|
|
968
|
+
function validate$F(obj, path = 'ProductDetailsInputRepresentation') {
|
|
969
969
|
const v_error = (() => {
|
|
970
970
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
971
971
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1021,14 +1021,14 @@ function validate$x(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
1021
1021
|
|
|
1022
1022
|
const TTL$6 = 1000;
|
|
1023
1023
|
const VERSION$e = "6e77a7585bc4d094518eb201471d85ea";
|
|
1024
|
-
function validate$
|
|
1024
|
+
function validate$E(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
1025
1025
|
const v_error = (() => {
|
|
1026
1026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1027
1027
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1028
1028
|
}
|
|
1029
1029
|
const obj_apiStatus = obj.apiStatus;
|
|
1030
1030
|
const path_apiStatus = path + '.apiStatus';
|
|
1031
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1031
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
1032
1032
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1033
1033
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1034
1034
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1076,7 +1076,7 @@ function equals$e(existing, incoming) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
const ingest$7 = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1078
1078
|
if (process.env.NODE_ENV !== 'production') {
|
|
1079
|
-
const validateError = validate$
|
|
1079
|
+
const validateError = validate$E(input);
|
|
1080
1080
|
if (validateError !== null) {
|
|
1081
1081
|
throw validateError;
|
|
1082
1082
|
}
|
|
@@ -1144,7 +1144,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
1144
1144
|
const config = {};
|
|
1145
1145
|
typeCheckConfig$b(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
1146
1146
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1147
|
-
const referenceProductDetailsInputRepresentationValidationError = validate$
|
|
1147
|
+
const referenceProductDetailsInputRepresentationValidationError = validate$F(untrustedConfig_requestBody);
|
|
1148
1148
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
1149
1149
|
config.requestBody = untrustedConfig_requestBody;
|
|
1150
1150
|
}
|
|
@@ -1192,7 +1192,7 @@ const productDetailsAdapterFactory = (luvio) => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
};
|
|
1194
1194
|
|
|
1195
|
-
function validate$
|
|
1195
|
+
function validate$D(obj, path = 'CreateCartInputRepresentation') {
|
|
1196
1196
|
const v_error = (() => {
|
|
1197
1197
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1198
1198
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1263,14 +1263,14 @@ function validate$v(obj, path = 'CreateCartInputRepresentation') {
|
|
|
1263
1263
|
|
|
1264
1264
|
const TTL$5 = 1000;
|
|
1265
1265
|
const VERSION$d = "1f730145ab6b9f6b4d070b5eade57b4c";
|
|
1266
|
-
function validate$
|
|
1266
|
+
function validate$C(obj, path = 'CreateCartOutputRepresentation') {
|
|
1267
1267
|
const v_error = (() => {
|
|
1268
1268
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1269
1269
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1270
1270
|
}
|
|
1271
1271
|
const obj_apiStatus = obj.apiStatus;
|
|
1272
1272
|
const path_apiStatus = path + '.apiStatus';
|
|
1273
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1273
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
1274
1274
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1275
1275
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1276
1276
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1315,7 +1315,7 @@ function equals$d(existing, incoming) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
const ingest$6 = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1317
1317
|
if (process.env.NODE_ENV !== 'production') {
|
|
1318
|
-
const validateError = validate$
|
|
1318
|
+
const validateError = validate$C(input);
|
|
1319
1319
|
if (validateError !== null) {
|
|
1320
1320
|
throw validateError;
|
|
1321
1321
|
}
|
|
@@ -1381,7 +1381,7 @@ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(createCart_C
|
|
|
1381
1381
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1382
1382
|
const config = {};
|
|
1383
1383
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
1384
|
-
const referenceCreateCartInputRepresentationValidationError = validate$
|
|
1384
|
+
const referenceCreateCartInputRepresentationValidationError = validate$D(untrustedConfig_createCartRequestPayload);
|
|
1385
1385
|
if (referenceCreateCartInputRepresentationValidationError === null) {
|
|
1386
1386
|
config.createCartRequestPayload = untrustedConfig_createCartRequestPayload;
|
|
1387
1387
|
}
|
|
@@ -1430,7 +1430,7 @@ const createCartAdapterFactory = (luvio) => {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
|
|
1432
1432
|
const VERSION$c = "c49b7c37c117b93f62b9696af8a68cdc";
|
|
1433
|
-
function validate$
|
|
1433
|
+
function validate$B(obj, path = 'AttributePickListValueOutputRepresentation') {
|
|
1434
1434
|
const v_error = (() => {
|
|
1435
1435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1436
1436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1702,7 +1702,7 @@ function equals$c(existing, incoming) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
const VERSION$b = "78e748e628eb86e688eec1678db105d8";
|
|
1705
|
-
function validate$
|
|
1705
|
+
function validate$A(obj, path = 'AttributePickListOutputRepresentation') {
|
|
1706
1706
|
const v_error = (() => {
|
|
1707
1707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1708
1708
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1751,7 +1751,7 @@ function validate$s(obj, path = 'AttributePickListOutputRepresentation') {
|
|
|
1751
1751
|
for (let i = 0; i < obj_values.length; i++) {
|
|
1752
1752
|
const obj_values_item = obj_values[i];
|
|
1753
1753
|
const path_values_item = path_values + '[' + i + ']';
|
|
1754
|
-
const referencepath_values_itemValidationError = validate$
|
|
1754
|
+
const referencepath_values_itemValidationError = validate$B(obj_values_item, path_values_item);
|
|
1755
1755
|
if (referencepath_values_itemValidationError !== null) {
|
|
1756
1756
|
let message = 'Object doesn\'t match AttributePickListValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
1757
1757
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1892,7 +1892,7 @@ function equals$b(existing, incoming) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
1894
|
const VERSION$a = "6ff7eba66a298f44544aa43e1c59f15c";
|
|
1895
|
-
function validate$
|
|
1895
|
+
function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
1896
1896
|
const v_error = (() => {
|
|
1897
1897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1898
1898
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1914,7 +1914,7 @@ function validate$r(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
|
1914
1914
|
if (obj.attributePickList !== undefined) {
|
|
1915
1915
|
const obj_attributePickList = obj.attributePickList;
|
|
1916
1916
|
const path_attributePickList = path + '.attributePickList';
|
|
1917
|
-
const referencepath_attributePickListValidationError = validate$
|
|
1917
|
+
const referencepath_attributePickListValidationError = validate$A(obj_attributePickList, path_attributePickList);
|
|
1918
1918
|
if (referencepath_attributePickListValidationError !== null) {
|
|
1919
1919
|
let message = 'Object doesn\'t match AttributePickListOutputRepresentation (at "' + path_attributePickList + '")\n';
|
|
1920
1920
|
message += referencepath_attributePickListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2494,7 +2494,7 @@ function equals$a(existing, incoming) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
2496
|
const VERSION$9 = "63ca2614b6879bfb4df068438d7e78ec";
|
|
2497
|
-
function validate$
|
|
2497
|
+
function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
2498
2498
|
const v_error = (() => {
|
|
2499
2499
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2500
2500
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2536,7 +2536,7 @@ function validate$q(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
|
2536
2536
|
for (let i = 0; i < obj_records.length; i++) {
|
|
2537
2537
|
const obj_records_item = obj_records[i];
|
|
2538
2538
|
const path_records_item = path_records + '[' + i + ']';
|
|
2539
|
-
const referencepath_records_itemValidationError = validate$
|
|
2539
|
+
const referencepath_records_itemValidationError = validate$z(obj_records_item, path_records_item);
|
|
2540
2540
|
if (referencepath_records_itemValidationError !== null) {
|
|
2541
2541
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
|
|
2542
2542
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2734,7 +2734,7 @@ function equals$9(existing, incoming) {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
|
|
2736
2736
|
const VERSION$8 = "a59ef129f333de8bbfe140f39144b415";
|
|
2737
|
-
function validate$
|
|
2737
|
+
function validate$x(obj, path = 'CartItemOutputRepresentation') {
|
|
2738
2738
|
const v_error = (() => {
|
|
2739
2739
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2740
2740
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2748,7 +2748,7 @@ function validate$p(obj, path = 'CartItemOutputRepresentation') {
|
|
|
2748
2748
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
2749
2749
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
2750
2750
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
2751
|
-
const referencepath_attributeCategories_itemValidationError = validate$
|
|
2751
|
+
const referencepath_attributeCategories_itemValidationError = validate$y(obj_attributeCategories_item, path_attributeCategories_item);
|
|
2752
2752
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
2753
2753
|
let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
2754
2754
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2765,7 +2765,7 @@ function validate$p(obj, path = 'CartItemOutputRepresentation') {
|
|
|
2765
2765
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
2766
2766
|
const obj_attributes_item = obj_attributes[i];
|
|
2767
2767
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
2768
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
2768
|
+
const referencepath_attributes_itemValidationError = validate$z(obj_attributes_item, path_attributes_item);
|
|
2769
2769
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
2770
2770
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
2771
2771
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3055,7 +3055,7 @@ function equals$8(existing, incoming) {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
3057
|
const VERSION$7 = "dbbe0e43dcf8f1d5334798bb12acca37";
|
|
3058
|
-
function validate$
|
|
3058
|
+
function validate$w(obj, path = 'CartItemsOutputRepresentation') {
|
|
3059
3059
|
const v_error = (() => {
|
|
3060
3060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3061
3061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3069,7 +3069,7 @@ function validate$o(obj, path = 'CartItemsOutputRepresentation') {
|
|
|
3069
3069
|
for (let i = 0; i < obj_records.length; i++) {
|
|
3070
3070
|
const obj_records_item = obj_records[i];
|
|
3071
3071
|
const path_records_item = path_records + '[' + i + ']';
|
|
3072
|
-
const referencepath_records_itemValidationError = validate$
|
|
3072
|
+
const referencepath_records_itemValidationError = validate$x(obj_records_item, path_records_item);
|
|
3073
3073
|
if (referencepath_records_itemValidationError !== null) {
|
|
3074
3074
|
let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
|
|
3075
3075
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3145,7 +3145,7 @@ function equals$7(existing, incoming) {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
|
|
3147
3147
|
const VERSION$6 = "ce1e52694d8508b2f5239ba28287dc1e";
|
|
3148
|
-
function validate$
|
|
3148
|
+
function validate$v(obj, path = 'PricingTotalOutputRepresentation') {
|
|
3149
3149
|
const v_error = (() => {
|
|
3150
3150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3151
3151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3263,14 +3263,14 @@ function equals$6(existing, incoming) {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
|
|
3265
3265
|
const VERSION$5 = "db83704358e5d7a3f3f3622cdd0a5114";
|
|
3266
|
-
function validate$
|
|
3266
|
+
function validate$u(obj, path = 'GetCartOutputRepresentation') {
|
|
3267
3267
|
const v_error = (() => {
|
|
3268
3268
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3269
3269
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3270
3270
|
}
|
|
3271
3271
|
const obj_apiStatus = obj.apiStatus;
|
|
3272
3272
|
const path_apiStatus = path + '.apiStatus';
|
|
3273
|
-
const referencepath_apiStatusValidationError = validate$
|
|
3273
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
3274
3274
|
if (referencepath_apiStatusValidationError !== null) {
|
|
3275
3275
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
3276
3276
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3286,7 +3286,7 @@ function validate$m(obj, path = 'GetCartOutputRepresentation') {
|
|
|
3286
3286
|
if (obj.cartItems !== undefined) {
|
|
3287
3287
|
const obj_cartItems = obj.cartItems;
|
|
3288
3288
|
const path_cartItems = path + '.cartItems';
|
|
3289
|
-
const referencepath_cartItemsValidationError = validate$
|
|
3289
|
+
const referencepath_cartItemsValidationError = validate$w(obj_cartItems, path_cartItems);
|
|
3290
3290
|
if (referencepath_cartItemsValidationError !== null) {
|
|
3291
3291
|
let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
|
|
3292
3292
|
message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3302,7 +3302,7 @@ function validate$m(obj, path = 'GetCartOutputRepresentation') {
|
|
|
3302
3302
|
for (let i = 0; i < obj_totals.length; i++) {
|
|
3303
3303
|
const obj_totals_item = obj_totals[i];
|
|
3304
3304
|
const path_totals_item = path_totals + '[' + i + ']';
|
|
3305
|
-
const referencepath_totals_itemValidationError = validate$
|
|
3305
|
+
const referencepath_totals_itemValidationError = validate$v(obj_totals_item, path_totals_item);
|
|
3306
3306
|
if (referencepath_totals_itemValidationError !== null) {
|
|
3307
3307
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
|
|
3308
3308
|
message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3406,7 +3406,7 @@ function equals$5(existing, incoming) {
|
|
|
3406
3406
|
}
|
|
3407
3407
|
const ingest$5 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3408
3408
|
if (process.env.NODE_ENV !== 'production') {
|
|
3409
|
-
const validateError = validate$
|
|
3409
|
+
const validateError = validate$u(input);
|
|
3410
3410
|
if (validateError !== null) {
|
|
3411
3411
|
throw validateError;
|
|
3412
3412
|
}
|
|
@@ -3558,7 +3558,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
|
|
|
3558
3558
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3559
3559
|
};
|
|
3560
3560
|
|
|
3561
|
-
function validate$
|
|
3561
|
+
function validate$t(obj, path = 'UpdateCartInputRepresentation') {
|
|
3562
3562
|
const v_error = (() => {
|
|
3563
3563
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3564
3564
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3593,7 +3593,7 @@ function validate$l(obj, path = 'UpdateCartInputRepresentation') {
|
|
|
3593
3593
|
return v_error === undefined ? null : v_error;
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
function validate$
|
|
3596
|
+
function validate$s(obj, path = 'ValidationResultOutputRepresentation') {
|
|
3597
3597
|
const v_error = (() => {
|
|
3598
3598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3599
3599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3637,7 +3637,7 @@ function validate$k(obj, path = 'ValidationResultOutputRepresentation') {
|
|
|
3637
3637
|
return v_error === undefined ? null : v_error;
|
|
3638
3638
|
}
|
|
3639
3639
|
|
|
3640
|
-
function validate$
|
|
3640
|
+
function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
|
|
3641
3641
|
const v_error = (() => {
|
|
3642
3642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3643
3643
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3651,7 +3651,7 @@ function validate$j(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
3651
3651
|
for (let i = 0; i < obj_attributeErrors.length; i++) {
|
|
3652
3652
|
const obj_attributeErrors_item = obj_attributeErrors[i];
|
|
3653
3653
|
const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
|
|
3654
|
-
const referencepath_attributeErrors_itemValidationError = validate$
|
|
3654
|
+
const referencepath_attributeErrors_itemValidationError = validate$s(obj_attributeErrors_item, path_attributeErrors_item);
|
|
3655
3655
|
if (referencepath_attributeErrors_itemValidationError !== null) {
|
|
3656
3656
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
|
|
3657
3657
|
message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3668,7 +3668,7 @@ function validate$j(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
3668
3668
|
for (let i = 0; i < obj_breErrors.length; i++) {
|
|
3669
3669
|
const obj_breErrors_item = obj_breErrors[i];
|
|
3670
3670
|
const path_breErrors_item = path_breErrors + '[' + i + ']';
|
|
3671
|
-
const referencepath_breErrors_itemValidationError = validate$
|
|
3671
|
+
const referencepath_breErrors_itemValidationError = validate$s(obj_breErrors_item, path_breErrors_item);
|
|
3672
3672
|
if (referencepath_breErrors_itemValidationError !== null) {
|
|
3673
3673
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
|
|
3674
3674
|
message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3685,7 +3685,7 @@ function validate$j(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
3685
3685
|
for (let i = 0; i < obj_cardinalityErrors.length; i++) {
|
|
3686
3686
|
const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
|
|
3687
3687
|
const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
|
|
3688
|
-
const referencepath_cardinalityErrors_itemValidationError = validate$
|
|
3688
|
+
const referencepath_cardinalityErrors_itemValidationError = validate$s(obj_cardinalityErrors_item, path_cardinalityErrors_item);
|
|
3689
3689
|
if (referencepath_cardinalityErrors_itemValidationError !== null) {
|
|
3690
3690
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
|
|
3691
3691
|
message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3706,14 +3706,14 @@ function validate$j(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
3706
3706
|
|
|
3707
3707
|
const TTL$4 = 1000;
|
|
3708
3708
|
const VERSION$4 = "b0d6081a9f20773285c8aeb2e715ead3";
|
|
3709
|
-
function validate$
|
|
3709
|
+
function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
|
|
3710
3710
|
const v_error = (() => {
|
|
3711
3711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3712
3712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3713
3713
|
}
|
|
3714
3714
|
const obj_apiStatus = obj.apiStatus;
|
|
3715
3715
|
const path_apiStatus = path + '.apiStatus';
|
|
3716
|
-
const referencepath_apiStatusValidationError = validate$
|
|
3716
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
3717
3717
|
if (referencepath_apiStatusValidationError !== null) {
|
|
3718
3718
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
3719
3719
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3721,7 +3721,7 @@ function validate$i(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
3721
3721
|
}
|
|
3722
3722
|
const obj_validationResults = obj.validationResults;
|
|
3723
3723
|
const path_validationResults = path + '.validationResults';
|
|
3724
|
-
const referencepath_validationResultsValidationError = validate$
|
|
3724
|
+
const referencepath_validationResultsValidationError = validate$r(obj_validationResults, path_validationResults);
|
|
3725
3725
|
if (referencepath_validationResultsValidationError !== null) {
|
|
3726
3726
|
let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
|
|
3727
3727
|
message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3759,7 +3759,7 @@ function equals$4(existing, incoming) {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
const ingest$4 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3761
3761
|
if (process.env.NODE_ENV !== 'production') {
|
|
3762
|
-
const validateError = validate$
|
|
3762
|
+
const validateError = validate$q(input);
|
|
3763
3763
|
if (validateError !== null) {
|
|
3764
3764
|
throw validateError;
|
|
3765
3765
|
}
|
|
@@ -3827,7 +3827,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
3827
3827
|
const config = {};
|
|
3828
3828
|
typeCheckConfig$b(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
3829
3829
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
3830
|
-
const referenceUpdateCartInputRepresentationValidationError = validate$
|
|
3830
|
+
const referenceUpdateCartInputRepresentationValidationError = validate$t(untrustedConfig_requestBody);
|
|
3831
3831
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
3832
3832
|
config.requestBody = untrustedConfig_requestBody;
|
|
3833
3833
|
}
|
|
@@ -3875,7 +3875,7 @@ const updateCartAdapterFactory = (luvio) => {
|
|
|
3875
3875
|
};
|
|
3876
3876
|
};
|
|
3877
3877
|
|
|
3878
|
-
function validate$
|
|
3878
|
+
function validate$p(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
3879
3879
|
const v_error = (() => {
|
|
3880
3880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3881
3881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3914,14 +3914,14 @@ function validate$h(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
|
3914
3914
|
|
|
3915
3915
|
const TTL$3 = 1000;
|
|
3916
3916
|
const VERSION$3 = "7f205594e7cf298b4bee71200afab626";
|
|
3917
|
-
function validate$
|
|
3917
|
+
function validate$o(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
3918
3918
|
const v_error = (() => {
|
|
3919
3919
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3920
3920
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3921
3921
|
}
|
|
3922
3922
|
const obj_apiStatus = obj.apiStatus;
|
|
3923
3923
|
const path_apiStatus = path + '.apiStatus';
|
|
3924
|
-
const referencepath_apiStatusValidationError = validate$
|
|
3924
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
3925
3925
|
if (referencepath_apiStatusValidationError !== null) {
|
|
3926
3926
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
3927
3927
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3966,7 +3966,7 @@ function equals$3(existing, incoming) {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
const ingest$3 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3968
3968
|
if (process.env.NODE_ENV !== 'production') {
|
|
3969
|
-
const validateError = validate$
|
|
3969
|
+
const validateError = validate$o(input);
|
|
3970
3970
|
if (validateError !== null) {
|
|
3971
3971
|
throw validateError;
|
|
3972
3972
|
}
|
|
@@ -4034,7 +4034,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4034
4034
|
const config = {};
|
|
4035
4035
|
typeCheckConfig$b(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
4036
4036
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4037
|
-
const referenceUpdateCartItemsInputRepresentationValidationError = validate$
|
|
4037
|
+
const referenceUpdateCartItemsInputRepresentationValidationError = validate$p(untrustedConfig_requestBody);
|
|
4038
4038
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
4039
4039
|
config.requestBody = untrustedConfig_requestBody;
|
|
4040
4040
|
}
|
|
@@ -4082,7 +4082,7 @@ const updateCartItemsAdapterFactory = (luvio) => {
|
|
|
4082
4082
|
};
|
|
4083
4083
|
};
|
|
4084
4084
|
|
|
4085
|
-
function validate$
|
|
4085
|
+
function validate$n(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
4086
4086
|
const v_error = (() => {
|
|
4087
4087
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4088
4088
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4121,14 +4121,14 @@ function validate$f(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
|
4121
4121
|
|
|
4122
4122
|
const TTL$2 = 1000;
|
|
4123
4123
|
const VERSION$2 = "34153309b079451754e6d3fbf85bb8bd";
|
|
4124
|
-
function validate$
|
|
4124
|
+
function validate$m(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
4125
4125
|
const v_error = (() => {
|
|
4126
4126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4127
4127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4128
4128
|
}
|
|
4129
4129
|
const obj_apiStatus = obj.apiStatus;
|
|
4130
4130
|
const path_apiStatus = path + '.apiStatus';
|
|
4131
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4131
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
4132
4132
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4133
4133
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4134
4134
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4173,7 +4173,7 @@ function equals$2(existing, incoming) {
|
|
|
4173
4173
|
}
|
|
4174
4174
|
const ingest$2 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4175
4175
|
if (process.env.NODE_ENV !== 'production') {
|
|
4176
|
-
const validateError = validate$
|
|
4176
|
+
const validateError = validate$m(input);
|
|
4177
4177
|
if (validateError !== null) {
|
|
4178
4178
|
throw validateError;
|
|
4179
4179
|
}
|
|
@@ -4241,7 +4241,7 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
4241
4241
|
const config = {};
|
|
4242
4242
|
typeCheckConfig$b(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
4243
4243
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4244
|
-
const referenceCreateCartItemsInputRepresentationValidationError = validate$
|
|
4244
|
+
const referenceCreateCartItemsInputRepresentationValidationError = validate$n(untrustedConfig_requestBody);
|
|
4245
4245
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
4246
4246
|
config.requestBody = untrustedConfig_requestBody;
|
|
4247
4247
|
}
|
|
@@ -4289,7 +4289,7 @@ const createCartItemsAdapterFactory = (luvio) => {
|
|
|
4289
4289
|
};
|
|
4290
4290
|
};
|
|
4291
4291
|
|
|
4292
|
-
function validate$
|
|
4292
|
+
function validate$l(obj, path = 'PriceCartInputRepresentation') {
|
|
4293
4293
|
const v_error = (() => {
|
|
4294
4294
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4295
4295
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4328,14 +4328,14 @@ function validate$d(obj, path = 'PriceCartInputRepresentation') {
|
|
|
4328
4328
|
|
|
4329
4329
|
const TTL$1 = 1000;
|
|
4330
4330
|
const VERSION$1 = "b1e28ba15f534459065f2870a9dc703d";
|
|
4331
|
-
function validate$
|
|
4331
|
+
function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
4332
4332
|
const v_error = (() => {
|
|
4333
4333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4334
4334
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4335
4335
|
}
|
|
4336
4336
|
const obj_apiStatus = obj.apiStatus;
|
|
4337
4337
|
const path_apiStatus = path + '.apiStatus';
|
|
4338
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4338
|
+
const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
|
|
4339
4339
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4340
4340
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4341
4341
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4357,7 +4357,7 @@ function validate$c(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
4357
4357
|
for (let i = 0; i < obj_cartPricingTotals.length; i++) {
|
|
4358
4358
|
const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
|
|
4359
4359
|
const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
|
|
4360
|
-
const referencepath_cartPricingTotals_itemValidationError = validate$
|
|
4360
|
+
const referencepath_cartPricingTotals_itemValidationError = validate$v(obj_cartPricingTotals_item, path_cartPricingTotals_item);
|
|
4361
4361
|
if (referencepath_cartPricingTotals_itemValidationError !== null) {
|
|
4362
4362
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
|
|
4363
4363
|
message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4397,7 +4397,7 @@ function equals$1(existing, incoming) {
|
|
|
4397
4397
|
}
|
|
4398
4398
|
const ingest$1 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4399
4399
|
if (process.env.NODE_ENV !== 'production') {
|
|
4400
|
-
const validateError = validate$
|
|
4400
|
+
const validateError = validate$k(input);
|
|
4401
4401
|
if (validateError !== null) {
|
|
4402
4402
|
throw validateError;
|
|
4403
4403
|
}
|
|
@@ -4465,7 +4465,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4465
4465
|
const config = {};
|
|
4466
4466
|
typeCheckConfig$b(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
4467
4467
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4468
|
-
const referencePriceCartInputRepresentationValidationError = validate$
|
|
4468
|
+
const referencePriceCartInputRepresentationValidationError = validate$l(untrustedConfig_requestBody);
|
|
4469
4469
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
4470
4470
|
config.requestBody = untrustedConfig_requestBody;
|
|
4471
4471
|
}
|
|
@@ -4513,23 +4513,190 @@ const priceCartAdapterFactory = (luvio) => {
|
|
|
4513
4513
|
};
|
|
4514
4514
|
};
|
|
4515
4515
|
|
|
4516
|
-
function validate$
|
|
4516
|
+
function validate$j(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
4517
|
+
const v_error = (() => {
|
|
4518
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4519
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4520
|
+
}
|
|
4521
|
+
const obj_addedObject = obj.addedObject;
|
|
4522
|
+
const path_addedObject = path + '.addedObject';
|
|
4523
|
+
if (obj_addedObject === undefined) {
|
|
4524
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_addedObject + '" (at "' + path_addedObject + '")');
|
|
4525
|
+
}
|
|
4526
|
+
if (obj.path !== undefined) {
|
|
4527
|
+
const obj_path = obj.path;
|
|
4528
|
+
const path_path = path + '.path';
|
|
4529
|
+
if (!ArrayIsArray(obj_path)) {
|
|
4530
|
+
return new TypeError('Expected "array" but received "' + typeof obj_path + '" (at "' + path_path + '")');
|
|
4531
|
+
}
|
|
4532
|
+
for (let i = 0; i < obj_path.length; i++) {
|
|
4533
|
+
const obj_path_item = obj_path[i];
|
|
4534
|
+
const path_path_item = path_path + '[' + i + ']';
|
|
4535
|
+
if (typeof obj_path_item !== 'string') {
|
|
4536
|
+
return new TypeError('Expected "string" but received "' + typeof obj_path_item + '" (at "' + path_path_item + '")');
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
})();
|
|
4541
|
+
return v_error === undefined ? null : v_error;
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
function validate$i(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
4517
4545
|
const v_error = (() => {
|
|
4518
4546
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4519
4547
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4520
4548
|
}
|
|
4549
|
+
if (obj.executePricing !== undefined) {
|
|
4550
|
+
const obj_executePricing = obj.executePricing;
|
|
4551
|
+
const path_executePricing = path + '.executePricing';
|
|
4552
|
+
if (typeof obj_executePricing !== 'boolean') {
|
|
4553
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_executePricing + '" (at "' + path_executePricing + '")');
|
|
4554
|
+
}
|
|
4555
|
+
}
|
|
4556
|
+
if (obj.pricingProcedure !== undefined) {
|
|
4557
|
+
const obj_pricingProcedure = obj.pricingProcedure;
|
|
4558
|
+
const path_pricingProcedure = path + '.pricingProcedure';
|
|
4559
|
+
if (typeof obj_pricingProcedure !== 'string') {
|
|
4560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pricingProcedure + '" (at "' + path_pricingProcedure + '")');
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
if (obj.returnProductCatalogData !== undefined) {
|
|
4564
|
+
const obj_returnProductCatalogData = obj.returnProductCatalogData;
|
|
4565
|
+
const path_returnProductCatalogData = path + '.returnProductCatalogData';
|
|
4566
|
+
if (typeof obj_returnProductCatalogData !== 'boolean') {
|
|
4567
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_returnProductCatalogData + '" (at "' + path_returnProductCatalogData + '")');
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4570
|
+
})();
|
|
4571
|
+
return v_error === undefined ? null : v_error;
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
function validate$h(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
4575
|
+
const v_error = (() => {
|
|
4576
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4577
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4578
|
+
}
|
|
4579
|
+
if (obj.path !== undefined) {
|
|
4580
|
+
const obj_path = obj.path;
|
|
4581
|
+
const path_path = path + '.path';
|
|
4582
|
+
if (!ArrayIsArray(obj_path)) {
|
|
4583
|
+
return new TypeError('Expected "array" but received "' + typeof obj_path + '" (at "' + path_path + '")');
|
|
4584
|
+
}
|
|
4585
|
+
for (let i = 0; i < obj_path.length; i++) {
|
|
4586
|
+
const obj_path_item = obj_path[i];
|
|
4587
|
+
const path_path_item = path_path + '[' + i + ']';
|
|
4588
|
+
if (typeof obj_path_item !== 'string') {
|
|
4589
|
+
return new TypeError('Expected "string" but received "' + typeof obj_path_item + '" (at "' + path_path_item + '")');
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
})();
|
|
4594
|
+
return v_error === undefined ? null : v_error;
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
function validate$g(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
4598
|
+
const v_error = (() => {
|
|
4599
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4600
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4601
|
+
}
|
|
4602
|
+
if (obj.path !== undefined) {
|
|
4603
|
+
const obj_path = obj.path;
|
|
4604
|
+
const path_path = path + '.path';
|
|
4605
|
+
if (!ArrayIsArray(obj_path)) {
|
|
4606
|
+
return new TypeError('Expected "array" but received "' + typeof obj_path + '" (at "' + path_path + '")');
|
|
4607
|
+
}
|
|
4608
|
+
for (let i = 0; i < obj_path.length; i++) {
|
|
4609
|
+
const obj_path_item = obj_path[i];
|
|
4610
|
+
const path_path_item = path_path + '[' + i + ']';
|
|
4611
|
+
if (typeof obj_path_item !== 'string') {
|
|
4612
|
+
return new TypeError('Expected "string" but received "' + typeof obj_path_item + '" (at "' + path_path_item + '")');
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
4616
|
+
const obj_updatedAttributes = obj.updatedAttributes;
|
|
4617
|
+
const path_updatedAttributes = path + '.updatedAttributes';
|
|
4618
|
+
if (obj_updatedAttributes === undefined) {
|
|
4619
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_updatedAttributes + '" (at "' + path_updatedAttributes + '")');
|
|
4620
|
+
}
|
|
4621
|
+
})();
|
|
4622
|
+
return v_error === undefined ? null : v_error;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
|
|
4626
|
+
const v_error = (() => {
|
|
4627
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4628
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4629
|
+
}
|
|
4630
|
+
if (obj.addedNodes !== undefined) {
|
|
4631
|
+
const obj_addedNodes = obj.addedNodes;
|
|
4632
|
+
const path_addedNodes = path + '.addedNodes';
|
|
4633
|
+
if (!ArrayIsArray(obj_addedNodes)) {
|
|
4634
|
+
return new TypeError('Expected "array" but received "' + typeof obj_addedNodes + '" (at "' + path_addedNodes + '")');
|
|
4635
|
+
}
|
|
4636
|
+
for (let i = 0; i < obj_addedNodes.length; i++) {
|
|
4637
|
+
const obj_addedNodes_item = obj_addedNodes[i];
|
|
4638
|
+
const path_addedNodes_item = path_addedNodes + '[' + i + ']';
|
|
4639
|
+
const referencepath_addedNodes_itemValidationError = validate$j(obj_addedNodes_item, path_addedNodes_item);
|
|
4640
|
+
if (referencepath_addedNodes_itemValidationError !== null) {
|
|
4641
|
+
let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
|
|
4642
|
+
message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4643
|
+
return new TypeError(message);
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
}
|
|
4521
4647
|
if (obj.configuratorOptions !== undefined) {
|
|
4522
4648
|
const obj_configuratorOptions = obj.configuratorOptions;
|
|
4523
4649
|
const path_configuratorOptions = path + '.configuratorOptions';
|
|
4524
|
-
|
|
4525
|
-
|
|
4650
|
+
const referencepath_configuratorOptionsValidationError = validate$i(obj_configuratorOptions, path_configuratorOptions);
|
|
4651
|
+
if (referencepath_configuratorOptionsValidationError !== null) {
|
|
4652
|
+
let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
|
|
4653
|
+
message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4654
|
+
return new TypeError(message);
|
|
4526
4655
|
}
|
|
4527
4656
|
}
|
|
4528
4657
|
if (obj.correlationId !== undefined) {
|
|
4529
4658
|
const obj_correlationId = obj.correlationId;
|
|
4530
4659
|
const path_correlationId = path + '.correlationId';
|
|
4531
|
-
|
|
4532
|
-
|
|
4660
|
+
let obj_correlationId_union0 = null;
|
|
4661
|
+
const obj_correlationId_union0_error = (() => {
|
|
4662
|
+
if (typeof obj_correlationId !== 'string') {
|
|
4663
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
4664
|
+
}
|
|
4665
|
+
})();
|
|
4666
|
+
if (obj_correlationId_union0_error != null) {
|
|
4667
|
+
obj_correlationId_union0 = obj_correlationId_union0_error.message;
|
|
4668
|
+
}
|
|
4669
|
+
let obj_correlationId_union1 = null;
|
|
4670
|
+
const obj_correlationId_union1_error = (() => {
|
|
4671
|
+
if (obj_correlationId !== null) {
|
|
4672
|
+
return new TypeError('Expected "null" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
4673
|
+
}
|
|
4674
|
+
})();
|
|
4675
|
+
if (obj_correlationId_union1_error != null) {
|
|
4676
|
+
obj_correlationId_union1 = obj_correlationId_union1_error.message;
|
|
4677
|
+
}
|
|
4678
|
+
if (obj_correlationId_union0 && obj_correlationId_union1) {
|
|
4679
|
+
let message = 'Object doesn\'t match union (at "' + path_correlationId + '")';
|
|
4680
|
+
message += '\n' + obj_correlationId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4681
|
+
message += '\n' + obj_correlationId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4682
|
+
return new TypeError(message);
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
if (obj.deletedNodes !== undefined) {
|
|
4686
|
+
const obj_deletedNodes = obj.deletedNodes;
|
|
4687
|
+
const path_deletedNodes = path + '.deletedNodes';
|
|
4688
|
+
if (!ArrayIsArray(obj_deletedNodes)) {
|
|
4689
|
+
return new TypeError('Expected "array" but received "' + typeof obj_deletedNodes + '" (at "' + path_deletedNodes + '")');
|
|
4690
|
+
}
|
|
4691
|
+
for (let i = 0; i < obj_deletedNodes.length; i++) {
|
|
4692
|
+
const obj_deletedNodes_item = obj_deletedNodes[i];
|
|
4693
|
+
const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
|
|
4694
|
+
const referencepath_deletedNodes_itemValidationError = validate$h(obj_deletedNodes_item, path_deletedNodes_item);
|
|
4695
|
+
if (referencepath_deletedNodes_itemValidationError !== null) {
|
|
4696
|
+
let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
|
|
4697
|
+
message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4698
|
+
return new TypeError(message);
|
|
4699
|
+
}
|
|
4533
4700
|
}
|
|
4534
4701
|
}
|
|
4535
4702
|
if (obj.qualificationContext !== undefined) {
|
|
@@ -4539,10 +4706,33 @@ function validate$b(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
4539
4706
|
return new TypeError('Expected "object" but received "' + typeof obj_qualificationContext + '" (at "' + path_qualificationContext + '")');
|
|
4540
4707
|
}
|
|
4541
4708
|
}
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4709
|
+
if (obj.recordId !== undefined) {
|
|
4710
|
+
const obj_recordId = obj.recordId;
|
|
4711
|
+
const path_recordId = path + '.recordId';
|
|
4712
|
+
let obj_recordId_union0 = null;
|
|
4713
|
+
const obj_recordId_union0_error = (() => {
|
|
4714
|
+
if (typeof obj_recordId !== 'string') {
|
|
4715
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
4716
|
+
}
|
|
4717
|
+
})();
|
|
4718
|
+
if (obj_recordId_union0_error != null) {
|
|
4719
|
+
obj_recordId_union0 = obj_recordId_union0_error.message;
|
|
4720
|
+
}
|
|
4721
|
+
let obj_recordId_union1 = null;
|
|
4722
|
+
const obj_recordId_union1_error = (() => {
|
|
4723
|
+
if (obj_recordId !== null) {
|
|
4724
|
+
return new TypeError('Expected "null" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
4725
|
+
}
|
|
4726
|
+
})();
|
|
4727
|
+
if (obj_recordId_union1_error != null) {
|
|
4728
|
+
obj_recordId_union1 = obj_recordId_union1_error.message;
|
|
4729
|
+
}
|
|
4730
|
+
if (obj_recordId_union0 && obj_recordId_union1) {
|
|
4731
|
+
let message = 'Object doesn\'t match union (at "' + path_recordId + '")';
|
|
4732
|
+
message += '\n' + obj_recordId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4733
|
+
message += '\n' + obj_recordId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4734
|
+
return new TypeError(message);
|
|
4735
|
+
}
|
|
4546
4736
|
}
|
|
4547
4737
|
if (obj.transactionContext !== undefined) {
|
|
4548
4738
|
const obj_transactionContext = obj.transactionContext;
|
|
@@ -4554,15 +4744,139 @@ function validate$b(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
4554
4744
|
if (obj.transactionContextId !== undefined) {
|
|
4555
4745
|
const obj_transactionContextId = obj.transactionContextId;
|
|
4556
4746
|
const path_transactionContextId = path + '.transactionContextId';
|
|
4557
|
-
|
|
4558
|
-
|
|
4747
|
+
let obj_transactionContextId_union0 = null;
|
|
4748
|
+
const obj_transactionContextId_union0_error = (() => {
|
|
4749
|
+
if (typeof obj_transactionContextId !== 'string') {
|
|
4750
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transactionContextId + '" (at "' + path_transactionContextId + '")');
|
|
4751
|
+
}
|
|
4752
|
+
})();
|
|
4753
|
+
if (obj_transactionContextId_union0_error != null) {
|
|
4754
|
+
obj_transactionContextId_union0 = obj_transactionContextId_union0_error.message;
|
|
4755
|
+
}
|
|
4756
|
+
let obj_transactionContextId_union1 = null;
|
|
4757
|
+
const obj_transactionContextId_union1_error = (() => {
|
|
4758
|
+
if (obj_transactionContextId !== null) {
|
|
4759
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transactionContextId + '" (at "' + path_transactionContextId + '")');
|
|
4760
|
+
}
|
|
4761
|
+
})();
|
|
4762
|
+
if (obj_transactionContextId_union1_error != null) {
|
|
4763
|
+
obj_transactionContextId_union1 = obj_transactionContextId_union1_error.message;
|
|
4764
|
+
}
|
|
4765
|
+
if (obj_transactionContextId_union0 && obj_transactionContextId_union1) {
|
|
4766
|
+
let message = 'Object doesn\'t match union (at "' + path_transactionContextId + '")';
|
|
4767
|
+
message += '\n' + obj_transactionContextId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4768
|
+
message += '\n' + obj_transactionContextId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4769
|
+
return new TypeError(message);
|
|
4770
|
+
}
|
|
4771
|
+
}
|
|
4772
|
+
if (obj.transactionId !== undefined) {
|
|
4773
|
+
const obj_transactionId = obj.transactionId;
|
|
4774
|
+
const path_transactionId = path + '.transactionId';
|
|
4775
|
+
let obj_transactionId_union0 = null;
|
|
4776
|
+
const obj_transactionId_union0_error = (() => {
|
|
4777
|
+
if (typeof obj_transactionId !== 'string') {
|
|
4778
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transactionId + '" (at "' + path_transactionId + '")');
|
|
4779
|
+
}
|
|
4780
|
+
})();
|
|
4781
|
+
if (obj_transactionId_union0_error != null) {
|
|
4782
|
+
obj_transactionId_union0 = obj_transactionId_union0_error.message;
|
|
4783
|
+
}
|
|
4784
|
+
let obj_transactionId_union1 = null;
|
|
4785
|
+
const obj_transactionId_union1_error = (() => {
|
|
4786
|
+
if (obj_transactionId !== null) {
|
|
4787
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transactionId + '" (at "' + path_transactionId + '")');
|
|
4788
|
+
}
|
|
4789
|
+
})();
|
|
4790
|
+
if (obj_transactionId_union1_error != null) {
|
|
4791
|
+
obj_transactionId_union1 = obj_transactionId_union1_error.message;
|
|
4792
|
+
}
|
|
4793
|
+
if (obj_transactionId_union0 && obj_transactionId_union1) {
|
|
4794
|
+
let message = 'Object doesn\'t match union (at "' + path_transactionId + '")';
|
|
4795
|
+
message += '\n' + obj_transactionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4796
|
+
message += '\n' + obj_transactionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4797
|
+
return new TypeError(message);
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
if (obj.transactionLineId !== undefined) {
|
|
4801
|
+
const obj_transactionLineId = obj.transactionLineId;
|
|
4802
|
+
const path_transactionLineId = path + '.transactionLineId';
|
|
4803
|
+
let obj_transactionLineId_union0 = null;
|
|
4804
|
+
const obj_transactionLineId_union0_error = (() => {
|
|
4805
|
+
if (typeof obj_transactionLineId !== 'string') {
|
|
4806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transactionLineId + '" (at "' + path_transactionLineId + '")');
|
|
4807
|
+
}
|
|
4808
|
+
})();
|
|
4809
|
+
if (obj_transactionLineId_union0_error != null) {
|
|
4810
|
+
obj_transactionLineId_union0 = obj_transactionLineId_union0_error.message;
|
|
4811
|
+
}
|
|
4812
|
+
let obj_transactionLineId_union1 = null;
|
|
4813
|
+
const obj_transactionLineId_union1_error = (() => {
|
|
4814
|
+
if (obj_transactionLineId !== null) {
|
|
4815
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transactionLineId + '" (at "' + path_transactionLineId + '")');
|
|
4816
|
+
}
|
|
4817
|
+
})();
|
|
4818
|
+
if (obj_transactionLineId_union1_error != null) {
|
|
4819
|
+
obj_transactionLineId_union1 = obj_transactionLineId_union1_error.message;
|
|
4820
|
+
}
|
|
4821
|
+
if (obj_transactionLineId_union0 && obj_transactionLineId_union1) {
|
|
4822
|
+
let message = 'Object doesn\'t match union (at "' + path_transactionLineId + '")';
|
|
4823
|
+
message += '\n' + obj_transactionLineId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4824
|
+
message += '\n' + obj_transactionLineId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4825
|
+
return new TypeError(message);
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
if (obj.updatedNodes !== undefined) {
|
|
4829
|
+
const obj_updatedNodes = obj.updatedNodes;
|
|
4830
|
+
const path_updatedNodes = path + '.updatedNodes';
|
|
4831
|
+
if (!ArrayIsArray(obj_updatedNodes)) {
|
|
4832
|
+
return new TypeError('Expected "array" but received "' + typeof obj_updatedNodes + '" (at "' + path_updatedNodes + '")');
|
|
4833
|
+
}
|
|
4834
|
+
for (let i = 0; i < obj_updatedNodes.length; i++) {
|
|
4835
|
+
const obj_updatedNodes_item = obj_updatedNodes[i];
|
|
4836
|
+
const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
|
|
4837
|
+
const referencepath_updatedNodes_itemValidationError = validate$g(obj_updatedNodes_item, path_updatedNodes_item);
|
|
4838
|
+
if (referencepath_updatedNodes_itemValidationError !== null) {
|
|
4839
|
+
let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
|
|
4840
|
+
message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4841
|
+
return new TypeError(message);
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
}
|
|
4845
|
+
})();
|
|
4846
|
+
return v_error === undefined ? null : v_error;
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
function validate$e(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
|
|
4850
|
+
const v_error = (() => {
|
|
4851
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4852
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4853
|
+
}
|
|
4854
|
+
if (obj.fieldApiName !== undefined) {
|
|
4855
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
4856
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
4857
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
4858
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
if (obj.fieldName !== undefined) {
|
|
4862
|
+
const obj_fieldName = obj.fieldName;
|
|
4863
|
+
const path_fieldName = path + '.fieldName';
|
|
4864
|
+
if (typeof obj_fieldName !== 'string') {
|
|
4865
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
if (obj.value !== undefined) {
|
|
4869
|
+
const obj_value = obj.value;
|
|
4870
|
+
const path_value = path + '.value';
|
|
4871
|
+
if (typeof obj_value !== 'string') {
|
|
4872
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
4559
4873
|
}
|
|
4560
4874
|
}
|
|
4561
4875
|
})();
|
|
4562
4876
|
return v_error === undefined ? null : v_error;
|
|
4563
4877
|
}
|
|
4564
4878
|
|
|
4565
|
-
function validate$
|
|
4879
|
+
function validate$d(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
|
|
4566
4880
|
const v_error = (() => {
|
|
4567
4881
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4568
4882
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4641,7 +4955,7 @@ function validate$a(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
|
|
|
4641
4955
|
return v_error === undefined ? null : v_error;
|
|
4642
4956
|
}
|
|
4643
4957
|
|
|
4644
|
-
function validate$
|
|
4958
|
+
function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
|
|
4645
4959
|
const v_error = (() => {
|
|
4646
4960
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4647
4961
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4683,7 +4997,7 @@ function validate$9(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
4683
4997
|
for (let i = 0; i < obj_values.length; i++) {
|
|
4684
4998
|
const obj_values_item = obj_values[i];
|
|
4685
4999
|
const path_values_item = path_values + '[' + i + ']';
|
|
4686
|
-
const referencepath_values_itemValidationError = validate$
|
|
5000
|
+
const referencepath_values_itemValidationError = validate$d(obj_values_item, path_values_item);
|
|
4687
5001
|
if (referencepath_values_itemValidationError !== null) {
|
|
4688
5002
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
4689
5003
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4695,7 +5009,7 @@ function validate$9(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
4695
5009
|
return v_error === undefined ? null : v_error;
|
|
4696
5010
|
}
|
|
4697
5011
|
|
|
4698
|
-
function validate$
|
|
5012
|
+
function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
4699
5013
|
const v_error = (() => {
|
|
4700
5014
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4701
5015
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4717,7 +5031,7 @@ function validate$8(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
4717
5031
|
if (obj.attributePicklist !== undefined) {
|
|
4718
5032
|
const obj_attributePicklist = obj.attributePicklist;
|
|
4719
5033
|
const path_attributePicklist = path + '.attributePicklist';
|
|
4720
|
-
const referencepath_attributePicklistValidationError = validate$
|
|
5034
|
+
const referencepath_attributePicklistValidationError = validate$c(obj_attributePicklist, path_attributePicklist);
|
|
4721
5035
|
if (referencepath_attributePicklistValidationError !== null) {
|
|
4722
5036
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
|
|
4723
5037
|
message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4861,7 +5175,7 @@ function validate$8(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
4861
5175
|
return v_error === undefined ? null : v_error;
|
|
4862
5176
|
}
|
|
4863
5177
|
|
|
4864
|
-
function validate$
|
|
5178
|
+
function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
|
|
4865
5179
|
const v_error = (() => {
|
|
4866
5180
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4867
5181
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4875,7 +5189,7 @@ function validate$7(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
|
|
|
4875
5189
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
4876
5190
|
const obj_attributes_item = obj_attributes[i];
|
|
4877
5191
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4878
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
5192
|
+
const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
|
|
4879
5193
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4880
5194
|
let message = 'Object doesn\'t match ConfiguratorAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4881
5195
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4936,7 +5250,7 @@ function validate$7(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
|
|
|
4936
5250
|
return v_error === undefined ? null : v_error;
|
|
4937
5251
|
}
|
|
4938
5252
|
|
|
4939
|
-
function validate$
|
|
5253
|
+
function validate$9(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
|
|
4940
5254
|
const v_error = (() => {
|
|
4941
5255
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4942
5256
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4987,7 +5301,7 @@ function validate$6(obj, path = 'ConfiguratorPricingModelOutputRepresentation')
|
|
|
4987
5301
|
return v_error === undefined ? null : v_error;
|
|
4988
5302
|
}
|
|
4989
5303
|
|
|
4990
|
-
function validate$
|
|
5304
|
+
function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
4991
5305
|
const v_error = (() => {
|
|
4992
5306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4993
5307
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5030,7 +5344,7 @@ function validate$5(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
|
5030
5344
|
if (obj.pricingModel !== undefined) {
|
|
5031
5345
|
const obj_pricingModel = obj.pricingModel;
|
|
5032
5346
|
const path_pricingModel = path + '.pricingModel';
|
|
5033
|
-
const referencepath_pricingModelValidationError = validate$
|
|
5347
|
+
const referencepath_pricingModelValidationError = validate$9(obj_pricingModel, path_pricingModel);
|
|
5034
5348
|
if (referencepath_pricingModelValidationError !== null) {
|
|
5035
5349
|
let message = 'Object doesn\'t match ConfiguratorPricingModelOutputRepresentation (at "' + path_pricingModel + '")\n';
|
|
5036
5350
|
message += referencepath_pricingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5044,11 +5358,44 @@ function validate$5(obj, path = 'ConfiguratorPriceOutputRepresentation') {
|
|
|
5044
5358
|
return v_error === undefined ? null : v_error;
|
|
5045
5359
|
}
|
|
5046
5360
|
|
|
5047
|
-
function validate$
|
|
5361
|
+
function validate$7(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
|
|
5362
|
+
const v_error = (() => {
|
|
5363
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5364
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5365
|
+
}
|
|
5366
|
+
if (obj.id !== undefined) {
|
|
5367
|
+
const obj_id = obj.id;
|
|
5368
|
+
const path_id = path + '.id';
|
|
5369
|
+
if (typeof obj_id !== 'string') {
|
|
5370
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
})();
|
|
5374
|
+
return v_error === undefined ? null : v_error;
|
|
5375
|
+
}
|
|
5376
|
+
|
|
5377
|
+
function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
|
|
5048
5378
|
const v_error = (() => {
|
|
5049
5379
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5050
5380
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5051
5381
|
}
|
|
5382
|
+
if (obj.classifications !== undefined) {
|
|
5383
|
+
const obj_classifications = obj.classifications;
|
|
5384
|
+
const path_classifications = path + '.classifications';
|
|
5385
|
+
if (!ArrayIsArray(obj_classifications)) {
|
|
5386
|
+
return new TypeError('Expected "array" but received "' + typeof obj_classifications + '" (at "' + path_classifications + '")');
|
|
5387
|
+
}
|
|
5388
|
+
for (let i = 0; i < obj_classifications.length; i++) {
|
|
5389
|
+
const obj_classifications_item = obj_classifications[i];
|
|
5390
|
+
const path_classifications_item = path_classifications + '[' + i + ']';
|
|
5391
|
+
const referencepath_classifications_itemValidationError = validate$7(obj_classifications_item, path_classifications_item);
|
|
5392
|
+
if (referencepath_classifications_itemValidationError !== null) {
|
|
5393
|
+
let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_classifications_item + '")\n';
|
|
5394
|
+
message += referencepath_classifications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5395
|
+
return new TypeError(message);
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5052
5399
|
if (obj.code !== undefined) {
|
|
5053
5400
|
const obj_code = obj.code;
|
|
5054
5401
|
const path_code = path + '.code';
|
|
@@ -5126,7 +5473,7 @@ function validate$4(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
5126
5473
|
return v_error === undefined ? null : v_error;
|
|
5127
5474
|
}
|
|
5128
5475
|
|
|
5129
|
-
function validate$
|
|
5476
|
+
function validate$5(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
|
|
5130
5477
|
const v_error = (() => {
|
|
5131
5478
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5132
5479
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5138,6 +5485,20 @@ function validate$3(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
5138
5485
|
return new TypeError('Expected "string" but received "' + typeof obj_childProductId + '" (at "' + path_childProductId + '")');
|
|
5139
5486
|
}
|
|
5140
5487
|
}
|
|
5488
|
+
if (obj.childSellingModelId !== undefined) {
|
|
5489
|
+
const obj_childSellingModelId = obj.childSellingModelId;
|
|
5490
|
+
const path_childSellingModelId = path + '.childSellingModelId';
|
|
5491
|
+
if (typeof obj_childSellingModelId !== 'string') {
|
|
5492
|
+
return new TypeError('Expected "string" but received "' + typeof obj_childSellingModelId + '" (at "' + path_childSellingModelId + '")');
|
|
5493
|
+
}
|
|
5494
|
+
}
|
|
5495
|
+
if (obj.doesBundlePriceIncludeChild !== undefined) {
|
|
5496
|
+
const obj_doesBundlePriceIncludeChild = obj.doesBundlePriceIncludeChild;
|
|
5497
|
+
const path_doesBundlePriceIncludeChild = path + '.doesBundlePriceIncludeChild';
|
|
5498
|
+
if (typeof obj_doesBundlePriceIncludeChild !== 'boolean') {
|
|
5499
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_doesBundlePriceIncludeChild + '" (at "' + path_doesBundlePriceIncludeChild + '")');
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5141
5502
|
if (obj.id !== undefined) {
|
|
5142
5503
|
const obj_id = obj.id;
|
|
5143
5504
|
const path_id = path + '.id';
|
|
@@ -5179,6 +5540,13 @@ function validate$3(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
5179
5540
|
return new TypeError('Expected "string" but received "' + typeof obj_parentProductId + '" (at "' + path_parentProductId + '")');
|
|
5180
5541
|
}
|
|
5181
5542
|
}
|
|
5543
|
+
if (obj.parentSellingModelId !== undefined) {
|
|
5544
|
+
const obj_parentSellingModelId = obj.parentSellingModelId;
|
|
5545
|
+
const path_parentSellingModelId = path + '.parentSellingModelId';
|
|
5546
|
+
if (typeof obj_parentSellingModelId !== 'string') {
|
|
5547
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentSellingModelId + '" (at "' + path_parentSellingModelId + '")');
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5182
5550
|
if (obj.productClassificationId !== undefined) {
|
|
5183
5551
|
const obj_productClassificationId = obj.productClassificationId;
|
|
5184
5552
|
const path_productClassificationId = path + '.productClassificationId';
|
|
@@ -5193,6 +5561,13 @@ function validate$3(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
5193
5561
|
return new TypeError('Expected "string" but received "' + typeof obj_productComponentGroupId + '" (at "' + path_productComponentGroupId + '")');
|
|
5194
5562
|
}
|
|
5195
5563
|
}
|
|
5564
|
+
if (obj.productRelationshipTypeId !== undefined) {
|
|
5565
|
+
const obj_productRelationshipTypeId = obj.productRelationshipTypeId;
|
|
5566
|
+
const path_productRelationshipTypeId = path + '.productRelationshipTypeId';
|
|
5567
|
+
if (typeof obj_productRelationshipTypeId !== 'string') {
|
|
5568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productRelationshipTypeId + '" (at "' + path_productRelationshipTypeId + '")');
|
|
5569
|
+
}
|
|
5570
|
+
}
|
|
5196
5571
|
if (obj.quantity !== undefined) {
|
|
5197
5572
|
obj.quantity;
|
|
5198
5573
|
}
|
|
@@ -5214,6 +5589,97 @@ function validate$3(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
|
|
|
5214
5589
|
return v_error === undefined ? null : v_error;
|
|
5215
5590
|
}
|
|
5216
5591
|
|
|
5592
|
+
function validate$4(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
|
|
5593
|
+
const v_error = (() => {
|
|
5594
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5595
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5596
|
+
}
|
|
5597
|
+
if (obj.id !== undefined) {
|
|
5598
|
+
const obj_id = obj.id;
|
|
5599
|
+
const path_id = path + '.id';
|
|
5600
|
+
if (typeof obj_id !== 'string') {
|
|
5601
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5604
|
+
if (obj.name !== undefined) {
|
|
5605
|
+
const obj_name = obj.name;
|
|
5606
|
+
const path_name = path + '.name';
|
|
5607
|
+
if (typeof obj_name !== 'string') {
|
|
5608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
if (obj.pricingTerm !== undefined) {
|
|
5612
|
+
const obj_pricingTerm = obj.pricingTerm;
|
|
5613
|
+
const path_pricingTerm = path + '.pricingTerm';
|
|
5614
|
+
if (typeof obj_pricingTerm !== 'number' || (typeof obj_pricingTerm === 'number' && Math.floor(obj_pricingTerm) !== obj_pricingTerm)) {
|
|
5615
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_pricingTerm + '" (at "' + path_pricingTerm + '")');
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
if (obj.pricingTermUnit !== undefined) {
|
|
5619
|
+
const obj_pricingTermUnit = obj.pricingTermUnit;
|
|
5620
|
+
const path_pricingTermUnit = path + '.pricingTermUnit';
|
|
5621
|
+
if (typeof obj_pricingTermUnit !== 'string') {
|
|
5622
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pricingTermUnit + '" (at "' + path_pricingTermUnit + '")');
|
|
5623
|
+
}
|
|
5624
|
+
}
|
|
5625
|
+
if (obj.sellingModelType !== undefined) {
|
|
5626
|
+
const obj_sellingModelType = obj.sellingModelType;
|
|
5627
|
+
const path_sellingModelType = path + '.sellingModelType';
|
|
5628
|
+
if (typeof obj_sellingModelType !== 'string') {
|
|
5629
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sellingModelType + '" (at "' + path_sellingModelType + '")');
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5632
|
+
if (obj.status !== undefined) {
|
|
5633
|
+
const obj_status = obj.status;
|
|
5634
|
+
const path_status = path + '.status';
|
|
5635
|
+
if (typeof obj_status !== 'string') {
|
|
5636
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
5637
|
+
}
|
|
5638
|
+
}
|
|
5639
|
+
})();
|
|
5640
|
+
return v_error === undefined ? null : v_error;
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5643
|
+
function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
|
|
5644
|
+
const v_error = (() => {
|
|
5645
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5646
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5647
|
+
}
|
|
5648
|
+
if (obj.id !== undefined) {
|
|
5649
|
+
const obj_id = obj.id;
|
|
5650
|
+
const path_id = path + '.id';
|
|
5651
|
+
if (typeof obj_id !== 'string') {
|
|
5652
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5653
|
+
}
|
|
5654
|
+
}
|
|
5655
|
+
if (obj.productId !== undefined) {
|
|
5656
|
+
const obj_productId = obj.productId;
|
|
5657
|
+
const path_productId = path + '.productId';
|
|
5658
|
+
if (typeof obj_productId !== 'string') {
|
|
5659
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
if (obj.productSellingModel !== undefined) {
|
|
5663
|
+
const obj_productSellingModel = obj.productSellingModel;
|
|
5664
|
+
const path_productSellingModel = path + '.productSellingModel';
|
|
5665
|
+
const referencepath_productSellingModelValidationError = validate$4(obj_productSellingModel, path_productSellingModel);
|
|
5666
|
+
if (referencepath_productSellingModelValidationError !== null) {
|
|
5667
|
+
let message = 'Object doesn\'t match ConfiguratorProductSellingModelOutputRepresentation (at "' + path_productSellingModel + '")\n';
|
|
5668
|
+
message += referencepath_productSellingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5669
|
+
return new TypeError(message);
|
|
5670
|
+
}
|
|
5671
|
+
}
|
|
5672
|
+
if (obj.productSellingModelId !== undefined) {
|
|
5673
|
+
const obj_productSellingModelId = obj.productSellingModelId;
|
|
5674
|
+
const path_productSellingModelId = path + '.productSellingModelId';
|
|
5675
|
+
if (typeof obj_productSellingModelId !== 'string') {
|
|
5676
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productSellingModelId + '" (at "' + path_productSellingModelId + '")');
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
})();
|
|
5680
|
+
return v_error === undefined ? null : v_error;
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5217
5683
|
function validate$2(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
|
|
5218
5684
|
const v_error = (() => {
|
|
5219
5685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5242,6 +5708,23 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5242
5708
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5243
5709
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5244
5710
|
}
|
|
5711
|
+
if (obj.additionalFields !== undefined) {
|
|
5712
|
+
const obj_additionalFields = obj.additionalFields;
|
|
5713
|
+
const path_additionalFields = path + '.additionalFields';
|
|
5714
|
+
if (!ArrayIsArray(obj_additionalFields)) {
|
|
5715
|
+
return new TypeError('Expected "array" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
|
|
5716
|
+
}
|
|
5717
|
+
for (let i = 0; i < obj_additionalFields.length; i++) {
|
|
5718
|
+
const obj_additionalFields_item = obj_additionalFields[i];
|
|
5719
|
+
const path_additionalFields_item = path_additionalFields + '[' + i + ']';
|
|
5720
|
+
const referencepath_additionalFields_itemValidationError = validate$e(obj_additionalFields_item, path_additionalFields_item);
|
|
5721
|
+
if (referencepath_additionalFields_itemValidationError !== null) {
|
|
5722
|
+
let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
|
|
5723
|
+
message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5724
|
+
return new TypeError(message);
|
|
5725
|
+
}
|
|
5726
|
+
}
|
|
5727
|
+
}
|
|
5245
5728
|
if (obj.attributeCategories !== undefined) {
|
|
5246
5729
|
const obj_attributeCategories = obj.attributeCategories;
|
|
5247
5730
|
const path_attributeCategories = path + '.attributeCategories';
|
|
@@ -5251,7 +5734,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5251
5734
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
5252
5735
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
5253
5736
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
5254
|
-
const referencepath_attributeCategories_itemValidationError = validate$
|
|
5737
|
+
const referencepath_attributeCategories_itemValidationError = validate$a(obj_attributeCategories_item, path_attributeCategories_item);
|
|
5255
5738
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
5256
5739
|
let message = 'Object doesn\'t match ConfiguratorAttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
5257
5740
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5259,6 +5742,13 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5259
5742
|
}
|
|
5260
5743
|
}
|
|
5261
5744
|
}
|
|
5745
|
+
if (obj.availabilityDate !== undefined) {
|
|
5746
|
+
const obj_availabilityDate = obj.availabilityDate;
|
|
5747
|
+
const path_availabilityDate = path + '.availabilityDate';
|
|
5748
|
+
if (typeof obj_availabilityDate !== 'string') {
|
|
5749
|
+
return new TypeError('Expected "string" but received "' + typeof obj_availabilityDate + '" (at "' + path_availabilityDate + '")');
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5262
5752
|
if (obj.description !== undefined) {
|
|
5263
5753
|
const obj_description = obj.description;
|
|
5264
5754
|
const path_description = path + '.description';
|
|
@@ -5266,6 +5756,13 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5266
5756
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
5267
5757
|
}
|
|
5268
5758
|
}
|
|
5759
|
+
if (obj.discontinuedDate !== undefined) {
|
|
5760
|
+
const obj_discontinuedDate = obj.discontinuedDate;
|
|
5761
|
+
const path_discontinuedDate = path + '.discontinuedDate';
|
|
5762
|
+
if (typeof obj_discontinuedDate !== 'string') {
|
|
5763
|
+
return new TypeError('Expected "string" but received "' + typeof obj_discontinuedDate + '" (at "' + path_discontinuedDate + '")');
|
|
5764
|
+
}
|
|
5765
|
+
}
|
|
5269
5766
|
if (obj.displayUrl !== undefined) {
|
|
5270
5767
|
const obj_displayUrl = obj.displayUrl;
|
|
5271
5768
|
const path_displayUrl = path + '.displayUrl';
|
|
@@ -5273,6 +5770,13 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5273
5770
|
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
5274
5771
|
}
|
|
5275
5772
|
}
|
|
5773
|
+
if (obj.endOfLifeDate !== undefined) {
|
|
5774
|
+
const obj_endOfLifeDate = obj.endOfLifeDate;
|
|
5775
|
+
const path_endOfLifeDate = path + '.endOfLifeDate';
|
|
5776
|
+
if (typeof obj_endOfLifeDate !== 'string') {
|
|
5777
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endOfLifeDate + '" (at "' + path_endOfLifeDate + '")');
|
|
5778
|
+
}
|
|
5779
|
+
}
|
|
5276
5780
|
if (obj.id !== undefined) {
|
|
5277
5781
|
const obj_id = obj.id;
|
|
5278
5782
|
const path_id = path + '.id';
|
|
@@ -5280,6 +5784,20 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5280
5784
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5281
5785
|
}
|
|
5282
5786
|
}
|
|
5787
|
+
if (obj.isActive !== undefined) {
|
|
5788
|
+
const obj_isActive = obj.isActive;
|
|
5789
|
+
const path_isActive = path + '.isActive';
|
|
5790
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
5791
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
5792
|
+
}
|
|
5793
|
+
}
|
|
5794
|
+
if (obj.isAssetizable !== undefined) {
|
|
5795
|
+
const obj_isAssetizable = obj.isAssetizable;
|
|
5796
|
+
const path_isAssetizable = path + '.isAssetizable';
|
|
5797
|
+
if (typeof obj_isAssetizable !== 'boolean') {
|
|
5798
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAssetizable + '" (at "' + path_isAssetizable + '")');
|
|
5799
|
+
}
|
|
5800
|
+
}
|
|
5283
5801
|
if (obj.isComponentRequired !== undefined) {
|
|
5284
5802
|
const obj_isComponentRequired = obj.isComponentRequired;
|
|
5285
5803
|
const path_isComponentRequired = path + '.isComponentRequired';
|
|
@@ -5308,6 +5826,13 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5308
5826
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isQuantityEditable + '" (at "' + path_isQuantityEditable + '")');
|
|
5309
5827
|
}
|
|
5310
5828
|
}
|
|
5829
|
+
if (obj.isSoldOnlyWithOtherProds !== undefined) {
|
|
5830
|
+
const obj_isSoldOnlyWithOtherProds = obj.isSoldOnlyWithOtherProds;
|
|
5831
|
+
const path_isSoldOnlyWithOtherProds = path + '.isSoldOnlyWithOtherProds';
|
|
5832
|
+
if (typeof obj_isSoldOnlyWithOtherProds !== 'boolean') {
|
|
5833
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSoldOnlyWithOtherProds + '" (at "' + path_isSoldOnlyWithOtherProds + '")');
|
|
5834
|
+
}
|
|
5835
|
+
}
|
|
5311
5836
|
if (obj.name !== undefined) {
|
|
5312
5837
|
const obj_name = obj.name;
|
|
5313
5838
|
const path_name = path + '.name';
|
|
@@ -5315,6 +5840,13 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5315
5840
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5316
5841
|
}
|
|
5317
5842
|
}
|
|
5843
|
+
if (obj.nodeType !== undefined) {
|
|
5844
|
+
const obj_nodeType = obj.nodeType;
|
|
5845
|
+
const path_nodeType = path + '.nodeType';
|
|
5846
|
+
if (typeof obj_nodeType !== 'string') {
|
|
5847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nodeType + '" (at "' + path_nodeType + '")');
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5318
5850
|
if (obj.prices !== undefined) {
|
|
5319
5851
|
const obj_prices = obj.prices;
|
|
5320
5852
|
const path_prices = path + '.prices';
|
|
@@ -5324,7 +5856,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5324
5856
|
for (let i = 0; i < obj_prices.length; i++) {
|
|
5325
5857
|
const obj_prices_item = obj_prices[i];
|
|
5326
5858
|
const path_prices_item = path_prices + '[' + i + ']';
|
|
5327
|
-
const referencepath_prices_itemValidationError = validate$
|
|
5859
|
+
const referencepath_prices_itemValidationError = validate$8(obj_prices_item, path_prices_item);
|
|
5328
5860
|
if (referencepath_prices_itemValidationError !== null) {
|
|
5329
5861
|
let message = 'Object doesn\'t match ConfiguratorPriceOutputRepresentation (at "' + path_prices_item + '")\n';
|
|
5330
5862
|
message += referencepath_prices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5332,6 +5864,23 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5332
5864
|
}
|
|
5333
5865
|
}
|
|
5334
5866
|
}
|
|
5867
|
+
if (obj.productClassification !== undefined) {
|
|
5868
|
+
const obj_productClassification = obj.productClassification;
|
|
5869
|
+
const path_productClassification = path + '.productClassification';
|
|
5870
|
+
const referencepath_productClassificationValidationError = validate$7(obj_productClassification, path_productClassification);
|
|
5871
|
+
if (referencepath_productClassificationValidationError !== null) {
|
|
5872
|
+
let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_productClassification + '")\n';
|
|
5873
|
+
message += referencepath_productClassificationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5874
|
+
return new TypeError(message);
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5877
|
+
if (obj.productCode !== undefined) {
|
|
5878
|
+
const obj_productCode = obj.productCode;
|
|
5879
|
+
const path_productCode = path + '.productCode';
|
|
5880
|
+
if (typeof obj_productCode !== 'string') {
|
|
5881
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productCode + '" (at "' + path_productCode + '")');
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5335
5884
|
if (obj.productComponentGroups !== undefined) {
|
|
5336
5885
|
const obj_productComponentGroups = obj.productComponentGroups;
|
|
5337
5886
|
const path_productComponentGroups = path + '.productComponentGroups';
|
|
@@ -5341,7 +5890,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5341
5890
|
for (let i = 0; i < obj_productComponentGroups.length; i++) {
|
|
5342
5891
|
const obj_productComponentGroups_item = obj_productComponentGroups[i];
|
|
5343
5892
|
const path_productComponentGroups_item = path_productComponentGroups + '[' + i + ']';
|
|
5344
|
-
const referencepath_productComponentGroups_itemValidationError = validate$
|
|
5893
|
+
const referencepath_productComponentGroups_itemValidationError = validate$6(obj_productComponentGroups_item, path_productComponentGroups_item);
|
|
5345
5894
|
if (referencepath_productComponentGroups_itemValidationError !== null) {
|
|
5346
5895
|
let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_productComponentGroups_item + '")\n';
|
|
5347
5896
|
message += referencepath_productComponentGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5352,13 +5901,37 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
5352
5901
|
if (obj.productRelatedComponent !== undefined) {
|
|
5353
5902
|
const obj_productRelatedComponent = obj.productRelatedComponent;
|
|
5354
5903
|
const path_productRelatedComponent = path + '.productRelatedComponent';
|
|
5355
|
-
const referencepath_productRelatedComponentValidationError = validate$
|
|
5904
|
+
const referencepath_productRelatedComponentValidationError = validate$5(obj_productRelatedComponent, path_productRelatedComponent);
|
|
5356
5905
|
if (referencepath_productRelatedComponentValidationError !== null) {
|
|
5357
5906
|
let message = 'Object doesn\'t match ConfiguratorProductRelatedComponentOutputRepresentation (at "' + path_productRelatedComponent + '")\n';
|
|
5358
5907
|
message += referencepath_productRelatedComponentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5359
5908
|
return new TypeError(message);
|
|
5360
5909
|
}
|
|
5361
5910
|
}
|
|
5911
|
+
if (obj.productSellingModelOptions !== undefined) {
|
|
5912
|
+
const obj_productSellingModelOptions = obj.productSellingModelOptions;
|
|
5913
|
+
const path_productSellingModelOptions = path + '.productSellingModelOptions';
|
|
5914
|
+
if (!ArrayIsArray(obj_productSellingModelOptions)) {
|
|
5915
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productSellingModelOptions + '" (at "' + path_productSellingModelOptions + '")');
|
|
5916
|
+
}
|
|
5917
|
+
for (let i = 0; i < obj_productSellingModelOptions.length; i++) {
|
|
5918
|
+
const obj_productSellingModelOptions_item = obj_productSellingModelOptions[i];
|
|
5919
|
+
const path_productSellingModelOptions_item = path_productSellingModelOptions + '[' + i + ']';
|
|
5920
|
+
const referencepath_productSellingModelOptions_itemValidationError = validate$3(obj_productSellingModelOptions_item, path_productSellingModelOptions_item);
|
|
5921
|
+
if (referencepath_productSellingModelOptions_itemValidationError !== null) {
|
|
5922
|
+
let message = 'Object doesn\'t match ConfiguratorProductSellingModelOptionOutputRepresentation (at "' + path_productSellingModelOptions_item + '")\n';
|
|
5923
|
+
message += referencepath_productSellingModelOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5924
|
+
return new TypeError(message);
|
|
5925
|
+
}
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5928
|
+
if (obj.productType !== undefined) {
|
|
5929
|
+
const obj_productType = obj.productType;
|
|
5930
|
+
const path_productType = path + '.productType';
|
|
5931
|
+
if (typeof obj_productType !== 'string') {
|
|
5932
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productType + '" (at "' + path_productType + '")');
|
|
5933
|
+
}
|
|
5934
|
+
}
|
|
5362
5935
|
if (obj.qualificationContext !== undefined) {
|
|
5363
5936
|
const obj_qualificationContext = obj.qualificationContext;
|
|
5364
5937
|
const path_qualificationContext = path + '.qualificationContext';
|
|
@@ -5535,7 +6108,7 @@ const createResourceParams = /*#__PURE__*/ createResourceParams$b(configure_Conf
|
|
|
5535
6108
|
function typeCheckConfig(untrustedConfig) {
|
|
5536
6109
|
const config = {};
|
|
5537
6110
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
5538
|
-
const referenceConfiguratorInputRepresentationValidationError = validate$
|
|
6111
|
+
const referenceConfiguratorInputRepresentationValidationError = validate$f(untrustedConfig_configuratorInput);
|
|
5539
6112
|
if (referenceConfiguratorInputRepresentationValidationError === null) {
|
|
5540
6113
|
config.configuratorInput = untrustedConfig_configuratorInput;
|
|
5541
6114
|
}
|