@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 +24 -0
- 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 +504 -18
- package/dist/index.d.ts +504 -18
- 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 +118 -6
- package/dist/orders.d.ts +118 -6
- 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
|
@@ -20,6 +20,9 @@ type Metadata = MetadataUpdate & {
|
|
|
20
20
|
*/
|
|
21
21
|
modifiedAt?: string;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Customer group
|
|
25
|
+
*/
|
|
23
26
|
type CustomerGroup = {
|
|
24
27
|
/**
|
|
25
28
|
* The unique identifier of the customer group.
|
|
@@ -34,12 +37,18 @@ type CustomerGroup = {
|
|
|
34
37
|
*/
|
|
35
38
|
role?: string;
|
|
36
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Resource
|
|
42
|
+
*/
|
|
37
43
|
type ResourceId = {
|
|
38
44
|
/**
|
|
39
45
|
* Id of a resource.
|
|
40
46
|
*/
|
|
41
47
|
id?: string;
|
|
42
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Legal Entity
|
|
51
|
+
*/
|
|
43
52
|
type LegalEntity = {
|
|
44
53
|
/**
|
|
45
54
|
* The legal entity unique identifier.
|
|
@@ -80,6 +89,9 @@ type LegalEntity = {
|
|
|
80
89
|
[key: string]: unknown;
|
|
81
90
|
};
|
|
82
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Account Limit additional information
|
|
94
|
+
*/
|
|
83
95
|
type AccountLimit = {
|
|
84
96
|
/**
|
|
85
97
|
* The account limit currency.
|
|
@@ -90,6 +102,9 @@ type AccountLimit = {
|
|
|
90
102
|
*/
|
|
91
103
|
value?: number;
|
|
92
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Legal Entity additional information
|
|
107
|
+
*/
|
|
93
108
|
type LegalInfo = {
|
|
94
109
|
/**
|
|
95
110
|
* The legal name of the entity.
|
|
@@ -117,9 +132,14 @@ type LegalInfo = {
|
|
|
117
132
|
registrationId?: string;
|
|
118
133
|
};
|
|
119
134
|
/**
|
|
135
|
+
* Restriction
|
|
136
|
+
*
|
|
120
137
|
* List of restrictions which determine who can view or manage the Legal Entity.
|
|
121
138
|
*/
|
|
122
139
|
type Restrictions = Array<string> | null;
|
|
140
|
+
/**
|
|
141
|
+
* Legal Entity create payload
|
|
142
|
+
*/
|
|
123
143
|
type LegalEntityCreate = {
|
|
124
144
|
/**
|
|
125
145
|
* Custom legal entity identifier. If not provided, it is automatically generated.
|
|
@@ -160,6 +180,9 @@ type LegalEntityCreate = {
|
|
|
160
180
|
[key: string]: unknown;
|
|
161
181
|
};
|
|
162
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Legal Entity update payload
|
|
185
|
+
*/
|
|
163
186
|
type LegalEntityUpdate = {
|
|
164
187
|
/**
|
|
165
188
|
* The name of the legal entity.
|
|
@@ -196,6 +219,9 @@ type LegalEntityUpdate = {
|
|
|
196
219
|
[key: string]: unknown;
|
|
197
220
|
};
|
|
198
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Customer
|
|
224
|
+
*/
|
|
199
225
|
type Customer = {
|
|
200
226
|
/**
|
|
201
227
|
* The customer unique identifier.
|
|
@@ -218,6 +244,9 @@ type Customer = {
|
|
|
218
244
|
*/
|
|
219
245
|
phone?: string;
|
|
220
246
|
};
|
|
247
|
+
/**
|
|
248
|
+
* Contact Assignment
|
|
249
|
+
*/
|
|
221
250
|
type ContactAssignment = {
|
|
222
251
|
/**
|
|
223
252
|
* The customer assignment unique identifier.
|
|
@@ -241,6 +270,9 @@ type ContactAssignment = {
|
|
|
241
270
|
[key: string]: unknown;
|
|
242
271
|
};
|
|
243
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Contact Assignment
|
|
275
|
+
*/
|
|
244
276
|
type ContactAssignmentWithoutExpandedLegalEntity = {
|
|
245
277
|
/**
|
|
246
278
|
* The customer assignment unique identifier.
|
|
@@ -266,6 +298,9 @@ type ContactAssignmentWithoutExpandedLegalEntity = {
|
|
|
266
298
|
primary?: boolean;
|
|
267
299
|
metadata?: Metadata;
|
|
268
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* Contact Assignment create payload
|
|
303
|
+
*/
|
|
269
304
|
type ContactAssignmentCreate = {
|
|
270
305
|
/**
|
|
271
306
|
* Custom assignment identifier. If not provided, it is automatically generated.
|
|
@@ -305,6 +340,9 @@ type ContactAssignmentCreate = {
|
|
|
305
340
|
[key: string]: unknown;
|
|
306
341
|
};
|
|
307
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* Contact Assignment update payload
|
|
345
|
+
*/
|
|
308
346
|
type ContactAssignmentUpdate = {
|
|
309
347
|
/**
|
|
310
348
|
* The legal entity unique identifier.
|
|
@@ -340,6 +378,9 @@ type ContactAssignmentUpdate = {
|
|
|
340
378
|
[key: string]: unknown;
|
|
341
379
|
};
|
|
342
380
|
};
|
|
381
|
+
/**
|
|
382
|
+
* Location
|
|
383
|
+
*/
|
|
343
384
|
type Location = {
|
|
344
385
|
/**
|
|
345
386
|
* The location unique identifier.
|
|
@@ -362,6 +403,9 @@ type Location = {
|
|
|
362
403
|
[key: string]: unknown;
|
|
363
404
|
};
|
|
364
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* Location create payload
|
|
408
|
+
*/
|
|
365
409
|
type LocationCreate = {
|
|
366
410
|
/**
|
|
367
411
|
* Custom location identifier. If not provided, it is automatically generated.
|
|
@@ -384,6 +428,9 @@ type LocationCreate = {
|
|
|
384
428
|
[key: string]: unknown;
|
|
385
429
|
};
|
|
386
430
|
};
|
|
431
|
+
/**
|
|
432
|
+
* Location update payload
|
|
433
|
+
*/
|
|
387
434
|
type LocationUpdate = {
|
|
388
435
|
/**
|
|
389
436
|
* The name of the location
|
|
@@ -402,6 +449,9 @@ type LocationUpdate = {
|
|
|
402
449
|
[key: string]: unknown;
|
|
403
450
|
};
|
|
404
451
|
};
|
|
452
|
+
/**
|
|
453
|
+
* Contact Details
|
|
454
|
+
*/
|
|
405
455
|
type ContactDetails = {
|
|
406
456
|
/**
|
|
407
457
|
* The list of contact emails.
|
|
@@ -441,6 +491,8 @@ type ContactDetails = {
|
|
|
441
491
|
tags?: Array<string>;
|
|
442
492
|
};
|
|
443
493
|
/**
|
|
494
|
+
* metadata_create
|
|
495
|
+
*
|
|
444
496
|
* Metadata request.
|
|
445
497
|
*/
|
|
446
498
|
type MetadataCreate = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viu/emporix-sdk",
|
|
3
|
-
"version": "2.36.
|
|
3
|
+
"version": "2.36.1",
|
|
4
4
|
"description": "TypeScript SDK for the Emporix Commerce Engine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -122,18 +122,18 @@
|
|
|
122
122
|
"provenance": true
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@hey-api/openapi-ts": "^0.
|
|
125
|
+
"@hey-api/openapi-ts": "^0.97.3",
|
|
126
126
|
"@types/node": "^24.0.0",
|
|
127
|
-
"tsx": "^4.19.0",
|
|
128
127
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
129
128
|
"@typescript-eslint/parser": "^8.0.0",
|
|
130
|
-
"@vitest/coverage-v8": "^2.
|
|
129
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
131
130
|
"eslint": "^9.0.0",
|
|
132
131
|
"msw": "^2.4.0",
|
|
133
132
|
"prettier": "^3.3.0",
|
|
134
133
|
"tsup": "^8.2.0",
|
|
134
|
+
"tsx": "^4.19.0",
|
|
135
135
|
"typescript": "^5.6.0",
|
|
136
|
-
"vitest": "^2.
|
|
136
|
+
"vitest": "^3.2.7"
|
|
137
137
|
},
|
|
138
138
|
"scripts": {
|
|
139
139
|
"build": "tsup",
|