@salesforce/lds-adapters-industries-cpq 1.371.0 → 1.372.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 +15 -11
- package/dist/es/es2018/types/src/generated/adapters/bulkProductDetails.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsBulk.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/BulkProductDetailsInput.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CpqBaseDetailsOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CpqBaseListOutputRepresentation.d.ts +3 -3
- package/package.json +4 -4
- package/sfdc/index.js +16 -12
- package/src/raml/api.raml +3 -0
|
@@ -457,7 +457,7 @@ function validate$10(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
const TTL$h = 1000;
|
|
460
|
-
const VERSION$p = "
|
|
460
|
+
const VERSION$p = "4b7b85fac2d5af69b24fafa7375618f8";
|
|
461
461
|
function validate$$(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
462
462
|
const v_error = (() => {
|
|
463
463
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -471,10 +471,12 @@ function validate$$(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
471
471
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
472
472
|
return new TypeError(message);
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
if (obj.correlationId !== undefined) {
|
|
475
|
+
const obj_correlationId = obj.correlationId;
|
|
476
|
+
const path_correlationId = path + '.correlationId';
|
|
477
|
+
if (typeof obj_correlationId !== 'string') {
|
|
478
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
479
|
+
}
|
|
478
480
|
}
|
|
479
481
|
const obj_facets = obj.facets;
|
|
480
482
|
const path_facets = path + '.facets';
|
|
@@ -2012,7 +2014,7 @@ const adapterName$j = 'bulkProductDetails';
|
|
|
2012
2014
|
const bulkProductDetails_ConfigPropertyMetadata = [
|
|
2013
2015
|
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2014
2016
|
generateParamConfigMetadata('catalogId', true, 2 /* Body */, 0 /* String */),
|
|
2015
|
-
generateParamConfigMetadata('correlationId',
|
|
2017
|
+
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
2016
2018
|
generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
|
|
2017
2019
|
generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2018
2020
|
generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -2149,7 +2151,7 @@ function validate$N(obj, path = 'ProductDetailsInputRepresentation') {
|
|
|
2149
2151
|
}
|
|
2150
2152
|
|
|
2151
2153
|
const TTL$d = 1000;
|
|
2152
|
-
const VERSION$l = "
|
|
2154
|
+
const VERSION$l = "2f20f99218d11f5ad756aff76b7a815e";
|
|
2153
2155
|
function validate$M(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
2154
2156
|
const v_error = (() => {
|
|
2155
2157
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2163,10 +2165,12 @@ function validate$M(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
|
2163
2165
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2164
2166
|
return new TypeError(message);
|
|
2165
2167
|
}
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2168
|
+
if (obj.correlationId !== undefined) {
|
|
2169
|
+
const obj_correlationId = obj.correlationId;
|
|
2170
|
+
const path_correlationId = path + '.correlationId';
|
|
2171
|
+
if (typeof obj_correlationId !== 'string') {
|
|
2172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
2173
|
+
}
|
|
2170
2174
|
}
|
|
2171
2175
|
const obj_result = obj.result;
|
|
2172
2176
|
const path_result = path + '.result';
|
|
@@ -9,7 +9,7 @@ export declare const bulkProductDetails_ConfigPropertyNames: adapter$45$utils_Ad
|
|
|
9
9
|
export interface BulkProductDetailsConfig {
|
|
10
10
|
additionalFields?: {};
|
|
11
11
|
catalogId: string;
|
|
12
|
-
correlationId
|
|
12
|
+
correlationId?: string;
|
|
13
13
|
priceBookId: string;
|
|
14
14
|
productData: Array<types_ProductDataInput_ProductDataInput>;
|
|
15
15
|
userContext: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductDataInput as ProductDataInput_ProductDataInput } from './ProductDataInput';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "92a29335987ea9fbec8b5fbcf56f5a35";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: BulkProductDetailsInput, existing: BulkProductDetailsInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BulkProductDetailsInputNormalized;
|
|
@@ -24,7 +24,7 @@ export interface BulkProductDetailsInputNormalized {
|
|
|
24
24
|
/** Context Mapping Name */
|
|
25
25
|
contextMapping?: string;
|
|
26
26
|
/** CorrelationId */
|
|
27
|
-
correlationId
|
|
27
|
+
correlationId?: string;
|
|
28
28
|
/** Currency code for the prices */
|
|
29
29
|
currencyCode?: string;
|
|
30
30
|
/** Enable Pricing */
|
|
@@ -53,7 +53,7 @@ export interface BulkProductDetailsInput {
|
|
|
53
53
|
catalogId: string;
|
|
54
54
|
contextDefinition?: string;
|
|
55
55
|
contextMapping?: string;
|
|
56
|
-
correlationId
|
|
56
|
+
correlationId?: string;
|
|
57
57
|
currencyCode?: string;
|
|
58
58
|
enablePricing?: boolean;
|
|
59
59
|
enableQualification?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiStatusOutputRepresentation as ApiStatusOutputRepresentation_ApiStatusOutputRepresentation } from './ApiStatusOutputRepresentation';
|
|
2
2
|
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';
|
|
3
3
|
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "2f20f99218d11f5ad756aff76b7a815e";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -28,7 +28,7 @@ export interface CpqBaseDetailsOutputRepresentationNormalized {
|
|
|
28
28
|
/** Api Status Object */
|
|
29
29
|
apiStatus: ApiStatusOutputRepresentation_ApiStatusOutputRepresentation;
|
|
30
30
|
/** CorrelationId */
|
|
31
|
-
correlationId
|
|
31
|
+
correlationId?: string;
|
|
32
32
|
/** Result object */
|
|
33
33
|
result: {};
|
|
34
34
|
}
|
|
@@ -40,6 +40,6 @@ export interface CpqBaseDetailsOutputRepresentationNormalized {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface CpqBaseDetailsOutputRepresentation {
|
|
42
42
|
apiStatus: ApiStatusOutputRepresentation_ApiStatusOutputRepresentation;
|
|
43
|
-
correlationId
|
|
43
|
+
correlationId?: string;
|
|
44
44
|
result: {};
|
|
45
45
|
}
|
|
@@ -2,7 +2,7 @@ import { ApiStatusOutputRepresentation as ApiStatusOutputRepresentation_ApiStatu
|
|
|
2
2
|
import { SearchProductsFacetRepresentation as SearchProductsFacetRepresentation_SearchProductsFacetRepresentation } from './SearchProductsFacetRepresentation';
|
|
3
3
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
4
|
export declare const TTL = 1000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "4b7b85fac2d5af69b24fafa7375618f8";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -29,7 +29,7 @@ export interface CpqBaseListOutputRepresentationNormalized {
|
|
|
29
29
|
/** Api Status Object */
|
|
30
30
|
apiStatus: ApiStatusOutputRepresentation_ApiStatusOutputRepresentation;
|
|
31
31
|
/** CorrelationId */
|
|
32
|
-
correlationId
|
|
32
|
+
correlationId?: string;
|
|
33
33
|
/** Facets object */
|
|
34
34
|
facets: Array<SearchProductsFacetRepresentation_SearchProductsFacetRepresentation>;
|
|
35
35
|
/** Limit */
|
|
@@ -51,7 +51,7 @@ export interface CpqBaseListOutputRepresentationNormalized {
|
|
|
51
51
|
*/
|
|
52
52
|
export interface CpqBaseListOutputRepresentation {
|
|
53
53
|
apiStatus: ApiStatusOutputRepresentation_ApiStatusOutputRepresentation;
|
|
54
|
-
correlationId
|
|
54
|
+
correlationId?: string;
|
|
55
55
|
facets: Array<SearchProductsFacetRepresentation_SearchProductsFacetRepresentation>;
|
|
56
56
|
limit?: number;
|
|
57
57
|
offSet?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-cpq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.372.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.372.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.372.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.372.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -491,7 +491,7 @@ const adapterName$o = 'bulkProductDetails';
|
|
|
491
491
|
const bulkProductDetails_ConfigPropertyMetadata = [
|
|
492
492
|
generateParamConfigMetadata('additionalFields', false, 2 /* Body */, 4 /* Unsupported */),
|
|
493
493
|
generateParamConfigMetadata('catalogId', true, 2 /* Body */, 0 /* String */),
|
|
494
|
-
generateParamConfigMetadata('correlationId',
|
|
494
|
+
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
495
495
|
generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
|
|
496
496
|
generateParamConfigMetadata('productData', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
497
497
|
generateParamConfigMetadata('userContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -634,7 +634,7 @@ function validate$$(obj, path = 'FilterInputRepresentation') {
|
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
const TTL$g = 1000;
|
|
637
|
-
const VERSION$o = "
|
|
637
|
+
const VERSION$o = "2f20f99218d11f5ad756aff76b7a815e";
|
|
638
638
|
function validate$_(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
639
639
|
const v_error = (() => {
|
|
640
640
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -648,10 +648,12 @@ function validate$_(obj, path = 'CpqBaseDetailsOutputRepresentation') {
|
|
|
648
648
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
649
649
|
return new TypeError(message);
|
|
650
650
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
651
|
+
if (obj.correlationId !== undefined) {
|
|
652
|
+
const obj_correlationId = obj.correlationId;
|
|
653
|
+
const path_correlationId = path + '.correlationId';
|
|
654
|
+
if (typeof obj_correlationId !== 'string') {
|
|
655
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
656
|
+
}
|
|
655
657
|
}
|
|
656
658
|
const obj_result = obj.result;
|
|
657
659
|
const path_result = path + '.result';
|
|
@@ -911,7 +913,7 @@ function validate$Y(obj, path = 'SearchProductsFacetRepresentation') {
|
|
|
911
913
|
}
|
|
912
914
|
|
|
913
915
|
const TTL$f = 1000;
|
|
914
|
-
const VERSION$n = "
|
|
916
|
+
const VERSION$n = "4b7b85fac2d5af69b24fafa7375618f8";
|
|
915
917
|
function validate$X(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
916
918
|
const v_error = (() => {
|
|
917
919
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -925,10 +927,12 @@ function validate$X(obj, path = 'CpqBaseListOutputRepresentation') {
|
|
|
925
927
|
message += referencepath_apiStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
926
928
|
return new TypeError(message);
|
|
927
929
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
930
|
+
if (obj.correlationId !== undefined) {
|
|
931
|
+
const obj_correlationId = obj.correlationId;
|
|
932
|
+
const path_correlationId = path + '.correlationId';
|
|
933
|
+
if (typeof obj_correlationId !== 'string') {
|
|
934
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
935
|
+
}
|
|
932
936
|
}
|
|
933
937
|
const obj_facets = obj.facets;
|
|
934
938
|
const path_facets = path + '.facets';
|
|
@@ -9673,4 +9677,4 @@ withDefaultLuvio((luvio) => {
|
|
|
9673
9677
|
});
|
|
9674
9678
|
|
|
9675
9679
|
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 };
|
|
9676
|
-
// version: 1.
|
|
9680
|
+
// version: 1.372.0-59e8aa192f
|
package/src/raml/api.raml
CHANGED
|
@@ -1307,6 +1307,7 @@ types:
|
|
|
1307
1307
|
correlationId:
|
|
1308
1308
|
description: CorrelationId
|
|
1309
1309
|
type: string
|
|
1310
|
+
required: false
|
|
1310
1311
|
priceBookId:
|
|
1311
1312
|
description: Id of the price Book.
|
|
1312
1313
|
type: string
|
|
@@ -1417,6 +1418,7 @@ types:
|
|
|
1417
1418
|
correlationId:
|
|
1418
1419
|
description: CorrelationId
|
|
1419
1420
|
type: string
|
|
1421
|
+
required: false
|
|
1420
1422
|
result:
|
|
1421
1423
|
description: Result object
|
|
1422
1424
|
type: object
|
|
@@ -1430,6 +1432,7 @@ types:
|
|
|
1430
1432
|
correlationId:
|
|
1431
1433
|
description: CorrelationId
|
|
1432
1434
|
type: string
|
|
1435
|
+
required: false
|
|
1433
1436
|
limit:
|
|
1434
1437
|
description: Limit
|
|
1435
1438
|
type: integer
|