@salesforce/lds-adapters-industries-cpq 1.450.0 → 1.451.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 +29 -0
- package/dist/es/es2018/types/src/generated/adapters/guidedSelectionProductList.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsGuidedSelection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/GuidedSelectionInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ProductListInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SearchProductsInputRepresentation.d.ts +4 -1
- package/package.json +4 -10
- package/sfdc/index.js +30 -1
- package/src/raml/api.raml +18 -0
|
@@ -768,6 +768,20 @@ function validate$1i(obj, path = 'ProductListInputRepresentation') {
|
|
|
768
768
|
return new TypeError('Expected "string" but received "' + typeof obj_priceBookId + '" (at "' + path_priceBookId + '")');
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
+
if (obj.sortRuleIds !== undefined) {
|
|
772
|
+
const obj_sortRuleIds = obj.sortRuleIds;
|
|
773
|
+
const path_sortRuleIds = path + '.sortRuleIds';
|
|
774
|
+
if (!ArrayIsArray(obj_sortRuleIds)) {
|
|
775
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sortRuleIds + '" (at "' + path_sortRuleIds + '")');
|
|
776
|
+
}
|
|
777
|
+
for (let i = 0; i < obj_sortRuleIds.length; i++) {
|
|
778
|
+
const obj_sortRuleIds_item = obj_sortRuleIds[i];
|
|
779
|
+
const path_sortRuleIds_item = path_sortRuleIds + '[' + i + ']';
|
|
780
|
+
if (typeof obj_sortRuleIds_item !== 'string') {
|
|
781
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sortRuleIds_item + '" (at "' + path_sortRuleIds_item + '")');
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
771
785
|
if (obj.transactionContextId !== undefined) {
|
|
772
786
|
const obj_transactionContextId = obj.transactionContextId;
|
|
773
787
|
const path_transactionContextId = path + '.transactionContextId';
|
|
@@ -1242,6 +1256,7 @@ const guidedSelectionProductList_ConfigPropertyMetadata = [
|
|
|
1242
1256
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
1243
1257
|
generateParamConfigMetadata('relatedObjectFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1244
1258
|
generateParamConfigMetadata('searchTerms', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1259
|
+
generateParamConfigMetadata('sortRuleIds', false, 2 /* Body */, 0 /* String */, true),
|
|
1245
1260
|
generateParamConfigMetadata('transactionContextId', false, 2 /* Body */, 0 /* String */),
|
|
1246
1261
|
generateParamConfigMetadata('transactionId', false, 2 /* Body */, 0 /* String */),
|
|
1247
1262
|
generateParamConfigMetadata('usePromotions', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -1445,6 +1460,20 @@ function validate$1b(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
1445
1460
|
return new TypeError('Expected "string" but received "' + typeof obj_searchTerm + '" (at "' + path_searchTerm + '")');
|
|
1446
1461
|
}
|
|
1447
1462
|
}
|
|
1463
|
+
if (obj.sortRuleIds !== undefined) {
|
|
1464
|
+
const obj_sortRuleIds = obj.sortRuleIds;
|
|
1465
|
+
const path_sortRuleIds = path + '.sortRuleIds';
|
|
1466
|
+
if (!ArrayIsArray(obj_sortRuleIds)) {
|
|
1467
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sortRuleIds + '" (at "' + path_sortRuleIds + '")');
|
|
1468
|
+
}
|
|
1469
|
+
for (let i = 0; i < obj_sortRuleIds.length; i++) {
|
|
1470
|
+
const obj_sortRuleIds_item = obj_sortRuleIds[i];
|
|
1471
|
+
const path_sortRuleIds_item = path_sortRuleIds + '[' + i + ']';
|
|
1472
|
+
if (typeof obj_sortRuleIds_item !== 'string') {
|
|
1473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sortRuleIds_item + '" (at "' + path_sortRuleIds_item + '")');
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1448
1477
|
if (obj.transactionContextId !== undefined) {
|
|
1449
1478
|
const obj_transactionContextId = obj.transactionContextId;
|
|
1450
1479
|
const path_transactionContextId = path + '.transactionContextId';
|
|
@@ -33,6 +33,7 @@ export interface GuidedSelectionProductListConfig {
|
|
|
33
33
|
qualificationProcedure?: string;
|
|
34
34
|
relatedObjectFilters?: Array<types_RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
|
|
35
35
|
searchTerms?: Array<types_GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
|
|
36
|
+
sortRuleIds?: Array<string>;
|
|
36
37
|
transactionContextId?: string;
|
|
37
38
|
transactionId?: string;
|
|
38
39
|
usePromotions?: boolean;
|
package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsGuidedSelection.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface ResourceRequestConfig {
|
|
|
29
29
|
qualificationProcedure?: string;
|
|
30
30
|
relatedObjectFilters?: Array<types_RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
|
|
31
31
|
searchTerms?: Array<types_GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
|
|
32
|
+
sortRuleIds?: Array<string>;
|
|
32
33
|
transactionContextId?: string;
|
|
33
34
|
transactionId?: string;
|
|
34
35
|
usePromotions?: boolean;
|
|
@@ -2,7 +2,7 @@ import { FilterInputRepresentation as FilterInputRepresentation_FilterInputRepre
|
|
|
2
2
|
import { RelatedObjectFilterInputRepresentation as RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation } from './RelatedObjectFilterInputRepresentation';
|
|
3
3
|
import { GuidedSelectionSearchTermInputRepresentation as GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation } from './GuidedSelectionSearchTermInputRepresentation';
|
|
4
4
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "2f1c7dce5e95ea684cbace85681c801b";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: GuidedSelectionInputRepresentation, existing: GuidedSelectionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GuidedSelectionInputRepresentationNormalized;
|
|
@@ -65,6 +65,8 @@ export interface GuidedSelectionInputRepresentationNormalized {
|
|
|
65
65
|
relatedObjectFilters?: Array<RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
|
|
66
66
|
/** Guided Selection Search Terms */
|
|
67
67
|
searchTerms?: Array<GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
|
|
68
|
+
/** List of sort rule Ids */
|
|
69
|
+
sortRuleIds?: Array<string>;
|
|
68
70
|
/** Transaction Context Id */
|
|
69
71
|
transactionContextId?: string;
|
|
70
72
|
/** Transaction Id */
|
|
@@ -107,6 +109,7 @@ export interface GuidedSelectionInputRepresentation {
|
|
|
107
109
|
qualificationProcedure?: string;
|
|
108
110
|
relatedObjectFilters?: Array<RelatedObjectFilterInputRepresentation_RelatedObjectFilterInputRepresentation>;
|
|
109
111
|
searchTerms?: Array<GuidedSelectionSearchTermInputRepresentation_GuidedSelectionSearchTermInputRepresentation>;
|
|
112
|
+
sortRuleIds?: Array<string>;
|
|
110
113
|
transactionContextId?: string;
|
|
111
114
|
transactionId?: string;
|
|
112
115
|
usePromotions?: boolean;
|
|
@@ -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 = "915a0e0598527bf4f857f71aac7bce2b";
|
|
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: ProductListInputRepresentation, existing: ProductListInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductListInputRepresentationNormalized;
|
|
@@ -36,6 +36,8 @@ export interface ProductListInputRepresentationNormalized {
|
|
|
36
36
|
orderBy?: Array<string>;
|
|
37
37
|
/** Id of the price Book. */
|
|
38
38
|
priceBookId?: string;
|
|
39
|
+
/** List of sort rule Ids */
|
|
40
|
+
sortRuleIds?: Array<string>;
|
|
39
41
|
/** Transaction Context Id */
|
|
40
42
|
transactionContextId?: string;
|
|
41
43
|
/** Transaction Id */
|
|
@@ -63,6 +65,7 @@ export interface ProductListInputRepresentation {
|
|
|
63
65
|
offset?: number;
|
|
64
66
|
orderBy?: Array<string>;
|
|
65
67
|
priceBookId?: string;
|
|
68
|
+
sortRuleIds?: Array<string>;
|
|
66
69
|
transactionContextId?: string;
|
|
67
70
|
transactionId?: string;
|
|
68
71
|
usePromotions?: boolean;
|
|
@@ -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 = "3048547362d9dfb0aa2d8d65c810b979";
|
|
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: SearchProductsInputRepresentation, existing: SearchProductsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SearchProductsInputRepresentationNormalized;
|
|
@@ -38,6 +38,8 @@ export interface SearchProductsInputRepresentationNormalized {
|
|
|
38
38
|
query?: unknown;
|
|
39
39
|
/** Search Term */
|
|
40
40
|
searchTerm?: string;
|
|
41
|
+
/** List of sort rule Ids */
|
|
42
|
+
sortRuleIds?: Array<string>;
|
|
41
43
|
/** Transaction Context Id */
|
|
42
44
|
transactionContextId?: string;
|
|
43
45
|
/** Transaction Id */
|
|
@@ -66,6 +68,7 @@ export interface SearchProductsInputRepresentation {
|
|
|
66
68
|
priceBookId?: string;
|
|
67
69
|
query?: unknown;
|
|
68
70
|
searchTerm?: string;
|
|
71
|
+
sortRuleIds?: Array<string>;
|
|
69
72
|
transactionContextId?: string;
|
|
70
73
|
transactionId?: string;
|
|
71
74
|
usePromotions?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-cpq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.451.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",
|
|
@@ -34,18 +34,17 @@
|
|
|
34
34
|
"build": "yarn build:services",
|
|
35
35
|
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
36
36
|
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
37
|
-
"clean": "rm -rf dist sfdc src/generated
|
|
37
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
38
38
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-cpq",
|
|
39
39
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-cpq",
|
|
40
40
|
"test:unit": "jest",
|
|
41
41
|
"test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.451.0-dev10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
48
|
-
"@salesforce/lds-karma": "^1.450.0"
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev10"
|
|
49
48
|
},
|
|
50
49
|
"nx": {
|
|
51
50
|
"targets": {
|
|
@@ -59,11 +58,6 @@
|
|
|
59
58
|
"outputs": [
|
|
60
59
|
"{projectRoot}/src/generated"
|
|
61
60
|
]
|
|
62
|
-
},
|
|
63
|
-
"build:karma": {
|
|
64
|
-
"outputs": [
|
|
65
|
-
"{projectRoot}/karma/dist"
|
|
66
|
-
]
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
63
|
},
|
package/sfdc/index.js
CHANGED
|
@@ -7523,6 +7523,7 @@ const guidedSelectionProductList_ConfigPropertyMetadata = [
|
|
|
7523
7523
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
7524
7524
|
generateParamConfigMetadata('relatedObjectFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7525
7525
|
generateParamConfigMetadata('searchTerms', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7526
|
+
generateParamConfigMetadata('sortRuleIds', false, 2 /* Body */, 0 /* String */, true),
|
|
7526
7527
|
generateParamConfigMetadata('transactionContextId', false, 2 /* Body */, 0 /* String */),
|
|
7527
7528
|
generateParamConfigMetadata('transactionId', false, 2 /* Body */, 0 /* String */),
|
|
7528
7529
|
generateParamConfigMetadata('usePromotions', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -8242,6 +8243,20 @@ function validate$s(obj, path = 'ProductListInputRepresentation') {
|
|
|
8242
8243
|
return new TypeError('Expected "string" but received "' + typeof obj_priceBookId + '" (at "' + path_priceBookId + '")');
|
|
8243
8244
|
}
|
|
8244
8245
|
}
|
|
8246
|
+
if (obj.sortRuleIds !== undefined) {
|
|
8247
|
+
const obj_sortRuleIds = obj.sortRuleIds;
|
|
8248
|
+
const path_sortRuleIds = path + '.sortRuleIds';
|
|
8249
|
+
if (!ArrayIsArray(obj_sortRuleIds)) {
|
|
8250
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sortRuleIds + '" (at "' + path_sortRuleIds + '")');
|
|
8251
|
+
}
|
|
8252
|
+
for (let i = 0; i < obj_sortRuleIds.length; i++) {
|
|
8253
|
+
const obj_sortRuleIds_item = obj_sortRuleIds[i];
|
|
8254
|
+
const path_sortRuleIds_item = path_sortRuleIds + '[' + i + ']';
|
|
8255
|
+
if (typeof obj_sortRuleIds_item !== 'string') {
|
|
8256
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sortRuleIds_item + '" (at "' + path_sortRuleIds_item + '")');
|
|
8257
|
+
}
|
|
8258
|
+
}
|
|
8259
|
+
}
|
|
8245
8260
|
if (obj.transactionContextId !== undefined) {
|
|
8246
8261
|
const obj_transactionContextId = obj.transactionContextId;
|
|
8247
8262
|
const path_transactionContextId = path + '.transactionContextId';
|
|
@@ -9435,6 +9450,20 @@ function validate$b(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
9435
9450
|
return new TypeError('Expected "string" but received "' + typeof obj_searchTerm + '" (at "' + path_searchTerm + '")');
|
|
9436
9451
|
}
|
|
9437
9452
|
}
|
|
9453
|
+
if (obj.sortRuleIds !== undefined) {
|
|
9454
|
+
const obj_sortRuleIds = obj.sortRuleIds;
|
|
9455
|
+
const path_sortRuleIds = path + '.sortRuleIds';
|
|
9456
|
+
if (!ArrayIsArray(obj_sortRuleIds)) {
|
|
9457
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sortRuleIds + '" (at "' + path_sortRuleIds + '")');
|
|
9458
|
+
}
|
|
9459
|
+
for (let i = 0; i < obj_sortRuleIds.length; i++) {
|
|
9460
|
+
const obj_sortRuleIds_item = obj_sortRuleIds[i];
|
|
9461
|
+
const path_sortRuleIds_item = path_sortRuleIds + '[' + i + ']';
|
|
9462
|
+
if (typeof obj_sortRuleIds_item !== 'string') {
|
|
9463
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sortRuleIds_item + '" (at "' + path_sortRuleIds_item + '")');
|
|
9464
|
+
}
|
|
9465
|
+
}
|
|
9466
|
+
}
|
|
9438
9467
|
if (obj.transactionContextId !== undefined) {
|
|
9439
9468
|
const obj_transactionContextId = obj.transactionContextId;
|
|
9440
9469
|
const path_transactionContextId = path + '.transactionContextId';
|
|
@@ -11100,4 +11129,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11100
11129
|
});
|
|
11101
11130
|
|
|
11102
11131
|
export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createFavorite, createRule, deleteFavorite, executeConfigRules, getCart, getCart_imperative, getFavorite, getFavoriteId, getFavoriteIdNotifyChange, getFavoriteId_imperative, getFavorite_imperative, guidedSelectionProductList, preview, priceCart, productDetails, productList, productRecommendations, searchProductList, shareFavorite, smartProductSelection, updateCart, updateCartItems, updateFavorite, updateRule, validateRule };
|
|
11103
|
-
// version: 1.
|
|
11132
|
+
// version: 1.451.0-dev10-1dd3380fb3
|
package/src/raml/api.raml
CHANGED
|
@@ -1837,6 +1837,12 @@ types:
|
|
|
1837
1837
|
required: false
|
|
1838
1838
|
items:
|
|
1839
1839
|
type: GuidedSelectionSearchTermInputRepresentation
|
|
1840
|
+
sortRuleIds:
|
|
1841
|
+
description: List of sort rule Ids
|
|
1842
|
+
type: array
|
|
1843
|
+
required: false
|
|
1844
|
+
items:
|
|
1845
|
+
type: string
|
|
1840
1846
|
transactionContextId:
|
|
1841
1847
|
description: Transaction Context Id
|
|
1842
1848
|
type: string
|
|
@@ -2414,6 +2420,12 @@ types:
|
|
|
2414
2420
|
description: Id of the price Book.
|
|
2415
2421
|
type: string
|
|
2416
2422
|
required: false
|
|
2423
|
+
sortRuleIds:
|
|
2424
|
+
description: List of sort rule Ids
|
|
2425
|
+
type: array
|
|
2426
|
+
required: false
|
|
2427
|
+
items:
|
|
2428
|
+
type: string
|
|
2417
2429
|
transactionContextId:
|
|
2418
2430
|
description: Transaction Context Id
|
|
2419
2431
|
type: string
|
|
@@ -3181,6 +3193,12 @@ types:
|
|
|
3181
3193
|
description: Search Term
|
|
3182
3194
|
type: string
|
|
3183
3195
|
required: false
|
|
3196
|
+
sortRuleIds:
|
|
3197
|
+
description: List of sort rule Ids
|
|
3198
|
+
type: array
|
|
3199
|
+
required: false
|
|
3200
|
+
items:
|
|
3201
|
+
type: string
|
|
3184
3202
|
transactionContextId:
|
|
3185
3203
|
description: Transaction Context Id
|
|
3186
3204
|
type: string
|