@salesforce/lds-adapters-industries-cpq 1.308.0 → 1.309.0-dev8

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.
@@ -904,7 +904,7 @@ function validate$M(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
904
904
  }
905
905
 
906
906
  const TTL$a = 1000;
907
- const VERSION$i = "59b55511c24a0471c3f3a7aa8c21c5c1";
907
+ const VERSION$i = "6210df63a22717f1cdee348931861b1b";
908
908
  function validate$L(obj, path = 'GuidedSelectionOutputRepresentation') {
909
909
  const v_error = (() => {
910
910
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -995,6 +995,15 @@ function validate$L(obj, path = 'GuidedSelectionOutputRepresentation') {
995
995
  if (typeof obj_userContext !== 'object' || ArrayIsArray(obj_userContext) || obj_userContext === null) {
996
996
  return new TypeError('Expected "object" but received "' + typeof obj_userContext + '" (at "' + path_userContext + '")');
997
997
  }
998
+ const obj_userContext_keys = ObjectKeys(obj_userContext);
999
+ for (let i = 0; i < obj_userContext_keys.length; i++) {
1000
+ const key = obj_userContext_keys[i];
1001
+ const obj_userContext_prop = obj_userContext[key];
1002
+ const path_userContext_prop = path_userContext + '["' + key + '"]';
1003
+ if (obj_userContext_prop === undefined) {
1004
+ return new TypeError('Expected "defined" but received "' + typeof obj_userContext_prop + '" (at "' + path_userContext_prop + '")');
1005
+ }
1006
+ }
998
1007
  }
999
1008
  })();
1000
1009
  return v_error === undefined ? null : v_error;
@@ -1146,6 +1155,14 @@ function typeCheckConfig$f(untrustedConfig) {
1146
1155
  const untrustedConfig_userContext = untrustedConfig.userContext;
1147
1156
  if (untrustedIsObject(untrustedConfig_userContext)) {
1148
1157
  const untrustedConfig_userContext_object = {};
1158
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
1159
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
1160
+ const key = untrustedConfig_userContext_keys[i];
1161
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
1162
+ if (untrustedConfig_userContext_object !== undefined) {
1163
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
1164
+ }
1165
+ }
1149
1166
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1150
1167
  config.userContext = untrustedConfig_userContext_object;
1151
1168
  }
@@ -1563,7 +1580,7 @@ const bulkProductDetails_ConfigPropertyMetadata = [
1563
1580
  generateParamConfigMetadata('correlationId', true, 2 /* Body */, 0 /* String */),
1564
1581
  generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
1565
1582
  generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
1566
- generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
1583
+ generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
1567
1584
  generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
1568
1585
  generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
1569
1586
  generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
@@ -1599,6 +1616,14 @@ function typeCheckConfig$d(untrustedConfig) {
1599
1616
  const untrustedConfig_userContext = untrustedConfig.userContext;
1600
1617
  if (untrustedIsObject(untrustedConfig_userContext)) {
1601
1618
  const untrustedConfig_userContext_object = {};
1619
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
1620
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
1621
+ const key = untrustedConfig_userContext_keys[i];
1622
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
1623
+ if (untrustedConfig_userContext_object !== undefined) {
1624
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
1625
+ }
1626
+ }
1602
1627
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
1603
1628
  config.userContext = untrustedConfig_userContext_object;
1604
1629
  }
@@ -12,7 +12,9 @@ export interface BulkProductDetailsConfig {
12
12
  correlationId: string;
13
13
  priceBookId: string;
14
14
  productData: Array<types_ProductDataInput_ProductDataInput>;
15
- userContext: {};
15
+ userContext?: {
16
+ [key: string]: unknown;
17
+ };
16
18
  contextDefinition?: string;
17
19
  contextMapping?: string;
18
20
  currencyCode?: string;
@@ -30,7 +30,9 @@ export interface GuidedSelectionProductListConfig {
30
30
  productClassificationId?: string;
31
31
  qualificationProcedure?: string;
32
32
  relatedObjectFilters?: Array<types_RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
33
- userContext?: {};
33
+ userContext?: {
34
+ [key: string]: unknown;
35
+ };
34
36
  guidedSelectionResponseId?: string;
35
37
  searchTerms?: Array<types_GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
36
38
  }
@@ -8,7 +8,9 @@ export interface ResourceRequestConfig {
8
8
  correlationId: string;
9
9
  priceBookId: string;
10
10
  productData: Array<types_ProductDataInput_ProductDataInput>;
11
- userContext: {};
11
+ userContext?: {
12
+ [key: string]: unknown;
13
+ };
12
14
  contextDefinition?: string;
13
15
  contextMapping?: string;
14
16
  currencyCode?: string;
@@ -26,7 +26,9 @@ export interface ResourceRequestConfig {
26
26
  productClassificationId?: string;
27
27
  qualificationProcedure?: string;
28
28
  relatedObjectFilters?: Array<types_RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
29
- userContext?: {};
29
+ userContext?: {
30
+ [key: string]: unknown;
31
+ };
30
32
  guidedSelectionResponseId?: string;
31
33
  searchTerms?: Array<types_GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
32
34
  };
@@ -1,6 +1,6 @@
1
1
  import { ProductDataInput as ProductDataInput_ProductDataInput } from './ProductDataInput';
2
2
  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';
3
- export declare const VERSION = "9066b7836c0892889127874f2ec4b43c";
3
+ export declare const VERSION = "2c5df9818b7984083723e93adcc06498";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: BulkProductDetailsInput, existing: BulkProductDetailsInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BulkProductDetailsInputNormalized;
@@ -40,7 +40,9 @@ export interface BulkProductDetailsInputNormalized {
40
40
  /** Qualification Procedure Name */
41
41
  qualificationProcedure?: string;
42
42
  /** User context */
43
- userContext: {};
43
+ userContext?: {
44
+ [key: string]: unknown;
45
+ };
44
46
  }
45
47
  /**
46
48
  * Input Representation for Bulk Product details.
@@ -61,5 +63,7 @@ export interface BulkProductDetailsInput {
61
63
  pricingProcedure?: string;
62
64
  productData: Array<ProductDataInput_ProductDataInput>;
63
65
  qualificationProcedure?: string;
64
- userContext: {};
66
+ userContext?: {
67
+ [key: string]: unknown;
68
+ };
65
69
  }
@@ -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 = "3045234e15efec1f8d86c50ad608a059";
5
+ export declare const VERSION = "23535e4d3b01299ae40cf460a1f20baf";
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;
@@ -64,7 +64,9 @@ export interface GuidedSelectionInputRepresentationNormalized {
64
64
  /** Guided Selection Search Terms */
65
65
  searchTerms?: Array<GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
66
66
  /** User context */
67
- userContext?: {};
67
+ userContext?: {
68
+ [key: string]: unknown;
69
+ };
68
70
  }
69
71
  /**
70
72
  * Input Representation for Guided Selection.
@@ -96,5 +98,7 @@ export interface GuidedSelectionInputRepresentation {
96
98
  qualificationProcedure?: string;
97
99
  relatedObjectFilters?: Array<RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
98
100
  searchTerms?: Array<GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
99
- userContext?: {};
101
+ userContext?: {
102
+ [key: string]: unknown;
103
+ };
100
104
  }
@@ -2,7 +2,7 @@ import { ApiStatusOutputRepresentation as ApiStatusOutputRepresentation_ApiStatu
2
2
  import { GuidedSelectionSearchTermOutputRepresentation as GuidedSelectionSearchTermOutputRepresentation_GuidedSelectionSearchTermOutputRepresentation } from './GuidedSelectionSearchTermOutputRepresentation';
3
3
  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';
4
4
  export declare const TTL = 1000;
5
- export declare const VERSION = "59b55511c24a0471c3f3a7aa8c21c5c1";
5
+ export declare const VERSION = "6210df63a22717f1cdee348931861b1b";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -45,7 +45,9 @@ export interface GuidedSelectionOutputRepresentationNormalized {
45
45
  /** Totals */
46
46
  total?: number;
47
47
  /** User Context */
48
- userContext?: {};
48
+ userContext?: {
49
+ [key: string]: unknown;
50
+ };
49
51
  }
50
52
  /**
51
53
  * Guided selection output representation
@@ -63,5 +65,7 @@ export interface GuidedSelectionOutputRepresentation {
63
65
  result: Array<{}>;
64
66
  searchTerms?: Array<GuidedSelectionSearchTermOutputRepresentation_GuidedSelectionSearchTermOutputRepresentation>;
65
67
  total?: number;
66
- userContext?: {};
68
+ userContext?: {
69
+ [key: string]: unknown;
70
+ };
67
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.308.0",
3
+ "version": "1.309.0-dev8",
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.308.0"
47
+ "@salesforce/lds-bindings": "^1.309.0-dev8"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.308.0",
51
- "@salesforce/lds-karma": "^1.308.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.309.0-dev8",
51
+ "@salesforce/lds-karma": "^1.309.0-dev8"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -494,7 +494,7 @@ const bulkProductDetails_ConfigPropertyMetadata = [
494
494
  generateParamConfigMetadata('correlationId', true, 2 /* Body */, 0 /* String */),
495
495
  generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
496
496
  generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
497
- generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
497
+ generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
498
498
  generateParamConfigMetadata('contextDefinition', false, 2 /* Body */, 0 /* String */),
499
499
  generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
500
500
  generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
@@ -530,6 +530,14 @@ function typeCheckConfig$h(untrustedConfig) {
530
530
  const untrustedConfig_userContext = untrustedConfig.userContext;
531
531
  if (untrustedIsObject(untrustedConfig_userContext)) {
532
532
  const untrustedConfig_userContext_object = {};
533
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
534
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
535
+ const key = untrustedConfig_userContext_keys[i];
536
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
537
+ if (untrustedConfig_userContext_object !== undefined) {
538
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
539
+ }
540
+ }
533
541
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
534
542
  config.userContext = untrustedConfig_userContext_object;
535
543
  }
@@ -5887,7 +5895,7 @@ function validate$e(obj, path = 'GuidedSelectionSearchTermOutputRepresentation')
5887
5895
  }
5888
5896
 
5889
5897
  const TTL$4 = 1000;
5890
- const VERSION$4 = "59b55511c24a0471c3f3a7aa8c21c5c1";
5898
+ const VERSION$4 = "6210df63a22717f1cdee348931861b1b";
5891
5899
  function validate$d(obj, path = 'GuidedSelectionOutputRepresentation') {
5892
5900
  const v_error = (() => {
5893
5901
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5978,6 +5986,15 @@ function validate$d(obj, path = 'GuidedSelectionOutputRepresentation') {
5978
5986
  if (typeof obj_userContext !== 'object' || ArrayIsArray(obj_userContext) || obj_userContext === null) {
5979
5987
  return new TypeError('Expected "object" but received "' + typeof obj_userContext + '" (at "' + path_userContext + '")');
5980
5988
  }
5989
+ const obj_userContext_keys = ObjectKeys(obj_userContext);
5990
+ for (let i = 0; i < obj_userContext_keys.length; i++) {
5991
+ const key = obj_userContext_keys[i];
5992
+ const obj_userContext_prop = obj_userContext[key];
5993
+ const path_userContext_prop = path_userContext + '["' + key + '"]';
5994
+ if (obj_userContext_prop === undefined) {
5995
+ return new TypeError('Expected "defined" but received "' + typeof obj_userContext_prop + '" (at "' + path_userContext_prop + '")');
5996
+ }
5997
+ }
5981
5998
  }
5982
5999
  })();
5983
6000
  return v_error === undefined ? null : v_error;
@@ -6129,6 +6146,14 @@ function typeCheckConfig$9(untrustedConfig) {
6129
6146
  const untrustedConfig_userContext = untrustedConfig.userContext;
6130
6147
  if (untrustedIsObject(untrustedConfig_userContext)) {
6131
6148
  const untrustedConfig_userContext_object = {};
6149
+ const untrustedConfig_userContext_keys = Object.keys(untrustedConfig_userContext);
6150
+ for (let i = 0, arrayLength = untrustedConfig_userContext_keys.length; i < arrayLength; i++) {
6151
+ const key = untrustedConfig_userContext_keys[i];
6152
+ const untrustedConfig_userContext_prop = untrustedConfig_userContext[key];
6153
+ if (untrustedConfig_userContext_object !== undefined) {
6154
+ untrustedConfig_userContext_object[key] = untrustedConfig_userContext_prop;
6155
+ }
6156
+ }
6132
6157
  if (untrustedConfig_userContext_object !== undefined && Object.keys(untrustedConfig_userContext_object).length >= 0) {
6133
6158
  config.userContext = untrustedConfig_userContext_object;
6134
6159
  }
@@ -7998,4 +8023,4 @@ withDefaultLuvio((luvio) => {
7998
8023
  });
7999
8024
 
8000
8025
  export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createRule, getCart, getCart_imperative, guidedSelectionProductList, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems, updateRule, validateRule };
8001
- // version: 1.308.0-e148a73d6a
8026
+ // version: 1.309.0-dev8-411e383cef
package/src/raml/api.raml CHANGED
@@ -1232,6 +1232,10 @@ types:
1232
1232
  userContext:
1233
1233
  description: User context
1234
1234
  type: object
1235
+ required: false
1236
+ properties:
1237
+ //:
1238
+ type: any
1235
1239
  contextDefinition:
1236
1240
  description: Context Definition Name
1237
1241
  type: string
@@ -1707,6 +1711,9 @@ types:
1707
1711
  description: User context
1708
1712
  type: object
1709
1713
  required: false
1714
+ properties:
1715
+ //:
1716
+ type: any
1710
1717
  guidedSelectionResponseId:
1711
1718
  description: Guided Selection Response Identifier
1712
1719
  type: string
@@ -1769,6 +1776,9 @@ types:
1769
1776
  description: User Context
1770
1777
  type: object
1771
1778
  required: false
1779
+ properties:
1780
+ //:
1781
+ type: any
1772
1782
  searchTerms:
1773
1783
  description: Guided Selection Search Terms
1774
1784
  type: array