@salesforce/lds-adapters-industries-cpq 1.280.0 → 1.281.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.
@@ -1895,7 +1895,7 @@ function equals$b(existing, incoming) {
1895
1895
  return true;
1896
1896
  }
1897
1897
 
1898
- const VERSION$a = "2c33aa6ac6bc77bf88ac3e6acc944750";
1898
+ const VERSION$a = "d28c7f18b84bf1e8232287039825a85b";
1899
1899
  function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1900
1900
  const v_error = (() => {
1901
1901
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1960,6 +1960,13 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1960
1960
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1961
1961
  }
1962
1962
  }
1963
+ if (obj.developerName !== undefined) {
1964
+ const obj_developerName = obj.developerName;
1965
+ const path_developerName = path + '.developerName';
1966
+ if (typeof obj_developerName !== 'string') {
1967
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1968
+ }
1969
+ }
1963
1970
  if (obj.displayType !== undefined) {
1964
1971
  const obj_displayType = obj.displayType;
1965
1972
  const path_displayType = path + '.displayType';
@@ -2144,6 +2151,11 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2144
2151
  kind: 'Scalar',
2145
2152
  required: false
2146
2153
  },
2154
+ {
2155
+ name: 'developerName',
2156
+ kind: 'Scalar',
2157
+ required: false
2158
+ },
2147
2159
  {
2148
2160
  name: 'displayType',
2149
2161
  kind: 'Scalar',
@@ -2438,6 +2450,19 @@ function equals$a(existing, incoming) {
2438
2450
  return false;
2439
2451
  }
2440
2452
  }
2453
+ const existing_developerName = existing.developerName;
2454
+ const incoming_developerName = incoming.developerName;
2455
+ // if at least one of these optionals is defined
2456
+ if (existing_developerName !== undefined || incoming_developerName !== undefined) {
2457
+ // if one of these is not defined we know the other is defined and therefore
2458
+ // not equal
2459
+ if (existing_developerName === undefined || incoming_developerName === undefined) {
2460
+ return false;
2461
+ }
2462
+ if (!(existing_developerName === incoming_developerName)) {
2463
+ return false;
2464
+ }
2465
+ }
2441
2466
  const existing_displayType = existing.displayType;
2442
2467
  const incoming_displayType = incoming.displayType;
2443
2468
  // if at least one of these optionals is defined
@@ -5487,6 +5512,13 @@ function validate$8(obj, path = 'ConfiguratorPriceOutputRepresentation') {
5487
5512
  return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
5488
5513
  }
5489
5514
  }
5515
+ if (obj.isDerived !== undefined) {
5516
+ const obj_isDerived = obj.isDerived;
5517
+ const path_isDerived = path + '.isDerived';
5518
+ if (typeof obj_isDerived !== 'boolean') {
5519
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isDerived + '" (at "' + path_isDerived + '")');
5520
+ }
5521
+ }
5490
5522
  if (obj.isSelected !== undefined) {
5491
5523
  const obj_isSelected = obj.isSelected;
5492
5524
  const path_isSelected = path + '.isSelected';
@@ -6121,7 +6153,7 @@ function validate$1(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
6121
6153
  }
6122
6154
 
6123
6155
  const TTL = 1000;
6124
- const VERSION = "1e94956cf0691aeb2e892924e1798d6c";
6156
+ const VERSION = "a9e74c89f83dab5ce88d601ec57daa71";
6125
6157
  function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6126
6158
  const v_error = (() => {
6127
6159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6198,6 +6230,13 @@ function validate(obj, path = 'ConfiguratorOutputRepresentation') {
6198
6230
  return new TypeError('Expected "defined" but received "' + typeof obj_transactionQualification + '" (at "' + path_transactionQualification + '")');
6199
6231
  }
6200
6232
  }
6233
+ if (obj.uiModifications !== undefined) {
6234
+ const obj_uiModifications = obj.uiModifications;
6235
+ const path_uiModifications = path + '.uiModifications';
6236
+ if (obj_uiModifications === undefined) {
6237
+ return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
6238
+ }
6239
+ }
6201
6240
  })();
6202
6241
  return v_error === undefined ? null : v_error;
6203
6242
  }
@@ -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 = "1e94956cf0691aeb2e892924e1798d6c";
4
+ export declare const VERSION = "a9e74c89f83dab5ce88d601ec57daa71";
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 {
@@ -41,6 +41,8 @@ export interface ConfiguratorOutputRepresentationNormalized {
41
41
  transactionContextMappingId?: string;
42
42
  /** Transaction Qualification Result */
43
43
  transactionQualification?: unknown;
44
+ /** UI Modifications */
45
+ uiModifications?: unknown;
44
46
  }
45
47
  /**
46
48
  * Output Representation for the Configurator API
@@ -57,4 +59,5 @@ export interface ConfiguratorOutputRepresentation {
57
59
  transactionContextId: string;
58
60
  transactionContextMappingId?: string;
59
61
  transactionQualification?: unknown;
62
+ uiModifications?: unknown;
60
63
  }
@@ -1,6 +1,6 @@
1
1
  import { ConfiguratorPricingModelOutputRepresentation as ConfiguratorPricingModelOutputRepresentation_ConfiguratorPricingModelOutputRepresentation } from './ConfiguratorPricingModelOutputRepresentation';
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 = "a2484d34b2d0f39d72050b05881bf089";
3
+ export declare const VERSION = "f390d0f975f69e15a7de44b12d5a9550";
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: ConfiguratorPriceOutputRepresentation, existing: ConfiguratorPriceOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfiguratorPriceOutputRepresentationNormalized;
@@ -23,6 +23,8 @@ export interface ConfiguratorPriceOutputRepresentationNormalized {
23
23
  effectiveTo?: string;
24
24
  /** Default Pricing Model */
25
25
  isDefault?: boolean;
26
+ /** Is Price Derived */
27
+ isDerived?: boolean;
26
28
  /** Selected Pricing Model */
27
29
  isSelected?: boolean;
28
30
  /** Pricebook Entry ID */
@@ -44,6 +46,7 @@ export interface ConfiguratorPriceOutputRepresentation {
44
46
  effectiveFrom?: string;
45
47
  effectiveTo?: string;
46
48
  isDefault?: boolean;
49
+ isDerived?: boolean;
47
50
  isSelected?: boolean;
48
51
  pricebookEntryId?: string;
49
52
  pricebookId?: string;
@@ -1,6 +1,6 @@
1
1
  import { AttributePickListOutputRepresentation as AttributePickListOutputRepresentation_AttributePickListOutputRepresentation } from './AttributePickListOutputRepresentation';
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 = "2c33aa6ac6bc77bf88ac3e6acc944750";
3
+ export declare const VERSION = "d28c7f18b84bf1e8232287039825a85b";
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: ProductAttributeOutputRepresentation, existing: ProductAttributeOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeOutputRepresentationNormalized;
@@ -31,6 +31,8 @@ export interface ProductAttributeOutputRepresentationNormalized {
31
31
  defaultValue?: string;
32
32
  /** description of product attribute */
33
33
  description?: string;
34
+ /** developer name of product attribute */
35
+ developerName?: string;
34
36
  /** display type of the attribute */
35
37
  displayType?: string;
36
38
  /** Is true if attribute is hidden */
@@ -85,6 +87,7 @@ export interface ProductAttributeOutputRepresentation {
85
87
  defaultHelpText?: string;
86
88
  defaultValue?: string;
87
89
  description?: string;
90
+ developerName?: string;
88
91
  displayType?: string;
89
92
  hidden?: boolean;
90
93
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.280.0",
3
+ "version": "1.281.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",
@@ -42,11 +42,11 @@
42
42
  "test": "nx build:karma && karma start --single-run"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.280.0"
45
+ "@salesforce/lds-bindings": "^1.281.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.280.0",
49
- "@salesforce/lds-karma": "^1.280.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.281.0",
49
+ "@salesforce/lds-karma": "^1.281.0"
50
50
  },
51
51
  "nx": {
52
52
  "targets": {
package/sfdc/index.js CHANGED
@@ -973,6 +973,13 @@ function validate$A(obj, path = 'ConfiguratorPriceOutputRepresentation') {
973
973
  return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
974
974
  }
975
975
  }
976
+ if (obj.isDerived !== undefined) {
977
+ const obj_isDerived = obj.isDerived;
978
+ const path_isDerived = path + '.isDerived';
979
+ if (typeof obj_isDerived !== 'boolean') {
980
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isDerived + '" (at "' + path_isDerived + '")');
981
+ }
982
+ }
976
983
  if (obj.isSelected !== undefined) {
977
984
  const obj_isSelected = obj.isSelected;
978
985
  const path_isSelected = path + '.isSelected';
@@ -1607,7 +1614,7 @@ function validate$t(obj, path = 'ConfiguratorProductCatalogOutputRepresentation'
1607
1614
  }
1608
1615
 
1609
1616
  const TTL$7 = 1000;
1610
- const VERSION$h = "1e94956cf0691aeb2e892924e1798d6c";
1617
+ const VERSION$h = "a9e74c89f83dab5ce88d601ec57daa71";
1611
1618
  function validate$s(obj, path = 'ConfiguratorOutputRepresentation') {
1612
1619
  const v_error = (() => {
1613
1620
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1684,6 +1691,13 @@ function validate$s(obj, path = 'ConfiguratorOutputRepresentation') {
1684
1691
  return new TypeError('Expected "defined" but received "' + typeof obj_transactionQualification + '" (at "' + path_transactionQualification + '")');
1685
1692
  }
1686
1693
  }
1694
+ if (obj.uiModifications !== undefined) {
1695
+ const obj_uiModifications = obj.uiModifications;
1696
+ const path_uiModifications = path + '.uiModifications';
1697
+ if (obj_uiModifications === undefined) {
1698
+ return new TypeError('Expected "defined" but received "' + typeof obj_uiModifications + '" (at "' + path_uiModifications + '")');
1699
+ }
1700
+ }
1687
1701
  })();
1688
1702
  return v_error === undefined ? null : v_error;
1689
1703
  }
@@ -2962,7 +2976,7 @@ function equals$b(existing, incoming) {
2962
2976
  return true;
2963
2977
  }
2964
2978
 
2965
- const VERSION$a = "2c33aa6ac6bc77bf88ac3e6acc944750";
2979
+ const VERSION$a = "d28c7f18b84bf1e8232287039825a85b";
2966
2980
  function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
2967
2981
  const v_error = (() => {
2968
2982
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3027,6 +3041,13 @@ function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
3027
3041
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
3028
3042
  }
3029
3043
  }
3044
+ if (obj.developerName !== undefined) {
3045
+ const obj_developerName = obj.developerName;
3046
+ const path_developerName = path + '.developerName';
3047
+ if (typeof obj_developerName !== 'string') {
3048
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
3049
+ }
3050
+ }
3030
3051
  if (obj.displayType !== undefined) {
3031
3052
  const obj_displayType = obj.displayType;
3032
3053
  const path_displayType = path + '.displayType';
@@ -3211,6 +3232,11 @@ const select$i = function ProductAttributeOutputRepresentationSelect() {
3211
3232
  kind: 'Scalar',
3212
3233
  required: false
3213
3234
  },
3235
+ {
3236
+ name: 'developerName',
3237
+ kind: 'Scalar',
3238
+ required: false
3239
+ },
3214
3240
  {
3215
3241
  name: 'displayType',
3216
3242
  kind: 'Scalar',
@@ -3505,6 +3531,19 @@ function equals$a(existing, incoming) {
3505
3531
  return false;
3506
3532
  }
3507
3533
  }
3534
+ const existing_developerName = existing.developerName;
3535
+ const incoming_developerName = incoming.developerName;
3536
+ // if at least one of these optionals is defined
3537
+ if (existing_developerName !== undefined || incoming_developerName !== undefined) {
3538
+ // if one of these is not defined we know the other is defined and therefore
3539
+ // not equal
3540
+ if (existing_developerName === undefined || incoming_developerName === undefined) {
3541
+ return false;
3542
+ }
3543
+ if (!(existing_developerName === incoming_developerName)) {
3544
+ return false;
3545
+ }
3546
+ }
3508
3547
  const existing_displayType = existing.displayType;
3509
3548
  const incoming_displayType = incoming.displayType;
3510
3549
  // if at least one of these optionals is defined
@@ -6411,4 +6450,4 @@ withDefaultLuvio((luvio) => {
6411
6450
  });
6412
6451
 
6413
6452
  export { configure, createCart, createCartItems, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems };
6414
- // version: 1.280.0-09f980816
6453
+ // version: 1.281.0-bcef40769
package/src/raml/api.raml CHANGED
@@ -549,6 +549,10 @@ types:
549
549
  description: Messages
550
550
  type: any
551
551
  required: false # TODO hand rolled. W-9275477
552
+ uiModifications:
553
+ description: UI Modifications
554
+ type: any
555
+ required: false # TODO hand rolled. W-9275477
552
556
  success:
553
557
  description: Success Flag
554
558
  type: boolean
@@ -609,6 +613,10 @@ types:
609
613
  description: Selected Pricing Model
610
614
  type: boolean
611
615
  required: false # TODO hand rolled. W-9275477
616
+ isDerived:
617
+ description: Is Price Derived
618
+ type: boolean
619
+ required: false # TODO hand rolled. W-9275477
612
620
  ConfiguratorPricingModelOutputRepresentation:
613
621
  description: Output Representation for the Configurator API's Pricing Model
614
622
  type: object
@@ -1419,6 +1427,10 @@ types:
1419
1427
  description: name of product attribute
1420
1428
  type: string
1421
1429
  required: false
1430
+ developerName:
1431
+ description: developer name of product attribute
1432
+ type: string
1433
+ required: false
1422
1434
  status:
1423
1435
  description: Status of product attribute - Active/InActive
1424
1436
  type: string