@salesforce/lds-adapters-industries-cpq 1.281.0 → 1.282.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.
Files changed (20) hide show
  1. package/dist/es/es2018/industries-cpq.js +881 -560
  2. package/dist/es/es2018/types/src/generated/adapters/createRule.d.ts +25 -0
  3. package/dist/es/es2018/types/src/generated/adapters/updateRule.d.ts +25 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
  6. package/dist/es/es2018/types/src/generated/resources/postConnectCpqConfiguratorActionsCreateRule.d.ts +22 -0
  7. package/dist/es/es2018/types/src/generated/resources/postConnectCpqConfiguratorActionsUpdateRule.d.ts +22 -0
  8. package/dist/es/es2018/types/src/generated/types/ConditionCollectionInputRepresentation.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/types/ConditionInputRepresentation.d.ts +52 -0
  10. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleInputRepresentation.d.ts +58 -0
  11. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleOutputRepresentation.d.ts +47 -0
  12. package/dist/es/es2018/types/src/generated/types/ResourceValueCollectionInputRepresentation.d.ts +28 -0
  13. package/dist/es/es2018/types/src/generated/types/RuleActionCollectionInputRepresentation.d.ts +28 -0
  14. package/dist/es/es2018/types/src/generated/types/RuleActionInputRepresentation.d.ts +61 -0
  15. package/dist/es/es2018/types/src/generated/types/RuleCriteriaCollectionInputRepresentation.d.ts +28 -0
  16. package/dist/es/es2018/types/src/generated/types/RuleCriteriaInputRepresentation.d.ts +49 -0
  17. package/package.json +7 -5
  18. package/sfdc/index.js +700 -373
  19. package/src/raml/api.raml +393 -14
  20. package/src/raml/luvio.raml +13 -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$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d, 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$L(obj, path = 'PreviewInputRepresentation') {
96
+ function validate$M(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$L(obj, path = 'PreviewInputRepresentation') {
153
153
  return v_error === undefined ? null : v_error;
154
154
  }
155
155
 
156
- const VERSION$h = "16ee7e6452adaa7a1a8e36a1238a4b85";
157
- function validate$K(obj, path = 'CpqMessageOutputRepresentation') {
156
+ const VERSION$i = "16ee7e6452adaa7a1a8e36a1238a4b85";
157
+ function validate$L(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$K(obj, path = 'CpqMessageOutputRepresentation') {
190
190
  })();
191
191
  return v_error === undefined ? null : v_error;
192
192
  }
193
- const select$s = function CpqMessageOutputRepresentationSelect() {
193
+ const select$v = function CpqMessageOutputRepresentationSelect() {
194
194
  return {
195
195
  kind: 'Fragment',
196
- version: VERSION$h,
196
+ version: VERSION$i,
197
197
  private: [],
198
198
  selections: [
199
199
  {
@@ -219,7 +219,7 @@ const select$s = function CpqMessageOutputRepresentationSelect() {
219
219
  ]
220
220
  };
221
221
  };
222
- function equals$h(existing, incoming) {
222
+ function equals$i(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$h(existing, incoming) {
275
275
  return true;
276
276
  }
277
277
 
278
- const VERSION$g = "2927abd89d0e76012000aa604b583b6d";
279
- function validate$J(obj, path = 'ApiStatusOutputRepresentation') {
278
+ const VERSION$h = "2927abd89d0e76012000aa604b583b6d";
279
+ function validate$K(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$J(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$K(obj_messages_item, path_messages_item);
293
+ const referencepath_messages_itemValidationError = validate$L(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$J(obj, path = 'ApiStatusOutputRepresentation') {
313
313
  })();
314
314
  return v_error === undefined ? null : v_error;
315
315
  }
316
- const select$r = function ApiStatusOutputRepresentationSelect() {
317
- const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$s();
316
+ const select$u = function ApiStatusOutputRepresentationSelect() {
317
+ const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$v();
318
318
  return {
319
319
  kind: 'Fragment',
320
- version: VERSION$g,
320
+ version: VERSION$h,
321
321
  private: [],
322
322
  selections: [
323
323
  {
@@ -339,7 +339,7 @@ const select$r = function ApiStatusOutputRepresentationSelect() {
339
339
  ]
340
340
  };
341
341
  };
342
- function equals$g(existing, incoming) {
342
+ function equals$h(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$g(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$h(existing_messages_item, incoming_messages_item))) {
371
+ if (!(equals$i(existing_messages_item, incoming_messages_item))) {
372
372
  return false;
373
373
  }
374
374
  });
@@ -379,16 +379,16 @@ function equals$g(existing, incoming) {
379
379
  return true;
380
380
  }
381
381
 
382
- const TTL$7 = 1000;
383
- const VERSION$f = "0dec45c09b18523023bddd12cc806a3d";
384
- function validate$I(obj, path = 'CpqBaseListOutputRepresentation') {
382
+ const TTL$8 = 1000;
383
+ const VERSION$g = "0dec45c09b18523023bddd12cc806a3d";
384
+ function validate$J(obj, path = 'CpqBaseListOutputRepresentation') {
385
385
  const v_error = (() => {
386
386
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
387
387
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
388
388
  }
389
389
  const obj_apiStatus = obj.apiStatus;
390
390
  const path_apiStatus = path + '.apiStatus';
391
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
391
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
392
392
  if (referencepath_apiStatusValidationError !== null) {
393
393
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
394
394
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -442,68 +442,68 @@ function validate$I(obj, path = 'CpqBaseListOutputRepresentation') {
442
442
  })();
443
443
  return v_error === undefined ? null : v_error;
444
444
  }
445
- const RepresentationType$8 = 'CpqBaseListOutputRepresentation';
446
- function keyBuilder$9(luvio, config) {
447
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
445
+ const RepresentationType$9 = 'CpqBaseListOutputRepresentation';
446
+ function keyBuilder$a(luvio, config) {
447
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
448
448
  }
449
- function keyBuilderFromType$7(luvio, object) {
449
+ function keyBuilderFromType$8(luvio, object) {
450
450
  const keyParams = {
451
451
  message: object.apiStatus.statusCode
452
452
  };
453
- return keyBuilder$9(luvio, keyParams);
453
+ return keyBuilder$a(luvio, keyParams);
454
454
  }
455
- function normalize$8(input, existing, path, luvio, store, timestamp) {
455
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
456
456
  return input;
457
457
  }
458
- const select$q = function CpqBaseListOutputRepresentationSelect() {
458
+ const select$t = function CpqBaseListOutputRepresentationSelect() {
459
459
  return {
460
460
  kind: 'Fragment',
461
- version: VERSION$f,
461
+ version: VERSION$g,
462
462
  private: [],
463
463
  opaque: true
464
464
  };
465
465
  };
466
- function equals$f(existing, incoming) {
466
+ function equals$g(existing, incoming) {
467
467
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
468
468
  return false;
469
469
  }
470
470
  return true;
471
471
  }
472
- const ingest$8 = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
472
+ const ingest$9 = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
473
473
  if (process.env.NODE_ENV !== 'production') {
474
- const validateError = validate$I(input);
474
+ const validateError = validate$J(input);
475
475
  if (validateError !== null) {
476
476
  throw validateError;
477
477
  }
478
478
  }
479
- const key = keyBuilderFromType$7(luvio, input);
480
- const ttlToUse = TTL$7;
481
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "cpq", VERSION$f, RepresentationType$8, equals$f);
479
+ const key = keyBuilderFromType$8(luvio, input);
480
+ const ttlToUse = TTL$8;
481
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "cpq", VERSION$g, RepresentationType$9, equals$g);
482
482
  return createLink(key);
483
483
  };
484
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
484
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
485
485
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
486
- const rootKey = keyBuilderFromType$7(luvio, input);
486
+ const rootKey = keyBuilderFromType$8(luvio, input);
487
487
  rootKeySet.set(rootKey, {
488
488
  namespace: keyPrefix,
489
- representationName: RepresentationType$8,
489
+ representationName: RepresentationType$9,
490
490
  mergeable: false
491
491
  });
492
492
  }
493
493
 
494
- function select$p(luvio, params) {
495
- return select$q();
494
+ function select$s(luvio, params) {
495
+ return select$t();
496
496
  }
497
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
498
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
497
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
498
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
499
499
  }
500
- function ingestSuccess$a(luvio, resourceParams, response) {
500
+ function ingestSuccess$c(luvio, resourceParams, response) {
501
501
  const { body } = response;
502
- const key = keyBuilderFromType$7(luvio, body);
503
- luvio.storeIngest(key, ingest$8, body);
502
+ const key = keyBuilderFromType$8(luvio, body);
503
+ luvio.storeIngest(key, ingest$9, body);
504
504
  const snapshot = luvio.storeLookup({
505
505
  recordId: key,
506
- node: select$p(),
506
+ node: select$s(),
507
507
  variables: {},
508
508
  });
509
509
  if (process.env.NODE_ENV !== 'production') {
@@ -514,7 +514,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
514
514
  deepFreeze(snapshot.data);
515
515
  return snapshot;
516
516
  }
517
- function createResourceRequest$a(config) {
517
+ function createResourceRequest$c(config) {
518
518
  const headers = {};
519
519
  return {
520
520
  baseUri: '/services/data/v61.0',
@@ -528,45 +528,45 @@ function createResourceRequest$a(config) {
528
528
  };
529
529
  }
530
530
 
531
- const adapterName$a = 'preview';
531
+ const adapterName$c = 'preview';
532
532
  const preview_ConfigPropertyMetadata = [
533
533
  generateParamConfigMetadata('previewInput', true, 2 /* Body */, 4 /* Unsupported */),
534
534
  ];
535
- const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, preview_ConfigPropertyMetadata);
536
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(preview_ConfigPropertyMetadata);
537
- function typeCheckConfig$a(untrustedConfig) {
535
+ const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, preview_ConfigPropertyMetadata);
536
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(preview_ConfigPropertyMetadata);
537
+ function typeCheckConfig$c(untrustedConfig) {
538
538
  const config = {};
539
539
  const untrustedConfig_previewInput = untrustedConfig.previewInput;
540
- const referencePreviewInputRepresentationValidationError = validate$L(untrustedConfig_previewInput);
540
+ const referencePreviewInputRepresentationValidationError = validate$M(untrustedConfig_previewInput);
541
541
  if (referencePreviewInputRepresentationValidationError === null) {
542
542
  config.previewInput = untrustedConfig_previewInput;
543
543
  }
544
544
  return config;
545
545
  }
546
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
546
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
547
547
  if (!untrustedIsObject(untrustedConfig)) {
548
548
  return null;
549
549
  }
550
550
  if (process.env.NODE_ENV !== 'production') {
551
551
  validateConfig(untrustedConfig, configPropertyNames);
552
552
  }
553
- const config = typeCheckConfig$a(untrustedConfig);
553
+ const config = typeCheckConfig$c(untrustedConfig);
554
554
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
555
555
  return null;
556
556
  }
557
557
  return config;
558
558
  }
559
- function buildNetworkSnapshot$a(luvio, config, options) {
560
- const resourceParams = createResourceParams$a(config);
561
- const request = createResourceRequest$a(resourceParams);
559
+ function buildNetworkSnapshot$c(luvio, config, options) {
560
+ const resourceParams = createResourceParams$c(config);
561
+ const request = createResourceRequest$c(resourceParams);
562
562
  return luvio.dispatchResourceRequest(request, options)
563
563
  .then((response) => {
564
564
  return luvio.handleSuccessResponse(() => {
565
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
565
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
566
566
  return luvio.storeBroadcast().then(() => snapshot);
567
567
  }, () => {
568
568
  const cache = new StoreKeyMap();
569
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
569
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
570
570
  return cache;
571
571
  });
572
572
  }, (response) => {
@@ -576,16 +576,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
576
576
  }
577
577
  const previewAdapterFactory = (luvio) => {
578
578
  return function preview(untrustedConfig) {
579
- const config = validateAdapterConfig$a(untrustedConfig, preview_ConfigPropertyNames);
579
+ const config = validateAdapterConfig$c(untrustedConfig, preview_ConfigPropertyNames);
580
580
  // Invalid or incomplete config
581
581
  if (config === null) {
582
582
  throw new Error('Invalid config for "preview"');
583
583
  }
584
- return buildNetworkSnapshot$a(luvio, config);
584
+ return buildNetworkSnapshot$c(luvio, config);
585
585
  };
586
586
  };
587
587
 
588
- function validate$H(obj, path = 'ProductListInputRepresentation') {
588
+ function validate$I(obj, path = 'ProductListInputRepresentation') {
589
589
  const v_error = (() => {
590
590
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
591
591
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -681,19 +681,19 @@ function validate$H(obj, path = 'ProductListInputRepresentation') {
681
681
  return v_error === undefined ? null : v_error;
682
682
  }
683
683
 
684
- function select$o(luvio, params) {
685
- return select$q();
684
+ function select$r(luvio, params) {
685
+ return select$t();
686
686
  }
687
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
688
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
687
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
688
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
689
689
  }
690
- function ingestSuccess$9(luvio, resourceParams, response) {
690
+ function ingestSuccess$b(luvio, resourceParams, response) {
691
691
  const { body } = response;
692
- const key = keyBuilderFromType$7(luvio, body);
693
- luvio.storeIngest(key, ingest$8, body);
692
+ const key = keyBuilderFromType$8(luvio, body);
693
+ luvio.storeIngest(key, ingest$9, body);
694
694
  const snapshot = luvio.storeLookup({
695
695
  recordId: key,
696
- node: select$o(),
696
+ node: select$r(),
697
697
  variables: {},
698
698
  });
699
699
  if (process.env.NODE_ENV !== 'production') {
@@ -704,7 +704,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
704
704
  deepFreeze(snapshot.data);
705
705
  return snapshot;
706
706
  }
707
- function createResourceRequest$9(config) {
707
+ function createResourceRequest$b(config) {
708
708
  const headers = {};
709
709
  return {
710
710
  baseUri: '/services/data/v61.0',
@@ -718,45 +718,45 @@ function createResourceRequest$9(config) {
718
718
  };
719
719
  }
720
720
 
721
- const adapterName$9 = 'productList';
721
+ const adapterName$b = 'productList';
722
722
  const productList_ConfigPropertyMetadata = [
723
723
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
724
724
  ];
725
- const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, productList_ConfigPropertyMetadata);
726
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(productList_ConfigPropertyMetadata);
727
- function typeCheckConfig$9(untrustedConfig) {
725
+ const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, productList_ConfigPropertyMetadata);
726
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(productList_ConfigPropertyMetadata);
727
+ function typeCheckConfig$b(untrustedConfig) {
728
728
  const config = {};
729
729
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
730
- const referenceProductListInputRepresentationValidationError = validate$H(untrustedConfig_requestBody);
730
+ const referenceProductListInputRepresentationValidationError = validate$I(untrustedConfig_requestBody);
731
731
  if (referenceProductListInputRepresentationValidationError === null) {
732
732
  config.requestBody = untrustedConfig_requestBody;
733
733
  }
734
734
  return config;
735
735
  }
736
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
736
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
737
737
  if (!untrustedIsObject(untrustedConfig)) {
738
738
  return null;
739
739
  }
740
740
  if (process.env.NODE_ENV !== 'production') {
741
741
  validateConfig(untrustedConfig, configPropertyNames);
742
742
  }
743
- const config = typeCheckConfig$9(untrustedConfig);
743
+ const config = typeCheckConfig$b(untrustedConfig);
744
744
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
745
745
  return null;
746
746
  }
747
747
  return config;
748
748
  }
749
- function buildNetworkSnapshot$9(luvio, config, options) {
750
- const resourceParams = createResourceParams$9(config);
751
- const request = createResourceRequest$9(resourceParams);
749
+ function buildNetworkSnapshot$b(luvio, config, options) {
750
+ const resourceParams = createResourceParams$b(config);
751
+ const request = createResourceRequest$b(resourceParams);
752
752
  return luvio.dispatchResourceRequest(request, options)
753
753
  .then((response) => {
754
754
  return luvio.handleSuccessResponse(() => {
755
- const snapshot = ingestSuccess$9(luvio, resourceParams, response);
755
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
756
756
  return luvio.storeBroadcast().then(() => snapshot);
757
757
  }, () => {
758
758
  const cache = new StoreKeyMap();
759
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
759
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
760
760
  return cache;
761
761
  });
762
762
  }, (response) => {
@@ -766,16 +766,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
766
766
  }
767
767
  const productListAdapterFactory = (luvio) => {
768
768
  return function productList(untrustedConfig) {
769
- const config = validateAdapterConfig$9(untrustedConfig, productList_ConfigPropertyNames);
769
+ const config = validateAdapterConfig$b(untrustedConfig, productList_ConfigPropertyNames);
770
770
  // Invalid or incomplete config
771
771
  if (config === null) {
772
772
  throw new Error('Invalid config for "productList"');
773
773
  }
774
- return buildNetworkSnapshot$9(luvio, config);
774
+ return buildNetworkSnapshot$b(luvio, config);
775
775
  };
776
776
  };
777
777
 
778
- function validate$G(obj, path = 'SearchProductsInputRepresentation') {
778
+ function validate$H(obj, path = 'SearchProductsInputRepresentation') {
779
779
  const v_error = (() => {
780
780
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
781
781
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -873,19 +873,19 @@ function validate$G(obj, path = 'SearchProductsInputRepresentation') {
873
873
  return v_error === undefined ? null : v_error;
874
874
  }
875
875
 
876
- function select$n(luvio, params) {
877
- return select$q();
876
+ function select$q(luvio, params) {
877
+ return select$t();
878
878
  }
879
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
880
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
879
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
880
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
881
881
  }
882
- function ingestSuccess$8(luvio, resourceParams, response) {
882
+ function ingestSuccess$a(luvio, resourceParams, response) {
883
883
  const { body } = response;
884
- const key = keyBuilderFromType$7(luvio, body);
885
- luvio.storeIngest(key, ingest$8, body);
884
+ const key = keyBuilderFromType$8(luvio, body);
885
+ luvio.storeIngest(key, ingest$9, body);
886
886
  const snapshot = luvio.storeLookup({
887
887
  recordId: key,
888
- node: select$n(),
888
+ node: select$q(),
889
889
  variables: {},
890
890
  });
891
891
  if (process.env.NODE_ENV !== 'production') {
@@ -896,7 +896,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
896
896
  deepFreeze(snapshot.data);
897
897
  return snapshot;
898
898
  }
899
- function createResourceRequest$8(config) {
899
+ function createResourceRequest$a(config) {
900
900
  const headers = {};
901
901
  return {
902
902
  baseUri: '/services/data/v61.0',
@@ -910,45 +910,45 @@ function createResourceRequest$8(config) {
910
910
  };
911
911
  }
912
912
 
913
- const adapterName$8 = 'searchProductList';
913
+ const adapterName$a = 'searchProductList';
914
914
  const searchProductList_ConfigPropertyMetadata = [
915
915
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
916
916
  ];
917
- const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, searchProductList_ConfigPropertyMetadata);
918
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(searchProductList_ConfigPropertyMetadata);
919
- function typeCheckConfig$8(untrustedConfig) {
917
+ const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, searchProductList_ConfigPropertyMetadata);
918
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(searchProductList_ConfigPropertyMetadata);
919
+ function typeCheckConfig$a(untrustedConfig) {
920
920
  const config = {};
921
921
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
922
- const referenceSearchProductsInputRepresentationValidationError = validate$G(untrustedConfig_requestBody);
922
+ const referenceSearchProductsInputRepresentationValidationError = validate$H(untrustedConfig_requestBody);
923
923
  if (referenceSearchProductsInputRepresentationValidationError === null) {
924
924
  config.requestBody = untrustedConfig_requestBody;
925
925
  }
926
926
  return config;
927
927
  }
928
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
928
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
929
929
  if (!untrustedIsObject(untrustedConfig)) {
930
930
  return null;
931
931
  }
932
932
  if (process.env.NODE_ENV !== 'production') {
933
933
  validateConfig(untrustedConfig, configPropertyNames);
934
934
  }
935
- const config = typeCheckConfig$8(untrustedConfig);
935
+ const config = typeCheckConfig$a(untrustedConfig);
936
936
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
937
937
  return null;
938
938
  }
939
939
  return config;
940
940
  }
941
- function buildNetworkSnapshot$8(luvio, config, options) {
942
- const resourceParams = createResourceParams$8(config);
943
- const request = createResourceRequest$8(resourceParams);
941
+ function buildNetworkSnapshot$a(luvio, config, options) {
942
+ const resourceParams = createResourceParams$a(config);
943
+ const request = createResourceRequest$a(resourceParams);
944
944
  return luvio.dispatchResourceRequest(request, options)
945
945
  .then((response) => {
946
946
  return luvio.handleSuccessResponse(() => {
947
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
947
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
948
948
  return luvio.storeBroadcast().then(() => snapshot);
949
949
  }, () => {
950
950
  const cache = new StoreKeyMap();
951
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
951
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
952
952
  return cache;
953
953
  });
954
954
  }, (response) => {
@@ -958,16 +958,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
958
958
  }
959
959
  const searchProductListAdapterFactory = (luvio) => {
960
960
  return function searchProductList(untrustedConfig) {
961
- const config = validateAdapterConfig$8(untrustedConfig, searchProductList_ConfigPropertyNames);
961
+ const config = validateAdapterConfig$a(untrustedConfig, searchProductList_ConfigPropertyNames);
962
962
  // Invalid or incomplete config
963
963
  if (config === null) {
964
964
  throw new Error('Invalid config for "searchProductList"');
965
965
  }
966
- return buildNetworkSnapshot$8(luvio, config);
966
+ return buildNetworkSnapshot$a(luvio, config);
967
967
  };
968
968
  };
969
969
 
970
- function validate$F(obj, path = 'ProductDetailsInputRepresentation') {
970
+ function validate$G(obj, path = 'ProductDetailsInputRepresentation') {
971
971
  const v_error = (() => {
972
972
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
973
973
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1023,16 +1023,16 @@ function validate$F(obj, path = 'ProductDetailsInputRepresentation') {
1023
1023
  return v_error === undefined ? null : v_error;
1024
1024
  }
1025
1025
 
1026
- const TTL$6 = 1000;
1027
- const VERSION$e = "6e77a7585bc4d094518eb201471d85ea";
1028
- function validate$E(obj, path = 'CpqBaseDetailsOutputRepresentation') {
1026
+ const TTL$7 = 1000;
1027
+ const VERSION$f = "6e77a7585bc4d094518eb201471d85ea";
1028
+ function validate$F(obj, path = 'CpqBaseDetailsOutputRepresentation') {
1029
1029
  const v_error = (() => {
1030
1030
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1031
1031
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1032
1032
  }
1033
1033
  const obj_apiStatus = obj.apiStatus;
1034
1034
  const path_apiStatus = path + '.apiStatus';
1035
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
1035
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
1036
1036
  if (referencepath_apiStatusValidationError !== null) {
1037
1037
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
1038
1038
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1051,68 +1051,68 @@ function validate$E(obj, path = 'CpqBaseDetailsOutputRepresentation') {
1051
1051
  })();
1052
1052
  return v_error === undefined ? null : v_error;
1053
1053
  }
1054
- const RepresentationType$7 = 'CpqBaseDetailsOutputRepresentation';
1055
- function keyBuilder$8(luvio, config) {
1056
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.message;
1054
+ const RepresentationType$8 = 'CpqBaseDetailsOutputRepresentation';
1055
+ function keyBuilder$9(luvio, config) {
1056
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
1057
1057
  }
1058
- function keyBuilderFromType$6(luvio, object) {
1058
+ function keyBuilderFromType$7(luvio, object) {
1059
1059
  const keyParams = {
1060
1060
  message: object.apiStatus.statusCode
1061
1061
  };
1062
- return keyBuilder$8(luvio, keyParams);
1062
+ return keyBuilder$9(luvio, keyParams);
1063
1063
  }
1064
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1064
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1065
1065
  return input;
1066
1066
  }
1067
- const select$m = function CpqBaseDetailsOutputRepresentationSelect() {
1067
+ const select$p = function CpqBaseDetailsOutputRepresentationSelect() {
1068
1068
  return {
1069
1069
  kind: 'Fragment',
1070
- version: VERSION$e,
1070
+ version: VERSION$f,
1071
1071
  private: [],
1072
1072
  opaque: true
1073
1073
  };
1074
1074
  };
1075
- function equals$e(existing, incoming) {
1075
+ function equals$f(existing, incoming) {
1076
1076
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1077
1077
  return false;
1078
1078
  }
1079
1079
  return true;
1080
1080
  }
1081
- const ingest$7 = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1081
+ const ingest$8 = function CpqBaseDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1082
1082
  if (process.env.NODE_ENV !== 'production') {
1083
- const validateError = validate$E(input);
1083
+ const validateError = validate$F(input);
1084
1084
  if (validateError !== null) {
1085
1085
  throw validateError;
1086
1086
  }
1087
1087
  }
1088
- const key = keyBuilderFromType$6(luvio, input);
1089
- const ttlToUse = TTL$6;
1090
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "cpq", VERSION$e, RepresentationType$7, equals$e);
1088
+ const key = keyBuilderFromType$7(luvio, input);
1089
+ const ttlToUse = TTL$7;
1090
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "cpq", VERSION$f, RepresentationType$8, equals$f);
1091
1091
  return createLink(key);
1092
1092
  };
1093
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1093
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1094
1094
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1095
- const rootKey = keyBuilderFromType$6(luvio, input);
1095
+ const rootKey = keyBuilderFromType$7(luvio, input);
1096
1096
  rootKeySet.set(rootKey, {
1097
1097
  namespace: keyPrefix,
1098
- representationName: RepresentationType$7,
1098
+ representationName: RepresentationType$8,
1099
1099
  mergeable: false
1100
1100
  });
1101
1101
  }
1102
1102
 
1103
- function select$l(luvio, params) {
1104
- return select$m();
1103
+ function select$o(luvio, params) {
1104
+ return select$p();
1105
1105
  }
1106
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1107
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1106
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1107
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1108
1108
  }
1109
- function ingestSuccess$7(luvio, resourceParams, response) {
1109
+ function ingestSuccess$9(luvio, resourceParams, response) {
1110
1110
  const { body } = response;
1111
- const key = keyBuilderFromType$6(luvio, body);
1112
- luvio.storeIngest(key, ingest$7, body);
1111
+ const key = keyBuilderFromType$7(luvio, body);
1112
+ luvio.storeIngest(key, ingest$8, body);
1113
1113
  const snapshot = luvio.storeLookup({
1114
1114
  recordId: key,
1115
- node: select$l(),
1115
+ node: select$o(),
1116
1116
  variables: {},
1117
1117
  });
1118
1118
  if (process.env.NODE_ENV !== 'production') {
@@ -1123,7 +1123,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1123
1123
  deepFreeze(snapshot.data);
1124
1124
  return snapshot;
1125
1125
  }
1126
- function createResourceRequest$7(config) {
1126
+ function createResourceRequest$9(config) {
1127
1127
  const headers = {};
1128
1128
  return {
1129
1129
  baseUri: '/services/data/v61.0',
@@ -1137,47 +1137,47 @@ function createResourceRequest$7(config) {
1137
1137
  };
1138
1138
  }
1139
1139
 
1140
- const adapterName$7 = 'productDetails';
1140
+ const adapterName$9 = 'productDetails';
1141
1141
  const productDetails_ConfigPropertyMetadata = [
1142
1142
  generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
1143
1143
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
1144
1144
  ];
1145
- const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, productDetails_ConfigPropertyMetadata);
1146
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(productDetails_ConfigPropertyMetadata);
1147
- function typeCheckConfig$7(untrustedConfig) {
1145
+ const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, productDetails_ConfigPropertyMetadata);
1146
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(productDetails_ConfigPropertyMetadata);
1147
+ function typeCheckConfig$9(untrustedConfig) {
1148
1148
  const config = {};
1149
- typeCheckConfig$b(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
1149
+ typeCheckConfig$d(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
1150
1150
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
1151
- const referenceProductDetailsInputRepresentationValidationError = validate$F(untrustedConfig_requestBody);
1151
+ const referenceProductDetailsInputRepresentationValidationError = validate$G(untrustedConfig_requestBody);
1152
1152
  if (referenceProductDetailsInputRepresentationValidationError === null) {
1153
1153
  config.requestBody = untrustedConfig_requestBody;
1154
1154
  }
1155
1155
  return config;
1156
1156
  }
1157
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1157
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1158
1158
  if (!untrustedIsObject(untrustedConfig)) {
1159
1159
  return null;
1160
1160
  }
1161
1161
  if (process.env.NODE_ENV !== 'production') {
1162
1162
  validateConfig(untrustedConfig, configPropertyNames);
1163
1163
  }
1164
- const config = typeCheckConfig$7(untrustedConfig);
1164
+ const config = typeCheckConfig$9(untrustedConfig);
1165
1165
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1166
1166
  return null;
1167
1167
  }
1168
1168
  return config;
1169
1169
  }
1170
- function buildNetworkSnapshot$7(luvio, config, options) {
1171
- const resourceParams = createResourceParams$7(config);
1172
- const request = createResourceRequest$7(resourceParams);
1170
+ function buildNetworkSnapshot$9(luvio, config, options) {
1171
+ const resourceParams = createResourceParams$9(config);
1172
+ const request = createResourceRequest$9(resourceParams);
1173
1173
  return luvio.dispatchResourceRequest(request, options)
1174
1174
  .then((response) => {
1175
1175
  return luvio.handleSuccessResponse(() => {
1176
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1176
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
1177
1177
  return luvio.storeBroadcast().then(() => snapshot);
1178
1178
  }, () => {
1179
1179
  const cache = new StoreKeyMap();
1180
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1180
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1181
1181
  return cache;
1182
1182
  });
1183
1183
  }, (response) => {
@@ -1187,16 +1187,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1187
1187
  }
1188
1188
  const productDetailsAdapterFactory = (luvio) => {
1189
1189
  return function productDetails(untrustedConfig) {
1190
- const config = validateAdapterConfig$7(untrustedConfig, productDetails_ConfigPropertyNames);
1190
+ const config = validateAdapterConfig$9(untrustedConfig, productDetails_ConfigPropertyNames);
1191
1191
  // Invalid or incomplete config
1192
1192
  if (config === null) {
1193
1193
  throw new Error('Invalid config for "productDetails"');
1194
1194
  }
1195
- return buildNetworkSnapshot$7(luvio, config);
1195
+ return buildNetworkSnapshot$9(luvio, config);
1196
1196
  };
1197
1197
  };
1198
1198
 
1199
- function validate$D(obj, path = 'CreateCartInputRepresentation') {
1199
+ function validate$E(obj, path = 'CreateCartInputRepresentation') {
1200
1200
  const v_error = (() => {
1201
1201
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1202
1202
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1265,16 +1265,16 @@ function validate$D(obj, path = 'CreateCartInputRepresentation') {
1265
1265
  return v_error === undefined ? null : v_error;
1266
1266
  }
1267
1267
 
1268
- const TTL$5 = 1000;
1269
- const VERSION$d = "1f730145ab6b9f6b4d070b5eade57b4c";
1270
- function validate$C(obj, path = 'CreateCartOutputRepresentation') {
1268
+ const TTL$6 = 1000;
1269
+ const VERSION$e = "1f730145ab6b9f6b4d070b5eade57b4c";
1270
+ function validate$D(obj, path = 'CreateCartOutputRepresentation') {
1271
1271
  const v_error = (() => {
1272
1272
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1273
1273
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1274
1274
  }
1275
1275
  const obj_apiStatus = obj.apiStatus;
1276
1276
  const path_apiStatus = path + '.apiStatus';
1277
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
1277
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
1278
1278
  if (referencepath_apiStatusValidationError !== null) {
1279
1279
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
1280
1280
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1290,68 +1290,68 @@ function validate$C(obj, path = 'CreateCartOutputRepresentation') {
1290
1290
  })();
1291
1291
  return v_error === undefined ? null : v_error;
1292
1292
  }
1293
- const RepresentationType$6 = 'CreateCartOutputRepresentation';
1294
- function keyBuilder$7(luvio, config) {
1295
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.message;
1293
+ const RepresentationType$7 = 'CreateCartOutputRepresentation';
1294
+ function keyBuilder$8(luvio, config) {
1295
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.message;
1296
1296
  }
1297
- function keyBuilderFromType$5(luvio, object) {
1297
+ function keyBuilderFromType$6(luvio, object) {
1298
1298
  const keyParams = {
1299
1299
  message: object.apiStatus.statusCode
1300
1300
  };
1301
- return keyBuilder$7(luvio, keyParams);
1301
+ return keyBuilder$8(luvio, keyParams);
1302
1302
  }
1303
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1303
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1304
1304
  return input;
1305
1305
  }
1306
- const select$k = function CreateCartOutputRepresentationSelect() {
1306
+ const select$n = function CreateCartOutputRepresentationSelect() {
1307
1307
  return {
1308
1308
  kind: 'Fragment',
1309
- version: VERSION$d,
1309
+ version: VERSION$e,
1310
1310
  private: [],
1311
1311
  opaque: true
1312
1312
  };
1313
1313
  };
1314
- function equals$d(existing, incoming) {
1314
+ function equals$e(existing, incoming) {
1315
1315
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1316
1316
  return false;
1317
1317
  }
1318
1318
  return true;
1319
1319
  }
1320
- const ingest$6 = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1320
+ const ingest$7 = function CreateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1321
1321
  if (process.env.NODE_ENV !== 'production') {
1322
- const validateError = validate$C(input);
1322
+ const validateError = validate$D(input);
1323
1323
  if (validateError !== null) {
1324
1324
  throw validateError;
1325
1325
  }
1326
1326
  }
1327
- const key = keyBuilderFromType$5(luvio, input);
1328
- const ttlToUse = TTL$5;
1329
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "cpq", VERSION$d, RepresentationType$6, equals$d);
1327
+ const key = keyBuilderFromType$6(luvio, input);
1328
+ const ttlToUse = TTL$6;
1329
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "cpq", VERSION$e, RepresentationType$7, equals$e);
1330
1330
  return createLink(key);
1331
1331
  };
1332
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1332
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1333
1333
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1334
- const rootKey = keyBuilderFromType$5(luvio, input);
1334
+ const rootKey = keyBuilderFromType$6(luvio, input);
1335
1335
  rootKeySet.set(rootKey, {
1336
1336
  namespace: keyPrefix,
1337
- representationName: RepresentationType$6,
1337
+ representationName: RepresentationType$7,
1338
1338
  mergeable: false
1339
1339
  });
1340
1340
  }
1341
1341
 
1342
- function select$j(luvio, params) {
1343
- return select$k();
1342
+ function select$m(luvio, params) {
1343
+ return select$n();
1344
1344
  }
1345
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1346
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
1345
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1346
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1347
1347
  }
1348
- function ingestSuccess$6(luvio, resourceParams, response) {
1348
+ function ingestSuccess$8(luvio, resourceParams, response) {
1349
1349
  const { body } = response;
1350
- const key = keyBuilderFromType$5(luvio, body);
1351
- luvio.storeIngest(key, ingest$6, body);
1350
+ const key = keyBuilderFromType$6(luvio, body);
1351
+ luvio.storeIngest(key, ingest$7, body);
1352
1352
  const snapshot = luvio.storeLookup({
1353
1353
  recordId: key,
1354
- node: select$j(),
1354
+ node: select$m(),
1355
1355
  variables: {},
1356
1356
  });
1357
1357
  if (process.env.NODE_ENV !== 'production') {
@@ -1362,7 +1362,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
1362
1362
  deepFreeze(snapshot.data);
1363
1363
  return snapshot;
1364
1364
  }
1365
- function createResourceRequest$6(config) {
1365
+ function createResourceRequest$8(config) {
1366
1366
  const headers = {};
1367
1367
  return {
1368
1368
  baseUri: '/services/data/v61.0',
@@ -1376,45 +1376,45 @@ function createResourceRequest$6(config) {
1376
1376
  };
1377
1377
  }
1378
1378
 
1379
- const adapterName$6 = 'createCart';
1379
+ const adapterName$8 = 'createCart';
1380
1380
  const createCart_ConfigPropertyMetadata = [
1381
1381
  generateParamConfigMetadata('createCartRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
1382
1382
  ];
1383
- const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createCart_ConfigPropertyMetadata);
1384
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(createCart_ConfigPropertyMetadata);
1385
- function typeCheckConfig$6(untrustedConfig) {
1383
+ const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createCart_ConfigPropertyMetadata);
1384
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(createCart_ConfigPropertyMetadata);
1385
+ function typeCheckConfig$8(untrustedConfig) {
1386
1386
  const config = {};
1387
1387
  const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
1388
- const referenceCreateCartInputRepresentationValidationError = validate$D(untrustedConfig_createCartRequestPayload);
1388
+ const referenceCreateCartInputRepresentationValidationError = validate$E(untrustedConfig_createCartRequestPayload);
1389
1389
  if (referenceCreateCartInputRepresentationValidationError === null) {
1390
1390
  config.createCartRequestPayload = untrustedConfig_createCartRequestPayload;
1391
1391
  }
1392
1392
  return config;
1393
1393
  }
1394
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1394
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1395
1395
  if (!untrustedIsObject(untrustedConfig)) {
1396
1396
  return null;
1397
1397
  }
1398
1398
  if (process.env.NODE_ENV !== 'production') {
1399
1399
  validateConfig(untrustedConfig, configPropertyNames);
1400
1400
  }
1401
- const config = typeCheckConfig$6(untrustedConfig);
1401
+ const config = typeCheckConfig$8(untrustedConfig);
1402
1402
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1403
1403
  return null;
1404
1404
  }
1405
1405
  return config;
1406
1406
  }
1407
- function buildNetworkSnapshot$6(luvio, config, options) {
1408
- const resourceParams = createResourceParams$6(config);
1409
- const request = createResourceRequest$6(resourceParams);
1407
+ function buildNetworkSnapshot$8(luvio, config, options) {
1408
+ const resourceParams = createResourceParams$8(config);
1409
+ const request = createResourceRequest$8(resourceParams);
1410
1410
  return luvio.dispatchResourceRequest(request, options)
1411
1411
  .then((response) => {
1412
1412
  return luvio.handleSuccessResponse(() => {
1413
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
1413
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1414
1414
  return luvio.storeBroadcast().then(() => snapshot);
1415
1415
  }, () => {
1416
1416
  const cache = new StoreKeyMap();
1417
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1417
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1418
1418
  return cache;
1419
1419
  });
1420
1420
  }, (response) => {
@@ -1424,17 +1424,17 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1424
1424
  }
1425
1425
  const createCartAdapterFactory = (luvio) => {
1426
1426
  return function createCart(untrustedConfig) {
1427
- const config = validateAdapterConfig$6(untrustedConfig, createCart_ConfigPropertyNames);
1427
+ const config = validateAdapterConfig$8(untrustedConfig, createCart_ConfigPropertyNames);
1428
1428
  // Invalid or incomplete config
1429
1429
  if (config === null) {
1430
1430
  throw new Error('Invalid config for "createCart"');
1431
1431
  }
1432
- return buildNetworkSnapshot$6(luvio, config);
1432
+ return buildNetworkSnapshot$8(luvio, config);
1433
1433
  };
1434
1434
  };
1435
1435
 
1436
- const VERSION$c = "c49b7c37c117b93f62b9696af8a68cdc";
1437
- function validate$B(obj, path = 'AttributePickListValueOutputRepresentation') {
1436
+ const VERSION$d = "c49b7c37c117b93f62b9696af8a68cdc";
1437
+ function validate$C(obj, path = 'AttributePickListValueOutputRepresentation') {
1438
1438
  const v_error = (() => {
1439
1439
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1440
1440
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1512,10 +1512,10 @@ function validate$B(obj, path = 'AttributePickListValueOutputRepresentation') {
1512
1512
  })();
1513
1513
  return v_error === undefined ? null : v_error;
1514
1514
  }
1515
- const select$i = function AttributePickListValueOutputRepresentationSelect() {
1515
+ const select$l = function AttributePickListValueOutputRepresentationSelect() {
1516
1516
  return {
1517
1517
  kind: 'Fragment',
1518
- version: VERSION$c,
1518
+ version: VERSION$d,
1519
1519
  private: [],
1520
1520
  selections: [
1521
1521
  {
@@ -1571,7 +1571,7 @@ const select$i = function AttributePickListValueOutputRepresentationSelect() {
1571
1571
  ]
1572
1572
  };
1573
1573
  };
1574
- function equals$c(existing, incoming) {
1574
+ function equals$d(existing, incoming) {
1575
1575
  const existing_isBooleanValue = existing.isBooleanValue;
1576
1576
  const incoming_isBooleanValue = incoming.isBooleanValue;
1577
1577
  // if at least one of these optionals is defined
@@ -1705,8 +1705,8 @@ function equals$c(existing, incoming) {
1705
1705
  return true;
1706
1706
  }
1707
1707
 
1708
- const VERSION$b = "78e748e628eb86e688eec1678db105d8";
1709
- function validate$A(obj, path = 'AttributePickListOutputRepresentation') {
1708
+ const VERSION$c = "78e748e628eb86e688eec1678db105d8";
1709
+ function validate$B(obj, path = 'AttributePickListOutputRepresentation') {
1710
1710
  const v_error = (() => {
1711
1711
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1712
1712
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1755,7 +1755,7 @@ function validate$A(obj, path = 'AttributePickListOutputRepresentation') {
1755
1755
  for (let i = 0; i < obj_values.length; i++) {
1756
1756
  const obj_values_item = obj_values[i];
1757
1757
  const path_values_item = path_values + '[' + i + ']';
1758
- const referencepath_values_itemValidationError = validate$B(obj_values_item, path_values_item);
1758
+ const referencepath_values_itemValidationError = validate$C(obj_values_item, path_values_item);
1759
1759
  if (referencepath_values_itemValidationError !== null) {
1760
1760
  let message = 'Object doesn\'t match AttributePickListValueOutputRepresentation (at "' + path_values_item + '")\n';
1761
1761
  message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1766,11 +1766,11 @@ function validate$A(obj, path = 'AttributePickListOutputRepresentation') {
1766
1766
  })();
1767
1767
  return v_error === undefined ? null : v_error;
1768
1768
  }
1769
- const select$h = function AttributePickListOutputRepresentationSelect() {
1770
- const { selections: AttributePickListValueOutputRepresentation__selections, opaque: AttributePickListValueOutputRepresentation__opaque, } = select$i();
1769
+ const select$k = function AttributePickListOutputRepresentationSelect() {
1770
+ const { selections: AttributePickListValueOutputRepresentation__selections, opaque: AttributePickListValueOutputRepresentation__opaque, } = select$l();
1771
1771
  return {
1772
1772
  kind: 'Fragment',
1773
- version: VERSION$b,
1773
+ version: VERSION$c,
1774
1774
  private: [],
1775
1775
  selections: [
1776
1776
  {
@@ -1808,7 +1808,7 @@ const select$h = function AttributePickListOutputRepresentationSelect() {
1808
1808
  ]
1809
1809
  };
1810
1810
  };
1811
- function equals$b(existing, incoming) {
1811
+ function equals$c(existing, incoming) {
1812
1812
  const existing_code = existing.code;
1813
1813
  const incoming_code = incoming.code;
1814
1814
  // if at least one of these optionals is defined
@@ -1884,7 +1884,7 @@ function equals$b(existing, incoming) {
1884
1884
  return false;
1885
1885
  }
1886
1886
  const equals_values_items = equalsArray(existing_values, incoming_values, (existing_values_item, incoming_values_item) => {
1887
- if (!(equals$c(existing_values_item, incoming_values_item))) {
1887
+ if (!(equals$d(existing_values_item, incoming_values_item))) {
1888
1888
  return false;
1889
1889
  }
1890
1890
  });
@@ -1895,8 +1895,8 @@ function equals$b(existing, incoming) {
1895
1895
  return true;
1896
1896
  }
1897
1897
 
1898
- const VERSION$a = "d28c7f18b84bf1e8232287039825a85b";
1899
- function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1898
+ const VERSION$b = "d28c7f18b84bf1e8232287039825a85b";
1899
+ function validate$A(obj, path = 'ProductAttributeOutputRepresentation') {
1900
1900
  const v_error = (() => {
1901
1901
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1902
1902
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1918,7 +1918,7 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1918
1918
  if (obj.attributePickList !== undefined) {
1919
1919
  const obj_attributePickList = obj.attributePickList;
1920
1920
  const path_attributePickList = path + '.attributePickList';
1921
- const referencepath_attributePickListValidationError = validate$A(obj_attributePickList, path_attributePickList);
1921
+ const referencepath_attributePickListValidationError = validate$B(obj_attributePickList, path_attributePickList);
1922
1922
  if (referencepath_attributePickListValidationError !== null) {
1923
1923
  let message = 'Object doesn\'t match AttributePickListOutputRepresentation (at "' + path_attributePickList + '")\n';
1924
1924
  message += referencepath_attributePickListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2103,11 +2103,11 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
2103
2103
  })();
2104
2104
  return v_error === undefined ? null : v_error;
2105
2105
  }
2106
- const select$g = function ProductAttributeOutputRepresentationSelect() {
2107
- const { selections: AttributePickListOutputRepresentation__selections, opaque: AttributePickListOutputRepresentation__opaque, } = select$h();
2106
+ const select$j = function ProductAttributeOutputRepresentationSelect() {
2107
+ const { selections: AttributePickListOutputRepresentation__selections, opaque: AttributePickListOutputRepresentation__opaque, } = select$k();
2108
2108
  return {
2109
2109
  kind: 'Fragment',
2110
- version: VERSION$a,
2110
+ version: VERSION$b,
2111
2111
  private: [],
2112
2112
  selections: [
2113
2113
  {
@@ -2254,7 +2254,7 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2254
2254
  ]
2255
2255
  };
2256
2256
  };
2257
- function equals$a(existing, incoming) {
2257
+ function equals$b(existing, incoming) {
2258
2258
  const existing_hidden = existing.hidden;
2259
2259
  const incoming_hidden = incoming.hidden;
2260
2260
  // if at least one of these optionals is defined
@@ -2615,15 +2615,15 @@ function equals$a(existing, incoming) {
2615
2615
  if (existing_attributePickList === undefined || incoming_attributePickList === undefined) {
2616
2616
  return false;
2617
2617
  }
2618
- if (!(equals$b(existing_attributePickList, incoming_attributePickList))) {
2618
+ if (!(equals$c(existing_attributePickList, incoming_attributePickList))) {
2619
2619
  return false;
2620
2620
  }
2621
2621
  }
2622
2622
  return true;
2623
2623
  }
2624
2624
 
2625
- const VERSION$9 = "63ca2614b6879bfb4df068438d7e78ec";
2626
- function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2625
+ const VERSION$a = "63ca2614b6879bfb4df068438d7e78ec";
2626
+ function validate$z(obj, path = 'AttributeCategoryOutputRepresentation') {
2627
2627
  const v_error = (() => {
2628
2628
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2629
2629
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2665,7 +2665,7 @@ function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2665
2665
  for (let i = 0; i < obj_records.length; i++) {
2666
2666
  const obj_records_item = obj_records[i];
2667
2667
  const path_records_item = path_records + '[' + i + ']';
2668
- const referencepath_records_itemValidationError = validate$z(obj_records_item, path_records_item);
2668
+ const referencepath_records_itemValidationError = validate$A(obj_records_item, path_records_item);
2669
2669
  if (referencepath_records_itemValidationError !== null) {
2670
2670
  let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
2671
2671
  message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2697,11 +2697,11 @@ function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2697
2697
  })();
2698
2698
  return v_error === undefined ? null : v_error;
2699
2699
  }
2700
- const select$f = function AttributeCategoryOutputRepresentationSelect() {
2701
- const { selections: ProductAttributeOutputRepresentation__selections, opaque: ProductAttributeOutputRepresentation__opaque, } = select$g();
2700
+ const select$i = function AttributeCategoryOutputRepresentationSelect() {
2701
+ const { selections: ProductAttributeOutputRepresentation__selections, opaque: ProductAttributeOutputRepresentation__opaque, } = select$j();
2702
2702
  return {
2703
2703
  kind: 'Fragment',
2704
- version: VERSION$9,
2704
+ version: VERSION$a,
2705
2705
  private: [],
2706
2706
  selections: [
2707
2707
  {
@@ -2749,7 +2749,7 @@ const select$f = function AttributeCategoryOutputRepresentationSelect() {
2749
2749
  ]
2750
2750
  };
2751
2751
  };
2752
- function equals$9(existing, incoming) {
2752
+ function equals$a(existing, incoming) {
2753
2753
  const existing_totalSize = existing.totalSize;
2754
2754
  const incoming_totalSize = incoming.totalSize;
2755
2755
  // if at least one of these optionals is defined
@@ -2851,7 +2851,7 @@ function equals$9(existing, incoming) {
2851
2851
  return false;
2852
2852
  }
2853
2853
  const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
2854
- if (!(equals$a(existing_records_item, incoming_records_item))) {
2854
+ if (!(equals$b(existing_records_item, incoming_records_item))) {
2855
2855
  return false;
2856
2856
  }
2857
2857
  });
@@ -2862,8 +2862,8 @@ function equals$9(existing, incoming) {
2862
2862
  return true;
2863
2863
  }
2864
2864
 
2865
- const VERSION$8 = "a59ef129f333de8bbfe140f39144b415";
2866
- function validate$x(obj, path = 'CartItemOutputRepresentation') {
2865
+ const VERSION$9 = "a59ef129f333de8bbfe140f39144b415";
2866
+ function validate$y(obj, path = 'CartItemOutputRepresentation') {
2867
2867
  const v_error = (() => {
2868
2868
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2869
2869
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2877,7 +2877,7 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2877
2877
  for (let i = 0; i < obj_attributeCategories.length; i++) {
2878
2878
  const obj_attributeCategories_item = obj_attributeCategories[i];
2879
2879
  const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
2880
- const referencepath_attributeCategories_itemValidationError = validate$y(obj_attributeCategories_item, path_attributeCategories_item);
2880
+ const referencepath_attributeCategories_itemValidationError = validate$z(obj_attributeCategories_item, path_attributeCategories_item);
2881
2881
  if (referencepath_attributeCategories_itemValidationError !== null) {
2882
2882
  let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
2883
2883
  message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2894,7 +2894,7 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2894
2894
  for (let i = 0; i < obj_attributes.length; i++) {
2895
2895
  const obj_attributes_item = obj_attributes[i];
2896
2896
  const path_attributes_item = path_attributes + '[' + i + ']';
2897
- const referencepath_attributes_itemValidationError = validate$z(obj_attributes_item, path_attributes_item);
2897
+ const referencepath_attributes_itemValidationError = validate$A(obj_attributes_item, path_attributes_item);
2898
2898
  if (referencepath_attributes_itemValidationError !== null) {
2899
2899
  let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
2900
2900
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2956,12 +2956,12 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2956
2956
  })();
2957
2957
  return v_error === undefined ? null : v_error;
2958
2958
  }
2959
- const select$e = function CartItemOutputRepresentationSelect() {
2960
- const { selections: AttributeCategoryOutputRepresentation__selections, opaque: AttributeCategoryOutputRepresentation__opaque, } = select$f();
2961
- const { selections: ProductAttributeOutputRepresentation__selections, opaque: ProductAttributeOutputRepresentation__opaque, } = select$g();
2959
+ const select$h = function CartItemOutputRepresentationSelect() {
2960
+ const { selections: AttributeCategoryOutputRepresentation__selections, opaque: AttributeCategoryOutputRepresentation__opaque, } = select$i();
2961
+ const { selections: ProductAttributeOutputRepresentation__selections, opaque: ProductAttributeOutputRepresentation__opaque, } = select$j();
2962
2962
  return {
2963
2963
  kind: 'Fragment',
2964
- version: VERSION$8,
2964
+ version: VERSION$9,
2965
2965
  private: [],
2966
2966
  selections: [
2967
2967
  {
@@ -3026,7 +3026,7 @@ const select$e = function CartItemOutputRepresentationSelect() {
3026
3026
  ]
3027
3027
  };
3028
3028
  };
3029
- function equals$8(existing, incoming) {
3029
+ function equals$9(existing, incoming) {
3030
3030
  const existing_cartItemId = existing.cartItemId;
3031
3031
  const incoming_cartItemId = incoming.cartItemId;
3032
3032
  // if at least one of these optionals is defined
@@ -3154,7 +3154,7 @@ function equals$8(existing, incoming) {
3154
3154
  return false;
3155
3155
  }
3156
3156
  const equals_attributeCategories_items = equalsArray(existing_attributeCategories, incoming_attributeCategories, (existing_attributeCategories_item, incoming_attributeCategories_item) => {
3157
- if (!(equals$9(existing_attributeCategories_item, incoming_attributeCategories_item))) {
3157
+ if (!(equals$a(existing_attributeCategories_item, incoming_attributeCategories_item))) {
3158
3158
  return false;
3159
3159
  }
3160
3160
  });
@@ -3172,7 +3172,7 @@ function equals$8(existing, incoming) {
3172
3172
  return false;
3173
3173
  }
3174
3174
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3175
- if (!(equals$a(existing_attributes_item, incoming_attributes_item))) {
3175
+ if (!(equals$b(existing_attributes_item, incoming_attributes_item))) {
3176
3176
  return false;
3177
3177
  }
3178
3178
  });
@@ -3183,8 +3183,8 @@ function equals$8(existing, incoming) {
3183
3183
  return true;
3184
3184
  }
3185
3185
 
3186
- const VERSION$7 = "dbbe0e43dcf8f1d5334798bb12acca37";
3187
- function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3186
+ const VERSION$8 = "dbbe0e43dcf8f1d5334798bb12acca37";
3187
+ function validate$x(obj, path = 'CartItemsOutputRepresentation') {
3188
3188
  const v_error = (() => {
3189
3189
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3190
3190
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3198,7 +3198,7 @@ function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3198
3198
  for (let i = 0; i < obj_records.length; i++) {
3199
3199
  const obj_records_item = obj_records[i];
3200
3200
  const path_records_item = path_records + '[' + i + ']';
3201
- const referencepath_records_itemValidationError = validate$x(obj_records_item, path_records_item);
3201
+ const referencepath_records_itemValidationError = validate$y(obj_records_item, path_records_item);
3202
3202
  if (referencepath_records_itemValidationError !== null) {
3203
3203
  let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
3204
3204
  message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3216,11 +3216,11 @@ function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3216
3216
  })();
3217
3217
  return v_error === undefined ? null : v_error;
3218
3218
  }
3219
- const select$d = function CartItemsOutputRepresentationSelect() {
3220
- const { selections: CartItemOutputRepresentation__selections, opaque: CartItemOutputRepresentation__opaque, } = select$e();
3219
+ const select$g = function CartItemsOutputRepresentationSelect() {
3220
+ const { selections: CartItemOutputRepresentation__selections, opaque: CartItemOutputRepresentation__opaque, } = select$h();
3221
3221
  return {
3222
3222
  kind: 'Fragment',
3223
- version: VERSION$7,
3223
+ version: VERSION$8,
3224
3224
  private: [],
3225
3225
  selections: [
3226
3226
  {
@@ -3238,7 +3238,7 @@ const select$d = function CartItemsOutputRepresentationSelect() {
3238
3238
  ]
3239
3239
  };
3240
3240
  };
3241
- function equals$7(existing, incoming) {
3241
+ function equals$8(existing, incoming) {
3242
3242
  const existing_totalSize = existing.totalSize;
3243
3243
  const incoming_totalSize = incoming.totalSize;
3244
3244
  // if at least one of these optionals is defined
@@ -3262,7 +3262,7 @@ function equals$7(existing, incoming) {
3262
3262
  return false;
3263
3263
  }
3264
3264
  const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
3265
- if (!(equals$8(existing_records_item, incoming_records_item))) {
3265
+ if (!(equals$9(existing_records_item, incoming_records_item))) {
3266
3266
  return false;
3267
3267
  }
3268
3268
  });
@@ -3273,8 +3273,8 @@ function equals$7(existing, incoming) {
3273
3273
  return true;
3274
3274
  }
3275
3275
 
3276
- const VERSION$6 = "ce1e52694d8508b2f5239ba28287dc1e";
3277
- function validate$v(obj, path = 'PricingTotalOutputRepresentation') {
3276
+ const VERSION$7 = "ce1e52694d8508b2f5239ba28287dc1e";
3277
+ function validate$w(obj, path = 'PricingTotalOutputRepresentation') {
3278
3278
  const v_error = (() => {
3279
3279
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3280
3280
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3306,10 +3306,10 @@ function validate$v(obj, path = 'PricingTotalOutputRepresentation') {
3306
3306
  })();
3307
3307
  return v_error === undefined ? null : v_error;
3308
3308
  }
3309
- const select$c = function PricingTotalOutputRepresentationSelect() {
3309
+ const select$f = function PricingTotalOutputRepresentationSelect() {
3310
3310
  return {
3311
3311
  kind: 'Fragment',
3312
- version: VERSION$6,
3312
+ version: VERSION$7,
3313
3313
  private: [],
3314
3314
  selections: [
3315
3315
  {
@@ -3335,7 +3335,7 @@ const select$c = function PricingTotalOutputRepresentationSelect() {
3335
3335
  ]
3336
3336
  };
3337
3337
  };
3338
- function equals$6(existing, incoming) {
3338
+ function equals$7(existing, incoming) {
3339
3339
  const existing_occurrence = existing.occurrence;
3340
3340
  const incoming_occurrence = incoming.occurrence;
3341
3341
  // if at least one of these optionals is defined
@@ -3391,15 +3391,15 @@ function equals$6(existing, incoming) {
3391
3391
  return true;
3392
3392
  }
3393
3393
 
3394
- const VERSION$5 = "db83704358e5d7a3f3f3622cdd0a5114";
3395
- function validate$u(obj, path = 'GetCartOutputRepresentation') {
3394
+ const VERSION$6 = "db83704358e5d7a3f3f3622cdd0a5114";
3395
+ function validate$v(obj, path = 'GetCartOutputRepresentation') {
3396
3396
  const v_error = (() => {
3397
3397
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3398
3398
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3399
3399
  }
3400
3400
  const obj_apiStatus = obj.apiStatus;
3401
3401
  const path_apiStatus = path + '.apiStatus';
3402
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
3402
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
3403
3403
  if (referencepath_apiStatusValidationError !== null) {
3404
3404
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3405
3405
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3415,7 +3415,7 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3415
3415
  if (obj.cartItems !== undefined) {
3416
3416
  const obj_cartItems = obj.cartItems;
3417
3417
  const path_cartItems = path + '.cartItems';
3418
- const referencepath_cartItemsValidationError = validate$w(obj_cartItems, path_cartItems);
3418
+ const referencepath_cartItemsValidationError = validate$x(obj_cartItems, path_cartItems);
3419
3419
  if (referencepath_cartItemsValidationError !== null) {
3420
3420
  let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
3421
3421
  message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3431,7 +3431,7 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3431
3431
  for (let i = 0; i < obj_totals.length; i++) {
3432
3432
  const obj_totals_item = obj_totals[i];
3433
3433
  const path_totals_item = path_totals + '[' + i + ']';
3434
- const referencepath_totals_itemValidationError = validate$v(obj_totals_item, path_totals_item);
3434
+ const referencepath_totals_itemValidationError = validate$w(obj_totals_item, path_totals_item);
3435
3435
  if (referencepath_totals_itemValidationError !== null) {
3436
3436
  let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
3437
3437
  message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3442,17 +3442,17 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3442
3442
  })();
3443
3443
  return v_error === undefined ? null : v_error;
3444
3444
  }
3445
- const RepresentationType$5 = 'GetCartOutputRepresentation';
3446
- function normalize$5(input, existing, path, luvio, store, timestamp) {
3445
+ const RepresentationType$6 = 'GetCartOutputRepresentation';
3446
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
3447
3447
  return input;
3448
3448
  }
3449
- const select$b = function GetCartOutputRepresentationSelect() {
3450
- const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$r();
3451
- const { selections: CartItemsOutputRepresentation__selections, opaque: CartItemsOutputRepresentation__opaque, } = select$d();
3452
- const { selections: PricingTotalOutputRepresentation__selections, opaque: PricingTotalOutputRepresentation__opaque, } = select$c();
3449
+ const select$e = function GetCartOutputRepresentationSelect() {
3450
+ const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$u();
3451
+ const { selections: CartItemsOutputRepresentation__selections, opaque: CartItemsOutputRepresentation__opaque, } = select$g();
3452
+ const { selections: PricingTotalOutputRepresentation__selections, opaque: PricingTotalOutputRepresentation__opaque, } = select$f();
3453
3453
  return {
3454
3454
  kind: 'Fragment',
3455
- version: VERSION$5,
3455
+ version: VERSION$6,
3456
3456
  private: [],
3457
3457
  selections: [
3458
3458
  {
@@ -3481,7 +3481,7 @@ const select$b = function GetCartOutputRepresentationSelect() {
3481
3481
  ]
3482
3482
  };
3483
3483
  };
3484
- function equals$5(existing, incoming) {
3484
+ function equals$6(existing, incoming) {
3485
3485
  const existing_cartId = existing.cartId;
3486
3486
  const incoming_cartId = incoming.cartId;
3487
3487
  // if at least one of these optionals is defined
@@ -3497,7 +3497,7 @@ function equals$5(existing, incoming) {
3497
3497
  }
3498
3498
  const existing_apiStatus = existing.apiStatus;
3499
3499
  const incoming_apiStatus = incoming.apiStatus;
3500
- if (!(equals$g(existing_apiStatus, incoming_apiStatus))) {
3500
+ if (!(equals$h(existing_apiStatus, incoming_apiStatus))) {
3501
3501
  return false;
3502
3502
  }
3503
3503
  const existing_cartItems = existing.cartItems;
@@ -3509,7 +3509,7 @@ function equals$5(existing, incoming) {
3509
3509
  if (existing_cartItems === undefined || incoming_cartItems === undefined) {
3510
3510
  return false;
3511
3511
  }
3512
- if (!(equals$7(existing_cartItems, incoming_cartItems))) {
3512
+ if (!(equals$8(existing_cartItems, incoming_cartItems))) {
3513
3513
  return false;
3514
3514
  }
3515
3515
  }
@@ -3523,7 +3523,7 @@ function equals$5(existing, incoming) {
3523
3523
  return false;
3524
3524
  }
3525
3525
  const equals_totals_items = equalsArray(existing_totals, incoming_totals, (existing_totals_item, incoming_totals_item) => {
3526
- if (!(equals$6(existing_totals_item, incoming_totals_item))) {
3526
+ if (!(equals$7(existing_totals_item, incoming_totals_item))) {
3527
3527
  return false;
3528
3528
  }
3529
3529
  });
@@ -3533,44 +3533,44 @@ function equals$5(existing, incoming) {
3533
3533
  }
3534
3534
  return true;
3535
3535
  }
3536
- const ingest$5 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3536
+ const ingest$6 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3537
3537
  if (process.env.NODE_ENV !== 'production') {
3538
- const validateError = validate$u(input);
3538
+ const validateError = validate$v(input);
3539
3539
  if (validateError !== null) {
3540
3540
  throw validateError;
3541
3541
  }
3542
3542
  }
3543
3543
  const key = path.fullPath;
3544
3544
  const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
3545
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "cpq", VERSION$5, RepresentationType$5, equals$5);
3545
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "cpq", VERSION$6, RepresentationType$6, equals$6);
3546
3546
  return createLink(key);
3547
3547
  };
3548
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3548
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
3549
3549
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3550
3550
  const rootKey = fullPathFactory();
3551
3551
  rootKeySet.set(rootKey, {
3552
3552
  namespace: keyPrefix,
3553
- representationName: RepresentationType$5,
3553
+ representationName: RepresentationType$6,
3554
3554
  mergeable: false
3555
3555
  });
3556
3556
  }
3557
3557
 
3558
- function select$a(luvio, params) {
3559
- return select$b();
3558
+ function select$d(luvio, params) {
3559
+ return select$e();
3560
3560
  }
3561
- function keyBuilder$6(luvio, params) {
3561
+ function keyBuilder$7(luvio, params) {
3562
3562
  return keyPrefix + '::GetCartOutputRepresentation:(' + 'cartId:' + params.urlParams.cartId + ')';
3563
3563
  }
3564
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3565
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
3564
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
3565
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
3566
3566
  }
3567
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3567
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
3568
3568
  const { body } = response;
3569
- const key = keyBuilder$6(luvio, resourceParams);
3570
- luvio.storeIngest(key, ingest$5, body);
3569
+ const key = keyBuilder$7(luvio, resourceParams);
3570
+ luvio.storeIngest(key, ingest$6, body);
3571
3571
  const snapshot = luvio.storeLookup({
3572
3572
  recordId: key,
3573
- node: select$a(),
3573
+ node: select$d(),
3574
3574
  variables: {},
3575
3575
  }, snapshotRefresh);
3576
3576
  if (process.env.NODE_ENV !== 'production') {
@@ -3582,12 +3582,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3582
3582
  return snapshot;
3583
3583
  }
3584
3584
  function ingestError(luvio, params, error, snapshotRefresh) {
3585
- const key = keyBuilder$6(luvio, params);
3585
+ const key = keyBuilder$7(luvio, params);
3586
3586
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3587
3587
  luvio.storeIngestError(key, errorSnapshot);
3588
3588
  return errorSnapshot;
3589
3589
  }
3590
- function createResourceRequest$5(config) {
3590
+ function createResourceRequest$7(config) {
3591
3591
  const headers = {};
3592
3592
  return {
3593
3593
  baseUri: '/services/data/v61.0',
@@ -3601,60 +3601,60 @@ function createResourceRequest$5(config) {
3601
3601
  };
3602
3602
  }
3603
3603
 
3604
- const adapterName$5 = 'getCart';
3604
+ const adapterName$7 = 'getCart';
3605
3605
  const getCart_ConfigPropertyMetadata = [
3606
3606
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
3607
3607
  ];
3608
- const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCart_ConfigPropertyMetadata);
3609
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getCart_ConfigPropertyMetadata);
3610
- function keyBuilder$5(luvio, config) {
3611
- const resourceParams = createResourceParams$5(config);
3612
- return keyBuilder$6(luvio, resourceParams);
3608
+ const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCart_ConfigPropertyMetadata);
3609
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getCart_ConfigPropertyMetadata);
3610
+ function keyBuilder$6(luvio, config) {
3611
+ const resourceParams = createResourceParams$7(config);
3612
+ return keyBuilder$7(luvio, resourceParams);
3613
3613
  }
3614
- function typeCheckConfig$5(untrustedConfig) {
3614
+ function typeCheckConfig$7(untrustedConfig) {
3615
3615
  const config = {};
3616
- typeCheckConfig$b(untrustedConfig, config, getCart_ConfigPropertyMetadata);
3616
+ typeCheckConfig$d(untrustedConfig, config, getCart_ConfigPropertyMetadata);
3617
3617
  return config;
3618
3618
  }
3619
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3619
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
3620
3620
  if (!untrustedIsObject(untrustedConfig)) {
3621
3621
  return null;
3622
3622
  }
3623
3623
  if (process.env.NODE_ENV !== 'production') {
3624
3624
  validateConfig(untrustedConfig, configPropertyNames);
3625
3625
  }
3626
- const config = typeCheckConfig$5(untrustedConfig);
3626
+ const config = typeCheckConfig$7(untrustedConfig);
3627
3627
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3628
3628
  return null;
3629
3629
  }
3630
3630
  return config;
3631
3631
  }
3632
3632
  function adapterFragment(luvio, config) {
3633
- createResourceParams$5(config);
3634
- return select$a();
3633
+ createResourceParams$7(config);
3634
+ return select$d();
3635
3635
  }
3636
3636
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3637
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
3637
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
3638
3638
  config,
3639
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3639
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3640
3640
  });
3641
3641
  return luvio.storeBroadcast().then(() => snapshot);
3642
3642
  }
3643
3643
  function onFetchResponseError(luvio, config, resourceParams, response) {
3644
3644
  const snapshot = ingestError(luvio, resourceParams, response, {
3645
3645
  config,
3646
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3646
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3647
3647
  });
3648
3648
  return luvio.storeBroadcast().then(() => snapshot);
3649
3649
  }
3650
- function buildNetworkSnapshot$5(luvio, config, options) {
3651
- const resourceParams = createResourceParams$5(config);
3652
- const request = createResourceRequest$5(resourceParams);
3650
+ function buildNetworkSnapshot$7(luvio, config, options) {
3651
+ const resourceParams = createResourceParams$7(config);
3652
+ const request = createResourceRequest$7(resourceParams);
3653
3653
  return luvio.dispatchResourceRequest(request, options)
3654
3654
  .then((response) => {
3655
3655
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3656
3656
  const cache = new StoreKeyMap();
3657
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3657
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
3658
3658
  return cache;
3659
3659
  });
3660
3660
  }, (response) => {
@@ -3662,23 +3662,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3662
3662
  });
3663
3663
  }
3664
3664
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3665
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
3665
+ return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
3666
3666
  }
3667
3667
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3668
3668
  const { luvio, config } = context;
3669
3669
  const selector = {
3670
- recordId: keyBuilder$5(luvio, config),
3670
+ recordId: keyBuilder$6(luvio, config),
3671
3671
  node: adapterFragment(luvio, config),
3672
3672
  variables: {},
3673
3673
  };
3674
3674
  const cacheSnapshot = storeLookup(selector, {
3675
3675
  config,
3676
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3676
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3677
3677
  });
3678
3678
  return cacheSnapshot;
3679
3679
  }
3680
3680
  const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig, requestContext) {
3681
- const config = validateAdapterConfig$5(untrustedConfig, getCart_ConfigPropertyNames);
3681
+ const config = validateAdapterConfig$7(untrustedConfig, getCart_ConfigPropertyNames);
3682
3682
  // Invalid or incomplete config
3683
3683
  if (config === null) {
3684
3684
  return null;
@@ -3687,7 +3687,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
3687
3687
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3688
3688
  };
3689
3689
 
3690
- function validate$t(obj, path = 'UpdateCartInputRepresentation') {
3690
+ function validate$u(obj, path = 'UpdateCartInputRepresentation') {
3691
3691
  const v_error = (() => {
3692
3692
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3693
3693
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3722,7 +3722,7 @@ function validate$t(obj, path = 'UpdateCartInputRepresentation') {
3722
3722
  return v_error === undefined ? null : v_error;
3723
3723
  }
3724
3724
 
3725
- function validate$s(obj, path = 'ValidationResultOutputRepresentation') {
3725
+ function validate$t(obj, path = 'ValidationResultOutputRepresentation') {
3726
3726
  const v_error = (() => {
3727
3727
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3728
3728
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3766,7 +3766,7 @@ function validate$s(obj, path = 'ValidationResultOutputRepresentation') {
3766
3766
  return v_error === undefined ? null : v_error;
3767
3767
  }
3768
3768
 
3769
- function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3769
+ function validate$s(obj, path = 'ValidateCartOutputRepresentation') {
3770
3770
  const v_error = (() => {
3771
3771
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3772
3772
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3780,7 +3780,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3780
3780
  for (let i = 0; i < obj_attributeErrors.length; i++) {
3781
3781
  const obj_attributeErrors_item = obj_attributeErrors[i];
3782
3782
  const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
3783
- const referencepath_attributeErrors_itemValidationError = validate$s(obj_attributeErrors_item, path_attributeErrors_item);
3783
+ const referencepath_attributeErrors_itemValidationError = validate$t(obj_attributeErrors_item, path_attributeErrors_item);
3784
3784
  if (referencepath_attributeErrors_itemValidationError !== null) {
3785
3785
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
3786
3786
  message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3797,7 +3797,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3797
3797
  for (let i = 0; i < obj_breErrors.length; i++) {
3798
3798
  const obj_breErrors_item = obj_breErrors[i];
3799
3799
  const path_breErrors_item = path_breErrors + '[' + i + ']';
3800
- const referencepath_breErrors_itemValidationError = validate$s(obj_breErrors_item, path_breErrors_item);
3800
+ const referencepath_breErrors_itemValidationError = validate$t(obj_breErrors_item, path_breErrors_item);
3801
3801
  if (referencepath_breErrors_itemValidationError !== null) {
3802
3802
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
3803
3803
  message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3814,7 +3814,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3814
3814
  for (let i = 0; i < obj_cardinalityErrors.length; i++) {
3815
3815
  const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
3816
3816
  const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
3817
- const referencepath_cardinalityErrors_itemValidationError = validate$s(obj_cardinalityErrors_item, path_cardinalityErrors_item);
3817
+ const referencepath_cardinalityErrors_itemValidationError = validate$t(obj_cardinalityErrors_item, path_cardinalityErrors_item);
3818
3818
  if (referencepath_cardinalityErrors_itemValidationError !== null) {
3819
3819
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
3820
3820
  message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3833,16 +3833,16 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3833
3833
  return v_error === undefined ? null : v_error;
3834
3834
  }
3835
3835
 
3836
- const TTL$4 = 1000;
3837
- const VERSION$4 = "b0d6081a9f20773285c8aeb2e715ead3";
3838
- function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3836
+ const TTL$5 = 1000;
3837
+ const VERSION$5 = "b0d6081a9f20773285c8aeb2e715ead3";
3838
+ function validate$r(obj, path = 'UpdateCartOutputRepresentation') {
3839
3839
  const v_error = (() => {
3840
3840
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3841
3841
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3842
3842
  }
3843
3843
  const obj_apiStatus = obj.apiStatus;
3844
3844
  const path_apiStatus = path + '.apiStatus';
3845
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
3845
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
3846
3846
  if (referencepath_apiStatusValidationError !== null) {
3847
3847
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3848
3848
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3850,7 +3850,7 @@ function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3850
3850
  }
3851
3851
  const obj_validationResults = obj.validationResults;
3852
3852
  const path_validationResults = path + '.validationResults';
3853
- const referencepath_validationResultsValidationError = validate$r(obj_validationResults, path_validationResults);
3853
+ const referencepath_validationResultsValidationError = validate$s(obj_validationResults, path_validationResults);
3854
3854
  if (referencepath_validationResultsValidationError !== null) {
3855
3855
  let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
3856
3856
  message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3859,68 +3859,68 @@ function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3859
3859
  })();
3860
3860
  return v_error === undefined ? null : v_error;
3861
3861
  }
3862
- const RepresentationType$4 = 'UpdateCartOutputRepresentation';
3863
- function keyBuilder$4(luvio, config) {
3864
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.message;
3862
+ const RepresentationType$5 = 'UpdateCartOutputRepresentation';
3863
+ function keyBuilder$5(luvio, config) {
3864
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
3865
3865
  }
3866
- function keyBuilderFromType$4(luvio, object) {
3866
+ function keyBuilderFromType$5(luvio, object) {
3867
3867
  const keyParams = {
3868
3868
  message: object.apiStatus.statusCode
3869
3869
  };
3870
- return keyBuilder$4(luvio, keyParams);
3870
+ return keyBuilder$5(luvio, keyParams);
3871
3871
  }
3872
- function normalize$4(input, existing, path, luvio, store, timestamp) {
3872
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
3873
3873
  return input;
3874
3874
  }
3875
- const select$9 = function UpdateCartOutputRepresentationSelect() {
3875
+ const select$c = function UpdateCartOutputRepresentationSelect() {
3876
3876
  return {
3877
3877
  kind: 'Fragment',
3878
- version: VERSION$4,
3878
+ version: VERSION$5,
3879
3879
  private: [],
3880
3880
  opaque: true
3881
3881
  };
3882
3882
  };
3883
- function equals$4(existing, incoming) {
3883
+ function equals$5(existing, incoming) {
3884
3884
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3885
3885
  return false;
3886
3886
  }
3887
3887
  return true;
3888
3888
  }
3889
- const ingest$4 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3889
+ const ingest$5 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3890
3890
  if (process.env.NODE_ENV !== 'production') {
3891
- const validateError = validate$q(input);
3891
+ const validateError = validate$r(input);
3892
3892
  if (validateError !== null) {
3893
3893
  throw validateError;
3894
3894
  }
3895
3895
  }
3896
- const key = keyBuilderFromType$4(luvio, input);
3897
- const ttlToUse = TTL$4;
3898
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "cpq", VERSION$4, RepresentationType$4, equals$4);
3896
+ const key = keyBuilderFromType$5(luvio, input);
3897
+ const ttlToUse = TTL$5;
3898
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "cpq", VERSION$5, RepresentationType$5, equals$5);
3899
3899
  return createLink(key);
3900
3900
  };
3901
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
3901
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3902
3902
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3903
- const rootKey = keyBuilderFromType$4(luvio, input);
3903
+ const rootKey = keyBuilderFromType$5(luvio, input);
3904
3904
  rootKeySet.set(rootKey, {
3905
3905
  namespace: keyPrefix,
3906
- representationName: RepresentationType$4,
3906
+ representationName: RepresentationType$5,
3907
3907
  mergeable: false
3908
3908
  });
3909
3909
  }
3910
3910
 
3911
- function select$8(luvio, params) {
3912
- return select$9();
3911
+ function select$b(luvio, params) {
3912
+ return select$c();
3913
3913
  }
3914
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3915
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
3914
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3915
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3916
3916
  }
3917
- function ingestSuccess$4(luvio, resourceParams, response) {
3917
+ function ingestSuccess$6(luvio, resourceParams, response) {
3918
3918
  const { body } = response;
3919
- const key = keyBuilderFromType$4(luvio, body);
3920
- luvio.storeIngest(key, ingest$4, body);
3919
+ const key = keyBuilderFromType$5(luvio, body);
3920
+ luvio.storeIngest(key, ingest$5, body);
3921
3921
  const snapshot = luvio.storeLookup({
3922
3922
  recordId: key,
3923
- node: select$8(),
3923
+ node: select$b(),
3924
3924
  variables: {},
3925
3925
  });
3926
3926
  if (process.env.NODE_ENV !== 'production') {
@@ -3931,7 +3931,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3931
3931
  deepFreeze(snapshot.data);
3932
3932
  return snapshot;
3933
3933
  }
3934
- function createResourceRequest$4(config) {
3934
+ function createResourceRequest$6(config) {
3935
3935
  const headers = {};
3936
3936
  return {
3937
3937
  baseUri: '/services/data/v61.0',
@@ -3945,47 +3945,47 @@ function createResourceRequest$4(config) {
3945
3945
  };
3946
3946
  }
3947
3947
 
3948
- const adapterName$4 = 'updateCart';
3948
+ const adapterName$6 = 'updateCart';
3949
3949
  const updateCart_ConfigPropertyMetadata = [
3950
3950
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
3951
3951
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
3952
3952
  ];
3953
- const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateCart_ConfigPropertyMetadata);
3954
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(updateCart_ConfigPropertyMetadata);
3955
- function typeCheckConfig$4(untrustedConfig) {
3953
+ const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateCart_ConfigPropertyMetadata);
3954
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(updateCart_ConfigPropertyMetadata);
3955
+ function typeCheckConfig$6(untrustedConfig) {
3956
3956
  const config = {};
3957
- typeCheckConfig$b(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
3957
+ typeCheckConfig$d(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
3958
3958
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
3959
- const referenceUpdateCartInputRepresentationValidationError = validate$t(untrustedConfig_requestBody);
3959
+ const referenceUpdateCartInputRepresentationValidationError = validate$u(untrustedConfig_requestBody);
3960
3960
  if (referenceUpdateCartInputRepresentationValidationError === null) {
3961
3961
  config.requestBody = untrustedConfig_requestBody;
3962
3962
  }
3963
3963
  return config;
3964
3964
  }
3965
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3965
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3966
3966
  if (!untrustedIsObject(untrustedConfig)) {
3967
3967
  return null;
3968
3968
  }
3969
3969
  if (process.env.NODE_ENV !== 'production') {
3970
3970
  validateConfig(untrustedConfig, configPropertyNames);
3971
3971
  }
3972
- const config = typeCheckConfig$4(untrustedConfig);
3972
+ const config = typeCheckConfig$6(untrustedConfig);
3973
3973
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3974
3974
  return null;
3975
3975
  }
3976
3976
  return config;
3977
3977
  }
3978
- function buildNetworkSnapshot$4(luvio, config, options) {
3979
- const resourceParams = createResourceParams$4(config);
3980
- const request = createResourceRequest$4(resourceParams);
3978
+ function buildNetworkSnapshot$6(luvio, config, options) {
3979
+ const resourceParams = createResourceParams$6(config);
3980
+ const request = createResourceRequest$6(resourceParams);
3981
3981
  return luvio.dispatchResourceRequest(request, options)
3982
3982
  .then((response) => {
3983
3983
  return luvio.handleSuccessResponse(() => {
3984
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3984
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
3985
3985
  return luvio.storeBroadcast().then(() => snapshot);
3986
3986
  }, () => {
3987
3987
  const cache = new StoreKeyMap();
3988
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3988
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3989
3989
  return cache;
3990
3990
  });
3991
3991
  }, (response) => {
@@ -3995,16 +3995,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3995
3995
  }
3996
3996
  const updateCartAdapterFactory = (luvio) => {
3997
3997
  return function updateCart(untrustedConfig) {
3998
- const config = validateAdapterConfig$4(untrustedConfig, updateCart_ConfigPropertyNames);
3998
+ const config = validateAdapterConfig$6(untrustedConfig, updateCart_ConfigPropertyNames);
3999
3999
  // Invalid or incomplete config
4000
4000
  if (config === null) {
4001
4001
  throw new Error('Invalid config for "updateCart"');
4002
4002
  }
4003
- return buildNetworkSnapshot$4(luvio, config);
4003
+ return buildNetworkSnapshot$6(luvio, config);
4004
4004
  };
4005
4005
  };
4006
4006
 
4007
- function validate$p(obj, path = 'UpdateCartItemsInputRepresentation') {
4007
+ function validate$q(obj, path = 'UpdateCartItemsInputRepresentation') {
4008
4008
  const v_error = (() => {
4009
4009
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4010
4010
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4041,16 +4041,16 @@ function validate$p(obj, path = 'UpdateCartItemsInputRepresentation') {
4041
4041
  return v_error === undefined ? null : v_error;
4042
4042
  }
4043
4043
 
4044
- const TTL$3 = 1000;
4045
- const VERSION$3 = "7f205594e7cf298b4bee71200afab626";
4046
- function validate$o(obj, path = 'UpdateCartItemsOutputRepresentation') {
4044
+ const TTL$4 = 1000;
4045
+ const VERSION$4 = "7f205594e7cf298b4bee71200afab626";
4046
+ function validate$p(obj, path = 'UpdateCartItemsOutputRepresentation') {
4047
4047
  const v_error = (() => {
4048
4048
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4049
4049
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4050
4050
  }
4051
4051
  const obj_apiStatus = obj.apiStatus;
4052
4052
  const path_apiStatus = path + '.apiStatus';
4053
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4053
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4054
4054
  if (referencepath_apiStatusValidationError !== null) {
4055
4055
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4056
4056
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4066,68 +4066,68 @@ function validate$o(obj, path = 'UpdateCartItemsOutputRepresentation') {
4066
4066
  })();
4067
4067
  return v_error === undefined ? null : v_error;
4068
4068
  }
4069
- const RepresentationType$3 = 'UpdateCartItemsOutputRepresentation';
4070
- function keyBuilder$3(luvio, config) {
4071
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.message;
4069
+ const RepresentationType$4 = 'UpdateCartItemsOutputRepresentation';
4070
+ function keyBuilder$4(luvio, config) {
4071
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.message;
4072
4072
  }
4073
- function keyBuilderFromType$3(luvio, object) {
4073
+ function keyBuilderFromType$4(luvio, object) {
4074
4074
  const keyParams = {
4075
4075
  message: object.apiStatus.statusCode
4076
4076
  };
4077
- return keyBuilder$3(luvio, keyParams);
4077
+ return keyBuilder$4(luvio, keyParams);
4078
4078
  }
4079
- function normalize$3(input, existing, path, luvio, store, timestamp) {
4079
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
4080
4080
  return input;
4081
4081
  }
4082
- const select$7 = function UpdateCartItemsOutputRepresentationSelect() {
4082
+ const select$a = function UpdateCartItemsOutputRepresentationSelect() {
4083
4083
  return {
4084
4084
  kind: 'Fragment',
4085
- version: VERSION$3,
4085
+ version: VERSION$4,
4086
4086
  private: [],
4087
4087
  opaque: true
4088
4088
  };
4089
4089
  };
4090
- function equals$3(existing, incoming) {
4090
+ function equals$4(existing, incoming) {
4091
4091
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4092
4092
  return false;
4093
4093
  }
4094
4094
  return true;
4095
4095
  }
4096
- const ingest$3 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4096
+ const ingest$4 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4097
4097
  if (process.env.NODE_ENV !== 'production') {
4098
- const validateError = validate$o(input);
4098
+ const validateError = validate$p(input);
4099
4099
  if (validateError !== null) {
4100
4100
  throw validateError;
4101
4101
  }
4102
4102
  }
4103
- const key = keyBuilderFromType$3(luvio, input);
4104
- const ttlToUse = TTL$3;
4105
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "cpq", VERSION$3, RepresentationType$3, equals$3);
4103
+ const key = keyBuilderFromType$4(luvio, input);
4104
+ const ttlToUse = TTL$4;
4105
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "cpq", VERSION$4, RepresentationType$4, equals$4);
4106
4106
  return createLink(key);
4107
4107
  };
4108
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4108
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
4109
4109
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4110
- const rootKey = keyBuilderFromType$3(luvio, input);
4110
+ const rootKey = keyBuilderFromType$4(luvio, input);
4111
4111
  rootKeySet.set(rootKey, {
4112
4112
  namespace: keyPrefix,
4113
- representationName: RepresentationType$3,
4113
+ representationName: RepresentationType$4,
4114
4114
  mergeable: false
4115
4115
  });
4116
4116
  }
4117
4117
 
4118
- function select$6(luvio, params) {
4119
- return select$7();
4118
+ function select$9(luvio, params) {
4119
+ return select$a();
4120
4120
  }
4121
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4122
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
4121
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
4122
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
4123
4123
  }
4124
- function ingestSuccess$3(luvio, resourceParams, response) {
4124
+ function ingestSuccess$5(luvio, resourceParams, response) {
4125
4125
  const { body } = response;
4126
- const key = keyBuilderFromType$3(luvio, body);
4127
- luvio.storeIngest(key, ingest$3, body);
4126
+ const key = keyBuilderFromType$4(luvio, body);
4127
+ luvio.storeIngest(key, ingest$4, body);
4128
4128
  const snapshot = luvio.storeLookup({
4129
4129
  recordId: key,
4130
- node: select$6(),
4130
+ node: select$9(),
4131
4131
  variables: {},
4132
4132
  });
4133
4133
  if (process.env.NODE_ENV !== 'production') {
@@ -4138,7 +4138,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
4138
4138
  deepFreeze(snapshot.data);
4139
4139
  return snapshot;
4140
4140
  }
4141
- function createResourceRequest$3(config) {
4141
+ function createResourceRequest$5(config) {
4142
4142
  const headers = {};
4143
4143
  return {
4144
4144
  baseUri: '/services/data/v61.0',
@@ -4152,47 +4152,47 @@ function createResourceRequest$3(config) {
4152
4152
  };
4153
4153
  }
4154
4154
 
4155
- const adapterName$3 = 'updateCartItems';
4155
+ const adapterName$5 = 'updateCartItems';
4156
4156
  const updateCartItems_ConfigPropertyMetadata = [
4157
4157
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4158
4158
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4159
4159
  ];
4160
- const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCartItems_ConfigPropertyMetadata);
4161
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(updateCartItems_ConfigPropertyMetadata);
4162
- function typeCheckConfig$3(untrustedConfig) {
4160
+ const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateCartItems_ConfigPropertyMetadata);
4161
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(updateCartItems_ConfigPropertyMetadata);
4162
+ function typeCheckConfig$5(untrustedConfig) {
4163
4163
  const config = {};
4164
- typeCheckConfig$b(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4164
+ typeCheckConfig$d(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4165
4165
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4166
- const referenceUpdateCartItemsInputRepresentationValidationError = validate$p(untrustedConfig_requestBody);
4166
+ const referenceUpdateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
4167
4167
  if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
4168
4168
  config.requestBody = untrustedConfig_requestBody;
4169
4169
  }
4170
4170
  return config;
4171
4171
  }
4172
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4172
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
4173
4173
  if (!untrustedIsObject(untrustedConfig)) {
4174
4174
  return null;
4175
4175
  }
4176
4176
  if (process.env.NODE_ENV !== 'production') {
4177
4177
  validateConfig(untrustedConfig, configPropertyNames);
4178
4178
  }
4179
- const config = typeCheckConfig$3(untrustedConfig);
4179
+ const config = typeCheckConfig$5(untrustedConfig);
4180
4180
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4181
4181
  return null;
4182
4182
  }
4183
4183
  return config;
4184
4184
  }
4185
- function buildNetworkSnapshot$3(luvio, config, options) {
4186
- const resourceParams = createResourceParams$3(config);
4187
- const request = createResourceRequest$3(resourceParams);
4185
+ function buildNetworkSnapshot$5(luvio, config, options) {
4186
+ const resourceParams = createResourceParams$5(config);
4187
+ const request = createResourceRequest$5(resourceParams);
4188
4188
  return luvio.dispatchResourceRequest(request, options)
4189
4189
  .then((response) => {
4190
4190
  return luvio.handleSuccessResponse(() => {
4191
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
4191
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
4192
4192
  return luvio.storeBroadcast().then(() => snapshot);
4193
4193
  }, () => {
4194
4194
  const cache = new StoreKeyMap();
4195
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4195
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
4196
4196
  return cache;
4197
4197
  });
4198
4198
  }, (response) => {
@@ -4202,16 +4202,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
4202
4202
  }
4203
4203
  const updateCartItemsAdapterFactory = (luvio) => {
4204
4204
  return function updateCartItems(untrustedConfig) {
4205
- const config = validateAdapterConfig$3(untrustedConfig, updateCartItems_ConfigPropertyNames);
4205
+ const config = validateAdapterConfig$5(untrustedConfig, updateCartItems_ConfigPropertyNames);
4206
4206
  // Invalid or incomplete config
4207
4207
  if (config === null) {
4208
4208
  throw new Error('Invalid config for "updateCartItems"');
4209
4209
  }
4210
- return buildNetworkSnapshot$3(luvio, config);
4210
+ return buildNetworkSnapshot$5(luvio, config);
4211
4211
  };
4212
4212
  };
4213
4213
 
4214
- function validate$n(obj, path = 'CreateCartItemsInputRepresentation') {
4214
+ function validate$o(obj, path = 'CreateCartItemsInputRepresentation') {
4215
4215
  const v_error = (() => {
4216
4216
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4217
4217
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4248,16 +4248,16 @@ function validate$n(obj, path = 'CreateCartItemsInputRepresentation') {
4248
4248
  return v_error === undefined ? null : v_error;
4249
4249
  }
4250
4250
 
4251
- const TTL$2 = 1000;
4252
- const VERSION$2 = "34153309b079451754e6d3fbf85bb8bd";
4253
- function validate$m(obj, path = 'CreateCartItemsOutputRepresentation') {
4251
+ const TTL$3 = 1000;
4252
+ const VERSION$3 = "34153309b079451754e6d3fbf85bb8bd";
4253
+ function validate$n(obj, path = 'CreateCartItemsOutputRepresentation') {
4254
4254
  const v_error = (() => {
4255
4255
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4256
4256
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4257
4257
  }
4258
4258
  const obj_apiStatus = obj.apiStatus;
4259
4259
  const path_apiStatus = path + '.apiStatus';
4260
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4260
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4261
4261
  if (referencepath_apiStatusValidationError !== null) {
4262
4262
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4263
4263
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4273,68 +4273,68 @@ function validate$m(obj, path = 'CreateCartItemsOutputRepresentation') {
4273
4273
  })();
4274
4274
  return v_error === undefined ? null : v_error;
4275
4275
  }
4276
- const RepresentationType$2 = 'CreateCartItemsOutputRepresentation';
4277
- function keyBuilder$2(luvio, config) {
4278
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.message;
4276
+ const RepresentationType$3 = 'CreateCartItemsOutputRepresentation';
4277
+ function keyBuilder$3(luvio, config) {
4278
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.message;
4279
4279
  }
4280
- function keyBuilderFromType$2(luvio, object) {
4280
+ function keyBuilderFromType$3(luvio, object) {
4281
4281
  const keyParams = {
4282
4282
  message: object.apiStatus.statusCode
4283
4283
  };
4284
- return keyBuilder$2(luvio, keyParams);
4284
+ return keyBuilder$3(luvio, keyParams);
4285
4285
  }
4286
- function normalize$2(input, existing, path, luvio, store, timestamp) {
4286
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
4287
4287
  return input;
4288
4288
  }
4289
- const select$5 = function CreateCartItemsOutputRepresentationSelect() {
4289
+ const select$8 = function CreateCartItemsOutputRepresentationSelect() {
4290
4290
  return {
4291
4291
  kind: 'Fragment',
4292
- version: VERSION$2,
4292
+ version: VERSION$3,
4293
4293
  private: [],
4294
4294
  opaque: true
4295
4295
  };
4296
4296
  };
4297
- function equals$2(existing, incoming) {
4297
+ function equals$3(existing, incoming) {
4298
4298
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4299
4299
  return false;
4300
4300
  }
4301
4301
  return true;
4302
4302
  }
4303
- const ingest$2 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4303
+ const ingest$3 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4304
4304
  if (process.env.NODE_ENV !== 'production') {
4305
- const validateError = validate$m(input);
4305
+ const validateError = validate$n(input);
4306
4306
  if (validateError !== null) {
4307
4307
  throw validateError;
4308
4308
  }
4309
4309
  }
4310
- const key = keyBuilderFromType$2(luvio, input);
4311
- const ttlToUse = TTL$2;
4312
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "cpq", VERSION$2, RepresentationType$2, equals$2);
4310
+ const key = keyBuilderFromType$3(luvio, input);
4311
+ const ttlToUse = TTL$3;
4312
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "cpq", VERSION$3, RepresentationType$3, equals$3);
4313
4313
  return createLink(key);
4314
4314
  };
4315
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4315
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4316
4316
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4317
- const rootKey = keyBuilderFromType$2(luvio, input);
4317
+ const rootKey = keyBuilderFromType$3(luvio, input);
4318
4318
  rootKeySet.set(rootKey, {
4319
4319
  namespace: keyPrefix,
4320
- representationName: RepresentationType$2,
4320
+ representationName: RepresentationType$3,
4321
4321
  mergeable: false
4322
4322
  });
4323
4323
  }
4324
4324
 
4325
- function select$4(luvio, params) {
4326
- return select$5();
4325
+ function select$7(luvio, params) {
4326
+ return select$8();
4327
4327
  }
4328
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
4329
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
4328
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
4329
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
4330
4330
  }
4331
- function ingestSuccess$2(luvio, resourceParams, response) {
4331
+ function ingestSuccess$4(luvio, resourceParams, response) {
4332
4332
  const { body } = response;
4333
- const key = keyBuilderFromType$2(luvio, body);
4334
- luvio.storeIngest(key, ingest$2, body);
4333
+ const key = keyBuilderFromType$3(luvio, body);
4334
+ luvio.storeIngest(key, ingest$3, body);
4335
4335
  const snapshot = luvio.storeLookup({
4336
4336
  recordId: key,
4337
- node: select$4(),
4337
+ node: select$7(),
4338
4338
  variables: {},
4339
4339
  });
4340
4340
  if (process.env.NODE_ENV !== 'production') {
@@ -4345,7 +4345,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
4345
4345
  deepFreeze(snapshot.data);
4346
4346
  return snapshot;
4347
4347
  }
4348
- function createResourceRequest$2(config) {
4348
+ function createResourceRequest$4(config) {
4349
4349
  const headers = {};
4350
4350
  return {
4351
4351
  baseUri: '/services/data/v61.0',
@@ -4359,47 +4359,47 @@ function createResourceRequest$2(config) {
4359
4359
  };
4360
4360
  }
4361
4361
 
4362
- const adapterName$2 = 'createCartItems';
4362
+ const adapterName$4 = 'createCartItems';
4363
4363
  const createCartItems_ConfigPropertyMetadata = [
4364
4364
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4365
4365
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4366
4366
  ];
4367
- const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCartItems_ConfigPropertyMetadata);
4368
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(createCartItems_ConfigPropertyMetadata);
4369
- function typeCheckConfig$2(untrustedConfig) {
4367
+ const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createCartItems_ConfigPropertyMetadata);
4368
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createCartItems_ConfigPropertyMetadata);
4369
+ function typeCheckConfig$4(untrustedConfig) {
4370
4370
  const config = {};
4371
- typeCheckConfig$b(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4371
+ typeCheckConfig$d(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4372
4372
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4373
- const referenceCreateCartItemsInputRepresentationValidationError = validate$n(untrustedConfig_requestBody);
4373
+ const referenceCreateCartItemsInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
4374
4374
  if (referenceCreateCartItemsInputRepresentationValidationError === null) {
4375
4375
  config.requestBody = untrustedConfig_requestBody;
4376
4376
  }
4377
4377
  return config;
4378
4378
  }
4379
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4379
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
4380
4380
  if (!untrustedIsObject(untrustedConfig)) {
4381
4381
  return null;
4382
4382
  }
4383
4383
  if (process.env.NODE_ENV !== 'production') {
4384
4384
  validateConfig(untrustedConfig, configPropertyNames);
4385
4385
  }
4386
- const config = typeCheckConfig$2(untrustedConfig);
4386
+ const config = typeCheckConfig$4(untrustedConfig);
4387
4387
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4388
4388
  return null;
4389
4389
  }
4390
4390
  return config;
4391
4391
  }
4392
- function buildNetworkSnapshot$2(luvio, config, options) {
4393
- const resourceParams = createResourceParams$2(config);
4394
- const request = createResourceRequest$2(resourceParams);
4392
+ function buildNetworkSnapshot$4(luvio, config, options) {
4393
+ const resourceParams = createResourceParams$4(config);
4394
+ const request = createResourceRequest$4(resourceParams);
4395
4395
  return luvio.dispatchResourceRequest(request, options)
4396
4396
  .then((response) => {
4397
4397
  return luvio.handleSuccessResponse(() => {
4398
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
4398
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
4399
4399
  return luvio.storeBroadcast().then(() => snapshot);
4400
4400
  }, () => {
4401
4401
  const cache = new StoreKeyMap();
4402
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4402
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
4403
4403
  return cache;
4404
4404
  });
4405
4405
  }, (response) => {
@@ -4409,16 +4409,16 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4409
4409
  }
4410
4410
  const createCartItemsAdapterFactory = (luvio) => {
4411
4411
  return function createCartItems(untrustedConfig) {
4412
- const config = validateAdapterConfig$2(untrustedConfig, createCartItems_ConfigPropertyNames);
4412
+ const config = validateAdapterConfig$4(untrustedConfig, createCartItems_ConfigPropertyNames);
4413
4413
  // Invalid or incomplete config
4414
4414
  if (config === null) {
4415
4415
  throw new Error('Invalid config for "createCartItems"');
4416
4416
  }
4417
- return buildNetworkSnapshot$2(luvio, config);
4417
+ return buildNetworkSnapshot$4(luvio, config);
4418
4418
  };
4419
4419
  };
4420
4420
 
4421
- function validate$l(obj, path = 'PriceCartInputRepresentation') {
4421
+ function validate$m(obj, path = 'PriceCartInputRepresentation') {
4422
4422
  const v_error = (() => {
4423
4423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4424
4424
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4455,16 +4455,16 @@ function validate$l(obj, path = 'PriceCartInputRepresentation') {
4455
4455
  return v_error === undefined ? null : v_error;
4456
4456
  }
4457
4457
 
4458
- const TTL$1 = 1000;
4459
- const VERSION$1 = "b1e28ba15f534459065f2870a9dc703d";
4460
- function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4458
+ const TTL$2 = 1000;
4459
+ const VERSION$2 = "b1e28ba15f534459065f2870a9dc703d";
4460
+ function validate$l(obj, path = 'CartPricingTotalOutputRepresentation') {
4461
4461
  const v_error = (() => {
4462
4462
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4463
4463
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4464
4464
  }
4465
4465
  const obj_apiStatus = obj.apiStatus;
4466
4466
  const path_apiStatus = path + '.apiStatus';
4467
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4467
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4468
4468
  if (referencepath_apiStatusValidationError !== null) {
4469
4469
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4470
4470
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4486,7 +4486,7 @@ function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4486
4486
  for (let i = 0; i < obj_cartPricingTotals.length; i++) {
4487
4487
  const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
4488
4488
  const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
4489
- const referencepath_cartPricingTotals_itemValidationError = validate$v(obj_cartPricingTotals_item, path_cartPricingTotals_item);
4489
+ const referencepath_cartPricingTotals_itemValidationError = validate$w(obj_cartPricingTotals_item, path_cartPricingTotals_item);
4490
4490
  if (referencepath_cartPricingTotals_itemValidationError !== null) {
4491
4491
  let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
4492
4492
  message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4497,68 +4497,68 @@ function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4497
4497
  })();
4498
4498
  return v_error === undefined ? null : v_error;
4499
4499
  }
4500
- const RepresentationType$1 = 'CartPricingTotalOutputRepresentation';
4501
- function keyBuilder$1(luvio, config) {
4502
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.message;
4500
+ const RepresentationType$2 = 'CartPricingTotalOutputRepresentation';
4501
+ function keyBuilder$2(luvio, config) {
4502
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.message;
4503
4503
  }
4504
- function keyBuilderFromType$1(luvio, object) {
4504
+ function keyBuilderFromType$2(luvio, object) {
4505
4505
  const keyParams = {
4506
4506
  message: object.apiStatus.statusCode
4507
4507
  };
4508
- return keyBuilder$1(luvio, keyParams);
4508
+ return keyBuilder$2(luvio, keyParams);
4509
4509
  }
4510
- function normalize$1(input, existing, path, luvio, store, timestamp) {
4510
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
4511
4511
  return input;
4512
4512
  }
4513
- const select$3 = function CartPricingTotalOutputRepresentationSelect() {
4513
+ const select$6 = function CartPricingTotalOutputRepresentationSelect() {
4514
4514
  return {
4515
4515
  kind: 'Fragment',
4516
- version: VERSION$1,
4516
+ version: VERSION$2,
4517
4517
  private: [],
4518
4518
  opaque: true
4519
4519
  };
4520
4520
  };
4521
- function equals$1(existing, incoming) {
4521
+ function equals$2(existing, incoming) {
4522
4522
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4523
4523
  return false;
4524
4524
  }
4525
4525
  return true;
4526
4526
  }
4527
- const ingest$1 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4527
+ const ingest$2 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4528
4528
  if (process.env.NODE_ENV !== 'production') {
4529
- const validateError = validate$k(input);
4529
+ const validateError = validate$l(input);
4530
4530
  if (validateError !== null) {
4531
4531
  throw validateError;
4532
4532
  }
4533
4533
  }
4534
- const key = keyBuilderFromType$1(luvio, input);
4535
- const ttlToUse = TTL$1;
4536
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "cpq", VERSION$1, RepresentationType$1, equals$1);
4534
+ const key = keyBuilderFromType$2(luvio, input);
4535
+ const ttlToUse = TTL$2;
4536
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "cpq", VERSION$2, RepresentationType$2, equals$2);
4537
4537
  return createLink(key);
4538
4538
  };
4539
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4539
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4540
4540
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4541
- const rootKey = keyBuilderFromType$1(luvio, input);
4541
+ const rootKey = keyBuilderFromType$2(luvio, input);
4542
4542
  rootKeySet.set(rootKey, {
4543
4543
  namespace: keyPrefix,
4544
- representationName: RepresentationType$1,
4544
+ representationName: RepresentationType$2,
4545
4545
  mergeable: false
4546
4546
  });
4547
4547
  }
4548
4548
 
4549
- function select$2(luvio, params) {
4550
- return select$3();
4549
+ function select$5(luvio, params) {
4550
+ return select$6();
4551
4551
  }
4552
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4553
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
4552
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4553
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
4554
4554
  }
4555
- function ingestSuccess$1(luvio, resourceParams, response) {
4555
+ function ingestSuccess$3(luvio, resourceParams, response) {
4556
4556
  const { body } = response;
4557
- const key = keyBuilderFromType$1(luvio, body);
4558
- luvio.storeIngest(key, ingest$1, body);
4557
+ const key = keyBuilderFromType$2(luvio, body);
4558
+ luvio.storeIngest(key, ingest$2, body);
4559
4559
  const snapshot = luvio.storeLookup({
4560
4560
  recordId: key,
4561
- node: select$2(),
4561
+ node: select$5(),
4562
4562
  variables: {},
4563
4563
  });
4564
4564
  if (process.env.NODE_ENV !== 'production') {
@@ -4569,7 +4569,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
4569
4569
  deepFreeze(snapshot.data);
4570
4570
  return snapshot;
4571
4571
  }
4572
- function createResourceRequest$1(config) {
4572
+ function createResourceRequest$3(config) {
4573
4573
  const headers = {};
4574
4574
  return {
4575
4575
  baseUri: '/services/data/v61.0',
@@ -4583,47 +4583,47 @@ function createResourceRequest$1(config) {
4583
4583
  };
4584
4584
  }
4585
4585
 
4586
- const adapterName$1 = 'priceCart';
4586
+ const adapterName$3 = 'priceCart';
4587
4587
  const priceCart_ConfigPropertyMetadata = [
4588
4588
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4589
4589
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4590
4590
  ];
4591
- const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, priceCart_ConfigPropertyMetadata);
4592
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(priceCart_ConfigPropertyMetadata);
4593
- function typeCheckConfig$1(untrustedConfig) {
4591
+ const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, priceCart_ConfigPropertyMetadata);
4592
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(priceCart_ConfigPropertyMetadata);
4593
+ function typeCheckConfig$3(untrustedConfig) {
4594
4594
  const config = {};
4595
- typeCheckConfig$b(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
4595
+ typeCheckConfig$d(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
4596
4596
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4597
- const referencePriceCartInputRepresentationValidationError = validate$l(untrustedConfig_requestBody);
4597
+ const referencePriceCartInputRepresentationValidationError = validate$m(untrustedConfig_requestBody);
4598
4598
  if (referencePriceCartInputRepresentationValidationError === null) {
4599
4599
  config.requestBody = untrustedConfig_requestBody;
4600
4600
  }
4601
4601
  return config;
4602
4602
  }
4603
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4603
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4604
4604
  if (!untrustedIsObject(untrustedConfig)) {
4605
4605
  return null;
4606
4606
  }
4607
4607
  if (process.env.NODE_ENV !== 'production') {
4608
4608
  validateConfig(untrustedConfig, configPropertyNames);
4609
4609
  }
4610
- const config = typeCheckConfig$1(untrustedConfig);
4610
+ const config = typeCheckConfig$3(untrustedConfig);
4611
4611
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4612
4612
  return null;
4613
4613
  }
4614
4614
  return config;
4615
4615
  }
4616
- function buildNetworkSnapshot$1(luvio, config, options) {
4617
- const resourceParams = createResourceParams$1(config);
4618
- const request = createResourceRequest$1(resourceParams);
4616
+ function buildNetworkSnapshot$3(luvio, config, options) {
4617
+ const resourceParams = createResourceParams$3(config);
4618
+ const request = createResourceRequest$3(resourceParams);
4619
4619
  return luvio.dispatchResourceRequest(request, options)
4620
4620
  .then((response) => {
4621
4621
  return luvio.handleSuccessResponse(() => {
4622
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
4622
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
4623
4623
  return luvio.storeBroadcast().then(() => snapshot);
4624
4624
  }, () => {
4625
4625
  const cache = new StoreKeyMap();
4626
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4626
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4627
4627
  return cache;
4628
4628
  });
4629
4629
  }, (response) => {
@@ -4633,16 +4633,16 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4633
4633
  }
4634
4634
  const priceCartAdapterFactory = (luvio) => {
4635
4635
  return function priceCart(untrustedConfig) {
4636
- const config = validateAdapterConfig$1(untrustedConfig, priceCart_ConfigPropertyNames);
4636
+ const config = validateAdapterConfig$3(untrustedConfig, priceCart_ConfigPropertyNames);
4637
4637
  // Invalid or incomplete config
4638
4638
  if (config === null) {
4639
4639
  throw new Error('Invalid config for "priceCart"');
4640
4640
  }
4641
- return buildNetworkSnapshot$1(luvio, config);
4641
+ return buildNetworkSnapshot$3(luvio, config);
4642
4642
  };
4643
4643
  };
4644
4644
 
4645
- function validate$j(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4645
+ function validate$k(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4646
4646
  const v_error = (() => {
4647
4647
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4648
4648
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4670,7 +4670,7 @@ function validate$j(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4670
4670
  return v_error === undefined ? null : v_error;
4671
4671
  }
4672
4672
 
4673
- function validate$i(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4673
+ function validate$j(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4674
4674
  const v_error = (() => {
4675
4675
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4676
4676
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4735,7 +4735,7 @@ function validate$i(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4735
4735
  return v_error === undefined ? null : v_error;
4736
4736
  }
4737
4737
 
4738
- function validate$h(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4738
+ function validate$i(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4739
4739
  const v_error = (() => {
4740
4740
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4741
4741
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4758,7 +4758,7 @@ function validate$h(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4758
4758
  return v_error === undefined ? null : v_error;
4759
4759
  }
4760
4760
 
4761
- function validate$g(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4761
+ function validate$h(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4762
4762
  const v_error = (() => {
4763
4763
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4764
4764
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4786,7 +4786,7 @@ function validate$g(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4786
4786
  return v_error === undefined ? null : v_error;
4787
4787
  }
4788
4788
 
4789
- function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4789
+ function validate$g(obj, path = 'ConfiguratorInputRepresentation') {
4790
4790
  const v_error = (() => {
4791
4791
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4792
4792
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4800,7 +4800,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4800
4800
  for (let i = 0; i < obj_addedNodes.length; i++) {
4801
4801
  const obj_addedNodes_item = obj_addedNodes[i];
4802
4802
  const path_addedNodes_item = path_addedNodes + '[' + i + ']';
4803
- const referencepath_addedNodes_itemValidationError = validate$j(obj_addedNodes_item, path_addedNodes_item);
4803
+ const referencepath_addedNodes_itemValidationError = validate$k(obj_addedNodes_item, path_addedNodes_item);
4804
4804
  if (referencepath_addedNodes_itemValidationError !== null) {
4805
4805
  let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
4806
4806
  message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4811,7 +4811,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4811
4811
  if (obj.configuratorOptions !== undefined) {
4812
4812
  const obj_configuratorOptions = obj.configuratorOptions;
4813
4813
  const path_configuratorOptions = path + '.configuratorOptions';
4814
- const referencepath_configuratorOptionsValidationError = validate$i(obj_configuratorOptions, path_configuratorOptions);
4814
+ const referencepath_configuratorOptionsValidationError = validate$j(obj_configuratorOptions, path_configuratorOptions);
4815
4815
  if (referencepath_configuratorOptionsValidationError !== null) {
4816
4816
  let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
4817
4817
  message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4869,7 +4869,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4869
4869
  for (let i = 0; i < obj_deletedNodes.length; i++) {
4870
4870
  const obj_deletedNodes_item = obj_deletedNodes[i];
4871
4871
  const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
4872
- const referencepath_deletedNodes_itemValidationError = validate$h(obj_deletedNodes_item, path_deletedNodes_item);
4872
+ const referencepath_deletedNodes_itemValidationError = validate$i(obj_deletedNodes_item, path_deletedNodes_item);
4873
4873
  if (referencepath_deletedNodes_itemValidationError !== null) {
4874
4874
  let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
4875
4875
  message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4977,7 +4977,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4977
4977
  for (let i = 0; i < obj_updatedNodes.length; i++) {
4978
4978
  const obj_updatedNodes_item = obj_updatedNodes[i];
4979
4979
  const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
4980
- const referencepath_updatedNodes_itemValidationError = validate$g(obj_updatedNodes_item, path_updatedNodes_item);
4980
+ const referencepath_updatedNodes_itemValidationError = validate$h(obj_updatedNodes_item, path_updatedNodes_item);
4981
4981
  if (referencepath_updatedNodes_itemValidationError !== null) {
4982
4982
  let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
4983
4983
  message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4989,7 +4989,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4989
4989
  return v_error === undefined ? null : v_error;
4990
4990
  }
4991
4991
 
4992
- function validate$e(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
4992
+ function validate$f(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
4993
4993
  const v_error = (() => {
4994
4994
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4995
4995
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5019,7 +5019,7 @@ function validate$e(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentatio
5019
5019
  return v_error === undefined ? null : v_error;
5020
5020
  }
5021
5021
 
5022
- function validate$d(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
5022
+ function validate$e(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
5023
5023
  const v_error = (() => {
5024
5024
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5025
5025
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5098,7 +5098,7 @@ function validate$d(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
5098
5098
  return v_error === undefined ? null : v_error;
5099
5099
  }
5100
5100
 
5101
- function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
5101
+ function validate$d(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
5102
5102
  const v_error = (() => {
5103
5103
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5104
5104
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5140,7 +5140,7 @@ function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
5140
5140
  for (let i = 0; i < obj_values.length; i++) {
5141
5141
  const obj_values_item = obj_values[i];
5142
5142
  const path_values_item = path_values + '[' + i + ']';
5143
- const referencepath_values_itemValidationError = validate$d(obj_values_item, path_values_item);
5143
+ const referencepath_values_itemValidationError = validate$e(obj_values_item, path_values_item);
5144
5144
  if (referencepath_values_itemValidationError !== null) {
5145
5145
  let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
5146
5146
  message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5152,7 +5152,7 @@ function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
5152
5152
  return v_error === undefined ? null : v_error;
5153
5153
  }
5154
5154
 
5155
- function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5155
+ function validate$c(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5156
5156
  const v_error = (() => {
5157
5157
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5158
5158
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5174,7 +5174,7 @@ function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5174
5174
  if (obj.attributePicklist !== undefined) {
5175
5175
  const obj_attributePicklist = obj.attributePicklist;
5176
5176
  const path_attributePicklist = path + '.attributePicklist';
5177
- const referencepath_attributePicklistValidationError = validate$c(obj_attributePicklist, path_attributePicklist);
5177
+ const referencepath_attributePicklistValidationError = validate$d(obj_attributePicklist, path_attributePicklist);
5178
5178
  if (referencepath_attributePicklistValidationError !== null) {
5179
5179
  let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
5180
5180
  message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5353,7 +5353,7 @@ function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5353
5353
  return v_error === undefined ? null : v_error;
5354
5354
  }
5355
5355
 
5356
- function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
5356
+ function validate$b(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
5357
5357
  const v_error = (() => {
5358
5358
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5359
5359
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5367,7 +5367,7 @@ function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
5367
5367
  for (let i = 0; i < obj_attributes.length; i++) {
5368
5368
  const obj_attributes_item = obj_attributes[i];
5369
5369
  const path_attributes_item = path_attributes + '[' + i + ']';
5370
- const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
5370
+ const referencepath_attributes_itemValidationError = validate$c(obj_attributes_item, path_attributes_item);
5371
5371
  if (referencepath_attributes_itemValidationError !== null) {
5372
5372
  let message = 'Object doesn\'t match ConfiguratorAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
5373
5373
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5428,7 +5428,7 @@ function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
5428
5428
  return v_error === undefined ? null : v_error;
5429
5429
  }
5430
5430
 
5431
- function validate$9(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
5431
+ function validate$a(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
5432
5432
  const v_error = (() => {
5433
5433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5434
5434
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5479,7 +5479,7 @@ function validate$9(obj, path = 'ConfiguratorPricingModelOutputRepresentation')
5479
5479
  return v_error === undefined ? null : v_error;
5480
5480
  }
5481
5481
 
5482
- function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5482
+ function validate$9(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5483
5483
  const v_error = (() => {
5484
5484
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5485
5485
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5543,7 +5543,7 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5543
5543
  if (obj.pricingModel !== undefined) {
5544
5544
  const obj_pricingModel = obj.pricingModel;
5545
5545
  const path_pricingModel = path + '.pricingModel';
5546
- const referencepath_pricingModelValidationError = validate$9(obj_pricingModel, path_pricingModel);
5546
+ const referencepath_pricingModelValidationError = validate$a(obj_pricingModel, path_pricingModel);
5547
5547
  if (referencepath_pricingModelValidationError !== null) {
5548
5548
  let message = 'Object doesn\'t match ConfiguratorPricingModelOutputRepresentation (at "' + path_pricingModel + '")\n';
5549
5549
  message += referencepath_pricingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5557,7 +5557,7 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5557
5557
  return v_error === undefined ? null : v_error;
5558
5558
  }
5559
5559
 
5560
- function validate$7(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
5560
+ function validate$8(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
5561
5561
  const v_error = (() => {
5562
5562
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5563
5563
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5573,7 +5573,7 @@ function validate$7(obj, path = 'ConfiguratorProductClassificationOutputRepresen
5573
5573
  return v_error === undefined ? null : v_error;
5574
5574
  }
5575
5575
 
5576
- function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
5576
+ function validate$7(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
5577
5577
  const v_error = (() => {
5578
5578
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5579
5579
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5587,7 +5587,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5587
5587
  for (let i = 0; i < obj_classifications.length; i++) {
5588
5588
  const obj_classifications_item = obj_classifications[i];
5589
5589
  const path_classifications_item = path_classifications + '[' + i + ']';
5590
- const referencepath_classifications_itemValidationError = validate$7(obj_classifications_item, path_classifications_item);
5590
+ const referencepath_classifications_itemValidationError = validate$8(obj_classifications_item, path_classifications_item);
5591
5591
  if (referencepath_classifications_itemValidationError !== null) {
5592
5592
  let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_classifications_item + '")\n';
5593
5593
  message += referencepath_classifications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5611,7 +5611,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5611
5611
  for (let i = 0; i < obj_components.length; i++) {
5612
5612
  const obj_components_item = obj_components[i];
5613
5613
  const path_components_item = path_components + '[' + i + ']';
5614
- const referencepath_components_itemValidationError = validate$1(obj_components_item, path_components_item);
5614
+ const referencepath_components_itemValidationError = validate$2(obj_components_item, path_components_item);
5615
5615
  if (referencepath_components_itemValidationError !== null) {
5616
5616
  let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_components_item + '")\n';
5617
5617
  message += referencepath_components_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5672,7 +5672,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5672
5672
  return v_error === undefined ? null : v_error;
5673
5673
  }
5674
5674
 
5675
- function validate$5(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
5675
+ function validate$6(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
5676
5676
  const v_error = (() => {
5677
5677
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5678
5678
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5788,7 +5788,7 @@ function validate$5(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
5788
5788
  return v_error === undefined ? null : v_error;
5789
5789
  }
5790
5790
 
5791
- function validate$4(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
5791
+ function validate$5(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
5792
5792
  const v_error = (() => {
5793
5793
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5794
5794
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5839,7 +5839,7 @@ function validate$4(obj, path = 'ConfiguratorProductSellingModelOutputRepresenta
5839
5839
  return v_error === undefined ? null : v_error;
5840
5840
  }
5841
5841
 
5842
- function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
5842
+ function validate$4(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
5843
5843
  const v_error = (() => {
5844
5844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5845
5845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5861,7 +5861,7 @@ function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
5861
5861
  if (obj.productSellingModel !== undefined) {
5862
5862
  const obj_productSellingModel = obj.productSellingModel;
5863
5863
  const path_productSellingModel = path + '.productSellingModel';
5864
- const referencepath_productSellingModelValidationError = validate$4(obj_productSellingModel, path_productSellingModel);
5864
+ const referencepath_productSellingModelValidationError = validate$5(obj_productSellingModel, path_productSellingModel);
5865
5865
  if (referencepath_productSellingModelValidationError !== null) {
5866
5866
  let message = 'Object doesn\'t match ConfiguratorProductSellingModelOutputRepresentation (at "' + path_productSellingModel + '")\n';
5867
5867
  message += referencepath_productSellingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5879,7 +5879,7 @@ function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
5879
5879
  return v_error === undefined ? null : v_error;
5880
5880
  }
5881
5881
 
5882
- function validate$2(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
5882
+ function validate$3(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
5883
5883
  const v_error = (() => {
5884
5884
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5885
5885
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5902,7 +5902,7 @@ function validate$2(obj, path = 'ConfiguratorQualificationContextOutputRepresent
5902
5902
  return v_error === undefined ? null : v_error;
5903
5903
  }
5904
5904
 
5905
- function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation') {
5905
+ function validate$2(obj, path = 'ConfiguratorProductCatalogOutputRepresentation') {
5906
5906
  const v_error = (() => {
5907
5907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5908
5908
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5916,7 +5916,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
5916
5916
  for (let i = 0; i < obj_additionalFields.length; i++) {
5917
5917
  const obj_additionalFields_item = obj_additionalFields[i];
5918
5918
  const path_additionalFields_item = path_additionalFields + '[' + i + ']';
5919
- const referencepath_additionalFields_itemValidationError = validate$e(obj_additionalFields_item, path_additionalFields_item);
5919
+ const referencepath_additionalFields_itemValidationError = validate$f(obj_additionalFields_item, path_additionalFields_item);
5920
5920
  if (referencepath_additionalFields_itemValidationError !== null) {
5921
5921
  let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
5922
5922
  message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5933,7 +5933,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
5933
5933
  for (let i = 0; i < obj_attributeCategories.length; i++) {
5934
5934
  const obj_attributeCategories_item = obj_attributeCategories[i];
5935
5935
  const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
5936
- const referencepath_attributeCategories_itemValidationError = validate$a(obj_attributeCategories_item, path_attributeCategories_item);
5936
+ const referencepath_attributeCategories_itemValidationError = validate$b(obj_attributeCategories_item, path_attributeCategories_item);
5937
5937
  if (referencepath_attributeCategories_itemValidationError !== null) {
5938
5938
  let message = 'Object doesn\'t match ConfiguratorAttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
5939
5939
  message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6055,7 +6055,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6055
6055
  for (let i = 0; i < obj_prices.length; i++) {
6056
6056
  const obj_prices_item = obj_prices[i];
6057
6057
  const path_prices_item = path_prices + '[' + i + ']';
6058
- const referencepath_prices_itemValidationError = validate$8(obj_prices_item, path_prices_item);
6058
+ const referencepath_prices_itemValidationError = validate$9(obj_prices_item, path_prices_item);
6059
6059
  if (referencepath_prices_itemValidationError !== null) {
6060
6060
  let message = 'Object doesn\'t match ConfiguratorPriceOutputRepresentation (at "' + path_prices_item + '")\n';
6061
6061
  message += referencepath_prices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6066,7 +6066,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6066
6066
  if (obj.productClassification !== undefined) {
6067
6067
  const obj_productClassification = obj.productClassification;
6068
6068
  const path_productClassification = path + '.productClassification';
6069
- const referencepath_productClassificationValidationError = validate$7(obj_productClassification, path_productClassification);
6069
+ const referencepath_productClassificationValidationError = validate$8(obj_productClassification, path_productClassification);
6070
6070
  if (referencepath_productClassificationValidationError !== null) {
6071
6071
  let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_productClassification + '")\n';
6072
6072
  message += referencepath_productClassificationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6089,7 +6089,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6089
6089
  for (let i = 0; i < obj_productComponentGroups.length; i++) {
6090
6090
  const obj_productComponentGroups_item = obj_productComponentGroups[i];
6091
6091
  const path_productComponentGroups_item = path_productComponentGroups + '[' + i + ']';
6092
- const referencepath_productComponentGroups_itemValidationError = validate$6(obj_productComponentGroups_item, path_productComponentGroups_item);
6092
+ const referencepath_productComponentGroups_itemValidationError = validate$7(obj_productComponentGroups_item, path_productComponentGroups_item);
6093
6093
  if (referencepath_productComponentGroups_itemValidationError !== null) {
6094
6094
  let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_productComponentGroups_item + '")\n';
6095
6095
  message += referencepath_productComponentGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6100,7 +6100,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6100
6100
  if (obj.productRelatedComponent !== undefined) {
6101
6101
  const obj_productRelatedComponent = obj.productRelatedComponent;
6102
6102
  const path_productRelatedComponent = path + '.productRelatedComponent';
6103
- const referencepath_productRelatedComponentValidationError = validate$5(obj_productRelatedComponent, path_productRelatedComponent);
6103
+ const referencepath_productRelatedComponentValidationError = validate$6(obj_productRelatedComponent, path_productRelatedComponent);
6104
6104
  if (referencepath_productRelatedComponentValidationError !== null) {
6105
6105
  let message = 'Object doesn\'t match ConfiguratorProductRelatedComponentOutputRepresentation (at "' + path_productRelatedComponent + '")\n';
6106
6106
  message += referencepath_productRelatedComponentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6116,7 +6116,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6116
6116
  for (let i = 0; i < obj_productSellingModelOptions.length; i++) {
6117
6117
  const obj_productSellingModelOptions_item = obj_productSellingModelOptions[i];
6118
6118
  const path_productSellingModelOptions_item = path_productSellingModelOptions + '[' + i + ']';
6119
- const referencepath_productSellingModelOptions_itemValidationError = validate$3(obj_productSellingModelOptions_item, path_productSellingModelOptions_item);
6119
+ const referencepath_productSellingModelOptions_itemValidationError = validate$4(obj_productSellingModelOptions_item, path_productSellingModelOptions_item);
6120
6120
  if (referencepath_productSellingModelOptions_itemValidationError !== null) {
6121
6121
  let message = 'Object doesn\'t match ConfiguratorProductSellingModelOptionOutputRepresentation (at "' + path_productSellingModelOptions_item + '")\n';
6122
6122
  message += referencepath_productSellingModelOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6134,7 +6134,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6134
6134
  if (obj.qualificationContext !== undefined) {
6135
6135
  const obj_qualificationContext = obj.qualificationContext;
6136
6136
  const path_qualificationContext = path + '.qualificationContext';
6137
- const referencepath_qualificationContextValidationError = validate$2(obj_qualificationContext, path_qualificationContext);
6137
+ const referencepath_qualificationContextValidationError = validate$3(obj_qualificationContext, path_qualificationContext);
6138
6138
  if (referencepath_qualificationContextValidationError !== null) {
6139
6139
  let message = 'Object doesn\'t match ConfiguratorQualificationContextOutputRepresentation (at "' + path_qualificationContext + '")\n';
6140
6140
  message += referencepath_qualificationContextValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6152,9 +6152,9 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6152
6152
  return v_error === undefined ? null : v_error;
6153
6153
  }
6154
6154
 
6155
- const TTL = 1000;
6156
- const VERSION = "a9e74c89f83dab5ce88d601ec57daa71";
6157
- function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6155
+ const TTL$1 = 1000;
6156
+ const VERSION$1 = "a9e74c89f83dab5ce88d601ec57daa71";
6157
+ function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
6158
6158
  const v_error = (() => {
6159
6159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6160
6160
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6168,7 +6168,7 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6168
6168
  for (let i = 0; i < obj_catalogProducts.length; i++) {
6169
6169
  const obj_catalogProducts_item = obj_catalogProducts[i];
6170
6170
  const path_catalogProducts_item = path_catalogProducts + '[' + i + ']';
6171
- const referencepath_catalogProducts_itemValidationError = validate$1(obj_catalogProducts_item, path_catalogProducts_item);
6171
+ const referencepath_catalogProducts_itemValidationError = validate$2(obj_catalogProducts_item, path_catalogProducts_item);
6172
6172
  if (referencepath_catalogProducts_itemValidationError !== null) {
6173
6173
  let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_catalogProducts_item + '")\n';
6174
6174
  message += referencepath_catalogProducts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6240,20 +6240,199 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6240
6240
  })();
6241
6241
  return v_error === undefined ? null : v_error;
6242
6242
  }
6243
- const RepresentationType = 'ConfiguratorOutputRepresentation';
6243
+ const RepresentationType$1 = 'ConfiguratorOutputRepresentation';
6244
+ function keyBuilder$1(luvio, config) {
6245
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.contextId;
6246
+ }
6247
+ function keyBuilderFromType$1(luvio, object) {
6248
+ const keyParams = {
6249
+ contextId: object.transactionContextId
6250
+ };
6251
+ return keyBuilder$1(luvio, keyParams);
6252
+ }
6253
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
6254
+ return input;
6255
+ }
6256
+ const select$4 = function ConfiguratorOutputRepresentationSelect() {
6257
+ return {
6258
+ kind: 'Fragment',
6259
+ version: VERSION$1,
6260
+ private: [],
6261
+ opaque: true
6262
+ };
6263
+ };
6264
+ function equals$1(existing, incoming) {
6265
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
6266
+ return false;
6267
+ }
6268
+ return true;
6269
+ }
6270
+ const ingest$1 = function ConfiguratorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6271
+ if (process.env.NODE_ENV !== 'production') {
6272
+ const validateError = validate$1(input);
6273
+ if (validateError !== null) {
6274
+ throw validateError;
6275
+ }
6276
+ }
6277
+ const key = keyBuilderFromType$1(luvio, input);
6278
+ const ttlToUse = TTL$1;
6279
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "cpq", VERSION$1, RepresentationType$1, equals$1);
6280
+ return createLink(key);
6281
+ };
6282
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
6283
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6284
+ const rootKey = keyBuilderFromType$1(luvio, input);
6285
+ rootKeySet.set(rootKey, {
6286
+ namespace: keyPrefix,
6287
+ representationName: RepresentationType$1,
6288
+ mergeable: false
6289
+ });
6290
+ }
6291
+
6292
+ function select$3(luvio, params) {
6293
+ return select$4();
6294
+ }
6295
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
6296
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
6297
+ }
6298
+ function ingestSuccess$2(luvio, resourceParams, response) {
6299
+ const { body } = response;
6300
+ const key = keyBuilderFromType$1(luvio, body);
6301
+ luvio.storeIngest(key, ingest$1, body);
6302
+ const snapshot = luvio.storeLookup({
6303
+ recordId: key,
6304
+ node: select$3(),
6305
+ variables: {},
6306
+ });
6307
+ if (process.env.NODE_ENV !== 'production') {
6308
+ if (snapshot.state !== 'Fulfilled') {
6309
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6310
+ }
6311
+ }
6312
+ deepFreeze(snapshot.data);
6313
+ return snapshot;
6314
+ }
6315
+ function createResourceRequest$2(config) {
6316
+ const headers = {};
6317
+ return {
6318
+ baseUri: '/services/data/v61.0',
6319
+ basePath: '/connect/cpq/configurator/actions/configure',
6320
+ method: 'post',
6321
+ body: config.body,
6322
+ urlParams: {},
6323
+ queryParams: {},
6324
+ headers,
6325
+ priority: 'normal',
6326
+ };
6327
+ }
6328
+
6329
+ const adapterName$2 = 'configure';
6330
+ const configure_ConfigPropertyMetadata = [
6331
+ generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
6332
+ ];
6333
+ const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, configure_ConfigPropertyMetadata);
6334
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(configure_ConfigPropertyMetadata);
6335
+ function typeCheckConfig$2(untrustedConfig) {
6336
+ const config = {};
6337
+ const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
6338
+ const referenceConfiguratorInputRepresentationValidationError = validate$g(untrustedConfig_configuratorInput);
6339
+ if (referenceConfiguratorInputRepresentationValidationError === null) {
6340
+ config.configuratorInput = untrustedConfig_configuratorInput;
6341
+ }
6342
+ return config;
6343
+ }
6344
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
6345
+ if (!untrustedIsObject(untrustedConfig)) {
6346
+ return null;
6347
+ }
6348
+ if (process.env.NODE_ENV !== 'production') {
6349
+ validateConfig(untrustedConfig, configPropertyNames);
6350
+ }
6351
+ const config = typeCheckConfig$2(untrustedConfig);
6352
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6353
+ return null;
6354
+ }
6355
+ return config;
6356
+ }
6357
+ function buildNetworkSnapshot$2(luvio, config, options) {
6358
+ const resourceParams = createResourceParams$2(config);
6359
+ const request = createResourceRequest$2(resourceParams);
6360
+ return luvio.dispatchResourceRequest(request, options)
6361
+ .then((response) => {
6362
+ return luvio.handleSuccessResponse(() => {
6363
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
6364
+ return luvio.storeBroadcast().then(() => snapshot);
6365
+ }, () => {
6366
+ const cache = new StoreKeyMap();
6367
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
6368
+ return cache;
6369
+ });
6370
+ }, (response) => {
6371
+ deepFreeze(response);
6372
+ throw response;
6373
+ });
6374
+ }
6375
+ const configureAdapterFactory = (luvio) => {
6376
+ return function configure(untrustedConfig) {
6377
+ const config = validateAdapterConfig$2(untrustedConfig, configure_ConfigPropertyNames);
6378
+ // Invalid or incomplete config
6379
+ if (config === null) {
6380
+ throw new Error('Invalid config for "configure"');
6381
+ }
6382
+ return buildNetworkSnapshot$2(luvio, config);
6383
+ };
6384
+ };
6385
+
6386
+ const TTL = 60000;
6387
+ const VERSION = "58609222da9b23820be663483875555c";
6388
+ function validate(obj, path = 'ConfiguratorRuleOutputRepresentation') {
6389
+ const v_error = (() => {
6390
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6391
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6392
+ }
6393
+ if (obj.message !== undefined) {
6394
+ const obj_message = obj.message;
6395
+ const path_message = path + '.message';
6396
+ if (typeof obj_message !== 'string') {
6397
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
6398
+ }
6399
+ }
6400
+ const obj_productConfigurationRuleId = obj.productConfigurationRuleId;
6401
+ const path_productConfigurationRuleId = path + '.productConfigurationRuleId';
6402
+ if (typeof obj_productConfigurationRuleId !== 'string') {
6403
+ return new TypeError('Expected "string" but received "' + typeof obj_productConfigurationRuleId + '" (at "' + path_productConfigurationRuleId + '")');
6404
+ }
6405
+ if (obj.ruleId !== undefined) {
6406
+ const obj_ruleId = obj.ruleId;
6407
+ const path_ruleId = path + '.ruleId';
6408
+ if (typeof obj_ruleId !== 'string') {
6409
+ return new TypeError('Expected "string" but received "' + typeof obj_ruleId + '" (at "' + path_ruleId + '")');
6410
+ }
6411
+ }
6412
+ if (obj.success !== undefined) {
6413
+ const obj_success = obj.success;
6414
+ const path_success = path + '.success';
6415
+ if (typeof obj_success !== 'boolean') {
6416
+ return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
6417
+ }
6418
+ }
6419
+ })();
6420
+ return v_error === undefined ? null : v_error;
6421
+ }
6422
+ const RepresentationType = 'ConfiguratorRuleOutputRepresentation';
6244
6423
  function keyBuilder(luvio, config) {
6245
- return keyPrefix + '::' + RepresentationType + ':' + config.contextId;
6424
+ return keyPrefix + '::' + RepresentationType + ':' + config.productConfigurationRuleId;
6246
6425
  }
6247
6426
  function keyBuilderFromType(luvio, object) {
6248
6427
  const keyParams = {
6249
- contextId: object.transactionContextId
6428
+ productConfigurationRuleId: object.productConfigurationRuleId
6250
6429
  };
6251
6430
  return keyBuilder(luvio, keyParams);
6252
6431
  }
6253
6432
  function normalize(input, existing, path, luvio, store, timestamp) {
6254
6433
  return input;
6255
6434
  }
6256
- const select$1 = function ConfiguratorOutputRepresentationSelect() {
6435
+ const select$2 = function ConfiguratorRuleOutputRepresentationSelect() {
6257
6436
  return {
6258
6437
  kind: 'Fragment',
6259
6438
  version: VERSION,
@@ -6267,7 +6446,7 @@ function equals(existing, incoming) {
6267
6446
  }
6268
6447
  return true;
6269
6448
  }
6270
- const ingest = function ConfiguratorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6449
+ const ingest = function ConfiguratorRuleOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6271
6450
  if (process.env.NODE_ENV !== 'production') {
6272
6451
  const validateError = validate(input);
6273
6452
  if (validateError !== null) {
@@ -6289,8 +6468,126 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
6289
6468
  });
6290
6469
  }
6291
6470
 
6471
+ function select$1(luvio, params) {
6472
+ return select$2();
6473
+ }
6474
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
6475
+ getTypeCacheKeys(storeKeyMap, luvio, response);
6476
+ }
6477
+ function ingestSuccess$1(luvio, resourceParams, response) {
6478
+ const { body } = response;
6479
+ const key = keyBuilderFromType(luvio, body);
6480
+ luvio.storeIngest(key, ingest, body);
6481
+ const snapshot = luvio.storeLookup({
6482
+ recordId: key,
6483
+ node: select$1(),
6484
+ variables: {},
6485
+ });
6486
+ if (process.env.NODE_ENV !== 'production') {
6487
+ if (snapshot.state !== 'Fulfilled') {
6488
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6489
+ }
6490
+ }
6491
+ deepFreeze(snapshot.data);
6492
+ return snapshot;
6493
+ }
6494
+ function createResourceRequest$1(config) {
6495
+ const headers = {};
6496
+ return {
6497
+ baseUri: '/services/data/v61.0',
6498
+ basePath: '/connect/cpq/configurator/actions/create-rule',
6499
+ method: 'post',
6500
+ body: config.body,
6501
+ urlParams: {},
6502
+ queryParams: {},
6503
+ headers,
6504
+ priority: 'normal',
6505
+ };
6506
+ }
6507
+
6508
+ const adapterName$1 = 'createRule';
6509
+ const createRule_ConfigPropertyMetadata = [
6510
+ generateParamConfigMetadata('actions', true, 2 /* Body */, 4 /* Unsupported */, true),
6511
+ generateParamConfigMetadata('criteria', true, 2 /* Body */, 4 /* Unsupported */, true),
6512
+ generateParamConfigMetadata('criteriaExpression', false, 2 /* Body */, 0 /* String */),
6513
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
6514
+ generateParamConfigMetadata('endDate', false, 2 /* Body */, 0 /* String */),
6515
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
6516
+ generateParamConfigMetadata('scope', false, 2 /* Body */, 0 /* String */),
6517
+ generateParamConfigMetadata('sequence', false, 2 /* Body */, 3 /* Integer */),
6518
+ generateParamConfigMetadata('startDate', false, 2 /* Body */, 0 /* String */),
6519
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
6520
+ generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 0 /* String */),
6521
+ ];
6522
+ const createRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createRule_ConfigPropertyMetadata);
6523
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(createRule_ConfigPropertyMetadata);
6524
+ function typeCheckConfig$1(untrustedConfig) {
6525
+ const config = {};
6526
+ typeCheckConfig$d(untrustedConfig, config, createRule_ConfigPropertyMetadata);
6527
+ const untrustedConfig_actions = untrustedConfig.actions;
6528
+ if (ArrayIsArray$1(untrustedConfig_actions)) {
6529
+ const untrustedConfig_actions_array = [];
6530
+ for (let i = 0, arrayLength = untrustedConfig_actions.length; i < arrayLength; i++) {
6531
+ const untrustedConfig_actions_item = untrustedConfig_actions[i];
6532
+ untrustedConfig_actions_array.push(untrustedConfig_actions_item);
6533
+ }
6534
+ config.actions = untrustedConfig_actions_array;
6535
+ }
6536
+ const untrustedConfig_criteria = untrustedConfig.criteria;
6537
+ if (ArrayIsArray$1(untrustedConfig_criteria)) {
6538
+ const untrustedConfig_criteria_array = [];
6539
+ for (let i = 0, arrayLength = untrustedConfig_criteria.length; i < arrayLength; i++) {
6540
+ const untrustedConfig_criteria_item = untrustedConfig_criteria[i];
6541
+ untrustedConfig_criteria_array.push(untrustedConfig_criteria_item);
6542
+ }
6543
+ config.criteria = untrustedConfig_criteria_array;
6544
+ }
6545
+ return config;
6546
+ }
6547
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
6548
+ if (!untrustedIsObject(untrustedConfig)) {
6549
+ return null;
6550
+ }
6551
+ if (process.env.NODE_ENV !== 'production') {
6552
+ validateConfig(untrustedConfig, configPropertyNames);
6553
+ }
6554
+ const config = typeCheckConfig$1(untrustedConfig);
6555
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6556
+ return null;
6557
+ }
6558
+ return config;
6559
+ }
6560
+ function buildNetworkSnapshot$1(luvio, config, options) {
6561
+ const resourceParams = createResourceParams$1(config);
6562
+ const request = createResourceRequest$1(resourceParams);
6563
+ return luvio.dispatchResourceRequest(request, options)
6564
+ .then((response) => {
6565
+ return luvio.handleSuccessResponse(() => {
6566
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
6567
+ return luvio.storeBroadcast().then(() => snapshot);
6568
+ }, () => {
6569
+ const cache = new StoreKeyMap();
6570
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
6571
+ return cache;
6572
+ });
6573
+ }, (response) => {
6574
+ deepFreeze(response);
6575
+ throw response;
6576
+ });
6577
+ }
6578
+ const createRuleAdapterFactory = (luvio) => {
6579
+ return function createRule(untrustedConfig) {
6580
+ const config = validateAdapterConfig$1(untrustedConfig, createRule_ConfigPropertyNames);
6581
+ // Invalid or incomplete config
6582
+ if (config === null) {
6583
+ throw new Error('Invalid config for "createRule"');
6584
+ }
6585
+ return buildNetworkSnapshot$1(luvio, config);
6586
+ };
6587
+ };
6588
+
6292
6589
  function select(luvio, params) {
6293
- return select$1();
6590
+ return select$2();
6294
6591
  }
6295
6592
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
6296
6593
  getTypeCacheKeys(storeKeyMap, luvio, response);
@@ -6316,7 +6613,7 @@ function createResourceRequest(config) {
6316
6613
  const headers = {};
6317
6614
  return {
6318
6615
  baseUri: '/services/data/v61.0',
6319
- basePath: '/connect/cpq/configurator/actions/configure',
6616
+ basePath: '/connect/cpq/configurator/actions/update-rule',
6320
6617
  method: 'post',
6321
6618
  body: config.body,
6322
6619
  urlParams: {},
@@ -6326,18 +6623,42 @@ function createResourceRequest(config) {
6326
6623
  };
6327
6624
  }
6328
6625
 
6329
- const adapterName = 'configure';
6330
- const configure_ConfigPropertyMetadata = [
6331
- generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
6626
+ const adapterName = 'updateRule';
6627
+ const updateRule_ConfigPropertyMetadata = [
6628
+ generateParamConfigMetadata('actions', true, 2 /* Body */, 4 /* Unsupported */, true),
6629
+ generateParamConfigMetadata('criteria', true, 2 /* Body */, 4 /* Unsupported */, true),
6630
+ generateParamConfigMetadata('criteriaExpression', false, 2 /* Body */, 0 /* String */),
6631
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
6632
+ generateParamConfigMetadata('endDate', false, 2 /* Body */, 0 /* String */),
6633
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
6634
+ generateParamConfigMetadata('scope', false, 2 /* Body */, 0 /* String */),
6635
+ generateParamConfigMetadata('sequence', false, 2 /* Body */, 3 /* Integer */),
6636
+ generateParamConfigMetadata('startDate', false, 2 /* Body */, 0 /* String */),
6637
+ generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
6638
+ generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 0 /* String */),
6332
6639
  ];
6333
- const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, configure_ConfigPropertyMetadata);
6334
- const createResourceParams = /*#__PURE__*/ createResourceParams$b(configure_ConfigPropertyMetadata);
6640
+ const updateRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateRule_ConfigPropertyMetadata);
6641
+ const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateRule_ConfigPropertyMetadata);
6335
6642
  function typeCheckConfig(untrustedConfig) {
6336
6643
  const config = {};
6337
- const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
6338
- const referenceConfiguratorInputRepresentationValidationError = validate$f(untrustedConfig_configuratorInput);
6339
- if (referenceConfiguratorInputRepresentationValidationError === null) {
6340
- config.configuratorInput = untrustedConfig_configuratorInput;
6644
+ typeCheckConfig$d(untrustedConfig, config, updateRule_ConfigPropertyMetadata);
6645
+ const untrustedConfig_actions = untrustedConfig.actions;
6646
+ if (ArrayIsArray$1(untrustedConfig_actions)) {
6647
+ const untrustedConfig_actions_array = [];
6648
+ for (let i = 0, arrayLength = untrustedConfig_actions.length; i < arrayLength; i++) {
6649
+ const untrustedConfig_actions_item = untrustedConfig_actions[i];
6650
+ untrustedConfig_actions_array.push(untrustedConfig_actions_item);
6651
+ }
6652
+ config.actions = untrustedConfig_actions_array;
6653
+ }
6654
+ const untrustedConfig_criteria = untrustedConfig.criteria;
6655
+ if (ArrayIsArray$1(untrustedConfig_criteria)) {
6656
+ const untrustedConfig_criteria_array = [];
6657
+ for (let i = 0, arrayLength = untrustedConfig_criteria.length; i < arrayLength; i++) {
6658
+ const untrustedConfig_criteria_item = untrustedConfig_criteria[i];
6659
+ untrustedConfig_criteria_array.push(untrustedConfig_criteria_item);
6660
+ }
6661
+ config.criteria = untrustedConfig_criteria_array;
6341
6662
  }
6342
6663
  return config;
6343
6664
  }
@@ -6372,15 +6693,15 @@ function buildNetworkSnapshot(luvio, config, options) {
6372
6693
  throw response;
6373
6694
  });
6374
6695
  }
6375
- const configureAdapterFactory = (luvio) => {
6376
- return function configure(untrustedConfig) {
6377
- const config = validateAdapterConfig(untrustedConfig, configure_ConfigPropertyNames);
6696
+ const updateRuleAdapterFactory = (luvio) => {
6697
+ return function updateRule(untrustedConfig) {
6698
+ const config = validateAdapterConfig(untrustedConfig, updateRule_ConfigPropertyNames);
6378
6699
  // Invalid or incomplete config
6379
6700
  if (config === null) {
6380
- throw new Error('Invalid config for "configure"');
6701
+ throw new Error('Invalid config for "updateRule"');
6381
6702
  }
6382
6703
  return buildNetworkSnapshot(luvio, config);
6383
6704
  };
6384
6705
  };
6385
6706
 
6386
- export { configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, getCartAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory };
6707
+ export { configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, createRuleAdapterFactory, getCartAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory, updateRuleAdapterFactory };