@salesforce/lds-adapters-industries-cpq 1.321.0 → 1.323.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 +458 -204
- package/dist/es/es2018/types/src/generated/adapters/smartProductSelection.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsSmartSelection.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/SmartSelectionInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SmartSelectionOutputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/SmartSelectionSearchInputRepresentation.d.ts +46 -0
- package/package.json +4 -4
- package/sfdc/index.js +949 -692
- package/src/raml/api.raml +88 -0
- package/src/raml/luvio.raml +9 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$_(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 + '")');
|
|
@@ -153,8 +153,8 @@ function validate$Y(obj, path = 'PreviewInputRepresentation') {
|
|
|
153
153
|
return v_error === undefined ? null : v_error;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
const VERSION$
|
|
157
|
-
function validate$
|
|
156
|
+
const VERSION$m = "16ee7e6452adaa7a1a8e36a1238a4b85";
|
|
157
|
+
function validate$Z(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 + '")');
|
|
@@ -190,10 +190,10 @@ function validate$X(obj, path = 'CpqMessageOutputRepresentation') {
|
|
|
190
190
|
})();
|
|
191
191
|
return v_error === undefined ? null : v_error;
|
|
192
192
|
}
|
|
193
|
-
const select$
|
|
193
|
+
const select$F = function CpqMessageOutputRepresentationSelect() {
|
|
194
194
|
return {
|
|
195
195
|
kind: 'Fragment',
|
|
196
|
-
version: VERSION$
|
|
196
|
+
version: VERSION$m,
|
|
197
197
|
private: [],
|
|
198
198
|
selections: [
|
|
199
199
|
{
|
|
@@ -219,7 +219,7 @@ const select$D = function CpqMessageOutputRepresentationSelect() {
|
|
|
219
219
|
]
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
|
-
function equals$
|
|
222
|
+
function equals$m(existing, incoming) {
|
|
223
223
|
const existing_code = existing.code;
|
|
224
224
|
const incoming_code = incoming.code;
|
|
225
225
|
// if at least one of these optionals is defined
|
|
@@ -275,8 +275,8 @@ function equals$l(existing, incoming) {
|
|
|
275
275
|
return true;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const VERSION$
|
|
279
|
-
function validate$
|
|
278
|
+
const VERSION$l = "2927abd89d0e76012000aa604b583b6d";
|
|
279
|
+
function validate$Y(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$W(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$Z(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');
|
|
@@ -313,11 +313,11 @@ function validate$W(obj, path = 'ApiStatusOutputRepresentation') {
|
|
|
313
313
|
})();
|
|
314
314
|
return v_error === undefined ? null : v_error;
|
|
315
315
|
}
|
|
316
|
-
const select$
|
|
317
|
-
const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$
|
|
316
|
+
const select$E = function ApiStatusOutputRepresentationSelect() {
|
|
317
|
+
const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$F();
|
|
318
318
|
return {
|
|
319
319
|
kind: 'Fragment',
|
|
320
|
-
version: VERSION$
|
|
320
|
+
version: VERSION$l,
|
|
321
321
|
private: [],
|
|
322
322
|
selections: [
|
|
323
323
|
{
|
|
@@ -339,7 +339,7 @@ const select$C = function ApiStatusOutputRepresentationSelect() {
|
|
|
339
339
|
]
|
|
340
340
|
};
|
|
341
341
|
};
|
|
342
|
-
function equals$
|
|
342
|
+
function equals$l(existing, incoming) {
|
|
343
343
|
const existing_statusCode = existing.statusCode;
|
|
344
344
|
const incoming_statusCode = incoming.statusCode;
|
|
345
345
|
if (!(existing_statusCode === incoming_statusCode)) {
|
|
@@ -368,7 +368,7 @@ function equals$k(existing, incoming) {
|
|
|
368
368
|
return false;
|
|
369
369
|
}
|
|
370
370
|
const equals_messages_items = equalsArray(existing_messages, incoming_messages, (existing_messages_item, incoming_messages_item) => {
|
|
371
|
-
if (!(equals$
|
|
371
|
+
if (!(equals$m(existing_messages_item, incoming_messages_item))) {
|
|
372
372
|
return false;
|
|
373
373
|
}
|
|
374
374
|
});
|
|
@@ -379,7 +379,7 @@ function equals$k(existing, incoming) {
|
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
function validate$
|
|
382
|
+
function validate$X(obj, path = 'FacetValueRepresentation') {
|
|
383
383
|
const v_error = (() => {
|
|
384
384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
385
385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -409,7 +409,7 @@ function validate$V(obj, path = 'FacetValueRepresentation') {
|
|
|
409
409
|
return v_error === undefined ? null : v_error;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
function validate$
|
|
412
|
+
function validate$W(obj, path = 'SearchProductsFacetRepresentation') {
|
|
413
413
|
const v_error = (() => {
|
|
414
414
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
415
415
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -444,7 +444,7 @@ function validate$U(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$X(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');
|
|
@@ -456,16 +456,16 @@ function validate$U(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
456
456
|
return v_error === undefined ? null : v_error;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
const TTL$
|
|
460
|
-
const VERSION$
|
|
461
|
-
function validate$
|
|
459
|
+
const TTL$c = 1000;
|
|
460
|
+
const VERSION$k = "d4404c373b22855446ba4f933f08573c";
|
|
461
|
+
function validate$V(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$Y(obj_apiStatus, path_apiStatus);
|
|
469
469
|
if (referencepath_apiStatusValidationError !== null) {
|
|
470
470
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
471
471
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -484,7 +484,7 @@ function validate$T(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
484
484
|
for (let i = 0; i < obj_facets.length; i++) {
|
|
485
485
|
const obj_facets_item = obj_facets[i];
|
|
486
486
|
const path_facets_item = path_facets + '[' + i + ']';
|
|
487
|
-
const referencepath_facets_itemValidationError = validate$
|
|
487
|
+
const referencepath_facets_itemValidationError = validate$W(obj_facets_item, path_facets_item);
|
|
488
488
|
if (referencepath_facets_itemValidationError !== null) {
|
|
489
489
|
let message = 'Object doesn\'t match SearchProductsFacetRepresentation (at "' + path_facets_item + '")\n';
|
|
490
490
|
message += referencepath_facets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -534,68 +534,68 @@ function validate$T(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
534
534
|
})();
|
|
535
535
|
return v_error === undefined ? null : v_error;
|
|
536
536
|
}
|
|
537
|
-
const RepresentationType$
|
|
538
|
-
function keyBuilder$
|
|
539
|
-
return keyPrefix + '::' + RepresentationType$
|
|
537
|
+
const RepresentationType$d = 'CpqBaseListOutputRepresentation';
|
|
538
|
+
function keyBuilder$e(luvio, config) {
|
|
539
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.message;
|
|
540
540
|
}
|
|
541
|
-
function keyBuilderFromType$
|
|
541
|
+
function keyBuilderFromType$c(luvio, object) {
|
|
542
542
|
const keyParams = {
|
|
543
543
|
message: object.apiStatus.statusCode
|
|
544
544
|
};
|
|
545
|
-
return keyBuilder$
|
|
545
|
+
return keyBuilder$e(luvio, keyParams);
|
|
546
546
|
}
|
|
547
|
-
function normalize$
|
|
547
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
548
548
|
return input;
|
|
549
549
|
}
|
|
550
|
-
const select$
|
|
550
|
+
const select$D = function CpqBaseListOutputRepresentationSelect() {
|
|
551
551
|
return {
|
|
552
552
|
kind: 'Fragment',
|
|
553
|
-
version: VERSION$
|
|
553
|
+
version: VERSION$k,
|
|
554
554
|
private: [],
|
|
555
555
|
opaque: true
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
function equals$
|
|
558
|
+
function equals$k(existing, incoming) {
|
|
559
559
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
560
560
|
return false;
|
|
561
561
|
}
|
|
562
562
|
return true;
|
|
563
563
|
}
|
|
564
|
-
const ingest$
|
|
564
|
+
const ingest$d = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
565
565
|
if (process.env.NODE_ENV !== 'production') {
|
|
566
|
-
const validateError = validate$
|
|
566
|
+
const validateError = validate$V(input);
|
|
567
567
|
if (validateError !== null) {
|
|
568
568
|
throw validateError;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
const key = keyBuilderFromType$
|
|
572
|
-
const ttlToUse = TTL$
|
|
573
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
571
|
+
const key = keyBuilderFromType$c(luvio, input);
|
|
572
|
+
const ttlToUse = TTL$c;
|
|
573
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "cpq", VERSION$k, RepresentationType$d, equals$k);
|
|
574
574
|
return createLink(key);
|
|
575
575
|
};
|
|
576
|
-
function getTypeCacheKeys$
|
|
576
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
577
577
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
578
|
-
const rootKey = keyBuilderFromType$
|
|
578
|
+
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
579
579
|
rootKeySet.set(rootKey, {
|
|
580
580
|
namespace: keyPrefix,
|
|
581
|
-
representationName: RepresentationType$
|
|
581
|
+
representationName: RepresentationType$d,
|
|
582
582
|
mergeable: false
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
function select$
|
|
587
|
-
return select$
|
|
586
|
+
function select$C(luvio, params) {
|
|
587
|
+
return select$D();
|
|
588
588
|
}
|
|
589
|
-
function getResponseCacheKeys$
|
|
590
|
-
getTypeCacheKeys$
|
|
589
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
590
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
591
591
|
}
|
|
592
|
-
function ingestSuccess$
|
|
592
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
593
593
|
const { body } = response;
|
|
594
|
-
const key = keyBuilderFromType$
|
|
595
|
-
luvio.storeIngest(key, ingest$
|
|
594
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
595
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
596
596
|
const snapshot = luvio.storeLookup({
|
|
597
597
|
recordId: key,
|
|
598
|
-
node: select$
|
|
598
|
+
node: select$C(),
|
|
599
599
|
variables: {},
|
|
600
600
|
});
|
|
601
601
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -606,7 +606,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
606
606
|
deepFreeze(snapshot.data);
|
|
607
607
|
return snapshot;
|
|
608
608
|
}
|
|
609
|
-
function createResourceRequest$
|
|
609
|
+
function createResourceRequest$i(config) {
|
|
610
610
|
const headers = {};
|
|
611
611
|
return {
|
|
612
612
|
baseUri: '/services/data/v63.0',
|
|
@@ -620,45 +620,45 @@ function createResourceRequest$h(config) {
|
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
const adapterName$
|
|
623
|
+
const adapterName$i = 'preview';
|
|
624
624
|
const preview_ConfigPropertyMetadata = [
|
|
625
625
|
generateParamConfigMetadata('previewInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
626
626
|
];
|
|
627
|
-
const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
628
|
-
const createResourceParams$
|
|
629
|
-
function typeCheckConfig$
|
|
627
|
+
const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, preview_ConfigPropertyMetadata);
|
|
628
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(preview_ConfigPropertyMetadata);
|
|
629
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
630
630
|
const config = {};
|
|
631
631
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
632
|
-
const referencePreviewInputRepresentationValidationError = validate$
|
|
632
|
+
const referencePreviewInputRepresentationValidationError = validate$_(untrustedConfig_previewInput);
|
|
633
633
|
if (referencePreviewInputRepresentationValidationError === null) {
|
|
634
634
|
config.previewInput = untrustedConfig_previewInput;
|
|
635
635
|
}
|
|
636
636
|
return config;
|
|
637
637
|
}
|
|
638
|
-
function validateAdapterConfig$
|
|
638
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
639
639
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
640
640
|
return null;
|
|
641
641
|
}
|
|
642
642
|
if (process.env.NODE_ENV !== 'production') {
|
|
643
643
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
644
644
|
}
|
|
645
|
-
const config = typeCheckConfig$
|
|
645
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
646
646
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
647
647
|
return null;
|
|
648
648
|
}
|
|
649
649
|
return config;
|
|
650
650
|
}
|
|
651
|
-
function buildNetworkSnapshot$
|
|
652
|
-
const resourceParams = createResourceParams$
|
|
653
|
-
const request = createResourceRequest$
|
|
651
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
652
|
+
const resourceParams = createResourceParams$i(config);
|
|
653
|
+
const request = createResourceRequest$i(resourceParams);
|
|
654
654
|
return luvio.dispatchResourceRequest(request, options)
|
|
655
655
|
.then((response) => {
|
|
656
656
|
return luvio.handleSuccessResponse(() => {
|
|
657
|
-
const snapshot = ingestSuccess$
|
|
657
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
658
658
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
659
659
|
}, () => {
|
|
660
660
|
const cache = new StoreKeyMap();
|
|
661
|
-
getResponseCacheKeys$
|
|
661
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
662
662
|
return cache;
|
|
663
663
|
});
|
|
664
664
|
}, (response) => {
|
|
@@ -668,16 +668,16 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
668
668
|
}
|
|
669
669
|
const previewAdapterFactory = (luvio) => {
|
|
670
670
|
return function preview(untrustedConfig) {
|
|
671
|
-
const config = validateAdapterConfig$
|
|
671
|
+
const config = validateAdapterConfig$i(untrustedConfig, preview_ConfigPropertyNames);
|
|
672
672
|
// Invalid or incomplete config
|
|
673
673
|
if (config === null) {
|
|
674
674
|
throw new Error('Invalid config for "preview"');
|
|
675
675
|
}
|
|
676
|
-
return buildNetworkSnapshot$
|
|
676
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
677
677
|
};
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
function validate$
|
|
680
|
+
function validate$U(obj, path = 'ProductListInputRepresentation') {
|
|
681
681
|
const v_error = (() => {
|
|
682
682
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
683
683
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -768,19 +768,19 @@ function validate$S(obj, path = 'ProductListInputRepresentation') {
|
|
|
768
768
|
return v_error === undefined ? null : v_error;
|
|
769
769
|
}
|
|
770
770
|
|
|
771
|
-
function select$
|
|
772
|
-
return select$
|
|
771
|
+
function select$B(luvio, params) {
|
|
772
|
+
return select$D();
|
|
773
773
|
}
|
|
774
|
-
function getResponseCacheKeys$
|
|
775
|
-
getTypeCacheKeys$
|
|
774
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
775
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
776
776
|
}
|
|
777
|
-
function ingestSuccess$
|
|
777
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
778
778
|
const { body } = response;
|
|
779
|
-
const key = keyBuilderFromType$
|
|
780
|
-
luvio.storeIngest(key, ingest$
|
|
779
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
780
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
781
781
|
const snapshot = luvio.storeLookup({
|
|
782
782
|
recordId: key,
|
|
783
|
-
node: select$
|
|
783
|
+
node: select$B(),
|
|
784
784
|
variables: {},
|
|
785
785
|
});
|
|
786
786
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -791,7 +791,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
791
791
|
deepFreeze(snapshot.data);
|
|
792
792
|
return snapshot;
|
|
793
793
|
}
|
|
794
|
-
function createResourceRequest$
|
|
794
|
+
function createResourceRequest$h(config) {
|
|
795
795
|
const headers = {};
|
|
796
796
|
return {
|
|
797
797
|
baseUri: '/services/data/v63.0',
|
|
@@ -805,45 +805,45 @@ function createResourceRequest$g(config) {
|
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
-
const adapterName$
|
|
808
|
+
const adapterName$h = 'productList';
|
|
809
809
|
const productList_ConfigPropertyMetadata = [
|
|
810
810
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
811
811
|
];
|
|
812
|
-
const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
813
|
-
const createResourceParams$
|
|
814
|
-
function typeCheckConfig$
|
|
812
|
+
const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, productList_ConfigPropertyMetadata);
|
|
813
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(productList_ConfigPropertyMetadata);
|
|
814
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
815
815
|
const config = {};
|
|
816
816
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
817
|
-
const referenceProductListInputRepresentationValidationError = validate$
|
|
817
|
+
const referenceProductListInputRepresentationValidationError = validate$U(untrustedConfig_requestBody);
|
|
818
818
|
if (referenceProductListInputRepresentationValidationError === null) {
|
|
819
819
|
config.requestBody = untrustedConfig_requestBody;
|
|
820
820
|
}
|
|
821
821
|
return config;
|
|
822
822
|
}
|
|
823
|
-
function validateAdapterConfig$
|
|
823
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
824
824
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
825
825
|
return null;
|
|
826
826
|
}
|
|
827
827
|
if (process.env.NODE_ENV !== 'production') {
|
|
828
828
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
829
829
|
}
|
|
830
|
-
const config = typeCheckConfig$
|
|
830
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
831
831
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
832
832
|
return null;
|
|
833
833
|
}
|
|
834
834
|
return config;
|
|
835
835
|
}
|
|
836
|
-
function buildNetworkSnapshot$
|
|
837
|
-
const resourceParams = createResourceParams$
|
|
838
|
-
const request = createResourceRequest$
|
|
836
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
837
|
+
const resourceParams = createResourceParams$h(config);
|
|
838
|
+
const request = createResourceRequest$h(resourceParams);
|
|
839
839
|
return luvio.dispatchResourceRequest(request, options)
|
|
840
840
|
.then((response) => {
|
|
841
841
|
return luvio.handleSuccessResponse(() => {
|
|
842
|
-
const snapshot = ingestSuccess$
|
|
842
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
843
843
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
844
844
|
}, () => {
|
|
845
845
|
const cache = new StoreKeyMap();
|
|
846
|
-
getResponseCacheKeys$
|
|
846
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
847
847
|
return cache;
|
|
848
848
|
});
|
|
849
849
|
}, (response) => {
|
|
@@ -853,16 +853,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
853
853
|
}
|
|
854
854
|
const productListAdapterFactory = (luvio) => {
|
|
855
855
|
return function productList(untrustedConfig) {
|
|
856
|
-
const config = validateAdapterConfig$
|
|
856
|
+
const config = validateAdapterConfig$h(untrustedConfig, productList_ConfigPropertyNames);
|
|
857
857
|
// Invalid or incomplete config
|
|
858
858
|
if (config === null) {
|
|
859
859
|
throw new Error('Invalid config for "productList"');
|
|
860
860
|
}
|
|
861
|
-
return buildNetworkSnapshot$
|
|
861
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
862
862
|
};
|
|
863
863
|
};
|
|
864
864
|
|
|
865
|
-
function validate$
|
|
865
|
+
function validate$T(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
866
866
|
const v_error = (() => {
|
|
867
867
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
868
868
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -886,7 +886,7 @@ function validate$R(obj, path = 'FilterCriteriaInputRepresentation') {
|
|
|
886
886
|
return v_error === undefined ? null : v_error;
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
-
function validate$
|
|
889
|
+
function validate$S(obj, path = 'FilterInputRepresentation') {
|
|
890
890
|
const v_error = (() => {
|
|
891
891
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
892
892
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -899,7 +899,7 @@ function validate$Q(obj, path = 'FilterInputRepresentation') {
|
|
|
899
899
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
900
900
|
const obj_criteria_item = obj_criteria[i];
|
|
901
901
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
902
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
902
|
+
const referencepath_criteria_itemValidationError = validate$T(obj_criteria_item, path_criteria_item);
|
|
903
903
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
904
904
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
905
905
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -910,7 +910,7 @@ function validate$Q(obj, path = 'FilterInputRepresentation') {
|
|
|
910
910
|
return v_error === undefined ? null : v_error;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
function validate$
|
|
913
|
+
function validate$R(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
914
914
|
const v_error = (() => {
|
|
915
915
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
916
916
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -923,7 +923,7 @@ function validate$P(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
923
923
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
924
924
|
const obj_criteria_item = obj_criteria[i];
|
|
925
925
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
926
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
926
|
+
const referencepath_criteria_itemValidationError = validate$T(obj_criteria_item, path_criteria_item);
|
|
927
927
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
928
928
|
let message = 'Object doesn\'t match FilterCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
929
929
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -939,7 +939,7 @@ function validate$P(obj, path = 'RelatedObjectFilterInputRepresentation') {
|
|
|
939
939
|
return v_error === undefined ? null : v_error;
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
function validate$
|
|
942
|
+
function validate$Q(obj, path = 'GuidedSelectionSearchTermInputRepresentation') {
|
|
943
943
|
const v_error = (() => {
|
|
944
944
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
945
945
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -969,7 +969,7 @@ function validate$O(obj, path = 'GuidedSelectionSearchTermInputRepresentation')
|
|
|
969
969
|
return v_error === undefined ? null : v_error;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
function validate$
|
|
972
|
+
function validate$P(obj, path = 'GuidedSelectionSearchTermOutputRepresentation') {
|
|
973
973
|
const v_error = (() => {
|
|
974
974
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
975
975
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -995,16 +995,16 @@ function validate$N(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
|
|
|
995
995
|
return v_error === undefined ? null : v_error;
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
const TTL$
|
|
999
|
-
const VERSION$
|
|
1000
|
-
function validate$
|
|
998
|
+
const TTL$b = 1000;
|
|
999
|
+
const VERSION$j = "59b55511c24a0471c3f3a7aa8c21c5c1";
|
|
1000
|
+
function validate$O(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
1001
1001
|
const v_error = (() => {
|
|
1002
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1003
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1004
1004
|
}
|
|
1005
1005
|
const obj_apiStatus = obj.apiStatus;
|
|
1006
1006
|
const path_apiStatus = path + '.apiStatus';
|
|
1007
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1007
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
1008
1008
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1009
1009
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1010
1010
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1066,7 +1066,7 @@ function validate$M(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1066
1066
|
for (let i = 0; i < obj_searchTerms.length; i++) {
|
|
1067
1067
|
const obj_searchTerms_item = obj_searchTerms[i];
|
|
1068
1068
|
const path_searchTerms_item = path_searchTerms + '[' + i + ']';
|
|
1069
|
-
const referencepath_searchTerms_itemValidationError = validate$
|
|
1069
|
+
const referencepath_searchTerms_itemValidationError = validate$P(obj_searchTerms_item, path_searchTerms_item);
|
|
1070
1070
|
if (referencepath_searchTerms_itemValidationError !== null) {
|
|
1071
1071
|
let message = 'Object doesn\'t match GuidedSelectionSearchTermOutputRepresentation (at "' + path_searchTerms_item + '")\n';
|
|
1072
1072
|
message += referencepath_searchTerms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1091,68 +1091,68 @@ function validate$M(obj, path = 'GuidedSelectionOutputRepresentation') {
|
|
|
1091
1091
|
})();
|
|
1092
1092
|
return v_error === undefined ? null : v_error;
|
|
1093
1093
|
}
|
|
1094
|
-
const RepresentationType$
|
|
1095
|
-
function keyBuilder$
|
|
1096
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1094
|
+
const RepresentationType$c = 'GuidedSelectionOutputRepresentation';
|
|
1095
|
+
function keyBuilder$d(luvio, config) {
|
|
1096
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.message;
|
|
1097
1097
|
}
|
|
1098
|
-
function keyBuilderFromType$
|
|
1098
|
+
function keyBuilderFromType$b(luvio, object) {
|
|
1099
1099
|
const keyParams = {
|
|
1100
1100
|
message: object.apiStatus.statusCode
|
|
1101
1101
|
};
|
|
1102
|
-
return keyBuilder$
|
|
1102
|
+
return keyBuilder$d(luvio, keyParams);
|
|
1103
1103
|
}
|
|
1104
|
-
function normalize$
|
|
1104
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1105
1105
|
return input;
|
|
1106
1106
|
}
|
|
1107
|
-
const select$
|
|
1107
|
+
const select$A = function GuidedSelectionOutputRepresentationSelect() {
|
|
1108
1108
|
return {
|
|
1109
1109
|
kind: 'Fragment',
|
|
1110
|
-
version: VERSION$
|
|
1110
|
+
version: VERSION$j,
|
|
1111
1111
|
private: [],
|
|
1112
1112
|
opaque: true
|
|
1113
1113
|
};
|
|
1114
1114
|
};
|
|
1115
|
-
function equals$
|
|
1115
|
+
function equals$j(existing, incoming) {
|
|
1116
1116
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1117
1117
|
return false;
|
|
1118
1118
|
}
|
|
1119
1119
|
return true;
|
|
1120
1120
|
}
|
|
1121
|
-
const ingest$
|
|
1121
|
+
const ingest$c = function GuidedSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1122
1122
|
if (process.env.NODE_ENV !== 'production') {
|
|
1123
|
-
const validateError = validate$
|
|
1123
|
+
const validateError = validate$O(input);
|
|
1124
1124
|
if (validateError !== null) {
|
|
1125
1125
|
throw validateError;
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
const key = keyBuilderFromType$
|
|
1129
|
-
const ttlToUse = TTL$
|
|
1130
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1128
|
+
const key = keyBuilderFromType$b(luvio, input);
|
|
1129
|
+
const ttlToUse = TTL$b;
|
|
1130
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "cpq", VERSION$j, RepresentationType$c, equals$j);
|
|
1131
1131
|
return createLink(key);
|
|
1132
1132
|
};
|
|
1133
|
-
function getTypeCacheKeys$
|
|
1133
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1134
1134
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1135
|
-
const rootKey = keyBuilderFromType$
|
|
1135
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1136
1136
|
rootKeySet.set(rootKey, {
|
|
1137
1137
|
namespace: keyPrefix,
|
|
1138
|
-
representationName: RepresentationType$
|
|
1138
|
+
representationName: RepresentationType$c,
|
|
1139
1139
|
mergeable: false
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
|
-
function select$
|
|
1144
|
-
return select$
|
|
1143
|
+
function select$z(luvio, params) {
|
|
1144
|
+
return select$A();
|
|
1145
1145
|
}
|
|
1146
|
-
function getResponseCacheKeys$
|
|
1147
|
-
getTypeCacheKeys$
|
|
1146
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
1147
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
1148
1148
|
}
|
|
1149
|
-
function ingestSuccess$
|
|
1149
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
1150
1150
|
const { body } = response;
|
|
1151
|
-
const key = keyBuilderFromType$
|
|
1152
|
-
luvio.storeIngest(key, ingest$
|
|
1151
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
1152
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
1153
1153
|
const snapshot = luvio.storeLookup({
|
|
1154
1154
|
recordId: key,
|
|
1155
|
-
node: select$
|
|
1155
|
+
node: select$z(),
|
|
1156
1156
|
variables: {},
|
|
1157
1157
|
});
|
|
1158
1158
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1163,7 +1163,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
1163
1163
|
deepFreeze(snapshot.data);
|
|
1164
1164
|
return snapshot;
|
|
1165
1165
|
}
|
|
1166
|
-
function createResourceRequest$
|
|
1166
|
+
function createResourceRequest$g(config) {
|
|
1167
1167
|
const headers = {};
|
|
1168
1168
|
return {
|
|
1169
1169
|
baseUri: '/services/data/v63.0',
|
|
@@ -1177,7 +1177,7 @@ function createResourceRequest$f(config) {
|
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
const adapterName$
|
|
1180
|
+
const adapterName$g = 'guidedSelectionProductList';
|
|
1181
1181
|
const guidedSelectionProductList_ConfigPropertyMetadata = [
|
|
1182
1182
|
generateParamConfigMetadata('additionalContextData', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1183
1183
|
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1204,11 +1204,11 @@ const guidedSelectionProductList_ConfigPropertyMetadata = [
|
|
|
1204
1204
|
generateParamConfigMetadata('guidedSelectionResponseId', false, 2 /* Body */, 0 /* String */),
|
|
1205
1205
|
generateParamConfigMetadata('searchTerms', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1206
1206
|
];
|
|
1207
|
-
const guidedSelectionProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1208
|
-
const createResourceParams$
|
|
1209
|
-
function typeCheckConfig$
|
|
1207
|
+
const guidedSelectionProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, guidedSelectionProductList_ConfigPropertyMetadata);
|
|
1208
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(guidedSelectionProductList_ConfigPropertyMetadata);
|
|
1209
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
1210
1210
|
const config = {};
|
|
1211
|
-
typeCheckConfig$
|
|
1211
|
+
typeCheckConfig$j(untrustedConfig, config, guidedSelectionProductList_ConfigPropertyMetadata);
|
|
1212
1212
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
1213
1213
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
1214
1214
|
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
@@ -1219,7 +1219,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1222
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
1222
|
+
const referenceFilterInputRepresentationValidationError = validate$S(untrustedConfig_filter);
|
|
1223
1223
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
1224
1224
|
config.filter = untrustedConfig_filter;
|
|
1225
1225
|
}
|
|
@@ -1228,7 +1228,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1228
1228
|
const untrustedConfig_relatedObjectFilters_array = [];
|
|
1229
1229
|
for (let i = 0, arrayLength = untrustedConfig_relatedObjectFilters.length; i < arrayLength; i++) {
|
|
1230
1230
|
const untrustedConfig_relatedObjectFilters_item = untrustedConfig_relatedObjectFilters[i];
|
|
1231
|
-
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$
|
|
1231
|
+
const referenceRelatedObjectFilterInputRepresentationValidationError = validate$R(untrustedConfig_relatedObjectFilters_item);
|
|
1232
1232
|
if (referenceRelatedObjectFilterInputRepresentationValidationError === null) {
|
|
1233
1233
|
untrustedConfig_relatedObjectFilters_array.push(untrustedConfig_relatedObjectFilters_item);
|
|
1234
1234
|
}
|
|
@@ -1247,7 +1247,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1247
1247
|
const untrustedConfig_searchTerms_array = [];
|
|
1248
1248
|
for (let i = 0, arrayLength = untrustedConfig_searchTerms.length; i < arrayLength; i++) {
|
|
1249
1249
|
const untrustedConfig_searchTerms_item = untrustedConfig_searchTerms[i];
|
|
1250
|
-
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$
|
|
1250
|
+
const referenceGuidedSelectionSearchTermInputRepresentationValidationError = validate$Q(untrustedConfig_searchTerms_item);
|
|
1251
1251
|
if (referenceGuidedSelectionSearchTermInputRepresentationValidationError === null) {
|
|
1252
1252
|
untrustedConfig_searchTerms_array.push(untrustedConfig_searchTerms_item);
|
|
1253
1253
|
}
|
|
@@ -1256,30 +1256,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return config;
|
|
1258
1258
|
}
|
|
1259
|
-
function validateAdapterConfig$
|
|
1259
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
1260
1260
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1261
1261
|
return null;
|
|
1262
1262
|
}
|
|
1263
1263
|
if (process.env.NODE_ENV !== 'production') {
|
|
1264
1264
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1265
1265
|
}
|
|
1266
|
-
const config = typeCheckConfig$
|
|
1266
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
1267
1267
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1268
1268
|
return null;
|
|
1269
1269
|
}
|
|
1270
1270
|
return config;
|
|
1271
1271
|
}
|
|
1272
|
-
function buildNetworkSnapshot$
|
|
1273
|
-
const resourceParams = createResourceParams$
|
|
1274
|
-
const request = createResourceRequest$
|
|
1272
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
1273
|
+
const resourceParams = createResourceParams$g(config);
|
|
1274
|
+
const request = createResourceRequest$g(resourceParams);
|
|
1275
1275
|
return luvio.dispatchResourceRequest(request, options)
|
|
1276
1276
|
.then((response) => {
|
|
1277
1277
|
return luvio.handleSuccessResponse(() => {
|
|
1278
|
-
const snapshot = ingestSuccess$
|
|
1278
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
1279
1279
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1280
1280
|
}, () => {
|
|
1281
1281
|
const cache = new StoreKeyMap();
|
|
1282
|
-
getResponseCacheKeys$
|
|
1282
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
1283
1283
|
return cache;
|
|
1284
1284
|
});
|
|
1285
1285
|
}, (response) => {
|
|
@@ -1289,16 +1289,16 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
const guidedSelectionProductListAdapterFactory = (luvio) => {
|
|
1291
1291
|
return function guidedSelectionProductList(untrustedConfig) {
|
|
1292
|
-
const config = validateAdapterConfig$
|
|
1292
|
+
const config = validateAdapterConfig$g(untrustedConfig, guidedSelectionProductList_ConfigPropertyNames);
|
|
1293
1293
|
// Invalid or incomplete config
|
|
1294
1294
|
if (config === null) {
|
|
1295
1295
|
throw new Error('Invalid config for "guidedSelectionProductList"');
|
|
1296
1296
|
}
|
|
1297
|
-
return buildNetworkSnapshot$
|
|
1297
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
1298
1298
|
};
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
|
-
function validate$
|
|
1301
|
+
function validate$N(obj, path = 'SearchProductsInputRepresentation') {
|
|
1302
1302
|
const v_error = (() => {
|
|
1303
1303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1304
1304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1396,19 +1396,19 @@ function validate$L(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
1396
1396
|
return v_error === undefined ? null : v_error;
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
|
-
function select$
|
|
1400
|
-
return select$
|
|
1399
|
+
function select$y(luvio, params) {
|
|
1400
|
+
return select$D();
|
|
1401
1401
|
}
|
|
1402
|
-
function getResponseCacheKeys$
|
|
1403
|
-
getTypeCacheKeys$
|
|
1402
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1403
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
1404
1404
|
}
|
|
1405
|
-
function ingestSuccess$
|
|
1405
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
1406
1406
|
const { body } = response;
|
|
1407
|
-
const key = keyBuilderFromType$
|
|
1408
|
-
luvio.storeIngest(key, ingest$
|
|
1407
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
1408
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1409
1409
|
const snapshot = luvio.storeLookup({
|
|
1410
1410
|
recordId: key,
|
|
1411
|
-
node: select$
|
|
1411
|
+
node: select$y(),
|
|
1412
1412
|
variables: {},
|
|
1413
1413
|
});
|
|
1414
1414
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1419,7 +1419,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
1419
1419
|
deepFreeze(snapshot.data);
|
|
1420
1420
|
return snapshot;
|
|
1421
1421
|
}
|
|
1422
|
-
function createResourceRequest$
|
|
1422
|
+
function createResourceRequest$f(config) {
|
|
1423
1423
|
const headers = {};
|
|
1424
1424
|
return {
|
|
1425
1425
|
baseUri: '/services/data/v63.0',
|
|
@@ -1433,21 +1433,275 @@ function createResourceRequest$e(config) {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
const adapterName$
|
|
1436
|
+
const adapterName$f = 'searchProductList';
|
|
1437
1437
|
const searchProductList_ConfigPropertyMetadata = [
|
|
1438
1438
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1439
1439
|
];
|
|
1440
|
-
const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1441
|
-
const createResourceParams$
|
|
1442
|
-
function typeCheckConfig$
|
|
1440
|
+
const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, searchProductList_ConfigPropertyMetadata);
|
|
1441
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(searchProductList_ConfigPropertyMetadata);
|
|
1442
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1443
1443
|
const config = {};
|
|
1444
1444
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1445
|
-
const referenceSearchProductsInputRepresentationValidationError = validate$
|
|
1445
|
+
const referenceSearchProductsInputRepresentationValidationError = validate$N(untrustedConfig_requestBody);
|
|
1446
1446
|
if (referenceSearchProductsInputRepresentationValidationError === null) {
|
|
1447
1447
|
config.requestBody = untrustedConfig_requestBody;
|
|
1448
1448
|
}
|
|
1449
1449
|
return config;
|
|
1450
1450
|
}
|
|
1451
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1452
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1453
|
+
return null;
|
|
1454
|
+
}
|
|
1455
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1456
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1457
|
+
}
|
|
1458
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1459
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1460
|
+
return null;
|
|
1461
|
+
}
|
|
1462
|
+
return config;
|
|
1463
|
+
}
|
|
1464
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1465
|
+
const resourceParams = createResourceParams$f(config);
|
|
1466
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1467
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1468
|
+
.then((response) => {
|
|
1469
|
+
return luvio.handleSuccessResponse(() => {
|
|
1470
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
1471
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1472
|
+
}, () => {
|
|
1473
|
+
const cache = new StoreKeyMap();
|
|
1474
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1475
|
+
return cache;
|
|
1476
|
+
});
|
|
1477
|
+
}, (response) => {
|
|
1478
|
+
deepFreeze(response);
|
|
1479
|
+
throw response;
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
const searchProductListAdapterFactory = (luvio) => {
|
|
1483
|
+
return function searchProductList(untrustedConfig) {
|
|
1484
|
+
const config = validateAdapterConfig$f(untrustedConfig, searchProductList_ConfigPropertyNames);
|
|
1485
|
+
// Invalid or incomplete config
|
|
1486
|
+
if (config === null) {
|
|
1487
|
+
throw new Error('Invalid config for "searchProductList"');
|
|
1488
|
+
}
|
|
1489
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
function validate$M(obj, path = 'SmartSelectionSearchInputRepresentation') {
|
|
1494
|
+
const v_error = (() => {
|
|
1495
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1496
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1497
|
+
}
|
|
1498
|
+
if (obj.catalogId !== undefined) {
|
|
1499
|
+
const obj_catalogId = obj.catalogId;
|
|
1500
|
+
const path_catalogId = path + '.catalogId';
|
|
1501
|
+
if (typeof obj_catalogId !== 'string') {
|
|
1502
|
+
return new TypeError('Expected "string" but received "' + typeof obj_catalogId + '" (at "' + path_catalogId + '")');
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
if (obj.currencyCode !== undefined) {
|
|
1506
|
+
const obj_currencyCode = obj.currencyCode;
|
|
1507
|
+
const path_currencyCode = path + '.currencyCode';
|
|
1508
|
+
if (typeof obj_currencyCode !== 'string') {
|
|
1509
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyCode + '" (at "' + path_currencyCode + '")');
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
if (obj.enablePricing !== undefined) {
|
|
1513
|
+
const obj_enablePricing = obj.enablePricing;
|
|
1514
|
+
const path_enablePricing = path + '.enablePricing';
|
|
1515
|
+
if (typeof obj_enablePricing !== 'boolean') {
|
|
1516
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePricing + '" (at "' + path_enablePricing + '")');
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
if (obj.enableQualification !== undefined) {
|
|
1520
|
+
const obj_enableQualification = obj.enableQualification;
|
|
1521
|
+
const path_enableQualification = path + '.enableQualification';
|
|
1522
|
+
if (typeof obj_enableQualification !== 'boolean') {
|
|
1523
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableQualification + '" (at "' + path_enableQualification + '")');
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
if (obj.limit !== undefined) {
|
|
1527
|
+
const obj_limit = obj.limit;
|
|
1528
|
+
const path_limit = path + '.limit';
|
|
1529
|
+
if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
|
|
1530
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
if (obj.priceBookId !== undefined) {
|
|
1534
|
+
const obj_priceBookId = obj.priceBookId;
|
|
1535
|
+
const path_priceBookId = path + '.priceBookId';
|
|
1536
|
+
if (typeof obj_priceBookId !== 'string') {
|
|
1537
|
+
return new TypeError('Expected "string" but received "' + typeof obj_priceBookId + '" (at "' + path_priceBookId + '")');
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
const obj_query = obj.query;
|
|
1541
|
+
const path_query = path + '.query';
|
|
1542
|
+
if (!ArrayIsArray(obj_query)) {
|
|
1543
|
+
return new TypeError('Expected "array" but received "' + typeof obj_query + '" (at "' + path_query + '")');
|
|
1544
|
+
}
|
|
1545
|
+
for (let i = 0; i < obj_query.length; i++) {
|
|
1546
|
+
const obj_query_item = obj_query[i];
|
|
1547
|
+
const path_query_item = path_query + '[' + i + ']';
|
|
1548
|
+
if (typeof obj_query_item !== 'string') {
|
|
1549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_query_item + '" (at "' + path_query_item + '")');
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
})();
|
|
1553
|
+
return v_error === undefined ? null : v_error;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
const TTL$a = 1000;
|
|
1557
|
+
const VERSION$i = "e87e2b76b6416343fc10adaad3180935";
|
|
1558
|
+
function validate$L(obj, path = 'SmartSelectionOutputRepresentation') {
|
|
1559
|
+
const v_error = (() => {
|
|
1560
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1561
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1562
|
+
}
|
|
1563
|
+
const obj_apiStatus = obj.apiStatus;
|
|
1564
|
+
const path_apiStatus = path + '.apiStatus';
|
|
1565
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
1566
|
+
if (referencepath_apiStatusValidationError !== null) {
|
|
1567
|
+
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1568
|
+
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1569
|
+
return new TypeError(message);
|
|
1570
|
+
}
|
|
1571
|
+
if (obj.chatContextId !== undefined) {
|
|
1572
|
+
const obj_chatContextId = obj.chatContextId;
|
|
1573
|
+
const path_chatContextId = path + '.chatContextId';
|
|
1574
|
+
if (typeof obj_chatContextId !== 'string') {
|
|
1575
|
+
return new TypeError('Expected "string" but received "' + typeof obj_chatContextId + '" (at "' + path_chatContextId + '")');
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
const obj_productIds = obj.productIds;
|
|
1579
|
+
const path_productIds = path + '.productIds';
|
|
1580
|
+
if (!ArrayIsArray(obj_productIds)) {
|
|
1581
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productIds + '" (at "' + path_productIds + '")');
|
|
1582
|
+
}
|
|
1583
|
+
for (let i = 0; i < obj_productIds.length; i++) {
|
|
1584
|
+
const obj_productIds_item = obj_productIds[i];
|
|
1585
|
+
const path_productIds_item = path_productIds + '[' + i + ']';
|
|
1586
|
+
if (typeof obj_productIds_item !== 'string') {
|
|
1587
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productIds_item + '" (at "' + path_productIds_item + '")');
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
if (obj.queryResponse !== undefined) {
|
|
1591
|
+
const obj_queryResponse = obj.queryResponse;
|
|
1592
|
+
const path_queryResponse = path + '.queryResponse';
|
|
1593
|
+
if (typeof obj_queryResponse !== 'string') {
|
|
1594
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryResponse + '" (at "' + path_queryResponse + '")');
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
})();
|
|
1598
|
+
return v_error === undefined ? null : v_error;
|
|
1599
|
+
}
|
|
1600
|
+
const RepresentationType$b = 'SmartSelectionOutputRepresentation';
|
|
1601
|
+
function keyBuilder$c(luvio, config) {
|
|
1602
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
|
|
1603
|
+
}
|
|
1604
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
1605
|
+
const keyParams = {
|
|
1606
|
+
message: object.apiStatus.statusCode
|
|
1607
|
+
};
|
|
1608
|
+
return keyBuilder$c(luvio, keyParams);
|
|
1609
|
+
}
|
|
1610
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1611
|
+
return input;
|
|
1612
|
+
}
|
|
1613
|
+
const select$x = function SmartSelectionOutputRepresentationSelect() {
|
|
1614
|
+
return {
|
|
1615
|
+
kind: 'Fragment',
|
|
1616
|
+
version: VERSION$i,
|
|
1617
|
+
private: [],
|
|
1618
|
+
opaque: true
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
function equals$i(existing, incoming) {
|
|
1622
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1623
|
+
return false;
|
|
1624
|
+
}
|
|
1625
|
+
return true;
|
|
1626
|
+
}
|
|
1627
|
+
const ingest$b = function SmartSelectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1628
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1629
|
+
const validateError = validate$L(input);
|
|
1630
|
+
if (validateError !== null) {
|
|
1631
|
+
throw validateError;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
1635
|
+
const ttlToUse = TTL$a;
|
|
1636
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "cpq", VERSION$i, RepresentationType$b, equals$i);
|
|
1637
|
+
return createLink(key);
|
|
1638
|
+
};
|
|
1639
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1640
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1641
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1642
|
+
rootKeySet.set(rootKey, {
|
|
1643
|
+
namespace: keyPrefix,
|
|
1644
|
+
representationName: RepresentationType$b,
|
|
1645
|
+
mergeable: false
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
function select$w(luvio, params) {
|
|
1650
|
+
return select$x();
|
|
1651
|
+
}
|
|
1652
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1653
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1654
|
+
}
|
|
1655
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
1656
|
+
const { body } = response;
|
|
1657
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
1658
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1659
|
+
const snapshot = luvio.storeLookup({
|
|
1660
|
+
recordId: key,
|
|
1661
|
+
node: select$w(),
|
|
1662
|
+
variables: {},
|
|
1663
|
+
});
|
|
1664
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1665
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1666
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
deepFreeze(snapshot.data);
|
|
1670
|
+
return snapshot;
|
|
1671
|
+
}
|
|
1672
|
+
function createResourceRequest$e(config) {
|
|
1673
|
+
const headers = {};
|
|
1674
|
+
return {
|
|
1675
|
+
baseUri: '/services/data/v63.0',
|
|
1676
|
+
basePath: '/connect/cpq/products/smart-selection',
|
|
1677
|
+
method: 'post',
|
|
1678
|
+
body: config.body,
|
|
1679
|
+
urlParams: {},
|
|
1680
|
+
queryParams: {},
|
|
1681
|
+
headers,
|
|
1682
|
+
priority: 'normal',
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
const adapterName$e = 'smartProductSelection';
|
|
1687
|
+
const smartProductSelection_ConfigPropertyMetadata = [
|
|
1688
|
+
generateParamConfigMetadata('chatContextId', false, 2 /* Body */, 0 /* String */),
|
|
1689
|
+
generateParamConfigMetadata('maxToken', false, 2 /* Body */, 3 /* Integer */),
|
|
1690
|
+
generateParamConfigMetadata('temperature', false, 2 /* Body */, 2 /* Number */),
|
|
1691
|
+
generateParamConfigMetadata('searchParams', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1692
|
+
];
|
|
1693
|
+
const smartProductSelection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, smartProductSelection_ConfigPropertyMetadata);
|
|
1694
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(smartProductSelection_ConfigPropertyMetadata);
|
|
1695
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1696
|
+
const config = {};
|
|
1697
|
+
typeCheckConfig$j(untrustedConfig, config, smartProductSelection_ConfigPropertyMetadata);
|
|
1698
|
+
const untrustedConfig_searchParams = untrustedConfig.searchParams;
|
|
1699
|
+
const referenceSmartSelectionSearchInputRepresentationValidationError = validate$M(untrustedConfig_searchParams);
|
|
1700
|
+
if (referenceSmartSelectionSearchInputRepresentationValidationError === null) {
|
|
1701
|
+
config.searchParams = untrustedConfig_searchParams;
|
|
1702
|
+
}
|
|
1703
|
+
return config;
|
|
1704
|
+
}
|
|
1451
1705
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
1452
1706
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1453
1707
|
return null;
|
|
@@ -1479,12 +1733,12 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
1479
1733
|
throw response;
|
|
1480
1734
|
});
|
|
1481
1735
|
}
|
|
1482
|
-
const
|
|
1483
|
-
return function
|
|
1484
|
-
const config = validateAdapterConfig$e(untrustedConfig,
|
|
1736
|
+
const smartProductSelectionAdapterFactory = (luvio) => {
|
|
1737
|
+
return function smartProductSelection(untrustedConfig) {
|
|
1738
|
+
const config = validateAdapterConfig$e(untrustedConfig, smartProductSelection_ConfigPropertyNames);
|
|
1485
1739
|
// Invalid or incomplete config
|
|
1486
1740
|
if (config === null) {
|
|
1487
|
-
throw new Error('Invalid config for "
|
|
1741
|
+
throw new Error('Invalid config for "smartProductSelection"');
|
|
1488
1742
|
}
|
|
1489
1743
|
return buildNetworkSnapshot$e(luvio, config);
|
|
1490
1744
|
};
|
|
@@ -1520,7 +1774,7 @@ function validate$J(obj, path = 'CpqBaseBulkDetailsOutput') {
|
|
|
1520
1774
|
}
|
|
1521
1775
|
const obj_apiStatus = obj.apiStatus;
|
|
1522
1776
|
const path_apiStatus = path + '.apiStatus';
|
|
1523
|
-
const referencepath_apiStatusValidationError = validate$
|
|
1777
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
1524
1778
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1525
1779
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1526
1780
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1665,10 +1919,10 @@ const bulkProductDetails_ConfigPropertyMetadata = [
|
|
|
1665
1919
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
1666
1920
|
];
|
|
1667
1921
|
const bulkProductDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, bulkProductDetails_ConfigPropertyMetadata);
|
|
1668
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
1922
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(bulkProductDetails_ConfigPropertyMetadata);
|
|
1669
1923
|
function typeCheckConfig$d(untrustedConfig) {
|
|
1670
1924
|
const config = {};
|
|
1671
|
-
typeCheckConfig$
|
|
1925
|
+
typeCheckConfig$j(untrustedConfig, config, bulkProductDetails_ConfigPropertyMetadata);
|
|
1672
1926
|
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
1673
1927
|
if (untrustedIsObject(untrustedConfig_additionalFields)) {
|
|
1674
1928
|
const untrustedConfig_additionalFields_object = {};
|
|
@@ -1797,7 +2051,7 @@ function validate$H(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
|
1797
2051
|
}
|
|
1798
2052
|
const obj_apiStatus = obj.apiStatus;
|
|
1799
2053
|
const path_apiStatus = path + '.apiStatus';
|
|
1800
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2054
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
1801
2055
|
if (referencepath_apiStatusValidationError !== null) {
|
|
1802
2056
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
1803
2057
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1908,10 +2162,10 @@ const productDetails_ConfigPropertyMetadata = [
|
|
|
1908
2162
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1909
2163
|
];
|
|
1910
2164
|
const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, productDetails_ConfigPropertyMetadata);
|
|
1911
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
2165
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(productDetails_ConfigPropertyMetadata);
|
|
1912
2166
|
function typeCheckConfig$c(untrustedConfig) {
|
|
1913
2167
|
const config = {};
|
|
1914
|
-
typeCheckConfig$
|
|
2168
|
+
typeCheckConfig$j(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
1915
2169
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1916
2170
|
const referenceProductDetailsInputRepresentationValidationError = validate$I(untrustedConfig_requestBody);
|
|
1917
2171
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
@@ -1962,15 +2216,15 @@ const productDetailsAdapterFactory = (luvio) => {
|
|
|
1962
2216
|
};
|
|
1963
2217
|
|
|
1964
2218
|
function select$r(luvio, params) {
|
|
1965
|
-
return select$
|
|
2219
|
+
return select$D();
|
|
1966
2220
|
}
|
|
1967
2221
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1968
|
-
getTypeCacheKeys$
|
|
2222
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
1969
2223
|
}
|
|
1970
2224
|
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1971
2225
|
const { body } = response;
|
|
1972
|
-
const key = keyBuilderFromType$
|
|
1973
|
-
luvio.storeIngest(key, ingest$
|
|
2226
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
2227
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1974
2228
|
const snapshot = luvio.storeLookup({
|
|
1975
2229
|
recordId: key,
|
|
1976
2230
|
node: select$r(),
|
|
@@ -2014,14 +2268,14 @@ const categoryList_ConfigPropertyMetadata = [
|
|
|
2014
2268
|
generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2015
2269
|
];
|
|
2016
2270
|
const categoryList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, categoryList_ConfigPropertyMetadata);
|
|
2017
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
2271
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(categoryList_ConfigPropertyMetadata);
|
|
2018
2272
|
function typeCheckConfig$b(untrustedConfig) {
|
|
2019
2273
|
const config = {};
|
|
2020
|
-
typeCheckConfig$
|
|
2274
|
+
typeCheckConfig$j(untrustedConfig, config, categoryList_ConfigPropertyMetadata);
|
|
2021
2275
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2022
2276
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2023
2277
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2024
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2278
|
+
const referenceFilterInputRepresentationValidationError = validate$S(untrustedConfig_filter);
|
|
2025
2279
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2026
2280
|
config.filter = untrustedConfig_filter;
|
|
2027
2281
|
}
|
|
@@ -2136,14 +2390,14 @@ const categoryDetails_ConfigPropertyMetadata = [
|
|
|
2136
2390
|
generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2137
2391
|
];
|
|
2138
2392
|
const categoryDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, categoryDetails_ConfigPropertyMetadata);
|
|
2139
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2393
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(categoryDetails_ConfigPropertyMetadata);
|
|
2140
2394
|
function typeCheckConfig$a(untrustedConfig) {
|
|
2141
2395
|
const config = {};
|
|
2142
|
-
typeCheckConfig$
|
|
2396
|
+
typeCheckConfig$j(untrustedConfig, config, categoryDetails_ConfigPropertyMetadata);
|
|
2143
2397
|
const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
|
|
2144
2398
|
config.additionalContextData = untrustedConfig_additionalContextData;
|
|
2145
2399
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2146
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
2400
|
+
const referenceFilterInputRepresentationValidationError = validate$S(untrustedConfig_filter);
|
|
2147
2401
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
2148
2402
|
config.filter = untrustedConfig_filter;
|
|
2149
2403
|
}
|
|
@@ -2284,7 +2538,7 @@ function validate$F(obj, path = 'CreateCartOutputRepresentation') {
|
|
|
2284
2538
|
}
|
|
2285
2539
|
const obj_apiStatus = obj.apiStatus;
|
|
2286
2540
|
const path_apiStatus = path + '.apiStatus';
|
|
2287
|
-
const referencepath_apiStatusValidationError = validate$
|
|
2541
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
2288
2542
|
if (referencepath_apiStatusValidationError !== null) {
|
|
2289
2543
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
2290
2544
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2391,7 +2645,7 @@ const createCart_ConfigPropertyMetadata = [
|
|
|
2391
2645
|
generateParamConfigMetadata('createCartRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2392
2646
|
];
|
|
2393
2647
|
const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createCart_ConfigPropertyMetadata);
|
|
2394
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2648
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(createCart_ConfigPropertyMetadata);
|
|
2395
2649
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2396
2650
|
const config = {};
|
|
2397
2651
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
@@ -4426,7 +4680,7 @@ function validate$x(obj, path = 'GetCartOutputRepresentation') {
|
|
|
4426
4680
|
}
|
|
4427
4681
|
const obj_apiStatus = obj.apiStatus;
|
|
4428
4682
|
const path_apiStatus = path + '.apiStatus';
|
|
4429
|
-
const referencepath_apiStatusValidationError = validate$
|
|
4683
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
4430
4684
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4431
4685
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4432
4686
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4474,7 +4728,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4474
4728
|
return input;
|
|
4475
4729
|
}
|
|
4476
4730
|
const select$g = function GetCartOutputRepresentationSelect() {
|
|
4477
|
-
const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$
|
|
4731
|
+
const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$E();
|
|
4478
4732
|
const { selections: CartItemsOutputRepresentation__selections, opaque: CartItemsOutputRepresentation__opaque, } = select$i();
|
|
4479
4733
|
const { selections: PricingTotalOutputRepresentation__selections, opaque: PricingTotalOutputRepresentation__opaque, } = select$h();
|
|
4480
4734
|
return {
|
|
@@ -4524,7 +4778,7 @@ function equals$7(existing, incoming) {
|
|
|
4524
4778
|
}
|
|
4525
4779
|
const existing_apiStatus = existing.apiStatus;
|
|
4526
4780
|
const incoming_apiStatus = incoming.apiStatus;
|
|
4527
|
-
if (!(equals$
|
|
4781
|
+
if (!(equals$l(existing_apiStatus, incoming_apiStatus))) {
|
|
4528
4782
|
return false;
|
|
4529
4783
|
}
|
|
4530
4784
|
const existing_cartItems = existing.cartItems;
|
|
@@ -4633,14 +4887,14 @@ const getCart_ConfigPropertyMetadata = [
|
|
|
4633
4887
|
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4634
4888
|
];
|
|
4635
4889
|
const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getCart_ConfigPropertyMetadata);
|
|
4636
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
4890
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(getCart_ConfigPropertyMetadata);
|
|
4637
4891
|
function keyBuilder$7(luvio, config) {
|
|
4638
4892
|
const resourceParams = createResourceParams$8(config);
|
|
4639
4893
|
return keyBuilder$8(luvio, resourceParams);
|
|
4640
4894
|
}
|
|
4641
4895
|
function typeCheckConfig$8(untrustedConfig) {
|
|
4642
4896
|
const config = {};
|
|
4643
|
-
typeCheckConfig$
|
|
4897
|
+
typeCheckConfig$j(untrustedConfig, config, getCart_ConfigPropertyMetadata);
|
|
4644
4898
|
return config;
|
|
4645
4899
|
}
|
|
4646
4900
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -4869,7 +5123,7 @@ function validate$t(obj, path = 'UpdateCartOutputRepresentation') {
|
|
|
4869
5123
|
}
|
|
4870
5124
|
const obj_apiStatus = obj.apiStatus;
|
|
4871
5125
|
const path_apiStatus = path + '.apiStatus';
|
|
4872
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5126
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
4873
5127
|
if (referencepath_apiStatusValidationError !== null) {
|
|
4874
5128
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
4875
5129
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4978,10 +5232,10 @@ const updateCart_ConfigPropertyMetadata = [
|
|
|
4978
5232
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4979
5233
|
];
|
|
4980
5234
|
const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateCart_ConfigPropertyMetadata);
|
|
4981
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
5235
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(updateCart_ConfigPropertyMetadata);
|
|
4982
5236
|
function typeCheckConfig$7(untrustedConfig) {
|
|
4983
5237
|
const config = {};
|
|
4984
|
-
typeCheckConfig$
|
|
5238
|
+
typeCheckConfig$j(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
4985
5239
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4986
5240
|
const referenceUpdateCartInputRepresentationValidationError = validate$w(untrustedConfig_requestBody);
|
|
4987
5241
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
@@ -5077,7 +5331,7 @@ function validate$r(obj, path = 'UpdateCartItemsOutputRepresentation') {
|
|
|
5077
5331
|
}
|
|
5078
5332
|
const obj_apiStatus = obj.apiStatus;
|
|
5079
5333
|
const path_apiStatus = path + '.apiStatus';
|
|
5080
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5334
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
5081
5335
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5082
5336
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5083
5337
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5185,10 +5439,10 @@ const updateCartItems_ConfigPropertyMetadata = [
|
|
|
5185
5439
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5186
5440
|
];
|
|
5187
5441
|
const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateCartItems_ConfigPropertyMetadata);
|
|
5188
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5442
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(updateCartItems_ConfigPropertyMetadata);
|
|
5189
5443
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5190
5444
|
const config = {};
|
|
5191
|
-
typeCheckConfig$
|
|
5445
|
+
typeCheckConfig$j(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
5192
5446
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5193
5447
|
const referenceUpdateCartItemsInputRepresentationValidationError = validate$s(untrustedConfig_requestBody);
|
|
5194
5448
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -5284,7 +5538,7 @@ function validate$p(obj, path = 'CreateCartItemsOutputRepresentation') {
|
|
|
5284
5538
|
}
|
|
5285
5539
|
const obj_apiStatus = obj.apiStatus;
|
|
5286
5540
|
const path_apiStatus = path + '.apiStatus';
|
|
5287
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5541
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
5288
5542
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5289
5543
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5290
5544
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5392,10 +5646,10 @@ const createCartItems_ConfigPropertyMetadata = [
|
|
|
5392
5646
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5393
5647
|
];
|
|
5394
5648
|
const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createCartItems_ConfigPropertyMetadata);
|
|
5395
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
5649
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(createCartItems_ConfigPropertyMetadata);
|
|
5396
5650
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5397
5651
|
const config = {};
|
|
5398
|
-
typeCheckConfig$
|
|
5652
|
+
typeCheckConfig$j(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
5399
5653
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5400
5654
|
const referenceCreateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
|
|
5401
5655
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -5491,7 +5745,7 @@ function validate$n(obj, path = 'CartPricingTotalOutputRepresentation') {
|
|
|
5491
5745
|
}
|
|
5492
5746
|
const obj_apiStatus = obj.apiStatus;
|
|
5493
5747
|
const path_apiStatus = path + '.apiStatus';
|
|
5494
|
-
const referencepath_apiStatusValidationError = validate$
|
|
5748
|
+
const referencepath_apiStatusValidationError = validate$Y(obj_apiStatus, path_apiStatus);
|
|
5495
5749
|
if (referencepath_apiStatusValidationError !== null) {
|
|
5496
5750
|
let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
|
|
5497
5751
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5616,10 +5870,10 @@ const priceCart_ConfigPropertyMetadata = [
|
|
|
5616
5870
|
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5617
5871
|
];
|
|
5618
5872
|
const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, priceCart_ConfigPropertyMetadata);
|
|
5619
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
5873
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(priceCart_ConfigPropertyMetadata);
|
|
5620
5874
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5621
5875
|
const config = {};
|
|
5622
|
-
typeCheckConfig$
|
|
5876
|
+
typeCheckConfig$j(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
5623
5877
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5624
5878
|
const referencePriceCartInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
|
|
5625
5879
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
@@ -7460,7 +7714,7 @@ const configure_ConfigPropertyMetadata = [
|
|
|
7460
7714
|
generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
7461
7715
|
];
|
|
7462
7716
|
const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, configure_ConfigPropertyMetadata);
|
|
7463
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7717
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(configure_ConfigPropertyMetadata);
|
|
7464
7718
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7465
7719
|
const config = {};
|
|
7466
7720
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
@@ -7672,10 +7926,10 @@ const createRule_ConfigPropertyMetadata = [
|
|
|
7672
7926
|
generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7673
7927
|
];
|
|
7674
7928
|
const createRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createRule_ConfigPropertyMetadata);
|
|
7675
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7929
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(createRule_ConfigPropertyMetadata);
|
|
7676
7930
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7677
7931
|
const config = {};
|
|
7678
|
-
typeCheckConfig$
|
|
7932
|
+
typeCheckConfig$j(untrustedConfig, config, createRule_ConfigPropertyMetadata);
|
|
7679
7933
|
const untrustedConfig_actions = untrustedConfig.actions;
|
|
7680
7934
|
if (ArrayIsArray$1(untrustedConfig_actions)) {
|
|
7681
7935
|
const untrustedConfig_actions_array = [];
|
|
@@ -7813,10 +8067,10 @@ const updateRule_ConfigPropertyMetadata = [
|
|
|
7813
8067
|
generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7814
8068
|
];
|
|
7815
8069
|
const updateRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateRule_ConfigPropertyMetadata);
|
|
7816
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8070
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(updateRule_ConfigPropertyMetadata);
|
|
7817
8071
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7818
8072
|
const config = {};
|
|
7819
|
-
typeCheckConfig$
|
|
8073
|
+
typeCheckConfig$j(untrustedConfig, config, updateRule_ConfigPropertyMetadata);
|
|
7820
8074
|
const untrustedConfig_actions = untrustedConfig.actions;
|
|
7821
8075
|
if (ArrayIsArray$1(untrustedConfig_actions)) {
|
|
7822
8076
|
const untrustedConfig_actions_array = [];
|
|
@@ -8018,10 +8272,10 @@ const validateRule_ConfigPropertyMetadata = [
|
|
|
8018
8272
|
generateParamConfigMetadata('productConfigurationRuleId', true, 2 /* Body */, 0 /* String */),
|
|
8019
8273
|
];
|
|
8020
8274
|
const validateRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, validateRule_ConfigPropertyMetadata);
|
|
8021
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8275
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(validateRule_ConfigPropertyMetadata);
|
|
8022
8276
|
function typeCheckConfig(untrustedConfig) {
|
|
8023
8277
|
const config = {};
|
|
8024
|
-
typeCheckConfig$
|
|
8278
|
+
typeCheckConfig$j(untrustedConfig, config, validateRule_ConfigPropertyMetadata);
|
|
8025
8279
|
return config;
|
|
8026
8280
|
}
|
|
8027
8281
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -8066,4 +8320,4 @@ const validateRuleAdapterFactory = (luvio) => {
|
|
|
8066
8320
|
};
|
|
8067
8321
|
};
|
|
8068
8322
|
|
|
8069
|
-
export { bulkProductDetailsAdapterFactory, categoryDetailsAdapterFactory, categoryListAdapterFactory, configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, createRuleAdapterFactory, getCartAdapterFactory, guidedSelectionProductListAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory, updateRuleAdapterFactory, validateRuleAdapterFactory };
|
|
8323
|
+
export { bulkProductDetailsAdapterFactory, categoryDetailsAdapterFactory, categoryListAdapterFactory, configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, createRuleAdapterFactory, getCartAdapterFactory, guidedSelectionProductListAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, smartProductSelectionAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory, updateRuleAdapterFactory, validateRuleAdapterFactory };
|