@salesforce/lds-adapters-industries-cpq 1.330.0 → 1.332.0-dev1

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.
@@ -8345,7 +8345,7 @@ const validateRuleAdapterFactory = (luvio) => {
8345
8345
  };
8346
8346
 
8347
8347
  const TTL$4 = 1000;
8348
- const VERSION$4 = "123a3d5c920c8b846adfeaf08f687f82";
8348
+ const VERSION$4 = "6bce26088e4b8564d9ee7c02403d414b";
8349
8349
  function validate$4(obj, path = 'FavoriteOutputRepresenation') {
8350
8350
  const v_error = (() => {
8351
8351
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8371,10 +8371,10 @@ function validate$4(obj, path = 'FavoriteOutputRepresenation') {
8371
8371
  if (typeof obj_name !== 'string') {
8372
8372
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
8373
8373
  }
8374
- const obj_referenceObjectId = obj.referenceObjectId;
8375
- const path_referenceObjectId = path + '.referenceObjectId';
8376
- if (typeof obj_referenceObjectId !== 'string') {
8377
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjectId + '" (at "' + path_referenceObjectId + '")');
8374
+ const obj_referenceRecordId = obj.referenceRecordId;
8375
+ const path_referenceRecordId = path + '.referenceRecordId';
8376
+ if (typeof obj_referenceRecordId !== 'string') {
8377
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceRecordId + '" (at "' + path_referenceRecordId + '")');
8378
8378
  }
8379
8379
  })();
8380
8380
  return v_error === undefined ? null : v_error;
@@ -8514,7 +8514,7 @@ function select$7(luvio, params) {
8514
8514
  return select$8();
8515
8515
  }
8516
8516
  function keyBuilder$7(luvio, params) {
8517
- return keyPrefix + '::FavoriteListOutputRepresenation:(' + 'referenceObjectId:' + params.queryParams.referenceObjectId + ')';
8517
+ return keyPrefix + '::FavoriteListOutputRepresenation:(' + 'referenceRecordId:' + params.queryParams.referenceRecordId + ')';
8518
8518
  }
8519
8519
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
8520
8520
  getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
@@ -8564,7 +8564,7 @@ function createResourceRequest$5(config) {
8564
8564
 
8565
8565
  const adapterName$5 = 'getFavorite';
8566
8566
  const getFavorite_ConfigPropertyMetadata = [
8567
- generateParamConfigMetadata('referenceObjectId', true, 1 /* QueryParameter */, 0 /* String */),
8567
+ generateParamConfigMetadata('referenceRecordId', true, 1 /* QueryParameter */, 0 /* String */),
8568
8568
  ];
8569
8569
  const getFavorite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFavorite_ConfigPropertyMetadata);
8570
8570
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$p(getFavorite_ConfigPropertyMetadata);
@@ -8766,7 +8766,7 @@ const createFavorite_ConfigPropertyMetadata = [
8766
8766
  generateParamConfigMetadata('data', true, 2 /* Body */, 0 /* String */),
8767
8767
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
8768
8768
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
8769
- generateParamConfigMetadata('referenceObjectId', true, 2 /* Body */, 0 /* String */),
8769
+ generateParamConfigMetadata('referenceRecordId', true, 2 /* Body */, 0 /* String */),
8770
8770
  ];
8771
8771
  const createFavorite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createFavorite_ConfigPropertyMetadata);
8772
8772
  const createResourceParams$4 = /*#__PURE__*/ createResourceParams$p(createFavorite_ConfigPropertyMetadata);
@@ -9313,7 +9313,7 @@ function createResourceRequest(config) {
9313
9313
  const headers = {};
9314
9314
  return {
9315
9315
  baseUri: '/services/data/v63.0',
9316
- basePath: '/connect/cpq/configurator/favorite/share',
9316
+ basePath: '/connect/cpq/configurator/favorite/actions/share',
9317
9317
  method: 'post',
9318
9318
  body: config.body,
9319
9319
  urlParams: {},
@@ -9,7 +9,7 @@ export interface CreateFavoriteConfig {
9
9
  data: string;
10
10
  description: string;
11
11
  name: string;
12
- referenceObjectId: string;
12
+ referenceRecordId: string;
13
13
  }
14
14
  export declare const createResourceParams: (config: CreateFavoriteConfig) => resources_postConnectCpqConfiguratorFavorite_ResourceRequestConfig;
15
15
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateFavoriteConfig>): adapter$45$utils_Untrusted<CreateFavoriteConfig>;
@@ -6,7 +6,7 @@ export declare const adapterName = "getFavorite";
6
6
  export declare const getFavorite_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const getFavorite_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetFavoriteConfig {
9
- referenceObjectId: string;
9
+ referenceRecordId: string;
10
10
  }
11
11
  export declare const createResourceParams: (config: GetFavoriteConfig) => resources_getConnectCpqConfiguratorFavorite_ResourceRequestConfig;
12
12
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig): string;
@@ -1,6 +1,6 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postConnectCpqConfiguratorFavoriteShare_ResourceRequestConfig } from '../resources/postConnectCpqConfiguratorFavoriteShare';
3
+ import { ResourceRequestConfig as resources_postConnectCpqConfiguratorFavoriteActionsShare_ResourceRequestConfig } from '../resources/postConnectCpqConfiguratorFavoriteActionsShare';
4
4
  import { ShareFavoriteOutputRepresentation as types_ShareFavoriteOutputRepresentation_ShareFavoriteOutputRepresentation } from '../types/ShareFavoriteOutputRepresentation';
5
5
  export declare const adapterName = "shareFavorite";
6
6
  export declare const shareFavorite_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
@@ -9,7 +9,7 @@ export interface ShareFavoriteConfig {
9
9
  id: string;
10
10
  userId: string;
11
11
  }
12
- export declare const createResourceParams: (config: ShareFavoriteConfig) => resources_postConnectCpqConfiguratorFavoriteShare_ResourceRequestConfig;
12
+ export declare const createResourceParams: (config: ShareFavoriteConfig) => resources_postConnectCpqConfiguratorFavoriteActionsShare_ResourceRequestConfig;
13
13
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ShareFavoriteConfig>): adapter$45$utils_Untrusted<ShareFavoriteConfig>;
14
14
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ShareFavoriteConfig | null;
15
15
  export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ShareFavoriteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ShareFavoriteOutputRepresentation_ShareFavoriteOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ShareFavoriteOutputRepresentation_ShareFavoriteOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ShareFavoriteOutputRepresentation_ShareFavoriteOutputRepresentation, any>>;
@@ -2,7 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
2
2
  import { FavoriteListOutputRepresenation as types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation } from '../types/FavoriteListOutputRepresenation';
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
5
- referenceObjectId: string;
5
+ referenceRecordId: string;
6
6
  };
7
7
  }
8
8
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -5,7 +5,7 @@ export interface ResourceRequestConfig {
5
5
  data: string;
6
6
  description: string;
7
7
  name: string;
8
- referenceObjectId: string;
8
+ referenceRecordId: string;
9
9
  };
10
10
  }
11
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,5 +1,5 @@
1
1
  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';
2
- export declare const VERSION = "3700da4ad7af9c35b72d6342cffb5472";
2
+ export declare const VERSION = "f9f605721c13227bda4502c6b7c1a220";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: FavoriteInputRepresentation, existing: FavoriteInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FavoriteInputRepresentationNormalized;
@@ -20,8 +20,8 @@ export interface FavoriteInputRepresentationNormalized {
20
20
  description: string;
21
21
  /** name */
22
22
  name: string;
23
- /** referenceObjectId */
24
- referenceObjectId: string;
23
+ /** referenceRecordId */
24
+ referenceRecordId: string;
25
25
  }
26
26
  /**
27
27
  * Favorite Input Representation
@@ -33,5 +33,5 @@ export interface FavoriteInputRepresentation {
33
33
  data: string;
34
34
  description: string;
35
35
  name: string;
36
- referenceObjectId: string;
36
+ referenceRecordId: string;
37
37
  }
@@ -1,6 +1,6 @@
1
1
  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';
2
2
  export declare const TTL = 1000;
3
- export declare const VERSION = "123a3d5c920c8b846adfeaf08f687f82";
3
+ export declare const VERSION = "6bce26088e4b8564d9ee7c02403d414b";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -32,8 +32,8 @@ export interface FavoriteOutputRepresenationNormalized {
32
32
  id: string;
33
33
  /** favorite name */
34
34
  name: string;
35
- /** favorite referenceObjectId */
36
- referenceObjectId: string;
35
+ /** favorite referenceRecordId */
36
+ referenceRecordId: string;
37
37
  }
38
38
  /**
39
39
  * Favorite Output Representation
@@ -46,5 +46,5 @@ export interface FavoriteOutputRepresenation {
46
46
  description: string;
47
47
  id: string;
48
48
  name: string;
49
- referenceObjectId: string;
49
+ referenceRecordId: string;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.330.0",
3
+ "version": "1.332.0-dev1",
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.330.0"
47
+ "@salesforce/lds-bindings": "^1.332.0-dev1"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.330.0",
51
- "@salesforce/lds-karma": "^1.330.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev1",
51
+ "@salesforce/lds-karma": "^1.332.0-dev1"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -3581,7 +3581,7 @@ const createFavorite_ConfigPropertyMetadata = [
3581
3581
  generateParamConfigMetadata('data', true, 2 /* Body */, 0 /* String */),
3582
3582
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
3583
3583
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
3584
- generateParamConfigMetadata('referenceObjectId', true, 2 /* Body */, 0 /* String */),
3584
+ generateParamConfigMetadata('referenceRecordId', true, 2 /* Body */, 0 /* String */),
3585
3585
  ];
3586
3586
  const createFavorite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createFavorite_ConfigPropertyMetadata);
3587
3587
  const createResourceParams$i = /*#__PURE__*/ createResourceParams$p(createFavorite_ConfigPropertyMetadata);
@@ -3880,7 +3880,7 @@ const createRuleAdapterFactory = (luvio) => {
3880
3880
  };
3881
3881
 
3882
3882
  const TTL$9 = 1000;
3883
- const VERSION$h = "123a3d5c920c8b846adfeaf08f687f82";
3883
+ const VERSION$h = "6bce26088e4b8564d9ee7c02403d414b";
3884
3884
  function validate$u(obj, path = 'FavoriteOutputRepresenation') {
3885
3885
  const v_error = (() => {
3886
3886
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3906,10 +3906,10 @@ function validate$u(obj, path = 'FavoriteOutputRepresenation') {
3906
3906
  if (typeof obj_name !== 'string') {
3907
3907
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3908
3908
  }
3909
- const obj_referenceObjectId = obj.referenceObjectId;
3910
- const path_referenceObjectId = path + '.referenceObjectId';
3911
- if (typeof obj_referenceObjectId !== 'string') {
3912
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjectId + '" (at "' + path_referenceObjectId + '")');
3909
+ const obj_referenceRecordId = obj.referenceRecordId;
3910
+ const path_referenceRecordId = path + '.referenceRecordId';
3911
+ if (typeof obj_referenceRecordId !== 'string') {
3912
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceRecordId + '" (at "' + path_referenceRecordId + '")');
3913
3913
  }
3914
3914
  })();
3915
3915
  return v_error === undefined ? null : v_error;
@@ -6404,7 +6404,7 @@ function select$m(luvio, params) {
6404
6404
  return select$n();
6405
6405
  }
6406
6406
  function keyBuilder$b(luvio, params) {
6407
- return keyPrefix + '::FavoriteListOutputRepresenation:(' + 'referenceObjectId:' + params.queryParams.referenceObjectId + ')';
6407
+ return keyPrefix + '::FavoriteListOutputRepresenation:(' + 'referenceRecordId:' + params.queryParams.referenceRecordId + ')';
6408
6408
  }
6409
6409
  function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
6410
6410
  getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
@@ -6454,7 +6454,7 @@ function createResourceRequest$e(config) {
6454
6454
 
6455
6455
  const adapterName$e = 'getFavorite';
6456
6456
  const getFavorite_ConfigPropertyMetadata = [
6457
- generateParamConfigMetadata('referenceObjectId', true, 1 /* QueryParameter */, 0 /* String */),
6457
+ generateParamConfigMetadata('referenceRecordId', true, 1 /* QueryParameter */, 0 /* String */),
6458
6458
  ];
6459
6459
  const getFavorite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getFavorite_ConfigPropertyMetadata);
6460
6460
  const createResourceParams$e = /*#__PURE__*/ createResourceParams$p(getFavorite_ConfigPropertyMetadata);
@@ -8110,7 +8110,7 @@ function createResourceRequest$6(config) {
8110
8110
  const headers = {};
8111
8111
  return {
8112
8112
  baseUri: '/services/data/v63.0',
8113
- basePath: '/connect/cpq/configurator/favorite/share',
8113
+ basePath: '/connect/cpq/configurator/favorite/actions/share',
8114
8114
  method: 'post',
8115
8115
  body: config.body,
8116
8116
  urlParams: {},
@@ -9540,4 +9540,4 @@ withDefaultLuvio((luvio) => {
9540
9540
  });
9541
9541
 
9542
9542
  export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createFavorite, createRule, deleteFavorite, getCart, getCart_imperative, getFavorite, getFavoriteId, getFavoriteIdNotifyChange, getFavoriteId_imperative, getFavorite_imperative, guidedSelectionProductList, preview, priceCart, productDetails, productList, searchProductList, shareFavorite, smartProductSelection, updateCart, updateCartItems, updateFavorite, updateRule, validateRule };
9543
- // version: 1.330.0-8c4e36b1fc
9543
+ // version: 1.332.0-dev1-2186468293
package/src/raml/api.raml CHANGED
@@ -3149,8 +3149,8 @@ types:
3149
3149
  name:
3150
3150
  description: name
3151
3151
  type: string
3152
- referenceObjectId:
3153
- description: referenceObjectId
3152
+ referenceRecordId:
3153
+ description: referenceRecordId
3154
3154
  type: string
3155
3155
  FavoriteListOutputRepresenation:
3156
3156
  description: Favorite List Output Representation
@@ -3185,8 +3185,8 @@ types:
3185
3185
  name:
3186
3186
  description: favorite name
3187
3187
  type: string
3188
- referenceObjectId:
3189
- description: favorite referenceObjectId
3188
+ referenceRecordId:
3189
+ description: favorite referenceRecordId
3190
3190
  type: string
3191
3191
  ShareFavoriteInputRepresentation:
3192
3192
  description: Share Favorite Input Representation
@@ -4109,7 +4109,7 @@ types:
4109
4109
  application/json:
4110
4110
  type: FavoriteListOutputRepresenation
4111
4111
  queryParameters:
4112
- referenceObjectId:
4112
+ referenceRecordId:
4113
4113
  type: string
4114
4114
  post:
4115
4115
  displayName: createFavorite
@@ -4158,7 +4158,7 @@ types:
4158
4158
  description: Favorite Id on which the operation has to be performed.
4159
4159
  type: string
4160
4160
  required: true
4161
- /favorite/share:
4161
+ /favorite/actions/share:
4162
4162
  post:
4163
4163
  displayName: shareFavorite
4164
4164
  description: API to share favorite
@@ -201,7 +201,7 @@ types:
201
201
  put:
202
202
  (luvio.adapter):
203
203
  name: updateFavorite
204
- /favorite/share:
204
+ /favorite/actions/share:
205
205
  post:
206
206
  (luvio.adapter):
207
207
  name: shareFavorite