@viu/emporix-sdk 2.35.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 +94 -0
- package/README.md +22 -8
- package/dist/cart.d.cts +21 -3
- package/dist/cart.d.ts +21 -3
- package/dist/category.d.cts +4 -0
- package/dist/category.d.ts +4 -0
- package/dist/companies.d.cts +2 -2
- package/dist/companies.d.ts +2 -2
- package/dist/contacts.d.cts +1 -1
- package/dist/contacts.d.ts +1 -1
- package/dist/{customer-groups-D0OCm8kJ.d.cts → customer-groups-BfHDqExS.d.cts} +2 -0
- package/dist/{customer-groups-WSt4aT62.d.ts → customer-groups-Cs6-Cwzg.d.ts} +2 -0
- package/dist/customer-groups.d.cts +1 -1
- package/dist/customer-groups.d.ts +1 -1
- package/dist/customer.d.cts +20 -0
- package/dist/customer.d.ts +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +683 -29
- package/dist/index.d.ts +683 -29
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locations.d.cts +2 -2
- package/dist/locations.d.ts +2 -2
- package/dist/media.d.cts +24 -0
- package/dist/media.d.ts +24 -0
- package/dist/orders.d.cts +147 -9
- package/dist/orders.d.ts +147 -9
- package/dist/payment.d.cts +39 -0
- package/dist/payment.d.ts +39 -0
- package/dist/price.d.cts +45 -0
- package/dist/price.d.ts +45 -0
- package/dist/product.d.cts +20 -0
- package/dist/product.d.ts +20 -0
- package/dist/{types.gen-C_wOXYZB.d.cts → types.gen-fWB4nrso.d.cts} +52 -0
- package/dist/{types.gen-C_wOXYZB.d.ts → types.gen-fWB4nrso.d.ts} +52 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
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
|
+
|
|
27
|
+
## 2.36.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [#278](https://github.com/viuteam/emporix-sdk/pull/278) [`9cb8b15`](https://github.com/viuteam/emporix-sdk/commit/9cb8b15d14a122e5a69a36a4c1d4cce7c1308c3f) Thanks [@viu-release-bot](https://github.com/apps/viu-release-bot)! - chore(sdk): sync generated types with upstream Emporix API specs
|
|
32
|
+
|
|
33
|
+
Updated services: ai-service
|
|
34
|
+
|
|
35
|
+
Raised from `patch` to `minor` by hand: this sync reshapes the MCP server model
|
|
36
|
+
rather than extending it, and a patch would not announce that.
|
|
37
|
+
|
|
38
|
+
**`McpServerResponse` is now a union.** Emporix split the single managed-MCP-server
|
|
39
|
+
shape into a custom and a dynamic variant:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
// before
|
|
43
|
+
type McpServerResponse = BaseMcpServer & { … }
|
|
44
|
+
// after
|
|
45
|
+
type McpServerResponse = CustomMcpServerResponse | DynamicMcpServerResponse
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`McpServerRequest` splits the same way. Since `client.ai.mcpServers` is typed
|
|
49
|
+
`AgenticCrudResource<McpServer, McpServerInput>` and `McpServer` aliases
|
|
50
|
+
`McpServerResponse`, code that reads fields off a returned MCP server now has to
|
|
51
|
+
narrow first. Nothing inside the SDK does, which is why the build stays green — the
|
|
52
|
+
break lands in consumer code.
|
|
53
|
+
|
|
54
|
+
Also in this sync:
|
|
55
|
+
- `McpServerType` gains `'dynamic'` (was `'custom' | 'predefined'`).
|
|
56
|
+
- `BaseMcpServer` and `CustomAgentMcpServerResponse` are gone, replaced by
|
|
57
|
+
`BaseManagedMcpServer` and `AgentMcpServerResponse`.
|
|
58
|
+
- `AgentMcpServersResponse` changes element type to `Array<AgentMcpServerResponse>`.
|
|
59
|
+
- Eight new types describe MCP tool invocation: `McpToolRequest`/`Response`,
|
|
60
|
+
`McpToolConfigRequest`/`Response`, `McpToolInvocationRequest`/`Response`,
|
|
61
|
+
`McpToolInvocationMethod` and `McpToolInvocationArgsLocation`.
|
|
62
|
+
|
|
63
|
+
No facade change: all 57 ai-service operations were already wrapped, and none of
|
|
64
|
+
the removed type names appear outside the generated file.
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [#277](https://github.com/viuteam/emporix-sdk/pull/277) [`f2b5def`](https://github.com/viuteam/emporix-sdk/commit/f2b5def1f125725602ca461f3cdd6b6cb485795c) Thanks [@amnael1](https://github.com/amnael1)! - docs: correct three stale claims in the SDK README, add the missing mixins LICENSE
|
|
69
|
+
|
|
70
|
+
Checked every verifiable claim in the sdk, react and mixins READMEs against the
|
|
71
|
+
code. The react one was clean. Three things in the SDK README were wrong:
|
|
72
|
+
- **`credentials.backend` was marked «(required)»**. It is not: `validateConfig`
|
|
73
|
+
requires only that the `credentials` object exists, so `credentials: {}` is a
|
|
74
|
+
legal credential-free client — which is exactly what `examples/md-module` does,
|
|
75
|
+
where the Managed Dashboard host owns the token. The table now marks
|
|
76
|
+
`credentials` itself as required and explains the empty case.
|
|
77
|
+
- **`customerGroups` was described as «read-only for now»**. It has `addMember`
|
|
78
|
+
and `removeMember`, and the React README already documented the
|
|
79
|
+
`useAddGroupMember` / `useRemoveGroupMember` hooks for them — the two READMEs
|
|
80
|
+
contradicted each other.
|
|
81
|
+
- **`availability` was described as a read-only service** naming two of its nine
|
|
82
|
+
methods. It has three reads defaulting to `anonymous` and six writes
|
|
83
|
+
(`create`, `update`, `delete`, `bulkCreate`, `bulkUpdate`, `bulkDelete`)
|
|
84
|
+
defaulting to `service`.
|
|
85
|
+
|
|
86
|
+
The documented tenant pattern was also the one from the error message
|
|
87
|
+
(`^[a-z][a-z0-9]+$`) rather than the one the code applies
|
|
88
|
+
(`^[a-z][a-z0-9]{2,15}$`); the prose «3–16 chars» was already right.
|
|
89
|
+
|
|
90
|
+
**`@viu/emporix-mixins` was shipping without a LICENSE file.** Its `files` array
|
|
91
|
+
has listed `LICENSE` since the changelog-links change, and `package.json`
|
|
92
|
+
declares `"license": "MIT"`, but the file itself never existed — so the published
|
|
93
|
+
tarball carried no license text. Added, identical to the other three packages.
|
|
94
|
+
Its README also gains the CI/npm badges and the Authors and License sections the
|
|
95
|
+
others have.
|
|
96
|
+
|
|
3
97
|
## 2.35.0
|
|
4
98
|
|
|
5
99
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -93,8 +93,9 @@ See [`../../docs/mixin-search.md`](../../docs/mixin-search.md) for the capabilit
|
|
|
93
93
|
|
|
94
94
|
| Option | Default | Notes |
|
|
95
95
|
| --- | --- | --- |
|
|
96
|
-
| `tenant` (required) | — | lowercase, 3–16 chars, `^[a-z][a-z0-9]
|
|
97
|
-
| `credentials
|
|
96
|
+
| `tenant` (required) | — | lowercase, 3–16 chars, `^[a-z][a-z0-9]{2,15}$` |
|
|
97
|
+
| `credentials` (required) | — | the object itself is required; which sets it holds is up to you |
|
|
98
|
+
| `credentials.backend` | — | `{ clientId, secret, scope? }` — service token |
|
|
98
99
|
| `credentials.storefront` | — | `{ clientId }` — anonymous token (no secret) |
|
|
99
100
|
| `credentials.custom` | — | `Record<name, { clientId, secret, scope? }>` |
|
|
100
101
|
| `host` | `https://api.emporix.io` | |
|
|
@@ -104,6 +105,13 @@ See [`../../docs/mixin-search.md`](../../docs/mixin-search.md) for the capabilit
|
|
|
104
105
|
| `logger` | console @ `warn` | `false`, a `Logger`, or `{ level, services, pretty, redact }` |
|
|
105
106
|
| `tokenProvider` | built-in | inject for SSO/token-exchange |
|
|
106
107
|
|
|
108
|
+
`credentials: {}` is legal: a client that never mints its own token, for when the
|
|
109
|
+
token comes from outside. The Managed Dashboard module in
|
|
110
|
+
[`examples/md-module`](../../examples/md-module) is built exactly that way — the
|
|
111
|
+
host hands it a customer token and the SDK only passes it through. Pass
|
|
112
|
+
`credentials.backend` when you need a `service` AuthContext, `storefront` for
|
|
113
|
+
anonymous browsing, both when you need both.
|
|
114
|
+
|
|
107
115
|
## AuthContext per method
|
|
108
116
|
|
|
109
117
|
`auth.service(name?)`, `auth.anonymous()`, `auth.customer(token)`,
|
|
@@ -141,8 +149,9 @@ header, guest checkout and deferred payment are covered in
|
|
|
141
149
|
## B2B
|
|
142
150
|
|
|
143
151
|
`sdk.companies` (legal entities), `sdk.contacts` (contact assignments),
|
|
144
|
-
`sdk.locations` (HQ/warehouse/office), `sdk.customerGroups` (IAM groups
|
|
145
|
-
|
|
152
|
+
`sdk.locations` (HQ/warehouse/office), `sdk.customerGroups` (IAM groups —
|
|
153
|
+
`listForCompany` plus `addMember` / `removeMember`). Switching company scope is
|
|
154
|
+
a customer-token rescope via
|
|
146
155
|
`sdk.customers.refresh({ refreshToken, legalEntityId })`. Mutations that the
|
|
147
156
|
customer's role lacks scope for surface as `EmporixInsufficientScopeError`
|
|
148
157
|
(extends `EmporixForbiddenError`, carries `requiredScope`). See
|
|
@@ -162,11 +171,16 @@ the Media service directly. See [`../../docs/media.md`](../../docs/media.md).
|
|
|
162
171
|
|
|
163
172
|
## Availability
|
|
164
173
|
|
|
165
|
-
`sdk.availability`
|
|
166
|
-
|
|
167
|
-
`
|
|
174
|
+
`sdk.availability` covers site-aware product availability in both directions.
|
|
175
|
+
|
|
176
|
+
**Reads** (default `anonymous`): `get(productId, siteCode)` for one product,
|
|
177
|
+
`getMany(productIds, siteCode)` for a batch (single `POST .../search` request,
|
|
178
|
+
result in input order), and `listForSite(siteCode)`. The opt-in
|
|
168
179
|
`defaultAvailableOnNotFound` returns `{ available: true }` for products without a
|
|
169
|
-
stock record. There is no restock-date field.
|
|
180
|
+
stock record. There is no restock-date field.
|
|
181
|
+
|
|
182
|
+
**Writes** (default `service`, so server-only): `create`, `update`, `delete`, plus
|
|
183
|
+
`bulkCreate` / `bulkUpdate` / `bulkDelete`. See [`../../docs/availability.md`](../../docs/availability.md).
|
|
170
184
|
|
|
171
185
|
## Subpath exports
|
|
172
186
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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/category.d.cts
CHANGED
|
@@ -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;
|
package/dist/category.d.ts
CHANGED
|
@@ -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;
|
package/dist/companies.d.cts
CHANGED
|
@@ -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-
|
|
3
|
-
export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-
|
|
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 = {
|
package/dist/companies.d.ts
CHANGED
|
@@ -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-
|
|
3
|
-
export { A as AccountLimit, d as CustomerGroup, g as LegalInfo } from './types.gen-
|
|
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 = {
|
package/dist/contacts.d.cts
CHANGED
|
@@ -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-
|
|
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.
|
package/dist/contacts.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
1
|
+
export { g as CustomerGroupsService, j as IamGroup, c as IamGroupMemberAssignment } from './customer-groups-Cs6-Cwzg.js';
|
|
2
2
|
import './context-DK8jg6y5.js';
|
package/dist/customer.d.cts
CHANGED
|
@@ -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/customer.d.ts
CHANGED
|
@@ -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.
|