@salesforce/lds-adapters-industries-cpq 1.256.0 → 1.258.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.
@@ -1891,7 +1891,7 @@ function equals$b(existing, incoming) {
1891
1891
  return true;
1892
1892
  }
1893
1893
 
1894
- const VERSION$a = "6ff7eba66a298f44544aa43e1c59f15c";
1894
+ const VERSION$a = "8168c188ee69e7e09a39c184a547cd09";
1895
1895
  function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
1896
1896
  const v_error = (() => {
1897
1897
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2026,6 +2026,20 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
2026
2026
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2027
2027
  }
2028
2028
  }
2029
+ if (obj.maxValue !== undefined) {
2030
+ const obj_maxValue = obj.maxValue;
2031
+ const path_maxValue = path + '.maxValue';
2032
+ if (typeof obj_maxValue !== 'string') {
2033
+ return new TypeError('Expected "string" but received "' + typeof obj_maxValue + '" (at "' + path_maxValue + '")');
2034
+ }
2035
+ }
2036
+ if (obj.minValue !== undefined) {
2037
+ const obj_minValue = obj.minValue;
2038
+ const path_minValue = path + '.minValue';
2039
+ if (typeof obj_minValue !== 'string') {
2040
+ return new TypeError('Expected "string" but received "' + typeof obj_minValue + '" (at "' + path_minValue + '")');
2041
+ }
2042
+ }
2029
2043
  if (obj.name !== undefined) {
2030
2044
  const obj_name = obj.name;
2031
2045
  const path_name = path + '.name';
@@ -2047,6 +2061,13 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
2047
2061
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2048
2062
  }
2049
2063
  }
2064
+ if (obj.stepValue !== undefined) {
2065
+ const obj_stepValue = obj.stepValue;
2066
+ const path_stepValue = path + '.stepValue';
2067
+ if (typeof obj_stepValue !== 'string') {
2068
+ return new TypeError('Expected "string" but received "' + typeof obj_stepValue + '" (at "' + path_stepValue + '")');
2069
+ }
2070
+ }
2050
2071
  if (obj.userValue !== undefined) {
2051
2072
  const obj_userValue = obj.userValue;
2052
2073
  const path_userValue = path + '.userValue';
@@ -2054,6 +2075,13 @@ function validate$z(obj, path = 'ProductAttributeOutputRepresentation') {
2054
2075
  return new TypeError('Expected "string" but received "' + typeof obj_userValue + '" (at "' + path_userValue + '")');
2055
2076
  }
2056
2077
  }
2078
+ if (obj.valueDecoder !== undefined) {
2079
+ const obj_valueDecoder = obj.valueDecoder;
2080
+ const path_valueDecoder = path + '.valueDecoder';
2081
+ if (typeof obj_valueDecoder !== 'string') {
2082
+ return new TypeError('Expected "string" but received "' + typeof obj_valueDecoder + '" (at "' + path_valueDecoder + '")');
2083
+ }
2084
+ }
2057
2085
  if (obj.valueDescription !== undefined) {
2058
2086
  const obj_valueDescription = obj.valueDescription;
2059
2087
  const path_valueDescription = path + '.valueDescription';
@@ -2162,6 +2190,16 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2162
2190
  kind: 'Scalar',
2163
2191
  required: false
2164
2192
  },
2193
+ {
2194
+ name: 'maxValue',
2195
+ kind: 'Scalar',
2196
+ required: false
2197
+ },
2198
+ {
2199
+ name: 'minValue',
2200
+ kind: 'Scalar',
2201
+ required: false
2202
+ },
2165
2203
  {
2166
2204
  name: 'name',
2167
2205
  kind: 'Scalar',
@@ -2177,11 +2215,21 @@ const select$g = function ProductAttributeOutputRepresentationSelect() {
2177
2215
  kind: 'Scalar',
2178
2216
  required: false
2179
2217
  },
2218
+ {
2219
+ name: 'stepValue',
2220
+ kind: 'Scalar',
2221
+ required: false
2222
+ },
2180
2223
  {
2181
2224
  name: 'userValue',
2182
2225
  kind: 'Scalar',
2183
2226
  required: false
2184
2227
  },
2228
+ {
2229
+ name: 'valueDecoder',
2230
+ kind: 'Scalar',
2231
+ required: false
2232
+ },
2185
2233
  {
2186
2234
  name: 'valueDescription',
2187
2235
  kind: 'Scalar',
@@ -2425,6 +2473,32 @@ function equals$a(existing, incoming) {
2425
2473
  return false;
2426
2474
  }
2427
2475
  }
2476
+ const existing_maxValue = existing.maxValue;
2477
+ const incoming_maxValue = incoming.maxValue;
2478
+ // if at least one of these optionals is defined
2479
+ if (existing_maxValue !== undefined || incoming_maxValue !== undefined) {
2480
+ // if one of these is not defined we know the other is defined and therefore
2481
+ // not equal
2482
+ if (existing_maxValue === undefined || incoming_maxValue === undefined) {
2483
+ return false;
2484
+ }
2485
+ if (!(existing_maxValue === incoming_maxValue)) {
2486
+ return false;
2487
+ }
2488
+ }
2489
+ const existing_minValue = existing.minValue;
2490
+ const incoming_minValue = incoming.minValue;
2491
+ // if at least one of these optionals is defined
2492
+ if (existing_minValue !== undefined || incoming_minValue !== undefined) {
2493
+ // if one of these is not defined we know the other is defined and therefore
2494
+ // not equal
2495
+ if (existing_minValue === undefined || incoming_minValue === undefined) {
2496
+ return false;
2497
+ }
2498
+ if (!(existing_minValue === incoming_minValue)) {
2499
+ return false;
2500
+ }
2501
+ }
2428
2502
  const existing_name = existing.name;
2429
2503
  const incoming_name = incoming.name;
2430
2504
  // if at least one of these optionals is defined
@@ -2451,6 +2525,19 @@ function equals$a(existing, incoming) {
2451
2525
  return false;
2452
2526
  }
2453
2527
  }
2528
+ const existing_stepValue = existing.stepValue;
2529
+ const incoming_stepValue = incoming.stepValue;
2530
+ // if at least one of these optionals is defined
2531
+ if (existing_stepValue !== undefined || incoming_stepValue !== undefined) {
2532
+ // if one of these is not defined we know the other is defined and therefore
2533
+ // not equal
2534
+ if (existing_stepValue === undefined || incoming_stepValue === undefined) {
2535
+ return false;
2536
+ }
2537
+ if (!(existing_stepValue === incoming_stepValue)) {
2538
+ return false;
2539
+ }
2540
+ }
2454
2541
  const existing_userValue = existing.userValue;
2455
2542
  const incoming_userValue = incoming.userValue;
2456
2543
  // if at least one of these optionals is defined
@@ -2464,6 +2551,19 @@ function equals$a(existing, incoming) {
2464
2551
  return false;
2465
2552
  }
2466
2553
  }
2554
+ const existing_valueDecoder = existing.valueDecoder;
2555
+ const incoming_valueDecoder = incoming.valueDecoder;
2556
+ // if at least one of these optionals is defined
2557
+ if (existing_valueDecoder !== undefined || incoming_valueDecoder !== undefined) {
2558
+ // if one of these is not defined we know the other is defined and therefore
2559
+ // not equal
2560
+ if (existing_valueDecoder === undefined || incoming_valueDecoder === undefined) {
2561
+ return false;
2562
+ }
2563
+ if (!(existing_valueDecoder === incoming_valueDecoder)) {
2564
+ return false;
2565
+ }
2566
+ }
2467
2567
  const existing_valueDescription = existing.valueDescription;
2468
2568
  const incoming_valueDescription = incoming.valueDescription;
2469
2569
  // if at least one of these optionals is defined
@@ -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 = "6ff7eba66a298f44544aa43e1c59f15c";
3
+ export declare const VERSION = "8168c188ee69e7e09a39c184a547cd09";
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;
@@ -51,14 +51,22 @@ export interface ProductAttributeOutputRepresentationNormalized {
51
51
  isRequired?: boolean;
52
52
  /** Label of the attribute */
53
53
  label?: string;
54
+ /** maximum value of the attribute */
55
+ maxValue?: string;
56
+ /** minimum value of the attribute */
57
+ minValue?: string;
54
58
  /** name of product attribute */
55
59
  name?: string;
56
60
  /** Sequence of the attribute */
57
61
  sequence?: number;
58
62
  /** Status of product attribute - Active/InActive */
59
63
  status?: string;
64
+ /** step increment/decrement value of the attribute */
65
+ stepValue?: string;
60
66
  /** user value of the product attribute */
61
67
  userValue?: string;
68
+ /** parsable decoder of the attribute */
69
+ valueDecoder?: string;
62
70
  /** value description of the attribute */
63
71
  valueDescription?: string;
64
72
  }
@@ -87,9 +95,13 @@ export interface ProductAttributeOutputRepresentation {
87
95
  isReadOnly?: boolean;
88
96
  isRequired?: boolean;
89
97
  label?: string;
98
+ maxValue?: string;
99
+ minValue?: string;
90
100
  name?: string;
91
101
  sequence?: number;
92
102
  status?: string;
103
+ stepValue?: string;
93
104
  userValue?: string;
105
+ valueDecoder?: string;
94
106
  valueDescription?: string;
95
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-cpq",
3
- "version": "1.256.0",
3
+ "version": "1.258.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",
@@ -43,11 +43,11 @@
43
43
  "test:compat": "nx build:karma && karma start --single-run --compat"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "^1.256.0"
46
+ "@salesforce/lds-bindings": "^1.258.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.256.0",
50
- "@salesforce/lds-karma": "^1.256.0"
49
+ "@salesforce/lds-compiler-plugins": "^1.258.0",
50
+ "@salesforce/lds-karma": "^1.258.0"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -2920,7 +2920,7 @@ function equals$b(existing, incoming) {
2920
2920
  return true;
2921
2921
  }
2922
2922
 
2923
- const VERSION$a = "6ff7eba66a298f44544aa43e1c59f15c";
2923
+ const VERSION$a = "8168c188ee69e7e09a39c184a547cd09";
2924
2924
  function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
2925
2925
  const v_error = (() => {
2926
2926
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3055,6 +3055,20 @@ function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
3055
3055
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3056
3056
  }
3057
3057
  }
3058
+ if (obj.maxValue !== undefined) {
3059
+ const obj_maxValue = obj.maxValue;
3060
+ const path_maxValue = path + '.maxValue';
3061
+ if (typeof obj_maxValue !== 'string') {
3062
+ return new TypeError('Expected "string" but received "' + typeof obj_maxValue + '" (at "' + path_maxValue + '")');
3063
+ }
3064
+ }
3065
+ if (obj.minValue !== undefined) {
3066
+ const obj_minValue = obj.minValue;
3067
+ const path_minValue = path + '.minValue';
3068
+ if (typeof obj_minValue !== 'string') {
3069
+ return new TypeError('Expected "string" but received "' + typeof obj_minValue + '" (at "' + path_minValue + '")');
3070
+ }
3071
+ }
3058
3072
  if (obj.name !== undefined) {
3059
3073
  const obj_name = obj.name;
3060
3074
  const path_name = path + '.name';
@@ -3076,6 +3090,13 @@ function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
3076
3090
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
3077
3091
  }
3078
3092
  }
3093
+ if (obj.stepValue !== undefined) {
3094
+ const obj_stepValue = obj.stepValue;
3095
+ const path_stepValue = path + '.stepValue';
3096
+ if (typeof obj_stepValue !== 'string') {
3097
+ return new TypeError('Expected "string" but received "' + typeof obj_stepValue + '" (at "' + path_stepValue + '")');
3098
+ }
3099
+ }
3079
3100
  if (obj.userValue !== undefined) {
3080
3101
  const obj_userValue = obj.userValue;
3081
3102
  const path_userValue = path + '.userValue';
@@ -3083,6 +3104,13 @@ function validate$j(obj, path = 'ProductAttributeOutputRepresentation') {
3083
3104
  return new TypeError('Expected "string" but received "' + typeof obj_userValue + '" (at "' + path_userValue + '")');
3084
3105
  }
3085
3106
  }
3107
+ if (obj.valueDecoder !== undefined) {
3108
+ const obj_valueDecoder = obj.valueDecoder;
3109
+ const path_valueDecoder = path + '.valueDecoder';
3110
+ if (typeof obj_valueDecoder !== 'string') {
3111
+ return new TypeError('Expected "string" but received "' + typeof obj_valueDecoder + '" (at "' + path_valueDecoder + '")');
3112
+ }
3113
+ }
3086
3114
  if (obj.valueDescription !== undefined) {
3087
3115
  const obj_valueDescription = obj.valueDescription;
3088
3116
  const path_valueDescription = path + '.valueDescription';
@@ -3191,6 +3219,16 @@ const select$i = function ProductAttributeOutputRepresentationSelect() {
3191
3219
  kind: 'Scalar',
3192
3220
  required: false
3193
3221
  },
3222
+ {
3223
+ name: 'maxValue',
3224
+ kind: 'Scalar',
3225
+ required: false
3226
+ },
3227
+ {
3228
+ name: 'minValue',
3229
+ kind: 'Scalar',
3230
+ required: false
3231
+ },
3194
3232
  {
3195
3233
  name: 'name',
3196
3234
  kind: 'Scalar',
@@ -3206,11 +3244,21 @@ const select$i = function ProductAttributeOutputRepresentationSelect() {
3206
3244
  kind: 'Scalar',
3207
3245
  required: false
3208
3246
  },
3247
+ {
3248
+ name: 'stepValue',
3249
+ kind: 'Scalar',
3250
+ required: false
3251
+ },
3209
3252
  {
3210
3253
  name: 'userValue',
3211
3254
  kind: 'Scalar',
3212
3255
  required: false
3213
3256
  },
3257
+ {
3258
+ name: 'valueDecoder',
3259
+ kind: 'Scalar',
3260
+ required: false
3261
+ },
3214
3262
  {
3215
3263
  name: 'valueDescription',
3216
3264
  kind: 'Scalar',
@@ -3454,6 +3502,32 @@ function equals$a(existing, incoming) {
3454
3502
  return false;
3455
3503
  }
3456
3504
  }
3505
+ const existing_maxValue = existing.maxValue;
3506
+ const incoming_maxValue = incoming.maxValue;
3507
+ // if at least one of these optionals is defined
3508
+ if (existing_maxValue !== undefined || incoming_maxValue !== undefined) {
3509
+ // if one of these is not defined we know the other is defined and therefore
3510
+ // not equal
3511
+ if (existing_maxValue === undefined || incoming_maxValue === undefined) {
3512
+ return false;
3513
+ }
3514
+ if (!(existing_maxValue === incoming_maxValue)) {
3515
+ return false;
3516
+ }
3517
+ }
3518
+ const existing_minValue = existing.minValue;
3519
+ const incoming_minValue = incoming.minValue;
3520
+ // if at least one of these optionals is defined
3521
+ if (existing_minValue !== undefined || incoming_minValue !== undefined) {
3522
+ // if one of these is not defined we know the other is defined and therefore
3523
+ // not equal
3524
+ if (existing_minValue === undefined || incoming_minValue === undefined) {
3525
+ return false;
3526
+ }
3527
+ if (!(existing_minValue === incoming_minValue)) {
3528
+ return false;
3529
+ }
3530
+ }
3457
3531
  const existing_name = existing.name;
3458
3532
  const incoming_name = incoming.name;
3459
3533
  // if at least one of these optionals is defined
@@ -3480,6 +3554,19 @@ function equals$a(existing, incoming) {
3480
3554
  return false;
3481
3555
  }
3482
3556
  }
3557
+ const existing_stepValue = existing.stepValue;
3558
+ const incoming_stepValue = incoming.stepValue;
3559
+ // if at least one of these optionals is defined
3560
+ if (existing_stepValue !== undefined || incoming_stepValue !== undefined) {
3561
+ // if one of these is not defined we know the other is defined and therefore
3562
+ // not equal
3563
+ if (existing_stepValue === undefined || incoming_stepValue === undefined) {
3564
+ return false;
3565
+ }
3566
+ if (!(existing_stepValue === incoming_stepValue)) {
3567
+ return false;
3568
+ }
3569
+ }
3483
3570
  const existing_userValue = existing.userValue;
3484
3571
  const incoming_userValue = incoming.userValue;
3485
3572
  // if at least one of these optionals is defined
@@ -3493,6 +3580,19 @@ function equals$a(existing, incoming) {
3493
3580
  return false;
3494
3581
  }
3495
3582
  }
3583
+ const existing_valueDecoder = existing.valueDecoder;
3584
+ const incoming_valueDecoder = incoming.valueDecoder;
3585
+ // if at least one of these optionals is defined
3586
+ if (existing_valueDecoder !== undefined || incoming_valueDecoder !== undefined) {
3587
+ // if one of these is not defined we know the other is defined and therefore
3588
+ // not equal
3589
+ if (existing_valueDecoder === undefined || incoming_valueDecoder === undefined) {
3590
+ return false;
3591
+ }
3592
+ if (!(existing_valueDecoder === incoming_valueDecoder)) {
3593
+ return false;
3594
+ }
3595
+ }
3496
3596
  const existing_valueDescription = existing.valueDescription;
3497
3597
  const incoming_valueDescription = incoming.valueDescription;
3498
3598
  // if at least one of these optionals is defined
@@ -6263,4 +6363,4 @@ withDefaultLuvio((luvio) => {
6263
6363
  });
6264
6364
 
6265
6365
  export { configure, createCart, createCartItems, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems };
6266
- // version: 1.256.0-fb019fbad
6366
+ // version: 1.258.0-c09652442
package/src/raml/api.raml CHANGED
@@ -1405,6 +1405,22 @@ types:
1405
1405
  description: user value of the product attribute
1406
1406
  type: string
1407
1407
  required: false
1408
+ minValue:
1409
+ description: minimum value of the attribute
1410
+ type: string
1411
+ required: false
1412
+ maxValue:
1413
+ description: maximum value of the attribute
1414
+ type: string
1415
+ required: false
1416
+ stepValue:
1417
+ description: step increment/decrement value of the attribute
1418
+ type: string
1419
+ required: false
1420
+ valueDecoder:
1421
+ description: parsable decoder of the attribute
1422
+ type: string
1423
+ required: false
1408
1424
  ProductConfigurationInputRepresentation:
1409
1425
  description: Input Representation for Product Configuration.
1410
1426
  type: object