@salesforce/lds-adapters-industries-cpq 1.282.0 → 1.284.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 (38) hide show
  1. package/dist/es/es2018/industries-cpq.js +750 -205
  2. package/dist/es/es2018/types/src/generated/adapters/bulkProductDetails.d.ts +28 -0
  3. package/dist/es/es2018/types/src/generated/adapters/categoryDetails.d.ts +26 -0
  4. package/dist/es/es2018/types/src/generated/adapters/categoryList.d.ts +25 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createRule.d.ts +5 -3
  6. package/dist/es/es2018/types/src/generated/adapters/updateRule.d.ts +5 -3
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
  9. package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategories.d.ts +22 -0
  10. package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategoriesByCategoryId.d.ts +25 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectCpqConfiguratorActionsCreateRule.d.ts +5 -3
  12. package/dist/es/es2018/types/src/generated/resources/postConnectCpqConfiguratorActionsUpdateRule.d.ts +5 -3
  13. package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsBulk.d.ts +25 -0
  14. package/dist/es/es2018/types/src/generated/types/BulkProductDetailsInput.d.ts +65 -0
  15. package/dist/es/es2018/types/src/generated/types/CategoryDetailsInputRepresentation.d.ts +56 -0
  16. package/dist/es/es2018/types/src/generated/types/CategoryDetailsOutputRepresentation.d.ts +56 -0
  17. package/dist/es/es2018/types/src/generated/types/CategoryListInputRepresentation.d.ts +56 -0
  18. package/dist/es/es2018/types/src/generated/types/CategoryListOutputRepresentation.d.ts +57 -0
  19. package/dist/es/es2018/types/src/generated/types/CategoryOutputRepresentation.d.ts +50 -0
  20. package/dist/es/es2018/types/src/generated/types/ConditionInputRepresentation.d.ts +7 -4
  21. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleInputRepresentation.d.ts +13 -7
  22. package/dist/es/es2018/types/src/generated/types/ConfiguratorRuleOutputRepresentation.d.ts +10 -13
  23. package/dist/es/es2018/types/src/generated/types/CpqBaseBulkDetailsOutput.d.ts +51 -0
  24. package/dist/es/es2018/types/src/generated/types/ProductAttributeOutputRepresentation.d.ts +4 -1
  25. package/dist/es/es2018/types/src/generated/types/ProductDataInput.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/ProductDetailsInputRepresentation.d.ts +3 -3
  27. package/dist/es/es2018/types/src/generated/types/ProductDetailsOutputRepresentation.d.ts +4 -5
  28. package/dist/es/es2018/types/src/generated/types/ProductListInputRepresentation.d.ts +3 -3
  29. package/dist/es/es2018/types/src/generated/types/ProductListOutputRepresentation.d.ts +4 -5
  30. package/dist/es/es2018/types/src/generated/types/ProductOutputRepresentation.d.ts +4 -5
  31. package/dist/es/es2018/types/src/generated/types/RuleActionInputRepresentation.d.ts +6 -6
  32. package/dist/es/es2018/types/src/generated/types/RuleCriteriaInputRepresentation.d.ts +5 -5
  33. package/dist/es/es2018/types/src/generated/types/SearchProductsInputRepresentation.d.ts +4 -4
  34. package/dist/es/es2018/types/src/generated/types/SearchProductsOutputRepresentation.d.ts +4 -5
  35. package/package.json +4 -4
  36. package/sfdc/index.js +1367 -813
  37. package/src/raml/api.raml +386 -60
  38. package/src/raml/luvio.raml +17 -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$d, typeCheckConfig as typeCheckConfig$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$g, typeCheckConfig as typeCheckConfig$g, 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$M(obj, path = 'PreviewInputRepresentation') {
96
+ function validate$O(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$M(obj, path = 'PreviewInputRepresentation') {
153
153
  return v_error === undefined ? null : v_error;
154
154
  }
155
155
 
156
- const VERSION$i = "16ee7e6452adaa7a1a8e36a1238a4b85";
157
- function validate$L(obj, path = 'CpqMessageOutputRepresentation') {
156
+ const VERSION$j = "16ee7e6452adaa7a1a8e36a1238a4b85";
157
+ function validate$N(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$L(obj, path = 'CpqMessageOutputRepresentation') {
190
190
  })();
191
191
  return v_error === undefined ? null : v_error;
192
192
  }
193
- const select$v = function CpqMessageOutputRepresentationSelect() {
193
+ const select$z = function CpqMessageOutputRepresentationSelect() {
194
194
  return {
195
195
  kind: 'Fragment',
196
- version: VERSION$i,
196
+ version: VERSION$j,
197
197
  private: [],
198
198
  selections: [
199
199
  {
@@ -219,7 +219,7 @@ const select$v = function CpqMessageOutputRepresentationSelect() {
219
219
  ]
220
220
  };
221
221
  };
222
- function equals$i(existing, incoming) {
222
+ function equals$j(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$i(existing, incoming) {
275
275
  return true;
276
276
  }
277
277
 
278
- const VERSION$h = "2927abd89d0e76012000aa604b583b6d";
279
- function validate$K(obj, path = 'ApiStatusOutputRepresentation') {
278
+ const VERSION$i = "2927abd89d0e76012000aa604b583b6d";
279
+ function validate$M(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$K(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$L(obj_messages_item, path_messages_item);
293
+ const referencepath_messages_itemValidationError = validate$N(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$K(obj, path = 'ApiStatusOutputRepresentation') {
313
313
  })();
314
314
  return v_error === undefined ? null : v_error;
315
315
  }
316
- const select$u = function ApiStatusOutputRepresentationSelect() {
317
- const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$v();
316
+ const select$y = function ApiStatusOutputRepresentationSelect() {
317
+ const { selections: CpqMessageOutputRepresentation__selections, opaque: CpqMessageOutputRepresentation__opaque, } = select$z();
318
318
  return {
319
319
  kind: 'Fragment',
320
- version: VERSION$h,
320
+ version: VERSION$i,
321
321
  private: [],
322
322
  selections: [
323
323
  {
@@ -339,7 +339,7 @@ const select$u = function ApiStatusOutputRepresentationSelect() {
339
339
  ]
340
340
  };
341
341
  };
342
- function equals$h(existing, incoming) {
342
+ function equals$i(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$h(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$i(existing_messages_item, incoming_messages_item))) {
371
+ if (!(equals$j(existing_messages_item, incoming_messages_item))) {
372
372
  return false;
373
373
  }
374
374
  });
@@ -379,16 +379,16 @@ function equals$h(existing, incoming) {
379
379
  return true;
380
380
  }
381
381
 
382
- const TTL$8 = 1000;
383
- const VERSION$g = "0dec45c09b18523023bddd12cc806a3d";
384
- function validate$J(obj, path = 'CpqBaseListOutputRepresentation') {
382
+ const TTL$9 = 1000;
383
+ const VERSION$h = "0dec45c09b18523023bddd12cc806a3d";
384
+ function validate$L(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$K(obj_apiStatus, path_apiStatus);
391
+ const referencepath_apiStatusValidationError = validate$M(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$J(obj, path = 'CpqBaseListOutputRepresentation') {
442
442
  })();
443
443
  return v_error === undefined ? null : v_error;
444
444
  }
445
- const RepresentationType$9 = 'CpqBaseListOutputRepresentation';
446
- function keyBuilder$a(luvio, config) {
447
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
445
+ const RepresentationType$a = 'CpqBaseListOutputRepresentation';
446
+ function keyBuilder$b(luvio, config) {
447
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.message;
448
448
  }
449
- function keyBuilderFromType$8(luvio, object) {
449
+ function keyBuilderFromType$9(luvio, object) {
450
450
  const keyParams = {
451
451
  message: object.apiStatus.statusCode
452
452
  };
453
- return keyBuilder$a(luvio, keyParams);
453
+ return keyBuilder$b(luvio, keyParams);
454
454
  }
455
- function normalize$9(input, existing, path, luvio, store, timestamp) {
455
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
456
456
  return input;
457
457
  }
458
- const select$t = function CpqBaseListOutputRepresentationSelect() {
458
+ const select$x = function CpqBaseListOutputRepresentationSelect() {
459
459
  return {
460
460
  kind: 'Fragment',
461
- version: VERSION$g,
461
+ version: VERSION$h,
462
462
  private: [],
463
463
  opaque: true
464
464
  };
465
465
  };
466
- function equals$g(existing, incoming) {
466
+ function equals$h(existing, incoming) {
467
467
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
468
468
  return false;
469
469
  }
470
470
  return true;
471
471
  }
472
- const ingest$9 = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
472
+ const ingest$a = function CpqBaseListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
473
473
  if (process.env.NODE_ENV !== 'production') {
474
- const validateError = validate$J(input);
474
+ const validateError = validate$L(input);
475
475
  if (validateError !== null) {
476
476
  throw validateError;
477
477
  }
478
478
  }
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);
479
+ const key = keyBuilderFromType$9(luvio, input);
480
+ const ttlToUse = TTL$9;
481
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "cpq", VERSION$h, RepresentationType$a, equals$h);
482
482
  return createLink(key);
483
483
  };
484
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
484
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
485
485
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
486
- const rootKey = keyBuilderFromType$8(luvio, input);
486
+ const rootKey = keyBuilderFromType$9(luvio, input);
487
487
  rootKeySet.set(rootKey, {
488
488
  namespace: keyPrefix,
489
- representationName: RepresentationType$9,
489
+ representationName: RepresentationType$a,
490
490
  mergeable: false
491
491
  });
492
492
  }
493
493
 
494
- function select$s(luvio, params) {
495
- return select$t();
494
+ function select$w(luvio, params) {
495
+ return select$x();
496
496
  }
497
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
498
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
497
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
498
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
499
499
  }
500
- function ingestSuccess$c(luvio, resourceParams, response) {
500
+ function ingestSuccess$f(luvio, resourceParams, response) {
501
501
  const { body } = response;
502
- const key = keyBuilderFromType$8(luvio, body);
503
- luvio.storeIngest(key, ingest$9, body);
502
+ const key = keyBuilderFromType$9(luvio, body);
503
+ luvio.storeIngest(key, ingest$a, body);
504
504
  const snapshot = luvio.storeLookup({
505
505
  recordId: key,
506
- node: select$s(),
506
+ node: select$w(),
507
507
  variables: {},
508
508
  });
509
509
  if (process.env.NODE_ENV !== 'production') {
@@ -514,7 +514,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
514
514
  deepFreeze(snapshot.data);
515
515
  return snapshot;
516
516
  }
517
- function createResourceRequest$c(config) {
517
+ function createResourceRequest$f(config) {
518
518
  const headers = {};
519
519
  return {
520
520
  baseUri: '/services/data/v61.0',
@@ -528,45 +528,45 @@ function createResourceRequest$c(config) {
528
528
  };
529
529
  }
530
530
 
531
- const adapterName$c = 'preview';
531
+ const adapterName$f = 'preview';
532
532
  const preview_ConfigPropertyMetadata = [
533
533
  generateParamConfigMetadata('previewInput', true, 2 /* Body */, 4 /* Unsupported */),
534
534
  ];
535
- const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, preview_ConfigPropertyMetadata);
536
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(preview_ConfigPropertyMetadata);
537
- function typeCheckConfig$c(untrustedConfig) {
535
+ const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, preview_ConfigPropertyMetadata);
536
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(preview_ConfigPropertyMetadata);
537
+ function typeCheckConfig$f(untrustedConfig) {
538
538
  const config = {};
539
539
  const untrustedConfig_previewInput = untrustedConfig.previewInput;
540
- const referencePreviewInputRepresentationValidationError = validate$M(untrustedConfig_previewInput);
540
+ const referencePreviewInputRepresentationValidationError = validate$O(untrustedConfig_previewInput);
541
541
  if (referencePreviewInputRepresentationValidationError === null) {
542
542
  config.previewInput = untrustedConfig_previewInput;
543
543
  }
544
544
  return config;
545
545
  }
546
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
546
+ function validateAdapterConfig$f(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$c(untrustedConfig);
553
+ const config = typeCheckConfig$f(untrustedConfig);
554
554
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
555
555
  return null;
556
556
  }
557
557
  return config;
558
558
  }
559
- function buildNetworkSnapshot$c(luvio, config, options) {
560
- const resourceParams = createResourceParams$c(config);
561
- const request = createResourceRequest$c(resourceParams);
559
+ function buildNetworkSnapshot$f(luvio, config, options) {
560
+ const resourceParams = createResourceParams$f(config);
561
+ const request = createResourceRequest$f(resourceParams);
562
562
  return luvio.dispatchResourceRequest(request, options)
563
563
  .then((response) => {
564
564
  return luvio.handleSuccessResponse(() => {
565
- const snapshot = ingestSuccess$c(luvio, resourceParams, response);
565
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response);
566
566
  return luvio.storeBroadcast().then(() => snapshot);
567
567
  }, () => {
568
568
  const cache = new StoreKeyMap();
569
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
569
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
570
570
  return cache;
571
571
  });
572
572
  }, (response) => {
@@ -576,30 +576,25 @@ function buildNetworkSnapshot$c(luvio, config, options) {
576
576
  }
577
577
  const previewAdapterFactory = (luvio) => {
578
578
  return function preview(untrustedConfig) {
579
- const config = validateAdapterConfig$c(untrustedConfig, preview_ConfigPropertyNames);
579
+ const config = validateAdapterConfig$f(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$c(luvio, config);
584
+ return buildNetworkSnapshot$f(luvio, config);
585
585
  };
586
586
  };
587
587
 
588
- function validate$I(obj, path = 'ProductListInputRepresentation') {
588
+ function validate$K(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 + '")');
592
592
  }
593
- const obj_additionalFields = obj.additionalFields;
594
- const path_additionalFields = path + '.additionalFields';
595
- if (!ArrayIsArray(obj_additionalFields)) {
596
- return new TypeError('Expected "array" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
597
- }
598
- for (let i = 0; i < obj_additionalFields.length; i++) {
599
- const obj_additionalFields_item = obj_additionalFields[i];
600
- const path_additionalFields_item = path_additionalFields + '[' + i + ']';
601
- if (typeof obj_additionalFields_item !== 'string') {
602
- return new TypeError('Expected "string" but received "' + typeof obj_additionalFields_item + '" (at "' + path_additionalFields_item + '")');
593
+ if (obj.additionalFields !== undefined) {
594
+ const obj_additionalFields = obj.additionalFields;
595
+ const path_additionalFields = path + '.additionalFields';
596
+ if (typeof obj_additionalFields !== 'object' || ArrayIsArray(obj_additionalFields) || obj_additionalFields === null) {
597
+ return new TypeError('Expected "object" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
603
598
  }
604
599
  }
605
600
  if (obj.catalogId !== undefined) {
@@ -681,19 +676,19 @@ function validate$I(obj, path = 'ProductListInputRepresentation') {
681
676
  return v_error === undefined ? null : v_error;
682
677
  }
683
678
 
684
- function select$r(luvio, params) {
685
- return select$t();
679
+ function select$v(luvio, params) {
680
+ return select$x();
686
681
  }
687
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
688
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
682
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
683
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
689
684
  }
690
- function ingestSuccess$b(luvio, resourceParams, response) {
685
+ function ingestSuccess$e(luvio, resourceParams, response) {
691
686
  const { body } = response;
692
- const key = keyBuilderFromType$8(luvio, body);
693
- luvio.storeIngest(key, ingest$9, body);
687
+ const key = keyBuilderFromType$9(luvio, body);
688
+ luvio.storeIngest(key, ingest$a, body);
694
689
  const snapshot = luvio.storeLookup({
695
690
  recordId: key,
696
- node: select$r(),
691
+ node: select$v(),
697
692
  variables: {},
698
693
  });
699
694
  if (process.env.NODE_ENV !== 'production') {
@@ -704,7 +699,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
704
699
  deepFreeze(snapshot.data);
705
700
  return snapshot;
706
701
  }
707
- function createResourceRequest$b(config) {
702
+ function createResourceRequest$e(config) {
708
703
  const headers = {};
709
704
  return {
710
705
  baseUri: '/services/data/v61.0',
@@ -718,45 +713,45 @@ function createResourceRequest$b(config) {
718
713
  };
719
714
  }
720
715
 
721
- const adapterName$b = 'productList';
716
+ const adapterName$e = 'productList';
722
717
  const productList_ConfigPropertyMetadata = [
723
718
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
724
719
  ];
725
- const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, productList_ConfigPropertyMetadata);
726
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(productList_ConfigPropertyMetadata);
727
- function typeCheckConfig$b(untrustedConfig) {
720
+ const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, productList_ConfigPropertyMetadata);
721
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(productList_ConfigPropertyMetadata);
722
+ function typeCheckConfig$e(untrustedConfig) {
728
723
  const config = {};
729
724
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
730
- const referenceProductListInputRepresentationValidationError = validate$I(untrustedConfig_requestBody);
725
+ const referenceProductListInputRepresentationValidationError = validate$K(untrustedConfig_requestBody);
731
726
  if (referenceProductListInputRepresentationValidationError === null) {
732
727
  config.requestBody = untrustedConfig_requestBody;
733
728
  }
734
729
  return config;
735
730
  }
736
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
731
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
737
732
  if (!untrustedIsObject(untrustedConfig)) {
738
733
  return null;
739
734
  }
740
735
  if (process.env.NODE_ENV !== 'production') {
741
736
  validateConfig(untrustedConfig, configPropertyNames);
742
737
  }
743
- const config = typeCheckConfig$b(untrustedConfig);
738
+ const config = typeCheckConfig$e(untrustedConfig);
744
739
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
745
740
  return null;
746
741
  }
747
742
  return config;
748
743
  }
749
- function buildNetworkSnapshot$b(luvio, config, options) {
750
- const resourceParams = createResourceParams$b(config);
751
- const request = createResourceRequest$b(resourceParams);
744
+ function buildNetworkSnapshot$e(luvio, config, options) {
745
+ const resourceParams = createResourceParams$e(config);
746
+ const request = createResourceRequest$e(resourceParams);
752
747
  return luvio.dispatchResourceRequest(request, options)
753
748
  .then((response) => {
754
749
  return luvio.handleSuccessResponse(() => {
755
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
750
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response);
756
751
  return luvio.storeBroadcast().then(() => snapshot);
757
752
  }, () => {
758
753
  const cache = new StoreKeyMap();
759
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
754
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
760
755
  return cache;
761
756
  });
762
757
  }, (response) => {
@@ -766,20 +761,27 @@ function buildNetworkSnapshot$b(luvio, config, options) {
766
761
  }
767
762
  const productListAdapterFactory = (luvio) => {
768
763
  return function productList(untrustedConfig) {
769
- const config = validateAdapterConfig$b(untrustedConfig, productList_ConfigPropertyNames);
764
+ const config = validateAdapterConfig$e(untrustedConfig, productList_ConfigPropertyNames);
770
765
  // Invalid or incomplete config
771
766
  if (config === null) {
772
767
  throw new Error('Invalid config for "productList"');
773
768
  }
774
- return buildNetworkSnapshot$b(luvio, config);
769
+ return buildNetworkSnapshot$e(luvio, config);
775
770
  };
776
771
  };
777
772
 
778
- function validate$H(obj, path = 'SearchProductsInputRepresentation') {
773
+ function validate$J(obj, path = 'SearchProductsInputRepresentation') {
779
774
  const v_error = (() => {
780
775
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
781
776
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
782
777
  }
778
+ if (obj.additionalFields !== undefined) {
779
+ const obj_additionalFields = obj.additionalFields;
780
+ const path_additionalFields = path + '.additionalFields';
781
+ if (typeof obj_additionalFields !== 'object' || ArrayIsArray(obj_additionalFields) || obj_additionalFields === null) {
782
+ return new TypeError('Expected "object" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
783
+ }
784
+ }
783
785
  if (obj.catalogId !== undefined) {
784
786
  const obj_catalogId = obj.catalogId;
785
787
  const path_catalogId = path + '.catalogId';
@@ -801,20 +803,6 @@ function validate$H(obj, path = 'SearchProductsInputRepresentation') {
801
803
  return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
802
804
  }
803
805
  }
804
- if (obj.customFields !== undefined) {
805
- const obj_customFields = obj.customFields;
806
- const path_customFields = path + '.customFields';
807
- if (!ArrayIsArray(obj_customFields)) {
808
- return new TypeError('Expected "array" but received "' + typeof obj_customFields + '" (at "' + path_customFields + '")');
809
- }
810
- for (let i = 0; i < obj_customFields.length; i++) {
811
- const obj_customFields_item = obj_customFields[i];
812
- const path_customFields_item = path_customFields + '[' + i + ']';
813
- if (typeof obj_customFields_item !== 'string') {
814
- return new TypeError('Expected "string" but received "' + typeof obj_customFields_item + '" (at "' + path_customFields_item + '")');
815
- }
816
- }
817
- }
818
806
  if (obj.filter !== undefined) {
819
807
  const obj_filter = obj.filter;
820
808
  const path_filter = path + '.filter';
@@ -873,19 +861,19 @@ function validate$H(obj, path = 'SearchProductsInputRepresentation') {
873
861
  return v_error === undefined ? null : v_error;
874
862
  }
875
863
 
876
- function select$q(luvio, params) {
877
- return select$t();
864
+ function select$u(luvio, params) {
865
+ return select$x();
878
866
  }
879
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
880
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
867
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
868
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
881
869
  }
882
- function ingestSuccess$a(luvio, resourceParams, response) {
870
+ function ingestSuccess$d(luvio, resourceParams, response) {
883
871
  const { body } = response;
884
- const key = keyBuilderFromType$8(luvio, body);
885
- luvio.storeIngest(key, ingest$9, body);
872
+ const key = keyBuilderFromType$9(luvio, body);
873
+ luvio.storeIngest(key, ingest$a, body);
886
874
  const snapshot = luvio.storeLookup({
887
875
  recordId: key,
888
- node: select$q(),
876
+ node: select$u(),
889
877
  variables: {},
890
878
  });
891
879
  if (process.env.NODE_ENV !== 'production') {
@@ -896,7 +884,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
896
884
  deepFreeze(snapshot.data);
897
885
  return snapshot;
898
886
  }
899
- function createResourceRequest$a(config) {
887
+ function createResourceRequest$d(config) {
900
888
  const headers = {};
901
889
  return {
902
890
  baseUri: '/services/data/v61.0',
@@ -910,45 +898,45 @@ function createResourceRequest$a(config) {
910
898
  };
911
899
  }
912
900
 
913
- const adapterName$a = 'searchProductList';
901
+ const adapterName$d = 'searchProductList';
914
902
  const searchProductList_ConfigPropertyMetadata = [
915
903
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
916
904
  ];
917
- const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, searchProductList_ConfigPropertyMetadata);
918
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(searchProductList_ConfigPropertyMetadata);
919
- function typeCheckConfig$a(untrustedConfig) {
905
+ const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, searchProductList_ConfigPropertyMetadata);
906
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(searchProductList_ConfigPropertyMetadata);
907
+ function typeCheckConfig$d(untrustedConfig) {
920
908
  const config = {};
921
909
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
922
- const referenceSearchProductsInputRepresentationValidationError = validate$H(untrustedConfig_requestBody);
910
+ const referenceSearchProductsInputRepresentationValidationError = validate$J(untrustedConfig_requestBody);
923
911
  if (referenceSearchProductsInputRepresentationValidationError === null) {
924
912
  config.requestBody = untrustedConfig_requestBody;
925
913
  }
926
914
  return config;
927
915
  }
928
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
916
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
929
917
  if (!untrustedIsObject(untrustedConfig)) {
930
918
  return null;
931
919
  }
932
920
  if (process.env.NODE_ENV !== 'production') {
933
921
  validateConfig(untrustedConfig, configPropertyNames);
934
922
  }
935
- const config = typeCheckConfig$a(untrustedConfig);
923
+ const config = typeCheckConfig$d(untrustedConfig);
936
924
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
937
925
  return null;
938
926
  }
939
927
  return config;
940
928
  }
941
- function buildNetworkSnapshot$a(luvio, config, options) {
942
- const resourceParams = createResourceParams$a(config);
943
- const request = createResourceRequest$a(resourceParams);
929
+ function buildNetworkSnapshot$d(luvio, config, options) {
930
+ const resourceParams = createResourceParams$d(config);
931
+ const request = createResourceRequest$d(resourceParams);
944
932
  return luvio.dispatchResourceRequest(request, options)
945
933
  .then((response) => {
946
934
  return luvio.handleSuccessResponse(() => {
947
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
935
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
948
936
  return luvio.storeBroadcast().then(() => snapshot);
949
937
  }, () => {
950
938
  const cache = new StoreKeyMap();
951
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
939
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
952
940
  return cache;
953
941
  });
954
942
  }, (response) => {
@@ -958,12 +946,261 @@ function buildNetworkSnapshot$a(luvio, config, options) {
958
946
  }
959
947
  const searchProductListAdapterFactory = (luvio) => {
960
948
  return function searchProductList(untrustedConfig) {
961
- const config = validateAdapterConfig$a(untrustedConfig, searchProductList_ConfigPropertyNames);
949
+ const config = validateAdapterConfig$d(untrustedConfig, searchProductList_ConfigPropertyNames);
962
950
  // Invalid or incomplete config
963
951
  if (config === null) {
964
952
  throw new Error('Invalid config for "searchProductList"');
965
953
  }
966
- return buildNetworkSnapshot$a(luvio, config);
954
+ return buildNetworkSnapshot$d(luvio, config);
955
+ };
956
+ };
957
+
958
+ function validate$I(obj, path = 'ProductDataInput') {
959
+ const v_error = (() => {
960
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
961
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
962
+ }
963
+ const obj_productId = obj.productId;
964
+ const path_productId = path + '.productId';
965
+ if (typeof obj_productId !== 'string') {
966
+ return new TypeError('Expected "string" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
967
+ }
968
+ if (obj.productSellingModelId !== undefined) {
969
+ const obj_productSellingModelId = obj.productSellingModelId;
970
+ const path_productSellingModelId = path + '.productSellingModelId';
971
+ if (typeof obj_productSellingModelId !== 'string') {
972
+ return new TypeError('Expected "string" but received "' + typeof obj_productSellingModelId + '" (at "' + path_productSellingModelId + '")');
973
+ }
974
+ }
975
+ })();
976
+ return v_error === undefined ? null : v_error;
977
+ }
978
+
979
+ const TTL$8 = 1000;
980
+ const VERSION$g = "7d789beb75307985bad3ddf01d82b242";
981
+ function validate$H(obj, path = 'CpqBaseBulkDetailsOutput') {
982
+ const v_error = (() => {
983
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
984
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
985
+ }
986
+ const obj_apiStatus = obj.apiStatus;
987
+ const path_apiStatus = path + '.apiStatus';
988
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
989
+ if (referencepath_apiStatusValidationError !== null) {
990
+ let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
991
+ message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
992
+ return new TypeError(message);
993
+ }
994
+ if (obj.contextId !== undefined) {
995
+ const obj_contextId = obj.contextId;
996
+ const path_contextId = path + '.contextId';
997
+ if (typeof obj_contextId !== 'string') {
998
+ return new TypeError('Expected "string" but received "' + typeof obj_contextId + '" (at "' + path_contextId + '")');
999
+ }
1000
+ }
1001
+ if (obj.correlationId !== undefined) {
1002
+ const obj_correlationId = obj.correlationId;
1003
+ const path_correlationId = path + '.correlationId';
1004
+ if (typeof obj_correlationId !== 'string') {
1005
+ return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
1006
+ }
1007
+ }
1008
+ const obj_result = obj.result;
1009
+ const path_result = path + '.result';
1010
+ if (!ArrayIsArray(obj_result)) {
1011
+ return new TypeError('Expected "array" but received "' + typeof obj_result + '" (at "' + path_result + '")');
1012
+ }
1013
+ for (let i = 0; i < obj_result.length; i++) {
1014
+ const obj_result_item = obj_result[i];
1015
+ const path_result_item = path_result + '[' + i + ']';
1016
+ if (typeof obj_result_item !== 'object' || ArrayIsArray(obj_result_item) || obj_result_item === null) {
1017
+ return new TypeError('Expected "object" but received "' + typeof obj_result_item + '" (at "' + path_result_item + '")');
1018
+ }
1019
+ }
1020
+ if (obj.userContext !== undefined) {
1021
+ const obj_userContext = obj.userContext;
1022
+ const path_userContext = path + '.userContext';
1023
+ if (typeof obj_userContext !== 'object' || ArrayIsArray(obj_userContext) || obj_userContext === null) {
1024
+ return new TypeError('Expected "object" but received "' + typeof obj_userContext + '" (at "' + path_userContext + '")');
1025
+ }
1026
+ }
1027
+ })();
1028
+ return v_error === undefined ? null : v_error;
1029
+ }
1030
+ const RepresentationType$9 = 'CpqBaseBulkDetailsOutput';
1031
+ function keyBuilder$a(luvio, config) {
1032
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
1033
+ }
1034
+ function keyBuilderFromType$8(luvio, object) {
1035
+ const keyParams = {
1036
+ message: object.apiStatus.statusCode
1037
+ };
1038
+ return keyBuilder$a(luvio, keyParams);
1039
+ }
1040
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1041
+ return input;
1042
+ }
1043
+ const select$t = function CpqBaseBulkDetailsOutputSelect() {
1044
+ return {
1045
+ kind: 'Fragment',
1046
+ version: VERSION$g,
1047
+ private: [],
1048
+ opaque: true
1049
+ };
1050
+ };
1051
+ function equals$g(existing, incoming) {
1052
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1053
+ return false;
1054
+ }
1055
+ return true;
1056
+ }
1057
+ const ingest$9 = function CpqBaseBulkDetailsOutputIngest(input, path, luvio, store, timestamp) {
1058
+ if (process.env.NODE_ENV !== 'production') {
1059
+ const validateError = validate$H(input);
1060
+ if (validateError !== null) {
1061
+ throw validateError;
1062
+ }
1063
+ }
1064
+ const key = keyBuilderFromType$8(luvio, input);
1065
+ const ttlToUse = TTL$8;
1066
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "cpq", VERSION$g, RepresentationType$9, equals$g);
1067
+ return createLink(key);
1068
+ };
1069
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1070
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1071
+ const rootKey = keyBuilderFromType$8(luvio, input);
1072
+ rootKeySet.set(rootKey, {
1073
+ namespace: keyPrefix,
1074
+ representationName: RepresentationType$9,
1075
+ mergeable: false
1076
+ });
1077
+ }
1078
+
1079
+ function select$s(luvio, params) {
1080
+ return select$t();
1081
+ }
1082
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1083
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1084
+ }
1085
+ function ingestSuccess$c(luvio, resourceParams, response) {
1086
+ const { body } = response;
1087
+ const key = keyBuilderFromType$8(luvio, body);
1088
+ luvio.storeIngest(key, ingest$9, body);
1089
+ const snapshot = luvio.storeLookup({
1090
+ recordId: key,
1091
+ node: select$s(),
1092
+ variables: {},
1093
+ });
1094
+ if (process.env.NODE_ENV !== 'production') {
1095
+ if (snapshot.state !== 'Fulfilled') {
1096
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1097
+ }
1098
+ }
1099
+ deepFreeze(snapshot.data);
1100
+ return snapshot;
1101
+ }
1102
+ function createResourceRequest$c(config) {
1103
+ const headers = {};
1104
+ return {
1105
+ baseUri: '/services/data/v61.0',
1106
+ basePath: '/connect/cpq/products/bulk',
1107
+ method: 'post',
1108
+ body: config.body,
1109
+ urlParams: {},
1110
+ queryParams: {},
1111
+ headers,
1112
+ priority: 'normal',
1113
+ };
1114
+ }
1115
+
1116
+ const adapterName$c = 'bulkProductDetails';
1117
+ const bulkProductDetails_ConfigPropertyMetadata = [
1118
+ generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
1119
+ generateParamConfigMetadata('catalogId', true, 2 /* Body */, 0 /* String */),
1120
+ generateParamConfigMetadata('correlationId', true, 2 /* Body */, 0 /* String */),
1121
+ generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
1122
+ generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
1123
+ generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
1124
+ generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
1125
+ generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
1126
+ generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
1127
+ generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
1128
+ generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
1129
+ generateParamConfigMetadata('pricingProcedure', false, 2 /* Body */, 0 /* String */),
1130
+ generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
1131
+ ];
1132
+ const bulkProductDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, bulkProductDetails_ConfigPropertyMetadata);
1133
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(bulkProductDetails_ConfigPropertyMetadata);
1134
+ function typeCheckConfig$c(untrustedConfig) {
1135
+ const config = {};
1136
+ typeCheckConfig$g(untrustedConfig, config, bulkProductDetails_ConfigPropertyMetadata);
1137
+ const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
1138
+ if (untrustedIsObject(untrustedConfig_additionalFields)) {
1139
+ const untrustedConfig_additionalFields_object = {};
1140
+ if (untrustedConfig_additionalFields_object !== undefined && Object.keys(untrustedConfig_additionalFields_object).length >= 0) {
1141
+ config.additionalFields = untrustedConfig_additionalFields_object;
1142
+ }
1143
+ }
1144
+ const untrustedConfig_productData = untrustedConfig.productData;
1145
+ if (ArrayIsArray$1(untrustedConfig_productData)) {
1146
+ const untrustedConfig_productData_array = [];
1147
+ for (let i = 0, arrayLength = untrustedConfig_productData.length; i < arrayLength; i++) {
1148
+ const untrustedConfig_productData_item = untrustedConfig_productData[i];
1149
+ const referenceProductDataInputValidationError = validate$I(untrustedConfig_productData_item);
1150
+ if (referenceProductDataInputValidationError === null) {
1151
+ untrustedConfig_productData_array.push(untrustedConfig_productData_item);
1152
+ }
1153
+ }
1154
+ config.productData = untrustedConfig_productData_array;
1155
+ }
1156
+ const untrustedConfig_userContext = untrustedConfig.userContext;
1157
+ if (untrustedIsObject(untrustedConfig_userContext)) {
1158
+ const untrustedConfig_userContext_object = {};
1159
+ if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1160
+ config.userContext = untrustedConfig_userContext_object;
1161
+ }
1162
+ }
1163
+ return config;
1164
+ }
1165
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1166
+ if (!untrustedIsObject(untrustedConfig)) {
1167
+ return null;
1168
+ }
1169
+ if (process.env.NODE_ENV !== 'production') {
1170
+ validateConfig(untrustedConfig, configPropertyNames);
1171
+ }
1172
+ const config = typeCheckConfig$c(untrustedConfig);
1173
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1174
+ return null;
1175
+ }
1176
+ return config;
1177
+ }
1178
+ function buildNetworkSnapshot$c(luvio, config, options) {
1179
+ const resourceParams = createResourceParams$c(config);
1180
+ const request = createResourceRequest$c(resourceParams);
1181
+ return luvio.dispatchResourceRequest(request, options)
1182
+ .then((response) => {
1183
+ return luvio.handleSuccessResponse(() => {
1184
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1185
+ return luvio.storeBroadcast().then(() => snapshot);
1186
+ }, () => {
1187
+ const cache = new StoreKeyMap();
1188
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1189
+ return cache;
1190
+ });
1191
+ }, (response) => {
1192
+ deepFreeze(response);
1193
+ throw response;
1194
+ });
1195
+ }
1196
+ const bulkProductDetailsAdapterFactory = (luvio) => {
1197
+ return function bulkProductDetails(untrustedConfig) {
1198
+ const config = validateAdapterConfig$c(untrustedConfig, bulkProductDetails_ConfigPropertyNames);
1199
+ // Invalid or incomplete config
1200
+ if (config === null) {
1201
+ throw new Error('Invalid config for "bulkProductDetails"');
1202
+ }
1203
+ return buildNetworkSnapshot$c(luvio, config);
967
1204
  };
968
1205
  };
969
1206
 
@@ -975,15 +1212,8 @@ function validate$G(obj, path = 'ProductDetailsInputRepresentation') {
975
1212
  if (obj.additionalFields !== undefined) {
976
1213
  const obj_additionalFields = obj.additionalFields;
977
1214
  const path_additionalFields = path + '.additionalFields';
978
- if (!ArrayIsArray(obj_additionalFields)) {
979
- return new TypeError('Expected "array" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
980
- }
981
- for (let i = 0; i < obj_additionalFields.length; i++) {
982
- const obj_additionalFields_item = obj_additionalFields[i];
983
- const path_additionalFields_item = path_additionalFields + '[' + i + ']';
984
- if (typeof obj_additionalFields_item !== 'string') {
985
- return new TypeError('Expected "string" but received "' + typeof obj_additionalFields_item + '" (at "' + path_additionalFields_item + '")');
986
- }
1215
+ if (typeof obj_additionalFields !== 'object' || ArrayIsArray(obj_additionalFields) || obj_additionalFields === null) {
1216
+ return new TypeError('Expected "object" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
987
1217
  }
988
1218
  }
989
1219
  if (obj.catalogId !== undefined) {
@@ -1032,7 +1262,7 @@ function validate$F(obj, path = 'CpqBaseDetailsOutputRepresentation') {
1032
1262
  }
1033
1263
  const obj_apiStatus = obj.apiStatus;
1034
1264
  const path_apiStatus = path + '.apiStatus';
1035
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
1265
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
1036
1266
  if (referencepath_apiStatusValidationError !== null) {
1037
1267
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
1038
1268
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1064,7 +1294,7 @@ function keyBuilderFromType$7(luvio, object) {
1064
1294
  function normalize$8(input, existing, path, luvio, store, timestamp) {
1065
1295
  return input;
1066
1296
  }
1067
- const select$p = function CpqBaseDetailsOutputRepresentationSelect() {
1297
+ const select$r = function CpqBaseDetailsOutputRepresentationSelect() {
1068
1298
  return {
1069
1299
  kind: 'Fragment',
1070
1300
  version: VERSION$f,
@@ -1100,19 +1330,19 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1100
1330
  });
1101
1331
  }
1102
1332
 
1103
- function select$o(luvio, params) {
1104
- return select$p();
1333
+ function select$q(luvio, params) {
1334
+ return select$r();
1105
1335
  }
1106
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1336
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1107
1337
  getTypeCacheKeys$8(storeKeyMap, luvio, response);
1108
1338
  }
1109
- function ingestSuccess$9(luvio, resourceParams, response) {
1339
+ function ingestSuccess$b(luvio, resourceParams, response) {
1110
1340
  const { body } = response;
1111
1341
  const key = keyBuilderFromType$7(luvio, body);
1112
1342
  luvio.storeIngest(key, ingest$8, body);
1113
1343
  const snapshot = luvio.storeLookup({
1114
1344
  recordId: key,
1115
- node: select$o(),
1345
+ node: select$q(),
1116
1346
  variables: {},
1117
1347
  });
1118
1348
  if (process.env.NODE_ENV !== 'production') {
@@ -1123,7 +1353,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
1123
1353
  deepFreeze(snapshot.data);
1124
1354
  return snapshot;
1125
1355
  }
1126
- function createResourceRequest$9(config) {
1356
+ function createResourceRequest$b(config) {
1127
1357
  const headers = {};
1128
1358
  return {
1129
1359
  baseUri: '/services/data/v61.0',
@@ -1137,16 +1367,16 @@ function createResourceRequest$9(config) {
1137
1367
  };
1138
1368
  }
1139
1369
 
1140
- const adapterName$9 = 'productDetails';
1370
+ const adapterName$b = 'productDetails';
1141
1371
  const productDetails_ConfigPropertyMetadata = [
1142
1372
  generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
1143
1373
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
1144
1374
  ];
1145
- const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, productDetails_ConfigPropertyMetadata);
1146
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(productDetails_ConfigPropertyMetadata);
1147
- function typeCheckConfig$9(untrustedConfig) {
1375
+ const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, productDetails_ConfigPropertyMetadata);
1376
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(productDetails_ConfigPropertyMetadata);
1377
+ function typeCheckConfig$b(untrustedConfig) {
1148
1378
  const config = {};
1149
- typeCheckConfig$d(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
1379
+ typeCheckConfig$g(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
1150
1380
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
1151
1381
  const referenceProductDetailsInputRepresentationValidationError = validate$G(untrustedConfig_requestBody);
1152
1382
  if (referenceProductDetailsInputRepresentationValidationError === null) {
@@ -1154,6 +1384,237 @@ function typeCheckConfig$9(untrustedConfig) {
1154
1384
  }
1155
1385
  return config;
1156
1386
  }
1387
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1388
+ if (!untrustedIsObject(untrustedConfig)) {
1389
+ return null;
1390
+ }
1391
+ if (process.env.NODE_ENV !== 'production') {
1392
+ validateConfig(untrustedConfig, configPropertyNames);
1393
+ }
1394
+ const config = typeCheckConfig$b(untrustedConfig);
1395
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1396
+ return null;
1397
+ }
1398
+ return config;
1399
+ }
1400
+ function buildNetworkSnapshot$b(luvio, config, options) {
1401
+ const resourceParams = createResourceParams$b(config);
1402
+ const request = createResourceRequest$b(resourceParams);
1403
+ return luvio.dispatchResourceRequest(request, options)
1404
+ .then((response) => {
1405
+ return luvio.handleSuccessResponse(() => {
1406
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1407
+ return luvio.storeBroadcast().then(() => snapshot);
1408
+ }, () => {
1409
+ const cache = new StoreKeyMap();
1410
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1411
+ return cache;
1412
+ });
1413
+ }, (response) => {
1414
+ deepFreeze(response);
1415
+ throw response;
1416
+ });
1417
+ }
1418
+ const productDetailsAdapterFactory = (luvio) => {
1419
+ return function productDetails(untrustedConfig) {
1420
+ const config = validateAdapterConfig$b(untrustedConfig, productDetails_ConfigPropertyNames);
1421
+ // Invalid or incomplete config
1422
+ if (config === null) {
1423
+ throw new Error('Invalid config for "productDetails"');
1424
+ }
1425
+ return buildNetworkSnapshot$b(luvio, config);
1426
+ };
1427
+ };
1428
+
1429
+ function select$p(luvio, params) {
1430
+ return select$x();
1431
+ }
1432
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1433
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
1434
+ }
1435
+ function ingestSuccess$a(luvio, resourceParams, response) {
1436
+ const { body } = response;
1437
+ const key = keyBuilderFromType$9(luvio, body);
1438
+ luvio.storeIngest(key, ingest$a, body);
1439
+ const snapshot = luvio.storeLookup({
1440
+ recordId: key,
1441
+ node: select$p(),
1442
+ variables: {},
1443
+ });
1444
+ if (process.env.NODE_ENV !== 'production') {
1445
+ if (snapshot.state !== 'Fulfilled') {
1446
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1447
+ }
1448
+ }
1449
+ deepFreeze(snapshot.data);
1450
+ return snapshot;
1451
+ }
1452
+ function createResourceRequest$a(config) {
1453
+ const headers = {};
1454
+ return {
1455
+ baseUri: '/services/data/v61.0',
1456
+ basePath: '/connect/cpq/categories',
1457
+ method: 'post',
1458
+ body: config.body,
1459
+ urlParams: {},
1460
+ queryParams: {},
1461
+ headers,
1462
+ priority: 'normal',
1463
+ };
1464
+ }
1465
+
1466
+ const adapterName$a = 'categoryList';
1467
+ const categoryList_ConfigPropertyMetadata = [
1468
+ generateParamConfigMetadata('additionalContextData', false, 2 /* Body */, 4 /* Unsupported */),
1469
+ generateParamConfigMetadata('catalogId', true, 2 /* Body */, 0 /* String */),
1470
+ generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
1471
+ generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
1472
+ generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
1473
+ generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
1474
+ generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
1475
+ generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
1476
+ generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
1477
+ ];
1478
+ const categoryList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, categoryList_ConfigPropertyMetadata);
1479
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(categoryList_ConfigPropertyMetadata);
1480
+ function typeCheckConfig$a(untrustedConfig) {
1481
+ const config = {};
1482
+ typeCheckConfig$g(untrustedConfig, config, categoryList_ConfigPropertyMetadata);
1483
+ const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
1484
+ config.additionalContextData = untrustedConfig_additionalContextData;
1485
+ const untrustedConfig_userContext = untrustedConfig.userContext;
1486
+ if (untrustedIsObject(untrustedConfig_userContext)) {
1487
+ const untrustedConfig_userContext_object = {};
1488
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
1489
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
1490
+ const key = untrustedConfig_userContext_keys[i];
1491
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
1492
+ if (untrustedConfig_userContext_object !== undefined) {
1493
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
1494
+ }
1495
+ }
1496
+ if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1497
+ config.userContext = untrustedConfig_userContext_object;
1498
+ }
1499
+ }
1500
+ return config;
1501
+ }
1502
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1503
+ if (!untrustedIsObject(untrustedConfig)) {
1504
+ return null;
1505
+ }
1506
+ if (process.env.NODE_ENV !== 'production') {
1507
+ validateConfig(untrustedConfig, configPropertyNames);
1508
+ }
1509
+ const config = typeCheckConfig$a(untrustedConfig);
1510
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1511
+ return null;
1512
+ }
1513
+ return config;
1514
+ }
1515
+ function buildNetworkSnapshot$a(luvio, config, options) {
1516
+ const resourceParams = createResourceParams$a(config);
1517
+ const request = createResourceRequest$a(resourceParams);
1518
+ return luvio.dispatchResourceRequest(request, options)
1519
+ .then((response) => {
1520
+ return luvio.handleSuccessResponse(() => {
1521
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1522
+ return luvio.storeBroadcast().then(() => snapshot);
1523
+ }, () => {
1524
+ const cache = new StoreKeyMap();
1525
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1526
+ return cache;
1527
+ });
1528
+ }, (response) => {
1529
+ deepFreeze(response);
1530
+ throw response;
1531
+ });
1532
+ }
1533
+ const categoryListAdapterFactory = (luvio) => {
1534
+ return function categoryList(untrustedConfig) {
1535
+ const config = validateAdapterConfig$a(untrustedConfig, categoryList_ConfigPropertyNames);
1536
+ // Invalid or incomplete config
1537
+ if (config === null) {
1538
+ throw new Error('Invalid config for "categoryList"');
1539
+ }
1540
+ return buildNetworkSnapshot$a(luvio, config);
1541
+ };
1542
+ };
1543
+
1544
+ function select$o(luvio, params) {
1545
+ return select$r();
1546
+ }
1547
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1548
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1549
+ }
1550
+ function ingestSuccess$9(luvio, resourceParams, response) {
1551
+ const { body } = response;
1552
+ const key = keyBuilderFromType$7(luvio, body);
1553
+ luvio.storeIngest(key, ingest$8, body);
1554
+ const snapshot = luvio.storeLookup({
1555
+ recordId: key,
1556
+ node: select$o(),
1557
+ variables: {},
1558
+ });
1559
+ if (process.env.NODE_ENV !== 'production') {
1560
+ if (snapshot.state !== 'Fulfilled') {
1561
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1562
+ }
1563
+ }
1564
+ deepFreeze(snapshot.data);
1565
+ return snapshot;
1566
+ }
1567
+ function createResourceRequest$9(config) {
1568
+ const headers = {};
1569
+ return {
1570
+ baseUri: '/services/data/v61.0',
1571
+ basePath: '/connect/cpq/categories/' + config.urlParams.categoryId + '',
1572
+ method: 'post',
1573
+ body: config.body,
1574
+ urlParams: config.urlParams,
1575
+ queryParams: {},
1576
+ headers,
1577
+ priority: 'normal',
1578
+ };
1579
+ }
1580
+
1581
+ const adapterName$9 = 'categoryDetails';
1582
+ const categoryDetails_ConfigPropertyMetadata = [
1583
+ generateParamConfigMetadata('categoryId', true, 0 /* UrlParameter */, 0 /* String */),
1584
+ generateParamConfigMetadata('additionalContextData', false, 2 /* Body */, 4 /* Unsupported */),
1585
+ generateParamConfigMetadata('catalogId', false, 2 /* Body */, 0 /* String */),
1586
+ generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
1587
+ generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
1588
+ generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
1589
+ generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
1590
+ generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
1591
+ generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
1592
+ generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
1593
+ ];
1594
+ const categoryDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, categoryDetails_ConfigPropertyMetadata);
1595
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(categoryDetails_ConfigPropertyMetadata);
1596
+ function typeCheckConfig$9(untrustedConfig) {
1597
+ const config = {};
1598
+ typeCheckConfig$g(untrustedConfig, config, categoryDetails_ConfigPropertyMetadata);
1599
+ const untrustedConfig_additionalContextData = untrustedConfig.additionalContextData;
1600
+ config.additionalContextData = untrustedConfig_additionalContextData;
1601
+ const untrustedConfig_userContext = untrustedConfig.userContext;
1602
+ if (untrustedIsObject(untrustedConfig_userContext)) {
1603
+ const untrustedConfig_userContext_object = {};
1604
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
1605
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
1606
+ const key = untrustedConfig_userContext_keys[i];
1607
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
1608
+ if (untrustedConfig_userContext_object !== undefined) {
1609
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
1610
+ }
1611
+ }
1612
+ if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1613
+ config.userContext = untrustedConfig_userContext_object;
1614
+ }
1615
+ }
1616
+ return config;
1617
+ }
1157
1618
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1158
1619
  if (!untrustedIsObject(untrustedConfig)) {
1159
1620
  return null;
@@ -1185,12 +1646,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
1185
1646
  throw response;
1186
1647
  });
1187
1648
  }
1188
- const productDetailsAdapterFactory = (luvio) => {
1189
- return function productDetails(untrustedConfig) {
1190
- const config = validateAdapterConfig$9(untrustedConfig, productDetails_ConfigPropertyNames);
1649
+ const categoryDetailsAdapterFactory = (luvio) => {
1650
+ return function categoryDetails(untrustedConfig) {
1651
+ const config = validateAdapterConfig$9(untrustedConfig, categoryDetails_ConfigPropertyNames);
1191
1652
  // Invalid or incomplete config
1192
1653
  if (config === null) {
1193
- throw new Error('Invalid config for "productDetails"');
1654
+ throw new Error('Invalid config for "categoryDetails"');
1194
1655
  }
1195
1656
  return buildNetworkSnapshot$9(luvio, config);
1196
1657
  };
@@ -1274,7 +1735,7 @@ function validate$D(obj, path = 'CreateCartOutputRepresentation') {
1274
1735
  }
1275
1736
  const obj_apiStatus = obj.apiStatus;
1276
1737
  const path_apiStatus = path + '.apiStatus';
1277
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
1738
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
1278
1739
  if (referencepath_apiStatusValidationError !== null) {
1279
1740
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
1280
1741
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1381,7 +1842,7 @@ const createCart_ConfigPropertyMetadata = [
1381
1842
  generateParamConfigMetadata('createCartRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
1382
1843
  ];
1383
1844
  const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createCart_ConfigPropertyMetadata);
1384
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(createCart_ConfigPropertyMetadata);
1845
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(createCart_ConfigPropertyMetadata);
1385
1846
  function typeCheckConfig$8(untrustedConfig) {
1386
1847
  const config = {};
1387
1848
  const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
@@ -1895,12 +2356,19 @@ function equals$c(existing, incoming) {
1895
2356
  return true;
1896
2357
  }
1897
2358
 
1898
- const VERSION$b = "d28c7f18b84bf1e8232287039825a85b";
2359
+ const VERSION$b = "a721b7658e0e47f6255b519635c8e0d4";
1899
2360
  function validate$A(obj, path = 'ProductAttributeOutputRepresentation') {
1900
2361
  const v_error = (() => {
1901
2362
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1902
2363
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1903
2364
  }
2365
+ if (obj.additionalFields !== undefined) {
2366
+ const obj_additionalFields = obj.additionalFields;
2367
+ const path_additionalFields = path + '.additionalFields';
2368
+ if (typeof obj_additionalFields !== 'object' || ArrayIsArray(obj_additionalFields) || obj_additionalFields === null) {
2369
+ return new TypeError('Expected "object" but received "' + typeof obj_additionalFields + '" (at "' + path_additionalFields + '")');
2370
+ }
2371
+ }
1904
2372
  if (obj.attributeCategoryId !== undefined) {
1905
2373
  const obj_attributeCategoryId = obj.attributeCategoryId;
1906
2374
  const path_attributeCategoryId = path + '.attributeCategoryId';
@@ -2606,6 +3074,16 @@ function equals$b(existing, incoming) {
2606
3074
  return false;
2607
3075
  }
2608
3076
  }
3077
+ const existing_additionalFields = existing.additionalFields;
3078
+ const incoming_additionalFields = incoming.additionalFields;
3079
+ // if at least one of these optionals is defined
3080
+ if (existing_additionalFields !== undefined || incoming_additionalFields !== undefined) {
3081
+ // if one of these is not defined we know the other is defined and therefore
3082
+ // not equal
3083
+ if (existing_additionalFields === undefined || incoming_additionalFields === undefined) {
3084
+ return false;
3085
+ }
3086
+ }
2609
3087
  const existing_attributePickList = existing.attributePickList;
2610
3088
  const incoming_attributePickList = incoming.attributePickList;
2611
3089
  // if at least one of these optionals is defined
@@ -3399,7 +3877,7 @@ function validate$v(obj, path = 'GetCartOutputRepresentation') {
3399
3877
  }
3400
3878
  const obj_apiStatus = obj.apiStatus;
3401
3879
  const path_apiStatus = path + '.apiStatus';
3402
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
3880
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
3403
3881
  if (referencepath_apiStatusValidationError !== null) {
3404
3882
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3405
3883
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3447,7 +3925,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
3447
3925
  return input;
3448
3926
  }
3449
3927
  const select$e = function GetCartOutputRepresentationSelect() {
3450
- const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$u();
3928
+ const { selections: ApiStatusOutputRepresentation__selections, opaque: ApiStatusOutputRepresentation__opaque, } = select$y();
3451
3929
  const { selections: CartItemsOutputRepresentation__selections, opaque: CartItemsOutputRepresentation__opaque, } = select$g();
3452
3930
  const { selections: PricingTotalOutputRepresentation__selections, opaque: PricingTotalOutputRepresentation__opaque, } = select$f();
3453
3931
  return {
@@ -3497,7 +3975,7 @@ function equals$6(existing, incoming) {
3497
3975
  }
3498
3976
  const existing_apiStatus = existing.apiStatus;
3499
3977
  const incoming_apiStatus = incoming.apiStatus;
3500
- if (!(equals$h(existing_apiStatus, incoming_apiStatus))) {
3978
+ if (!(equals$i(existing_apiStatus, incoming_apiStatus))) {
3501
3979
  return false;
3502
3980
  }
3503
3981
  const existing_cartItems = existing.cartItems;
@@ -3606,14 +4084,14 @@ const getCart_ConfigPropertyMetadata = [
3606
4084
  generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
3607
4085
  ];
3608
4086
  const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCart_ConfigPropertyMetadata);
3609
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getCart_ConfigPropertyMetadata);
4087
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getCart_ConfigPropertyMetadata);
3610
4088
  function keyBuilder$6(luvio, config) {
3611
4089
  const resourceParams = createResourceParams$7(config);
3612
4090
  return keyBuilder$7(luvio, resourceParams);
3613
4091
  }
3614
4092
  function typeCheckConfig$7(untrustedConfig) {
3615
4093
  const config = {};
3616
- typeCheckConfig$d(untrustedConfig, config, getCart_ConfigPropertyMetadata);
4094
+ typeCheckConfig$g(untrustedConfig, config, getCart_ConfigPropertyMetadata);
3617
4095
  return config;
3618
4096
  }
3619
4097
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -3842,7 +4320,7 @@ function validate$r(obj, path = 'UpdateCartOutputRepresentation') {
3842
4320
  }
3843
4321
  const obj_apiStatus = obj.apiStatus;
3844
4322
  const path_apiStatus = path + '.apiStatus';
3845
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4323
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
3846
4324
  if (referencepath_apiStatusValidationError !== null) {
3847
4325
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
3848
4326
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3951,10 +4429,10 @@ const updateCart_ConfigPropertyMetadata = [
3951
4429
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
3952
4430
  ];
3953
4431
  const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateCart_ConfigPropertyMetadata);
3954
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(updateCart_ConfigPropertyMetadata);
4432
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(updateCart_ConfigPropertyMetadata);
3955
4433
  function typeCheckConfig$6(untrustedConfig) {
3956
4434
  const config = {};
3957
- typeCheckConfig$d(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
4435
+ typeCheckConfig$g(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
3958
4436
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
3959
4437
  const referenceUpdateCartInputRepresentationValidationError = validate$u(untrustedConfig_requestBody);
3960
4438
  if (referenceUpdateCartInputRepresentationValidationError === null) {
@@ -4050,7 +4528,7 @@ function validate$p(obj, path = 'UpdateCartItemsOutputRepresentation') {
4050
4528
  }
4051
4529
  const obj_apiStatus = obj.apiStatus;
4052
4530
  const path_apiStatus = path + '.apiStatus';
4053
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4531
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
4054
4532
  if (referencepath_apiStatusValidationError !== null) {
4055
4533
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4056
4534
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4158,10 +4636,10 @@ const updateCartItems_ConfigPropertyMetadata = [
4158
4636
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4159
4637
  ];
4160
4638
  const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateCartItems_ConfigPropertyMetadata);
4161
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(updateCartItems_ConfigPropertyMetadata);
4639
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(updateCartItems_ConfigPropertyMetadata);
4162
4640
  function typeCheckConfig$5(untrustedConfig) {
4163
4641
  const config = {};
4164
- typeCheckConfig$d(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4642
+ typeCheckConfig$g(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
4165
4643
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4166
4644
  const referenceUpdateCartItemsInputRepresentationValidationError = validate$q(untrustedConfig_requestBody);
4167
4645
  if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
@@ -4257,7 +4735,7 @@ function validate$n(obj, path = 'CreateCartItemsOutputRepresentation') {
4257
4735
  }
4258
4736
  const obj_apiStatus = obj.apiStatus;
4259
4737
  const path_apiStatus = path + '.apiStatus';
4260
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4738
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
4261
4739
  if (referencepath_apiStatusValidationError !== null) {
4262
4740
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4263
4741
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4365,10 +4843,10 @@ const createCartItems_ConfigPropertyMetadata = [
4365
4843
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4366
4844
  ];
4367
4845
  const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createCartItems_ConfigPropertyMetadata);
4368
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createCartItems_ConfigPropertyMetadata);
4846
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(createCartItems_ConfigPropertyMetadata);
4369
4847
  function typeCheckConfig$4(untrustedConfig) {
4370
4848
  const config = {};
4371
- typeCheckConfig$d(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4849
+ typeCheckConfig$g(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
4372
4850
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4373
4851
  const referenceCreateCartItemsInputRepresentationValidationError = validate$o(untrustedConfig_requestBody);
4374
4852
  if (referenceCreateCartItemsInputRepresentationValidationError === null) {
@@ -4464,7 +4942,7 @@ function validate$l(obj, path = 'CartPricingTotalOutputRepresentation') {
4464
4942
  }
4465
4943
  const obj_apiStatus = obj.apiStatus;
4466
4944
  const path_apiStatus = path + '.apiStatus';
4467
- const referencepath_apiStatusValidationError = validate$K(obj_apiStatus, path_apiStatus);
4945
+ const referencepath_apiStatusValidationError = validate$M(obj_apiStatus, path_apiStatus);
4468
4946
  if (referencepath_apiStatusValidationError !== null) {
4469
4947
  let message = 'Object doesn\'t match ApiStatusOutputRepresentation (at "' + path_apiStatus + '")\n';
4470
4948
  message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4589,10 +5067,10 @@ const priceCart_ConfigPropertyMetadata = [
4589
5067
  generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
4590
5068
  ];
4591
5069
  const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, priceCart_ConfigPropertyMetadata);
4592
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(priceCart_ConfigPropertyMetadata);
5070
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(priceCart_ConfigPropertyMetadata);
4593
5071
  function typeCheckConfig$3(untrustedConfig) {
4594
5072
  const config = {};
4595
- typeCheckConfig$d(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
5073
+ typeCheckConfig$g(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
4596
5074
  const untrustedConfig_requestBody = untrustedConfig.requestBody;
4597
5075
  const referencePriceCartInputRepresentationValidationError = validate$m(untrustedConfig_requestBody);
4598
5076
  if (referencePriceCartInputRepresentationValidationError === null) {
@@ -6331,7 +6809,7 @@ const configure_ConfigPropertyMetadata = [
6331
6809
  generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
6332
6810
  ];
6333
6811
  const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, configure_ConfigPropertyMetadata);
6334
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(configure_ConfigPropertyMetadata);
6812
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(configure_ConfigPropertyMetadata);
6335
6813
  function typeCheckConfig$2(untrustedConfig) {
6336
6814
  const config = {};
6337
6815
  const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
@@ -6384,30 +6862,51 @@ const configureAdapterFactory = (luvio) => {
6384
6862
  };
6385
6863
 
6386
6864
  const TTL = 60000;
6387
- const VERSION = "58609222da9b23820be663483875555c";
6865
+ const VERSION = "1b6e8c43e2eaa07857f36e97a84314b7";
6388
6866
  function validate(obj, path = 'ConfiguratorRuleOutputRepresentation') {
6389
6867
  const v_error = (() => {
6390
6868
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6391
6869
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6392
6870
  }
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 + '")');
6871
+ if (obj.errors !== undefined) {
6872
+ const obj_errors = obj.errors;
6873
+ const path_errors = path + '.errors';
6874
+ if (!ArrayIsArray(obj_errors)) {
6875
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
6876
+ }
6877
+ for (let i = 0; i < obj_errors.length; i++) {
6878
+ const obj_errors_item = obj_errors[i];
6879
+ const path_errors_item = path_errors + '[' + i + ']';
6880
+ if (typeof obj_errors_item !== 'object' || ArrayIsArray(obj_errors_item) || obj_errors_item === null) {
6881
+ return new TypeError('Expected "object" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
6882
+ }
6398
6883
  }
6399
6884
  }
6400
6885
  const obj_productConfigurationRuleId = obj.productConfigurationRuleId;
6401
6886
  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
- }
6887
+ let obj_productConfigurationRuleId_union0 = null;
6888
+ const obj_productConfigurationRuleId_union0_error = (() => {
6889
+ if (typeof obj_productConfigurationRuleId !== 'string') {
6890
+ return new TypeError('Expected "string" but received "' + typeof obj_productConfigurationRuleId + '" (at "' + path_productConfigurationRuleId + '")');
6891
+ }
6892
+ })();
6893
+ if (obj_productConfigurationRuleId_union0_error != null) {
6894
+ obj_productConfigurationRuleId_union0 = obj_productConfigurationRuleId_union0_error.message;
6895
+ }
6896
+ let obj_productConfigurationRuleId_union1 = null;
6897
+ const obj_productConfigurationRuleId_union1_error = (() => {
6898
+ if (obj_productConfigurationRuleId !== null) {
6899
+ return new TypeError('Expected "null" but received "' + typeof obj_productConfigurationRuleId + '" (at "' + path_productConfigurationRuleId + '")');
6900
+ }
6901
+ })();
6902
+ if (obj_productConfigurationRuleId_union1_error != null) {
6903
+ obj_productConfigurationRuleId_union1 = obj_productConfigurationRuleId_union1_error.message;
6904
+ }
6905
+ if (obj_productConfigurationRuleId_union0 && obj_productConfigurationRuleId_union1) {
6906
+ let message = 'Object doesn\'t match union (at "' + path_productConfigurationRuleId + '")';
6907
+ message += '\n' + obj_productConfigurationRuleId_union0.split('\n').map((line) => '\t' + line).join('\n');
6908
+ message += '\n' + obj_productConfigurationRuleId_union1.split('\n').map((line) => '\t' + line).join('\n');
6909
+ return new TypeError(message);
6411
6910
  }
6412
6911
  if (obj.success !== undefined) {
6413
6912
  const obj_success = obj.success;
@@ -6421,7 +6920,7 @@ function validate(obj, path = 'ConfiguratorRuleOutputRepresentation') {
6421
6920
  }
6422
6921
  const RepresentationType = 'ConfiguratorRuleOutputRepresentation';
6423
6922
  function keyBuilder(luvio, config) {
6424
- return keyPrefix + '::' + RepresentationType + ':' + config.productConfigurationRuleId;
6923
+ return keyPrefix + '::' + RepresentationType + ':' + (config.productConfigurationRuleId === null ? '' : config.productConfigurationRuleId);
6425
6924
  }
6426
6925
  function keyBuilderFromType(luvio, object) {
6427
6926
  const keyParams = {
@@ -6508,22 +7007,24 @@ function createResourceRequest$1(config) {
6508
7007
  const adapterName$1 = 'createRule';
6509
7008
  const createRule_ConfigPropertyMetadata = [
6510
7009
  generateParamConfigMetadata('actions', true, 2 /* Body */, 4 /* Unsupported */, true),
7010
+ generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
6511
7011
  generateParamConfigMetadata('criteria', true, 2 /* Body */, 4 /* Unsupported */, true),
6512
- generateParamConfigMetadata('criteriaExpression', false, 2 /* Body */, 0 /* String */),
7012
+ generateParamConfigMetadata('criteriaExpressionType', false, 2 /* Body */, 0 /* String */),
6513
7013
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
6514
- generateParamConfigMetadata('endDate', false, 2 /* Body */, 0 /* String */),
7014
+ generateParamConfigMetadata('endDate', false, 2 /* Body */, 4 /* Unsupported */),
6515
7015
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
7016
+ generateParamConfigMetadata('productConfigurationRuleId', false, 2 /* Body */, 4 /* Unsupported */),
6516
7017
  generateParamConfigMetadata('scope', false, 2 /* Body */, 0 /* String */),
6517
7018
  generateParamConfigMetadata('sequence', false, 2 /* Body */, 3 /* Integer */),
6518
7019
  generateParamConfigMetadata('startDate', false, 2 /* Body */, 0 /* String */),
6519
7020
  generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
6520
- generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 0 /* String */),
7021
+ generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 4 /* Unsupported */),
6521
7022
  ];
6522
7023
  const createRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createRule_ConfigPropertyMetadata);
6523
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(createRule_ConfigPropertyMetadata);
7024
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(createRule_ConfigPropertyMetadata);
6524
7025
  function typeCheckConfig$1(untrustedConfig) {
6525
7026
  const config = {};
6526
- typeCheckConfig$d(untrustedConfig, config, createRule_ConfigPropertyMetadata);
7027
+ typeCheckConfig$g(untrustedConfig, config, createRule_ConfigPropertyMetadata);
6527
7028
  const untrustedConfig_actions = untrustedConfig.actions;
6528
7029
  if (ArrayIsArray$1(untrustedConfig_actions)) {
6529
7030
  const untrustedConfig_actions_array = [];
@@ -6542,6 +7043,27 @@ function typeCheckConfig$1(untrustedConfig) {
6542
7043
  }
6543
7044
  config.criteria = untrustedConfig_criteria_array;
6544
7045
  }
7046
+ const untrustedConfig_endDate = untrustedConfig.endDate;
7047
+ if (typeof untrustedConfig_endDate === 'string') {
7048
+ config.endDate = untrustedConfig_endDate;
7049
+ }
7050
+ if (untrustedConfig_endDate === null) {
7051
+ config.endDate = untrustedConfig_endDate;
7052
+ }
7053
+ const untrustedConfig_productConfigurationRuleId = untrustedConfig.productConfigurationRuleId;
7054
+ if (typeof untrustedConfig_productConfigurationRuleId === 'string') {
7055
+ config.productConfigurationRuleId = untrustedConfig_productConfigurationRuleId;
7056
+ }
7057
+ if (untrustedConfig_productConfigurationRuleId === null) {
7058
+ config.productConfigurationRuleId = untrustedConfig_productConfigurationRuleId;
7059
+ }
7060
+ const untrustedConfig_usageSubType = untrustedConfig.usageSubType;
7061
+ if (typeof untrustedConfig_usageSubType === 'string') {
7062
+ config.usageSubType = untrustedConfig_usageSubType;
7063
+ }
7064
+ if (untrustedConfig_usageSubType === null) {
7065
+ config.usageSubType = untrustedConfig_usageSubType;
7066
+ }
6545
7067
  return config;
6546
7068
  }
6547
7069
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -6626,22 +7148,24 @@ function createResourceRequest(config) {
6626
7148
  const adapterName = 'updateRule';
6627
7149
  const updateRule_ConfigPropertyMetadata = [
6628
7150
  generateParamConfigMetadata('actions', true, 2 /* Body */, 4 /* Unsupported */, true),
7151
+ generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
6629
7152
  generateParamConfigMetadata('criteria', true, 2 /* Body */, 4 /* Unsupported */, true),
6630
- generateParamConfigMetadata('criteriaExpression', false, 2 /* Body */, 0 /* String */),
7153
+ generateParamConfigMetadata('criteriaExpressionType', false, 2 /* Body */, 0 /* String */),
6631
7154
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
6632
- generateParamConfigMetadata('endDate', false, 2 /* Body */, 0 /* String */),
7155
+ generateParamConfigMetadata('endDate', false, 2 /* Body */, 4 /* Unsupported */),
6633
7156
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
7157
+ generateParamConfigMetadata('productConfigurationRuleId', false, 2 /* Body */, 4 /* Unsupported */),
6634
7158
  generateParamConfigMetadata('scope', false, 2 /* Body */, 0 /* String */),
6635
7159
  generateParamConfigMetadata('sequence', false, 2 /* Body */, 3 /* Integer */),
6636
7160
  generateParamConfigMetadata('startDate', false, 2 /* Body */, 0 /* String */),
6637
7161
  generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
6638
- generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 0 /* String */),
7162
+ generateParamConfigMetadata('usageSubType', false, 2 /* Body */, 4 /* Unsupported */),
6639
7163
  ];
6640
7164
  const updateRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateRule_ConfigPropertyMetadata);
6641
- const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateRule_ConfigPropertyMetadata);
7165
+ const createResourceParams = /*#__PURE__*/ createResourceParams$g(updateRule_ConfigPropertyMetadata);
6642
7166
  function typeCheckConfig(untrustedConfig) {
6643
7167
  const config = {};
6644
- typeCheckConfig$d(untrustedConfig, config, updateRule_ConfigPropertyMetadata);
7168
+ typeCheckConfig$g(untrustedConfig, config, updateRule_ConfigPropertyMetadata);
6645
7169
  const untrustedConfig_actions = untrustedConfig.actions;
6646
7170
  if (ArrayIsArray$1(untrustedConfig_actions)) {
6647
7171
  const untrustedConfig_actions_array = [];
@@ -6660,6 +7184,27 @@ function typeCheckConfig(untrustedConfig) {
6660
7184
  }
6661
7185
  config.criteria = untrustedConfig_criteria_array;
6662
7186
  }
7187
+ const untrustedConfig_endDate = untrustedConfig.endDate;
7188
+ if (typeof untrustedConfig_endDate === 'string') {
7189
+ config.endDate = untrustedConfig_endDate;
7190
+ }
7191
+ if (untrustedConfig_endDate === null) {
7192
+ config.endDate = untrustedConfig_endDate;
7193
+ }
7194
+ const untrustedConfig_productConfigurationRuleId = untrustedConfig.productConfigurationRuleId;
7195
+ if (typeof untrustedConfig_productConfigurationRuleId === 'string') {
7196
+ config.productConfigurationRuleId = untrustedConfig_productConfigurationRuleId;
7197
+ }
7198
+ if (untrustedConfig_productConfigurationRuleId === null) {
7199
+ config.productConfigurationRuleId = untrustedConfig_productConfigurationRuleId;
7200
+ }
7201
+ const untrustedConfig_usageSubType = untrustedConfig.usageSubType;
7202
+ if (typeof untrustedConfig_usageSubType === 'string') {
7203
+ config.usageSubType = untrustedConfig_usageSubType;
7204
+ }
7205
+ if (untrustedConfig_usageSubType === null) {
7206
+ config.usageSubType = untrustedConfig_usageSubType;
7207
+ }
6663
7208
  return config;
6664
7209
  }
6665
7210
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -6704,4 +7249,4 @@ const updateRuleAdapterFactory = (luvio) => {
6704
7249
  };
6705
7250
  };
6706
7251
 
6707
- export { configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, createRuleAdapterFactory, getCartAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory, updateRuleAdapterFactory };
7252
+ export { bulkProductDetailsAdapterFactory, categoryDetailsAdapterFactory, categoryListAdapterFactory, configureAdapterFactory, createCartAdapterFactory, createCartItemsAdapterFactory, createRuleAdapterFactory, getCartAdapterFactory, previewAdapterFactory, priceCartAdapterFactory, productDetailsAdapterFactory, productListAdapterFactory, searchProductListAdapterFactory, updateCartAdapterFactory, updateCartItemsAdapterFactory, updateRuleAdapterFactory };