@salesforce/lds-adapters-industries-cpq 1.370.0 → 1.372.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 +152 -64
- package/dist/es/es2018/types/src/generated/adapters/bulkProductDetails.d.ts +1 -2
- package/dist/es/es2018/types/src/generated/adapters/categoryDetails.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/categoryList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/guidedSelectionProductList.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategories.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategoriesByCategoryId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsBulk.d.ts +1 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsGuidedSelection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/BulkProductDetailsInput.d.ts +3 -6
- package/dist/es/es2018/types/src/generated/types/CategoryDetailsInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/CategoryListInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/CategoryOutputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/CpqBaseDetailsOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CpqBaseListOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/GuidedSelectionInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/GuidedSelectionOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ProductListInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/ProductListOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ProductOutputRepresentation.d.ts +1 -5
- package/dist/es/es2018/types/src/generated/types/SearchProductsInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/SearchProductsOutputRepresentation.d.ts +5 -1
- package/package.json +4 -4
- package/sfdc/index.js +237 -149
- package/src/raml/api.raml +31 -19
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$14(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$13(obj, path = 'PreviewInputRepresentation') {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
const VERSION$r = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$13(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$r(existing, incoming) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const VERSION$q = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
-
function validate$
|
|
279
|
+
function validate$12(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$11(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$13(obj_messages_item, path_messages_item);
|
|
294
294
|
if (referencepath_messages_itemValidationError !== null) {
|
|
295
295
|
let message = 'Object doesn\'t match CpqMessageOutputRepresentation (at "' + path_messages_item + '")\n';
|
|
296
296
|
message += referencepath_messages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -379,7 +379,7 @@ function equals$q(existing, incoming) {
|
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
function validate$
|
|
382
|
+
function validate$11(obj, path = 'FacetValueRepresentation') {
|
|
383
383
|
const v_error = (() => {
|
|
384
384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
385
385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -402,7 +402,7 @@ function validate$10(obj, path = 'FacetValueRepresentation') {
|
|
|
402
402
|
return v_error === undefined ? null : v_error;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
function validate
|
|
405
|
+
function validate$10(obj, path = 'SearchProductsFacetRepresentation') {
|
|
406
406
|
const v_error = (() => {
|
|
407
407
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
408
408
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -444,7 +444,7 @@ function validate$$(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
444
444
|
for (let i = 0; i < obj_values.length; i++) {
|
|
445
445
|
const obj_values_item = obj_values[i];
|
|
446
446
|
const path_values_item = path_values + '[' + i + ']';
|
|
447
|
-
const referencepath_values_itemValidationError = validate$
|
|
447
|
+
const referencepath_values_itemValidationError = validate$11(obj_values_item, path_values_item);
|
|
448
448
|
if (referencepath_values_itemValidationError !== null) {
|
|
449
449
|
let message = 'Object doesn\'t match FacetValueRepresentation (at "' + path_values_item + '")\n';
|
|
450
450
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -457,24 +457,26 @@ function validate$$(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
const TTL$h = 1000;
|
|
460
|
-
const VERSION$p = "
|
|
461
|
-
function validate
|
|
460
|
+
const VERSION$p = "4b7b85fac2d5af69b24fafa7375618f8";
|
|
461
|
+
function validate$$(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
462
462
|
const v_error = (() => {
|
|
463
463
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
464
464
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
465
465
|
}
|
|
466
466
|
const obj_apiStatus = obj.apiStatus;
|
|
467
467
|
const path_apiStatus = path + '.apiStatus';
|
|
468
|
-
const referencepath_apiStatusValidationError = validate$
|
|
468
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
469
469
|
if (referencepath_apiStatusValidationError !== null) {
|
|
470
470
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
471
471
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
472
472
|
return new TypeError(message);
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
if (obj.correlationId !== undefined) {
|
|
475
|
+
const obj_correlationId = obj.correlationId;
|
|
476
|
+
const path_correlationId = path + '.correlationId';
|
|
477
|
+
if (typeof obj_correlationId !== 'string') {
|
|
478
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
479
|
+
}
|
|
478
480
|
}
|
|
479
481
|
const obj_facets = obj.facets;
|
|
480
482
|
const path_facets = path + '.facets';
|
|
@@ -484,7 +486,7 @@ function validate$_(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
484
486
|
for (let i = 0; i < obj_facets.length; i++) {
|
|
485
487
|
const obj_facets_item = obj_facets[i];
|
|
486
488
|
const path_facets_item = path_facets + '[' + i + ']';
|
|
487
|
-
const referencepath_facets_itemValidationError = validate
|
|
489
|
+
const referencepath_facets_itemValidationError = validate$10(obj_facets_item, path_facets_item);
|
|
488
490
|
if (referencepath_facets_itemValidationError !== null) {
|
|
489
491
|
let message = 'Object doesn\'t match SearchProductsFacetRepresentation (at "' + path_facets_item + '")\n';
|
|
490
492
|
message += referencepath_facets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -563,7 +565,7 @@ function equals$p(existing, incoming) {
|
|
|
563
565
|
}
|
|
564
566
|
const ingest$i = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
565
567
|
if (process.env.NODE_ENV !== 'production') {
|
|
566
|
-
const validateError = validate
|
|
568
|
+
const validateError = validate$$(input);
|
|
567
569
|
if (validateError !== null) {
|
|
568
570
|
throw validateError;
|
|
569
571
|
}
|
|
@@ -629,7 +631,7 @@ const createResourceParams$o = /*#__PURE__*/ createResourceParams$p(preview_Conf
|
|
|
629
631
|
function typeCheckConfig$o(untrustedConfig) {
|
|
630
632
|
const config = {};
|
|
631
633
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
632
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
634
|
+
const referencePreviewInputRepresentationValidationError = validate$14(untrustedConfig_previewInput);
|
|
633
635
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
634
636
|
config.previewInput = untrustedConfig_previewInput;
|
|
635
637
|
}
|
|
@@ -677,7 +679,7 @@ const previewAdapterFactory = (luvio) => {
|
|
|
677
679
|
};
|
|
678
680
|
};
|
|
679
681
|
|
|
680
|
-
function validate$
|
|
682
|
+
function validate$_(obj, path = 'ProductListInputRepresentation') {
|
|
681
683
|
const v_error = (() => {
|
|
682
684
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
683
685
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -717,13 +719,6 @@ function validate$Z(obj, path = 'ProductListInputRepresentation') {
|
|
|
717
719
|
return new TypeError('Expected "string" but received "' + typeof obj_cursor + '" (at "' + path_cursor + '")');
|
|
718
720
|
}
|
|
719
721
|
}
|
|
720
|
-
if (obj.enablePromotionRules !== undefined) {
|
|
721
|
-
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
722
|
-
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
723
|
-
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
724
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
722
|
if (obj.filter !== undefined) {
|
|
728
723
|
const obj_filter = obj.filter;
|
|
729
724
|
const path_filter = path + '.filter';
|
|
@@ -764,6 +759,13 @@ function validate$Z(obj, path = 'ProductListInputRepresentation') {
|
|
|
764
759
|
if (typeof obj_priceBookId !== 'string') {
|
|
765
760
|
return new TypeError('Expected "string" but received "' + typeof obj_priceBookId + '" (at "' + path_priceBookId + '")');
|
|
766
761
|
}
|
|
762
|
+
if (obj.usePromotions !== undefined) {
|
|
763
|
+
const obj_usePromotions = obj.usePromotions;
|
|
764
|
+
const path_usePromotions = path + '.usePromotions';
|
|
765
|
+
if (typeof obj_usePromotions !== 'boolean') {
|
|
766
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_usePromotions + '" (at "' + path_usePromotions + '")');
|
|
767
|
+
}
|
|
768
|
+
}
|
|
767
769
|
if (obj.userContext !== undefined) {
|
|
768
770
|
const obj_userContext = obj.userContext;
|
|
769
771
|
const path_userContext = path + '.userContext';
|
|
@@ -821,7 +823,7 @@ const createResourceParams$n = /*#__PURE__*/ createResourceParams$p(productList_
|
|
|
821
823
|
function typeCheckConfig$n(untrustedConfig) {
|
|
822
824
|
const config = {};
|
|
823
825
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
824
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
826
|
+
const referenceProductListInputRepresentationValidationError = validate$_(untrustedConfig_requestBody);
|
|
825
827
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
826
828
|
config.requestBody = untrustedConfig_requestBody;
|
|
827
829
|
}
|
|
@@ -869,7 +871,7 @@ const productListAdapterFactory = (luvio) => {
|
|
|
869
871
|
};
|
|
870
872
|
};
|
|
871
873
|
|
|
872
|
-
function validate$
|
|
874
|
+
function validate$Z(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
873
875
|
const v_error = (() => {
|
|
874
876
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
875
877
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -900,7 +902,7 @@ function validate$Y(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
|
900
902
|
return v_error === undefined ? null : v_error;
|
|
901
903
|
}
|
|
902
904
|
|
|
903
|
-
function validate$
|
|
905
|
+
function validate$Y(obj, path = 'FilterInputRepresentation') {
|
|
904
906
|
const v_error = (() => {
|
|
905
907
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
906
908
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -913,7 +915,7 @@ function validate$X(obj, path = 'FilterInputRepresentation') {
|
|
|
913
915
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
914
916
|
const obj_criteria_item = obj_criteria[i];
|
|
915
917
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
916
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
918
|
+
const referencepath_criteria_itemValidationError = validate$Z(obj_criteria_item, path_criteria_item);
|
|
917
919
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
918
920
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
919
921
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -924,7 +926,7 @@ function validate$X(obj, path = 'FilterInputRepresentation') {
|
|
|
924
926
|
return v_error === undefined ? null : v_error;
|
|
925
927
|
}
|
|
926
928
|
|
|
927
|
-
function validate$
|
|
929
|
+
function validate$X(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
928
930
|
const v_error = (() => {
|
|
929
931
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
930
932
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -937,7 +939,7 @@ function validate$W(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
937
939
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
938
940
|
const obj_criteria_item = obj_criteria[i];
|
|
939
941
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
940
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
942
|
+
const referencepath_criteria_itemValidationError = validate$Z(obj_criteria_item, path_criteria_item);
|
|
941
943
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
942
944
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
943
945
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -953,7 +955,7 @@ function validate$W(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
953
955
|
return v_error === undefined ? null : v_error;
|
|
954
956
|
}
|
|
955
957
|
|
|
956
|
-
function validate$
|
|
958
|
+
function validate$W(obj, path = 'GuidedSelectionSearchTermInputRepresentation') {
|
|
957
959
|
const v_error = (() => {
|
|
958
960
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
959
961
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -983,6 +985,75 @@ function validate$V(obj, path = 'GuidedSelectionSearchTermInputRepresentation')
|
|
|
983
985
|
return v_error === undefined ? null : v_error;
|
|
984
986
|
}
|
|
985
987
|
|
|
988
|
+
function validate$V(obj, path = 'PromotionOutputRepresentation') {
|
|
989
|
+
const v_error = (() => {
|
|
990
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
991
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
992
|
+
}
|
|
993
|
+
const obj_couponCode = obj.couponCode;
|
|
994
|
+
const path_couponCode = path + '.couponCode';
|
|
995
|
+
if (typeof obj_couponCode !== 'string') {
|
|
996
|
+
return new TypeError('Expected "string" but received "' + typeof obj_couponCode + '" (at "' + path_couponCode + '")');
|
|
997
|
+
}
|
|
998
|
+
const obj_description = obj.description;
|
|
999
|
+
const path_description = path + '.description';
|
|
1000
|
+
if (typeof obj_description !== 'string') {
|
|
1001
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1002
|
+
}
|
|
1003
|
+
const obj_displayName = obj.displayName;
|
|
1004
|
+
const path_displayName = path + '.displayName';
|
|
1005
|
+
if (typeof obj_displayName !== 'string') {
|
|
1006
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1007
|
+
}
|
|
1008
|
+
const obj_endDateTime = obj.endDateTime;
|
|
1009
|
+
const path_endDateTime = path + '.endDateTime';
|
|
1010
|
+
if (typeof obj_endDateTime !== 'string') {
|
|
1011
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endDateTime + '" (at "' + path_endDateTime + '")');
|
|
1012
|
+
}
|
|
1013
|
+
const obj_id = obj.id;
|
|
1014
|
+
const path_id = path + '.id';
|
|
1015
|
+
if (typeof obj_id !== 'string') {
|
|
1016
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1017
|
+
}
|
|
1018
|
+
const obj_isAutomatic = obj.isAutomatic;
|
|
1019
|
+
const path_isAutomatic = path + '.isAutomatic';
|
|
1020
|
+
if (typeof obj_isAutomatic !== 'boolean') {
|
|
1021
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAutomatic + '" (at "' + path_isAutomatic + '")');
|
|
1022
|
+
}
|
|
1023
|
+
const obj_isCategoryPromo = obj.isCategoryPromo;
|
|
1024
|
+
const path_isCategoryPromo = path + '.isCategoryPromo';
|
|
1025
|
+
if (typeof obj_isCategoryPromo !== 'boolean') {
|
|
1026
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isCategoryPromo + '" (at "' + path_isCategoryPromo + '")');
|
|
1027
|
+
}
|
|
1028
|
+
const obj_isProductPromo = obj.isProductPromo;
|
|
1029
|
+
const path_isProductPromo = path + '.isProductPromo';
|
|
1030
|
+
if (typeof obj_isProductPromo !== 'boolean') {
|
|
1031
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isProductPromo + '" (at "' + path_isProductPromo + '")');
|
|
1032
|
+
}
|
|
1033
|
+
const obj_name = obj.name;
|
|
1034
|
+
const path_name = path + '.name';
|
|
1035
|
+
if (typeof obj_name !== 'string') {
|
|
1036
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1037
|
+
}
|
|
1038
|
+
const obj_priority = obj.priority;
|
|
1039
|
+
const path_priority = path + '.priority';
|
|
1040
|
+
if (typeof obj_priority !== 'number' || (typeof obj_priority === 'number' && Math.floor(obj_priority) !== obj_priority)) {
|
|
1041
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_priority + '" (at "' + path_priority + '")');
|
|
1042
|
+
}
|
|
1043
|
+
const obj_startDateTime = obj.startDateTime;
|
|
1044
|
+
const path_startDateTime = path + '.startDateTime';
|
|
1045
|
+
if (typeof obj_startDateTime !== 'string') {
|
|
1046
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDateTime + '" (at "' + path_startDateTime + '")');
|
|
1047
|
+
}
|
|
1048
|
+
const obj_termsAndConditions = obj.termsAndConditions;
|
|
1049
|
+
const path_termsAndConditions = path + '.termsAndConditions';
|
|
1050
|
+
if (typeof obj_termsAndConditions !== 'string') {
|
|
1051
|
+
return new TypeError('Expected "string" but received "' + typeof obj_termsAndConditions + '" (at "' + path_termsAndConditions + '")');
|
|
1052
|
+
}
|
|
1053
|
+
})();
|
|
1054
|
+
return v_error === undefined ? null : v_error;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
986
1057
|
function validate$U(obj, path = 'GuidedSelectionSearchTermOutputRepresentation') {
|
|
987
1058
|
const v_error = (() => {
|
|
988
1059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1010,7 +1081,7 @@ function validate$U(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
|
|
|
1010
1081
|
}
|
|
1011
1082
|
|
|
1012
1083
|
const TTL$g = 1000;
|
|
1013
|
-
const VERSION$o = "
|
|
1084
|
+
const VERSION$o = "6d70e048388822cc95e496108c22d438";
|
|
1014
1085
|
function validate$T(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
1015
1086
|
const v_error = (() => {
|
|
1016
1087
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1018,7 +1089,7 @@ function validate$T(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1018
1089
|
}
|
|
1019
1090
|
const obj_apiStatus = obj.apiStatus;
|
|
1020
1091
|
const path_apiStatus = path + '.apiStatus';
|
|
1021
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1092
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
1022
1093
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1023
1094
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1024
1095
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1045,6 +1116,21 @@ function validate$T(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1045
1116
|
return new TypeError('Expected "string" but received "' + typeof obj_cursor + '" (at "' + path_cursor + '")');
|
|
1046
1117
|
}
|
|
1047
1118
|
}
|
|
1119
|
+
const obj_eligiblePromotions = obj.eligiblePromotions;
|
|
1120
|
+
const path_eligiblePromotions = path + '.eligiblePromotions';
|
|
1121
|
+
if (!ArrayIsArray(obj_eligiblePromotions)) {
|
|
1122
|
+
return new TypeError('Expected "array" but received "' + typeof obj_eligiblePromotions + '" (at "' + path_eligiblePromotions + '")');
|
|
1123
|
+
}
|
|
1124
|
+
for (let i = 0; i < obj_eligiblePromotions.length; i++) {
|
|
1125
|
+
const obj_eligiblePromotions_item = obj_eligiblePromotions[i];
|
|
1126
|
+
const path_eligiblePromotions_item = path_eligiblePromotions + '[' + i + ']';
|
|
1127
|
+
const referencepath_eligiblePromotions_itemValidationError = validate$V(obj_eligiblePromotions_item, path_eligiblePromotions_item);
|
|
1128
|
+
if (referencepath_eligiblePromotions_itemValidationError !== null) {
|
|
1129
|
+
let message = 'Object doesn\'t match PromotionOutputRepresentation (at "' + path_eligiblePromotions_item + '")\n';
|
|
1130
|
+
message += referencepath_eligiblePromotions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1131
|
+
return new TypeError(message);
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1048
1134
|
if (obj.limit !== undefined) {
|
|
1049
1135
|
const obj_limit = obj.limit;
|
|
1050
1136
|
const path_limit = path + '.limit';
|
|
@@ -1204,6 +1290,7 @@ const guidedSelectionProductList_ConfigPropertyMetadata = [
|
|
|
1204
1290
|
generateParamConfigMetadata('cursor', false, 2 /* Body */, 0 /* String */),
|
|
1205
1291
|
generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
|
|
1206
1292
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
1293
|
+
generateParamConfigMetadata('usePromotions', false, 2 /* Body */, 1 /* Boolean */),
|
|
1207
1294
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1208
1295
|
generateParamConfigMetadata('includeCatalogDetails', false, 2 /* Body */, 1 /* Boolean */),
|
|
1209
1296
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -1233,7 +1320,7 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
1233
1320
|
}
|
|
1234
1321
|
}
|
|
1235
1322
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1236
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
1323
|
+
const referenceFilterInputRepresentationValidationError = validate$Y(untrustedConfig_filter);
|
|
1237
1324
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1238
1325
|
config.filter = untrustedConfig_filter;
|
|
1239
1326
|
}
|
|
@@ -1242,7 +1329,7 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
1242
1329
|
const untrustedConfig_relatedObjectFilters_array = [];
|
|
1243
1330
|
for (let i = 0, arrayLength = untrustedConfig_relatedObjectFilters.length; i < arrayLength; i++) {
|
|
1244
1331
|
const untrustedConfig_relatedObjectFilters_item = untrustedConfig_relatedObjectFilters[i];
|
|
1245
|
-
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$
|
|
1332
|
+
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$X(untrustedConfig_relatedObjectFilters_item);
|
|
1246
1333
|
if (referenceRelatedObjectFilterInputRepresentationValidationError === null) {
|
|
1247
1334
|
untrustedConfig_relatedObjectFilters_array.push(untrustedConfig_relatedObjectFilters_item);
|
|
1248
1335
|
}
|
|
@@ -1261,7 +1348,7 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
1261
1348
|
const untrustedConfig_searchTerms_array = [];
|
|
1262
1349
|
for (let i = 0, arrayLength = untrustedConfig_searchTerms.length; i < arrayLength; i++) {
|
|
1263
1350
|
const untrustedConfig_searchTerms_item = untrustedConfig_searchTerms[i];
|
|
1264
|
-
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$
|
|
1351
|
+
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$W(untrustedConfig_searchTerms_item);
|
|
1265
1352
|
if (referenceGuidedSelectionSearchTermInputRepresentationValidationError === null) {
|
|
1266
1353
|
untrustedConfig_searchTerms_array.push(untrustedConfig_searchTerms_item);
|
|
1267
1354
|
}
|
|
@@ -1345,13 +1432,6 @@ function validate$S(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
1345
1432
|
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
1346
1433
|
}
|
|
1347
1434
|
}
|
|
1348
|
-
if (obj.enablePromotionRules !== undefined) {
|
|
1349
|
-
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
1350
|
-
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
1351
|
-
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
1352
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
1435
|
if (obj.filter !== undefined) {
|
|
1356
1436
|
const obj_filter = obj.filter;
|
|
1357
1437
|
const path_filter = path + '.filter';
|
|
@@ -1406,6 +1486,13 @@ function validate$S(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
1406
1486
|
return new TypeError('Expected "string" but received "' + typeof obj_searchTerm + '" (at "' + path_searchTerm + '")');
|
|
1407
1487
|
}
|
|
1408
1488
|
}
|
|
1489
|
+
if (obj.usePromotions !== undefined) {
|
|
1490
|
+
const obj_usePromotions = obj.usePromotions;
|
|
1491
|
+
const path_usePromotions = path + '.usePromotions';
|
|
1492
|
+
if (typeof obj_usePromotions !== 'boolean') {
|
|
1493
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_usePromotions + '" (at "' + path_usePromotions + '")');
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1409
1496
|
if (obj.userContext !== undefined) {
|
|
1410
1497
|
const obj_userContext = obj.userContext;
|
|
1411
1498
|
const path_userContext = path + '.userContext';
|
|
@@ -1583,7 +1670,7 @@ function validate$Q(obj, path = 'SmartSelectionOutputRepresentation') {
|
|
|
1583
1670
|
}
|
|
1584
1671
|
const obj_apiStatus = obj.apiStatus;
|
|
1585
1672
|
const path_apiStatus = path + '.apiStatus';
|
|
1586
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1673
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
1587
1674
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1588
1675
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1589
1676
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1795,7 +1882,7 @@ function validate$O(obj, path = 'CpqBaseBulkDetailsOutput') {
|
|
|
1795
1882
|
}
|
|
1796
1883
|
const obj_apiStatus = obj.apiStatus;
|
|
1797
1884
|
const path_apiStatus = path + '.apiStatus';
|
|
1798
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1885
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
1799
1886
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1800
1887
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1801
1888
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1927,7 +2014,7 @@ const adapterName$j = 'bulkProductDetails';
|
|
|
1927
2014
|
const bulkProductDetails_ConfigPropertyMetadata = [
|
|
1928
2015
|
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1929
2016
|
generateParamConfigMetadata('catalogId', true, 2 /* Body */, 0 /* String */),
|
|
1930
|
-
generateParamConfigMetadata('correlationId',
|
|
2017
|
+
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
1931
2018
|
generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
|
|
1932
2019
|
generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1933
2020
|
generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1935,7 +2022,6 @@ const bulkProductDetails_ConfigPropertyMetadata = [
|
|
|
1935
2022
|
generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
|
|
1936
2023
|
generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
|
|
1937
2024
|
generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
|
|
1938
|
-
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
1939
2025
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
1940
2026
|
generateParamConfigMetadata('pricingProcedure', false, 2 /* Body */, 0 /* String */),
|
|
1941
2027
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2065,7 +2151,7 @@ function validate$N(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
2065
2151
|
}
|
|
2066
2152
|
|
|
2067
2153
|
const TTL$d = 1000;
|
|
2068
|
-
const VERSION$l = "
|
|
2154
|
+
const VERSION$l = "2f20f99218d11f5ad756aff76b7a815e";
|
|
2069
2155
|
function validate$M(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
2070
2156
|
const v_error = (() => {
|
|
2071
2157
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2073,16 +2159,18 @@ function validate$M(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
|
2073
2159
|
}
|
|
2074
2160
|
const obj_apiStatus = obj.apiStatus;
|
|
2075
2161
|
const path_apiStatus = path + '.apiStatus';
|
|
2076
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2162
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
2077
2163
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2078
2164
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2079
2165
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2080
2166
|
return new TypeError(message);
|
|
2081
2167
|
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2168
|
+
if (obj.correlationId !== undefined) {
|
|
2169
|
+
const obj_correlationId = obj.correlationId;
|
|
2170
|
+
const path_correlationId = path + '.correlationId';
|
|
2171
|
+
if (typeof obj_correlationId !== 'string') {
|
|
2172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
2173
|
+
}
|
|
2086
2174
|
}
|
|
2087
2175
|
const obj_result = obj.result;
|
|
2088
2176
|
const path_result = path + '.result';
|
|
@@ -2284,7 +2372,7 @@ const categoryList_ConfigPropertyMetadata = [
|
|
|
2284
2372
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
2285
2373
|
generateParamConfigMetadata('depth', false, 2 /* Body */, 3 /* Integer */),
|
|
2286
2374
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
2287
|
-
generateParamConfigMetadata('
|
|
2375
|
+
generateParamConfigMetadata('usePromotions', false, 2 /* Body */, 1 /* Boolean */),
|
|
2288
2376
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2289
2377
|
generateParamConfigMetadata('parentCategoryId', false, 2 /* Body */, 0 /* String */),
|
|
2290
2378
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2298,7 +2386,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
2298
2386
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2299
2387
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2300
2388
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2301
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2389
|
+
const referenceFilterInputRepresentationValidationError = validate$Y(untrustedConfig_filter);
|
|
2302
2390
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2303
2391
|
config.filter = untrustedConfig_filter;
|
|
2304
2392
|
}
|
|
@@ -2408,7 +2496,7 @@ const categoryDetails_ConfigPropertyMetadata = [
|
|
|
2408
2496
|
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
2409
2497
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
2410
2498
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
2411
|
-
generateParamConfigMetadata('
|
|
2499
|
+
generateParamConfigMetadata('usePromotions', false, 2 /* Body */, 1 /* Boolean */),
|
|
2412
2500
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2413
2501
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
2414
2502
|
generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -2421,7 +2509,7 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
2421
2509
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2422
2510
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2423
2511
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2424
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2512
|
+
const referenceFilterInputRepresentationValidationError = validate$Y(untrustedConfig_filter);
|
|
2425
2513
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2426
2514
|
config.filter = untrustedConfig_filter;
|
|
2427
2515
|
}
|
|
@@ -2562,7 +2650,7 @@ function validate$K(obj, path = 'CreateCartOutputRepresentation') {
|
|
|
2562
2650
|
}
|
|
2563
2651
|
const obj_apiStatus = obj.apiStatus;
|
|
2564
2652
|
const path_apiStatus = path + '.apiStatus';
|
|
2565
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2653
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
2566
2654
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2567
2655
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2568
2656
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4729,7 +4817,7 @@ function validate$C(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4729
4817
|
}
|
|
4730
4818
|
const obj_apiStatus = obj.apiStatus;
|
|
4731
4819
|
const path_apiStatus = path + '.apiStatus';
|
|
4732
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4820
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
4733
4821
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4734
4822
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4735
4823
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5172,7 +5260,7 @@ function validate$y(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
5172
5260
|
}
|
|
5173
5261
|
const obj_apiStatus = obj.apiStatus;
|
|
5174
5262
|
const path_apiStatus = path + '.apiStatus';
|
|
5175
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5263
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
5176
5264
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5177
5265
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5178
5266
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5380,7 +5468,7 @@ function validate$w(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
|
5380
5468
|
}
|
|
5381
5469
|
const obj_apiStatus = obj.apiStatus;
|
|
5382
5470
|
const path_apiStatus = path + '.apiStatus';
|
|
5383
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5471
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
5384
5472
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5385
5473
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5386
5474
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5587,7 +5675,7 @@ function validate$u(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
|
5587
5675
|
}
|
|
5588
5676
|
const obj_apiStatus = obj.apiStatus;
|
|
5589
5677
|
const path_apiStatus = path + '.apiStatus';
|
|
5590
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5678
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
5591
5679
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5592
5680
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5593
5681
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5794,7 +5882,7 @@ function validate$s(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
5794
5882
|
}
|
|
5795
5883
|
const obj_apiStatus = obj.apiStatus;
|
|
5796
5884
|
const path_apiStatus = path + '.apiStatus';
|
|
5797
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5885
|
+
const referencepath_apiStatusValidationError = validate$12(obj_apiStatus, path_apiStatus);
|
|
5798
5886
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5799
5887
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5800
5888
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9,7 +9,7 @@ export declare const bulkProductDetails_ConfigPropertyNames: adapter$45$utils_Ad
|
|
|
9
9
|
export interface BulkProductDetailsConfig {
|
|
10
10
|
additionalFields?: {};
|
|
11
11
|
catalogId: string;
|
|
12
|
-
correlationId
|
|
12
|
+
correlationId?: string;
|
|
13
13
|
priceBookId: string;
|
|
14
14
|
productData: Array<types_ProductDataInput_ProductDataInput>;
|
|
15
15
|
userContext: {};
|
|
@@ -17,7 +17,6 @@ export interface BulkProductDetailsConfig {
|
|
|
17
17
|
contextMapping?: string;
|
|
18
18
|
currencyCode?: string;
|
|
19
19
|
enablePricing?: boolean;
|
|
20
|
-
enablePromotionRules?: boolean;
|
|
21
20
|
enableQualification?: boolean;
|
|
22
21
|
pricingProcedure?: string;
|
|
23
22
|
qualificationProcedure?: string;
|
|
@@ -15,7 +15,7 @@ export interface CategoryDetailsConfig {
|
|
|
15
15
|
correlationId?: string;
|
|
16
16
|
customFields?: Array<string>;
|
|
17
17
|
enableQualification?: boolean;
|
|
18
|
-
|
|
18
|
+
usePromotions?: boolean;
|
|
19
19
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
20
20
|
qualificationProcedure?: string;
|
|
21
21
|
userContext?: {
|
|
@@ -15,7 +15,7 @@ export interface CategoryListConfig {
|
|
|
15
15
|
customFields?: Array<string>;
|
|
16
16
|
depth?: number;
|
|
17
17
|
enableQualification?: boolean;
|
|
18
|
-
|
|
18
|
+
usePromotions?: boolean;
|
|
19
19
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
20
20
|
parentCategoryId?: string;
|
|
21
21
|
qualificationProcedure?: string;
|
|
@@ -20,6 +20,7 @@ export interface GuidedSelectionProductListConfig {
|
|
|
20
20
|
cursor?: string;
|
|
21
21
|
enablePricing?: boolean;
|
|
22
22
|
enableQualification?: boolean;
|
|
23
|
+
usePromotions?: boolean;
|
|
23
24
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
24
25
|
includeCatalogDetails?: boolean;
|
|
25
26
|
limit?: number;
|
|
@@ -11,7 +11,7 @@ export interface ResourceRequestConfig {
|
|
|
11
11
|
customFields?: Array<string>;
|
|
12
12
|
depth?: number;
|
|
13
13
|
enableQualification?: boolean;
|
|
14
|
-
|
|
14
|
+
usePromotions?: boolean;
|
|
15
15
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
16
16
|
parentCategoryId?: string;
|
|
17
17
|
qualificationProcedure?: string;
|
package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategoriesByCategoryId.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface ResourceRequestConfig {
|
|
|
13
13
|
correlationId?: string;
|
|
14
14
|
customFields?: Array<string>;
|
|
15
15
|
enableQualification?: boolean;
|
|
16
|
-
|
|
16
|
+
usePromotions?: boolean;
|
|
17
17
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
18
18
|
qualificationProcedure?: string;
|
|
19
19
|
userContext?: {
|
|
@@ -5,7 +5,7 @@ export interface ResourceRequestConfig {
|
|
|
5
5
|
body: {
|
|
6
6
|
additionalFields?: {};
|
|
7
7
|
catalogId: string;
|
|
8
|
-
correlationId
|
|
8
|
+
correlationId?: string;
|
|
9
9
|
priceBookId: string;
|
|
10
10
|
productData: Array<types_ProductDataInput_ProductDataInput>;
|
|
11
11
|
userContext: {};
|
|
@@ -13,7 +13,6 @@ export interface ResourceRequestConfig {
|
|
|
13
13
|
contextMapping?: string;
|
|
14
14
|
currencyCode?: string;
|
|
15
15
|
enablePricing?: boolean;
|
|
16
|
-
enablePromotionRules?: boolean;
|
|
17
16
|
enableQualification?: boolean;
|
|
18
17
|
pricingProcedure?: string;
|
|
19
18
|
qualificationProcedure?: string;
|