@salesforce/lds-adapters-industries-cpq 1.319.0 → 1.321.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-cpq.js +254 -105
- package/dist/es/es2018/types/src/generated/types/ConditionInformationCollectionInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ConditionInformationInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ConfiguratorAttributeOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductCatalogOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorUnitOfMeasureOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/CpqBaseListOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/FacetValueRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/RuleActionInputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/RuleCriteriaInputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/SearchProductsFacetRepresentation.d.ts +38 -0
- package/package.json +4 -4
- package/sfdc/index.js +195 -46
- package/src/raml/api.raml +116 -0
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$Y(obj, path = 'PreviewInputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -154,7 +154,7 @@ function validate$V(obj, path = 'PreviewInputRepresentation') {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
const VERSION$l = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$X(obj, path = 'CpqMessageOutputRepresentation') {
|
|
158
158
|
const v_error = (() => {
|
|
159
159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
160
160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -276,7 +276,7 @@ function equals$l(existing, incoming) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const VERSION$k = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
-
function validate$
|
|
279
|
+
function validate$W(obj, path = 'ApiStatusOutputRepresentation') {
|
|
280
280
|
const v_error = (() => {
|
|
281
281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
282
282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -290,7 +290,7 @@ function validate$T(obj, path = 'ApiStatusOutputRepresentation') {
|
|
|
290
290
|
for (let i = 0; i < obj_messages.length; i++) {
|
|
291
291
|
const obj_messages_item = obj_messages[i];
|
|
292
292
|
const path_messages_item = path_messages + '[' + i + ']';
|
|
293
|
-
const referencepath_messages_itemValidationError = validate$
|
|
293
|
+
const referencepath_messages_itemValidationError = validate$X(obj_messages_item, path_messages_item);
|
|
294
294
|
if (referencepath_messages_itemValidationError !== null) {
|
|
295
295
|
let message = 'Object doesn\'t match CpqMessageOutputRepresentation (at "' + path_messages_item + '")\n';
|
|
296
296
|
message += referencepath_messages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -379,16 +379,93 @@ function equals$k(existing, incoming) {
|
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
function validate$V(obj, path = 'FacetValueRepresentation') {
|
|
383
|
+
const v_error = (() => {
|
|
384
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
385
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
386
|
+
}
|
|
387
|
+
if (obj.displayName !== undefined) {
|
|
388
|
+
const obj_displayName = obj.displayName;
|
|
389
|
+
const path_displayName = path + '.displayName';
|
|
390
|
+
if (typeof obj_displayName !== 'string') {
|
|
391
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (obj.nameOrId !== undefined) {
|
|
395
|
+
const obj_nameOrId = obj.nameOrId;
|
|
396
|
+
const path_nameOrId = path + '.nameOrId';
|
|
397
|
+
if (typeof obj_nameOrId !== 'string') {
|
|
398
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nameOrId + '" (at "' + path_nameOrId + '")');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
if (obj.productCount !== undefined) {
|
|
402
|
+
const obj_productCount = obj.productCount;
|
|
403
|
+
const path_productCount = path + '.productCount';
|
|
404
|
+
if (typeof obj_productCount !== 'number' || (typeof obj_productCount === 'number' && Math.floor(obj_productCount) !== obj_productCount)) {
|
|
405
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_productCount + '" (at "' + path_productCount + '")');
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
})();
|
|
409
|
+
return v_error === undefined ? null : v_error;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function validate$U(obj, path = 'SearchProductsFacetRepresentation') {
|
|
413
|
+
const v_error = (() => {
|
|
414
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
415
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
416
|
+
}
|
|
417
|
+
if (obj.displayName !== undefined) {
|
|
418
|
+
const obj_displayName = obj.displayName;
|
|
419
|
+
const path_displayName = path + '.displayName';
|
|
420
|
+
if (typeof obj_displayName !== 'string') {
|
|
421
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if (obj.displayRank !== undefined) {
|
|
425
|
+
const obj_displayRank = obj.displayRank;
|
|
426
|
+
const path_displayRank = path + '.displayRank';
|
|
427
|
+
if (typeof obj_displayRank !== 'number' || (typeof obj_displayRank === 'number' && Math.floor(obj_displayRank) !== obj_displayRank)) {
|
|
428
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_displayRank + '" (at "' + path_displayRank + '")');
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
if (obj.nameOrId !== undefined) {
|
|
432
|
+
const obj_nameOrId = obj.nameOrId;
|
|
433
|
+
const path_nameOrId = path + '.nameOrId';
|
|
434
|
+
if (typeof obj_nameOrId !== 'string') {
|
|
435
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nameOrId + '" (at "' + path_nameOrId + '")');
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (obj.values !== undefined) {
|
|
439
|
+
const obj_values = obj.values;
|
|
440
|
+
const path_values = path + '.values';
|
|
441
|
+
if (!ArrayIsArray(obj_values)) {
|
|
442
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
443
|
+
}
|
|
444
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
445
|
+
const obj_values_item = obj_values[i];
|
|
446
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
447
|
+
const referencepath_values_itemValidationError = validate$V(obj_values_item, path_values_item);
|
|
448
|
+
if (referencepath_values_itemValidationError !== null) {
|
|
449
|
+
let message = 'Object doesn\'t match FacetValueRepresentation (at "' + path_values_item + '")\n';
|
|
450
|
+
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
451
|
+
return new TypeError(message);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
})();
|
|
456
|
+
return v_error === undefined ? null : v_error;
|
|
457
|
+
}
|
|
458
|
+
|
|
382
459
|
const TTL$b = 1000;
|
|
383
|
-
const VERSION$j = "
|
|
384
|
-
function validate$
|
|
460
|
+
const VERSION$j = "d4404c373b22855446ba4f933f08573c";
|
|
461
|
+
function validate$T(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
385
462
|
const v_error = (() => {
|
|
386
463
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
387
464
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
388
465
|
}
|
|
389
466
|
const obj_apiStatus = obj.apiStatus;
|
|
390
467
|
const path_apiStatus = path + '.apiStatus';
|
|
391
|
-
const referencepath_apiStatusValidationError = validate$
|
|
468
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
392
469
|
if (referencepath_apiStatusValidationError !== null) {
|
|
393
470
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
394
471
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -399,6 +476,21 @@ function validate$S(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
399
476
|
if (typeof obj_correlationId !== 'string') {
|
|
400
477
|
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
401
478
|
}
|
|
479
|
+
const obj_facets = obj.facets;
|
|
480
|
+
const path_facets = path + '.facets';
|
|
481
|
+
if (!ArrayIsArray(obj_facets)) {
|
|
482
|
+
return new TypeError('Expected "array" but received "' + typeof obj_facets + '" (at "' + path_facets + '")');
|
|
483
|
+
}
|
|
484
|
+
for (let i = 0; i < obj_facets.length; i++) {
|
|
485
|
+
const obj_facets_item = obj_facets[i];
|
|
486
|
+
const path_facets_item = path_facets + '[' + i + ']';
|
|
487
|
+
const referencepath_facets_itemValidationError = validate$U(obj_facets_item, path_facets_item);
|
|
488
|
+
if (referencepath_facets_itemValidationError !== null) {
|
|
489
|
+
let message = 'Object doesn\'t match SearchProductsFacetRepresentation (at "' + path_facets_item + '")\n';
|
|
490
|
+
message += referencepath_facets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
491
|
+
return new TypeError(message);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
402
494
|
if (obj.limit !== undefined) {
|
|
403
495
|
const obj_limit = obj.limit;
|
|
404
496
|
const path_limit = path + '.limit';
|
|
@@ -471,7 +563,7 @@ function equals$j(existing, incoming) {
|
|
|
471
563
|
}
|
|
472
564
|
const ingest$c = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
473
565
|
if (process.env.NODE_ENV !== 'production') {
|
|
474
|
-
const validateError = validate$
|
|
566
|
+
const validateError = validate$T(input);
|
|
475
567
|
if (validateError !== null) {
|
|
476
568
|
throw validateError;
|
|
477
569
|
}
|
|
@@ -537,7 +629,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(preview_Conf
|
|
|
537
629
|
function typeCheckConfig$h(untrustedConfig) {
|
|
538
630
|
const config = {};
|
|
539
631
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
540
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
632
|
+
const referencePreviewInputRepresentationValidationError = validate$Y(untrustedConfig_previewInput);
|
|
541
633
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
542
634
|
config.previewInput = untrustedConfig_previewInput;
|
|
543
635
|
}
|
|
@@ -585,7 +677,7 @@ const previewAdapterFactory = (luvio) => {
|
|
|
585
677
|
};
|
|
586
678
|
};
|
|
587
679
|
|
|
588
|
-
function validate$
|
|
680
|
+
function validate$S(obj, path = 'ProductListInputRepresentation') {
|
|
589
681
|
const v_error = (() => {
|
|
590
682
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
683
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -722,7 +814,7 @@ const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(productList_
|
|
|
722
814
|
function typeCheckConfig$g(untrustedConfig) {
|
|
723
815
|
const config = {};
|
|
724
816
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
725
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
817
|
+
const referenceProductListInputRepresentationValidationError = validate$S(untrustedConfig_requestBody);
|
|
726
818
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
727
819
|
config.requestBody = untrustedConfig_requestBody;
|
|
728
820
|
}
|
|
@@ -770,7 +862,7 @@ const productListAdapterFactory = (luvio) => {
|
|
|
770
862
|
};
|
|
771
863
|
};
|
|
772
864
|
|
|
773
|
-
function validate$
|
|
865
|
+
function validate$R(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
774
866
|
const v_error = (() => {
|
|
775
867
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
776
868
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -794,7 +886,7 @@ function validate$Q(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
|
794
886
|
return v_error === undefined ? null : v_error;
|
|
795
887
|
}
|
|
796
888
|
|
|
797
|
-
function validate$
|
|
889
|
+
function validate$Q(obj, path = 'FilterInputRepresentation') {
|
|
798
890
|
const v_error = (() => {
|
|
799
891
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
800
892
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -807,7 +899,7 @@ function validate$P(obj, path = 'FilterInputRepresentation') {
|
|
|
807
899
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
808
900
|
const obj_criteria_item = obj_criteria[i];
|
|
809
901
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
810
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
902
|
+
const referencepath_criteria_itemValidationError = validate$R(obj_criteria_item, path_criteria_item);
|
|
811
903
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
812
904
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
813
905
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -818,7 +910,7 @@ function validate$P(obj, path = 'FilterInputRepresentation') {
|
|
|
818
910
|
return v_error === undefined ? null : v_error;
|
|
819
911
|
}
|
|
820
912
|
|
|
821
|
-
function validate$
|
|
913
|
+
function validate$P(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
822
914
|
const v_error = (() => {
|
|
823
915
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
824
916
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -831,7 +923,7 @@ function validate$O(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
831
923
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
832
924
|
const obj_criteria_item = obj_criteria[i];
|
|
833
925
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
834
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
926
|
+
const referencepath_criteria_itemValidationError = validate$R(obj_criteria_item, path_criteria_item);
|
|
835
927
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
836
928
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
837
929
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -847,7 +939,7 @@ function validate$O(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
847
939
|
return v_error === undefined ? null : v_error;
|
|
848
940
|
}
|
|
849
941
|
|
|
850
|
-
function validate$
|
|
942
|
+
function validate$O(obj, path = 'GuidedSelectionSearchTermInputRepresentation') {
|
|
851
943
|
const v_error = (() => {
|
|
852
944
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
853
945
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -877,7 +969,7 @@ function validate$N(obj, path = 'GuidedSelectionSearchTermInputRepresentation')
|
|
|
877
969
|
return v_error === undefined ? null : v_error;
|
|
878
970
|
}
|
|
879
971
|
|
|
880
|
-
function validate$
|
|
972
|
+
function validate$N(obj, path = 'GuidedSelectionSearchTermOutputRepresentation') {
|
|
881
973
|
const v_error = (() => {
|
|
882
974
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
883
975
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -905,14 +997,14 @@ function validate$M(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
|
|
|
905
997
|
|
|
906
998
|
const TTL$a = 1000;
|
|
907
999
|
const VERSION$i = "59b55511c24a0471c3f3a7aa8c21c5c1";
|
|
908
|
-
function validate$
|
|
1000
|
+
function validate$M(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
909
1001
|
const v_error = (() => {
|
|
910
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
911
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
912
1004
|
}
|
|
913
1005
|
const obj_apiStatus = obj.apiStatus;
|
|
914
1006
|
const path_apiStatus = path + '.apiStatus';
|
|
915
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1007
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
916
1008
|
if (referencepath_apiStatusValidationError !== null) {
|
|
917
1009
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
918
1010
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -974,7 +1066,7 @@ function validate$L(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
974
1066
|
for (let i = 0; i < obj_searchTerms.length; i++) {
|
|
975
1067
|
const obj_searchTerms_item = obj_searchTerms[i];
|
|
976
1068
|
const path_searchTerms_item = path_searchTerms + '[' + i + ']';
|
|
977
|
-
const referencepath_searchTerms_itemValidationError = validate$
|
|
1069
|
+
const referencepath_searchTerms_itemValidationError = validate$N(obj_searchTerms_item, path_searchTerms_item);
|
|
978
1070
|
if (referencepath_searchTerms_itemValidationError !== null) {
|
|
979
1071
|
let message = 'Object doesn\'t match GuidedSelectionSearchTermOutputRepresentation (at "' + path_searchTerms_item + '")\n';
|
|
980
1072
|
message += referencepath_searchTerms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1028,7 +1120,7 @@ function equals$i(existing, incoming) {
|
|
|
1028
1120
|
}
|
|
1029
1121
|
const ingest$b = function GuidedSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1030
1122
|
if (process.env.NODE_ENV !== 'production') {
|
|
1031
|
-
const validateError = validate$
|
|
1123
|
+
const validateError = validate$M(input);
|
|
1032
1124
|
if (validateError !== null) {
|
|
1033
1125
|
throw validateError;
|
|
1034
1126
|
}
|
|
@@ -1127,7 +1219,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1127
1219
|
}
|
|
1128
1220
|
}
|
|
1129
1221
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1130
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
1222
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
1131
1223
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1132
1224
|
config.filter = untrustedConfig_filter;
|
|
1133
1225
|
}
|
|
@@ -1136,7 +1228,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1136
1228
|
const untrustedConfig_relatedObjectFilters_array = [];
|
|
1137
1229
|
for (let i = 0, arrayLength = untrustedConfig_relatedObjectFilters.length; i < arrayLength; i++) {
|
|
1138
1230
|
const untrustedConfig_relatedObjectFilters_item = untrustedConfig_relatedObjectFilters[i];
|
|
1139
|
-
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$
|
|
1231
|
+
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$P(untrustedConfig_relatedObjectFilters_item);
|
|
1140
1232
|
if (referenceRelatedObjectFilterInputRepresentationValidationError === null) {
|
|
1141
1233
|
untrustedConfig_relatedObjectFilters_array.push(untrustedConfig_relatedObjectFilters_item);
|
|
1142
1234
|
}
|
|
@@ -1155,7 +1247,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1155
1247
|
const untrustedConfig_searchTerms_array = [];
|
|
1156
1248
|
for (let i = 0, arrayLength = untrustedConfig_searchTerms.length; i < arrayLength; i++) {
|
|
1157
1249
|
const untrustedConfig_searchTerms_item = untrustedConfig_searchTerms[i];
|
|
1158
|
-
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$
|
|
1250
|
+
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$O(untrustedConfig_searchTerms_item);
|
|
1159
1251
|
if (referenceGuidedSelectionSearchTermInputRepresentationValidationError === null) {
|
|
1160
1252
|
untrustedConfig_searchTerms_array.push(untrustedConfig_searchTerms_item);
|
|
1161
1253
|
}
|
|
@@ -1206,7 +1298,7 @@ const guidedSelectionProductListAdapterFactory = (luvio) => {
|
|
|
1206
1298
|
};
|
|
1207
1299
|
};
|
|
1208
1300
|
|
|
1209
|
-
function validate$
|
|
1301
|
+
function validate$L(obj, path = 'SearchProductsInputRepresentation') {
|
|
1210
1302
|
const v_error = (() => {
|
|
1211
1303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1212
1304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1350,7 +1442,7 @@ const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(searchProduc
|
|
|
1350
1442
|
function typeCheckConfig$e(untrustedConfig) {
|
|
1351
1443
|
const config = {};
|
|
1352
1444
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1353
|
-
const referenceSearchProductsInputRepresentationValidationError = validate$
|
|
1445
|
+
const referenceSearchProductsInputRepresentationValidationError = validate$L(untrustedConfig_requestBody);
|
|
1354
1446
|
if (referenceSearchProductsInputRepresentationValidationError === null) {
|
|
1355
1447
|
config.requestBody = untrustedConfig_requestBody;
|
|
1356
1448
|
}
|
|
@@ -1398,7 +1490,7 @@ const searchProductListAdapterFactory = (luvio) => {
|
|
|
1398
1490
|
};
|
|
1399
1491
|
};
|
|
1400
1492
|
|
|
1401
|
-
function validate$
|
|
1493
|
+
function validate$K(obj, path = 'ProductDataInput') {
|
|
1402
1494
|
const v_error = (() => {
|
|
1403
1495
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1404
1496
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1421,14 +1513,14 @@ function validate$J(obj, path = 'ProductDataInput') {
|
|
|
1421
1513
|
|
|
1422
1514
|
const TTL$9 = 1000;
|
|
1423
1515
|
const VERSION$h = "7d789beb75307985bad3ddf01d82b242";
|
|
1424
|
-
function validate$
|
|
1516
|
+
function validate$J(obj, path = 'CpqBaseBulkDetailsOutput') {
|
|
1425
1517
|
const v_error = (() => {
|
|
1426
1518
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1427
1519
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1428
1520
|
}
|
|
1429
1521
|
const obj_apiStatus = obj.apiStatus;
|
|
1430
1522
|
const path_apiStatus = path + '.apiStatus';
|
|
1431
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1523
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
1432
1524
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1433
1525
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1434
1526
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1499,7 +1591,7 @@ function equals$h(existing, incoming) {
|
|
|
1499
1591
|
}
|
|
1500
1592
|
const ingest$a = function CpqBaseBulkDetailsOutputIngest(input, path, luvio, store, timestamp) {
|
|
1501
1593
|
if (process.env.NODE_ENV !== 'production') {
|
|
1502
|
-
const validateError = validate$
|
|
1594
|
+
const validateError = validate$J(input);
|
|
1503
1595
|
if (validateError !== null) {
|
|
1504
1596
|
throw validateError;
|
|
1505
1597
|
}
|
|
@@ -1589,7 +1681,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
1589
1681
|
const untrustedConfig_productData_array = [];
|
|
1590
1682
|
for (let i = 0, arrayLength = untrustedConfig_productData.length; i < arrayLength; i++) {
|
|
1591
1683
|
const untrustedConfig_productData_item = untrustedConfig_productData[i];
|
|
1592
|
-
const referenceProductDataInputValidationError = validate$
|
|
1684
|
+
const referenceProductDataInputValidationError = validate$K(untrustedConfig_productData_item);
|
|
1593
1685
|
if (referenceProductDataInputValidationError === null) {
|
|
1594
1686
|
untrustedConfig_productData_array.push(untrustedConfig_productData_item);
|
|
1595
1687
|
}
|
|
@@ -1647,7 +1739,7 @@ const bulkProductDetailsAdapterFactory = (luvio) => {
|
|
|
1647
1739
|
};
|
|
1648
1740
|
};
|
|
1649
1741
|
|
|
1650
|
-
function validate$
|
|
1742
|
+
function validate$I(obj, path = 'ProductDetailsInputRepresentation') {
|
|
1651
1743
|
const v_error = (() => {
|
|
1652
1744
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1653
1745
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1698,14 +1790,14 @@ function validate$H(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
1698
1790
|
|
|
1699
1791
|
const TTL$8 = 1000;
|
|
1700
1792
|
const VERSION$g = "6e77a7585bc4d094518eb201471d85ea";
|
|
1701
|
-
function validate$
|
|
1793
|
+
function validate$H(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
1702
1794
|
const v_error = (() => {
|
|
1703
1795
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1704
1796
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1705
1797
|
}
|
|
1706
1798
|
const obj_apiStatus = obj.apiStatus;
|
|
1707
1799
|
const path_apiStatus = path + '.apiStatus';
|
|
1708
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1800
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
1709
1801
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1710
1802
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1711
1803
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1753,7 +1845,7 @@ function equals$g(existing, incoming) {
|
|
|
1753
1845
|
}
|
|
1754
1846
|
const ingest$9 = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1755
1847
|
if (process.env.NODE_ENV !== 'production') {
|
|
1756
|
-
const validateError = validate$
|
|
1848
|
+
const validateError = validate$H(input);
|
|
1757
1849
|
if (validateError !== null) {
|
|
1758
1850
|
throw validateError;
|
|
1759
1851
|
}
|
|
@@ -1821,7 +1913,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
1821
1913
|
const config = {};
|
|
1822
1914
|
typeCheckConfig$i(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
1823
1915
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1824
|
-
const referenceProductDetailsInputRepresentationValidationError = validate$
|
|
1916
|
+
const referenceProductDetailsInputRepresentationValidationError = validate$I(untrustedConfig_requestBody);
|
|
1825
1917
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
1826
1918
|
config.requestBody = untrustedConfig_requestBody;
|
|
1827
1919
|
}
|
|
@@ -1929,7 +2021,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1929
2021
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
1930
2022
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
1931
2023
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1932
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2024
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
1933
2025
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1934
2026
|
config.filter = untrustedConfig_filter;
|
|
1935
2027
|
}
|
|
@@ -2051,7 +2143,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
2051
2143
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2052
2144
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2053
2145
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2054
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2146
|
+
const referenceFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filter);
|
|
2055
2147
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2056
2148
|
config.filter = untrustedConfig_filter;
|
|
2057
2149
|
}
|
|
@@ -2114,7 +2206,7 @@ const categoryDetailsAdapterFactory = (luvio) => {
|
|
|
2114
2206
|
};
|
|
2115
2207
|
};
|
|
2116
2208
|
|
|
2117
|
-
function validate$
|
|
2209
|
+
function validate$G(obj, path = 'CreateCartInputRepresentation') {
|
|
2118
2210
|
const v_error = (() => {
|
|
2119
2211
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2120
2212
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2185,14 +2277,14 @@ function validate$F(obj, path = 'CreateCartInputRepresentation') {
|
|
|
2185
2277
|
|
|
2186
2278
|
const TTL$7 = 1000;
|
|
2187
2279
|
const VERSION$f = "1f730145ab6b9f6b4d070b5eade57b4c";
|
|
2188
|
-
function validate$
|
|
2280
|
+
function validate$F(obj, path = 'CreateCartOutputRepresentation') {
|
|
2189
2281
|
const v_error = (() => {
|
|
2190
2282
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2191
2283
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2192
2284
|
}
|
|
2193
2285
|
const obj_apiStatus = obj.apiStatus;
|
|
2194
2286
|
const path_apiStatus = path + '.apiStatus';
|
|
2195
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2287
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
2196
2288
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2197
2289
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2198
2290
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2237,7 +2329,7 @@ function equals$f(existing, incoming) {
|
|
|
2237
2329
|
}
|
|
2238
2330
|
const ingest$8 = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2239
2331
|
if (process.env.NODE_ENV !== 'production') {
|
|
2240
|
-
const validateError = validate$
|
|
2332
|
+
const validateError = validate$F(input);
|
|
2241
2333
|
if (validateError !== null) {
|
|
2242
2334
|
throw validateError;
|
|
2243
2335
|
}
|
|
@@ -2303,7 +2395,7 @@ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(createCart_C
|
|
|
2303
2395
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2304
2396
|
const config = {};
|
|
2305
2397
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
2306
|
-
const referenceCreateCartInputRepresentationValidationError = validate$
|
|
2398
|
+
const referenceCreateCartInputRepresentationValidationError = validate$G(untrustedConfig_createCartRequestPayload);
|
|
2307
2399
|
if (referenceCreateCartInputRepresentationValidationError === null) {
|
|
2308
2400
|
config.createCartRequestPayload = untrustedConfig_createCartRequestPayload;
|
|
2309
2401
|
}
|
|
@@ -2352,7 +2444,7 @@ const createCartAdapterFactory = (luvio) => {
|
|
|
2352
2444
|
};
|
|
2353
2445
|
|
|
2354
2446
|
const VERSION$e = "c49b7c37c117b93f62b9696af8a68cdc";
|
|
2355
|
-
function validate$
|
|
2447
|
+
function validate$E(obj, path = 'AttributePickListValueOutputRepresentation') {
|
|
2356
2448
|
const v_error = (() => {
|
|
2357
2449
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2358
2450
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2624,7 +2716,7 @@ function equals$e(existing, incoming) {
|
|
|
2624
2716
|
}
|
|
2625
2717
|
|
|
2626
2718
|
const VERSION$d = "78e748e628eb86e688eec1678db105d8";
|
|
2627
|
-
function validate$
|
|
2719
|
+
function validate$D(obj, path = 'AttributePickListOutputRepresentation') {
|
|
2628
2720
|
const v_error = (() => {
|
|
2629
2721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2630
2722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2673,7 +2765,7 @@ function validate$C(obj, path = 'AttributePickListOutputRepresentation') {
|
|
|
2673
2765
|
for (let i = 0; i < obj_values.length; i++) {
|
|
2674
2766
|
const obj_values_item = obj_values[i];
|
|
2675
2767
|
const path_values_item = path_values + '[' + i + ']';
|
|
2676
|
-
const referencepath_values_itemValidationError = validate$
|
|
2768
|
+
const referencepath_values_itemValidationError = validate$E(obj_values_item, path_values_item);
|
|
2677
2769
|
if (referencepath_values_itemValidationError !== null) {
|
|
2678
2770
|
let message = 'Object doesn\'t match AttributePickListValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
2679
2771
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2814,7 +2906,7 @@ function equals$d(existing, incoming) {
|
|
|
2814
2906
|
}
|
|
2815
2907
|
|
|
2816
2908
|
const VERSION$c = "a721b7658e0e47f6255b519635c8e0d4";
|
|
2817
|
-
function validate$
|
|
2909
|
+
function validate$C(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
2818
2910
|
const v_error = (() => {
|
|
2819
2911
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2820
2912
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2843,7 +2935,7 @@ function validate$B(obj, path = 'ProductAttributeOutputRepresentation') {
|
|
|
2843
2935
|
if (obj.attributePickList !== undefined) {
|
|
2844
2936
|
const obj_attributePickList = obj.attributePickList;
|
|
2845
2937
|
const path_attributePickList = path + '.attributePickList';
|
|
2846
|
-
const referencepath_attributePickListValidationError = validate$
|
|
2938
|
+
const referencepath_attributePickListValidationError = validate$D(obj_attributePickList, path_attributePickList);
|
|
2847
2939
|
if (referencepath_attributePickListValidationError !== null) {
|
|
2848
2940
|
let message = 'Object doesn\'t match AttributePickListOutputRepresentation (at "' + path_attributePickList + '")\n';
|
|
2849
2941
|
message += referencepath_attributePickListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3558,7 +3650,7 @@ function equals$c(existing, incoming) {
|
|
|
3558
3650
|
}
|
|
3559
3651
|
|
|
3560
3652
|
const VERSION$b = "63ca2614b6879bfb4df068438d7e78ec";
|
|
3561
|
-
function validate$
|
|
3653
|
+
function validate$B(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
3562
3654
|
const v_error = (() => {
|
|
3563
3655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3564
3656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3600,7 +3692,7 @@ function validate$A(obj, path = 'AttributeCategoryOutputRepresentation') {
|
|
|
3600
3692
|
for (let i = 0; i < obj_records.length; i++) {
|
|
3601
3693
|
const obj_records_item = obj_records[i];
|
|
3602
3694
|
const path_records_item = path_records + '[' + i + ']';
|
|
3603
|
-
const referencepath_records_itemValidationError = validate$
|
|
3695
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
3604
3696
|
if (referencepath_records_itemValidationError !== null) {
|
|
3605
3697
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
|
|
3606
3698
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3798,7 +3890,7 @@ function equals$b(existing, incoming) {
|
|
|
3798
3890
|
}
|
|
3799
3891
|
|
|
3800
3892
|
const VERSION$a = "a59ef129f333de8bbfe140f39144b415";
|
|
3801
|
-
function validate$
|
|
3893
|
+
function validate$A(obj, path = 'CartItemOutputRepresentation') {
|
|
3802
3894
|
const v_error = (() => {
|
|
3803
3895
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3804
3896
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3812,7 +3904,7 @@ function validate$z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
3812
3904
|
for (let i = 0; i < obj_attributeCategories.length; i++) {
|
|
3813
3905
|
const obj_attributeCategories_item = obj_attributeCategories[i];
|
|
3814
3906
|
const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
|
|
3815
|
-
const referencepath_attributeCategories_itemValidationError = validate$
|
|
3907
|
+
const referencepath_attributeCategories_itemValidationError = validate$B(obj_attributeCategories_item, path_attributeCategories_item);
|
|
3816
3908
|
if (referencepath_attributeCategories_itemValidationError !== null) {
|
|
3817
3909
|
let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
|
|
3818
3910
|
message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3829,7 +3921,7 @@ function validate$z(obj, path = 'CartItemOutputRepresentation') {
|
|
|
3829
3921
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3830
3922
|
const obj_attributes_item = obj_attributes[i];
|
|
3831
3923
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3832
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3924
|
+
const referencepath_attributes_itemValidationError = validate$C(obj_attributes_item, path_attributes_item);
|
|
3833
3925
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3834
3926
|
let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
3835
3927
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4119,7 +4211,7 @@ function equals$a(existing, incoming) {
|
|
|
4119
4211
|
}
|
|
4120
4212
|
|
|
4121
4213
|
const VERSION$9 = "dbbe0e43dcf8f1d5334798bb12acca37";
|
|
4122
|
-
function validate$
|
|
4214
|
+
function validate$z(obj, path = 'CartItemsOutputRepresentation') {
|
|
4123
4215
|
const v_error = (() => {
|
|
4124
4216
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4125
4217
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4133,7 +4225,7 @@ function validate$y(obj, path = 'CartItemsOutputRepresentation') {
|
|
|
4133
4225
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4134
4226
|
const obj_records_item = obj_records[i];
|
|
4135
4227
|
const path_records_item = path_records + '[' + i + ']';
|
|
4136
|
-
const referencepath_records_itemValidationError = validate$
|
|
4228
|
+
const referencepath_records_itemValidationError = validate$A(obj_records_item, path_records_item);
|
|
4137
4229
|
if (referencepath_records_itemValidationError !== null) {
|
|
4138
4230
|
let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
|
|
4139
4231
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4209,7 +4301,7 @@ function equals$9(existing, incoming) {
|
|
|
4209
4301
|
}
|
|
4210
4302
|
|
|
4211
4303
|
const VERSION$8 = "ce1e52694d8508b2f5239ba28287dc1e";
|
|
4212
|
-
function validate$
|
|
4304
|
+
function validate$y(obj, path = 'PricingTotalOutputRepresentation') {
|
|
4213
4305
|
const v_error = (() => {
|
|
4214
4306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4215
4307
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4327,14 +4419,14 @@ function equals$8(existing, incoming) {
|
|
|
4327
4419
|
}
|
|
4328
4420
|
|
|
4329
4421
|
const VERSION$7 = "db83704358e5d7a3f3f3622cdd0a5114";
|
|
4330
|
-
function validate$
|
|
4422
|
+
function validate$x(obj, path = 'GetCartOutputRepresentation') {
|
|
4331
4423
|
const v_error = (() => {
|
|
4332
4424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4333
4425
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4334
4426
|
}
|
|
4335
4427
|
const obj_apiStatus = obj.apiStatus;
|
|
4336
4428
|
const path_apiStatus = path + '.apiStatus';
|
|
4337
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4429
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
4338
4430
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4339
4431
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4340
4432
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4350,7 +4442,7 @@ function validate$w(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4350
4442
|
if (obj.cartItems !== undefined) {
|
|
4351
4443
|
const obj_cartItems = obj.cartItems;
|
|
4352
4444
|
const path_cartItems = path + '.cartItems';
|
|
4353
|
-
const referencepath_cartItemsValidationError = validate$
|
|
4445
|
+
const referencepath_cartItemsValidationError = validate$z(obj_cartItems, path_cartItems);
|
|
4354
4446
|
if (referencepath_cartItemsValidationError !== null) {
|
|
4355
4447
|
let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
|
|
4356
4448
|
message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4366,7 +4458,7 @@ function validate$w(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4366
4458
|
for (let i = 0; i < obj_totals.length; i++) {
|
|
4367
4459
|
const obj_totals_item = obj_totals[i];
|
|
4368
4460
|
const path_totals_item = path_totals + '[' + i + ']';
|
|
4369
|
-
const referencepath_totals_itemValidationError = validate$
|
|
4461
|
+
const referencepath_totals_itemValidationError = validate$y(obj_totals_item, path_totals_item);
|
|
4370
4462
|
if (referencepath_totals_itemValidationError !== null) {
|
|
4371
4463
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
|
|
4372
4464
|
message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4470,7 +4562,7 @@ function equals$7(existing, incoming) {
|
|
|
4470
4562
|
}
|
|
4471
4563
|
const ingest$7 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4472
4564
|
if (process.env.NODE_ENV !== 'production') {
|
|
4473
|
-
const validateError = validate$
|
|
4565
|
+
const validateError = validate$x(input);
|
|
4474
4566
|
if (validateError !== null) {
|
|
4475
4567
|
throw validateError;
|
|
4476
4568
|
}
|
|
@@ -4622,7 +4714,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
|
|
|
4622
4714
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4623
4715
|
};
|
|
4624
4716
|
|
|
4625
|
-
function validate$
|
|
4717
|
+
function validate$w(obj, path = 'UpdateCartInputRepresentation') {
|
|
4626
4718
|
const v_error = (() => {
|
|
4627
4719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4628
4720
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4657,7 +4749,7 @@ function validate$v(obj, path = 'UpdateCartInputRepresentation') {
|
|
|
4657
4749
|
return v_error === undefined ? null : v_error;
|
|
4658
4750
|
}
|
|
4659
4751
|
|
|
4660
|
-
function validate$
|
|
4752
|
+
function validate$v(obj, path = 'ValidationResultOutputRepresentation') {
|
|
4661
4753
|
const v_error = (() => {
|
|
4662
4754
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4663
4755
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4701,7 +4793,7 @@ function validate$u(obj, path = 'ValidationResultOutputRepresentation') {
|
|
|
4701
4793
|
return v_error === undefined ? null : v_error;
|
|
4702
4794
|
}
|
|
4703
4795
|
|
|
4704
|
-
function validate$
|
|
4796
|
+
function validate$u(obj, path = 'ValidateCartOutputRepresentation') {
|
|
4705
4797
|
const v_error = (() => {
|
|
4706
4798
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4707
4799
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4715,7 +4807,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4715
4807
|
for (let i = 0; i < obj_attributeErrors.length; i++) {
|
|
4716
4808
|
const obj_attributeErrors_item = obj_attributeErrors[i];
|
|
4717
4809
|
const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
|
|
4718
|
-
const referencepath_attributeErrors_itemValidationError = validate$
|
|
4810
|
+
const referencepath_attributeErrors_itemValidationError = validate$v(obj_attributeErrors_item, path_attributeErrors_item);
|
|
4719
4811
|
if (referencepath_attributeErrors_itemValidationError !== null) {
|
|
4720
4812
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
|
|
4721
4813
|
message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4732,7 +4824,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4732
4824
|
for (let i = 0; i < obj_breErrors.length; i++) {
|
|
4733
4825
|
const obj_breErrors_item = obj_breErrors[i];
|
|
4734
4826
|
const path_breErrors_item = path_breErrors + '[' + i + ']';
|
|
4735
|
-
const referencepath_breErrors_itemValidationError = validate$
|
|
4827
|
+
const referencepath_breErrors_itemValidationError = validate$v(obj_breErrors_item, path_breErrors_item);
|
|
4736
4828
|
if (referencepath_breErrors_itemValidationError !== null) {
|
|
4737
4829
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
|
|
4738
4830
|
message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4749,7 +4841,7 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4749
4841
|
for (let i = 0; i < obj_cardinalityErrors.length; i++) {
|
|
4750
4842
|
const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
|
|
4751
4843
|
const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
|
|
4752
|
-
const referencepath_cardinalityErrors_itemValidationError = validate$
|
|
4844
|
+
const referencepath_cardinalityErrors_itemValidationError = validate$v(obj_cardinalityErrors_item, path_cardinalityErrors_item);
|
|
4753
4845
|
if (referencepath_cardinalityErrors_itemValidationError !== null) {
|
|
4754
4846
|
let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
|
|
4755
4847
|
message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4770,14 +4862,14 @@ function validate$t(obj, path = 'ValidateCartOutputRepresentation') {
|
|
|
4770
4862
|
|
|
4771
4863
|
const TTL$6 = 1000;
|
|
4772
4864
|
const VERSION$6 = "b0d6081a9f20773285c8aeb2e715ead3";
|
|
4773
|
-
function validate$
|
|
4865
|
+
function validate$t(obj, path = 'UpdateCartOutputRepresentation') {
|
|
4774
4866
|
const v_error = (() => {
|
|
4775
4867
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4776
4868
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4777
4869
|
}
|
|
4778
4870
|
const obj_apiStatus = obj.apiStatus;
|
|
4779
4871
|
const path_apiStatus = path + '.apiStatus';
|
|
4780
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4872
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
4781
4873
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4782
4874
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4783
4875
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4785,7 +4877,7 @@ function validate$s(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
4785
4877
|
}
|
|
4786
4878
|
const obj_validationResults = obj.validationResults;
|
|
4787
4879
|
const path_validationResults = path + '.validationResults';
|
|
4788
|
-
const referencepath_validationResultsValidationError = validate$
|
|
4880
|
+
const referencepath_validationResultsValidationError = validate$u(obj_validationResults, path_validationResults);
|
|
4789
4881
|
if (referencepath_validationResultsValidationError !== null) {
|
|
4790
4882
|
let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
|
|
4791
4883
|
message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4823,7 +4915,7 @@ function equals$6(existing, incoming) {
|
|
|
4823
4915
|
}
|
|
4824
4916
|
const ingest$6 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4825
4917
|
if (process.env.NODE_ENV !== 'production') {
|
|
4826
|
-
const validateError = validate$
|
|
4918
|
+
const validateError = validate$t(input);
|
|
4827
4919
|
if (validateError !== null) {
|
|
4828
4920
|
throw validateError;
|
|
4829
4921
|
}
|
|
@@ -4891,7 +4983,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
4891
4983
|
const config = {};
|
|
4892
4984
|
typeCheckConfig$i(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
4893
4985
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4894
|
-
const referenceUpdateCartInputRepresentationValidationError = validate$
|
|
4986
|
+
const referenceUpdateCartInputRepresentationValidationError = validate$w(untrustedConfig_requestBody);
|
|
4895
4987
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
4896
4988
|
config.requestBody = untrustedConfig_requestBody;
|
|
4897
4989
|
}
|
|
@@ -4939,7 +5031,7 @@ const updateCartAdapterFactory = (luvio) => {
|
|
|
4939
5031
|
};
|
|
4940
5032
|
};
|
|
4941
5033
|
|
|
4942
|
-
function validate$
|
|
5034
|
+
function validate$s(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
4943
5035
|
const v_error = (() => {
|
|
4944
5036
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4945
5037
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4978,14 +5070,14 @@ function validate$r(obj, path = 'UpdateCartItemsInputRepresentation') {
|
|
|
4978
5070
|
|
|
4979
5071
|
const TTL$5 = 1000;
|
|
4980
5072
|
const VERSION$5 = "7f205594e7cf298b4bee71200afab626";
|
|
4981
|
-
function validate$
|
|
5073
|
+
function validate$r(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
4982
5074
|
const v_error = (() => {
|
|
4983
5075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4984
5076
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4985
5077
|
}
|
|
4986
5078
|
const obj_apiStatus = obj.apiStatus;
|
|
4987
5079
|
const path_apiStatus = path + '.apiStatus';
|
|
4988
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5080
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
4989
5081
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4990
5082
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4991
5083
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5030,7 +5122,7 @@ function equals$5(existing, incoming) {
|
|
|
5030
5122
|
}
|
|
5031
5123
|
const ingest$5 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5032
5124
|
if (process.env.NODE_ENV !== 'production') {
|
|
5033
|
-
const validateError = validate$
|
|
5125
|
+
const validateError = validate$r(input);
|
|
5034
5126
|
if (validateError !== null) {
|
|
5035
5127
|
throw validateError;
|
|
5036
5128
|
}
|
|
@@ -5098,7 +5190,7 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
5098
5190
|
const config = {};
|
|
5099
5191
|
typeCheckConfig$i(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
5100
5192
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5101
|
-
const referenceUpdateCartItemsInputRepresentationValidationError = validate$
|
|
5193
|
+
const referenceUpdateCartItemsInputRepresentationValidationError = validate$s(untrustedConfig_requestBody);
|
|
5102
5194
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
5103
5195
|
config.requestBody = untrustedConfig_requestBody;
|
|
5104
5196
|
}
|
|
@@ -5146,7 +5238,7 @@ const updateCartItemsAdapterFactory = (luvio) => {
|
|
|
5146
5238
|
};
|
|
5147
5239
|
};
|
|
5148
5240
|
|
|
5149
|
-
function validate$
|
|
5241
|
+
function validate$q(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
5150
5242
|
const v_error = (() => {
|
|
5151
5243
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5152
5244
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5185,14 +5277,14 @@ function validate$p(obj, path = 'CreateCartItemsInputRepresentation') {
|
|
|
5185
5277
|
|
|
5186
5278
|
const TTL$4 = 1000;
|
|
5187
5279
|
const VERSION$4 = "34153309b079451754e6d3fbf85bb8bd";
|
|
5188
|
-
function validate$
|
|
5280
|
+
function validate$p(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
5189
5281
|
const v_error = (() => {
|
|
5190
5282
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5191
5283
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5192
5284
|
}
|
|
5193
5285
|
const obj_apiStatus = obj.apiStatus;
|
|
5194
5286
|
const path_apiStatus = path + '.apiStatus';
|
|
5195
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5287
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
5196
5288
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5197
5289
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5198
5290
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5237,7 +5329,7 @@ function equals$4(existing, incoming) {
|
|
|
5237
5329
|
}
|
|
5238
5330
|
const ingest$4 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5239
5331
|
if (process.env.NODE_ENV !== 'production') {
|
|
5240
|
-
const validateError = validate$
|
|
5332
|
+
const validateError = validate$p(input);
|
|
5241
5333
|
if (validateError !== null) {
|
|
5242
5334
|
throw validateError;
|
|
5243
5335
|
}
|
|
@@ -5305,7 +5397,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5305
5397
|
const config = {};
|
|
5306
5398
|
typeCheckConfig$i(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
5307
5399
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5308
|
-
const referenceCreateCartItemsInputRepresentationValidationError = validate$
|
|
5400
|
+
const referenceCreateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
|
|
5309
5401
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
5310
5402
|
config.requestBody = untrustedConfig_requestBody;
|
|
5311
5403
|
}
|
|
@@ -5353,7 +5445,7 @@ const createCartItemsAdapterFactory = (luvio) => {
|
|
|
5353
5445
|
};
|
|
5354
5446
|
};
|
|
5355
5447
|
|
|
5356
|
-
function validate$
|
|
5448
|
+
function validate$o(obj, path = 'PriceCartInputRepresentation') {
|
|
5357
5449
|
const v_error = (() => {
|
|
5358
5450
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5359
5451
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5392,14 +5484,14 @@ function validate$n(obj, path = 'PriceCartInputRepresentation') {
|
|
|
5392
5484
|
|
|
5393
5485
|
const TTL$3 = 1000;
|
|
5394
5486
|
const VERSION$3 = "b1e28ba15f534459065f2870a9dc703d";
|
|
5395
|
-
function validate$
|
|
5487
|
+
function validate$n(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
5396
5488
|
const v_error = (() => {
|
|
5397
5489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5398
5490
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5399
5491
|
}
|
|
5400
5492
|
const obj_apiStatus = obj.apiStatus;
|
|
5401
5493
|
const path_apiStatus = path + '.apiStatus';
|
|
5402
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5494
|
+
const referencepath_apiStatusValidationError = validate$W(obj_apiStatus, path_apiStatus);
|
|
5403
5495
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5404
5496
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5405
5497
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5421,7 +5513,7 @@ function validate$m(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
5421
5513
|
for (let i = 0; i < obj_cartPricingTotals.length; i++) {
|
|
5422
5514
|
const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
|
|
5423
5515
|
const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
|
|
5424
|
-
const referencepath_cartPricingTotals_itemValidationError = validate$
|
|
5516
|
+
const referencepath_cartPricingTotals_itemValidationError = validate$y(obj_cartPricingTotals_item, path_cartPricingTotals_item);
|
|
5425
5517
|
if (referencepath_cartPricingTotals_itemValidationError !== null) {
|
|
5426
5518
|
let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
|
|
5427
5519
|
message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5461,7 +5553,7 @@ function equals$3(existing, incoming) {
|
|
|
5461
5553
|
}
|
|
5462
5554
|
const ingest$3 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5463
5555
|
if (process.env.NODE_ENV !== 'production') {
|
|
5464
|
-
const validateError = validate$
|
|
5556
|
+
const validateError = validate$n(input);
|
|
5465
5557
|
if (validateError !== null) {
|
|
5466
5558
|
throw validateError;
|
|
5467
5559
|
}
|
|
@@ -5529,7 +5621,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
5529
5621
|
const config = {};
|
|
5530
5622
|
typeCheckConfig$i(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
5531
5623
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5532
|
-
const referencePriceCartInputRepresentationValidationError = validate$
|
|
5624
|
+
const referencePriceCartInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
|
|
5533
5625
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
5534
5626
|
config.requestBody = untrustedConfig_requestBody;
|
|
5535
5627
|
}
|
|
@@ -5577,7 +5669,7 @@ const priceCartAdapterFactory = (luvio) => {
|
|
|
5577
5669
|
};
|
|
5578
5670
|
};
|
|
5579
5671
|
|
|
5580
|
-
function validate$
|
|
5672
|
+
function validate$m(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
5581
5673
|
const v_error = (() => {
|
|
5582
5674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5583
5675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5605,7 +5697,7 @@ function validate$l(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
|
|
|
5605
5697
|
return v_error === undefined ? null : v_error;
|
|
5606
5698
|
}
|
|
5607
5699
|
|
|
5608
|
-
function validate$
|
|
5700
|
+
function validate$l(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
5609
5701
|
const v_error = (() => {
|
|
5610
5702
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5611
5703
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5670,7 +5762,7 @@ function validate$k(obj, path = 'ConfiguratorOptionsInputRepresentation') {
|
|
|
5670
5762
|
return v_error === undefined ? null : v_error;
|
|
5671
5763
|
}
|
|
5672
5764
|
|
|
5673
|
-
function validate$
|
|
5765
|
+
function validate$k(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
5674
5766
|
const v_error = (() => {
|
|
5675
5767
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5676
5768
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5693,7 +5785,7 @@ function validate$j(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
|
|
|
5693
5785
|
return v_error === undefined ? null : v_error;
|
|
5694
5786
|
}
|
|
5695
5787
|
|
|
5696
|
-
function validate$
|
|
5788
|
+
function validate$j(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
5697
5789
|
const v_error = (() => {
|
|
5698
5790
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5699
5791
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5721,7 +5813,7 @@ function validate$i(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
|
|
|
5721
5813
|
return v_error === undefined ? null : v_error;
|
|
5722
5814
|
}
|
|
5723
5815
|
|
|
5724
|
-
function validate$
|
|
5816
|
+
function validate$i(obj, path = 'ConfiguratorInputRepresentation') {
|
|
5725
5817
|
const v_error = (() => {
|
|
5726
5818
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5727
5819
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5735,7 +5827,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5735
5827
|
for (let i = 0; i < obj_addedNodes.length; i++) {
|
|
5736
5828
|
const obj_addedNodes_item = obj_addedNodes[i];
|
|
5737
5829
|
const path_addedNodes_item = path_addedNodes + '[' + i + ']';
|
|
5738
|
-
const referencepath_addedNodes_itemValidationError = validate$
|
|
5830
|
+
const referencepath_addedNodes_itemValidationError = validate$m(obj_addedNodes_item, path_addedNodes_item);
|
|
5739
5831
|
if (referencepath_addedNodes_itemValidationError !== null) {
|
|
5740
5832
|
let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
|
|
5741
5833
|
message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5746,7 +5838,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5746
5838
|
if (obj.configuratorOptions !== undefined) {
|
|
5747
5839
|
const obj_configuratorOptions = obj.configuratorOptions;
|
|
5748
5840
|
const path_configuratorOptions = path + '.configuratorOptions';
|
|
5749
|
-
const referencepath_configuratorOptionsValidationError = validate$
|
|
5841
|
+
const referencepath_configuratorOptionsValidationError = validate$l(obj_configuratorOptions, path_configuratorOptions);
|
|
5750
5842
|
if (referencepath_configuratorOptionsValidationError !== null) {
|
|
5751
5843
|
let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
|
|
5752
5844
|
message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5804,7 +5896,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5804
5896
|
for (let i = 0; i < obj_deletedNodes.length; i++) {
|
|
5805
5897
|
const obj_deletedNodes_item = obj_deletedNodes[i];
|
|
5806
5898
|
const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
|
|
5807
|
-
const referencepath_deletedNodes_itemValidationError = validate$
|
|
5899
|
+
const referencepath_deletedNodes_itemValidationError = validate$k(obj_deletedNodes_item, path_deletedNodes_item);
|
|
5808
5900
|
if (referencepath_deletedNodes_itemValidationError !== null) {
|
|
5809
5901
|
let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
|
|
5810
5902
|
message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5912,7 +6004,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5912
6004
|
for (let i = 0; i < obj_updatedNodes.length; i++) {
|
|
5913
6005
|
const obj_updatedNodes_item = obj_updatedNodes[i];
|
|
5914
6006
|
const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
|
|
5915
|
-
const referencepath_updatedNodes_itemValidationError = validate$
|
|
6007
|
+
const referencepath_updatedNodes_itemValidationError = validate$j(obj_updatedNodes_item, path_updatedNodes_item);
|
|
5916
6008
|
if (referencepath_updatedNodes_itemValidationError !== null) {
|
|
5917
6009
|
let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
|
|
5918
6010
|
message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5924,7 +6016,7 @@ function validate$h(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
5924
6016
|
return v_error === undefined ? null : v_error;
|
|
5925
6017
|
}
|
|
5926
6018
|
|
|
5927
|
-
function validate$
|
|
6019
|
+
function validate$h(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
|
|
5928
6020
|
const v_error = (() => {
|
|
5929
6021
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5930
6022
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5961,7 +6053,7 @@ function validate$g(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentatio
|
|
|
5961
6053
|
return v_error === undefined ? null : v_error;
|
|
5962
6054
|
}
|
|
5963
6055
|
|
|
5964
|
-
function validate$
|
|
6056
|
+
function validate$g(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
|
|
5965
6057
|
const v_error = (() => {
|
|
5966
6058
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5967
6059
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6040,7 +6132,7 @@ function validate$f(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
|
|
|
6040
6132
|
return v_error === undefined ? null : v_error;
|
|
6041
6133
|
}
|
|
6042
6134
|
|
|
6043
|
-
function validate$
|
|
6135
|
+
function validate$f(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
|
|
6044
6136
|
const v_error = (() => {
|
|
6045
6137
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6046
6138
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6082,7 +6174,7 @@ function validate$e(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6082
6174
|
for (let i = 0; i < obj_values.length; i++) {
|
|
6083
6175
|
const obj_values_item = obj_values[i];
|
|
6084
6176
|
const path_values_item = path_values + '[' + i + ']';
|
|
6085
|
-
const referencepath_values_itemValidationError = validate$
|
|
6177
|
+
const referencepath_values_itemValidationError = validate$g(obj_values_item, path_values_item);
|
|
6086
6178
|
if (referencepath_values_itemValidationError !== null) {
|
|
6087
6179
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
|
|
6088
6180
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6094,6 +6186,43 @@ function validate$e(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
|
|
|
6094
6186
|
return v_error === undefined ? null : v_error;
|
|
6095
6187
|
}
|
|
6096
6188
|
|
|
6189
|
+
function validate$e(obj, path = 'ConfiguratorUnitOfMeasureOutputRepresentation') {
|
|
6190
|
+
const v_error = (() => {
|
|
6191
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6192
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6193
|
+
}
|
|
6194
|
+
if (obj.id !== undefined) {
|
|
6195
|
+
const obj_id = obj.id;
|
|
6196
|
+
const path_id = path + '.id';
|
|
6197
|
+
if (typeof obj_id !== 'string') {
|
|
6198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6199
|
+
}
|
|
6200
|
+
}
|
|
6201
|
+
if (obj.name !== undefined) {
|
|
6202
|
+
const obj_name = obj.name;
|
|
6203
|
+
const path_name = path + '.name';
|
|
6204
|
+
if (typeof obj_name !== 'string') {
|
|
6205
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
if (obj.roundingMethod !== undefined) {
|
|
6209
|
+
const obj_roundingMethod = obj.roundingMethod;
|
|
6210
|
+
const path_roundingMethod = path + '.roundingMethod';
|
|
6211
|
+
if (typeof obj_roundingMethod !== 'string') {
|
|
6212
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roundingMethod + '" (at "' + path_roundingMethod + '")');
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
if (obj.scale !== undefined) {
|
|
6216
|
+
const obj_scale = obj.scale;
|
|
6217
|
+
const path_scale = path + '.scale';
|
|
6218
|
+
if (typeof obj_scale !== 'number' || (typeof obj_scale === 'number' && Math.floor(obj_scale) !== obj_scale)) {
|
|
6219
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_scale + '" (at "' + path_scale + '")');
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
})();
|
|
6223
|
+
return v_error === undefined ? null : v_error;
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6097
6226
|
function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
6098
6227
|
const v_error = (() => {
|
|
6099
6228
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6116,7 +6245,7 @@ function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6116
6245
|
if (obj.attributePicklist !== undefined) {
|
|
6117
6246
|
const obj_attributePicklist = obj.attributePicklist;
|
|
6118
6247
|
const path_attributePicklist = path + '.attributePicklist';
|
|
6119
|
-
const referencepath_attributePicklistValidationError = validate$
|
|
6248
|
+
const referencepath_attributePicklistValidationError = validate$f(obj_attributePicklist, path_attributePicklist);
|
|
6120
6249
|
if (referencepath_attributePicklistValidationError !== null) {
|
|
6121
6250
|
let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
|
|
6122
6251
|
message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6270,6 +6399,16 @@ function validate$d(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
|
|
|
6270
6399
|
return new TypeError('Expected "string" but received "' + typeof obj_stepValue + '" (at "' + path_stepValue + '")');
|
|
6271
6400
|
}
|
|
6272
6401
|
}
|
|
6402
|
+
if (obj.unitOfMeasure !== undefined) {
|
|
6403
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
6404
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
6405
|
+
const referencepath_unitOfMeasureValidationError = validate$e(obj_unitOfMeasure, path_unitOfMeasure);
|
|
6406
|
+
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
6407
|
+
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
6408
|
+
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6409
|
+
return new TypeError(message);
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6273
6412
|
if (obj.userValue !== undefined) {
|
|
6274
6413
|
const obj_userValue = obj.userValue;
|
|
6275
6414
|
const path_userValue = path + '.userValue';
|
|
@@ -6882,7 +7021,7 @@ function validate$3(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
6882
7021
|
for (let i = 0; i < obj_additionalFields.length; i++) {
|
|
6883
7022
|
const obj_additionalFields_item = obj_additionalFields[i];
|
|
6884
7023
|
const path_additionalFields_item = path_additionalFields + '[' + i + ']';
|
|
6885
|
-
const referencepath_additionalFields_itemValidationError = validate$
|
|
7024
|
+
const referencepath_additionalFields_itemValidationError = validate$h(obj_additionalFields_item, path_additionalFields_item);
|
|
6886
7025
|
if (referencepath_additionalFields_itemValidationError !== null) {
|
|
6887
7026
|
let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
|
|
6888
7027
|
message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7121,6 +7260,16 @@ function validate$3(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7121
7260
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
7122
7261
|
}
|
|
7123
7262
|
}
|
|
7263
|
+
if (obj.unitOfMeasure !== undefined) {
|
|
7264
|
+
const obj_unitOfMeasure = obj.unitOfMeasure;
|
|
7265
|
+
const path_unitOfMeasure = path + '.unitOfMeasure';
|
|
7266
|
+
const referencepath_unitOfMeasureValidationError = validate$e(obj_unitOfMeasure, path_unitOfMeasure);
|
|
7267
|
+
if (referencepath_unitOfMeasureValidationError !== null) {
|
|
7268
|
+
let message = 'Object doesn\'t match ConfiguratorUnitOfMeasureOutputRepresentation (at "' + path_unitOfMeasure + '")\n';
|
|
7269
|
+
message += referencepath_unitOfMeasureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7270
|
+
return new TypeError(message);
|
|
7271
|
+
}
|
|
7272
|
+
}
|
|
7124
7273
|
})();
|
|
7125
7274
|
return v_error === undefined ? null : v_error;
|
|
7126
7275
|
}
|
|
@@ -7315,7 +7464,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(configure_Co
|
|
|
7315
7464
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7316
7465
|
const config = {};
|
|
7317
7466
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
7318
|
-
const referenceConfiguratorInputRepresentationValidationError = validate$
|
|
7467
|
+
const referenceConfiguratorInputRepresentationValidationError = validate$i(untrustedConfig_configuratorInput);
|
|
7319
7468
|
if (referenceConfiguratorInputRepresentationValidationError === null) {
|
|
7320
7469
|
config.configuratorInput = untrustedConfig_configuratorInput;
|
|
7321
7470
|
}
|