@salesforce/lds-adapters-industries-cpq 1.280.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 (23) hide show
  1. package/dist/es/es2018/industries-cpq.js +920 -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/ConfiguratorOutputRepresentation.d.ts +4 -1
  11. package/dist/es/es2018/types/src/generated/types/ConfiguratorPriceOutputRepresentation.d.ts +4 -1
  12. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleInputRepresentation.d.ts +58 -0
  13. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleOutputRepresentation.d.ts +47 -0
  14. package/dist/es/es2018/types/src/generated/types/ProductAttributeOutputRepresentation.d.ts +4 -1
  15. package/dist/es/es2018/types/src/generated/types/ResourceValueCollectionInputRepresentation.d.ts +28 -0
  16. package/dist/es/es2018/types/src/generated/types/RuleActionCollectionInputRepresentation.d.ts +28 -0
  17. package/dist/es/es2018/types/src/generated/types/RuleActionInputRepresentation.d.ts +61 -0
  18. package/dist/es/es2018/types/src/generated/types/RuleCriteriaCollectionInputRepresentation.d.ts +28 -0
  19. package/dist/es/es2018/types/src/generated/types/RuleCriteriaInputRepresentation.d.ts +49 -0
  20. package/package.json +7 -5
  21. package/sfdc/index.js +740 -374
  22. package/src/raml/api.raml +405 -14
  23. 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 = "2c33aa6ac6bc77bf88ac3e6acc944750";
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');
@@ -1960,6 +1960,13 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1960
1960
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1961
1961
  }
1962
1962
  }
1963
+ if (obj.developerName !== undefined) {
1964
+ const obj_developerName = obj.developerName;
1965
+ const path_developerName = path + '.developerName';
1966
+ if (typeof obj_developerName !== 'string') {
1967
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1968
+ }
1969
+ }
1963
1970
  if (obj.displayType !== undefined) {
1964
1971
  const obj_displayType = obj.displayType;
1965
1972
  const path_displayType = path + '.displayType';
@@ -2096,11 +2103,11 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
2096
2103
  })();
2097
2104
  return v_error === undefined ? null : v_error;
2098
2105
  }
2099
- const select$g = function ProductAttributeOutputRepresentationSelect() {
2100
- 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();
2101
2108
  return {
2102
2109
  kind: 'Fragment',
2103
- version: VERSION$a,
2110
+ version: VERSION$b,
2104
2111
  private: [],
2105
2112
  selections: [
2106
2113
  {
@@ -2144,6 +2151,11 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2144
2151
  kind: 'Scalar',
2145
2152
  required: false
2146
2153
  },
2154
+ {
2155
+ name: 'developerName',
2156
+ kind: 'Scalar',
2157
+ required: false
2158
+ },
2147
2159
  {
2148
2160
  name: 'displayType',
2149
2161
  kind: 'Scalar',
@@ -2242,7 +2254,7 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2242
2254
  ]
2243
2255
  };
2244
2256
  };
2245
- function equals$a(existing, incoming) {
2257
+ function equals$b(existing, incoming) {
2246
2258
  const existing_hidden = existing.hidden;
2247
2259
  const incoming_hidden = incoming.hidden;
2248
2260
  // if at least one of these optionals is defined
@@ -2438,6 +2450,19 @@ function equals$a(existing, incoming) {
2438
2450
  return false;
2439
2451
  }
2440
2452
  }
2453
+ const existing_developerName = existing.developerName;
2454
+ const incoming_developerName = incoming.developerName;
2455
+ // if at least one of these optionals is defined
2456
+ if (existing_developerName !== undefined || incoming_developerName !== undefined) {
2457
+ // if one of these is not defined we know the other is defined and therefore
2458
+ // not equal
2459
+ if (existing_developerName === undefined || incoming_developerName === undefined) {
2460
+ return false;
2461
+ }
2462
+ if (!(existing_developerName === incoming_developerName)) {
2463
+ return false;
2464
+ }
2465
+ }
2441
2466
  const existing_displayType = existing.displayType;
2442
2467
  const incoming_displayType = incoming.displayType;
2443
2468
  // if at least one of these optionals is defined
@@ -2590,15 +2615,15 @@ function equals$a(existing, incoming) {
2590
2615
  if (existing_attributePickList === undefined || incoming_attributePickList === undefined) {
2591
2616
  return false;
2592
2617
  }
2593
- if (!(equals$b(existing_attributePickList, incoming_attributePickList))) {
2618
+ if (!(equals$c(existing_attributePickList, incoming_attributePickList))) {
2594
2619
  return false;
2595
2620
  }
2596
2621
  }
2597
2622
  return true;
2598
2623
  }
2599
2624
 
2600
- const VERSION$9 = "63ca2614b6879bfb4df068438d7e78ec";
2601
- function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2625
+ const VERSION$a = "63ca2614b6879bfb4df068438d7e78ec";
2626
+ function validate$z(obj, path = 'AttributeCategoryOutputRepresentation') {
2602
2627
  const v_error = (() => {
2603
2628
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2604
2629
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2640,7 +2665,7 @@ function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2640
2665
  for (let i = 0; i < obj_records.length; i++) {
2641
2666
  const obj_records_item = obj_records[i];
2642
2667
  const path_records_item = path_records + '[' + i + ']';
2643
- 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);
2644
2669
  if (referencepath_records_itemValidationError !== null) {
2645
2670
  let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_records_item + '")\n';
2646
2671
  message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2672,11 +2697,11 @@ function validate$y(obj, path = 'AttributeCategoryOutputRepresentation') {
2672
2697
  })();
2673
2698
  return v_error === undefined ? null : v_error;
2674
2699
  }
2675
- const select$f = function AttributeCategoryOutputRepresentationSelect() {
2676
- 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();
2677
2702
  return {
2678
2703
  kind: 'Fragment',
2679
- version: VERSION$9,
2704
+ version: VERSION$a,
2680
2705
  private: [],
2681
2706
  selections: [
2682
2707
  {
@@ -2724,7 +2749,7 @@ const select$f = function AttributeCategoryOutputRepresentationSelect() {
2724
2749
  ]
2725
2750
  };
2726
2751
  };
2727
- function equals$9(existing, incoming) {
2752
+ function equals$a(existing, incoming) {
2728
2753
  const existing_totalSize = existing.totalSize;
2729
2754
  const incoming_totalSize = incoming.totalSize;
2730
2755
  // if at least one of these optionals is defined
@@ -2826,7 +2851,7 @@ function equals$9(existing, incoming) {
2826
2851
  return false;
2827
2852
  }
2828
2853
  const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
2829
- if (!(equals$a(existing_records_item, incoming_records_item))) {
2854
+ if (!(equals$b(existing_records_item, incoming_records_item))) {
2830
2855
  return false;
2831
2856
  }
2832
2857
  });
@@ -2837,8 +2862,8 @@ function equals$9(existing, incoming) {
2837
2862
  return true;
2838
2863
  }
2839
2864
 
2840
- const VERSION$8 = "a59ef129f333de8bbfe140f39144b415";
2841
- function validate$x(obj, path = 'CartItemOutputRepresentation') {
2865
+ const VERSION$9 = "a59ef129f333de8bbfe140f39144b415";
2866
+ function validate$y(obj, path = 'CartItemOutputRepresentation') {
2842
2867
  const v_error = (() => {
2843
2868
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2844
2869
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2852,7 +2877,7 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2852
2877
  for (let i = 0; i < obj_attributeCategories.length; i++) {
2853
2878
  const obj_attributeCategories_item = obj_attributeCategories[i];
2854
2879
  const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
2855
- 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);
2856
2881
  if (referencepath_attributeCategories_itemValidationError !== null) {
2857
2882
  let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
2858
2883
  message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2869,7 +2894,7 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2869
2894
  for (let i = 0; i < obj_attributes.length; i++) {
2870
2895
  const obj_attributes_item = obj_attributes[i];
2871
2896
  const path_attributes_item = path_attributes + '[' + i + ']';
2872
- 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);
2873
2898
  if (referencepath_attributes_itemValidationError !== null) {
2874
2899
  let message = 'Object doesn\'t match ProductAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
2875
2900
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2931,12 +2956,12 @@ function validate$x(obj, path = 'CartItemOutputRepresentation') {
2931
2956
  })();
2932
2957
  return v_error === undefined ? null : v_error;
2933
2958
  }
2934
- const select$e = function CartItemOutputRepresentationSelect() {
2935
- const { selections: AttributeCategoryOutputRepresentation__selections, opaque: AttributeCategoryOutputRepresentation__opaque, } = select$f();
2936
- 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();
2937
2962
  return {
2938
2963
  kind: 'Fragment',
2939
- version: VERSION$8,
2964
+ version: VERSION$9,
2940
2965
  private: [],
2941
2966
  selections: [
2942
2967
  {
@@ -3001,7 +3026,7 @@ const select$e = function CartItemOutputRepresentationSelect() {
3001
3026
  ]
3002
3027
  };
3003
3028
  };
3004
- function equals$8(existing, incoming) {
3029
+ function equals$9(existing, incoming) {
3005
3030
  const existing_cartItemId = existing.cartItemId;
3006
3031
  const incoming_cartItemId = incoming.cartItemId;
3007
3032
  // if at least one of these optionals is defined
@@ -3129,7 +3154,7 @@ function equals$8(existing, incoming) {
3129
3154
  return false;
3130
3155
  }
3131
3156
  const equals_attributeCategories_items = equalsArray(existing_attributeCategories, incoming_attributeCategories, (existing_attributeCategories_item, incoming_attributeCategories_item) => {
3132
- if (!(equals$9(existing_attributeCategories_item, incoming_attributeCategories_item))) {
3157
+ if (!(equals$a(existing_attributeCategories_item, incoming_attributeCategories_item))) {
3133
3158
  return false;
3134
3159
  }
3135
3160
  });
@@ -3147,7 +3172,7 @@ function equals$8(existing, incoming) {
3147
3172
  return false;
3148
3173
  }
3149
3174
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3150
- if (!(equals$a(existing_attributes_item, incoming_attributes_item))) {
3175
+ if (!(equals$b(existing_attributes_item, incoming_attributes_item))) {
3151
3176
  return false;
3152
3177
  }
3153
3178
  });
@@ -3158,8 +3183,8 @@ function equals$8(existing, incoming) {
3158
3183
  return true;
3159
3184
  }
3160
3185
 
3161
- const VERSION$7 = "dbbe0e43dcf8f1d5334798bb12acca37";
3162
- function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3186
+ const VERSION$8 = "dbbe0e43dcf8f1d5334798bb12acca37";
3187
+ function validate$x(obj, path = 'CartItemsOutputRepresentation') {
3163
3188
  const v_error = (() => {
3164
3189
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3165
3190
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3173,7 +3198,7 @@ function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3173
3198
  for (let i = 0; i < obj_records.length; i++) {
3174
3199
  const obj_records_item = obj_records[i];
3175
3200
  const path_records_item = path_records + '[' + i + ']';
3176
- 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);
3177
3202
  if (referencepath_records_itemValidationError !== null) {
3178
3203
  let message = 'Object doesn\'t match CartItemOutputRepresentation (at "' + path_records_item + '")\n';
3179
3204
  message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3191,11 +3216,11 @@ function validate$w(obj, path = 'CartItemsOutputRepresentation') {
3191
3216
  })();
3192
3217
  return v_error === undefined ? null : v_error;
3193
3218
  }
3194
- const select$d = function CartItemsOutputRepresentationSelect() {
3195
- 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();
3196
3221
  return {
3197
3222
  kind: 'Fragment',
3198
- version: VERSION$7,
3223
+ version: VERSION$8,
3199
3224
  private: [],
3200
3225
  selections: [
3201
3226
  {
@@ -3213,7 +3238,7 @@ const select$d = function CartItemsOutputRepresentationSelect() {
3213
3238
  ]
3214
3239
  };
3215
3240
  };
3216
- function equals$7(existing, incoming) {
3241
+ function equals$8(existing, incoming) {
3217
3242
  const existing_totalSize = existing.totalSize;
3218
3243
  const incoming_totalSize = incoming.totalSize;
3219
3244
  // if at least one of these optionals is defined
@@ -3237,7 +3262,7 @@ function equals$7(existing, incoming) {
3237
3262
  return false;
3238
3263
  }
3239
3264
  const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
3240
- if (!(equals$8(existing_records_item, incoming_records_item))) {
3265
+ if (!(equals$9(existing_records_item, incoming_records_item))) {
3241
3266
  return false;
3242
3267
  }
3243
3268
  });
@@ -3248,8 +3273,8 @@ function equals$7(existing, incoming) {
3248
3273
  return true;
3249
3274
  }
3250
3275
 
3251
- const VERSION$6 = "ce1e52694d8508b2f5239ba28287dc1e";
3252
- function validate$v(obj, path = 'PricingTotalOutputRepresentation') {
3276
+ const VERSION$7 = "ce1e52694d8508b2f5239ba28287dc1e";
3277
+ function validate$w(obj, path = 'PricingTotalOutputRepresentation') {
3253
3278
  const v_error = (() => {
3254
3279
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3255
3280
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3281,10 +3306,10 @@ function validate$v(obj, path = 'PricingTotalOutputRepresentation') {
3281
3306
  })();
3282
3307
  return v_error === undefined ? null : v_error;
3283
3308
  }
3284
- const select$c = function PricingTotalOutputRepresentationSelect() {
3309
+ const select$f = function PricingTotalOutputRepresentationSelect() {
3285
3310
  return {
3286
3311
  kind: 'Fragment',
3287
- version: VERSION$6,
3312
+ version: VERSION$7,
3288
3313
  private: [],
3289
3314
  selections: [
3290
3315
  {
@@ -3310,7 +3335,7 @@ const select$c = function PricingTotalOutputRepresentationSelect() {
3310
3335
  ]
3311
3336
  };
3312
3337
  };
3313
- function equals$6(existing, incoming) {
3338
+ function equals$7(existing, incoming) {
3314
3339
  const existing_occurrence = existing.occurrence;
3315
3340
  const incoming_occurrence = incoming.occurrence;
3316
3341
  // if at least one of these optionals is defined
@@ -3366,15 +3391,15 @@ function equals$6(existing, incoming) {
3366
3391
  return true;
3367
3392
  }
3368
3393
 
3369
- const VERSION$5 = "db83704358e5d7a3f3f3622cdd0a5114";
3370
- function validate$u(obj, path = 'GetCartOutputRepresentation') {
3394
+ const VERSION$6 = "db83704358e5d7a3f3f3622cdd0a5114";
3395
+ function validate$v(obj, path = 'GetCartOutputRepresentation') {
3371
3396
  const v_error = (() => {
3372
3397
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3373
3398
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3374
3399
  }
3375
3400
  const obj_apiStatus = obj.apiStatus;
3376
3401
  const path_apiStatus = path + '.apiStatus';
3377
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
3402
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
3378
3403
  if (referencepath_apiStatusValidationError !== null) {
3379
3404
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3380
3405
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3390,7 +3415,7 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3390
3415
  if (obj.cartItems !== undefined) {
3391
3416
  const obj_cartItems = obj.cartItems;
3392
3417
  const path_cartItems = path + '.cartItems';
3393
- const referencepath_cartItemsValidationError = validate$w(obj_cartItems, path_cartItems);
3418
+ const referencepath_cartItemsValidationError = validate$x(obj_cartItems, path_cartItems);
3394
3419
  if (referencepath_cartItemsValidationError !== null) {
3395
3420
  let message = 'Object doesn\'t match CartItemsOutputRepresentation (at "' + path_cartItems + '")\n';
3396
3421
  message += referencepath_cartItemsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3406,7 +3431,7 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3406
3431
  for (let i = 0; i < obj_totals.length; i++) {
3407
3432
  const obj_totals_item = obj_totals[i];
3408
3433
  const path_totals_item = path_totals + '[' + i + ']';
3409
- 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);
3410
3435
  if (referencepath_totals_itemValidationError !== null) {
3411
3436
  let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_totals_item + '")\n';
3412
3437
  message += referencepath_totals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3417,17 +3442,17 @@ function validate$u(obj, path = 'GetCartOutputRepresentation') {
3417
3442
  })();
3418
3443
  return v_error === undefined ? null : v_error;
3419
3444
  }
3420
- const RepresentationType$5 = 'GetCartOutputRepresentation';
3421
- function normalize$5(input, existing, path, luvio, store, timestamp) {
3445
+ const RepresentationType$6 = 'GetCartOutputRepresentation';
3446
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
3422
3447
  return input;
3423
3448
  }
3424
- const select$b = function GetCartOutputRepresentationSelect() {
3425
- const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$r();
3426
- const { selections: CartItemsOutputRepresentation__selections, opaque: CartItemsOutputRepresentation__opaque, } = select$d();
3427
- 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();
3428
3453
  return {
3429
3454
  kind: 'Fragment',
3430
- version: VERSION$5,
3455
+ version: VERSION$6,
3431
3456
  private: [],
3432
3457
  selections: [
3433
3458
  {
@@ -3456,7 +3481,7 @@ const select$b = function GetCartOutputRepresentationSelect() {
3456
3481
  ]
3457
3482
  };
3458
3483
  };
3459
- function equals$5(existing, incoming) {
3484
+ function equals$6(existing, incoming) {
3460
3485
  const existing_cartId = existing.cartId;
3461
3486
  const incoming_cartId = incoming.cartId;
3462
3487
  // if at least one of these optionals is defined
@@ -3472,7 +3497,7 @@ function equals$5(existing, incoming) {
3472
3497
  }
3473
3498
  const existing_apiStatus = existing.apiStatus;
3474
3499
  const incoming_apiStatus = incoming.apiStatus;
3475
- if (!(equals$g(existing_apiStatus, incoming_apiStatus))) {
3500
+ if (!(equals$h(existing_apiStatus, incoming_apiStatus))) {
3476
3501
  return false;
3477
3502
  }
3478
3503
  const existing_cartItems = existing.cartItems;
@@ -3484,7 +3509,7 @@ function equals$5(existing, incoming) {
3484
3509
  if (existing_cartItems === undefined || incoming_cartItems === undefined) {
3485
3510
  return false;
3486
3511
  }
3487
- if (!(equals$7(existing_cartItems, incoming_cartItems))) {
3512
+ if (!(equals$8(existing_cartItems, incoming_cartItems))) {
3488
3513
  return false;
3489
3514
  }
3490
3515
  }
@@ -3498,7 +3523,7 @@ function equals$5(existing, incoming) {
3498
3523
  return false;
3499
3524
  }
3500
3525
  const equals_totals_items = equalsArray(existing_totals, incoming_totals, (existing_totals_item, incoming_totals_item) => {
3501
- if (!(equals$6(existing_totals_item, incoming_totals_item))) {
3526
+ if (!(equals$7(existing_totals_item, incoming_totals_item))) {
3502
3527
  return false;
3503
3528
  }
3504
3529
  });
@@ -3508,44 +3533,44 @@ function equals$5(existing, incoming) {
3508
3533
  }
3509
3534
  return true;
3510
3535
  }
3511
- const ingest$5 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3536
+ const ingest$6 = function GetCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3512
3537
  if (process.env.NODE_ENV !== 'production') {
3513
- const validateError = validate$u(input);
3538
+ const validateError = validate$v(input);
3514
3539
  if (validateError !== null) {
3515
3540
  throw validateError;
3516
3541
  }
3517
3542
  }
3518
3543
  const key = path.fullPath;
3519
3544
  const ttlToUse = path.ttl !== undefined ? path.ttl : 1000;
3520
- 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);
3521
3546
  return createLink(key);
3522
3547
  };
3523
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3548
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
3524
3549
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3525
3550
  const rootKey = fullPathFactory();
3526
3551
  rootKeySet.set(rootKey, {
3527
3552
  namespace: keyPrefix,
3528
- representationName: RepresentationType$5,
3553
+ representationName: RepresentationType$6,
3529
3554
  mergeable: false
3530
3555
  });
3531
3556
  }
3532
3557
 
3533
- function select$a(luvio, params) {
3534
- return select$b();
3558
+ function select$d(luvio, params) {
3559
+ return select$e();
3535
3560
  }
3536
- function keyBuilder$6(luvio, params) {
3561
+ function keyBuilder$7(luvio, params) {
3537
3562
  return keyPrefix + '::GetCartOutputRepresentation:(' + 'cartId:' + params.urlParams.cartId + ')';
3538
3563
  }
3539
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3540
- 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));
3541
3566
  }
3542
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3567
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
3543
3568
  const { body } = response;
3544
- const key = keyBuilder$6(luvio, resourceParams);
3545
- luvio.storeIngest(key, ingest$5, body);
3569
+ const key = keyBuilder$7(luvio, resourceParams);
3570
+ luvio.storeIngest(key, ingest$6, body);
3546
3571
  const snapshot = luvio.storeLookup({
3547
3572
  recordId: key,
3548
- node: select$a(),
3573
+ node: select$d(),
3549
3574
  variables: {},
3550
3575
  }, snapshotRefresh);
3551
3576
  if (process.env.NODE_ENV !== 'production') {
@@ -3557,12 +3582,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
3557
3582
  return snapshot;
3558
3583
  }
3559
3584
  function ingestError(luvio, params, error, snapshotRefresh) {
3560
- const key = keyBuilder$6(luvio, params);
3585
+ const key = keyBuilder$7(luvio, params);
3561
3586
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3562
3587
  luvio.storeIngestError(key, errorSnapshot);
3563
3588
  return errorSnapshot;
3564
3589
  }
3565
- function createResourceRequest$5(config) {
3590
+ function createResourceRequest$7(config) {
3566
3591
  const headers = {};
3567
3592
  return {
3568
3593
  baseUri: '/services/data/v61.0',
@@ -3576,60 +3601,60 @@ function createResourceRequest$5(config) {
3576
3601
  };
3577
3602
  }
3578
3603
 
3579
- const adapterName$5 = 'getCart';
3604
+ const adapterName$7 = 'getCart';
3580
3605
  const getCart_ConfigPropertyMetadata = [
3581
3606
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
3582
3607
  ];
3583
- const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCart_ConfigPropertyMetadata);
3584
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getCart_ConfigPropertyMetadata);
3585
- function keyBuilder$5(luvio, config) {
3586
- const resourceParams = createResourceParams$5(config);
3587
- 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);
3588
3613
  }
3589
- function typeCheckConfig$5(untrustedConfig) {
3614
+ function typeCheckConfig$7(untrustedConfig) {
3590
3615
  const config = {};
3591
- typeCheckConfig$b(untrustedConfig, config, getCart_ConfigPropertyMetadata);
3616
+ typeCheckConfig$d(untrustedConfig, config, getCart_ConfigPropertyMetadata);
3592
3617
  return config;
3593
3618
  }
3594
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3619
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
3595
3620
  if (!untrustedIsObject(untrustedConfig)) {
3596
3621
  return null;
3597
3622
  }
3598
3623
  if (process.env.NODE_ENV !== 'production') {
3599
3624
  validateConfig(untrustedConfig, configPropertyNames);
3600
3625
  }
3601
- const config = typeCheckConfig$5(untrustedConfig);
3626
+ const config = typeCheckConfig$7(untrustedConfig);
3602
3627
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3603
3628
  return null;
3604
3629
  }
3605
3630
  return config;
3606
3631
  }
3607
3632
  function adapterFragment(luvio, config) {
3608
- createResourceParams$5(config);
3609
- return select$a();
3633
+ createResourceParams$7(config);
3634
+ return select$d();
3610
3635
  }
3611
3636
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3612
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
3637
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
3613
3638
  config,
3614
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3639
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3615
3640
  });
3616
3641
  return luvio.storeBroadcast().then(() => snapshot);
3617
3642
  }
3618
3643
  function onFetchResponseError(luvio, config, resourceParams, response) {
3619
3644
  const snapshot = ingestError(luvio, resourceParams, response, {
3620
3645
  config,
3621
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3646
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3622
3647
  });
3623
3648
  return luvio.storeBroadcast().then(() => snapshot);
3624
3649
  }
3625
- function buildNetworkSnapshot$5(luvio, config, options) {
3626
- const resourceParams = createResourceParams$5(config);
3627
- const request = createResourceRequest$5(resourceParams);
3650
+ function buildNetworkSnapshot$7(luvio, config, options) {
3651
+ const resourceParams = createResourceParams$7(config);
3652
+ const request = createResourceRequest$7(resourceParams);
3628
3653
  return luvio.dispatchResourceRequest(request, options)
3629
3654
  .then((response) => {
3630
3655
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3631
3656
  const cache = new StoreKeyMap();
3632
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3657
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
3633
3658
  return cache;
3634
3659
  });
3635
3660
  }, (response) => {
@@ -3637,23 +3662,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3637
3662
  });
3638
3663
  }
3639
3664
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3640
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
3665
+ return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
3641
3666
  }
3642
3667
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3643
3668
  const { luvio, config } = context;
3644
3669
  const selector = {
3645
- recordId: keyBuilder$5(luvio, config),
3670
+ recordId: keyBuilder$6(luvio, config),
3646
3671
  node: adapterFragment(luvio, config),
3647
3672
  variables: {},
3648
3673
  };
3649
3674
  const cacheSnapshot = storeLookup(selector, {
3650
3675
  config,
3651
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
3676
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
3652
3677
  });
3653
3678
  return cacheSnapshot;
3654
3679
  }
3655
3680
  const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig, requestContext) {
3656
- const config = validateAdapterConfig$5(untrustedConfig, getCart_ConfigPropertyNames);
3681
+ const config = validateAdapterConfig$7(untrustedConfig, getCart_ConfigPropertyNames);
3657
3682
  // Invalid or incomplete config
3658
3683
  if (config === null) {
3659
3684
  return null;
@@ -3662,7 +3687,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
3662
3687
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3663
3688
  };
3664
3689
 
3665
- function validate$t(obj, path = 'UpdateCartInputRepresentation') {
3690
+ function validate$u(obj, path = 'UpdateCartInputRepresentation') {
3666
3691
  const v_error = (() => {
3667
3692
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3668
3693
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3697,7 +3722,7 @@ function validate$t(obj, path = 'UpdateCartInputRepresentation') {
3697
3722
  return v_error === undefined ? null : v_error;
3698
3723
  }
3699
3724
 
3700
- function validate$s(obj, path = 'ValidationResultOutputRepresentation') {
3725
+ function validate$t(obj, path = 'ValidationResultOutputRepresentation') {
3701
3726
  const v_error = (() => {
3702
3727
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3703
3728
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3741,7 +3766,7 @@ function validate$s(obj, path = 'ValidationResultOutputRepresentation') {
3741
3766
  return v_error === undefined ? null : v_error;
3742
3767
  }
3743
3768
 
3744
- function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3769
+ function validate$s(obj, path = 'ValidateCartOutputRepresentation') {
3745
3770
  const v_error = (() => {
3746
3771
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3747
3772
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3755,7 +3780,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3755
3780
  for (let i = 0; i < obj_attributeErrors.length; i++) {
3756
3781
  const obj_attributeErrors_item = obj_attributeErrors[i];
3757
3782
  const path_attributeErrors_item = path_attributeErrors + '[' + i + ']';
3758
- 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);
3759
3784
  if (referencepath_attributeErrors_itemValidationError !== null) {
3760
3785
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_attributeErrors_item + '")\n';
3761
3786
  message += referencepath_attributeErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3772,7 +3797,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3772
3797
  for (let i = 0; i < obj_breErrors.length; i++) {
3773
3798
  const obj_breErrors_item = obj_breErrors[i];
3774
3799
  const path_breErrors_item = path_breErrors + '[' + i + ']';
3775
- 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);
3776
3801
  if (referencepath_breErrors_itemValidationError !== null) {
3777
3802
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_breErrors_item + '")\n';
3778
3803
  message += referencepath_breErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3789,7 +3814,7 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3789
3814
  for (let i = 0; i < obj_cardinalityErrors.length; i++) {
3790
3815
  const obj_cardinalityErrors_item = obj_cardinalityErrors[i];
3791
3816
  const path_cardinalityErrors_item = path_cardinalityErrors + '[' + i + ']';
3792
- 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);
3793
3818
  if (referencepath_cardinalityErrors_itemValidationError !== null) {
3794
3819
  let message = 'Object doesn\'t match ValidationResultOutputRepresentation (at "' + path_cardinalityErrors_item + '")\n';
3795
3820
  message += referencepath_cardinalityErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3808,16 +3833,16 @@ function validate$r(obj, path = 'ValidateCartOutputRepresentation') {
3808
3833
  return v_error === undefined ? null : v_error;
3809
3834
  }
3810
3835
 
3811
- const TTL$4 = 1000;
3812
- const VERSION$4 = "b0d6081a9f20773285c8aeb2e715ead3";
3813
- function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3836
+ const TTL$5 = 1000;
3837
+ const VERSION$5 = "b0d6081a9f20773285c8aeb2e715ead3";
3838
+ function validate$r(obj, path = 'UpdateCartOutputRepresentation') {
3814
3839
  const v_error = (() => {
3815
3840
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3816
3841
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3817
3842
  }
3818
3843
  const obj_apiStatus = obj.apiStatus;
3819
3844
  const path_apiStatus = path + '.apiStatus';
3820
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
3845
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
3821
3846
  if (referencepath_apiStatusValidationError !== null) {
3822
3847
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3823
3848
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3825,7 +3850,7 @@ function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3825
3850
  }
3826
3851
  const obj_validationResults = obj.validationResults;
3827
3852
  const path_validationResults = path + '.validationResults';
3828
- const referencepath_validationResultsValidationError = validate$r(obj_validationResults, path_validationResults);
3853
+ const referencepath_validationResultsValidationError = validate$s(obj_validationResults, path_validationResults);
3829
3854
  if (referencepath_validationResultsValidationError !== null) {
3830
3855
  let message = 'Object doesn\'t match ValidateCartOutputRepresentation (at "' + path_validationResults + '")\n';
3831
3856
  message += referencepath_validationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3834,68 +3859,68 @@ function validate$q(obj, path = 'UpdateCartOutputRepresentation') {
3834
3859
  })();
3835
3860
  return v_error === undefined ? null : v_error;
3836
3861
  }
3837
- const RepresentationType$4 = 'UpdateCartOutputRepresentation';
3838
- function keyBuilder$4(luvio, config) {
3839
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.message;
3862
+ const RepresentationType$5 = 'UpdateCartOutputRepresentation';
3863
+ function keyBuilder$5(luvio, config) {
3864
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
3840
3865
  }
3841
- function keyBuilderFromType$4(luvio, object) {
3866
+ function keyBuilderFromType$5(luvio, object) {
3842
3867
  const keyParams = {
3843
3868
  message: object.apiStatus.statusCode
3844
3869
  };
3845
- return keyBuilder$4(luvio, keyParams);
3870
+ return keyBuilder$5(luvio, keyParams);
3846
3871
  }
3847
- function normalize$4(input, existing, path, luvio, store, timestamp) {
3872
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
3848
3873
  return input;
3849
3874
  }
3850
- const select$9 = function UpdateCartOutputRepresentationSelect() {
3875
+ const select$c = function UpdateCartOutputRepresentationSelect() {
3851
3876
  return {
3852
3877
  kind: 'Fragment',
3853
- version: VERSION$4,
3878
+ version: VERSION$5,
3854
3879
  private: [],
3855
3880
  opaque: true
3856
3881
  };
3857
3882
  };
3858
- function equals$4(existing, incoming) {
3883
+ function equals$5(existing, incoming) {
3859
3884
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3860
3885
  return false;
3861
3886
  }
3862
3887
  return true;
3863
3888
  }
3864
- const ingest$4 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3889
+ const ingest$5 = function UpdateCartOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3865
3890
  if (process.env.NODE_ENV !== 'production') {
3866
- const validateError = validate$q(input);
3891
+ const validateError = validate$r(input);
3867
3892
  if (validateError !== null) {
3868
3893
  throw validateError;
3869
3894
  }
3870
3895
  }
3871
- const key = keyBuilderFromType$4(luvio, input);
3872
- const ttlToUse = TTL$4;
3873
- 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);
3874
3899
  return createLink(key);
3875
3900
  };
3876
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
3901
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3877
3902
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3878
- const rootKey = keyBuilderFromType$4(luvio, input);
3903
+ const rootKey = keyBuilderFromType$5(luvio, input);
3879
3904
  rootKeySet.set(rootKey, {
3880
3905
  namespace: keyPrefix,
3881
- representationName: RepresentationType$4,
3906
+ representationName: RepresentationType$5,
3882
3907
  mergeable: false
3883
3908
  });
3884
3909
  }
3885
3910
 
3886
- function select$8(luvio, params) {
3887
- return select$9();
3911
+ function select$b(luvio, params) {
3912
+ return select$c();
3888
3913
  }
3889
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3890
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
3914
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3915
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3891
3916
  }
3892
- function ingestSuccess$4(luvio, resourceParams, response) {
3917
+ function ingestSuccess$6(luvio, resourceParams, response) {
3893
3918
  const { body } = response;
3894
- const key = keyBuilderFromType$4(luvio, body);
3895
- luvio.storeIngest(key, ingest$4, body);
3919
+ const key = keyBuilderFromType$5(luvio, body);
3920
+ luvio.storeIngest(key, ingest$5, body);
3896
3921
  const snapshot = luvio.storeLookup({
3897
3922
  recordId: key,
3898
- node: select$8(),
3923
+ node: select$b(),
3899
3924
  variables: {},
3900
3925
  });
3901
3926
  if (process.env.NODE_ENV !== 'production') {
@@ -3906,7 +3931,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3906
3931
  deepFreeze(snapshot.data);
3907
3932
  return snapshot;
3908
3933
  }
3909
- function createResourceRequest$4(config) {
3934
+ function createResourceRequest$6(config) {
3910
3935
  const headers = {};
3911
3936
  return {
3912
3937
  baseUri: '/services/data/v61.0',
@@ -3920,47 +3945,47 @@ function createResourceRequest$4(config) {
3920
3945
  };
3921
3946
  }
3922
3947
 
3923
- const adapterName$4 = 'updateCart';
3948
+ const adapterName$6 = 'updateCart';
3924
3949
  const updateCart_ConfigPropertyMetadata = [
3925
3950
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
3926
3951
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
3927
3952
  ];
3928
- const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateCart_ConfigPropertyMetadata);
3929
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(updateCart_ConfigPropertyMetadata);
3930
- 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) {
3931
3956
  const config = {};
3932
- typeCheckConfig$b(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
3957
+ typeCheckConfig$d(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
3933
3958
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
3934
- const referenceUpdateCartInputRepresentationValidationError = validate$t(untrustedConfig_requestBody);
3959
+ const referenceUpdateCartInputRepresentationValidationError = validate$u(untrustedConfig_requestBody);
3935
3960
  if (referenceUpdateCartInputRepresentationValidationError === null) {
3936
3961
  config.requestBody = untrustedConfig_requestBody;
3937
3962
  }
3938
3963
  return config;
3939
3964
  }
3940
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3965
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3941
3966
  if (!untrustedIsObject(untrustedConfig)) {
3942
3967
  return null;
3943
3968
  }
3944
3969
  if (process.env.NODE_ENV !== 'production') {
3945
3970
  validateConfig(untrustedConfig, configPropertyNames);
3946
3971
  }
3947
- const config = typeCheckConfig$4(untrustedConfig);
3972
+ const config = typeCheckConfig$6(untrustedConfig);
3948
3973
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3949
3974
  return null;
3950
3975
  }
3951
3976
  return config;
3952
3977
  }
3953
- function buildNetworkSnapshot$4(luvio, config, options) {
3954
- const resourceParams = createResourceParams$4(config);
3955
- const request = createResourceRequest$4(resourceParams);
3978
+ function buildNetworkSnapshot$6(luvio, config, options) {
3979
+ const resourceParams = createResourceParams$6(config);
3980
+ const request = createResourceRequest$6(resourceParams);
3956
3981
  return luvio.dispatchResourceRequest(request, options)
3957
3982
  .then((response) => {
3958
3983
  return luvio.handleSuccessResponse(() => {
3959
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3984
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
3960
3985
  return luvio.storeBroadcast().then(() => snapshot);
3961
3986
  }, () => {
3962
3987
  const cache = new StoreKeyMap();
3963
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3988
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3964
3989
  return cache;
3965
3990
  });
3966
3991
  }, (response) => {
@@ -3970,16 +3995,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3970
3995
  }
3971
3996
  const updateCartAdapterFactory = (luvio) => {
3972
3997
  return function updateCart(untrustedConfig) {
3973
- const config = validateAdapterConfig$4(untrustedConfig, updateCart_ConfigPropertyNames);
3998
+ const config = validateAdapterConfig$6(untrustedConfig, updateCart_ConfigPropertyNames);
3974
3999
  // Invalid or incomplete config
3975
4000
  if (config === null) {
3976
4001
  throw new Error('Invalid config for "updateCart"');
3977
4002
  }
3978
- return buildNetworkSnapshot$4(luvio, config);
4003
+ return buildNetworkSnapshot$6(luvio, config);
3979
4004
  };
3980
4005
  };
3981
4006
 
3982
- function validate$p(obj, path = 'UpdateCartItemsInputRepresentation') {
4007
+ function validate$q(obj, path = 'UpdateCartItemsInputRepresentation') {
3983
4008
  const v_error = (() => {
3984
4009
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3985
4010
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4016,16 +4041,16 @@ function validate$p(obj, path = 'UpdateCartItemsInputRepresentation') {
4016
4041
  return v_error === undefined ? null : v_error;
4017
4042
  }
4018
4043
 
4019
- const TTL$3 = 1000;
4020
- const VERSION$3 = "7f205594e7cf298b4bee71200afab626";
4021
- function validate$o(obj, path = 'UpdateCartItemsOutputRepresentation') {
4044
+ const TTL$4 = 1000;
4045
+ const VERSION$4 = "7f205594e7cf298b4bee71200afab626";
4046
+ function validate$p(obj, path = 'UpdateCartItemsOutputRepresentation') {
4022
4047
  const v_error = (() => {
4023
4048
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4024
4049
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4025
4050
  }
4026
4051
  const obj_apiStatus = obj.apiStatus;
4027
4052
  const path_apiStatus = path + '.apiStatus';
4028
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4053
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4029
4054
  if (referencepath_apiStatusValidationError !== null) {
4030
4055
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4031
4056
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4041,68 +4066,68 @@ function validate$o(obj, path = 'UpdateCartItemsOutputRepresentation') {
4041
4066
  })();
4042
4067
  return v_error === undefined ? null : v_error;
4043
4068
  }
4044
- const RepresentationType$3 = 'UpdateCartItemsOutputRepresentation';
4045
- function keyBuilder$3(luvio, config) {
4046
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.message;
4069
+ const RepresentationType$4 = 'UpdateCartItemsOutputRepresentation';
4070
+ function keyBuilder$4(luvio, config) {
4071
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.message;
4047
4072
  }
4048
- function keyBuilderFromType$3(luvio, object) {
4073
+ function keyBuilderFromType$4(luvio, object) {
4049
4074
  const keyParams = {
4050
4075
  message: object.apiStatus.statusCode
4051
4076
  };
4052
- return keyBuilder$3(luvio, keyParams);
4077
+ return keyBuilder$4(luvio, keyParams);
4053
4078
  }
4054
- function normalize$3(input, existing, path, luvio, store, timestamp) {
4079
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
4055
4080
  return input;
4056
4081
  }
4057
- const select$7 = function UpdateCartItemsOutputRepresentationSelect() {
4082
+ const select$a = function UpdateCartItemsOutputRepresentationSelect() {
4058
4083
  return {
4059
4084
  kind: 'Fragment',
4060
- version: VERSION$3,
4085
+ version: VERSION$4,
4061
4086
  private: [],
4062
4087
  opaque: true
4063
4088
  };
4064
4089
  };
4065
- function equals$3(existing, incoming) {
4090
+ function equals$4(existing, incoming) {
4066
4091
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4067
4092
  return false;
4068
4093
  }
4069
4094
  return true;
4070
4095
  }
4071
- const ingest$3 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4096
+ const ingest$4 = function UpdateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4072
4097
  if (process.env.NODE_ENV !== 'production') {
4073
- const validateError = validate$o(input);
4098
+ const validateError = validate$p(input);
4074
4099
  if (validateError !== null) {
4075
4100
  throw validateError;
4076
4101
  }
4077
4102
  }
4078
- const key = keyBuilderFromType$3(luvio, input);
4079
- const ttlToUse = TTL$3;
4080
- 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);
4081
4106
  return createLink(key);
4082
4107
  };
4083
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4108
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
4084
4109
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4085
- const rootKey = keyBuilderFromType$3(luvio, input);
4110
+ const rootKey = keyBuilderFromType$4(luvio, input);
4086
4111
  rootKeySet.set(rootKey, {
4087
4112
  namespace: keyPrefix,
4088
- representationName: RepresentationType$3,
4113
+ representationName: RepresentationType$4,
4089
4114
  mergeable: false
4090
4115
  });
4091
4116
  }
4092
4117
 
4093
- function select$6(luvio, params) {
4094
- return select$7();
4118
+ function select$9(luvio, params) {
4119
+ return select$a();
4095
4120
  }
4096
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4097
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
4121
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
4122
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
4098
4123
  }
4099
- function ingestSuccess$3(luvio, resourceParams, response) {
4124
+ function ingestSuccess$5(luvio, resourceParams, response) {
4100
4125
  const { body } = response;
4101
- const key = keyBuilderFromType$3(luvio, body);
4102
- luvio.storeIngest(key, ingest$3, body);
4126
+ const key = keyBuilderFromType$4(luvio, body);
4127
+ luvio.storeIngest(key, ingest$4, body);
4103
4128
  const snapshot = luvio.storeLookup({
4104
4129
  recordId: key,
4105
- node: select$6(),
4130
+ node: select$9(),
4106
4131
  variables: {},
4107
4132
  });
4108
4133
  if (process.env.NODE_ENV !== 'production') {
@@ -4113,7 +4138,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
4113
4138
  deepFreeze(snapshot.data);
4114
4139
  return snapshot;
4115
4140
  }
4116
- function createResourceRequest$3(config) {
4141
+ function createResourceRequest$5(config) {
4117
4142
  const headers = {};
4118
4143
  return {
4119
4144
  baseUri: '/services/data/v61.0',
@@ -4127,47 +4152,47 @@ function createResourceRequest$3(config) {
4127
4152
  };
4128
4153
  }
4129
4154
 
4130
- const adapterName$3 = 'updateCartItems';
4155
+ const adapterName$5 = 'updateCartItems';
4131
4156
  const updateCartItems_ConfigPropertyMetadata = [
4132
4157
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4133
4158
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4134
4159
  ];
4135
- const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCartItems_ConfigPropertyMetadata);
4136
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(updateCartItems_ConfigPropertyMetadata);
4137
- 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) {
4138
4163
  const config = {};
4139
- typeCheckConfig$b(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4164
+ typeCheckConfig$d(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4140
4165
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4141
- const referenceUpdateCartItemsInputRepresentationValidationError = validate$p(untrustedConfig_requestBody);
4166
+ const referenceUpdateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
4142
4167
  if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
4143
4168
  config.requestBody = untrustedConfig_requestBody;
4144
4169
  }
4145
4170
  return config;
4146
4171
  }
4147
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4172
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
4148
4173
  if (!untrustedIsObject(untrustedConfig)) {
4149
4174
  return null;
4150
4175
  }
4151
4176
  if (process.env.NODE_ENV !== 'production') {
4152
4177
  validateConfig(untrustedConfig, configPropertyNames);
4153
4178
  }
4154
- const config = typeCheckConfig$3(untrustedConfig);
4179
+ const config = typeCheckConfig$5(untrustedConfig);
4155
4180
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4156
4181
  return null;
4157
4182
  }
4158
4183
  return config;
4159
4184
  }
4160
- function buildNetworkSnapshot$3(luvio, config, options) {
4161
- const resourceParams = createResourceParams$3(config);
4162
- const request = createResourceRequest$3(resourceParams);
4185
+ function buildNetworkSnapshot$5(luvio, config, options) {
4186
+ const resourceParams = createResourceParams$5(config);
4187
+ const request = createResourceRequest$5(resourceParams);
4163
4188
  return luvio.dispatchResourceRequest(request, options)
4164
4189
  .then((response) => {
4165
4190
  return luvio.handleSuccessResponse(() => {
4166
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
4191
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
4167
4192
  return luvio.storeBroadcast().then(() => snapshot);
4168
4193
  }, () => {
4169
4194
  const cache = new StoreKeyMap();
4170
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4195
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
4171
4196
  return cache;
4172
4197
  });
4173
4198
  }, (response) => {
@@ -4177,16 +4202,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
4177
4202
  }
4178
4203
  const updateCartItemsAdapterFactory = (luvio) => {
4179
4204
  return function updateCartItems(untrustedConfig) {
4180
- const config = validateAdapterConfig$3(untrustedConfig, updateCartItems_ConfigPropertyNames);
4205
+ const config = validateAdapterConfig$5(untrustedConfig, updateCartItems_ConfigPropertyNames);
4181
4206
  // Invalid or incomplete config
4182
4207
  if (config === null) {
4183
4208
  throw new Error('Invalid config for "updateCartItems"');
4184
4209
  }
4185
- return buildNetworkSnapshot$3(luvio, config);
4210
+ return buildNetworkSnapshot$5(luvio, config);
4186
4211
  };
4187
4212
  };
4188
4213
 
4189
- function validate$n(obj, path = 'CreateCartItemsInputRepresentation') {
4214
+ function validate$o(obj, path = 'CreateCartItemsInputRepresentation') {
4190
4215
  const v_error = (() => {
4191
4216
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4192
4217
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4223,16 +4248,16 @@ function validate$n(obj, path = 'CreateCartItemsInputRepresentation') {
4223
4248
  return v_error === undefined ? null : v_error;
4224
4249
  }
4225
4250
 
4226
- const TTL$2 = 1000;
4227
- const VERSION$2 = "34153309b079451754e6d3fbf85bb8bd";
4228
- function validate$m(obj, path = 'CreateCartItemsOutputRepresentation') {
4251
+ const TTL$3 = 1000;
4252
+ const VERSION$3 = "34153309b079451754e6d3fbf85bb8bd";
4253
+ function validate$n(obj, path = 'CreateCartItemsOutputRepresentation') {
4229
4254
  const v_error = (() => {
4230
4255
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4231
4256
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4232
4257
  }
4233
4258
  const obj_apiStatus = obj.apiStatus;
4234
4259
  const path_apiStatus = path + '.apiStatus';
4235
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4260
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4236
4261
  if (referencepath_apiStatusValidationError !== null) {
4237
4262
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4238
4263
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4248,68 +4273,68 @@ function validate$m(obj, path = 'CreateCartItemsOutputRepresentation') {
4248
4273
  })();
4249
4274
  return v_error === undefined ? null : v_error;
4250
4275
  }
4251
- const RepresentationType$2 = 'CreateCartItemsOutputRepresentation';
4252
- function keyBuilder$2(luvio, config) {
4253
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.message;
4276
+ const RepresentationType$3 = 'CreateCartItemsOutputRepresentation';
4277
+ function keyBuilder$3(luvio, config) {
4278
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.message;
4254
4279
  }
4255
- function keyBuilderFromType$2(luvio, object) {
4280
+ function keyBuilderFromType$3(luvio, object) {
4256
4281
  const keyParams = {
4257
4282
  message: object.apiStatus.statusCode
4258
4283
  };
4259
- return keyBuilder$2(luvio, keyParams);
4284
+ return keyBuilder$3(luvio, keyParams);
4260
4285
  }
4261
- function normalize$2(input, existing, path, luvio, store, timestamp) {
4286
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
4262
4287
  return input;
4263
4288
  }
4264
- const select$5 = function CreateCartItemsOutputRepresentationSelect() {
4289
+ const select$8 = function CreateCartItemsOutputRepresentationSelect() {
4265
4290
  return {
4266
4291
  kind: 'Fragment',
4267
- version: VERSION$2,
4292
+ version: VERSION$3,
4268
4293
  private: [],
4269
4294
  opaque: true
4270
4295
  };
4271
4296
  };
4272
- function equals$2(existing, incoming) {
4297
+ function equals$3(existing, incoming) {
4273
4298
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4274
4299
  return false;
4275
4300
  }
4276
4301
  return true;
4277
4302
  }
4278
- const ingest$2 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4303
+ const ingest$3 = function CreateCartItemsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4279
4304
  if (process.env.NODE_ENV !== 'production') {
4280
- const validateError = validate$m(input);
4305
+ const validateError = validate$n(input);
4281
4306
  if (validateError !== null) {
4282
4307
  throw validateError;
4283
4308
  }
4284
4309
  }
4285
- const key = keyBuilderFromType$2(luvio, input);
4286
- const ttlToUse = TTL$2;
4287
- 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);
4288
4313
  return createLink(key);
4289
4314
  };
4290
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4315
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4291
4316
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4292
- const rootKey = keyBuilderFromType$2(luvio, input);
4317
+ const rootKey = keyBuilderFromType$3(luvio, input);
4293
4318
  rootKeySet.set(rootKey, {
4294
4319
  namespace: keyPrefix,
4295
- representationName: RepresentationType$2,
4320
+ representationName: RepresentationType$3,
4296
4321
  mergeable: false
4297
4322
  });
4298
4323
  }
4299
4324
 
4300
- function select$4(luvio, params) {
4301
- return select$5();
4325
+ function select$7(luvio, params) {
4326
+ return select$8();
4302
4327
  }
4303
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
4304
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
4328
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
4329
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
4305
4330
  }
4306
- function ingestSuccess$2(luvio, resourceParams, response) {
4331
+ function ingestSuccess$4(luvio, resourceParams, response) {
4307
4332
  const { body } = response;
4308
- const key = keyBuilderFromType$2(luvio, body);
4309
- luvio.storeIngest(key, ingest$2, body);
4333
+ const key = keyBuilderFromType$3(luvio, body);
4334
+ luvio.storeIngest(key, ingest$3, body);
4310
4335
  const snapshot = luvio.storeLookup({
4311
4336
  recordId: key,
4312
- node: select$4(),
4337
+ node: select$7(),
4313
4338
  variables: {},
4314
4339
  });
4315
4340
  if (process.env.NODE_ENV !== 'production') {
@@ -4320,7 +4345,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
4320
4345
  deepFreeze(snapshot.data);
4321
4346
  return snapshot;
4322
4347
  }
4323
- function createResourceRequest$2(config) {
4348
+ function createResourceRequest$4(config) {
4324
4349
  const headers = {};
4325
4350
  return {
4326
4351
  baseUri: '/services/data/v61.0',
@@ -4334,47 +4359,47 @@ function createResourceRequest$2(config) {
4334
4359
  };
4335
4360
  }
4336
4361
 
4337
- const adapterName$2 = 'createCartItems';
4362
+ const adapterName$4 = 'createCartItems';
4338
4363
  const createCartItems_ConfigPropertyMetadata = [
4339
4364
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4340
4365
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4341
4366
  ];
4342
- const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCartItems_ConfigPropertyMetadata);
4343
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(createCartItems_ConfigPropertyMetadata);
4344
- 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) {
4345
4370
  const config = {};
4346
- typeCheckConfig$b(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4371
+ typeCheckConfig$d(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4347
4372
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4348
- const referenceCreateCartItemsInputRepresentationValidationError = validate$n(untrustedConfig_requestBody);
4373
+ const referenceCreateCartItemsInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
4349
4374
  if (referenceCreateCartItemsInputRepresentationValidationError === null) {
4350
4375
  config.requestBody = untrustedConfig_requestBody;
4351
4376
  }
4352
4377
  return config;
4353
4378
  }
4354
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4379
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
4355
4380
  if (!untrustedIsObject(untrustedConfig)) {
4356
4381
  return null;
4357
4382
  }
4358
4383
  if (process.env.NODE_ENV !== 'production') {
4359
4384
  validateConfig(untrustedConfig, configPropertyNames);
4360
4385
  }
4361
- const config = typeCheckConfig$2(untrustedConfig);
4386
+ const config = typeCheckConfig$4(untrustedConfig);
4362
4387
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4363
4388
  return null;
4364
4389
  }
4365
4390
  return config;
4366
4391
  }
4367
- function buildNetworkSnapshot$2(luvio, config, options) {
4368
- const resourceParams = createResourceParams$2(config);
4369
- const request = createResourceRequest$2(resourceParams);
4392
+ function buildNetworkSnapshot$4(luvio, config, options) {
4393
+ const resourceParams = createResourceParams$4(config);
4394
+ const request = createResourceRequest$4(resourceParams);
4370
4395
  return luvio.dispatchResourceRequest(request, options)
4371
4396
  .then((response) => {
4372
4397
  return luvio.handleSuccessResponse(() => {
4373
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
4398
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
4374
4399
  return luvio.storeBroadcast().then(() => snapshot);
4375
4400
  }, () => {
4376
4401
  const cache = new StoreKeyMap();
4377
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4402
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
4378
4403
  return cache;
4379
4404
  });
4380
4405
  }, (response) => {
@@ -4384,16 +4409,16 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4384
4409
  }
4385
4410
  const createCartItemsAdapterFactory = (luvio) => {
4386
4411
  return function createCartItems(untrustedConfig) {
4387
- const config = validateAdapterConfig$2(untrustedConfig, createCartItems_ConfigPropertyNames);
4412
+ const config = validateAdapterConfig$4(untrustedConfig, createCartItems_ConfigPropertyNames);
4388
4413
  // Invalid or incomplete config
4389
4414
  if (config === null) {
4390
4415
  throw new Error('Invalid config for "createCartItems"');
4391
4416
  }
4392
- return buildNetworkSnapshot$2(luvio, config);
4417
+ return buildNetworkSnapshot$4(luvio, config);
4393
4418
  };
4394
4419
  };
4395
4420
 
4396
- function validate$l(obj, path = 'PriceCartInputRepresentation') {
4421
+ function validate$m(obj, path = 'PriceCartInputRepresentation') {
4397
4422
  const v_error = (() => {
4398
4423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4399
4424
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4430,16 +4455,16 @@ function validate$l(obj, path = 'PriceCartInputRepresentation') {
4430
4455
  return v_error === undefined ? null : v_error;
4431
4456
  }
4432
4457
 
4433
- const TTL$1 = 1000;
4434
- const VERSION$1 = "b1e28ba15f534459065f2870a9dc703d";
4435
- function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4458
+ const TTL$2 = 1000;
4459
+ const VERSION$2 = "b1e28ba15f534459065f2870a9dc703d";
4460
+ function validate$l(obj, path = 'CartPricingTotalOutputRepresentation') {
4436
4461
  const v_error = (() => {
4437
4462
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4438
4463
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4439
4464
  }
4440
4465
  const obj_apiStatus = obj.apiStatus;
4441
4466
  const path_apiStatus = path + '.apiStatus';
4442
- const referencepath_apiStatusValidationError = validate$J(obj_apiStatus, path_apiStatus);
4467
+ const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4443
4468
  if (referencepath_apiStatusValidationError !== null) {
4444
4469
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4445
4470
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4461,7 +4486,7 @@ function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4461
4486
  for (let i = 0; i < obj_cartPricingTotals.length; i++) {
4462
4487
  const obj_cartPricingTotals_item = obj_cartPricingTotals[i];
4463
4488
  const path_cartPricingTotals_item = path_cartPricingTotals + '[' + i + ']';
4464
- 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);
4465
4490
  if (referencepath_cartPricingTotals_itemValidationError !== null) {
4466
4491
  let message = 'Object doesn\'t match PricingTotalOutputRepresentation (at "' + path_cartPricingTotals_item + '")\n';
4467
4492
  message += referencepath_cartPricingTotals_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4472,68 +4497,68 @@ function validate$k(obj, path = 'CartPricingTotalOutputRepresentation') {
4472
4497
  })();
4473
4498
  return v_error === undefined ? null : v_error;
4474
4499
  }
4475
- const RepresentationType$1 = 'CartPricingTotalOutputRepresentation';
4476
- function keyBuilder$1(luvio, config) {
4477
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.message;
4500
+ const RepresentationType$2 = 'CartPricingTotalOutputRepresentation';
4501
+ function keyBuilder$2(luvio, config) {
4502
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.message;
4478
4503
  }
4479
- function keyBuilderFromType$1(luvio, object) {
4504
+ function keyBuilderFromType$2(luvio, object) {
4480
4505
  const keyParams = {
4481
4506
  message: object.apiStatus.statusCode
4482
4507
  };
4483
- return keyBuilder$1(luvio, keyParams);
4508
+ return keyBuilder$2(luvio, keyParams);
4484
4509
  }
4485
- function normalize$1(input, existing, path, luvio, store, timestamp) {
4510
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
4486
4511
  return input;
4487
4512
  }
4488
- const select$3 = function CartPricingTotalOutputRepresentationSelect() {
4513
+ const select$6 = function CartPricingTotalOutputRepresentationSelect() {
4489
4514
  return {
4490
4515
  kind: 'Fragment',
4491
- version: VERSION$1,
4516
+ version: VERSION$2,
4492
4517
  private: [],
4493
4518
  opaque: true
4494
4519
  };
4495
4520
  };
4496
- function equals$1(existing, incoming) {
4521
+ function equals$2(existing, incoming) {
4497
4522
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4498
4523
  return false;
4499
4524
  }
4500
4525
  return true;
4501
4526
  }
4502
- const ingest$1 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4527
+ const ingest$2 = function CartPricingTotalOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4503
4528
  if (process.env.NODE_ENV !== 'production') {
4504
- const validateError = validate$k(input);
4529
+ const validateError = validate$l(input);
4505
4530
  if (validateError !== null) {
4506
4531
  throw validateError;
4507
4532
  }
4508
4533
  }
4509
- const key = keyBuilderFromType$1(luvio, input);
4510
- const ttlToUse = TTL$1;
4511
- 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);
4512
4537
  return createLink(key);
4513
4538
  };
4514
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4539
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4515
4540
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4516
- const rootKey = keyBuilderFromType$1(luvio, input);
4541
+ const rootKey = keyBuilderFromType$2(luvio, input);
4517
4542
  rootKeySet.set(rootKey, {
4518
4543
  namespace: keyPrefix,
4519
- representationName: RepresentationType$1,
4544
+ representationName: RepresentationType$2,
4520
4545
  mergeable: false
4521
4546
  });
4522
4547
  }
4523
4548
 
4524
- function select$2(luvio, params) {
4525
- return select$3();
4549
+ function select$5(luvio, params) {
4550
+ return select$6();
4526
4551
  }
4527
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4528
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
4552
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4553
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
4529
4554
  }
4530
- function ingestSuccess$1(luvio, resourceParams, response) {
4555
+ function ingestSuccess$3(luvio, resourceParams, response) {
4531
4556
  const { body } = response;
4532
- const key = keyBuilderFromType$1(luvio, body);
4533
- luvio.storeIngest(key, ingest$1, body);
4557
+ const key = keyBuilderFromType$2(luvio, body);
4558
+ luvio.storeIngest(key, ingest$2, body);
4534
4559
  const snapshot = luvio.storeLookup({
4535
4560
  recordId: key,
4536
- node: select$2(),
4561
+ node: select$5(),
4537
4562
  variables: {},
4538
4563
  });
4539
4564
  if (process.env.NODE_ENV !== 'production') {
@@ -4544,7 +4569,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
4544
4569
  deepFreeze(snapshot.data);
4545
4570
  return snapshot;
4546
4571
  }
4547
- function createResourceRequest$1(config) {
4572
+ function createResourceRequest$3(config) {
4548
4573
  const headers = {};
4549
4574
  return {
4550
4575
  baseUri: '/services/data/v61.0',
@@ -4558,47 +4583,47 @@ function createResourceRequest$1(config) {
4558
4583
  };
4559
4584
  }
4560
4585
 
4561
- const adapterName$1 = 'priceCart';
4586
+ const adapterName$3 = 'priceCart';
4562
4587
  const priceCart_ConfigPropertyMetadata = [
4563
4588
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
4564
4589
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4565
4590
  ];
4566
- const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, priceCart_ConfigPropertyMetadata);
4567
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(priceCart_ConfigPropertyMetadata);
4568
- 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) {
4569
4594
  const config = {};
4570
- typeCheckConfig$b(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
4595
+ typeCheckConfig$d(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
4571
4596
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4572
- const referencePriceCartInputRepresentationValidationError = validate$l(untrustedConfig_requestBody);
4597
+ const referencePriceCartInputRepresentationValidationError = validate$m(untrustedConfig_requestBody);
4573
4598
  if (referencePriceCartInputRepresentationValidationError === null) {
4574
4599
  config.requestBody = untrustedConfig_requestBody;
4575
4600
  }
4576
4601
  return config;
4577
4602
  }
4578
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4603
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4579
4604
  if (!untrustedIsObject(untrustedConfig)) {
4580
4605
  return null;
4581
4606
  }
4582
4607
  if (process.env.NODE_ENV !== 'production') {
4583
4608
  validateConfig(untrustedConfig, configPropertyNames);
4584
4609
  }
4585
- const config = typeCheckConfig$1(untrustedConfig);
4610
+ const config = typeCheckConfig$3(untrustedConfig);
4586
4611
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4587
4612
  return null;
4588
4613
  }
4589
4614
  return config;
4590
4615
  }
4591
- function buildNetworkSnapshot$1(luvio, config, options) {
4592
- const resourceParams = createResourceParams$1(config);
4593
- const request = createResourceRequest$1(resourceParams);
4616
+ function buildNetworkSnapshot$3(luvio, config, options) {
4617
+ const resourceParams = createResourceParams$3(config);
4618
+ const request = createResourceRequest$3(resourceParams);
4594
4619
  return luvio.dispatchResourceRequest(request, options)
4595
4620
  .then((response) => {
4596
4621
  return luvio.handleSuccessResponse(() => {
4597
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
4622
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
4598
4623
  return luvio.storeBroadcast().then(() => snapshot);
4599
4624
  }, () => {
4600
4625
  const cache = new StoreKeyMap();
4601
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4626
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4602
4627
  return cache;
4603
4628
  });
4604
4629
  }, (response) => {
@@ -4608,16 +4633,16 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4608
4633
  }
4609
4634
  const priceCartAdapterFactory = (luvio) => {
4610
4635
  return function priceCart(untrustedConfig) {
4611
- const config = validateAdapterConfig$1(untrustedConfig, priceCart_ConfigPropertyNames);
4636
+ const config = validateAdapterConfig$3(untrustedConfig, priceCart_ConfigPropertyNames);
4612
4637
  // Invalid or incomplete config
4613
4638
  if (config === null) {
4614
4639
  throw new Error('Invalid config for "priceCart"');
4615
4640
  }
4616
- return buildNetworkSnapshot$1(luvio, config);
4641
+ return buildNetworkSnapshot$3(luvio, config);
4617
4642
  };
4618
4643
  };
4619
4644
 
4620
- function validate$j(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4645
+ function validate$k(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4621
4646
  const v_error = (() => {
4622
4647
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4623
4648
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4645,7 +4670,7 @@ function validate$j(obj, path = 'ConfiguratorAddedNodeInputRepresentation') {
4645
4670
  return v_error === undefined ? null : v_error;
4646
4671
  }
4647
4672
 
4648
- function validate$i(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4673
+ function validate$j(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4649
4674
  const v_error = (() => {
4650
4675
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4651
4676
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4710,7 +4735,7 @@ function validate$i(obj, path = 'ConfiguratorOptionsInputRepresentation') {
4710
4735
  return v_error === undefined ? null : v_error;
4711
4736
  }
4712
4737
 
4713
- function validate$h(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4738
+ function validate$i(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4714
4739
  const v_error = (() => {
4715
4740
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4716
4741
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4733,7 +4758,7 @@ function validate$h(obj, path = 'ConfiguratorDeletedNodeInputRepresentation') {
4733
4758
  return v_error === undefined ? null : v_error;
4734
4759
  }
4735
4760
 
4736
- function validate$g(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4761
+ function validate$h(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4737
4762
  const v_error = (() => {
4738
4763
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4739
4764
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4761,7 +4786,7 @@ function validate$g(obj, path = 'ConfiguratorUpdatedNodeInputRepresentation') {
4761
4786
  return v_error === undefined ? null : v_error;
4762
4787
  }
4763
4788
 
4764
- function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4789
+ function validate$g(obj, path = 'ConfiguratorInputRepresentation') {
4765
4790
  const v_error = (() => {
4766
4791
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4767
4792
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4775,7 +4800,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4775
4800
  for (let i = 0; i < obj_addedNodes.length; i++) {
4776
4801
  const obj_addedNodes_item = obj_addedNodes[i];
4777
4802
  const path_addedNodes_item = path_addedNodes + '[' + i + ']';
4778
- 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);
4779
4804
  if (referencepath_addedNodes_itemValidationError !== null) {
4780
4805
  let message = 'Object doesn\'t match ConfiguratorAddedNodeInputRepresentation (at "' + path_addedNodes_item + '")\n';
4781
4806
  message += referencepath_addedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4786,7 +4811,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4786
4811
  if (obj.configuratorOptions !== undefined) {
4787
4812
  const obj_configuratorOptions = obj.configuratorOptions;
4788
4813
  const path_configuratorOptions = path + '.configuratorOptions';
4789
- const referencepath_configuratorOptionsValidationError = validate$i(obj_configuratorOptions, path_configuratorOptions);
4814
+ const referencepath_configuratorOptionsValidationError = validate$j(obj_configuratorOptions, path_configuratorOptions);
4790
4815
  if (referencepath_configuratorOptionsValidationError !== null) {
4791
4816
  let message = 'Object doesn\'t match ConfiguratorOptionsInputRepresentation (at "' + path_configuratorOptions + '")\n';
4792
4817
  message += referencepath_configuratorOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4844,7 +4869,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4844
4869
  for (let i = 0; i < obj_deletedNodes.length; i++) {
4845
4870
  const obj_deletedNodes_item = obj_deletedNodes[i];
4846
4871
  const path_deletedNodes_item = path_deletedNodes + '[' + i + ']';
4847
- 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);
4848
4873
  if (referencepath_deletedNodes_itemValidationError !== null) {
4849
4874
  let message = 'Object doesn\'t match ConfiguratorDeletedNodeInputRepresentation (at "' + path_deletedNodes_item + '")\n';
4850
4875
  message += referencepath_deletedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4952,7 +4977,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4952
4977
  for (let i = 0; i < obj_updatedNodes.length; i++) {
4953
4978
  const obj_updatedNodes_item = obj_updatedNodes[i];
4954
4979
  const path_updatedNodes_item = path_updatedNodes + '[' + i + ']';
4955
- 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);
4956
4981
  if (referencepath_updatedNodes_itemValidationError !== null) {
4957
4982
  let message = 'Object doesn\'t match ConfiguratorUpdatedNodeInputRepresentation (at "' + path_updatedNodes_item + '")\n';
4958
4983
  message += referencepath_updatedNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4964,7 +4989,7 @@ function validate$f(obj, path = 'ConfiguratorInputRepresentation') {
4964
4989
  return v_error === undefined ? null : v_error;
4965
4990
  }
4966
4991
 
4967
- function validate$e(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
4992
+ function validate$f(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentation') {
4968
4993
  const v_error = (() => {
4969
4994
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4970
4995
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4994,7 +5019,7 @@ function validate$e(obj, path = 'ConfiguratorAdditionalFieldsOutputRepresentatio
4994
5019
  return v_error === undefined ? null : v_error;
4995
5020
  }
4996
5021
 
4997
- function validate$d(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
5022
+ function validate$e(obj, path = 'ConfiguratorAttributePicklistValueOutputRepresentation') {
4998
5023
  const v_error = (() => {
4999
5024
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5000
5025
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5073,7 +5098,7 @@ function validate$d(obj, path = 'ConfiguratorAttributePicklistValueOutputReprese
5073
5098
  return v_error === undefined ? null : v_error;
5074
5099
  }
5075
5100
 
5076
- function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
5101
+ function validate$d(obj, path = 'ConfiguratorAttributePicklistOutputRepresentation') {
5077
5102
  const v_error = (() => {
5078
5103
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5079
5104
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5115,7 +5140,7 @@ function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
5115
5140
  for (let i = 0; i < obj_values.length; i++) {
5116
5141
  const obj_values_item = obj_values[i];
5117
5142
  const path_values_item = path_values + '[' + i + ']';
5118
- 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);
5119
5144
  if (referencepath_values_itemValidationError !== null) {
5120
5145
  let message = 'Object doesn\'t match ConfiguratorAttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
5121
5146
  message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5127,7 +5152,7 @@ function validate$c(obj, path = 'ConfiguratorAttributePicklistOutputRepresentati
5127
5152
  return v_error === undefined ? null : v_error;
5128
5153
  }
5129
5154
 
5130
- function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5155
+ function validate$c(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5131
5156
  const v_error = (() => {
5132
5157
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5133
5158
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5149,7 +5174,7 @@ function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5149
5174
  if (obj.attributePicklist !== undefined) {
5150
5175
  const obj_attributePicklist = obj.attributePicklist;
5151
5176
  const path_attributePicklist = path + '.attributePicklist';
5152
- const referencepath_attributePicklistValidationError = validate$c(obj_attributePicklist, path_attributePicklist);
5177
+ const referencepath_attributePicklistValidationError = validate$d(obj_attributePicklist, path_attributePicklist);
5153
5178
  if (referencepath_attributePicklistValidationError !== null) {
5154
5179
  let message = 'Object doesn\'t match ConfiguratorAttributePicklistOutputRepresentation (at "' + path_attributePicklist + '")\n';
5155
5180
  message += referencepath_attributePicklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5328,7 +5353,7 @@ function validate$b(obj, path = 'ConfiguratorAttributeOutputRepresentation') {
5328
5353
  return v_error === undefined ? null : v_error;
5329
5354
  }
5330
5355
 
5331
- function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
5356
+ function validate$b(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentation') {
5332
5357
  const v_error = (() => {
5333
5358
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5334
5359
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5342,7 +5367,7 @@ function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
5342
5367
  for (let i = 0; i < obj_attributes.length; i++) {
5343
5368
  const obj_attributes_item = obj_attributes[i];
5344
5369
  const path_attributes_item = path_attributes + '[' + i + ']';
5345
- 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);
5346
5371
  if (referencepath_attributes_itemValidationError !== null) {
5347
5372
  let message = 'Object doesn\'t match ConfiguratorAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
5348
5373
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5403,7 +5428,7 @@ function validate$a(obj, path = 'ConfiguratorAttributeCategoryOutputRepresentati
5403
5428
  return v_error === undefined ? null : v_error;
5404
5429
  }
5405
5430
 
5406
- function validate$9(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
5431
+ function validate$a(obj, path = 'ConfiguratorPricingModelOutputRepresentation') {
5407
5432
  const v_error = (() => {
5408
5433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5409
5434
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5454,7 +5479,7 @@ function validate$9(obj, path = 'ConfiguratorPricingModelOutputRepresentation')
5454
5479
  return v_error === undefined ? null : v_error;
5455
5480
  }
5456
5481
 
5457
- function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5482
+ function validate$9(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5458
5483
  const v_error = (() => {
5459
5484
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5460
5485
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5487,6 +5512,13 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5487
5512
  return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
5488
5513
  }
5489
5514
  }
5515
+ if (obj.isDerived !== undefined) {
5516
+ const obj_isDerived = obj.isDerived;
5517
+ const path_isDerived = path + '.isDerived';
5518
+ if (typeof obj_isDerived !== 'boolean') {
5519
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isDerived + '" (at "' + path_isDerived + '")');
5520
+ }
5521
+ }
5490
5522
  if (obj.isSelected !== undefined) {
5491
5523
  const obj_isSelected = obj.isSelected;
5492
5524
  const path_isSelected = path + '.isSelected';
@@ -5511,7 +5543,7 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5511
5543
  if (obj.pricingModel !== undefined) {
5512
5544
  const obj_pricingModel = obj.pricingModel;
5513
5545
  const path_pricingModel = path + '.pricingModel';
5514
- const referencepath_pricingModelValidationError = validate$9(obj_pricingModel, path_pricingModel);
5546
+ const referencepath_pricingModelValidationError = validate$a(obj_pricingModel, path_pricingModel);
5515
5547
  if (referencepath_pricingModelValidationError !== null) {
5516
5548
  let message = 'Object doesn\'t match ConfiguratorPricingModelOutputRepresentation (at "' + path_pricingModel + '")\n';
5517
5549
  message += referencepath_pricingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5525,7 +5557,7 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5525
5557
  return v_error === undefined ? null : v_error;
5526
5558
  }
5527
5559
 
5528
- function validate$7(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
5560
+ function validate$8(obj, path = 'ConfiguratorProductClassificationOutputRepresentation') {
5529
5561
  const v_error = (() => {
5530
5562
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5531
5563
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5541,7 +5573,7 @@ function validate$7(obj, path = 'ConfiguratorProductClassificationOutputRepresen
5541
5573
  return v_error === undefined ? null : v_error;
5542
5574
  }
5543
5575
 
5544
- function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
5576
+ function validate$7(obj, path = 'ConfiguratorProductComponentGroupOutputRepresentation') {
5545
5577
  const v_error = (() => {
5546
5578
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5547
5579
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5555,7 +5587,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5555
5587
  for (let i = 0; i < obj_classifications.length; i++) {
5556
5588
  const obj_classifications_item = obj_classifications[i];
5557
5589
  const path_classifications_item = path_classifications + '[' + i + ']';
5558
- 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);
5559
5591
  if (referencepath_classifications_itemValidationError !== null) {
5560
5592
  let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_classifications_item + '")\n';
5561
5593
  message += referencepath_classifications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5579,7 +5611,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5579
5611
  for (let i = 0; i < obj_components.length; i++) {
5580
5612
  const obj_components_item = obj_components[i];
5581
5613
  const path_components_item = path_components + '[' + i + ']';
5582
- 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);
5583
5615
  if (referencepath_components_itemValidationError !== null) {
5584
5616
  let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_components_item + '")\n';
5585
5617
  message += referencepath_components_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5640,7 +5672,7 @@ function validate$6(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
5640
5672
  return v_error === undefined ? null : v_error;
5641
5673
  }
5642
5674
 
5643
- function validate$5(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
5675
+ function validate$6(obj, path = 'ConfiguratorProductRelatedComponentOutputRepresentation') {
5644
5676
  const v_error = (() => {
5645
5677
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5646
5678
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5756,7 +5788,7 @@ function validate$5(obj, path = 'ConfiguratorProductRelatedComponentOutputRepres
5756
5788
  return v_error === undefined ? null : v_error;
5757
5789
  }
5758
5790
 
5759
- function validate$4(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
5791
+ function validate$5(obj, path = 'ConfiguratorProductSellingModelOutputRepresentation') {
5760
5792
  const v_error = (() => {
5761
5793
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5762
5794
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5807,7 +5839,7 @@ function validate$4(obj, path = 'ConfiguratorProductSellingModelOutputRepresenta
5807
5839
  return v_error === undefined ? null : v_error;
5808
5840
  }
5809
5841
 
5810
- function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
5842
+ function validate$4(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepresentation') {
5811
5843
  const v_error = (() => {
5812
5844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5813
5845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5829,7 +5861,7 @@ function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
5829
5861
  if (obj.productSellingModel !== undefined) {
5830
5862
  const obj_productSellingModel = obj.productSellingModel;
5831
5863
  const path_productSellingModel = path + '.productSellingModel';
5832
- const referencepath_productSellingModelValidationError = validate$4(obj_productSellingModel, path_productSellingModel);
5864
+ const referencepath_productSellingModelValidationError = validate$5(obj_productSellingModel, path_productSellingModel);
5833
5865
  if (referencepath_productSellingModelValidationError !== null) {
5834
5866
  let message = 'Object doesn\'t match ConfiguratorProductSellingModelOutputRepresentation (at "' + path_productSellingModel + '")\n';
5835
5867
  message += referencepath_productSellingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5847,7 +5879,7 @@ function validate$3(obj, path = 'ConfiguratorProductSellingModelOptionOutputRepr
5847
5879
  return v_error === undefined ? null : v_error;
5848
5880
  }
5849
5881
 
5850
- function validate$2(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
5882
+ function validate$3(obj, path = 'ConfiguratorQualificationContextOutputRepresentation') {
5851
5883
  const v_error = (() => {
5852
5884
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5853
5885
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5870,7 +5902,7 @@ function validate$2(obj, path = 'ConfiguratorQualificationContextOutputRepresent
5870
5902
  return v_error === undefined ? null : v_error;
5871
5903
  }
5872
5904
 
5873
- function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation') {
5905
+ function validate$2(obj, path = 'ConfiguratorProductCatalogOutputRepresentation') {
5874
5906
  const v_error = (() => {
5875
5907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5876
5908
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5884,7 +5916,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
5884
5916
  for (let i = 0; i < obj_additionalFields.length; i++) {
5885
5917
  const obj_additionalFields_item = obj_additionalFields[i];
5886
5918
  const path_additionalFields_item = path_additionalFields + '[' + i + ']';
5887
- 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);
5888
5920
  if (referencepath_additionalFields_itemValidationError !== null) {
5889
5921
  let message = 'Object doesn\'t match ConfiguratorAdditionalFieldsOutputRepresentation (at "' + path_additionalFields_item + '")\n';
5890
5922
  message += referencepath_additionalFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5901,7 +5933,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
5901
5933
  for (let i = 0; i < obj_attributeCategories.length; i++) {
5902
5934
  const obj_attributeCategories_item = obj_attributeCategories[i];
5903
5935
  const path_attributeCategories_item = path_attributeCategories + '[' + i + ']';
5904
- 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);
5905
5937
  if (referencepath_attributeCategories_itemValidationError !== null) {
5906
5938
  let message = 'Object doesn\'t match ConfiguratorAttributeCategoryOutputRepresentation (at "' + path_attributeCategories_item + '")\n';
5907
5939
  message += referencepath_attributeCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6023,7 +6055,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6023
6055
  for (let i = 0; i < obj_prices.length; i++) {
6024
6056
  const obj_prices_item = obj_prices[i];
6025
6057
  const path_prices_item = path_prices + '[' + i + ']';
6026
- 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);
6027
6059
  if (referencepath_prices_itemValidationError !== null) {
6028
6060
  let message = 'Object doesn\'t match ConfiguratorPriceOutputRepresentation (at "' + path_prices_item + '")\n';
6029
6061
  message += referencepath_prices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6034,7 +6066,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6034
6066
  if (obj.productClassification !== undefined) {
6035
6067
  const obj_productClassification = obj.productClassification;
6036
6068
  const path_productClassification = path + '.productClassification';
6037
- const referencepath_productClassificationValidationError = validate$7(obj_productClassification, path_productClassification);
6069
+ const referencepath_productClassificationValidationError = validate$8(obj_productClassification, path_productClassification);
6038
6070
  if (referencepath_productClassificationValidationError !== null) {
6039
6071
  let message = 'Object doesn\'t match ConfiguratorProductClassificationOutputRepresentation (at "' + path_productClassification + '")\n';
6040
6072
  message += referencepath_productClassificationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6057,7 +6089,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6057
6089
  for (let i = 0; i < obj_productComponentGroups.length; i++) {
6058
6090
  const obj_productComponentGroups_item = obj_productComponentGroups[i];
6059
6091
  const path_productComponentGroups_item = path_productComponentGroups + '[' + i + ']';
6060
- 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);
6061
6093
  if (referencepath_productComponentGroups_itemValidationError !== null) {
6062
6094
  let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_productComponentGroups_item + '")\n';
6063
6095
  message += referencepath_productComponentGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6068,7 +6100,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6068
6100
  if (obj.productRelatedComponent !== undefined) {
6069
6101
  const obj_productRelatedComponent = obj.productRelatedComponent;
6070
6102
  const path_productRelatedComponent = path + '.productRelatedComponent';
6071
- const referencepath_productRelatedComponentValidationError = validate$5(obj_productRelatedComponent, path_productRelatedComponent);
6103
+ const referencepath_productRelatedComponentValidationError = validate$6(obj_productRelatedComponent, path_productRelatedComponent);
6072
6104
  if (referencepath_productRelatedComponentValidationError !== null) {
6073
6105
  let message = 'Object doesn\'t match ConfiguratorProductRelatedComponentOutputRepresentation (at "' + path_productRelatedComponent + '")\n';
6074
6106
  message += referencepath_productRelatedComponentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6084,7 +6116,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6084
6116
  for (let i = 0; i < obj_productSellingModelOptions.length; i++) {
6085
6117
  const obj_productSellingModelOptions_item = obj_productSellingModelOptions[i];
6086
6118
  const path_productSellingModelOptions_item = path_productSellingModelOptions + '[' + i + ']';
6087
- 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);
6088
6120
  if (referencepath_productSellingModelOptions_itemValidationError !== null) {
6089
6121
  let message = 'Object doesn\'t match ConfiguratorProductSellingModelOptionOutputRepresentation (at "' + path_productSellingModelOptions_item + '")\n';
6090
6122
  message += referencepath_productSellingModelOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6102,7 +6134,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6102
6134
  if (obj.qualificationContext !== undefined) {
6103
6135
  const obj_qualificationContext = obj.qualificationContext;
6104
6136
  const path_qualificationContext = path + '.qualificationContext';
6105
- const referencepath_qualificationContextValidationError = validate$2(obj_qualificationContext, path_qualificationContext);
6137
+ const referencepath_qualificationContextValidationError = validate$3(obj_qualificationContext, path_qualificationContext);
6106
6138
  if (referencepath_qualificationContextValidationError !== null) {
6107
6139
  let message = 'Object doesn\'t match ConfiguratorQualificationContextOutputRepresentation (at "' + path_qualificationContext + '")\n';
6108
6140
  message += referencepath_qualificationContextValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6120,9 +6152,9 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6120
6152
  return v_error === undefined ? null : v_error;
6121
6153
  }
6122
6154
 
6123
- const TTL = 1000;
6124
- const VERSION = "1e94956cf0691aeb2e892924e1798d6c";
6125
- function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6155
+ const TTL$1 = 1000;
6156
+ const VERSION$1 = "a9e74c89f83dab5ce88d601ec57daa71";
6157
+ function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
6126
6158
  const v_error = (() => {
6127
6159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6128
6160
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6136,7 +6168,7 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6136
6168
  for (let i = 0; i < obj_catalogProducts.length; i++) {
6137
6169
  const obj_catalogProducts_item = obj_catalogProducts[i];
6138
6170
  const path_catalogProducts_item = path_catalogProducts + '[' + i + ']';
6139
- 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);
6140
6172
  if (referencepath_catalogProducts_itemValidationError !== null) {
6141
6173
  let message = 'Object doesn\'t match ConfiguratorProductCatalogOutputRepresentation (at "' + path_catalogProducts_item + '")\n';
6142
6174
  message += referencepath_catalogProducts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6198,23 +6230,209 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6198
6230
  return new TypeError('Expected "defined" but received "' + typeof obj_transactionQualification + '" (at "' + path_transactionQualification + '")');
6199
6231
  }
6200
6232
  }
6233
+ if (obj.uiModifications !== undefined) {
6234
+ const obj_uiModifications = obj.uiModifications;
6235
+ const path_uiModifications = path + '.uiModifications';
6236
+ if (obj_uiModifications === undefined) {
6237
+ return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
6238
+ }
6239
+ }
6240
+ })();
6241
+ return v_error === undefined ? null : v_error;
6242
+ }
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
+ }
6201
6419
  })();
6202
6420
  return v_error === undefined ? null : v_error;
6203
6421
  }
6204
- const RepresentationType = 'ConfiguratorOutputRepresentation';
6422
+ const RepresentationType = 'ConfiguratorRuleOutputRepresentation';
6205
6423
  function keyBuilder(luvio, config) {
6206
- return keyPrefix + '::' + RepresentationType + ':' + config.contextId;
6424
+ return keyPrefix + '::' + RepresentationType + ':' + config.productConfigurationRuleId;
6207
6425
  }
6208
6426
  function keyBuilderFromType(luvio, object) {
6209
6427
  const keyParams = {
6210
- contextId: object.transactionContextId
6428
+ productConfigurationRuleId: object.productConfigurationRuleId
6211
6429
  };
6212
6430
  return keyBuilder(luvio, keyParams);
6213
6431
  }
6214
6432
  function normalize(input, existing, path, luvio, store, timestamp) {
6215
6433
  return input;
6216
6434
  }
6217
- const select$1 = function ConfiguratorOutputRepresentationSelect() {
6435
+ const select$2 = function ConfiguratorRuleOutputRepresentationSelect() {
6218
6436
  return {
6219
6437
  kind: 'Fragment',
6220
6438
  version: VERSION,
@@ -6228,7 +6446,7 @@ function equals(existing, incoming) {
6228
6446
  }
6229
6447
  return true;
6230
6448
  }
6231
- const ingest = function ConfiguratorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6449
+ const ingest = function ConfiguratorRuleOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6232
6450
  if (process.env.NODE_ENV !== 'production') {
6233
6451
  const validateError = validate(input);
6234
6452
  if (validateError !== null) {
@@ -6250,8 +6468,126 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
6250
6468
  });
6251
6469
  }
6252
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
+
6253
6589
  function select(luvio, params) {
6254
- return select$1();
6590
+ return select$2();
6255
6591
  }
6256
6592
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
6257
6593
  getTypeCacheKeys(storeKeyMap, luvio, response);
@@ -6277,7 +6613,7 @@ function createResourceRequest(config) {
6277
6613
  const headers = {};
6278
6614
  return {
6279
6615
  baseUri: '/services/data/v61.0',
6280
- basePath: '/connect/cpq/configurator/actions/configure',
6616
+ basePath: '/connect/cpq/configurator/actions/update-rule',
6281
6617
  method: 'post',
6282
6618
  body: config.body,
6283
6619
  urlParams: {},
@@ -6287,18 +6623,42 @@ function createResourceRequest(config) {
6287
6623
  };
6288
6624
  }
6289
6625
 
6290
- const adapterName = 'configure';
6291
- const configure_ConfigPropertyMetadata = [
6292
- 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 */),
6293
6639
  ];
6294
- const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, configure_ConfigPropertyMetadata);
6295
- const createResourceParams = /*#__PURE__*/ createResourceParams$b(configure_ConfigPropertyMetadata);
6640
+ const updateRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateRule_ConfigPropertyMetadata);
6641
+ const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateRule_ConfigPropertyMetadata);
6296
6642
  function typeCheckConfig(untrustedConfig) {
6297
6643
  const config = {};
6298
- const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
6299
- const referenceConfiguratorInputRepresentationValidationError = validate$f(untrustedConfig_configuratorInput);
6300
- if (referenceConfiguratorInputRepresentationValidationError === null) {
6301
- 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;
6302
6662
  }
6303
6663
  return config;
6304
6664
  }
@@ -6333,15 +6693,15 @@ function buildNetworkSnapshot(luvio, config, options) {
6333
6693
  throw response;
6334
6694
  });
6335
6695
  }
6336
- const configureAdapterFactory = (luvio) => {
6337
- return function configure(untrustedConfig) {
6338
- const config = validateAdapterConfig(untrustedConfig, configure_ConfigPropertyNames);
6696
+ const updateRuleAdapterFactory = (luvio) => {
6697
+ return function updateRule(untrustedConfig) {
6698
+ const config = validateAdapterConfig(untrustedConfig, updateRule_ConfigPropertyNames);
6339
6699
  // Invalid or incomplete config
6340
6700
  if (config === null) {
6341
- throw new Error('Invalid config for "configure"');
6701
+ throw new Error('Invalid config for "updateRule"');
6342
6702
  }
6343
6703
  return buildNetworkSnapshot(luvio, config);
6344
6704
  };
6345
6705
  };
6346
6706
 
6347
- 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 };