@salesforce/lds-adapters-industries-cpq 1.331.0 → 1.332.0-dev10
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.
- package/dist/es/es2018/industries-cpq.js +26 -26
- package/dist/es/es2018/types/src/generated/adapters/createFavorite.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/deleteFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/getFavorite.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/adapters/getFavoriteId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/shareFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/{getConnectCpqConfiguratorFavorite.d.ts → getConnectCpqConfiguratorSavedConfiguration.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/resources/{postConnectCpqConfiguratorFavorite.d.ts → postConnectCpqConfiguratorSavedConfiguration.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/types/FavoriteInputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/FavoriteListOutputRepresenation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/FavoriteOutputRepresenation.d.ts +4 -4
- package/package.json +4 -4
- package/sfdc/index.js +28 -28
- package/src/raml/api.raml +9 -9
- package/src/raml/luvio.raml +3 -3
- /package/dist/es/es2018/types/src/generated/resources/{deleteConnectCpqConfiguratorFavoriteById.d.ts → deleteConnectCpqConfiguratorSavedConfigurationById.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getConnectCpqConfiguratorFavoriteById.d.ts → getConnectCpqConfiguratorSavedConfigurationById.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{postConnectCpqConfiguratorFavoriteShare.d.ts → postConnectCpqConfiguratorFavoriteActionsShare.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{putConnectCpqConfiguratorFavoriteById.d.ts → putConnectCpqConfiguratorSavedConfigurationById.d.ts} +0 -0
|
@@ -8345,7 +8345,7 @@ const validateRuleAdapterFactory = (luvio) => {
|
|
|
8345
8345
|
};
|
|
8346
8346
|
|
|
8347
8347
|
const TTL$4 = 1000;
|
|
8348
|
-
const VERSION$4 = "
|
|
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
|
|
8375
|
-
const
|
|
8376
|
-
if (typeof
|
|
8377
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
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;
|
|
@@ -8429,7 +8429,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8429
8429
|
}
|
|
8430
8430
|
|
|
8431
8431
|
const TTL$3 = 1000;
|
|
8432
|
-
const VERSION$3 = "
|
|
8432
|
+
const VERSION$3 = "c521dd2b17ea5e623d9df6f96e19e180";
|
|
8433
8433
|
function validate$3(obj, path = 'FavoriteListOutputRepresenation') {
|
|
8434
8434
|
const v_error = (() => {
|
|
8435
8435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8447,18 +8447,18 @@ function validate$3(obj, path = 'FavoriteListOutputRepresenation') {
|
|
|
8447
8447
|
return new TypeError('Expected "object" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
|
|
8448
8448
|
}
|
|
8449
8449
|
}
|
|
8450
|
-
const
|
|
8451
|
-
const
|
|
8452
|
-
if (!ArrayIsArray(
|
|
8453
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
8450
|
+
const obj_savedConfigurations = obj.savedConfigurations;
|
|
8451
|
+
const path_savedConfigurations = path + '.savedConfigurations';
|
|
8452
|
+
if (!ArrayIsArray(obj_savedConfigurations)) {
|
|
8453
|
+
return new TypeError('Expected "array" but received "' + typeof obj_savedConfigurations + '" (at "' + path_savedConfigurations + '")');
|
|
8454
8454
|
}
|
|
8455
|
-
for (let i = 0; i <
|
|
8456
|
-
const
|
|
8457
|
-
const
|
|
8458
|
-
const
|
|
8459
|
-
if (
|
|
8460
|
-
let message = 'Object doesn\'t match FavoriteOutputRepresenation (at "' +
|
|
8461
|
-
message +=
|
|
8455
|
+
for (let i = 0; i < obj_savedConfigurations.length; i++) {
|
|
8456
|
+
const obj_savedConfigurations_item = obj_savedConfigurations[i];
|
|
8457
|
+
const path_savedConfigurations_item = path_savedConfigurations + '[' + i + ']';
|
|
8458
|
+
const referencepath_savedConfigurations_itemValidationError = validate$4(obj_savedConfigurations_item, path_savedConfigurations_item);
|
|
8459
|
+
if (referencepath_savedConfigurations_itemValidationError !== null) {
|
|
8460
|
+
let message = 'Object doesn\'t match FavoriteOutputRepresenation (at "' + path_savedConfigurations_item + '")\n';
|
|
8461
|
+
message += referencepath_savedConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8462
8462
|
return new TypeError(message);
|
|
8463
8463
|
}
|
|
8464
8464
|
}
|
|
@@ -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:(' + '
|
|
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));
|
|
@@ -8552,7 +8552,7 @@ function createResourceRequest$5(config) {
|
|
|
8552
8552
|
const headers = {};
|
|
8553
8553
|
return {
|
|
8554
8554
|
baseUri: '/services/data/v63.0',
|
|
8555
|
-
basePath: '/connect/cpq/configurator/
|
|
8555
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
8556
8556
|
method: 'get',
|
|
8557
8557
|
body: null,
|
|
8558
8558
|
urlParams: {},
|
|
@@ -8564,7 +8564,7 @@ function createResourceRequest$5(config) {
|
|
|
8564
8564
|
|
|
8565
8565
|
const adapterName$5 = 'getFavorite';
|
|
8566
8566
|
const getFavorite_ConfigPropertyMetadata = [
|
|
8567
|
-
generateParamConfigMetadata('
|
|
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);
|
|
@@ -8751,7 +8751,7 @@ function createResourceRequest$4(config) {
|
|
|
8751
8751
|
const headers = {};
|
|
8752
8752
|
return {
|
|
8753
8753
|
baseUri: '/services/data/v63.0',
|
|
8754
|
-
basePath: '/connect/cpq/configurator/
|
|
8754
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
8755
8755
|
method: 'post',
|
|
8756
8756
|
body: config.body,
|
|
8757
8757
|
urlParams: {},
|
|
@@ -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('
|
|
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);
|
|
@@ -8861,7 +8861,7 @@ function createResourceRequest$3(config) {
|
|
|
8861
8861
|
const headers = {};
|
|
8862
8862
|
return {
|
|
8863
8863
|
baseUri: '/services/data/v63.0',
|
|
8864
|
-
basePath: '/connect/cpq/configurator/
|
|
8864
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
8865
8865
|
method: 'get',
|
|
8866
8866
|
body: null,
|
|
8867
8867
|
urlParams: config.urlParams,
|
|
@@ -8978,7 +8978,7 @@ function createResourceRequest$2(config) {
|
|
|
8978
8978
|
const headers = {};
|
|
8979
8979
|
return {
|
|
8980
8980
|
baseUri: '/services/data/v63.0',
|
|
8981
|
-
basePath: '/connect/cpq/configurator/
|
|
8981
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
8982
8982
|
method: 'delete',
|
|
8983
8983
|
body: null,
|
|
8984
8984
|
urlParams: config.urlParams,
|
|
@@ -9144,7 +9144,7 @@ function createResourceRequest$1(config) {
|
|
|
9144
9144
|
const headers = {};
|
|
9145
9145
|
return {
|
|
9146
9146
|
baseUri: '/services/data/v63.0',
|
|
9147
|
-
basePath: '/connect/cpq/configurator/
|
|
9147
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
9148
9148
|
method: 'put',
|
|
9149
9149
|
body: config.body,
|
|
9150
9150
|
urlParams: config.urlParams,
|
|
@@ -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: {},
|
|
@@ -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
|
|
3
|
+
import { ResourceRequestConfig as resources_postConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig } from '../resources/postConnectCpqConfiguratorSavedConfiguration';
|
|
4
4
|
import { CreateFavoriteOutputRepresentation as types_CreateFavoriteOutputRepresentation_CreateFavoriteOutputRepresentation } from '../types/CreateFavoriteOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "createFavorite";
|
|
6
6
|
export declare const createFavorite_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -9,9 +9,9 @@ export interface CreateFavoriteConfig {
|
|
|
9
9
|
data: string;
|
|
10
10
|
description: string;
|
|
11
11
|
name: string;
|
|
12
|
-
|
|
12
|
+
referenceRecordId: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const createResourceParams: (config: CreateFavoriteConfig) =>
|
|
14
|
+
export declare const createResourceParams: (config: CreateFavoriteConfig) => resources_postConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateFavoriteConfig>): adapter$45$utils_Untrusted<CreateFavoriteConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateFavoriteConfig | null;
|
|
17
17
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateFavoriteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CreateFavoriteOutputRepresentation_CreateFavoriteOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CreateFavoriteOutputRepresentation_CreateFavoriteOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CreateFavoriteOutputRepresentation_CreateFavoriteOutputRepresentation, any>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } 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
|
|
3
|
+
import { ResourceRequestConfig as resources_deleteConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig } from '../resources/deleteConnectCpqConfiguratorSavedConfigurationById';
|
|
4
4
|
export declare const adapterName = "deleteFavorite";
|
|
5
5
|
export declare const deleteFavorite_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
6
|
export declare const deleteFavorite_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
7
|
export interface DeleteFavoriteConfig {
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const createResourceParams: (config: DeleteFavoriteConfig) =>
|
|
10
|
+
export declare const createResourceParams: (config: DeleteFavoriteConfig) => resources_deleteConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig;
|
|
11
11
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeleteFavoriteConfig>): adapter$45$utils_Untrusted<DeleteFavoriteConfig>;
|
|
12
12
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeleteFavoriteConfig | null;
|
|
13
13
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeleteFavoriteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<void>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig } from '../resources/getConnectCpqConfiguratorSavedConfiguration';
|
|
4
4
|
import { FavoriteListOutputRepresenation as types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation } from '../types/FavoriteListOutputRepresenation';
|
|
5
5
|
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
|
-
|
|
9
|
+
referenceRecordId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetFavoriteConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetFavoriteConfig) => resources_getConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFavoriteConfig>): adapter$45$utils_Untrusted<GetFavoriteConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFavoriteConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig): $64$luvio_engine_Fragment;
|
|
17
17
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig): $64$luvio_engine_Snapshot<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation, any>;
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig, resourceParams:
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig, resourceParams: resources_getConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation, {}> | import("@luvio/engine").StaleSnapshot<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation, {}> | import("@luvio/engine").PendingSnapshot<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig, resourceParams: resources_getConnectCpqConfiguratorSavedConfiguration_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
20
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFavoriteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FavoriteListOutputRepresenation_FavoriteListOutputRepresenation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig } from '../resources/getConnectCpqConfiguratorSavedConfigurationById';
|
|
4
4
|
import { FavoriteOutputRepresenation as types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, KeyParams as types_FavoriteOutputRepresenation_KeyParams } from '../types/FavoriteOutputRepresenation';
|
|
5
5
|
export declare const adapterName = "getFavoriteId";
|
|
6
6
|
export declare const getFavoriteId_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -8,15 +8,15 @@ export declare const getFavoriteId_ConfigPropertyNames: adapter$45$utils_Adapter
|
|
|
8
8
|
export interface GetFavoriteIdConfig {
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetFavoriteIdConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetFavoriteIdConfig) => resources_getConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFavoriteIdConfig>): adapter$45$utils_Untrusted<GetFavoriteIdConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFavoriteIdConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig): $64$luvio_engine_Fragment;
|
|
17
17
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig): $64$luvio_engine_Snapshot<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, any>;
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig, resourceParams:
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig, resourceParams: resources_getConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, {}> | import("@luvio/engine").StaleSnapshot<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, {}> | import("@luvio/engine").PendingSnapshot<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig, resourceParams: resources_getConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
20
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFavoriteIdConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FavoriteOutputRepresenation_FavoriteOutputRepresenation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -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
|
|
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) =>
|
|
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>>;
|
|
@@ -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
|
|
3
|
+
import { ResourceRequestConfig as resources_putConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig } from '../resources/putConnectCpqConfiguratorSavedConfigurationById';
|
|
4
4
|
import { UpdateFavoriteOutputRepresentation as types_UpdateFavoriteOutputRepresentation_UpdateFavoriteOutputRepresentation } from '../types/UpdateFavoriteOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "updateFavorite";
|
|
6
6
|
export declare const updateFavorite_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -11,7 +11,7 @@ export interface UpdateFavoriteConfig {
|
|
|
11
11
|
description: string;
|
|
12
12
|
name: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const createResourceParams: (config: UpdateFavoriteConfig) =>
|
|
14
|
+
export declare const createResourceParams: (config: UpdateFavoriteConfig) => resources_putConnectCpqConfiguratorSavedConfigurationById_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateFavoriteConfig>): adapter$45$utils_Untrusted<UpdateFavoriteConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateFavoriteConfig | null;
|
|
17
17
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateFavoriteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_UpdateFavoriteOutputRepresentation_UpdateFavoriteOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_UpdateFavoriteOutputRepresentation_UpdateFavoriteOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_UpdateFavoriteOutputRepresentation_UpdateFavoriteOutputRepresentation, 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
|
-
|
|
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
|
-
|
|
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 = "
|
|
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
|
-
/**
|
|
24
|
-
|
|
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
|
-
|
|
36
|
+
referenceRecordId: string;
|
|
37
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FavoriteOutputRepresenation as FavoriteOutputRepresenation_FavoriteOutputRepresenation } from './FavoriteOutputRepresenation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "c521dd2b17ea5e623d9df6f96e19e180";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: FavoriteListOutputRepresenation, existing: FavoriteListOutputRepresenationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FavoriteListOutputRepresenationNormalized;
|
|
@@ -19,7 +19,7 @@ export interface FavoriteListOutputRepresenationNormalized {
|
|
|
19
19
|
/** List of Errors */
|
|
20
20
|
errors: Array<{}>;
|
|
21
21
|
/** list of favorites */
|
|
22
|
-
|
|
22
|
+
savedConfigurations: Array<$64$luvio_engine_StoreLink>;
|
|
23
23
|
/** success */
|
|
24
24
|
success: boolean;
|
|
25
25
|
}
|
|
@@ -31,6 +31,6 @@ export interface FavoriteListOutputRepresenationNormalized {
|
|
|
31
31
|
*/
|
|
32
32
|
export interface FavoriteListOutputRepresenation {
|
|
33
33
|
errors: Array<{}>;
|
|
34
|
-
|
|
34
|
+
savedConfigurations: Array<FavoriteOutputRepresenation_FavoriteOutputRepresenation>;
|
|
35
35
|
success: boolean;
|
|
36
36
|
}
|
|
@@ -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 = "
|
|
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
|
|
36
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.332.0-dev10",
|
|
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.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.332.0-dev10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev10",
|
|
51
|
+
"@salesforce/lds-karma": "^1.332.0-dev10"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -3566,7 +3566,7 @@ function createResourceRequest$i(config) {
|
|
|
3566
3566
|
const headers = {};
|
|
3567
3567
|
return {
|
|
3568
3568
|
baseUri: '/services/data/v63.0',
|
|
3569
|
-
basePath: '/connect/cpq/configurator/
|
|
3569
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
3570
3570
|
method: 'post',
|
|
3571
3571
|
body: config.body,
|
|
3572
3572
|
urlParams: {},
|
|
@@ -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('
|
|
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 = "
|
|
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
|
|
3910
|
-
const
|
|
3911
|
-
if (typeof
|
|
3912
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
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;
|
|
@@ -3984,7 +3984,7 @@ function createResourceRequest$g(config) {
|
|
|
3984
3984
|
const headers = {};
|
|
3985
3985
|
return {
|
|
3986
3986
|
baseUri: '/services/data/v63.0',
|
|
3987
|
-
basePath: '/connect/cpq/configurator/
|
|
3987
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
3988
3988
|
method: 'delete',
|
|
3989
3989
|
body: null,
|
|
3990
3990
|
urlParams: config.urlParams,
|
|
@@ -6319,7 +6319,7 @@ const getCartAdapterFactory = (luvio) => function cpq__getCart(untrustedConfig,
|
|
|
6319
6319
|
};
|
|
6320
6320
|
|
|
6321
6321
|
const TTL$8 = 1000;
|
|
6322
|
-
const VERSION$8 = "
|
|
6322
|
+
const VERSION$8 = "c521dd2b17ea5e623d9df6f96e19e180";
|
|
6323
6323
|
function validate$l(obj, path = 'FavoriteListOutputRepresenation') {
|
|
6324
6324
|
const v_error = (() => {
|
|
6325
6325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6337,18 +6337,18 @@ function validate$l(obj, path = 'FavoriteListOutputRepresenation') {
|
|
|
6337
6337
|
return new TypeError('Expected "object" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
|
|
6338
6338
|
}
|
|
6339
6339
|
}
|
|
6340
|
-
const
|
|
6341
|
-
const
|
|
6342
|
-
if (!ArrayIsArray(
|
|
6343
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
6340
|
+
const obj_savedConfigurations = obj.savedConfigurations;
|
|
6341
|
+
const path_savedConfigurations = path + '.savedConfigurations';
|
|
6342
|
+
if (!ArrayIsArray(obj_savedConfigurations)) {
|
|
6343
|
+
return new TypeError('Expected "array" but received "' + typeof obj_savedConfigurations + '" (at "' + path_savedConfigurations + '")');
|
|
6344
6344
|
}
|
|
6345
|
-
for (let i = 0; i <
|
|
6346
|
-
const
|
|
6347
|
-
const
|
|
6348
|
-
const
|
|
6349
|
-
if (
|
|
6350
|
-
let message = 'Object doesn\'t match FavoriteOutputRepresenation (at "' +
|
|
6351
|
-
message +=
|
|
6345
|
+
for (let i = 0; i < obj_savedConfigurations.length; i++) {
|
|
6346
|
+
const obj_savedConfigurations_item = obj_savedConfigurations[i];
|
|
6347
|
+
const path_savedConfigurations_item = path_savedConfigurations + '[' + i + ']';
|
|
6348
|
+
const referencepath_savedConfigurations_itemValidationError = validate$u(obj_savedConfigurations_item, path_savedConfigurations_item);
|
|
6349
|
+
if (referencepath_savedConfigurations_itemValidationError !== null) {
|
|
6350
|
+
let message = 'Object doesn\'t match FavoriteOutputRepresenation (at "' + path_savedConfigurations_item + '")\n';
|
|
6351
|
+
message += referencepath_savedConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6352
6352
|
return new TypeError(message);
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
@@ -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:(' + '
|
|
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));
|
|
@@ -6442,7 +6442,7 @@ function createResourceRequest$e(config) {
|
|
|
6442
6442
|
const headers = {};
|
|
6443
6443
|
return {
|
|
6444
6444
|
baseUri: '/services/data/v63.0',
|
|
6445
|
-
basePath: '/connect/cpq/configurator/
|
|
6445
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
6446
6446
|
method: 'get',
|
|
6447
6447
|
body: null,
|
|
6448
6448
|
urlParams: {},
|
|
@@ -6454,7 +6454,7 @@ function createResourceRequest$e(config) {
|
|
|
6454
6454
|
|
|
6455
6455
|
const adapterName$e = 'getFavorite';
|
|
6456
6456
|
const getFavorite_ConfigPropertyMetadata = [
|
|
6457
|
-
generateParamConfigMetadata('
|
|
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);
|
|
@@ -6582,7 +6582,7 @@ function createResourceRequest$d(config) {
|
|
|
6582
6582
|
const headers = {};
|
|
6583
6583
|
return {
|
|
6584
6584
|
baseUri: '/services/data/v63.0',
|
|
6585
|
-
basePath: '/connect/cpq/configurator/
|
|
6585
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
6586
6586
|
method: 'get',
|
|
6587
6587
|
body: null,
|
|
6588
6588
|
urlParams: config.urlParams,
|
|
@@ -6685,7 +6685,7 @@ const getFavoriteIdAdapterFactory = (luvio) => function cpq__getFavoriteId(untru
|
|
|
6685
6685
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6686
6686
|
};
|
|
6687
6687
|
const notifyChangeFactory = (luvio, options) => {
|
|
6688
|
-
return function
|
|
6688
|
+
return function getConnectCpqConfiguratorSavedConfigurationByIdNotifyChange(configs) {
|
|
6689
6689
|
const keys = configs.map(c => keyBuilder$f(luvio, c));
|
|
6690
6690
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6691
6691
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
@@ -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: {},
|
|
@@ -9055,7 +9055,7 @@ function createResourceRequest$2(config) {
|
|
|
9055
9055
|
const headers = {};
|
|
9056
9056
|
return {
|
|
9057
9057
|
baseUri: '/services/data/v63.0',
|
|
9058
|
-
basePath: '/connect/cpq/configurator/
|
|
9058
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
9059
9059
|
method: 'put',
|
|
9060
9060
|
body: config.body,
|
|
9061
9061
|
urlParams: config.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.
|
|
9543
|
+
// version: 1.332.0-dev10-d8601dd102
|
package/src/raml/api.raml
CHANGED
|
@@ -3149,8 +3149,8 @@ types:
|
|
|
3149
3149
|
name:
|
|
3150
3150
|
description: name
|
|
3151
3151
|
type: string
|
|
3152
|
-
|
|
3153
|
-
description:
|
|
3152
|
+
referenceRecordId:
|
|
3153
|
+
description: referenceRecordId
|
|
3154
3154
|
type: string
|
|
3155
3155
|
FavoriteListOutputRepresenation:
|
|
3156
3156
|
description: Favorite List Output Representation
|
|
@@ -3161,7 +3161,7 @@ types:
|
|
|
3161
3161
|
type: array
|
|
3162
3162
|
items:
|
|
3163
3163
|
type: object
|
|
3164
|
-
|
|
3164
|
+
savedConfigurations:
|
|
3165
3165
|
description: list of favorites
|
|
3166
3166
|
type: array
|
|
3167
3167
|
items:
|
|
@@ -3185,8 +3185,8 @@ types:
|
|
|
3185
3185
|
name:
|
|
3186
3186
|
description: favorite name
|
|
3187
3187
|
type: string
|
|
3188
|
-
|
|
3189
|
-
description: favorite
|
|
3188
|
+
referenceRecordId:
|
|
3189
|
+
description: favorite referenceRecordId
|
|
3190
3190
|
type: string
|
|
3191
3191
|
ShareFavoriteInputRepresentation:
|
|
3192
3192
|
description: Share Favorite Input Representation
|
|
@@ -4098,7 +4098,7 @@ types:
|
|
|
4098
4098
|
application/json:
|
|
4099
4099
|
type: ConfiguratorRuleValidatorInputRepresentation
|
|
4100
4100
|
(oas-body-name): configRuleValidatorInput
|
|
4101
|
-
/
|
|
4101
|
+
/saved-configuration:
|
|
4102
4102
|
get:
|
|
4103
4103
|
displayName: getFavorite
|
|
4104
4104
|
description: API to fetch list of favorites.
|
|
@@ -4109,7 +4109,7 @@ types:
|
|
|
4109
4109
|
application/json:
|
|
4110
4110
|
type: FavoriteListOutputRepresenation
|
|
4111
4111
|
queryParameters:
|
|
4112
|
-
|
|
4112
|
+
referenceRecordId:
|
|
4113
4113
|
type: string
|
|
4114
4114
|
post:
|
|
4115
4115
|
displayName: createFavorite
|
|
@@ -4124,7 +4124,7 @@ types:
|
|
|
4124
4124
|
application/json:
|
|
4125
4125
|
type: FavoriteInputRepresentation
|
|
4126
4126
|
(oas-body-name): createFavoritePayload
|
|
4127
|
-
/
|
|
4127
|
+
/saved-configuration/{id}:
|
|
4128
4128
|
# added get to comply with compiler warning: DELETE resource with key annotation has no sibling GET resource. DELETE resource keys must match GET response keys at the same path
|
|
4129
4129
|
get:
|
|
4130
4130
|
description: API to fetch favorite.
|
|
@@ -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
|
package/src/raml/luvio.raml
CHANGED
|
@@ -179,14 +179,14 @@ types:
|
|
|
179
179
|
post:
|
|
180
180
|
(luvio.adapter):
|
|
181
181
|
name: validateRule
|
|
182
|
-
/
|
|
182
|
+
/saved-configuration:
|
|
183
183
|
post:
|
|
184
184
|
(luvio.adapter):
|
|
185
185
|
name: createFavorite
|
|
186
186
|
get:
|
|
187
187
|
(luvio.adapter):
|
|
188
188
|
name: getFavorite
|
|
189
|
-
/
|
|
189
|
+
/saved-configuration/{id}:
|
|
190
190
|
# added get to comply with compiler warning: DELETE resource with key annotation has no sibling GET resource. DELETE resource keys must match GET response keys at the same path
|
|
191
191
|
get:
|
|
192
192
|
(luvio.adapter):
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|