@viu/emporix-sdk 2.36.0 → 2.36.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @viu/emporix-sdk
2
2
 
3
+ ## 2.36.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#286](https://github.com/viuteam/emporix-sdk/pull/286) [`2d7e496`](https://github.com/viuteam/emporix-sdk/commit/2d7e496c64fc1df4ffe24db436ec10cc1c2ae4b4) Thanks [@amnael1](https://github.com/amnael1)! - chore(sdk): bump the type generator to @hey-api/openapi-ts 0.97.3
8
+
9
+ Answers two Dependabot alerts on the codegen. Regenerated from the **same** vendored
10
+ specs, so no Emporix API surface changes — only how the generator emits it: 88 files,
11
+ +2051/-352.
12
+
13
+ Two generated names disappear, both internal and neither reachable from the package
14
+ root: `_Error` and `_Object` are now emitted under their real names, `Error` and
15
+ `Object`. The bundler renames the collision away (`Object$1` in `dist/index.d.ts`), so
16
+ nothing shadows the globals and no export list mentions either name. Every other
17
+ exported name is unchanged; 102 are new.
18
+
19
+ `jiti` is pinned to `2.6.1` in the root `pnpm.overrides` as part of this change.
20
+ Bumping the generator pulls `jiti` to 2.7.0 through `c12`, which re-resolves every
21
+ `vite`, `vitest` and `eslint` peer in the tree — and with that resolution the
22
+ `packages/react` suite fails intermittently: 2 failures in 6 runs, against 0 in 9 runs
23
+ without it. Pinning `jiti` restores 6 of 6. The pin is a quarantine, not a diagnosis:
24
+ the underlying reason jiti 2.7.0 destabilises that suite is unknown and will need
25
+ finding before the pin can go.
26
+
3
27
  ## 2.36.0
4
28
 
5
29
  ### Minor Changes
package/dist/cart.d.cts CHANGED
@@ -135,6 +135,7 @@ type Cart$1 = BaseCart & {
135
135
  *
136
136
  * ***NOTE***
137
137
  * This attribute is deprecated. Please use the `deliveryWindow` attribute.
138
+ *
138
139
  * @deprecated
139
140
  */
140
141
  deliveryWindowId?: string;
@@ -218,13 +219,15 @@ type CartItemRequest = {
218
219
  */
219
220
  id?: string;
220
221
  /**
221
- * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
222
+ * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
222
223
  */
223
224
  keepAsSeparateLineItem?: boolean;
224
225
  product?: Product & {
225
226
  [key: string]: unknown;
226
227
  };
227
228
  /**
229
+ * YRN
230
+ *
228
231
  * A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant. This field should not be provided when itemType is EXTERNAL and request contains external product.
229
232
  */
230
233
  itemYrn?: string;
@@ -270,6 +273,7 @@ type CartItemRequest = {
270
273
  * Deprecated, use product `weightDependent` attribute that is stored in the database.
271
274
  * If set to `true`, the storefront displays a hint that the total price of the product may vary depending on the product’s actual weight.
272
275
  *
276
+ *
273
277
  * @deprecated
274
278
  */
275
279
  weightDependent?: boolean;
@@ -425,7 +429,7 @@ type BaseCartItemResponse = {
425
429
  */
426
430
  id?: string;
427
431
  /**
428
- * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
432
+ * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
429
433
  */
430
434
  keepAsSeparateLineItem?: boolean;
431
435
  yrn?: Yrn;
@@ -497,6 +501,7 @@ type CartItemResponse = BaseCartItemResponse & {
497
501
  };
498
502
  /**
499
503
  * **This field is deprecated**. Please use `calculatedPrice.price` instead.
504
+ *
500
505
  * @deprecated
501
506
  */
502
507
  itemTaxInfo?: Array<TaxValue>;
@@ -519,7 +524,8 @@ type CartItemResponse = BaseCartItemResponse & {
519
524
  [key: string]: unknown;
520
525
  };
521
526
  /**
522
- * **This field is deprecated**. Please use `calculatedPrice.fees` instead. A fee has an enum value that allows to distinguish external prices
527
+ * **This field is deprecated**. Please use `calculatedPrice.fees` instead. A fee has an enum value that allows to distinguish external prices
528
+ *
523
529
  * @deprecated
524
530
  */
525
531
  externalFees?: Array<ExternalFee>;
@@ -792,6 +798,9 @@ type DiscountValidationDetails = {
792
798
  message?: string;
793
799
  details?: Array<string>;
794
800
  };
801
+ /**
802
+ * fee
803
+ */
795
804
  type Fee = {
796
805
  yrn?: Yrn;
797
806
  name?: LocalizedValue;
@@ -1031,6 +1040,8 @@ type SingleBatchResponse = {
1031
1040
  yrn?: Yrn;
1032
1041
  };
1033
1042
  /**
1043
+ * updateCartItemsBatchEntryResponse
1044
+ *
1034
1045
  * Result for a single cart item in a batch update, aligned with bulk operation entry responses.
1035
1046
  */
1036
1047
  type UpdateCartItemsBatchEntryResponse = {
@@ -1277,6 +1288,8 @@ type CartItemsBatchUpdateRequest = Array<CartItemRequest & {
1277
1288
  }>;
1278
1289
  type BatchResponse = Array<SingleBatchResponse>;
1279
1290
  /**
1291
+ * YRN
1292
+ *
1280
1293
  * A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
1281
1294
  */
1282
1295
  type Yrn = string;
@@ -1813,6 +1826,9 @@ type ItemCalculatedPrice = {
1813
1826
  taxCode?: string;
1814
1827
  };
1815
1828
  };
1829
+ /**
1830
+ * calculatedAppliedDiscount
1831
+ */
1816
1832
  type CalculatedAppliedDiscount = {
1817
1833
  /**
1818
1834
  * The ID of the applied discount.
@@ -1835,6 +1851,8 @@ type CalculatedAppliedDiscount = {
1835
1851
  origin?: 'INTERNAL' | 'EXTERNAL';
1836
1852
  };
1837
1853
  /**
1854
+ * calculatedTotalDiscount
1855
+ *
1838
1856
  * The total combined value of all applied discounts.
1839
1857
  */
1840
1858
  type CalculatedTotalDiscount = {
package/dist/cart.d.ts CHANGED
@@ -135,6 +135,7 @@ type Cart$1 = BaseCart & {
135
135
  *
136
136
  * ***NOTE***
137
137
  * This attribute is deprecated. Please use the `deliveryWindow` attribute.
138
+ *
138
139
  * @deprecated
139
140
  */
140
141
  deliveryWindowId?: string;
@@ -218,13 +219,15 @@ type CartItemRequest = {
218
219
  */
219
220
  id?: string;
220
221
  /**
221
- * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
222
+ * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
222
223
  */
223
224
  keepAsSeparateLineItem?: boolean;
224
225
  product?: Product & {
225
226
  [key: string]: unknown;
226
227
  };
227
228
  /**
229
+ * YRN
230
+ *
228
231
  * A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant. This field should not be provided when itemType is EXTERNAL and request contains external product.
229
232
  */
230
233
  itemYrn?: string;
@@ -270,6 +273,7 @@ type CartItemRequest = {
270
273
  * Deprecated, use product `weightDependent` attribute that is stored in the database.
271
274
  * If set to `true`, the storefront displays a hint that the total price of the product may vary depending on the product’s actual weight.
272
275
  *
276
+ *
273
277
  * @deprecated
274
278
  */
275
279
  weightDependent?: boolean;
@@ -425,7 +429,7 @@ type BaseCartItemResponse = {
425
429
  */
426
430
  id?: string;
427
431
  /**
428
- * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
432
+ * Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
429
433
  */
430
434
  keepAsSeparateLineItem?: boolean;
431
435
  yrn?: Yrn;
@@ -497,6 +501,7 @@ type CartItemResponse = BaseCartItemResponse & {
497
501
  };
498
502
  /**
499
503
  * **This field is deprecated**. Please use `calculatedPrice.price` instead.
504
+ *
500
505
  * @deprecated
501
506
  */
502
507
  itemTaxInfo?: Array<TaxValue>;
@@ -519,7 +524,8 @@ type CartItemResponse = BaseCartItemResponse & {
519
524
  [key: string]: unknown;
520
525
  };
521
526
  /**
522
- * **This field is deprecated**. Please use `calculatedPrice.fees` instead. A fee has an enum value that allows to distinguish external prices
527
+ * **This field is deprecated**. Please use `calculatedPrice.fees` instead. A fee has an enum value that allows to distinguish external prices
528
+ *
523
529
  * @deprecated
524
530
  */
525
531
  externalFees?: Array<ExternalFee>;
@@ -792,6 +798,9 @@ type DiscountValidationDetails = {
792
798
  message?: string;
793
799
  details?: Array<string>;
794
800
  };
801
+ /**
802
+ * fee
803
+ */
795
804
  type Fee = {
796
805
  yrn?: Yrn;
797
806
  name?: LocalizedValue;
@@ -1031,6 +1040,8 @@ type SingleBatchResponse = {
1031
1040
  yrn?: Yrn;
1032
1041
  };
1033
1042
  /**
1043
+ * updateCartItemsBatchEntryResponse
1044
+ *
1034
1045
  * Result for a single cart item in a batch update, aligned with bulk operation entry responses.
1035
1046
  */
1036
1047
  type UpdateCartItemsBatchEntryResponse = {
@@ -1277,6 +1288,8 @@ type CartItemsBatchUpdateRequest = Array<CartItemRequest & {
1277
1288
  }>;
1278
1289
  type BatchResponse = Array<SingleBatchResponse>;
1279
1290
  /**
1291
+ * YRN
1292
+ *
1280
1293
  * A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
1281
1294
  */
1282
1295
  type Yrn = string;
@@ -1813,6 +1826,9 @@ type ItemCalculatedPrice = {
1813
1826
  taxCode?: string;
1814
1827
  };
1815
1828
  };
1829
+ /**
1830
+ * calculatedAppliedDiscount
1831
+ */
1816
1832
  type CalculatedAppliedDiscount = {
1817
1833
  /**
1818
1834
  * The ID of the applied discount.
@@ -1835,6 +1851,8 @@ type CalculatedAppliedDiscount = {
1835
1851
  origin?: 'INTERNAL' | 'EXTERNAL';
1836
1852
  };
1837
1853
  /**
1854
+ * calculatedTotalDiscount
1855
+ *
1838
1856
  * The total combined value of all applied discounts.
1839
1857
  */
1840
1858
  type CalculatedTotalDiscount = {
@@ -131,11 +131,13 @@ type Category$1 = {
131
131
  };
132
132
  /**
133
133
  * Category name in tenant default language.
134
+ *
134
135
  * @deprecated
135
136
  */
136
137
  name?: string;
137
138
  /**
138
139
  * Description in tenant default language.
140
+ *
139
141
  * @deprecated
140
142
  */
141
143
  description?: string;
@@ -344,11 +346,13 @@ type CategoryTree = {
344
346
  id: string;
345
347
  /**
346
348
  * Category name in tenant default language.
349
+ *
347
350
  * @deprecated
348
351
  */
349
352
  name: string;
350
353
  /**
351
354
  * Description in tenant default language.
355
+ *
352
356
  * @deprecated
353
357
  */
354
358
  description?: string;
@@ -131,11 +131,13 @@ type Category$1 = {
131
131
  };
132
132
  /**
133
133
  * Category name in tenant default language.
134
+ *
134
135
  * @deprecated
135
136
  */
136
137
  name?: string;
137
138
  /**
138
139
  * Description in tenant default language.
140
+ *
139
141
  * @deprecated
140
142
  */
141
143
  description?: string;
@@ -344,11 +346,13 @@ type CategoryTree = {
344
346
  id: string;
345
347
  /**
346
348
  * Category name in tenant default language.
349
+ *
347
350
  * @deprecated
348
351
  */
349
352
  name: string;
350
353
  /**
351
354
  * Description in tenant default language.
355
+ *
352
356
  * @deprecated
353
357
  */
354
358
  description?: string;
@@ -1,6 +1,6 @@
1
1
  import { C as ClientContext, b as AuthContext } from './context-DK8jg6y5.cjs';
2
- import { L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate } from './types.gen-C_wOXYZB.cjs';
3
- export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-C_wOXYZB.cjs';
2
+ import { L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate } from './types.gen-fWB4nrso.cjs';
3
+ export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-fWB4nrso.cjs';
4
4
 
5
5
  /** Body for `companies.search` — an Emporix `q`-syntax filter. */
6
6
  type LegalEntitySearchInput = {
@@ -1,6 +1,6 @@
1
1
  import { C as ClientContext, b as AuthContext } from './context-DK8jg6y5.js';
2
- import { L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate } from './types.gen-C_wOXYZB.js';
3
- export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-C_wOXYZB.js';
2
+ import { L as LegalEntity, e as LegalEntityCreate, f as LegalEntityUpdate } from './types.gen-fWB4nrso.js';
3
+ export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-fWB4nrso.js';
4
4
 
5
5
  /** Body for `companies.search` — an Emporix `q`-syntax filter. */
6
6
  type LegalEntitySearchInput = {
@@ -1,5 +1,5 @@
1
1
  import { C as ClientContext, b as AuthContext } from './context-DK8jg6y5.cjs';
2
- import { C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate } from './types.gen-C_wOXYZB.cjs';
2
+ import { C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate } from './types.gen-fWB4nrso.cjs';
3
3
 
4
4
  /**
5
5
  * Manages contact assignments linking customers to legal entities.
@@ -1,5 +1,5 @@
1
1
  import { C as ClientContext, b as AuthContext } from './context-DK8jg6y5.js';
2
- import { C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate } from './types.gen-C_wOXYZB.js';
2
+ import { C as ContactAssignment, a as ContactAssignmentCreate, b as ContactAssignmentUpdate } from './types.gen-fWB4nrso.js';
3
3
 
4
4
  /**
5
5
  * Manages contact assignments linking customers to legal entities.
@@ -27,11 +27,13 @@ type AccessControlQueryDocument = {
27
27
  id?: string;
28
28
  /**
29
29
  * Role unique identifier associated with this access control.
30
+ *
30
31
  * @deprecated
31
32
  */
32
33
  roleId?: string;
33
34
  /**
34
35
  * Resource unique identifier associated with this access control.
36
+ *
35
37
  * @deprecated
36
38
  */
37
39
  resourceId?: string;
@@ -27,11 +27,13 @@ type AccessControlQueryDocument = {
27
27
  id?: string;
28
28
  /**
29
29
  * Role unique identifier associated with this access control.
30
+ *
30
31
  * @deprecated
31
32
  */
32
33
  roleId?: string;
33
34
  /**
34
35
  * Resource unique identifier associated with this access control.
36
+ *
35
37
  * @deprecated
36
38
  */
37
39
  resourceId?: string;
@@ -1,2 +1,2 @@
1
- export { g as CustomerGroupsService, j as IamGroup, c as IamGroupMemberAssignment } from './customer-groups-D0OCm8kJ.cjs';
1
+ export { g as CustomerGroupsService, j as IamGroup, c as IamGroupMemberAssignment } from './customer-groups-BfHDqExS.cjs';
2
2
  import './context-DK8jg6y5.cjs';
@@ -1,2 +1,2 @@
1
- export { g as CustomerGroupsService, j as IamGroup, c as IamGroupMemberAssignment } from './customer-groups-WSt4aT62.js';
1
+ export { g as CustomerGroupsService, j as IamGroup, c as IamGroupMemberAssignment } from './customer-groups-Cs6-Cwzg.js';
2
2
  import './context-DK8jg6y5.js';
@@ -47,9 +47,15 @@ type Address$1 = {
47
47
  [key: string]: unknown;
48
48
  };
49
49
  };
50
+ /**
51
+ * AddressCommonDto
52
+ */
50
53
  type AddressCommonDto = AddressCreateDto & {
51
54
  metadata?: DefaultDtoMetadata;
52
55
  };
56
+ /**
57
+ * AddressCommonDto
58
+ */
53
59
  type AddressCreateDto = {
54
60
  contactName?: string;
55
61
  companyName?: string;
@@ -80,6 +86,9 @@ type AddressUpdateDto = AddressCommonDto & {
80
86
  */
81
87
  isDefault?: boolean;
82
88
  };
89
+ /**
90
+ * ChangeEmailRequestDto
91
+ */
83
92
  type ChangeEmailRequestDto = {
84
93
  /**
85
94
  * Customer email address currently used for logging in.
@@ -155,6 +164,9 @@ type Customer$1 = {
155
164
  */
156
165
  lastLogin?: string;
157
166
  };
167
+ /**
168
+ * CustomerCommonDto
169
+ */
158
170
  type CustomerCommonDto = {
159
171
  title?: string;
160
172
  firstName?: string;
@@ -232,6 +244,8 @@ type CustomerUpdateDto = CustomerCommonDto & {
232
244
  contactEmail?: string;
233
245
  };
234
246
  /**
247
+ * DefaultDtoMetadata
248
+ *
235
249
  * Links to mixin schemas.
236
250
  */
237
251
  type BasicMetadataDto = {
@@ -239,6 +253,9 @@ type BasicMetadataDto = {
239
253
  [key: string]: unknown;
240
254
  };
241
255
  };
256
+ /**
257
+ * DefaultDtoMetadata
258
+ */
242
259
  type DefaultDtoMetadata = BasicMetadataDto & {
243
260
  version?: number;
244
261
  };
@@ -288,6 +305,9 @@ type RefreshToken = {
288
305
  */
289
306
  email: string;
290
307
  };
308
+ /**
309
+ * UpdateEmail
310
+ */
291
311
  type UpdateEmail = {
292
312
  /**
293
313
  * Token received by the customer through email.
@@ -47,9 +47,15 @@ type Address$1 = {
47
47
  [key: string]: unknown;
48
48
  };
49
49
  };
50
+ /**
51
+ * AddressCommonDto
52
+ */
50
53
  type AddressCommonDto = AddressCreateDto & {
51
54
  metadata?: DefaultDtoMetadata;
52
55
  };
56
+ /**
57
+ * AddressCommonDto
58
+ */
53
59
  type AddressCreateDto = {
54
60
  contactName?: string;
55
61
  companyName?: string;
@@ -80,6 +86,9 @@ type AddressUpdateDto = AddressCommonDto & {
80
86
  */
81
87
  isDefault?: boolean;
82
88
  };
89
+ /**
90
+ * ChangeEmailRequestDto
91
+ */
83
92
  type ChangeEmailRequestDto = {
84
93
  /**
85
94
  * Customer email address currently used for logging in.
@@ -155,6 +164,9 @@ type Customer$1 = {
155
164
  */
156
165
  lastLogin?: string;
157
166
  };
167
+ /**
168
+ * CustomerCommonDto
169
+ */
158
170
  type CustomerCommonDto = {
159
171
  title?: string;
160
172
  firstName?: string;
@@ -232,6 +244,8 @@ type CustomerUpdateDto = CustomerCommonDto & {
232
244
  contactEmail?: string;
233
245
  };
234
246
  /**
247
+ * DefaultDtoMetadata
248
+ *
235
249
  * Links to mixin schemas.
236
250
  */
237
251
  type BasicMetadataDto = {
@@ -239,6 +253,9 @@ type BasicMetadataDto = {
239
253
  [key: string]: unknown;
240
254
  };
241
255
  };
256
+ /**
257
+ * DefaultDtoMetadata
258
+ */
242
259
  type DefaultDtoMetadata = BasicMetadataDto & {
243
260
  version?: number;
244
261
  };
@@ -288,6 +305,9 @@ type RefreshToken = {
288
305
  */
289
306
  email: string;
290
307
  };
308
+ /**
309
+ * UpdateEmail
310
+ */
291
311
  type UpdateEmail = {
292
312
  /**
293
313
  * Token received by the customer through email.
package/dist/index.cjs CHANGED
@@ -995,7 +995,7 @@ var HttpClient = class {
995
995
  };
996
996
 
997
997
  // package.json
998
- var version = "2.36.0";
998
+ var version = "2.36.1";
999
999
 
1000
1000
  // src/version.ts
1001
1001
  var SDK_VERSION = version;