@salesforce/lds-adapters-industries-cpq 1.333.0 → 1.335.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-cpq.js +42 -42
- package/dist/es/es2018/types/src/generated/adapters/createFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/getFavorite.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getFavoriteId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/updateFavorite.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FavoriteListOutputRepresenation.d.ts +3 -3
- package/package.json +4 -4
- package/sfdc/index.js +44 -44
- package/src/raml/api.raml +4 -4
- package/src/raml/luvio.raml +2 -2
- /package/dist/es/es2018/types/src/generated/resources/{deleteConnectCpqConfiguratorFavoriteById.d.ts → deleteConnectCpqConfiguratorSavedConfigurationById.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{getConnectCpqConfiguratorFavorite.d.ts → getConnectCpqConfiguratorSavedConfiguration.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/{postConnectCpqConfiguratorFavorite.d.ts → postConnectCpqConfiguratorSavedConfiguration.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{putConnectCpqConfiguratorFavoriteById.d.ts → putConnectCpqConfiguratorSavedConfigurationById.d.ts} +0 -0
|
@@ -609,7 +609,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
609
609
|
function createResourceRequest$o(config) {
|
|
610
610
|
const headers = {};
|
|
611
611
|
return {
|
|
612
|
-
baseUri: '/services/data/
|
|
612
|
+
baseUri: '/services/data/v64.0',
|
|
613
613
|
basePath: '/connect/cpq/preview',
|
|
614
614
|
method: 'post',
|
|
615
615
|
body: config.body,
|
|
@@ -794,7 +794,7 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
794
794
|
function createResourceRequest$n(config) {
|
|
795
795
|
const headers = {};
|
|
796
796
|
return {
|
|
797
|
-
baseUri: '/services/data/
|
|
797
|
+
baseUri: '/services/data/v64.0',
|
|
798
798
|
basePath: '/connect/cpq/products',
|
|
799
799
|
method: 'post',
|
|
800
800
|
body: config.body,
|
|
@@ -1173,7 +1173,7 @@ function ingestSuccess$l(luvio, resourceParams, response) {
|
|
|
1173
1173
|
function createResourceRequest$m(config) {
|
|
1174
1174
|
const headers = {};
|
|
1175
1175
|
return {
|
|
1176
|
-
baseUri: '/services/data/
|
|
1176
|
+
baseUri: '/services/data/v64.0',
|
|
1177
1177
|
basePath: '/connect/cpq/products/guided-selection',
|
|
1178
1178
|
method: 'post',
|
|
1179
1179
|
body: config.body,
|
|
@@ -1429,7 +1429,7 @@ function ingestSuccess$k(luvio, resourceParams, response) {
|
|
|
1429
1429
|
function createResourceRequest$l(config) {
|
|
1430
1430
|
const headers = {};
|
|
1431
1431
|
return {
|
|
1432
|
-
baseUri: '/services/data/
|
|
1432
|
+
baseUri: '/services/data/v64.0',
|
|
1433
1433
|
basePath: '/connect/cpq/products/search',
|
|
1434
1434
|
method: 'post',
|
|
1435
1435
|
body: config.body,
|
|
@@ -1679,7 +1679,7 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
1679
1679
|
function createResourceRequest$k(config) {
|
|
1680
1680
|
const headers = {};
|
|
1681
1681
|
return {
|
|
1682
|
-
baseUri: '/services/data/
|
|
1682
|
+
baseUri: '/services/data/v64.0',
|
|
1683
1683
|
basePath: '/connect/cpq/products/smart-selection',
|
|
1684
1684
|
method: 'post',
|
|
1685
1685
|
body: config.body,
|
|
@@ -1898,7 +1898,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
1898
1898
|
function createResourceRequest$j(config) {
|
|
1899
1899
|
const headers = {};
|
|
1900
1900
|
return {
|
|
1901
|
-
baseUri: '/services/data/
|
|
1901
|
+
baseUri: '/services/data/v64.0',
|
|
1902
1902
|
basePath: '/connect/cpq/products/bulk',
|
|
1903
1903
|
method: 'post',
|
|
1904
1904
|
body: config.body,
|
|
@@ -2152,7 +2152,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
2152
2152
|
function createResourceRequest$i(config) {
|
|
2153
2153
|
const headers = {};
|
|
2154
2154
|
return {
|
|
2155
|
-
baseUri: '/services/data/
|
|
2155
|
+
baseUri: '/services/data/v64.0',
|
|
2156
2156
|
basePath: '/connect/cpq/products/' + config.urlParams.productId + '',
|
|
2157
2157
|
method: 'post',
|
|
2158
2158
|
body: config.body,
|
|
@@ -2248,7 +2248,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
2248
2248
|
function createResourceRequest$h(config) {
|
|
2249
2249
|
const headers = {};
|
|
2250
2250
|
return {
|
|
2251
|
-
baseUri: '/services/data/
|
|
2251
|
+
baseUri: '/services/data/v64.0',
|
|
2252
2252
|
basePath: '/connect/cpq/categories',
|
|
2253
2253
|
method: 'post',
|
|
2254
2254
|
body: config.body,
|
|
@@ -2371,7 +2371,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
2371
2371
|
function createResourceRequest$g(config) {
|
|
2372
2372
|
const headers = {};
|
|
2373
2373
|
return {
|
|
2374
|
-
baseUri: '/services/data/
|
|
2374
|
+
baseUri: '/services/data/v64.0',
|
|
2375
2375
|
basePath: '/connect/cpq/categories/' + config.urlParams.categoryId + '',
|
|
2376
2376
|
method: 'post',
|
|
2377
2377
|
body: config.body,
|
|
@@ -2636,7 +2636,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
2636
2636
|
function createResourceRequest$f(config) {
|
|
2637
2637
|
const headers = {};
|
|
2638
2638
|
return {
|
|
2639
|
-
baseUri: '/services/data/
|
|
2639
|
+
baseUri: '/services/data/v64.0',
|
|
2640
2640
|
basePath: '/connect/cpq/carts',
|
|
2641
2641
|
method: 'post',
|
|
2642
2642
|
body: config.body,
|
|
@@ -4878,7 +4878,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4878
4878
|
function createResourceRequest$e(config) {
|
|
4879
4879
|
const headers = {};
|
|
4880
4880
|
return {
|
|
4881
|
-
baseUri: '/services/data/
|
|
4881
|
+
baseUri: '/services/data/v64.0',
|
|
4882
4882
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '',
|
|
4883
4883
|
method: 'get',
|
|
4884
4884
|
body: null,
|
|
@@ -5222,7 +5222,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
5222
5222
|
function createResourceRequest$d(config) {
|
|
5223
5223
|
const headers = {};
|
|
5224
5224
|
return {
|
|
5225
|
-
baseUri: '/services/data/
|
|
5225
|
+
baseUri: '/services/data/v64.0',
|
|
5226
5226
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '',
|
|
5227
5227
|
method: 'patch',
|
|
5228
5228
|
body: config.body,
|
|
@@ -5429,7 +5429,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
5429
5429
|
function createResourceRequest$c(config) {
|
|
5430
5430
|
const headers = {};
|
|
5431
5431
|
return {
|
|
5432
|
-
baseUri: '/services/data/
|
|
5432
|
+
baseUri: '/services/data/v64.0',
|
|
5433
5433
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/items',
|
|
5434
5434
|
method: 'patch',
|
|
5435
5435
|
body: config.body,
|
|
@@ -5636,7 +5636,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5636
5636
|
function createResourceRequest$b(config) {
|
|
5637
5637
|
const headers = {};
|
|
5638
5638
|
return {
|
|
5639
|
-
baseUri: '/services/data/
|
|
5639
|
+
baseUri: '/services/data/v64.0',
|
|
5640
5640
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/items',
|
|
5641
5641
|
method: 'post',
|
|
5642
5642
|
body: config.body,
|
|
@@ -5860,7 +5860,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
5860
5860
|
function createResourceRequest$a(config) {
|
|
5861
5861
|
const headers = {};
|
|
5862
5862
|
return {
|
|
5863
|
-
baseUri: '/services/data/
|
|
5863
|
+
baseUri: '/services/data/v64.0',
|
|
5864
5864
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/price',
|
|
5865
5865
|
method: 'patch',
|
|
5866
5866
|
body: config.body,
|
|
@@ -7722,7 +7722,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
7722
7722
|
function createResourceRequest$9(config) {
|
|
7723
7723
|
const headers = {};
|
|
7724
7724
|
return {
|
|
7725
|
-
baseUri: '/services/data/
|
|
7725
|
+
baseUri: '/services/data/v64.0',
|
|
7726
7726
|
basePath: '/connect/cpq/configurator/actions/configure',
|
|
7727
7727
|
method: 'post',
|
|
7728
7728
|
body: config.body,
|
|
@@ -7922,7 +7922,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
7922
7922
|
function createResourceRequest$8(config) {
|
|
7923
7923
|
const headers = {};
|
|
7924
7924
|
return {
|
|
7925
|
-
baseUri: '/services/data/
|
|
7925
|
+
baseUri: '/services/data/v64.0',
|
|
7926
7926
|
basePath: '/connect/cpq/configurator/actions/create-rule',
|
|
7927
7927
|
method: 'post',
|
|
7928
7928
|
body: config.body,
|
|
@@ -8063,7 +8063,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
8063
8063
|
function createResourceRequest$7(config) {
|
|
8064
8064
|
const headers = {};
|
|
8065
8065
|
return {
|
|
8066
|
-
baseUri: '/services/data/
|
|
8066
|
+
baseUri: '/services/data/v64.0',
|
|
8067
8067
|
basePath: '/connect/cpq/configurator/actions/update-rule',
|
|
8068
8068
|
method: 'post',
|
|
8069
8069
|
body: config.body,
|
|
@@ -8280,7 +8280,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
8280
8280
|
function createResourceRequest$6(config) {
|
|
8281
8281
|
const headers = {};
|
|
8282
8282
|
return {
|
|
8283
|
-
baseUri: '/services/data/
|
|
8283
|
+
baseUri: '/services/data/v64.0',
|
|
8284
8284
|
basePath: '/connect/cpq/configurator/actions/validate-rule',
|
|
8285
8285
|
method: 'post',
|
|
8286
8286
|
body: config.body,
|
|
@@ -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
|
}
|
|
@@ -8551,8 +8551,8 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
8551
8551
|
function createResourceRequest$5(config) {
|
|
8552
8552
|
const headers = {};
|
|
8553
8553
|
return {
|
|
8554
|
-
baseUri: '/services/data/
|
|
8555
|
-
basePath: '/connect/cpq/configurator/
|
|
8554
|
+
baseUri: '/services/data/v64.0',
|
|
8555
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
8556
8556
|
method: 'get',
|
|
8557
8557
|
body: null,
|
|
8558
8558
|
urlParams: {},
|
|
@@ -8750,8 +8750,8 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
8750
8750
|
function createResourceRequest$4(config) {
|
|
8751
8751
|
const headers = {};
|
|
8752
8752
|
return {
|
|
8753
|
-
baseUri: '/services/data/
|
|
8754
|
-
basePath: '/connect/cpq/configurator/
|
|
8753
|
+
baseUri: '/services/data/v64.0',
|
|
8754
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
8755
8755
|
method: 'post',
|
|
8756
8756
|
body: config.body,
|
|
8757
8757
|
urlParams: {},
|
|
@@ -8860,8 +8860,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
8860
8860
|
function createResourceRequest$3(config) {
|
|
8861
8861
|
const headers = {};
|
|
8862
8862
|
return {
|
|
8863
|
-
baseUri: '/services/data/
|
|
8864
|
-
basePath: '/connect/cpq/configurator/
|
|
8863
|
+
baseUri: '/services/data/v64.0',
|
|
8864
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
8865
8865
|
method: 'get',
|
|
8866
8866
|
body: null,
|
|
8867
8867
|
urlParams: config.urlParams,
|
|
@@ -8977,8 +8977,8 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
8977
8977
|
function createResourceRequest$2(config) {
|
|
8978
8978
|
const headers = {};
|
|
8979
8979
|
return {
|
|
8980
|
-
baseUri: '/services/data/
|
|
8981
|
-
basePath: '/connect/cpq/configurator/
|
|
8980
|
+
baseUri: '/services/data/v64.0',
|
|
8981
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
8982
8982
|
method: 'delete',
|
|
8983
8983
|
body: null,
|
|
8984
8984
|
urlParams: config.urlParams,
|
|
@@ -9143,8 +9143,8 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
9143
9143
|
function createResourceRequest$1(config) {
|
|
9144
9144
|
const headers = {};
|
|
9145
9145
|
return {
|
|
9146
|
-
baseUri: '/services/data/
|
|
9147
|
-
basePath: '/connect/cpq/configurator/
|
|
9146
|
+
baseUri: '/services/data/v64.0',
|
|
9147
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
9148
9148
|
method: 'put',
|
|
9149
9149
|
body: config.body,
|
|
9150
9150
|
urlParams: config.urlParams,
|
|
@@ -9312,7 +9312,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
9312
9312
|
function createResourceRequest(config) {
|
|
9313
9313
|
const headers = {};
|
|
9314
9314
|
return {
|
|
9315
|
-
baseUri: '/services/data/
|
|
9315
|
+
baseUri: '/services/data/v64.0',
|
|
9316
9316
|
basePath: '/connect/cpq/configurator/favorite/actions/share',
|
|
9317
9317
|
method: 'post',
|
|
9318
9318
|
body: config.body,
|
|
@@ -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[];
|
|
@@ -11,7 +11,7 @@ export interface CreateFavoriteConfig {
|
|
|
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,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 } 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[];
|
|
@@ -8,15 +8,15 @@ export declare const getFavorite_ConfigPropertyNames: adapter$45$utils_AdapterVa
|
|
|
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_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>>;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-cpq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.335.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "APIs for Industries CPQ Project",
|
|
6
6
|
"main": "dist/es/es2018/industries-cpq.js",
|
|
@@ -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.335.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.335.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.335.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -476,7 +476,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
476
476
|
function createResourceRequest$o(config) {
|
|
477
477
|
const headers = {};
|
|
478
478
|
return {
|
|
479
|
-
baseUri: '/services/data/
|
|
479
|
+
baseUri: '/services/data/v64.0',
|
|
480
480
|
basePath: '/connect/cpq/products/bulk',
|
|
481
481
|
method: 'post',
|
|
482
482
|
body: config.body,
|
|
@@ -736,7 +736,7 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
736
736
|
function createResourceRequest$n(config) {
|
|
737
737
|
const headers = {};
|
|
738
738
|
return {
|
|
739
|
-
baseUri: '/services/data/
|
|
739
|
+
baseUri: '/services/data/v64.0',
|
|
740
740
|
basePath: '/connect/cpq/categories/' + config.urlParams.categoryId + '',
|
|
741
741
|
method: 'post',
|
|
742
742
|
body: config.body,
|
|
@@ -1062,7 +1062,7 @@ function ingestSuccess$l(luvio, resourceParams, response) {
|
|
|
1062
1062
|
function createResourceRequest$m(config) {
|
|
1063
1063
|
const headers = {};
|
|
1064
1064
|
return {
|
|
1065
|
-
baseUri: '/services/data/
|
|
1065
|
+
baseUri: '/services/data/v64.0',
|
|
1066
1066
|
basePath: '/connect/cpq/categories',
|
|
1067
1067
|
method: 'post',
|
|
1068
1068
|
body: config.body,
|
|
@@ -2951,7 +2951,7 @@ function ingestSuccess$k(luvio, resourceParams, response) {
|
|
|
2951
2951
|
function createResourceRequest$l(config) {
|
|
2952
2952
|
const headers = {};
|
|
2953
2953
|
return {
|
|
2954
|
-
baseUri: '/services/data/
|
|
2954
|
+
baseUri: '/services/data/v64.0',
|
|
2955
2955
|
basePath: '/connect/cpq/configurator/actions/configure',
|
|
2956
2956
|
method: 'post',
|
|
2957
2957
|
body: config.body,
|
|
@@ -3188,7 +3188,7 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
3188
3188
|
function createResourceRequest$k(config) {
|
|
3189
3189
|
const headers = {};
|
|
3190
3190
|
return {
|
|
3191
|
-
baseUri: '/services/data/
|
|
3191
|
+
baseUri: '/services/data/v64.0',
|
|
3192
3192
|
basePath: '/connect/cpq/carts',
|
|
3193
3193
|
method: 'post',
|
|
3194
3194
|
body: config.body,
|
|
@@ -3393,7 +3393,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3393
3393
|
function createResourceRequest$j(config) {
|
|
3394
3394
|
const headers = {};
|
|
3395
3395
|
return {
|
|
3396
|
-
baseUri: '/services/data/
|
|
3396
|
+
baseUri: '/services/data/v64.0',
|
|
3397
3397
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/items',
|
|
3398
3398
|
method: 'post',
|
|
3399
3399
|
body: config.body,
|
|
@@ -3565,8 +3565,8 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3565
3565
|
function createResourceRequest$i(config) {
|
|
3566
3566
|
const headers = {};
|
|
3567
3567
|
return {
|
|
3568
|
-
baseUri: '/services/data/
|
|
3569
|
-
basePath: '/connect/cpq/configurator/
|
|
3568
|
+
baseUri: '/services/data/v64.0',
|
|
3569
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
3570
3570
|
method: 'post',
|
|
3571
3571
|
body: config.body,
|
|
3572
3572
|
urlParams: {},
|
|
@@ -3764,7 +3764,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3764
3764
|
function createResourceRequest$h(config) {
|
|
3765
3765
|
const headers = {};
|
|
3766
3766
|
return {
|
|
3767
|
-
baseUri: '/services/data/
|
|
3767
|
+
baseUri: '/services/data/v64.0',
|
|
3768
3768
|
basePath: '/connect/cpq/configurator/actions/create-rule',
|
|
3769
3769
|
method: 'post',
|
|
3770
3770
|
body: config.body,
|
|
@@ -3983,8 +3983,8 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
3983
3983
|
function createResourceRequest$g(config) {
|
|
3984
3984
|
const headers = {};
|
|
3985
3985
|
return {
|
|
3986
|
-
baseUri: '/services/data/
|
|
3987
|
-
basePath: '/connect/cpq/configurator/
|
|
3986
|
+
baseUri: '/services/data/v64.0',
|
|
3987
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
3988
3988
|
method: 'delete',
|
|
3989
3989
|
body: null,
|
|
3990
3990
|
urlParams: config.urlParams,
|
|
@@ -6221,7 +6221,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
6221
6221
|
function createResourceRequest$f(config) {
|
|
6222
6222
|
const headers = {};
|
|
6223
6223
|
return {
|
|
6224
|
-
baseUri: '/services/data/
|
|
6224
|
+
baseUri: '/services/data/v64.0',
|
|
6225
6225
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '',
|
|
6226
6226
|
method: 'get',
|
|
6227
6227
|
body: null,
|
|
@@ -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
|
}
|
|
@@ -6441,8 +6441,8 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
6441
6441
|
function createResourceRequest$e(config) {
|
|
6442
6442
|
const headers = {};
|
|
6443
6443
|
return {
|
|
6444
|
-
baseUri: '/services/data/
|
|
6445
|
-
basePath: '/connect/cpq/configurator/
|
|
6444
|
+
baseUri: '/services/data/v64.0',
|
|
6445
|
+
basePath: '/connect/cpq/configurator/saved-configuration',
|
|
6446
6446
|
method: 'get',
|
|
6447
6447
|
body: null,
|
|
6448
6448
|
urlParams: {},
|
|
@@ -6581,8 +6581,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6581
6581
|
function createResourceRequest$d(config) {
|
|
6582
6582
|
const headers = {};
|
|
6583
6583
|
return {
|
|
6584
|
-
baseUri: '/services/data/
|
|
6585
|
-
basePath: '/connect/cpq/configurator/
|
|
6584
|
+
baseUri: '/services/data/v64.0',
|
|
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++) {
|
|
@@ -6975,7 +6975,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
6975
6975
|
function createResourceRequest$c(config) {
|
|
6976
6976
|
const headers = {};
|
|
6977
6977
|
return {
|
|
6978
|
-
baseUri: '/services/data/
|
|
6978
|
+
baseUri: '/services/data/v64.0',
|
|
6979
6979
|
basePath: '/connect/cpq/products/guided-selection',
|
|
6980
6980
|
method: 'post',
|
|
6981
6981
|
body: config.body,
|
|
@@ -7193,7 +7193,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
7193
7193
|
function createResourceRequest$b(config) {
|
|
7194
7194
|
const headers = {};
|
|
7195
7195
|
return {
|
|
7196
|
-
baseUri: '/services/data/
|
|
7196
|
+
baseUri: '/services/data/v64.0',
|
|
7197
7197
|
basePath: '/connect/cpq/preview',
|
|
7198
7198
|
method: 'post',
|
|
7199
7199
|
body: config.body,
|
|
@@ -7415,7 +7415,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
7415
7415
|
function createResourceRequest$a(config) {
|
|
7416
7416
|
const headers = {};
|
|
7417
7417
|
return {
|
|
7418
|
-
baseUri: '/services/data/
|
|
7418
|
+
baseUri: '/services/data/v64.0',
|
|
7419
7419
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/price',
|
|
7420
7420
|
method: 'patch',
|
|
7421
7421
|
body: config.body,
|
|
@@ -7560,7 +7560,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
7560
7560
|
function createResourceRequest$9(config) {
|
|
7561
7561
|
const headers = {};
|
|
7562
7562
|
return {
|
|
7563
|
-
baseUri: '/services/data/
|
|
7563
|
+
baseUri: '/services/data/v64.0',
|
|
7564
7564
|
basePath: '/connect/cpq/products/' + config.urlParams.productId + '',
|
|
7565
7565
|
method: 'post',
|
|
7566
7566
|
body: config.body,
|
|
@@ -7747,7 +7747,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
7747
7747
|
function createResourceRequest$8(config) {
|
|
7748
7748
|
const headers = {};
|
|
7749
7749
|
return {
|
|
7750
|
-
baseUri: '/services/data/
|
|
7750
|
+
baseUri: '/services/data/v64.0',
|
|
7751
7751
|
basePath: '/connect/cpq/products',
|
|
7752
7752
|
method: 'post',
|
|
7753
7753
|
body: config.body,
|
|
@@ -7939,7 +7939,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
7939
7939
|
function createResourceRequest$7(config) {
|
|
7940
7940
|
const headers = {};
|
|
7941
7941
|
return {
|
|
7942
|
-
baseUri: '/services/data/
|
|
7942
|
+
baseUri: '/services/data/v64.0',
|
|
7943
7943
|
basePath: '/connect/cpq/products/search',
|
|
7944
7944
|
method: 'post',
|
|
7945
7945
|
body: config.body,
|
|
@@ -8109,7 +8109,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
8109
8109
|
function createResourceRequest$6(config) {
|
|
8110
8110
|
const headers = {};
|
|
8111
8111
|
return {
|
|
8112
|
-
baseUri: '/services/data/
|
|
8112
|
+
baseUri: '/services/data/v64.0',
|
|
8113
8113
|
basePath: '/connect/cpq/configurator/favorite/actions/share',
|
|
8114
8114
|
method: 'post',
|
|
8115
8115
|
body: config.body,
|
|
@@ -8356,7 +8356,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
8356
8356
|
function createResourceRequest$5(config) {
|
|
8357
8357
|
const headers = {};
|
|
8358
8358
|
return {
|
|
8359
|
-
baseUri: '/services/data/
|
|
8359
|
+
baseUri: '/services/data/v64.0',
|
|
8360
8360
|
basePath: '/connect/cpq/products/smart-selection',
|
|
8361
8361
|
method: 'post',
|
|
8362
8362
|
body: config.body,
|
|
@@ -8675,7 +8675,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
8675
8675
|
function createResourceRequest$4(config) {
|
|
8676
8676
|
const headers = {};
|
|
8677
8677
|
return {
|
|
8678
|
-
baseUri: '/services/data/
|
|
8678
|
+
baseUri: '/services/data/v64.0',
|
|
8679
8679
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '',
|
|
8680
8680
|
method: 'patch',
|
|
8681
8681
|
body: config.body,
|
|
@@ -8882,7 +8882,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
8882
8882
|
function createResourceRequest$3(config) {
|
|
8883
8883
|
const headers = {};
|
|
8884
8884
|
return {
|
|
8885
|
-
baseUri: '/services/data/
|
|
8885
|
+
baseUri: '/services/data/v64.0',
|
|
8886
8886
|
basePath: '/connect/cpq/carts/' + config.urlParams.cartId + '/items',
|
|
8887
8887
|
method: 'patch',
|
|
8888
8888
|
body: config.body,
|
|
@@ -9054,8 +9054,8 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
9054
9054
|
function createResourceRequest$2(config) {
|
|
9055
9055
|
const headers = {};
|
|
9056
9056
|
return {
|
|
9057
|
-
baseUri: '/services/data/
|
|
9058
|
-
basePath: '/connect/cpq/configurator/
|
|
9057
|
+
baseUri: '/services/data/v64.0',
|
|
9058
|
+
basePath: '/connect/cpq/configurator/saved-configuration/' + config.urlParams.id + '',
|
|
9059
9059
|
method: 'put',
|
|
9060
9060
|
body: config.body,
|
|
9061
9061
|
urlParams: config.urlParams,
|
|
@@ -9147,7 +9147,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
9147
9147
|
function createResourceRequest$1(config) {
|
|
9148
9148
|
const headers = {};
|
|
9149
9149
|
return {
|
|
9150
|
-
baseUri: '/services/data/
|
|
9150
|
+
baseUri: '/services/data/v64.0',
|
|
9151
9151
|
basePath: '/connect/cpq/configurator/actions/update-rule',
|
|
9152
9152
|
method: 'post',
|
|
9153
9153
|
body: config.body,
|
|
@@ -9364,7 +9364,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
9364
9364
|
function createResourceRequest(config) {
|
|
9365
9365
|
const headers = {};
|
|
9366
9366
|
return {
|
|
9367
|
-
baseUri: '/services/data/
|
|
9367
|
+
baseUri: '/services/data/v64.0',
|
|
9368
9368
|
basePath: '/connect/cpq/configurator/actions/validate-rule',
|
|
9369
9369
|
method: 'post',
|
|
9370
9370
|
body: config.body,
|
|
@@ -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.335.0-22a7c4d20b
|
package/src/raml/api.raml
CHANGED
|
@@ -6,7 +6,7 @@ version: '59.0'
|
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
9
|
-
baseUri: /services/data/
|
|
9
|
+
baseUri: /services/data/v64.0
|
|
10
10
|
securitySchemes:
|
|
11
11
|
OAuth2:
|
|
12
12
|
type: OAuth 2.0
|
|
@@ -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:
|
|
@@ -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.
|
|
@@ -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.
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|