@viu/emporix-sdk 2.8.0 → 2.9.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/{chunk-5JHTZBOC.js → chunk-B4UOYJKW.js} +12 -2
  3. package/dist/chunk-B4UOYJKW.js.map +1 -0
  4. package/dist/{chunk-SCI7D74B.js → chunk-BK25FDTH.js} +17 -5
  5. package/dist/chunk-BK25FDTH.js.map +1 -0
  6. package/dist/{chunk-B56JZNI7.js → chunk-HAEVK6IS.js} +6 -3
  7. package/dist/chunk-HAEVK6IS.js.map +1 -0
  8. package/dist/{chunk-6UNFMCHZ.js → chunk-KVBCTXVH.js} +2 -2
  9. package/dist/chunk-KVBCTXVH.js.map +1 -0
  10. package/dist/{chunk-NM7VDXBR.js → chunk-LGLFJL3S.js} +6 -3
  11. package/dist/chunk-LGLFJL3S.js.map +1 -0
  12. package/dist/chunk-LGOC5XOI.js +40 -0
  13. package/dist/chunk-LGOC5XOI.js.map +1 -0
  14. package/dist/{chunk-RXVVFNYN.js → chunk-MM6JF3Z7.js} +6 -3
  15. package/dist/chunk-MM6JF3Z7.js.map +1 -0
  16. package/dist/companies.cjs +4 -1
  17. package/dist/companies.cjs.map +1 -1
  18. package/dist/companies.d.cts +7 -4
  19. package/dist/companies.d.ts +7 -4
  20. package/dist/companies.js +1 -1
  21. package/dist/contacts.cjs +4 -1
  22. package/dist/contacts.cjs.map +1 -1
  23. package/dist/contacts.d.cts +6 -4
  24. package/dist/contacts.d.ts +6 -4
  25. package/dist/contacts.js +1 -1
  26. package/dist/customer-groups.cjs +17 -0
  27. package/dist/customer-groups.cjs.map +1 -1
  28. package/dist/customer-groups.d.cts +94 -21
  29. package/dist/customer-groups.d.ts +94 -21
  30. package/dist/customer-groups.js +1 -1
  31. package/dist/index.cjs +63 -7
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +13 -5
  34. package/dist/index.d.ts +13 -5
  35. package/dist/index.js +23 -16
  36. package/dist/index.js.map +1 -1
  37. package/dist/locations.cjs +4 -1
  38. package/dist/locations.cjs.map +1 -1
  39. package/dist/locations.d.cts +7 -4
  40. package/dist/locations.d.ts +7 -4
  41. package/dist/locations.js +1 -1
  42. package/dist/orders.cjs.map +1 -1
  43. package/dist/orders.d.cts +1726 -80
  44. package/dist/orders.d.ts +1726 -80
  45. package/dist/orders.js +1 -1
  46. package/dist/price.cjs +15 -3
  47. package/dist/price.cjs.map +1 -1
  48. package/dist/price.d.cts +23 -4
  49. package/dist/price.d.ts +23 -4
  50. package/dist/price.js +1 -1
  51. package/dist/product.cjs +10 -0
  52. package/dist/product.cjs.map +1 -1
  53. package/dist/product.d.cts +10 -0
  54. package/dist/product.d.ts +10 -0
  55. package/dist/product.js +1 -1
  56. package/dist/types.gen-C_wOXYZB.d.cts +455 -0
  57. package/dist/types.gen-C_wOXYZB.d.ts +455 -0
  58. package/package.json +1 -1
  59. package/dist/chunk-5JHTZBOC.js.map +0 -1
  60. package/dist/chunk-6UNFMCHZ.js.map +0 -1
  61. package/dist/chunk-B56JZNI7.js.map +0 -1
  62. package/dist/chunk-NM7VDXBR.js.map +0 -1
  63. package/dist/chunk-RXVVFNYN.js.map +0 -1
  64. package/dist/chunk-SCI7D74B.js.map +0 -1
  65. package/dist/chunk-SKX7KCMH.js +0 -23
  66. package/dist/chunk-SKX7KCMH.js.map +0 -1
  67. package/dist/types.gen-D1QuqPLs.d.cts +0 -166
  68. package/dist/types.gen-D1QuqPLs.d.ts +0 -166
@@ -0,0 +1,455 @@
1
+ type MetadataUpdate = {
2
+ /**
3
+ * Version of the document.
4
+ */
5
+ version?: number;
6
+ /**
7
+ * Links to the mixin schemas. A map where the keys represent mixins set attributes and the values represent url to a schema for a particular set.
8
+ */
9
+ mixins?: {
10
+ [key: string]: unknown;
11
+ };
12
+ };
13
+ type Metadata = MetadataUpdate & {
14
+ /**
15
+ * Date and time when the document was created.
16
+ */
17
+ createdAt?: string;
18
+ /**
19
+ * Date and time when the document was last modified.
20
+ */
21
+ modifiedAt?: string;
22
+ };
23
+ type CustomerGroup = {
24
+ /**
25
+ * The unique identifier of the customer group.
26
+ */
27
+ id: string;
28
+ /**
29
+ * Localized name of a customer group.
30
+ */
31
+ name?: unknown;
32
+ /**
33
+ * The customer group role.
34
+ */
35
+ role?: string;
36
+ };
37
+ type ResourceId = {
38
+ /**
39
+ * Id of a resource.
40
+ */
41
+ id?: string;
42
+ };
43
+ type LegalEntity = {
44
+ /**
45
+ * The legal entity unique identifier.
46
+ */
47
+ id?: string;
48
+ /**
49
+ * The name of the legal entity.
50
+ */
51
+ name?: string;
52
+ /**
53
+ * The type of the legal entity.
54
+ */
55
+ type?: 'COMPANY' | 'SUBSIDIARY';
56
+ /**
57
+ * The id of the parent legal entity.
58
+ */
59
+ parentId?: string;
60
+ accountLimit?: AccountLimit;
61
+ legalInfo?: LegalInfo;
62
+ /**
63
+ * The list of customer groups assigned to the legal entity.
64
+ */
65
+ customerGroups?: Array<CustomerGroup>;
66
+ /**
67
+ * The list of locations assigned to the legal entity.
68
+ */
69
+ entitiesAddresses?: Array<Location>;
70
+ /**
71
+ * The list of customer assignment of the approval group of the legal entity.
72
+ */
73
+ approvalGroup?: Array<ContactAssignmentWithoutExpandedLegalEntity>;
74
+ restrictions?: Restrictions;
75
+ metadata?: Metadata;
76
+ /**
77
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
78
+ */
79
+ mixins?: {
80
+ [key: string]: unknown;
81
+ };
82
+ };
83
+ type AccountLimit = {
84
+ /**
85
+ * The account limit currency.
86
+ */
87
+ currency?: string;
88
+ /**
89
+ * The purchasing limit for account in the legal entity.
90
+ */
91
+ value?: number;
92
+ };
93
+ type LegalInfo = {
94
+ /**
95
+ * The legal name of the entity.
96
+ */
97
+ legalName?: string;
98
+ /**
99
+ * The registration date of the legal entity in the ISO 8601 format, e.g. 2020-04-30T04:00:00.000Z.
100
+ */
101
+ registrationDate?: string;
102
+ /**
103
+ * The tax registration number of the legal entity.
104
+ */
105
+ taxRegistrationNumber?: string;
106
+ /**
107
+ * The registration agency of the legal entity.
108
+ */
109
+ registrationAgency?: string;
110
+ /**
111
+ * The country in which the legal entity has been registered. The country needs to be defined and active in the Country Service.
112
+ */
113
+ countryOfRegistration?: string;
114
+ /**
115
+ * The unique identifier of the legal entity registration.
116
+ */
117
+ registrationId?: string;
118
+ };
119
+ /**
120
+ * List of restrictions which determine who can view or manage the Legal Entity.
121
+ */
122
+ type Restrictions = Array<string> | null;
123
+ type LegalEntityCreate = {
124
+ /**
125
+ * Custom legal entity identifier. If not provided, it is automatically generated.
126
+ */
127
+ id?: string;
128
+ /**
129
+ * The name of the legal entity.
130
+ */
131
+ name: string;
132
+ /**
133
+ * The type of the legal entity. Default value if not provided is: `COMPANY`
134
+ */
135
+ type?: 'COMPANY' | 'SUBSIDIARY';
136
+ /**
137
+ * The id of the parent legal entity.
138
+ */
139
+ parentId?: string;
140
+ accountLimit?: AccountLimit;
141
+ legalInfo?: LegalInfo;
142
+ /**
143
+ * The list of customer group IDs assigned to the legal entity.
144
+ */
145
+ customerGroups?: Array<CustomerGroup>;
146
+ /**
147
+ * The list of location IDs assigned to the legal entity.
148
+ */
149
+ entitiesAddresses?: Array<ResourceId>;
150
+ /**
151
+ * The list of customer assignment IDs of an approval group of the legal entity.
152
+ */
153
+ approvalGroup?: Array<ResourceId>;
154
+ restrictions?: Restrictions;
155
+ metadata?: MetadataCreate;
156
+ /**
157
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
158
+ */
159
+ mixins?: {
160
+ [key: string]: unknown;
161
+ };
162
+ };
163
+ type LegalEntityUpdate = {
164
+ /**
165
+ * The name of the legal entity.
166
+ */
167
+ name: string;
168
+ /**
169
+ * The type of the legal entity.
170
+ */
171
+ type: 'COMPANY' | 'SUBSIDIARY';
172
+ /**
173
+ * The id of the parent legal entity.
174
+ */
175
+ parentId?: string;
176
+ accountLimit?: AccountLimit;
177
+ legalInfo?: LegalInfo;
178
+ /**
179
+ * The list of customer group IDs assigned to the legal entity.
180
+ */
181
+ customerGroups?: Array<ResourceId>;
182
+ /**
183
+ * The list of location IDs assigned to the legal entity.
184
+ */
185
+ entitiesAddresses?: Array<ResourceId>;
186
+ /**
187
+ * The list of customer assignment IDs of an approval user group of the legal entity.
188
+ */
189
+ approvalGroup?: Array<ResourceId>;
190
+ restrictions?: Restrictions;
191
+ metadata?: MetadataUpdate;
192
+ /**
193
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
194
+ */
195
+ mixins?: {
196
+ [key: string]: unknown;
197
+ };
198
+ };
199
+ type Customer = {
200
+ /**
201
+ * The customer unique identifier.
202
+ */
203
+ id?: string;
204
+ /**
205
+ * The name of the customer.
206
+ */
207
+ name?: string;
208
+ /**
209
+ * The surname of the customer.
210
+ */
211
+ surname?: string;
212
+ /**
213
+ * The email of the customer.
214
+ */
215
+ email?: string;
216
+ /**
217
+ * The phone number of the customer.
218
+ */
219
+ phone?: string;
220
+ };
221
+ type ContactAssignment = {
222
+ /**
223
+ * The customer assignment unique identifier.
224
+ */
225
+ id?: string;
226
+ legalEntity?: LegalEntity;
227
+ customer?: Customer;
228
+ /**
229
+ * The type of the customer assignment.
230
+ */
231
+ type?: 'PRIMARY' | 'BILLING' | 'LOGISTICS' | 'CONTACT';
232
+ /**
233
+ * Indicates whether the customer is primary.
234
+ */
235
+ primary?: boolean;
236
+ metadata?: Metadata;
237
+ /**
238
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
239
+ */
240
+ mixins?: {
241
+ [key: string]: unknown;
242
+ };
243
+ };
244
+ type ContactAssignmentWithoutExpandedLegalEntity = {
245
+ /**
246
+ * The customer assignment unique identifier.
247
+ */
248
+ id?: string;
249
+ /**
250
+ * Assigned legal entity.
251
+ */
252
+ legalEntity?: {
253
+ /**
254
+ * The legal entity unique identifier.
255
+ */
256
+ id?: string;
257
+ };
258
+ customer?: Customer;
259
+ /**
260
+ * The type of the customer assignment.
261
+ */
262
+ type?: 'PRIMARY' | 'BILLING' | 'LOGISTICS' | 'CONTACT';
263
+ /**
264
+ * Indicates whether the customer is primary.
265
+ */
266
+ primary?: boolean;
267
+ metadata?: Metadata;
268
+ };
269
+ type ContactAssignmentCreate = {
270
+ /**
271
+ * Custom assignment identifier. If not provided, it is automatically generated.
272
+ */
273
+ id?: string;
274
+ /**
275
+ * The legal entity unique identifier.
276
+ */
277
+ legalEntity: {
278
+ /**
279
+ * The unique identifier of the legal entity.
280
+ */
281
+ id: string;
282
+ };
283
+ /**
284
+ * The customer unique identifier.
285
+ */
286
+ customer: {
287
+ /**
288
+ * The unique identifier of the customer.
289
+ */
290
+ id: string;
291
+ };
292
+ /**
293
+ * The type of the customer assignment. If not provided, it is set to `Contact` by default.
294
+ */
295
+ type?: 'PRIMARY' | 'BILLING' | 'LOGISTICS' | 'CONTACT';
296
+ /**
297
+ * Indicates whether the customer is primary.
298
+ */
299
+ primary?: boolean;
300
+ metadata?: MetadataCreate;
301
+ /**
302
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
303
+ */
304
+ mixins?: {
305
+ [key: string]: unknown;
306
+ };
307
+ };
308
+ type ContactAssignmentUpdate = {
309
+ /**
310
+ * The legal entity unique identifier.
311
+ */
312
+ legalEntity: {
313
+ /**
314
+ * The unique identifier of the legal entity.
315
+ */
316
+ id: string;
317
+ };
318
+ /**
319
+ * The customer unique identifier.
320
+ */
321
+ customer: {
322
+ /**
323
+ * The unique identifier of the customer.
324
+ */
325
+ id: string;
326
+ };
327
+ /**
328
+ * The type of the customer assignment.
329
+ */
330
+ type: 'PRIMARY' | 'BILLING' | 'LOGISTICS' | 'CONTACT';
331
+ /**
332
+ * Indicates whether the customer is primary.
333
+ */
334
+ primary?: boolean;
335
+ metadata?: MetadataUpdate;
336
+ /**
337
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
338
+ */
339
+ mixins?: {
340
+ [key: string]: unknown;
341
+ };
342
+ };
343
+ type Location = {
344
+ /**
345
+ * The location unique identifier.
346
+ */
347
+ id?: string;
348
+ /**
349
+ * The name of the location
350
+ */
351
+ name?: string;
352
+ /**
353
+ * The type of the location.
354
+ */
355
+ type?: 'HEADQUARTER' | 'WAREHOUSE' | 'OFFICE';
356
+ contactDetails?: ContactDetails;
357
+ metadata?: Metadata;
358
+ /**
359
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
360
+ */
361
+ mixins?: {
362
+ [key: string]: unknown;
363
+ };
364
+ };
365
+ type LocationCreate = {
366
+ /**
367
+ * Custom location identifier. If not provided, it is automatically generated.
368
+ */
369
+ id?: string;
370
+ /**
371
+ * The name of the location,
372
+ */
373
+ name?: string;
374
+ /**
375
+ * The type of the location.
376
+ */
377
+ type: 'HEADQUARTER' | 'WAREHOUSE' | 'OFFICE';
378
+ contactDetails: ContactDetails;
379
+ metadata?: MetadataCreate;
380
+ /**
381
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
382
+ */
383
+ mixins?: {
384
+ [key: string]: unknown;
385
+ };
386
+ };
387
+ type LocationUpdate = {
388
+ /**
389
+ * The name of the location
390
+ */
391
+ name?: string;
392
+ /**
393
+ * The type of the location.
394
+ */
395
+ type: 'HEADQUARTER' | 'WAREHOUSE' | 'OFFICE';
396
+ contactDetails: ContactDetails;
397
+ metadata?: MetadataUpdate;
398
+ /**
399
+ * Mixins request. A map where a key represent mixins set name and a value represent a map with key-value pairs.
400
+ */
401
+ mixins?: {
402
+ [key: string]: unknown;
403
+ };
404
+ };
405
+ type ContactDetails = {
406
+ /**
407
+ * The list of contact emails.
408
+ */
409
+ emails?: Array<string>;
410
+ /**
411
+ * The list of contact phone numbers.
412
+ */
413
+ phones?: Array<string>;
414
+ /**
415
+ * The first address line of the contact.
416
+ */
417
+ addressLine1?: string;
418
+ /**
419
+ * The second address line of the contact.
420
+ */
421
+ addressLine2?: string;
422
+ /**
423
+ * The city of the contact.
424
+ */
425
+ city?: string;
426
+ /**
427
+ * The state of the contact.
428
+ */
429
+ state?: string;
430
+ /**
431
+ * The post code of the contact.
432
+ */
433
+ postcode?: string;
434
+ /**
435
+ * The country code of the contact.
436
+ */
437
+ countryCode?: string;
438
+ /**
439
+ * Allows to tag the location.
440
+ */
441
+ tags?: Array<string>;
442
+ };
443
+ /**
444
+ * Metadata request.
445
+ */
446
+ type MetadataCreate = {
447
+ /**
448
+ * Links to the mixin schemas. A map where the keys represent mixins set attributes and the values represent url to a schema for a particular set.
449
+ */
450
+ mixins?: {
451
+ [key: string]: unknown;
452
+ };
453
+ };
454
+
455
+ export type { AccountLimit as A, ContactAssignment as C, LegalEntity as L, ContactAssignmentCreate as a, ContactAssignmentUpdate as b, ContactDetails as c, CustomerGroup as d, LegalEntityCreate as e, LegalEntityUpdate as f, LegalInfo as g, Location as h, LocationCreate as i, LocationUpdate as j };