@salesforce/lds-adapters-industries-cpq 1.293.0 → 1.295.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 +39 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ConfiguratorProductComponentGroupOutputRepresentation.d.ts +7 -1
- package/package.json +4 -4
- package/sfdc/index.js +40 -2
- package/src/raml/api.raml +16 -0
|
@@ -6056,6 +6056,23 @@ function validate$7(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
6056
6056
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6057
6057
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6058
6058
|
}
|
|
6059
|
+
if (obj.childGroups !== undefined) {
|
|
6060
|
+
const obj_childGroups = obj.childGroups;
|
|
6061
|
+
const path_childGroups = path + '.childGroups';
|
|
6062
|
+
if (!ArrayIsArray(obj_childGroups)) {
|
|
6063
|
+
return new TypeError('Expected "array" but received "' + typeof obj_childGroups + '" (at "' + path_childGroups + '")');
|
|
6064
|
+
}
|
|
6065
|
+
for (let i = 0; i < obj_childGroups.length; i++) {
|
|
6066
|
+
const obj_childGroups_item = obj_childGroups[i];
|
|
6067
|
+
const path_childGroups_item = path_childGroups + '[' + i + ']';
|
|
6068
|
+
const referencepath_childGroups_itemValidationError = validate$7(obj_childGroups_item, path_childGroups_item);
|
|
6069
|
+
if (referencepath_childGroups_itemValidationError !== null) {
|
|
6070
|
+
let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_childGroups_item + '")\n';
|
|
6071
|
+
message += referencepath_childGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6072
|
+
return new TypeError(message);
|
|
6073
|
+
}
|
|
6074
|
+
}
|
|
6075
|
+
}
|
|
6059
6076
|
if (obj.classifications !== undefined) {
|
|
6060
6077
|
const obj_classifications = obj.classifications;
|
|
6061
6078
|
const path_classifications = path + '.classifications';
|
|
@@ -6132,6 +6149,13 @@ function validate$7(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
6132
6149
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6133
6150
|
}
|
|
6134
6151
|
}
|
|
6152
|
+
if (obj.parentGroupId !== undefined) {
|
|
6153
|
+
const obj_parentGroupId = obj.parentGroupId;
|
|
6154
|
+
const path_parentGroupId = path + '.parentGroupId';
|
|
6155
|
+
if (typeof obj_parentGroupId !== 'string') {
|
|
6156
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentGroupId + '" (at "' + path_parentGroupId + '")');
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6135
6159
|
if (obj.parentProductId !== undefined) {
|
|
6136
6160
|
const obj_parentProductId = obj.parentProductId;
|
|
6137
6161
|
const path_parentProductId = path + '.parentProductId';
|
|
@@ -6631,7 +6655,7 @@ function validate$2(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
6631
6655
|
}
|
|
6632
6656
|
|
|
6633
6657
|
const TTL$1 = 1000;
|
|
6634
|
-
const VERSION$1 = "
|
|
6658
|
+
const VERSION$1 = "6b0e9ba755f5b9497737e51300506cf9";
|
|
6635
6659
|
function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
6636
6660
|
const v_error = (() => {
|
|
6637
6661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6715,6 +6739,20 @@ function validate$1(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
|
6715
6739
|
return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
|
|
6716
6740
|
}
|
|
6717
6741
|
}
|
|
6742
|
+
if (obj.uiTreatments !== undefined) {
|
|
6743
|
+
const obj_uiTreatments = obj.uiTreatments;
|
|
6744
|
+
const path_uiTreatments = path + '.uiTreatments';
|
|
6745
|
+
if (!ArrayIsArray(obj_uiTreatments)) {
|
|
6746
|
+
return new TypeError('Expected "array" but received "' + typeof obj_uiTreatments + '" (at "' + path_uiTreatments + '")');
|
|
6747
|
+
}
|
|
6748
|
+
for (let i = 0; i < obj_uiTreatments.length; i++) {
|
|
6749
|
+
const obj_uiTreatments_item = obj_uiTreatments[i];
|
|
6750
|
+
const path_uiTreatments_item = path_uiTreatments + '[' + i + ']';
|
|
6751
|
+
if (typeof obj_uiTreatments_item !== 'object' || ArrayIsArray(obj_uiTreatments_item) || obj_uiTreatments_item === null) {
|
|
6752
|
+
return new TypeError('Expected "object" but received "' + typeof obj_uiTreatments_item + '" (at "' + path_uiTreatments_item + '")');
|
|
6753
|
+
}
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6718
6756
|
})();
|
|
6719
6757
|
return v_error === undefined ? null : v_error;
|
|
6720
6758
|
}
|
|
@@ -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 = "6b0e9ba755f5b9497737e51300506cf9";
|
|
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 {
|
|
@@ -43,6 +43,8 @@ export interface ConfiguratorOutputRepresentationNormalized {
|
|
|
43
43
|
transactionQualification?: unknown;
|
|
44
44
|
/** UI Modifications */
|
|
45
45
|
uiModifications?: unknown;
|
|
46
|
+
/** UI Treatments */
|
|
47
|
+
uiTreatments?: Array<{}>;
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
48
50
|
* Output Representation for the Configurator API
|
|
@@ -60,4 +62,5 @@ export interface ConfiguratorOutputRepresentation {
|
|
|
60
62
|
transactionContextMappingId?: string;
|
|
61
63
|
transactionQualification?: unknown;
|
|
62
64
|
uiModifications?: unknown;
|
|
65
|
+
uiTreatments?: Array<{}>;
|
|
63
66
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfiguratorProductClassificationOutputRepresentation as ConfiguratorProductClassificationOutputRepresentation_ConfiguratorProductClassificationOutputRepresentation } from './ConfiguratorProductClassificationOutputRepresentation';
|
|
2
2
|
import { ConfiguratorProductCatalogOutputRepresentation as ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation } from './ConfiguratorProductCatalogOutputRepresentation';
|
|
3
3
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "c145adea07ba93e9d7688881ad599f65";
|
|
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: ConfiguratorProductComponentGroupOutputRepresentation, existing: ConfiguratorProductComponentGroupOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfiguratorProductComponentGroupOutputRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
* (none)
|
|
17
17
|
*/
|
|
18
18
|
export interface ConfiguratorProductComponentGroupOutputRepresentationNormalized {
|
|
19
|
+
/** Child Groups */
|
|
20
|
+
childGroups?: Array<ConfiguratorProductComponentGroupOutputRepresentation>;
|
|
19
21
|
/** List of Product Classifications */
|
|
20
22
|
classifications?: Array<ConfiguratorProductClassificationOutputRepresentation_ConfiguratorProductClassificationOutputRepresentation>;
|
|
21
23
|
/** Code */
|
|
@@ -32,6 +34,8 @@ export interface ConfiguratorProductComponentGroupOutputRepresentationNormalized
|
|
|
32
34
|
minBundleComponents?: number;
|
|
33
35
|
/** Name */
|
|
34
36
|
name?: string;
|
|
37
|
+
/** Parent Group ID */
|
|
38
|
+
parentGroupId?: string;
|
|
35
39
|
/** Parent Product ID */
|
|
36
40
|
parentProductId?: string;
|
|
37
41
|
/** Sequence */
|
|
@@ -44,6 +48,7 @@ export interface ConfiguratorProductComponentGroupOutputRepresentationNormalized
|
|
|
44
48
|
* (none)
|
|
45
49
|
*/
|
|
46
50
|
export interface ConfiguratorProductComponentGroupOutputRepresentation {
|
|
51
|
+
childGroups?: Array<ConfiguratorProductComponentGroupOutputRepresentation>;
|
|
47
52
|
classifications?: Array<ConfiguratorProductClassificationOutputRepresentation_ConfiguratorProductClassificationOutputRepresentation>;
|
|
48
53
|
code?: string;
|
|
49
54
|
components?: Array<ConfiguratorProductCatalogOutputRepresentation_ConfiguratorProductCatalogOutputRepresentation>;
|
|
@@ -52,6 +57,7 @@ export interface ConfiguratorProductComponentGroupOutputRepresentation {
|
|
|
52
57
|
maxBundleComponents?: number;
|
|
53
58
|
minBundleComponents?: number;
|
|
54
59
|
name?: string;
|
|
60
|
+
parentGroupId?: string;
|
|
55
61
|
parentProductId?: string;
|
|
56
62
|
sequence?: number;
|
|
57
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-cpq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.295.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.295.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.295.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.295.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1934,6 +1934,23 @@ function validate$v(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
1934
1934
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1935
1935
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1936
1936
|
}
|
|
1937
|
+
if (obj.childGroups !== undefined) {
|
|
1938
|
+
const obj_childGroups = obj.childGroups;
|
|
1939
|
+
const path_childGroups = path + '.childGroups';
|
|
1940
|
+
if (!ArrayIsArray(obj_childGroups)) {
|
|
1941
|
+
return new TypeError('Expected "array" but received "' + typeof obj_childGroups + '" (at "' + path_childGroups + '")');
|
|
1942
|
+
}
|
|
1943
|
+
for (let i = 0; i < obj_childGroups.length; i++) {
|
|
1944
|
+
const obj_childGroups_item = obj_childGroups[i];
|
|
1945
|
+
const path_childGroups_item = path_childGroups + '[' + i + ']';
|
|
1946
|
+
const referencepath_childGroups_itemValidationError = validate$v(obj_childGroups_item, path_childGroups_item);
|
|
1947
|
+
if (referencepath_childGroups_itemValidationError !== null) {
|
|
1948
|
+
let message = 'Object doesn\'t match ConfiguratorProductComponentGroupOutputRepresentation (at "' + path_childGroups_item + '")\n';
|
|
1949
|
+
message += referencepath_childGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1950
|
+
return new TypeError(message);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1937
1954
|
if (obj.classifications !== undefined) {
|
|
1938
1955
|
const obj_classifications = obj.classifications;
|
|
1939
1956
|
const path_classifications = path + '.classifications';
|
|
@@ -2010,6 +2027,13 @@ function validate$v(obj, path = 'ConfiguratorProductComponentGroupOutputRepresen
|
|
|
2010
2027
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2011
2028
|
}
|
|
2012
2029
|
}
|
|
2030
|
+
if (obj.parentGroupId !== undefined) {
|
|
2031
|
+
const obj_parentGroupId = obj.parentGroupId;
|
|
2032
|
+
const path_parentGroupId = path + '.parentGroupId';
|
|
2033
|
+
if (typeof obj_parentGroupId !== 'string') {
|
|
2034
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentGroupId + '" (at "' + path_parentGroupId + '")');
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2013
2037
|
if (obj.parentProductId !== undefined) {
|
|
2014
2038
|
const obj_parentProductId = obj.parentProductId;
|
|
2015
2039
|
const path_parentProductId = path + '.parentProductId';
|
|
@@ -2509,7 +2533,7 @@ function validate$q(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
|
|
|
2509
2533
|
}
|
|
2510
2534
|
|
|
2511
2535
|
const TTL$6 = 1000;
|
|
2512
|
-
const VERSION$e = "
|
|
2536
|
+
const VERSION$e = "6b0e9ba755f5b9497737e51300506cf9";
|
|
2513
2537
|
function validate$p(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
2514
2538
|
const v_error = (() => {
|
|
2515
2539
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2593,6 +2617,20 @@ function validate$p(obj, path = 'ConfiguratorOutputRepresentation') {
|
|
|
2593
2617
|
return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
|
|
2594
2618
|
}
|
|
2595
2619
|
}
|
|
2620
|
+
if (obj.uiTreatments !== undefined) {
|
|
2621
|
+
const obj_uiTreatments = obj.uiTreatments;
|
|
2622
|
+
const path_uiTreatments = path + '.uiTreatments';
|
|
2623
|
+
if (!ArrayIsArray(obj_uiTreatments)) {
|
|
2624
|
+
return new TypeError('Expected "array" but received "' + typeof obj_uiTreatments + '" (at "' + path_uiTreatments + '")');
|
|
2625
|
+
}
|
|
2626
|
+
for (let i = 0; i < obj_uiTreatments.length; i++) {
|
|
2627
|
+
const obj_uiTreatments_item = obj_uiTreatments[i];
|
|
2628
|
+
const path_uiTreatments_item = path_uiTreatments + '[' + i + ']';
|
|
2629
|
+
if (typeof obj_uiTreatments_item !== 'object' || ArrayIsArray(obj_uiTreatments_item) || obj_uiTreatments_item === null) {
|
|
2630
|
+
return new TypeError('Expected "object" but received "' + typeof obj_uiTreatments_item + '" (at "' + path_uiTreatments_item + '")');
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2596
2634
|
})();
|
|
2597
2635
|
return v_error === undefined ? null : v_error;
|
|
2598
2636
|
}
|
|
@@ -7331,4 +7369,4 @@ withDefaultLuvio((luvio) => {
|
|
|
7331
7369
|
});
|
|
7332
7370
|
|
|
7333
7371
|
export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createRule, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems, updateRule };
|
|
7334
|
-
// version: 1.
|
|
7372
|
+
// version: 1.295.0-e85f207c7
|
package/src/raml/api.raml
CHANGED
|
@@ -637,6 +637,12 @@ types:
|
|
|
637
637
|
description: UI Modifications
|
|
638
638
|
type: any
|
|
639
639
|
required: false # TODO hand rolled. W-9275477
|
|
640
|
+
uiTreatments:
|
|
641
|
+
description: UI Treatments
|
|
642
|
+
type: array
|
|
643
|
+
required: false # TODO hand rolled. W-9275477
|
|
644
|
+
items:
|
|
645
|
+
type: object
|
|
640
646
|
success:
|
|
641
647
|
description: Success Flag
|
|
642
648
|
type: boolean
|
|
@@ -905,6 +911,16 @@ types:
|
|
|
905
911
|
description: Sequence
|
|
906
912
|
type: integer
|
|
907
913
|
required: false # TODO hand rolled. W-9275477
|
|
914
|
+
childGroups:
|
|
915
|
+
description: Child Groups
|
|
916
|
+
type: array
|
|
917
|
+
required: false # TODO hand rolled. W-9275477
|
|
918
|
+
items:
|
|
919
|
+
type: ConfiguratorProductComponentGroupOutputRepresentation
|
|
920
|
+
parentGroupId:
|
|
921
|
+
description: Parent Group ID
|
|
922
|
+
type: string
|
|
923
|
+
required: false # TODO hand rolled. W-9275477
|
|
908
924
|
ConfiguratorProductRelatedComponentOutputRepresentation:
|
|
909
925
|
description: Output Representation for the Configurator API's Product Related
|
|
910
926
|
Component
|