@salesforce/lds-adapters-industries-cpq 1.294.0 → 1.296.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.
@@ -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';
@@ -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 = "b0428d527391013d16925738abcb8082";
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.294.0",
3
+ "version": "1.296.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.294.0"
47
+ "@salesforce/lds-bindings": "^1.296.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.294.0",
51
- "@salesforce/lds-karma": "^1.294.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.296.0",
51
+ "@salesforce/lds-karma": "^1.296.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';
@@ -7345,4 +7369,4 @@ withDefaultLuvio((luvio) => {
7345
7369
  });
7346
7370
 
7347
7371
  export { bulkProductDetails, categoryDetails, categoryList, configure, createCart, createCartItems, createRule, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems, updateRule };
7348
- // version: 1.294.0-e7eb16228
7372
+ // version: 1.296.0-b5e933418
package/src/raml/api.raml CHANGED
@@ -911,6 +911,16 @@ types:
911
911
  description: Sequence
912
912
  type: integer
913
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
914
924
  ConfiguratorProductRelatedComponentOutputRepresentation:
915
925
  description: Output Representation for the Configurator API's Product Related
916
926
  Component