@salesforce/lds-adapters-industries-cpq 1.243.0 → 1.245.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.
@@ -5954,7 +5954,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
5954
5954
  }
5955
5955
 
5956
5956
  const TTL = 1000;
5957
- const VERSION = "0302997d7afb8b367b52ea5830a3959a";
5957
+ const VERSION = "b9f77172a42512b700876163ebf495b3";
5958
5958
  function validate(obj, path = 'ConfiguratorOutputRepresentation') {
5959
5959
  const v_error = (() => {
5960
5960
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6010,6 +6010,13 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6010
6010
  if (typeof obj_transactionContextId !== 'string') {
6011
6011
  return new TypeError('Expected "string" but received "' + typeof obj_transactionContextId + '" (at "' + path_transactionContextId + '")');
6012
6012
  }
6013
+ if (obj.transactionContextMappingId !== undefined) {
6014
+ const obj_transactionContextMappingId = obj.transactionContextMappingId;
6015
+ const path_transactionContextMappingId = path + '.transactionContextMappingId';
6016
+ if (typeof obj_transactionContextMappingId !== 'string') {
6017
+ return new TypeError('Expected "string" but received "' + typeof obj_transactionContextMappingId + '" (at "' + path_transactionContextMappingId + '")');
6018
+ }
6019
+ }
6013
6020
  })();
6014
6021
  return v_error === undefined ? null : v_error;
6015
6022
  }
@@ -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 = "0302997d7afb8b367b52ea5830a3959a";
4
+ export declare const VERSION = "b9f77172a42512b700876163ebf495b3";
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 {
@@ -36,6 +36,8 @@ export interface ConfiguratorOutputRepresentationNormalized {
36
36
  transactionContext?: unknown;
37
37
  /** Transaction Context ID */
38
38
  transactionContextId: string;
39
+ /** Transaction Context Mapping ID */
40
+ transactionContextMappingId?: string;
39
41
  }
40
42
  /**
41
43
  * Output Representation for the Configurator API
@@ -50,4 +52,5 @@ export interface ConfiguratorOutputRepresentation {
50
52
  success?: boolean;
51
53
  transactionContext?: unknown;
52
54
  transactionContextId: string;
55
+ transactionContextMappingId?: string;
53
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.243.0",
3
+ "version": "1.245.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",
@@ -31,7 +31,7 @@
31
31
  "panakapalli@salesforce.com"
32
32
  ],
33
33
  "scripts": {
34
- "build": "yarn build:raml && yarn build:services && yarn build:karma",
34
+ "build": "yarn build:services && yarn build:karma",
35
35
  "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
36
36
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
37
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
@@ -55,7 +55,11 @@
55
55
  "outputs": [
56
56
  "{projectRoot}/dist",
57
57
  "{projectRoot}/karma/dist",
58
- "{projectRoot}/sfdc",
58
+ "{projectRoot}/sfdc"
59
+ ]
60
+ },
61
+ "build:raml": {
62
+ "outputs": [
59
63
  "{projectRoot}/src/generated"
60
64
  ]
61
65
  }
package/sfdc/index.js CHANGED
@@ -1544,7 +1544,7 @@ function validate$t(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
1544
1544
  }
1545
1545
 
1546
1546
  const TTL$7 = 1000;
1547
- const VERSION$h = "0302997d7afb8b367b52ea5830a3959a";
1547
+ const VERSION$h = "b9f77172a42512b700876163ebf495b3";
1548
1548
  function validate$s(obj, path = 'ConfiguratorOutputRepresentation') {
1549
1549
  const v_error = (() => {
1550
1550
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1600,6 +1600,13 @@ function validate$s(obj, path = 'ConfiguratorOutputRepresentation') {
1600
1600
  if (typeof obj_transactionContextId !== 'string') {
1601
1601
  return new TypeError('Expected "string" but received "' + typeof obj_transactionContextId + '" (at "' + path_transactionContextId + '")');
1602
1602
  }
1603
+ if (obj.transactionContextMappingId !== undefined) {
1604
+ const obj_transactionContextMappingId = obj.transactionContextMappingId;
1605
+ const path_transactionContextMappingId = path + '.transactionContextMappingId';
1606
+ if (typeof obj_transactionContextMappingId !== 'string') {
1607
+ return new TypeError('Expected "string" but received "' + typeof obj_transactionContextMappingId + '" (at "' + path_transactionContextMappingId + '")');
1608
+ }
1609
+ }
1603
1610
  })();
1604
1611
  return v_error === undefined ? null : v_error;
1605
1612
  }
@@ -6221,4 +6228,4 @@ withDefaultLuvio((luvio) => {
6221
6228
  });
6222
6229
 
6223
6230
  export { configure, createCart, createCartItems, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems };
6224
- // version: 1.243.0-c7d8ec9e0
6231
+ // version: 1.245.0-df5596041
package/src/raml/api.raml CHANGED
@@ -518,6 +518,10 @@ types:
518
518
  transactionContextId:
519
519
  description: Transaction Context ID
520
520
  type: string
521
+ transactionContextMappingId:
522
+ description: Transaction Context Mapping ID
523
+ type: string
524
+ required: false # TODO hand rolled. W-9275477
521
525
  ConfiguratorPriceOutputRepresentation:
522
526
  description: Output Representation for the Configurator API's Prices
523
527
  type: object