@salesforce/lds-adapters-industries-cpq 1.404.0-dev1 → 1.404.0-dev11

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.
@@ -1293,6 +1293,14 @@ function typeCheckConfig$o(untrustedConfig) {
1293
1293
  const untrustedConfig_userContext = untrustedConfig.userContext;
1294
1294
  if (untrustedIsObject(untrustedConfig_userContext)) {
1295
1295
  const untrustedConfig_userContext_object = {};
1296
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
1297
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
1298
+ const key = untrustedConfig_userContext_keys[i];
1299
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
1300
+ if (untrustedConfig_userContext_object !== undefined) {
1301
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
1302
+ }
1303
+ }
1296
1304
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1297
1305
  config.userContext = untrustedConfig_userContext_object;
1298
1306
  }
@@ -36,7 +36,9 @@ export interface GuidedSelectionProductListConfig {
36
36
  transactionContextId?: string;
37
37
  transactionId?: string;
38
38
  usePromotions?: boolean;
39
- userContext?: {};
39
+ userContext?: {
40
+ [key: string]: unknown;
41
+ };
40
42
  }
41
43
  export declare const createResourceParams: (config: GuidedSelectionProductListConfig) => resources_postConnectCpqProductsGuidedSelection_ResourceRequestConfig;
42
44
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GuidedSelectionProductListConfig>): adapter$45$utils_Untrusted<GuidedSelectionProductListConfig>;
@@ -32,7 +32,9 @@ export interface ResourceRequestConfig {
32
32
  transactionContextId?: string;
33
33
  transactionId?: string;
34
34
  usePromotions?: boolean;
35
- userContext?: {};
35
+ userContext?: {
36
+ [key: string]: unknown;
37
+ };
36
38
  };
37
39
  }
38
40
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -2,7 +2,7 @@ import { FilterInputRepresentation as FilterInputRepresentation_FilterInputRepre
2
2
  import { RelatedObjectFilterInputRepresentation as RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation } from './RelatedObjectFilterInputRepresentation';
3
3
  import { GuidedSelectionSearchTermInputRepresentation as GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation } from './GuidedSelectionSearchTermInputRepresentation';
4
4
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
5
- export declare const VERSION = "aa0acb0f681480899dc212088275446a";
5
+ export declare const VERSION = "5cfe5fc51793f868428edadccf52c6d8";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: GuidedSelectionInputRepresentation, existing: GuidedSelectionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GuidedSelectionInputRepresentationNormalized;
@@ -72,7 +72,9 @@ export interface GuidedSelectionInputRepresentationNormalized {
72
72
  /** Enable Promotion Rules */
73
73
  usePromotions?: boolean;
74
74
  /** User context */
75
- userContext?: {};
75
+ userContext?: {
76
+ [key: string]: unknown;
77
+ };
76
78
  }
77
79
  /**
78
80
  * Input Representation for Guided Selection.
@@ -108,5 +110,7 @@ export interface GuidedSelectionInputRepresentation {
108
110
  transactionContextId?: string;
109
111
  transactionId?: string;
110
112
  usePromotions?: boolean;
111
- userContext?: {};
113
+ userContext?: {
114
+ [key: string]: unknown;
115
+ };
112
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.404.0-dev1",
3
+ "version": "1.404.0-dev11",
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.404.0-dev1"
47
+ "@salesforce/lds-bindings": "^1.404.0-dev11"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.404.0-dev1",
51
- "@salesforce/lds-karma": "^1.404.0-dev1"
50
+ "@salesforce/lds-compiler-plugins": "^1.404.0-dev11",
51
+ "@salesforce/lds-karma": "^1.404.0-dev11"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -7533,6 +7533,14 @@ function typeCheckConfig$d(untrustedConfig) {
7533
7533
  const untrustedConfig_userContext = untrustedConfig.userContext;
7534
7534
  if (untrustedIsObject(untrustedConfig_userContext)) {
7535
7535
  const untrustedConfig_userContext_object = {};
7536
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
7537
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
7538
+ const key = untrustedConfig_userContext_keys[i];
7539
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
7540
+ if (untrustedConfig_userContext_object !== undefined) {
7541
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
7542
+ }
7543
+ }
7536
7544
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
7537
7545
  config.userContext = untrustedConfig_userContext_object;
7538
7546
  }
@@ -11024,4 +11032,4 @@ withDefaultLuvio((luvio) => {
11024
11032
  });
11025
11033
 
11026
11034
  export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createFavorite, createRule, deleteFavorite, executeConfigRules, getCart, getCart_imperative, getFavorite, getFavoriteId, getFavoriteIdNotifyChange, getFavoriteId_imperative, getFavorite_imperative, guidedSelectionProductList, preview, priceCart, productDetails, productList, productRecommendations, searchProductList, shareFavorite, smartProductSelection, updateCart, updateCartItems, updateFavorite, updateRule, validateRule };
11027
- // version: 1.404.0-dev1-9582436c8f
11035
+ // version: 1.404.0-dev11-efd5bd34f5
package/src/raml/api.raml CHANGED
@@ -1843,6 +1843,9 @@ types:
1843
1843
  description: User context
1844
1844
  type: object
1845
1845
  required: false
1846
+ properties:
1847
+ //:
1848
+ type: any
1846
1849
  SmartSelectionSearchInputRepresentation:
1847
1850
  description: Input Representation for smart product selection.
1848
1851
  type: object