@salesforce/lds-adapters-industries-cpq 1.293.0 → 1.294.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.
@@ -6631,7 +6631,7 @@ function validate$2(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6631
6631
  }
6632
6632
 
6633
6633
  const TTL$1 = 1000;
6634
- const VERSION$1 = "a9e74c89f83dab5ce88d601ec57daa71";
6634
+ const VERSION$1 = "6b0e9ba755f5b9497737e51300506cf9";
6635
6635
  function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
6636
6636
  const v_error = (() => {
6637
6637
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6715,6 +6715,20 @@ function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
6715
6715
  return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
6716
6716
  }
6717
6717
  }
6718
+ if (obj.uiTreatments !== undefined) {
6719
+ const obj_uiTreatments = obj.uiTreatments;
6720
+ const path_uiTreatments = path + '.uiTreatments';
6721
+ if (!ArrayIsArray(obj_uiTreatments)) {
6722
+ return new TypeError('Expected "array" but received "' + typeof obj_uiTreatments + '" (at "' + path_uiTreatments + '")');
6723
+ }
6724
+ for (let i = 0; i < obj_uiTreatments.length; i++) {
6725
+ const obj_uiTreatments_item = obj_uiTreatments[i];
6726
+ const path_uiTreatments_item = path_uiTreatments + '[' + i + ']';
6727
+ if (typeof obj_uiTreatments_item !== 'object' || ArrayIsArray(obj_uiTreatments_item) || obj_uiTreatments_item === null) {
6728
+ return new TypeError('Expected "object" but received "' + typeof obj_uiTreatments_item + '" (at "' + path_uiTreatments_item + '")');
6729
+ }
6730
+ }
6731
+ }
6718
6732
  })();
6719
6733
  return v_error === undefined ? null : v_error;
6720
6734
  }
@@ -1,7 +1,7 @@
1
1
  import { ConfiguratorProductCatalogOutputRepresentation as ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation } from './ConfiguratorProductCatalogOutputRepresentation';
2
2
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "a9e74c89f83dab5ce88d601ec57daa71";
4
+ export declare const VERSION = "6b0e9ba755f5b9497737e51300506cf9";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -43,6 +43,8 @@ export interface ConfiguratorOutputRepresentationNormalized {
43
43
  transactionQualification?: unknown;
44
44
  /** UI Modifications */
45
45
  uiModifications?: unknown;
46
+ /** UI Treatments */
47
+ uiTreatments?: Array<{}>;
46
48
  }
47
49
  /**
48
50
  * Output Representation for the Configurator API
@@ -60,4 +62,5 @@ export interface ConfiguratorOutputRepresentation {
60
62
  transactionContextMappingId?: string;
61
63
  transactionQualification?: unknown;
62
64
  uiModifications?: unknown;
65
+ uiTreatments?: Array<{}>;
63
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.293.0",
3
+ "version": "1.294.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "APIs for Industries CPQ Project",
6
6
  "main": "dist/es/es2018/industries-cpq.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.293.0"
47
+ "@salesforce/lds-bindings": "^1.294.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.293.0",
51
- "@salesforce/lds-karma": "^1.293.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.294.0",
51
+ "@salesforce/lds-karma": "^1.294.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -2509,7 +2509,7 @@ function validate$q(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
2509
2509
  }
2510
2510
 
2511
2511
  const TTL$6 = 1000;
2512
- const VERSION$e = "a9e74c89f83dab5ce88d601ec57daa71";
2512
+ const VERSION$e = "6b0e9ba755f5b9497737e51300506cf9";
2513
2513
  function validate$p(obj, path = 'ConfiguratorOutputRepresentation') {
2514
2514
  const v_error = (() => {
2515
2515
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2593,6 +2593,20 @@ function validate$p(obj, path = 'ConfiguratorOutputRepresentation') {
2593
2593
  return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
2594
2594
  }
2595
2595
  }
2596
+ if (obj.uiTreatments !== undefined) {
2597
+ const obj_uiTreatments = obj.uiTreatments;
2598
+ const path_uiTreatments = path + '.uiTreatments';
2599
+ if (!ArrayIsArray(obj_uiTreatments)) {
2600
+ return new TypeError('Expected "array" but received "' + typeof obj_uiTreatments + '" (at "' + path_uiTreatments + '")');
2601
+ }
2602
+ for (let i = 0; i < obj_uiTreatments.length; i++) {
2603
+ const obj_uiTreatments_item = obj_uiTreatments[i];
2604
+ const path_uiTreatments_item = path_uiTreatments + '[' + i + ']';
2605
+ if (typeof obj_uiTreatments_item !== 'object' || ArrayIsArray(obj_uiTreatments_item) || obj_uiTreatments_item === null) {
2606
+ return new TypeError('Expected "object" but received "' + typeof obj_uiTreatments_item + '" (at "' + path_uiTreatments_item + '")');
2607
+ }
2608
+ }
2609
+ }
2596
2610
  })();
2597
2611
  return v_error === undefined ? null : v_error;
2598
2612
  }
@@ -7331,4 +7345,4 @@ withDefaultLuvio((luvio) => {
7331
7345
  });
7332
7346
 
7333
7347
  export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createRule, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems, updateRule };
7334
- // version: 1.293.0-c036bce5d
7348
+ // version: 1.294.0-e7eb16228
package/src/raml/api.raml CHANGED
@@ -637,6 +637,12 @@ types:
637
637
  description: UI Modifications
638
638
  type: any
639
639
  required: false # TODO hand rolled. W-9275477
640
+ uiTreatments:
641
+ description: UI Treatments
642
+ type: array
643
+ required: false # TODO hand rolled. W-9275477
644
+ items:
645
+ type: object
640
646
  success:
641
647
  description: Success Flag
642
648
  type: boolean