@salesforce/lds-adapters-industries-cpq 1.365.0 → 1.367.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 +67 -1
- package/dist/es/es2018/types/src/generated/adapters/bulkProductDetails.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/categoryDetails.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/categoryList.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategories.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategoriesByCategoryId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCpqProductsBulk.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/BulkProductDetailsInput.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CategoryDetailsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CategoryListInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CategoryOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorOutputRepresentation.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/ProductOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/PromotionOutputRepresentation.d.ts +61 -0
- package/dist/es/es2018/types/src/generated/types/SearchProductsInputRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +68 -2
- package/src/raml/api.raml +90 -0
|
@@ -717,6 +717,13 @@ function validate$Z(obj, path = 'ProductListInputRepresentation') {
|
|
|
717
717
|
return new TypeError('Expected "string" but received "' + typeof obj_cursor + '" (at "' + path_cursor + '")');
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
+
if (obj.enablePromotionRules !== undefined) {
|
|
721
|
+
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
722
|
+
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
723
|
+
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
724
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
725
|
+
}
|
|
726
|
+
}
|
|
720
727
|
if (obj.filter !== undefined) {
|
|
721
728
|
const obj_filter = obj.filter;
|
|
722
729
|
const path_filter = path + '.filter';
|
|
@@ -1338,6 +1345,13 @@ function validate$S(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
1338
1345
|
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
1339
1346
|
}
|
|
1340
1347
|
}
|
|
1348
|
+
if (obj.enablePromotionRules !== undefined) {
|
|
1349
|
+
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
1350
|
+
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
1351
|
+
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
1352
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1341
1355
|
if (obj.filter !== undefined) {
|
|
1342
1356
|
const obj_filter = obj.filter;
|
|
1343
1357
|
const path_filter = path + '.filter';
|
|
@@ -1921,6 +1935,7 @@ const bulkProductDetails_ConfigPropertyMetadata = [
|
|
|
1921
1935
|
generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
|
|
1922
1936
|
generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
|
|
1923
1937
|
generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
|
|
1938
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
1924
1939
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
1925
1940
|
generateParamConfigMetadata('pricingProcedure', false, 2 /* Body */, 0 /* String */),
|
|
1926
1941
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2269,6 +2284,7 @@ const categoryList_ConfigPropertyMetadata = [
|
|
|
2269
2284
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
2270
2285
|
generateParamConfigMetadata('depth', false, 2 /* Body */, 3 /* Integer */),
|
|
2271
2286
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
2287
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
2272
2288
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2273
2289
|
generateParamConfigMetadata('parentCategoryId', false, 2 /* Body */, 0 /* String */),
|
|
2274
2290
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2392,6 +2408,7 @@ const categoryDetails_ConfigPropertyMetadata = [
|
|
|
2392
2408
|
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
2393
2409
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
2394
2410
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
2411
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
2395
2412
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2396
2413
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
2397
2414
|
generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -6138,6 +6155,13 @@ function validate$n(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6138
6155
|
return new TypeError('Expected "string" but received "' + typeof obj_contextMappingId + '" (at "' + path_contextMappingId + '")');
|
|
6139
6156
|
}
|
|
6140
6157
|
}
|
|
6158
|
+
if (obj.contextResponseType !== undefined) {
|
|
6159
|
+
const obj_contextResponseType = obj.contextResponseType;
|
|
6160
|
+
const path_contextResponseType = path + '.contextResponseType';
|
|
6161
|
+
if (typeof obj_contextResponseType !== 'string') {
|
|
6162
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextResponseType + '" (at "' + path_contextResponseType + '")');
|
|
6163
|
+
}
|
|
6164
|
+
}
|
|
6141
6165
|
if (obj.correlationId !== undefined) {
|
|
6142
6166
|
const obj_correlationId = obj.correlationId;
|
|
6143
6167
|
const path_correlationId = path + '.correlationId';
|
|
@@ -6253,6 +6277,34 @@ function validate$n(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
6253
6277
|
return new TypeError(message);
|
|
6254
6278
|
}
|
|
6255
6279
|
}
|
|
6280
|
+
if (obj.transactionLineGroupId !== undefined) {
|
|
6281
|
+
const obj_transactionLineGroupId = obj.transactionLineGroupId;
|
|
6282
|
+
const path_transactionLineGroupId = path + '.transactionLineGroupId';
|
|
6283
|
+
let obj_transactionLineGroupId_union0 = null;
|
|
6284
|
+
const obj_transactionLineGroupId_union0_error = (() => {
|
|
6285
|
+
if (typeof obj_transactionLineGroupId !== 'string') {
|
|
6286
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transactionLineGroupId + '" (at "' + path_transactionLineGroupId + '")');
|
|
6287
|
+
}
|
|
6288
|
+
})();
|
|
6289
|
+
if (obj_transactionLineGroupId_union0_error != null) {
|
|
6290
|
+
obj_transactionLineGroupId_union0 = obj_transactionLineGroupId_union0_error.message;
|
|
6291
|
+
}
|
|
6292
|
+
let obj_transactionLineGroupId_union1 = null;
|
|
6293
|
+
const obj_transactionLineGroupId_union1_error = (() => {
|
|
6294
|
+
if (obj_transactionLineGroupId !== null) {
|
|
6295
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transactionLineGroupId + '" (at "' + path_transactionLineGroupId + '")');
|
|
6296
|
+
}
|
|
6297
|
+
})();
|
|
6298
|
+
if (obj_transactionLineGroupId_union1_error != null) {
|
|
6299
|
+
obj_transactionLineGroupId_union1 = obj_transactionLineGroupId_union1_error.message;
|
|
6300
|
+
}
|
|
6301
|
+
if (obj_transactionLineGroupId_union0 && obj_transactionLineGroupId_union1) {
|
|
6302
|
+
let message = 'Object doesn\'t match union (at "' + path_transactionLineGroupId + '")';
|
|
6303
|
+
message += '\n' + obj_transactionLineGroupId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6304
|
+
message += '\n' + obj_transactionLineGroupId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6305
|
+
return new TypeError(message);
|
|
6306
|
+
}
|
|
6307
|
+
}
|
|
6256
6308
|
if (obj.transactionLineId !== undefined) {
|
|
6257
6309
|
const obj_transactionLineId = obj.transactionLineId;
|
|
6258
6310
|
const path_transactionLineId = path + '.transactionLineId';
|
|
@@ -7578,7 +7630,7 @@ function validate$8(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
7578
7630
|
}
|
|
7579
7631
|
|
|
7580
7632
|
const TTL$7 = 1000;
|
|
7581
|
-
const VERSION$7 = "
|
|
7633
|
+
const VERSION$7 = "fab550b7f1154eab0e85224ff793d8f6";
|
|
7582
7634
|
function validate$7(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
7583
7635
|
const v_error = (() => {
|
|
7584
7636
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7615,6 +7667,20 @@ function validate$7(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
|
7615
7667
|
}
|
|
7616
7668
|
}
|
|
7617
7669
|
}
|
|
7670
|
+
if (obj.futureGroupIds !== undefined) {
|
|
7671
|
+
const obj_futureGroupIds = obj.futureGroupIds;
|
|
7672
|
+
const path_futureGroupIds = path + '.futureGroupIds';
|
|
7673
|
+
if (!ArrayIsArray(obj_futureGroupIds)) {
|
|
7674
|
+
return new TypeError('Expected "array" but received "' + typeof obj_futureGroupIds + '" (at "' + path_futureGroupIds + '")');
|
|
7675
|
+
}
|
|
7676
|
+
for (let i = 0; i < obj_futureGroupIds.length; i++) {
|
|
7677
|
+
const obj_futureGroupIds_item = obj_futureGroupIds[i];
|
|
7678
|
+
const path_futureGroupIds_item = path_futureGroupIds + '[' + i + ']';
|
|
7679
|
+
if (typeof obj_futureGroupIds_item !== 'string') {
|
|
7680
|
+
return new TypeError('Expected "string" but received "' + typeof obj_futureGroupIds_item + '" (at "' + path_futureGroupIds_item + '")');
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7618
7684
|
if (obj.messages !== undefined) {
|
|
7619
7685
|
const obj_messages = obj.messages;
|
|
7620
7686
|
const path_messages = path + '.messages';
|
|
@@ -15,6 +15,7 @@ export interface CategoryDetailsConfig {
|
|
|
15
15
|
correlationId?: string;
|
|
16
16
|
customFields?: Array<string>;
|
|
17
17
|
enableQualification?: boolean;
|
|
18
|
+
enablePromotionRules?: boolean;
|
|
18
19
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
19
20
|
qualificationProcedure?: string;
|
|
20
21
|
userContext?: {
|
|
@@ -15,6 +15,7 @@ export interface CategoryListConfig {
|
|
|
15
15
|
customFields?: Array<string>;
|
|
16
16
|
depth?: number;
|
|
17
17
|
enableQualification?: boolean;
|
|
18
|
+
enablePromotionRules?: boolean;
|
|
18
19
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
19
20
|
parentCategoryId?: string;
|
|
20
21
|
qualificationProcedure?: string;
|
|
@@ -11,6 +11,7 @@ export interface ResourceRequestConfig {
|
|
|
11
11
|
customFields?: Array<string>;
|
|
12
12
|
depth?: number;
|
|
13
13
|
enableQualification?: boolean;
|
|
14
|
+
enablePromotionRules?: boolean;
|
|
14
15
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
15
16
|
parentCategoryId?: string;
|
|
16
17
|
qualificationProcedure?: string;
|
package/dist/es/es2018/types/src/generated/resources/postConnectCpqCategoriesByCategoryId.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface ResourceRequestConfig {
|
|
|
13
13
|
correlationId?: string;
|
|
14
14
|
customFields?: Array<string>;
|
|
15
15
|
enableQualification?: boolean;
|
|
16
|
+
enablePromotionRules?: boolean;
|
|
16
17
|
filter?: types_FilterInputRepresentation_FilterInputRepresentation;
|
|
17
18
|
qualificationProcedure?: string;
|
|
18
19
|
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 = "7c3cfbf52eac6331825862aab5205802";
|
|
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;
|
|
@@ -29,6 +29,8 @@ export interface BulkProductDetailsInputNormalized {
|
|
|
29
29
|
currencyCode?: string;
|
|
30
30
|
/** Enable Pricing */
|
|
31
31
|
enablePricing?: boolean;
|
|
32
|
+
/** Indicates whether Global Promotion Management (GPM) is used to find promotions for products and categories */
|
|
33
|
+
enablePromotionRules?: boolean;
|
|
32
34
|
/** Enable Qualification */
|
|
33
35
|
enableQualification?: boolean;
|
|
34
36
|
/** Id of the price Book. */
|
|
@@ -56,6 +58,7 @@ export interface BulkProductDetailsInput {
|
|
|
56
58
|
correlationId: string;
|
|
57
59
|
currencyCode?: string;
|
|
58
60
|
enablePricing?: boolean;
|
|
61
|
+
enablePromotionRules?: boolean;
|
|
59
62
|
enableQualification?: boolean;
|
|
60
63
|
priceBookId: string;
|
|
61
64
|
pricingProcedure?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterInputRepresentation as FilterInputRepresentation_FilterInputRepresentation } from './FilterInputRepresentation';
|
|
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 = "2363f62f1fc378839cc3d28d974c5e82";
|
|
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: CategoryDetailsInputRepresentation, existing: CategoryDetailsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryDetailsInputRepresentationNormalized;
|
|
@@ -27,6 +27,8 @@ export interface CategoryDetailsInputRepresentationNormalized {
|
|
|
27
27
|
correlationId?: string;
|
|
28
28
|
/** Key value pair of custom fields */
|
|
29
29
|
customFields?: Array<string>;
|
|
30
|
+
/** Enable Promotion */
|
|
31
|
+
enablePromotionRules?: boolean;
|
|
30
32
|
/** Enable Qualification */
|
|
31
33
|
enableQualification?: boolean;
|
|
32
34
|
/** Filter criteria */
|
|
@@ -51,6 +53,7 @@ export interface CategoryDetailsInputRepresentation {
|
|
|
51
53
|
contextMapping?: string;
|
|
52
54
|
correlationId?: string;
|
|
53
55
|
customFields?: Array<string>;
|
|
56
|
+
enablePromotionRules?: boolean;
|
|
54
57
|
enableQualification?: boolean;
|
|
55
58
|
filter?: FilterInputRepresentation_FilterInputRepresentation;
|
|
56
59
|
qualificationProcedure?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterInputRepresentation as FilterInputRepresentation_FilterInputRepresentation } from './FilterInputRepresentation';
|
|
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 = "7e9cd5d21a3be14a0129e87614b5d1a4";
|
|
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: CategoryListInputRepresentation, existing: CategoryListInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryListInputRepresentationNormalized;
|
|
@@ -29,6 +29,8 @@ export interface CategoryListInputRepresentationNormalized {
|
|
|
29
29
|
customFields?: Array<string>;
|
|
30
30
|
/** Depth of the hierarchy */
|
|
31
31
|
depth?: number;
|
|
32
|
+
/** Enable Promotion */
|
|
33
|
+
enablePromotionRules?: boolean;
|
|
32
34
|
/** Enable Qualification */
|
|
33
35
|
enableQualification?: boolean;
|
|
34
36
|
/** Filter criteria */
|
|
@@ -56,6 +58,7 @@ export interface CategoryListInputRepresentation {
|
|
|
56
58
|
correlationId?: string;
|
|
57
59
|
customFields?: Array<string>;
|
|
58
60
|
depth?: number;
|
|
61
|
+
enablePromotionRules?: boolean;
|
|
59
62
|
enableQualification?: boolean;
|
|
60
63
|
filter?: FilterInputRepresentation_FilterInputRepresentation;
|
|
61
64
|
parentCategoryId?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PromotionOutputRepresentation as PromotionOutputRepresentation_PromotionOutputRepresentation } from './PromotionOutputRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "93f623abffc4744b6a50eb18eed1ab77";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: CategoryOutputRepresentation, existing: CategoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryOutputRepresentationNormalized;
|
|
@@ -32,6 +33,8 @@ export interface CategoryOutputRepresentationNormalized {
|
|
|
32
33
|
name: string;
|
|
33
34
|
/** Id of the parent category */
|
|
34
35
|
parentCategoryId: string;
|
|
36
|
+
/** List of promotions for the product */
|
|
37
|
+
promotions: Array<PromotionOutputRepresentation_PromotionOutputRepresentation>;
|
|
35
38
|
/** Sort Order */
|
|
36
39
|
sortOrder: number;
|
|
37
40
|
}
|
|
@@ -52,5 +55,6 @@ export interface CategoryOutputRepresentation {
|
|
|
52
55
|
isNavigational: boolean;
|
|
53
56
|
name: string;
|
|
54
57
|
parentCategoryId: string;
|
|
58
|
+
promotions: Array<PromotionOutputRepresentation_PromotionOutputRepresentation>;
|
|
55
59
|
sortOrder: number;
|
|
56
60
|
}
|
|
@@ -3,7 +3,7 @@ import { ConfiguratorOptionsInputRepresentation as ConfiguratorOptionsInputRepre
|
|
|
3
3
|
import { ConfiguratorDeletedNodeInputRepresentation as ConfiguratorDeletedNodeInputRepresentation_ConfiguratorDeletedNodeInputRepresentation } from './ConfiguratorDeletedNodeInputRepresentation';
|
|
4
4
|
import { ConfiguratorUpdatedNodeInputRepresentation as ConfiguratorUpdatedNodeInputRepresentation_ConfiguratorUpdatedNodeInputRepresentation } from './ConfiguratorUpdatedNodeInputRepresentation';
|
|
5
5
|
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';
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "f9063f32c65de912e5777fbddd2e222c";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export declare function normalize(input: ConfiguratorInputRepresentation, existing: ConfiguratorInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfiguratorInputRepresentationNormalized;
|
|
@@ -23,6 +23,8 @@ export interface ConfiguratorInputRepresentationNormalized {
|
|
|
23
23
|
configuratorOptions?: ConfiguratorOptionsInputRepresentation_ConfiguratorOptionsInputRepresentation;
|
|
24
24
|
/** Context Mapping Id */
|
|
25
25
|
contextMappingId?: string;
|
|
26
|
+
/** Context Response Type */
|
|
27
|
+
contextResponseType?: string;
|
|
26
28
|
/** Correlation ID */
|
|
27
29
|
correlationId?: string | null;
|
|
28
30
|
/** Data Seed */
|
|
@@ -35,6 +37,8 @@ export interface ConfiguratorInputRepresentationNormalized {
|
|
|
35
37
|
transactionContextId?: string | null;
|
|
36
38
|
/** Transaction ID */
|
|
37
39
|
transactionId?: string | null;
|
|
40
|
+
/** Transaction Line Group ID */
|
|
41
|
+
transactionLineGroupId?: string | null;
|
|
38
42
|
/** Transaction Line ID */
|
|
39
43
|
transactionLineId?: string | null;
|
|
40
44
|
/** List of Updated Nodes to the Configurator */
|
|
@@ -50,12 +54,14 @@ export interface ConfiguratorInputRepresentation {
|
|
|
50
54
|
addedNodes?: Array<ConfiguratorAddedNodeInputRepresentation_ConfiguratorAddedNodeInputRepresentation>;
|
|
51
55
|
configuratorOptions?: ConfiguratorOptionsInputRepresentation_ConfiguratorOptionsInputRepresentation;
|
|
52
56
|
contextMappingId?: string;
|
|
57
|
+
contextResponseType?: string;
|
|
53
58
|
correlationId?: string | null;
|
|
54
59
|
dataSeed?: string;
|
|
55
60
|
deletedNodes?: Array<ConfiguratorDeletedNodeInputRepresentation_ConfiguratorDeletedNodeInputRepresentation>;
|
|
56
61
|
qualificationContext?: {};
|
|
57
62
|
transactionContextId?: string | null;
|
|
58
63
|
transactionId?: string | null;
|
|
64
|
+
transactionLineGroupId?: string | null;
|
|
59
65
|
transactionLineId?: string | null;
|
|
60
66
|
updatedNodes?: Array<ConfiguratorUpdatedNodeInputRepresentation_ConfiguratorUpdatedNodeInputRepresentation>;
|
|
61
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfiguratorProductCatalogOutputRepresentation as ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation } from './ConfiguratorProductCatalogOutputRepresentation';
|
|
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 = "fab550b7f1154eab0e85224ff793d8f6";
|
|
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 {
|
|
@@ -29,6 +29,8 @@ export interface ConfiguratorOutputRepresentationNormalized {
|
|
|
29
29
|
catalogProducts?: Array<ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation>;
|
|
30
30
|
/** List of Errors */
|
|
31
31
|
errors?: Array<{}>;
|
|
32
|
+
/** Future Group IDs */
|
|
33
|
+
futureGroupIds?: Array<string>;
|
|
32
34
|
/** Messages */
|
|
33
35
|
messages?: unknown;
|
|
34
36
|
/** Success Flag */
|
|
@@ -53,6 +55,7 @@ export interface ConfiguratorOutputRepresentationNormalized {
|
|
|
53
55
|
export interface ConfiguratorOutputRepresentation {
|
|
54
56
|
catalogProducts?: Array<ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation>;
|
|
55
57
|
errors?: Array<{}>;
|
|
58
|
+
futureGroupIds?: Array<string>;
|
|
56
59
|
messages?: unknown;
|
|
57
60
|
success?: boolean;
|
|
58
61
|
transactionContext?: unknown;
|
|
@@ -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 = "2c039420cbf6d367977a064f9d510223";
|
|
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;
|
|
@@ -24,6 +24,8 @@ export interface ProductListInputRepresentationNormalized {
|
|
|
24
24
|
correlationId?: string;
|
|
25
25
|
/** cursor for pagination */
|
|
26
26
|
cursor?: string;
|
|
27
|
+
/** Enable Promotion Rules */
|
|
28
|
+
enablePromotionRules?: boolean;
|
|
27
29
|
/** Filters */
|
|
28
30
|
filter?: {};
|
|
29
31
|
/** Number of item count you want in the response */
|
|
@@ -49,6 +51,7 @@ export interface ProductListInputRepresentation {
|
|
|
49
51
|
categoryId?: string;
|
|
50
52
|
correlationId?: string;
|
|
51
53
|
cursor?: string;
|
|
54
|
+
enablePromotionRules?: boolean;
|
|
52
55
|
filter?: {};
|
|
53
56
|
limit?: number;
|
|
54
57
|
offset?: number;
|
|
@@ -5,10 +5,11 @@ import { ProductQuantityOutputRepresentation as ProductQuantityOutputRepresentat
|
|
|
5
5
|
import { ProductRelatedComponentOutputRepresentation as ProductRelatedComponentOutputRepresentation_ProductRelatedComponentOutputRepresentation } from './ProductRelatedComponentOutputRepresentation';
|
|
6
6
|
import { ProductSellingModelOptionOutputRepresentation as ProductSellingModelOptionOutputRepresentation_ProductSellingModelOptionOutputRepresentation } from './ProductSellingModelOptionOutputRepresentation';
|
|
7
7
|
import { ProductSpecificationTypeOutputRepresentation as ProductSpecificationTypeOutputRepresentation_ProductSpecificationTypeOutputRepresentation } from './ProductSpecificationTypeOutputRepresentation';
|
|
8
|
+
import { PromotionOutputRepresentation as PromotionOutputRepresentation_PromotionOutputRepresentation } from './PromotionOutputRepresentation';
|
|
8
9
|
import { QualificationContextOutputRepresentation as QualificationContextOutputRepresentation_QualificationContextOutputRepresentation } from './QualificationContextOutputRepresentation';
|
|
9
10
|
import { ProductVariantAttributeSetOutputRepresentation as ProductVariantAttributeSetOutputRepresentation_ProductVariantAttributeSetOutputRepresentation } from './ProductVariantAttributeSetOutputRepresentation';
|
|
10
11
|
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';
|
|
11
|
-
export declare const VERSION = "
|
|
12
|
+
export declare const VERSION = "c708f8301424d47e58f8149fff1c2fd1";
|
|
12
13
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
13
14
|
export declare const RepresentationType: string;
|
|
14
15
|
export declare function normalize(input: ProductOutputRepresentation, existing: ProductOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductOutputRepresentationNormalized;
|
|
@@ -71,6 +72,8 @@ export interface ProductOutputRepresentationNormalized {
|
|
|
71
72
|
productSpecificationType?: ProductSpecificationTypeOutputRepresentation_ProductSpecificationTypeOutputRepresentation;
|
|
72
73
|
/** Type of the product */
|
|
73
74
|
productType?: string;
|
|
75
|
+
/** List of promotions for the product */
|
|
76
|
+
promotions: Array<PromotionOutputRepresentation_PromotionOutputRepresentation>;
|
|
74
77
|
qualificationContext?: QualificationContextOutputRepresentation_QualificationContextOutputRepresentation;
|
|
75
78
|
/** Status of the product */
|
|
76
79
|
status?: string;
|
|
@@ -110,6 +113,7 @@ export interface ProductOutputRepresentation {
|
|
|
110
113
|
productSellingModelOptions?: Array<ProductSellingModelOptionOutputRepresentation_ProductSellingModelOptionOutputRepresentation>;
|
|
111
114
|
productSpecificationType?: ProductSpecificationTypeOutputRepresentation_ProductSpecificationTypeOutputRepresentation;
|
|
112
115
|
productType?: string;
|
|
116
|
+
promotions: Array<PromotionOutputRepresentation_PromotionOutputRepresentation>;
|
|
113
117
|
qualificationContext?: QualificationContextOutputRepresentation_QualificationContextOutputRepresentation;
|
|
114
118
|
status?: string;
|
|
115
119
|
variationAttributeSet?: ProductVariantAttributeSetOutputRepresentation_ProductVariantAttributeSetOutputRepresentation;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 = "f7e716886301b4f750b45a3cdf562a41";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: PromotionOutputRepresentation, existing: PromotionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PromotionOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: PromotionOutputRepresentationNormalized, incoming: PromotionOutputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PromotionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Promotion output representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface PromotionOutputRepresentationNormalized {
|
|
17
|
+
/** Coupon code for the promotion */
|
|
18
|
+
couponCode: string;
|
|
19
|
+
/** Description of the promotion */
|
|
20
|
+
description: string;
|
|
21
|
+
/** Display name of the promotion */
|
|
22
|
+
displayName: string;
|
|
23
|
+
/** End date and time of the promotion */
|
|
24
|
+
endDateTime: string;
|
|
25
|
+
/** Id of the promotion */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Whether the promotion is automatic */
|
|
28
|
+
isAutomatic: boolean;
|
|
29
|
+
/** Whether the promotion is a category level promotion */
|
|
30
|
+
isCategoryPromo: boolean;
|
|
31
|
+
/** Whether the promotion is a product level promotion */
|
|
32
|
+
isProductPromo: boolean;
|
|
33
|
+
/** Name of the promotion */
|
|
34
|
+
name: string;
|
|
35
|
+
/** Priority of the promotion */
|
|
36
|
+
priority: number;
|
|
37
|
+
/** Start date and time of the promotion */
|
|
38
|
+
startDateTime: string;
|
|
39
|
+
/** Terms and conditions of the promotion */
|
|
40
|
+
termsAndConditions: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Promotion output representation
|
|
44
|
+
*
|
|
45
|
+
* Keys:
|
|
46
|
+
* (none)
|
|
47
|
+
*/
|
|
48
|
+
export interface PromotionOutputRepresentation {
|
|
49
|
+
couponCode: string;
|
|
50
|
+
description: string;
|
|
51
|
+
displayName: string;
|
|
52
|
+
endDateTime: string;
|
|
53
|
+
id: string;
|
|
54
|
+
isAutomatic: boolean;
|
|
55
|
+
isCategoryPromo: boolean;
|
|
56
|
+
isProductPromo: boolean;
|
|
57
|
+
name: string;
|
|
58
|
+
priority: number;
|
|
59
|
+
startDateTime: string;
|
|
60
|
+
termsAndConditions: string;
|
|
61
|
+
}
|
|
@@ -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 = "89cb2fdc569037080b82631aad710557";
|
|
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;
|
|
@@ -22,6 +22,8 @@ export interface SearchProductsInputRepresentationNormalized {
|
|
|
22
22
|
categoryId?: string;
|
|
23
23
|
/** CorrelationId */
|
|
24
24
|
correlationId?: string;
|
|
25
|
+
/** Enable Promotions */
|
|
26
|
+
enablePromotionRules?: boolean;
|
|
25
27
|
/** Filters */
|
|
26
28
|
filter?: {};
|
|
27
29
|
/** Number of item count you want in the response */
|
|
@@ -50,6 +52,7 @@ export interface SearchProductsInputRepresentation {
|
|
|
50
52
|
catalogId?: string;
|
|
51
53
|
categoryId?: string;
|
|
52
54
|
correlationId?: string;
|
|
55
|
+
enablePromotionRules?: boolean;
|
|
53
56
|
filter?: {};
|
|
54
57
|
limit?: number;
|
|
55
58
|
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.367.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.367.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.367.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.367.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -499,6 +499,7 @@ const bulkProductDetails_ConfigPropertyMetadata = [
|
|
|
499
499
|
generateParamConfigMetadata('contextMapping', false, 2 /* Body */, 0 /* String */),
|
|
500
500
|
generateParamConfigMetadata('currencyCode', false, 2 /* Body */, 0 /* String */),
|
|
501
501
|
generateParamConfigMetadata('enablePricing', false, 2 /* Body */, 1 /* Boolean */),
|
|
502
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
502
503
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
503
504
|
generateParamConfigMetadata('pricingProcedure', false, 2 /* Body */, 0 /* String */),
|
|
504
505
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -757,6 +758,7 @@ const categoryDetails_ConfigPropertyMetadata = [
|
|
|
757
758
|
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
758
759
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
759
760
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
761
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
760
762
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
761
763
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
762
764
|
generateParamConfigMetadata('userContext', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1083,6 +1085,7 @@ const categoryList_ConfigPropertyMetadata = [
|
|
|
1083
1085
|
generateParamConfigMetadata('customFields', false, 2 /* Body */, 0 /* String */, true),
|
|
1084
1086
|
generateParamConfigMetadata('depth', false, 2 /* Body */, 3 /* Integer */),
|
|
1085
1087
|
generateParamConfigMetadata('enableQualification', false, 2 /* Body */, 1 /* Boolean */),
|
|
1088
|
+
generateParamConfigMetadata('enablePromotionRules', false, 2 /* Body */, 1 /* Boolean */),
|
|
1086
1089
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1087
1090
|
generateParamConfigMetadata('parentCategoryId', false, 2 /* Body */, 0 /* String */),
|
|
1088
1091
|
generateParamConfigMetadata('qualificationProcedure', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1342,6 +1345,13 @@ function validate$R(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
1342
1345
|
return new TypeError('Expected "string" but received "' + typeof obj_contextMappingId + '" (at "' + path_contextMappingId + '")');
|
|
1343
1346
|
}
|
|
1344
1347
|
}
|
|
1348
|
+
if (obj.contextResponseType !== undefined) {
|
|
1349
|
+
const obj_contextResponseType = obj.contextResponseType;
|
|
1350
|
+
const path_contextResponseType = path + '.contextResponseType';
|
|
1351
|
+
if (typeof obj_contextResponseType !== 'string') {
|
|
1352
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextResponseType + '" (at "' + path_contextResponseType + '")');
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1345
1355
|
if (obj.correlationId !== undefined) {
|
|
1346
1356
|
const obj_correlationId = obj.correlationId;
|
|
1347
1357
|
const path_correlationId = path + '.correlationId';
|
|
@@ -1457,6 +1467,34 @@ function validate$R(obj, path = 'ConfiguratorInputRepresentation') {
|
|
|
1457
1467
|
return new TypeError(message);
|
|
1458
1468
|
}
|
|
1459
1469
|
}
|
|
1470
|
+
if (obj.transactionLineGroupId !== undefined) {
|
|
1471
|
+
const obj_transactionLineGroupId = obj.transactionLineGroupId;
|
|
1472
|
+
const path_transactionLineGroupId = path + '.transactionLineGroupId';
|
|
1473
|
+
let obj_transactionLineGroupId_union0 = null;
|
|
1474
|
+
const obj_transactionLineGroupId_union0_error = (() => {
|
|
1475
|
+
if (typeof obj_transactionLineGroupId !== 'string') {
|
|
1476
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transactionLineGroupId + '" (at "' + path_transactionLineGroupId + '")');
|
|
1477
|
+
}
|
|
1478
|
+
})();
|
|
1479
|
+
if (obj_transactionLineGroupId_union0_error != null) {
|
|
1480
|
+
obj_transactionLineGroupId_union0 = obj_transactionLineGroupId_union0_error.message;
|
|
1481
|
+
}
|
|
1482
|
+
let obj_transactionLineGroupId_union1 = null;
|
|
1483
|
+
const obj_transactionLineGroupId_union1_error = (() => {
|
|
1484
|
+
if (obj_transactionLineGroupId !== null) {
|
|
1485
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transactionLineGroupId + '" (at "' + path_transactionLineGroupId + '")');
|
|
1486
|
+
}
|
|
1487
|
+
})();
|
|
1488
|
+
if (obj_transactionLineGroupId_union1_error != null) {
|
|
1489
|
+
obj_transactionLineGroupId_union1 = obj_transactionLineGroupId_union1_error.message;
|
|
1490
|
+
}
|
|
1491
|
+
if (obj_transactionLineGroupId_union0 && obj_transactionLineGroupId_union1) {
|
|
1492
|
+
let message = 'Object doesn\'t match union (at "' + path_transactionLineGroupId + '")';
|
|
1493
|
+
message += '\n' + obj_transactionLineGroupId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1494
|
+
message += '\n' + obj_transactionLineGroupId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1495
|
+
return new TypeError(message);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1460
1498
|
if (obj.transactionLineId !== undefined) {
|
|
1461
1499
|
const obj_transactionLineId = obj.transactionLineId;
|
|
1462
1500
|
const path_transactionLineId = path + '.transactionLineId';
|
|
@@ -2782,7 +2820,7 @@ function validate$C(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
2782
2820
|
}
|
|
2783
2821
|
|
|
2784
2822
|
const TTL$e = 1000;
|
|
2785
|
-
const VERSION$m = "
|
|
2823
|
+
const VERSION$m = "fab550b7f1154eab0e85224ff793d8f6";
|
|
2786
2824
|
function validate$B(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
2787
2825
|
const v_error = (() => {
|
|
2788
2826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2819,6 +2857,20 @@ function validate$B(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
|
2819
2857
|
}
|
|
2820
2858
|
}
|
|
2821
2859
|
}
|
|
2860
|
+
if (obj.futureGroupIds !== undefined) {
|
|
2861
|
+
const obj_futureGroupIds = obj.futureGroupIds;
|
|
2862
|
+
const path_futureGroupIds = path + '.futureGroupIds';
|
|
2863
|
+
if (!ArrayIsArray(obj_futureGroupIds)) {
|
|
2864
|
+
return new TypeError('Expected "array" but received "' + typeof obj_futureGroupIds + '" (at "' + path_futureGroupIds + '")');
|
|
2865
|
+
}
|
|
2866
|
+
for (let i = 0; i < obj_futureGroupIds.length; i++) {
|
|
2867
|
+
const obj_futureGroupIds_item = obj_futureGroupIds[i];
|
|
2868
|
+
const path_futureGroupIds_item = path_futureGroupIds + '[' + i + ']';
|
|
2869
|
+
if (typeof obj_futureGroupIds_item !== 'string') {
|
|
2870
|
+
return new TypeError('Expected "string" but received "' + typeof obj_futureGroupIds_item + '" (at "' + path_futureGroupIds_item + '")');
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2822
2874
|
if (obj.messages !== undefined) {
|
|
2823
2875
|
const obj_messages = obj.messages;
|
|
2824
2876
|
const path_messages = path + '.messages';
|
|
@@ -7695,6 +7747,13 @@ function validate$c(obj, path = 'ProductListInputRepresentation') {
|
|
|
7695
7747
|
return new TypeError('Expected "string" but received "' + typeof obj_cursor + '" (at "' + path_cursor + '")');
|
|
7696
7748
|
}
|
|
7697
7749
|
}
|
|
7750
|
+
if (obj.enablePromotionRules !== undefined) {
|
|
7751
|
+
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
7752
|
+
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
7753
|
+
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
7754
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
7755
|
+
}
|
|
7756
|
+
}
|
|
7698
7757
|
if (obj.filter !== undefined) {
|
|
7699
7758
|
const obj_filter = obj.filter;
|
|
7700
7759
|
const path_filter = path + '.filter';
|
|
@@ -7873,6 +7932,13 @@ function validate$b(obj, path = 'SearchProductsInputRepresentation') {
|
|
|
7873
7932
|
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
7874
7933
|
}
|
|
7875
7934
|
}
|
|
7935
|
+
if (obj.enablePromotionRules !== undefined) {
|
|
7936
|
+
const obj_enablePromotionRules = obj.enablePromotionRules;
|
|
7937
|
+
const path_enablePromotionRules = path + '.enablePromotionRules';
|
|
7938
|
+
if (typeof obj_enablePromotionRules !== 'boolean') {
|
|
7939
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enablePromotionRules + '" (at "' + path_enablePromotionRules + '")');
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7876
7942
|
if (obj.filter !== undefined) {
|
|
7877
7943
|
const obj_filter = obj.filter;
|
|
7878
7944
|
const path_filter = path + '.filter';
|
|
@@ -9565,4 +9631,4 @@ withDefaultLuvio((luvio) => {
|
|
|
9565
9631
|
});
|
|
9566
9632
|
|
|
9567
9633
|
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 };
|
|
9568
|
-
// version: 1.
|
|
9634
|
+
// version: 1.367.0-dc146bc62e
|
package/src/raml/api.raml
CHANGED
|
@@ -575,6 +575,15 @@ types:
|
|
|
575
575
|
description: Configurator Options
|
|
576
576
|
type: ConfiguratorOptionsInputRepresentation
|
|
577
577
|
required: false # TODO hand rolled. W-9275477
|
|
578
|
+
contextResponseType:
|
|
579
|
+
description: Context Response Type
|
|
580
|
+
type: string
|
|
581
|
+
enum:
|
|
582
|
+
- Delta
|
|
583
|
+
- Full
|
|
584
|
+
- None
|
|
585
|
+
- Product
|
|
586
|
+
required: false # TODO hand rolled. W-9275477
|
|
578
587
|
correlationId:
|
|
579
588
|
description: Correlation ID
|
|
580
589
|
type: string | nil # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
@@ -597,6 +606,10 @@ types:
|
|
|
597
606
|
description: Transaction ID
|
|
598
607
|
type: string | nil # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
599
608
|
required: false # TODO hand rolled. W-9275477
|
|
609
|
+
transactionLineGroupId:
|
|
610
|
+
description: Transaction Line Group ID
|
|
611
|
+
type: string | nil # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
612
|
+
required: false # TODO hand rolled. W-9275477
|
|
600
613
|
transactionLineId:
|
|
601
614
|
description: Transaction Line ID
|
|
602
615
|
type: string | nil # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
@@ -675,6 +688,12 @@ types:
|
|
|
675
688
|
required: false # TODO hand rolled. W-9275477
|
|
676
689
|
items:
|
|
677
690
|
type: object
|
|
691
|
+
futureGroupIds:
|
|
692
|
+
description: Future Group IDs
|
|
693
|
+
type: array
|
|
694
|
+
required: false # TODO hand rolled. W-9275477
|
|
695
|
+
items:
|
|
696
|
+
type: string
|
|
678
697
|
messages:
|
|
679
698
|
description: Messages
|
|
680
699
|
type: any
|
|
@@ -1325,6 +1344,11 @@ types:
|
|
|
1325
1344
|
description: Enable Pricing
|
|
1326
1345
|
type: boolean
|
|
1327
1346
|
required: false
|
|
1347
|
+
enablePromotionRules:
|
|
1348
|
+
description: Indicates whether Global Promotion Management (GPM) is used to
|
|
1349
|
+
find promotions for products and categories
|
|
1350
|
+
type: boolean
|
|
1351
|
+
required: false
|
|
1328
1352
|
enableQualification:
|
|
1329
1353
|
description: Enable Qualification
|
|
1330
1354
|
type: boolean
|
|
@@ -2372,6 +2396,10 @@ types:
|
|
|
2372
2396
|
description: Filters
|
|
2373
2397
|
type: object
|
|
2374
2398
|
required: false
|
|
2399
|
+
enablePromotionRules:
|
|
2400
|
+
description: Enable Promotion Rules
|
|
2401
|
+
type: boolean
|
|
2402
|
+
required: false
|
|
2375
2403
|
ProductListOutputRepresentation:
|
|
2376
2404
|
description: Product list output representation
|
|
2377
2405
|
type: object
|
|
@@ -2682,10 +2710,55 @@ types:
|
|
|
2682
2710
|
description: Quantity information of a product
|
|
2683
2711
|
type: ProductQuantityOutputRepresentation
|
|
2684
2712
|
required: false
|
|
2713
|
+
promotions:
|
|
2714
|
+
description: List of promotions for the product
|
|
2715
|
+
type: array
|
|
2716
|
+
items:
|
|
2717
|
+
type: PromotionOutputRepresentation
|
|
2685
2718
|
status:
|
|
2686
2719
|
description: Status of the product
|
|
2687
2720
|
type: string
|
|
2688
2721
|
required: false
|
|
2722
|
+
PromotionOutputRepresentation:
|
|
2723
|
+
description: Promotion output representation
|
|
2724
|
+
type: object
|
|
2725
|
+
properties:
|
|
2726
|
+
couponCode:
|
|
2727
|
+
description: Coupon code for the promotion
|
|
2728
|
+
type: string
|
|
2729
|
+
description:
|
|
2730
|
+
description: Description of the promotion
|
|
2731
|
+
type: string
|
|
2732
|
+
displayName:
|
|
2733
|
+
description: Display name of the promotion
|
|
2734
|
+
type: string
|
|
2735
|
+
endDateTime:
|
|
2736
|
+
description: End date and time of the promotion
|
|
2737
|
+
type: string
|
|
2738
|
+
id:
|
|
2739
|
+
description: Id of the promotion
|
|
2740
|
+
type: string
|
|
2741
|
+
isAutomatic:
|
|
2742
|
+
description: Whether the promotion is automatic
|
|
2743
|
+
type: boolean
|
|
2744
|
+
isCategoryPromo:
|
|
2745
|
+
description: Whether the promotion is a category level promotion
|
|
2746
|
+
type: boolean
|
|
2747
|
+
isProductPromo:
|
|
2748
|
+
description: Whether the promotion is a product level promotion
|
|
2749
|
+
type: boolean
|
|
2750
|
+
name:
|
|
2751
|
+
description: Name of the promotion
|
|
2752
|
+
type: string
|
|
2753
|
+
priority:
|
|
2754
|
+
description: Priority of the promotion
|
|
2755
|
+
type: integer
|
|
2756
|
+
startDateTime:
|
|
2757
|
+
description: Start date and time of the promotion
|
|
2758
|
+
type: string
|
|
2759
|
+
termsAndConditions:
|
|
2760
|
+
description: Terms and conditions of the promotion
|
|
2761
|
+
type: string
|
|
2689
2762
|
CategoryDetailsInputRepresentation:
|
|
2690
2763
|
description: Input Representation for Category Details.
|
|
2691
2764
|
type: object
|
|
@@ -2720,6 +2793,10 @@ types:
|
|
|
2720
2793
|
description: Enable Qualification
|
|
2721
2794
|
type: boolean
|
|
2722
2795
|
required: false
|
|
2796
|
+
enablePromotionRules:
|
|
2797
|
+
description: Enable Promotion
|
|
2798
|
+
type: boolean
|
|
2799
|
+
required: false
|
|
2723
2800
|
filter:
|
|
2724
2801
|
description: Filter criteria
|
|
2725
2802
|
type: FilterInputRepresentation
|
|
@@ -2816,6 +2893,10 @@ types:
|
|
|
2816
2893
|
description: Enable Qualification
|
|
2817
2894
|
type: boolean
|
|
2818
2895
|
required: false
|
|
2896
|
+
enablePromotionRules:
|
|
2897
|
+
description: Enable Promotion
|
|
2898
|
+
type: boolean
|
|
2899
|
+
required: false
|
|
2819
2900
|
filter:
|
|
2820
2901
|
description: Filter criteria
|
|
2821
2902
|
type: FilterInputRepresentation
|
|
@@ -2913,6 +2994,11 @@ types:
|
|
|
2913
2994
|
sortOrder:
|
|
2914
2995
|
description: Sort Order
|
|
2915
2996
|
type: integer
|
|
2997
|
+
promotions:
|
|
2998
|
+
description: List of promotions for the product
|
|
2999
|
+
type: array
|
|
3000
|
+
items:
|
|
3001
|
+
type: PromotionOutputRepresentation
|
|
2916
3002
|
ProductPricesOutputRepresentation:
|
|
2917
3003
|
description: Product Prices output representation
|
|
2918
3004
|
type: object
|
|
@@ -3050,6 +3136,10 @@ types:
|
|
|
3050
3136
|
description: Filters
|
|
3051
3137
|
type: object
|
|
3052
3138
|
required: false
|
|
3139
|
+
enablePromotionRules:
|
|
3140
|
+
description: Enable Promotions
|
|
3141
|
+
type: boolean
|
|
3142
|
+
required: false
|
|
3053
3143
|
SearchProductsOutputRepresentation:
|
|
3054
3144
|
description: Search Products output representation
|
|
3055
3145
|
type: object
|