controlresell 2.7.1 → 2.7.7

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/package.json +6 -5
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +10 -0
  3. package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
  4. package/src/com/controlresell/models/filters/SavedFilters.js +2 -2
  5. package/src/com/controlresell/models/filters/SavedFilters.js.map +1 -1
  6. package/src/com/controlresell/models/filters/SavedFilters.ts +2 -2
  7. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +10 -0
  8. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
  9. package/src/com/controlresell/models/filters/SavedFiltersPayload.js +2 -2
  10. package/src/com/controlresell/models/filters/SavedFiltersPayload.js.map +1 -1
  11. package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +2 -2
  12. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
  13. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts.map +1 -1
  14. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +2 -0
  15. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js.map +1 -1
  16. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +2 -0
  17. package/src/com/controlresell/models/platforms/orders/Order.d.ts +130 -0
  18. package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
  19. package/src/com/controlresell/models/platforms/orders/Order.js +5 -1
  20. package/src/com/controlresell/models/platforms/orders/Order.js.map +1 -1
  21. package/src/com/controlresell/models/platforms/orders/Order.ts +5 -1
  22. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +19 -0
  23. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts.map +1 -0
  24. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js +14 -0
  25. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js.map +1 -0
  26. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.ts +12 -0
  27. package/src/com/controlresell/models/platforms/orders/OrderType.d.ts +4 -0
  28. package/src/com/controlresell/models/platforms/orders/OrderType.d.ts.map +1 -0
  29. package/src/com/controlresell/models/platforms/orders/OrderType.js +8 -0
  30. package/src/com/controlresell/models/platforms/orders/OrderType.js.map +1 -0
  31. package/src/com/controlresell/models/platforms/orders/OrderType.ts +6 -0
  32. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2327 -0
  33. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -0
  34. package/src/com/controlresell/models/platforms/orders/UserOrders.js +13 -0
  35. package/src/com/controlresell/models/platforms/orders/UserOrders.js.map +1 -0
  36. package/src/com/controlresell/models/platforms/orders/UserOrders.ts +11 -0
  37. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +179 -0
  38. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  39. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts +22 -0
  40. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts.map +1 -0
  41. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js +12 -0
  42. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js.map +1 -0
  43. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.ts +10 -0
  44. package/src/com/controlresell/models/platforms/pickups/{PickupPointInConversation.d.ts → PickupPointInOrder.d.ts} +15 -6
  45. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.d.ts.map +1 -0
  46. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js +15 -0
  47. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js.map +1 -0
  48. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.ts +13 -0
  49. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +24 -24
  50. package/src/index.d.ts +5 -3
  51. package/src/index.d.ts.map +1 -1
  52. package/src/index.js +12 -8
  53. package/src/index.js.map +1 -1
  54. package/src/index.ts +5 -3
  55. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +0 -16
  56. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts.map +0 -1
  57. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +0 -11
  58. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js.map +0 -1
  59. package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +0 -9
  60. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts +0 -13
  61. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts.map +0 -1
  62. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js +0 -9
  63. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js.map +0 -1
  64. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.ts +0 -7
  65. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.d.ts.map +0 -1
  66. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js +0 -12
  67. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js.map +0 -1
  68. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.ts +0 -10
@@ -0,0 +1,2327 @@
1
+ import { z } from "zod";
2
+ export declare const UserOrdersSchema: z.ZodObject<{
3
+ count: z.ZodNumber;
4
+ allOrdersCount: z.ZodNumber;
5
+ rows: z.ZodArray<z.ZodObject<{
6
+ order: z.ZodObject<{
7
+ id: z.ZodString;
8
+ accountId: z.ZodString;
9
+ platformOrderId: z.ZodString;
10
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
11
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ price: z.ZodNumber;
14
+ type: z.ZodEnum<["PURCHASE", "SALE"]>;
15
+ date: z.ZodDate;
16
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ itemOnPlatformId: z.ZodString;
18
+ orderId: z.ZodString;
19
+ itemOnPlatform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodString;
21
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
22
+ accountId: z.ZodString;
23
+ platformId: z.ZodString;
24
+ platformUrl: z.ZodString;
25
+ platformPrice: z.ZodNumber;
26
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
27
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
29
+ accountId: z.ZodString;
30
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
31
+ name: z.ZodString;
32
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
34
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
+ startsAt: z.ZodDate;
36
+ endsAt: z.ZodDate;
37
+ }, "strip", z.ZodTypeAny, {
38
+ startsAt: Date;
39
+ endsAt: Date;
40
+ }, {
41
+ startsAt: Date;
42
+ endsAt: Date;
43
+ }>>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
46
+ userId: string | number;
47
+ name: string;
48
+ platform: "VINTED" | "SHOPIFY";
49
+ accountId: string;
50
+ night?: {
51
+ startsAt: Date;
52
+ endsAt: Date;
53
+ } | null | undefined;
54
+ locale?: string | null | undefined;
55
+ }, {
56
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
57
+ userId: string | number;
58
+ name: string;
59
+ platform: "VINTED" | "SHOPIFY";
60
+ accountId: string;
61
+ night?: {
62
+ startsAt: Date;
63
+ endsAt: Date;
64
+ } | null | undefined;
65
+ locale?: string | null | undefined;
66
+ }>>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
69
+ id: string;
70
+ itemId: string | number;
71
+ accountId: string;
72
+ platformId: string;
73
+ platformUrl: string;
74
+ platformPrice: number;
75
+ account?: {
76
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
77
+ userId: string | number;
78
+ name: string;
79
+ platform: "VINTED" | "SHOPIFY";
80
+ accountId: string;
81
+ night?: {
82
+ startsAt: Date;
83
+ endsAt: Date;
84
+ } | null | undefined;
85
+ locale?: string | null | undefined;
86
+ } | null | undefined;
87
+ }, {
88
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
89
+ id: string;
90
+ itemId: string | number;
91
+ accountId: string;
92
+ platformId: string;
93
+ platformUrl: string;
94
+ platformPrice: number;
95
+ account?: {
96
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
97
+ userId: string | number;
98
+ name: string;
99
+ platform: "VINTED" | "SHOPIFY";
100
+ accountId: string;
101
+ night?: {
102
+ startsAt: Date;
103
+ endsAt: Date;
104
+ } | null | undefined;
105
+ locale?: string | null | undefined;
106
+ } | null | undefined;
107
+ }>>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ orderId: string;
110
+ itemOnPlatformId: string;
111
+ itemOnPlatform?: {
112
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
113
+ id: string;
114
+ itemId: string | number;
115
+ accountId: string;
116
+ platformId: string;
117
+ platformUrl: string;
118
+ platformPrice: number;
119
+ account?: {
120
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
121
+ userId: string | number;
122
+ name: string;
123
+ platform: "VINTED" | "SHOPIFY";
124
+ accountId: string;
125
+ night?: {
126
+ startsAt: Date;
127
+ endsAt: Date;
128
+ } | null | undefined;
129
+ locale?: string | null | undefined;
130
+ } | null | undefined;
131
+ } | null | undefined;
132
+ }, {
133
+ orderId: string;
134
+ itemOnPlatformId: string;
135
+ itemOnPlatform?: {
136
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
137
+ id: string;
138
+ itemId: string | number;
139
+ accountId: string;
140
+ platformId: string;
141
+ platformUrl: string;
142
+ platformPrice: number;
143
+ account?: {
144
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
145
+ userId: string | number;
146
+ name: string;
147
+ platform: "VINTED" | "SHOPIFY";
148
+ accountId: string;
149
+ night?: {
150
+ startsAt: Date;
151
+ endsAt: Date;
152
+ } | null | undefined;
153
+ locale?: string | null | undefined;
154
+ } | null | undefined;
155
+ } | null | undefined;
156
+ }>, "many">>>;
157
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ orderId: z.ZodString;
160
+ fileId: z.ZodString;
161
+ nonCroppedFileId: z.ZodString;
162
+ originalFileId: z.ZodString;
163
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
164
+ id: z.ZodString;
165
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
166
+ path: z.ZodString;
167
+ signedUrl: z.ZodString;
168
+ createdAt: z.ZodDate;
169
+ }, "strip", z.ZodTypeAny, {
170
+ path: string;
171
+ id: string;
172
+ userId: string | number;
173
+ signedUrl: string;
174
+ createdAt: Date;
175
+ }, {
176
+ path: string;
177
+ id: string;
178
+ userId: string | number;
179
+ signedUrl: string;
180
+ createdAt: Date;
181
+ }>>>;
182
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
183
+ id: z.ZodString;
184
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
185
+ path: z.ZodString;
186
+ signedUrl: z.ZodString;
187
+ createdAt: z.ZodDate;
188
+ }, "strip", z.ZodTypeAny, {
189
+ path: string;
190
+ id: string;
191
+ userId: string | number;
192
+ signedUrl: string;
193
+ createdAt: Date;
194
+ }, {
195
+ path: string;
196
+ id: string;
197
+ userId: string | number;
198
+ signedUrl: string;
199
+ createdAt: Date;
200
+ }>>>;
201
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
202
+ id: z.ZodString;
203
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
204
+ path: z.ZodString;
205
+ signedUrl: z.ZodString;
206
+ createdAt: z.ZodDate;
207
+ }, "strip", z.ZodTypeAny, {
208
+ path: string;
209
+ id: string;
210
+ userId: string | number;
211
+ signedUrl: string;
212
+ createdAt: Date;
213
+ }, {
214
+ path: string;
215
+ id: string;
216
+ userId: string | number;
217
+ signedUrl: string;
218
+ createdAt: Date;
219
+ }>>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ fileId: string;
223
+ orderId: string;
224
+ nonCroppedFileId: string;
225
+ originalFileId: string;
226
+ file?: {
227
+ path: string;
228
+ id: string;
229
+ userId: string | number;
230
+ signedUrl: string;
231
+ createdAt: Date;
232
+ } | null | undefined;
233
+ originalFile?: {
234
+ path: string;
235
+ id: string;
236
+ userId: string | number;
237
+ signedUrl: string;
238
+ createdAt: Date;
239
+ } | null | undefined;
240
+ nonCroppedFile?: {
241
+ path: string;
242
+ id: string;
243
+ userId: string | number;
244
+ signedUrl: string;
245
+ createdAt: Date;
246
+ } | null | undefined;
247
+ }, {
248
+ id: string;
249
+ fileId: string;
250
+ orderId: string;
251
+ nonCroppedFileId: string;
252
+ originalFileId: string;
253
+ file?: {
254
+ path: string;
255
+ id: string;
256
+ userId: string | number;
257
+ signedUrl: string;
258
+ createdAt: Date;
259
+ } | null | undefined;
260
+ originalFile?: {
261
+ path: string;
262
+ id: string;
263
+ userId: string | number;
264
+ signedUrl: string;
265
+ createdAt: Date;
266
+ } | null | undefined;
267
+ nonCroppedFile?: {
268
+ path: string;
269
+ id: string;
270
+ userId: string | number;
271
+ signedUrl: string;
272
+ createdAt: Date;
273
+ } | null | undefined;
274
+ }>, "many">>>;
275
+ pickupPoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
276
+ pickupPointId: z.ZodString;
277
+ orderId: z.ZodString;
278
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ isQrcode: z.ZodBoolean;
280
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ availableUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
282
+ pickupPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
283
+ id: z.ZodString;
284
+ accountId: z.ZodString;
285
+ platformPickupPointId: z.ZodString;
286
+ name: z.ZodString;
287
+ addressLine1: z.ZodString;
288
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ postalCode: z.ZodString;
290
+ city: z.ZodString;
291
+ countryCode: z.ZodString;
292
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
293
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ id: string;
296
+ name: string;
297
+ accountId: string;
298
+ postalCode: string;
299
+ city: string;
300
+ countryCode: string;
301
+ addressLine1: string;
302
+ platformPickupPointId: string;
303
+ addressLine2?: string | null | undefined;
304
+ latitude?: number | null | undefined;
305
+ longitude?: number | null | undefined;
306
+ }, {
307
+ id: string;
308
+ name: string;
309
+ accountId: string;
310
+ postalCode: string;
311
+ city: string;
312
+ countryCode: string;
313
+ addressLine1: string;
314
+ platformPickupPointId: string;
315
+ addressLine2?: string | null | undefined;
316
+ latitude?: number | null | undefined;
317
+ longitude?: number | null | undefined;
318
+ }>>>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ orderId: string;
321
+ pickupPointId: string;
322
+ isQrcode: boolean;
323
+ code?: string | null | undefined;
324
+ trackingLink?: string | null | undefined;
325
+ availableUntil?: Date | null | undefined;
326
+ pickupPoint?: {
327
+ id: string;
328
+ name: string;
329
+ accountId: string;
330
+ postalCode: string;
331
+ city: string;
332
+ countryCode: string;
333
+ addressLine1: string;
334
+ platformPickupPointId: string;
335
+ addressLine2?: string | null | undefined;
336
+ latitude?: number | null | undefined;
337
+ longitude?: number | null | undefined;
338
+ } | null | undefined;
339
+ }, {
340
+ orderId: string;
341
+ pickupPointId: string;
342
+ isQrcode: boolean;
343
+ code?: string | null | undefined;
344
+ trackingLink?: string | null | undefined;
345
+ availableUntil?: Date | null | undefined;
346
+ pickupPoint?: {
347
+ id: string;
348
+ name: string;
349
+ accountId: string;
350
+ postalCode: string;
351
+ city: string;
352
+ countryCode: string;
353
+ addressLine1: string;
354
+ platformPickupPointId: string;
355
+ addressLine2?: string | null | undefined;
356
+ latitude?: number | null | undefined;
357
+ longitude?: number | null | undefined;
358
+ } | null | undefined;
359
+ }>, "many">>>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: "PURCHASE" | "SALE";
362
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
363
+ id: string;
364
+ date: Date;
365
+ price: number;
366
+ accountId: string;
367
+ platformOrderId: string;
368
+ items?: {
369
+ orderId: string;
370
+ itemOnPlatformId: string;
371
+ itemOnPlatform?: {
372
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
373
+ id: string;
374
+ itemId: string | number;
375
+ accountId: string;
376
+ platformId: string;
377
+ platformUrl: string;
378
+ platformPrice: number;
379
+ account?: {
380
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
381
+ userId: string | number;
382
+ name: string;
383
+ platform: "VINTED" | "SHOPIFY";
384
+ accountId: string;
385
+ night?: {
386
+ startsAt: Date;
387
+ endsAt: Date;
388
+ } | null | undefined;
389
+ locale?: string | null | undefined;
390
+ } | null | undefined;
391
+ } | null | undefined;
392
+ }[] | null | undefined;
393
+ conversationId?: string | null | undefined;
394
+ transactionId?: string | null | undefined;
395
+ labels?: {
396
+ id: string;
397
+ fileId: string;
398
+ orderId: string;
399
+ nonCroppedFileId: string;
400
+ originalFileId: string;
401
+ file?: {
402
+ path: string;
403
+ id: string;
404
+ userId: string | number;
405
+ signedUrl: string;
406
+ createdAt: Date;
407
+ } | null | undefined;
408
+ originalFile?: {
409
+ path: string;
410
+ id: string;
411
+ userId: string | number;
412
+ signedUrl: string;
413
+ createdAt: Date;
414
+ } | null | undefined;
415
+ nonCroppedFile?: {
416
+ path: string;
417
+ id: string;
418
+ userId: string | number;
419
+ signedUrl: string;
420
+ createdAt: Date;
421
+ } | null | undefined;
422
+ }[] | null | undefined;
423
+ pickupPoints?: {
424
+ orderId: string;
425
+ pickupPointId: string;
426
+ isQrcode: boolean;
427
+ code?: string | null | undefined;
428
+ trackingLink?: string | null | undefined;
429
+ availableUntil?: Date | null | undefined;
430
+ pickupPoint?: {
431
+ id: string;
432
+ name: string;
433
+ accountId: string;
434
+ postalCode: string;
435
+ city: string;
436
+ countryCode: string;
437
+ addressLine1: string;
438
+ platformPickupPointId: string;
439
+ addressLine2?: string | null | undefined;
440
+ latitude?: number | null | undefined;
441
+ longitude?: number | null | undefined;
442
+ } | null | undefined;
443
+ }[] | null | undefined;
444
+ }, {
445
+ type: "PURCHASE" | "SALE";
446
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
447
+ id: string;
448
+ date: Date;
449
+ price: number;
450
+ accountId: string;
451
+ platformOrderId: string;
452
+ items?: {
453
+ orderId: string;
454
+ itemOnPlatformId: string;
455
+ itemOnPlatform?: {
456
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
457
+ id: string;
458
+ itemId: string | number;
459
+ accountId: string;
460
+ platformId: string;
461
+ platformUrl: string;
462
+ platformPrice: number;
463
+ account?: {
464
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
465
+ userId: string | number;
466
+ name: string;
467
+ platform: "VINTED" | "SHOPIFY";
468
+ accountId: string;
469
+ night?: {
470
+ startsAt: Date;
471
+ endsAt: Date;
472
+ } | null | undefined;
473
+ locale?: string | null | undefined;
474
+ } | null | undefined;
475
+ } | null | undefined;
476
+ }[] | null | undefined;
477
+ conversationId?: string | null | undefined;
478
+ transactionId?: string | null | undefined;
479
+ labels?: {
480
+ id: string;
481
+ fileId: string;
482
+ orderId: string;
483
+ nonCroppedFileId: string;
484
+ originalFileId: string;
485
+ file?: {
486
+ path: string;
487
+ id: string;
488
+ userId: string | number;
489
+ signedUrl: string;
490
+ createdAt: Date;
491
+ } | null | undefined;
492
+ originalFile?: {
493
+ path: string;
494
+ id: string;
495
+ userId: string | number;
496
+ signedUrl: string;
497
+ createdAt: Date;
498
+ } | null | undefined;
499
+ nonCroppedFile?: {
500
+ path: string;
501
+ id: string;
502
+ userId: string | number;
503
+ signedUrl: string;
504
+ createdAt: Date;
505
+ } | null | undefined;
506
+ }[] | null | undefined;
507
+ pickupPoints?: {
508
+ orderId: string;
509
+ pickupPointId: string;
510
+ isQrcode: boolean;
511
+ code?: string | null | undefined;
512
+ trackingLink?: string | null | undefined;
513
+ availableUntil?: Date | null | undefined;
514
+ pickupPoint?: {
515
+ id: string;
516
+ name: string;
517
+ accountId: string;
518
+ postalCode: string;
519
+ city: string;
520
+ countryCode: string;
521
+ addressLine1: string;
522
+ platformPickupPointId: string;
523
+ addressLine2?: string | null | undefined;
524
+ latitude?: number | null | undefined;
525
+ longitude?: number | null | undefined;
526
+ } | null | undefined;
527
+ }[] | null | undefined;
528
+ }>;
529
+ items: z.ZodArray<z.ZodObject<{
530
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
531
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
532
+ name: z.ZodString;
533
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
535
+ fileId: z.ZodString;
536
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
537
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
538
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
539
+ id: z.ZodString;
540
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
541
+ path: z.ZodString;
542
+ signedUrl: z.ZodString;
543
+ createdAt: z.ZodDate;
544
+ }, "strip", z.ZodTypeAny, {
545
+ path: string;
546
+ id: string;
547
+ userId: string | number;
548
+ signedUrl: string;
549
+ createdAt: Date;
550
+ }, {
551
+ path: string;
552
+ id: string;
553
+ userId: string | number;
554
+ signedUrl: string;
555
+ createdAt: Date;
556
+ }>>>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ fileId: string;
559
+ itemId: string | number;
560
+ file?: {
561
+ path: string;
562
+ id: string;
563
+ userId: string | number;
564
+ signedUrl: string;
565
+ createdAt: Date;
566
+ } | null | undefined;
567
+ index?: number | null | undefined;
568
+ }, {
569
+ fileId: string;
570
+ itemId: string | number;
571
+ file?: {
572
+ path: string;
573
+ id: string;
574
+ userId: string | number;
575
+ signedUrl: string;
576
+ createdAt: Date;
577
+ } | null | undefined;
578
+ index?: number | null | undefined;
579
+ }>, "many">>>;
580
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
581
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
582
+ sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
+ state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
584
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
585
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
586
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
587
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
588
+ sold: z.ZodBoolean;
589
+ purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
590
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
591
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
592
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
593
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
594
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
595
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
596
+ type: z.ZodString;
597
+ value: z.ZodNumber;
598
+ name: z.ZodString;
599
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
601
+ startDate: z.ZodDate;
602
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
603
+ active: z.ZodBoolean;
604
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
605
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
606
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
607
+ createdAt: z.ZodDate;
608
+ updatedAt: z.ZodDate;
609
+ }, "strip", z.ZodTypeAny, {
610
+ value: number;
611
+ type: string;
612
+ id: string | number;
613
+ userId: string | number;
614
+ createdAt: Date;
615
+ name: string;
616
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
617
+ startDate: Date;
618
+ active: boolean;
619
+ updatedAt: Date;
620
+ description?: string | null | undefined;
621
+ endDate?: Date | null | undefined;
622
+ itemId?: string | number | null | undefined;
623
+ parentFeeId?: string | number | null | undefined;
624
+ }, {
625
+ value: number;
626
+ type: string;
627
+ id: string | number;
628
+ userId: string | number;
629
+ createdAt: Date;
630
+ name: string;
631
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
632
+ startDate: Date;
633
+ active: boolean;
634
+ updatedAt: Date;
635
+ description?: string | null | undefined;
636
+ endDate?: Date | null | undefined;
637
+ itemId?: string | number | null | undefined;
638
+ parentFeeId?: string | number | null | undefined;
639
+ }>, "many">>>;
640
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
641
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
642
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
643
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
644
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
645
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
646
+ name: z.ZodString;
647
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
648
+ isUserLabel: z.ZodBoolean;
649
+ createdAt: z.ZodDate;
650
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ id: string | number;
653
+ createdAt: Date;
654
+ name: string;
655
+ isUserLabel: boolean;
656
+ userId?: string | number | null | undefined;
657
+ itemCount?: number | null | undefined;
658
+ }, {
659
+ id: string | number;
660
+ createdAt: Date;
661
+ name: string;
662
+ isUserLabel: boolean;
663
+ userId?: string | number | null | undefined;
664
+ itemCount?: number | null | undefined;
665
+ }>>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ itemId: string | number;
668
+ labelId: string | number;
669
+ label?: {
670
+ id: string | number;
671
+ createdAt: Date;
672
+ name: string;
673
+ isUserLabel: boolean;
674
+ userId?: string | number | null | undefined;
675
+ itemCount?: number | null | undefined;
676
+ } | null | undefined;
677
+ }, {
678
+ itemId: string | number;
679
+ labelId: string | number;
680
+ label?: {
681
+ id: string | number;
682
+ createdAt: Date;
683
+ name: string;
684
+ isUserLabel: boolean;
685
+ userId?: string | number | null | undefined;
686
+ itemCount?: number | null | undefined;
687
+ } | null | undefined;
688
+ }>, "many">>>;
689
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
690
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
691
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
692
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
693
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
694
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
695
+ firstName: z.ZodString;
696
+ lastName: z.ZodString;
697
+ birthDate: z.ZodDate;
698
+ email: z.ZodString;
699
+ idNumber: z.ZodString;
700
+ phone: z.ZodString;
701
+ iban: z.ZodString;
702
+ bic: z.ZodString;
703
+ phoneVerified: z.ZodBoolean;
704
+ }, "strip", z.ZodTypeAny, {
705
+ email: string;
706
+ id: string | number;
707
+ userId: string | number;
708
+ firstName: string;
709
+ lastName: string;
710
+ birthDate: Date;
711
+ idNumber: string;
712
+ phone: string;
713
+ iban: string;
714
+ bic: string;
715
+ phoneVerified: boolean;
716
+ }, {
717
+ email: string;
718
+ id: string | number;
719
+ userId: string | number;
720
+ firstName: string;
721
+ lastName: string;
722
+ birthDate: Date;
723
+ idNumber: string;
724
+ phone: string;
725
+ iban: string;
726
+ bic: string;
727
+ phoneVerified: boolean;
728
+ }>>>;
729
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
730
+ customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
731
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
732
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
734
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
735
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
736
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
737
+ value: z.ZodString;
738
+ }, "strip", z.ZodTypeAny, {
739
+ value: string;
740
+ itemId: string | number;
741
+ fieldId: string | number;
742
+ }, {
743
+ value: string;
744
+ itemId: string | number;
745
+ fieldId: string | number;
746
+ }>, "many">>>;
747
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
748
+ id: z.ZodString;
749
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
750
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
751
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
752
+ data: z.ZodObject<{
753
+ soldAccountId: z.ZodString;
754
+ soldOrderId: z.ZodString;
755
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ soldAccountId: string;
758
+ soldOrderId: string;
759
+ soldConversationId?: string | null | undefined;
760
+ }, {
761
+ soldAccountId: string;
762
+ soldOrderId: string;
763
+ soldConversationId?: string | null | undefined;
764
+ }>;
765
+ type: z.ZodLiteral<"BUYER_PAID">;
766
+ }, "strip", z.ZodTypeAny, {
767
+ type: "BUYER_PAID";
768
+ data: {
769
+ soldAccountId: string;
770
+ soldOrderId: string;
771
+ soldConversationId?: string | null | undefined;
772
+ };
773
+ }, {
774
+ type: "BUYER_PAID";
775
+ data: {
776
+ soldAccountId: string;
777
+ soldOrderId: string;
778
+ soldConversationId?: string | null | undefined;
779
+ };
780
+ }>, z.ZodObject<{
781
+ data: z.ZodObject<{
782
+ soldAccountId: z.ZodString;
783
+ soldOrderId: z.ZodString;
784
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ soldAccountId: string;
787
+ soldOrderId: string;
788
+ soldConversationId?: string | null | undefined;
789
+ }, {
790
+ soldAccountId: string;
791
+ soldOrderId: string;
792
+ soldConversationId?: string | null | undefined;
793
+ }>;
794
+ type: z.ZodLiteral<"DELIVERED">;
795
+ }, "strip", z.ZodTypeAny, {
796
+ type: "DELIVERED";
797
+ data: {
798
+ soldAccountId: string;
799
+ soldOrderId: string;
800
+ soldConversationId?: string | null | undefined;
801
+ };
802
+ }, {
803
+ type: "DELIVERED";
804
+ data: {
805
+ soldAccountId: string;
806
+ soldOrderId: string;
807
+ soldConversationId?: string | null | undefined;
808
+ };
809
+ }>, z.ZodObject<{
810
+ type: z.ZodLiteral<"EMPTY">;
811
+ }, "strip", z.ZodTypeAny, {
812
+ type: "EMPTY";
813
+ }, {
814
+ type: "EMPTY";
815
+ }>, z.ZodObject<{
816
+ data: z.ZodObject<{
817
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
818
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ platform: "VINTED" | "SHOPIFY";
822
+ accountId?: string | null | undefined;
823
+ reason?: string | null | undefined;
824
+ }, {
825
+ platform: "VINTED" | "SHOPIFY";
826
+ accountId?: string | null | undefined;
827
+ reason?: string | null | undefined;
828
+ }>;
829
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
830
+ }, "strip", z.ZodTypeAny, {
831
+ type: "FAILED_TO_PUBLISH";
832
+ data: {
833
+ platform: "VINTED" | "SHOPIFY";
834
+ accountId?: string | null | undefined;
835
+ reason?: string | null | undefined;
836
+ };
837
+ }, {
838
+ type: "FAILED_TO_PUBLISH";
839
+ data: {
840
+ platform: "VINTED" | "SHOPIFY";
841
+ accountId?: string | null | undefined;
842
+ reason?: string | null | undefined;
843
+ };
844
+ }>, z.ZodObject<{
845
+ data: z.ZodObject<{
846
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ platform: "VINTED" | "SHOPIFY";
849
+ }, {
850
+ platform: "VINTED" | "SHOPIFY";
851
+ }>;
852
+ type: z.ZodLiteral<"REPUBLISHING">;
853
+ }, "strip", z.ZodTypeAny, {
854
+ type: "REPUBLISHING";
855
+ data: {
856
+ platform: "VINTED" | "SHOPIFY";
857
+ };
858
+ }, {
859
+ type: "REPUBLISHING";
860
+ data: {
861
+ platform: "VINTED" | "SHOPIFY";
862
+ };
863
+ }>, z.ZodObject<{
864
+ data: z.ZodObject<{
865
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
866
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ platform: "VINTED" | "SHOPIFY";
869
+ publishingDate?: Date | null | undefined;
870
+ }, {
871
+ platform: "VINTED" | "SHOPIFY";
872
+ publishingDate?: Date | null | undefined;
873
+ }>;
874
+ type: z.ZodLiteral<"SCHEDULED">;
875
+ }, "strip", z.ZodTypeAny, {
876
+ type: "SCHEDULED";
877
+ data: {
878
+ platform: "VINTED" | "SHOPIFY";
879
+ publishingDate?: Date | null | undefined;
880
+ };
881
+ }, {
882
+ type: "SCHEDULED";
883
+ data: {
884
+ platform: "VINTED" | "SHOPIFY";
885
+ publishingDate?: Date | null | undefined;
886
+ };
887
+ }>]>>>;
888
+ createdAt: z.ZodDate;
889
+ }, "strip", z.ZodTypeAny, {
890
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
891
+ id: string;
892
+ createdAt: Date;
893
+ itemId: string | number;
894
+ data?: {
895
+ type: "BUYER_PAID";
896
+ data: {
897
+ soldAccountId: string;
898
+ soldOrderId: string;
899
+ soldConversationId?: string | null | undefined;
900
+ };
901
+ } | {
902
+ type: "DELIVERED";
903
+ data: {
904
+ soldAccountId: string;
905
+ soldOrderId: string;
906
+ soldConversationId?: string | null | undefined;
907
+ };
908
+ } | {
909
+ type: "EMPTY";
910
+ } | {
911
+ type: "FAILED_TO_PUBLISH";
912
+ data: {
913
+ platform: "VINTED" | "SHOPIFY";
914
+ accountId?: string | null | undefined;
915
+ reason?: string | null | undefined;
916
+ };
917
+ } | {
918
+ type: "REPUBLISHING";
919
+ data: {
920
+ platform: "VINTED" | "SHOPIFY";
921
+ };
922
+ } | {
923
+ type: "SCHEDULED";
924
+ data: {
925
+ platform: "VINTED" | "SHOPIFY";
926
+ publishingDate?: Date | null | undefined;
927
+ };
928
+ } | null | undefined;
929
+ }, {
930
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
931
+ id: string;
932
+ createdAt: Date;
933
+ itemId: string | number;
934
+ data?: {
935
+ type: "BUYER_PAID";
936
+ data: {
937
+ soldAccountId: string;
938
+ soldOrderId: string;
939
+ soldConversationId?: string | null | undefined;
940
+ };
941
+ } | {
942
+ type: "DELIVERED";
943
+ data: {
944
+ soldAccountId: string;
945
+ soldOrderId: string;
946
+ soldConversationId?: string | null | undefined;
947
+ };
948
+ } | {
949
+ type: "EMPTY";
950
+ } | {
951
+ type: "FAILED_TO_PUBLISH";
952
+ data: {
953
+ platform: "VINTED" | "SHOPIFY";
954
+ accountId?: string | null | undefined;
955
+ reason?: string | null | undefined;
956
+ };
957
+ } | {
958
+ type: "REPUBLISHING";
959
+ data: {
960
+ platform: "VINTED" | "SHOPIFY";
961
+ };
962
+ } | {
963
+ type: "SCHEDULED";
964
+ data: {
965
+ platform: "VINTED" | "SHOPIFY";
966
+ publishingDate?: Date | null | undefined;
967
+ };
968
+ } | null | undefined;
969
+ }>>>;
970
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
973
+ accountId: z.ZodString;
974
+ platformId: z.ZodString;
975
+ platformUrl: z.ZodString;
976
+ platformPrice: z.ZodNumber;
977
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
978
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
979
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
980
+ accountId: z.ZodString;
981
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
982
+ name: z.ZodString;
983
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
985
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
986
+ startsAt: z.ZodDate;
987
+ endsAt: z.ZodDate;
988
+ }, "strip", z.ZodTypeAny, {
989
+ startsAt: Date;
990
+ endsAt: Date;
991
+ }, {
992
+ startsAt: Date;
993
+ endsAt: Date;
994
+ }>>>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
997
+ userId: string | number;
998
+ name: string;
999
+ platform: "VINTED" | "SHOPIFY";
1000
+ accountId: string;
1001
+ night?: {
1002
+ startsAt: Date;
1003
+ endsAt: Date;
1004
+ } | null | undefined;
1005
+ locale?: string | null | undefined;
1006
+ }, {
1007
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1008
+ userId: string | number;
1009
+ name: string;
1010
+ platform: "VINTED" | "SHOPIFY";
1011
+ accountId: string;
1012
+ night?: {
1013
+ startsAt: Date;
1014
+ endsAt: Date;
1015
+ } | null | undefined;
1016
+ locale?: string | null | undefined;
1017
+ }>>>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1020
+ id: string;
1021
+ itemId: string | number;
1022
+ accountId: string;
1023
+ platformId: string;
1024
+ platformUrl: string;
1025
+ platformPrice: number;
1026
+ account?: {
1027
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1028
+ userId: string | number;
1029
+ name: string;
1030
+ platform: "VINTED" | "SHOPIFY";
1031
+ accountId: string;
1032
+ night?: {
1033
+ startsAt: Date;
1034
+ endsAt: Date;
1035
+ } | null | undefined;
1036
+ locale?: string | null | undefined;
1037
+ } | null | undefined;
1038
+ }, {
1039
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1040
+ id: string;
1041
+ itemId: string | number;
1042
+ accountId: string;
1043
+ platformId: string;
1044
+ platformUrl: string;
1045
+ platformPrice: number;
1046
+ account?: {
1047
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1048
+ userId: string | number;
1049
+ name: string;
1050
+ platform: "VINTED" | "SHOPIFY";
1051
+ accountId: string;
1052
+ night?: {
1053
+ startsAt: Date;
1054
+ endsAt: Date;
1055
+ } | null | undefined;
1056
+ locale?: string | null | undefined;
1057
+ } | null | undefined;
1058
+ }>, "many">>>;
1059
+ createdAt: z.ZodDate;
1060
+ updatedAt: z.ZodDate;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ id: string | number;
1063
+ userId: string | number;
1064
+ createdAt: Date;
1065
+ name: string;
1066
+ updatedAt: Date;
1067
+ sold: boolean;
1068
+ customerId?: string | number | null | undefined;
1069
+ description?: string | null | undefined;
1070
+ colorIds?: number[] | null | undefined;
1071
+ packageSizeId?: number | null | undefined;
1072
+ sizeId?: number | null | undefined;
1073
+ labels?: {
1074
+ itemId: string | number;
1075
+ labelId: string | number;
1076
+ label?: {
1077
+ id: string | number;
1078
+ createdAt: Date;
1079
+ name: string;
1080
+ isUserLabel: boolean;
1081
+ userId?: string | number | null | undefined;
1082
+ itemCount?: number | null | undefined;
1083
+ } | null | undefined;
1084
+ }[] | null | undefined;
1085
+ state?: number | null | undefined;
1086
+ fees?: {
1087
+ value: number;
1088
+ type: string;
1089
+ id: string | number;
1090
+ userId: string | number;
1091
+ createdAt: Date;
1092
+ name: string;
1093
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1094
+ startDate: Date;
1095
+ active: boolean;
1096
+ updatedAt: Date;
1097
+ description?: string | null | undefined;
1098
+ endDate?: Date | null | undefined;
1099
+ itemId?: string | number | null | undefined;
1100
+ parentFeeId?: string | number | null | undefined;
1101
+ }[] | null | undefined;
1102
+ categoryId?: number | null | undefined;
1103
+ brandId?: string | number | null | undefined;
1104
+ files?: {
1105
+ fileId: string;
1106
+ itemId: string | number;
1107
+ file?: {
1108
+ path: string;
1109
+ id: string;
1110
+ userId: string | number;
1111
+ signedUrl: string;
1112
+ createdAt: Date;
1113
+ } | null | undefined;
1114
+ index?: number | null | undefined;
1115
+ }[] | null | undefined;
1116
+ sex?: string | null | undefined;
1117
+ purchasePrice?: number | null | undefined;
1118
+ purchaseDate?: Date | null | undefined;
1119
+ purchasePlaceId?: string | number | null | undefined;
1120
+ purchased?: boolean | null | undefined;
1121
+ sellingPrice?: number | null | undefined;
1122
+ sellingDate?: Date | null | undefined;
1123
+ sellingPlaceId?: string | number | null | undefined;
1124
+ estimatedPrice?: number | null | undefined;
1125
+ feesSum?: number | null | undefined;
1126
+ customer?: {
1127
+ email: string;
1128
+ id: string | number;
1129
+ userId: string | number;
1130
+ firstName: string;
1131
+ lastName: string;
1132
+ birthDate: Date;
1133
+ idNumber: string;
1134
+ phone: string;
1135
+ iban: string;
1136
+ bic: string;
1137
+ phoneVerified: boolean;
1138
+ } | null | undefined;
1139
+ customerType?: string | null | undefined;
1140
+ customerPaid?: boolean | null | undefined;
1141
+ customerPaidDate?: Date | null | undefined;
1142
+ customerPaidType?: string | null | undefined;
1143
+ contractId?: string | number | null | undefined;
1144
+ fields?: {
1145
+ value: string;
1146
+ itemId: string | number;
1147
+ fieldId: string | number;
1148
+ }[] | null | undefined;
1149
+ lastHistory?: {
1150
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1151
+ id: string;
1152
+ createdAt: Date;
1153
+ itemId: string | number;
1154
+ data?: {
1155
+ type: "BUYER_PAID";
1156
+ data: {
1157
+ soldAccountId: string;
1158
+ soldOrderId: string;
1159
+ soldConversationId?: string | null | undefined;
1160
+ };
1161
+ } | {
1162
+ type: "DELIVERED";
1163
+ data: {
1164
+ soldAccountId: string;
1165
+ soldOrderId: string;
1166
+ soldConversationId?: string | null | undefined;
1167
+ };
1168
+ } | {
1169
+ type: "EMPTY";
1170
+ } | {
1171
+ type: "FAILED_TO_PUBLISH";
1172
+ data: {
1173
+ platform: "VINTED" | "SHOPIFY";
1174
+ accountId?: string | null | undefined;
1175
+ reason?: string | null | undefined;
1176
+ };
1177
+ } | {
1178
+ type: "REPUBLISHING";
1179
+ data: {
1180
+ platform: "VINTED" | "SHOPIFY";
1181
+ };
1182
+ } | {
1183
+ type: "SCHEDULED";
1184
+ data: {
1185
+ platform: "VINTED" | "SHOPIFY";
1186
+ publishingDate?: Date | null | undefined;
1187
+ };
1188
+ } | null | undefined;
1189
+ } | null | undefined;
1190
+ platforms?: {
1191
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1192
+ id: string;
1193
+ itemId: string | number;
1194
+ accountId: string;
1195
+ platformId: string;
1196
+ platformUrl: string;
1197
+ platformPrice: number;
1198
+ account?: {
1199
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1200
+ userId: string | number;
1201
+ name: string;
1202
+ platform: "VINTED" | "SHOPIFY";
1203
+ accountId: string;
1204
+ night?: {
1205
+ startsAt: Date;
1206
+ endsAt: Date;
1207
+ } | null | undefined;
1208
+ locale?: string | null | undefined;
1209
+ } | null | undefined;
1210
+ }[] | null | undefined;
1211
+ }, {
1212
+ id: string | number;
1213
+ userId: string | number;
1214
+ createdAt: Date;
1215
+ name: string;
1216
+ updatedAt: Date;
1217
+ sold: boolean;
1218
+ customerId?: string | number | null | undefined;
1219
+ description?: string | null | undefined;
1220
+ colorIds?: number[] | null | undefined;
1221
+ packageSizeId?: number | null | undefined;
1222
+ sizeId?: number | null | undefined;
1223
+ labels?: {
1224
+ itemId: string | number;
1225
+ labelId: string | number;
1226
+ label?: {
1227
+ id: string | number;
1228
+ createdAt: Date;
1229
+ name: string;
1230
+ isUserLabel: boolean;
1231
+ userId?: string | number | null | undefined;
1232
+ itemCount?: number | null | undefined;
1233
+ } | null | undefined;
1234
+ }[] | null | undefined;
1235
+ state?: number | null | undefined;
1236
+ fees?: {
1237
+ value: number;
1238
+ type: string;
1239
+ id: string | number;
1240
+ userId: string | number;
1241
+ createdAt: Date;
1242
+ name: string;
1243
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1244
+ startDate: Date;
1245
+ active: boolean;
1246
+ updatedAt: Date;
1247
+ description?: string | null | undefined;
1248
+ endDate?: Date | null | undefined;
1249
+ itemId?: string | number | null | undefined;
1250
+ parentFeeId?: string | number | null | undefined;
1251
+ }[] | null | undefined;
1252
+ categoryId?: number | null | undefined;
1253
+ brandId?: string | number | null | undefined;
1254
+ files?: {
1255
+ fileId: string;
1256
+ itemId: string | number;
1257
+ file?: {
1258
+ path: string;
1259
+ id: string;
1260
+ userId: string | number;
1261
+ signedUrl: string;
1262
+ createdAt: Date;
1263
+ } | null | undefined;
1264
+ index?: number | null | undefined;
1265
+ }[] | null | undefined;
1266
+ sex?: string | null | undefined;
1267
+ purchasePrice?: number | null | undefined;
1268
+ purchaseDate?: Date | null | undefined;
1269
+ purchasePlaceId?: string | number | null | undefined;
1270
+ purchased?: boolean | null | undefined;
1271
+ sellingPrice?: number | null | undefined;
1272
+ sellingDate?: Date | null | undefined;
1273
+ sellingPlaceId?: string | number | null | undefined;
1274
+ estimatedPrice?: number | null | undefined;
1275
+ feesSum?: number | null | undefined;
1276
+ customer?: {
1277
+ email: string;
1278
+ id: string | number;
1279
+ userId: string | number;
1280
+ firstName: string;
1281
+ lastName: string;
1282
+ birthDate: Date;
1283
+ idNumber: string;
1284
+ phone: string;
1285
+ iban: string;
1286
+ bic: string;
1287
+ phoneVerified: boolean;
1288
+ } | null | undefined;
1289
+ customerType?: string | null | undefined;
1290
+ customerPaid?: boolean | null | undefined;
1291
+ customerPaidDate?: Date | null | undefined;
1292
+ customerPaidType?: string | null | undefined;
1293
+ contractId?: string | number | null | undefined;
1294
+ fields?: {
1295
+ value: string;
1296
+ itemId: string | number;
1297
+ fieldId: string | number;
1298
+ }[] | null | undefined;
1299
+ lastHistory?: {
1300
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1301
+ id: string;
1302
+ createdAt: Date;
1303
+ itemId: string | number;
1304
+ data?: {
1305
+ type: "BUYER_PAID";
1306
+ data: {
1307
+ soldAccountId: string;
1308
+ soldOrderId: string;
1309
+ soldConversationId?: string | null | undefined;
1310
+ };
1311
+ } | {
1312
+ type: "DELIVERED";
1313
+ data: {
1314
+ soldAccountId: string;
1315
+ soldOrderId: string;
1316
+ soldConversationId?: string | null | undefined;
1317
+ };
1318
+ } | {
1319
+ type: "EMPTY";
1320
+ } | {
1321
+ type: "FAILED_TO_PUBLISH";
1322
+ data: {
1323
+ platform: "VINTED" | "SHOPIFY";
1324
+ accountId?: string | null | undefined;
1325
+ reason?: string | null | undefined;
1326
+ };
1327
+ } | {
1328
+ type: "REPUBLISHING";
1329
+ data: {
1330
+ platform: "VINTED" | "SHOPIFY";
1331
+ };
1332
+ } | {
1333
+ type: "SCHEDULED";
1334
+ data: {
1335
+ platform: "VINTED" | "SHOPIFY";
1336
+ publishingDate?: Date | null | undefined;
1337
+ };
1338
+ } | null | undefined;
1339
+ } | null | undefined;
1340
+ platforms?: {
1341
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1342
+ id: string;
1343
+ itemId: string | number;
1344
+ accountId: string;
1345
+ platformId: string;
1346
+ platformUrl: string;
1347
+ platformPrice: number;
1348
+ account?: {
1349
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1350
+ userId: string | number;
1351
+ name: string;
1352
+ platform: "VINTED" | "SHOPIFY";
1353
+ accountId: string;
1354
+ night?: {
1355
+ startsAt: Date;
1356
+ endsAt: Date;
1357
+ } | null | undefined;
1358
+ locale?: string | null | undefined;
1359
+ } | null | undefined;
1360
+ }[] | null | undefined;
1361
+ }>, "many">;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ items: {
1364
+ id: string | number;
1365
+ userId: string | number;
1366
+ createdAt: Date;
1367
+ name: string;
1368
+ updatedAt: Date;
1369
+ sold: boolean;
1370
+ customerId?: string | number | null | undefined;
1371
+ description?: string | null | undefined;
1372
+ colorIds?: number[] | null | undefined;
1373
+ packageSizeId?: number | null | undefined;
1374
+ sizeId?: number | null | undefined;
1375
+ labels?: {
1376
+ itemId: string | number;
1377
+ labelId: string | number;
1378
+ label?: {
1379
+ id: string | number;
1380
+ createdAt: Date;
1381
+ name: string;
1382
+ isUserLabel: boolean;
1383
+ userId?: string | number | null | undefined;
1384
+ itemCount?: number | null | undefined;
1385
+ } | null | undefined;
1386
+ }[] | null | undefined;
1387
+ state?: number | null | undefined;
1388
+ fees?: {
1389
+ value: number;
1390
+ type: string;
1391
+ id: string | number;
1392
+ userId: string | number;
1393
+ createdAt: Date;
1394
+ name: string;
1395
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1396
+ startDate: Date;
1397
+ active: boolean;
1398
+ updatedAt: Date;
1399
+ description?: string | null | undefined;
1400
+ endDate?: Date | null | undefined;
1401
+ itemId?: string | number | null | undefined;
1402
+ parentFeeId?: string | number | null | undefined;
1403
+ }[] | null | undefined;
1404
+ categoryId?: number | null | undefined;
1405
+ brandId?: string | number | null | undefined;
1406
+ files?: {
1407
+ fileId: string;
1408
+ itemId: string | number;
1409
+ file?: {
1410
+ path: string;
1411
+ id: string;
1412
+ userId: string | number;
1413
+ signedUrl: string;
1414
+ createdAt: Date;
1415
+ } | null | undefined;
1416
+ index?: number | null | undefined;
1417
+ }[] | null | undefined;
1418
+ sex?: string | null | undefined;
1419
+ purchasePrice?: number | null | undefined;
1420
+ purchaseDate?: Date | null | undefined;
1421
+ purchasePlaceId?: string | number | null | undefined;
1422
+ purchased?: boolean | null | undefined;
1423
+ sellingPrice?: number | null | undefined;
1424
+ sellingDate?: Date | null | undefined;
1425
+ sellingPlaceId?: string | number | null | undefined;
1426
+ estimatedPrice?: number | null | undefined;
1427
+ feesSum?: number | null | undefined;
1428
+ customer?: {
1429
+ email: string;
1430
+ id: string | number;
1431
+ userId: string | number;
1432
+ firstName: string;
1433
+ lastName: string;
1434
+ birthDate: Date;
1435
+ idNumber: string;
1436
+ phone: string;
1437
+ iban: string;
1438
+ bic: string;
1439
+ phoneVerified: boolean;
1440
+ } | null | undefined;
1441
+ customerType?: string | null | undefined;
1442
+ customerPaid?: boolean | null | undefined;
1443
+ customerPaidDate?: Date | null | undefined;
1444
+ customerPaidType?: string | null | undefined;
1445
+ contractId?: string | number | null | undefined;
1446
+ fields?: {
1447
+ value: string;
1448
+ itemId: string | number;
1449
+ fieldId: string | number;
1450
+ }[] | null | undefined;
1451
+ lastHistory?: {
1452
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1453
+ id: string;
1454
+ createdAt: Date;
1455
+ itemId: string | number;
1456
+ data?: {
1457
+ type: "BUYER_PAID";
1458
+ data: {
1459
+ soldAccountId: string;
1460
+ soldOrderId: string;
1461
+ soldConversationId?: string | null | undefined;
1462
+ };
1463
+ } | {
1464
+ type: "DELIVERED";
1465
+ data: {
1466
+ soldAccountId: string;
1467
+ soldOrderId: string;
1468
+ soldConversationId?: string | null | undefined;
1469
+ };
1470
+ } | {
1471
+ type: "EMPTY";
1472
+ } | {
1473
+ type: "FAILED_TO_PUBLISH";
1474
+ data: {
1475
+ platform: "VINTED" | "SHOPIFY";
1476
+ accountId?: string | null | undefined;
1477
+ reason?: string | null | undefined;
1478
+ };
1479
+ } | {
1480
+ type: "REPUBLISHING";
1481
+ data: {
1482
+ platform: "VINTED" | "SHOPIFY";
1483
+ };
1484
+ } | {
1485
+ type: "SCHEDULED";
1486
+ data: {
1487
+ platform: "VINTED" | "SHOPIFY";
1488
+ publishingDate?: Date | null | undefined;
1489
+ };
1490
+ } | null | undefined;
1491
+ } | null | undefined;
1492
+ platforms?: {
1493
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1494
+ id: string;
1495
+ itemId: string | number;
1496
+ accountId: string;
1497
+ platformId: string;
1498
+ platformUrl: string;
1499
+ platformPrice: number;
1500
+ account?: {
1501
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1502
+ userId: string | number;
1503
+ name: string;
1504
+ platform: "VINTED" | "SHOPIFY";
1505
+ accountId: string;
1506
+ night?: {
1507
+ startsAt: Date;
1508
+ endsAt: Date;
1509
+ } | null | undefined;
1510
+ locale?: string | null | undefined;
1511
+ } | null | undefined;
1512
+ }[] | null | undefined;
1513
+ }[];
1514
+ order: {
1515
+ type: "PURCHASE" | "SALE";
1516
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
1517
+ id: string;
1518
+ date: Date;
1519
+ price: number;
1520
+ accountId: string;
1521
+ platformOrderId: string;
1522
+ items?: {
1523
+ orderId: string;
1524
+ itemOnPlatformId: string;
1525
+ itemOnPlatform?: {
1526
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1527
+ id: string;
1528
+ itemId: string | number;
1529
+ accountId: string;
1530
+ platformId: string;
1531
+ platformUrl: string;
1532
+ platformPrice: number;
1533
+ account?: {
1534
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1535
+ userId: string | number;
1536
+ name: string;
1537
+ platform: "VINTED" | "SHOPIFY";
1538
+ accountId: string;
1539
+ night?: {
1540
+ startsAt: Date;
1541
+ endsAt: Date;
1542
+ } | null | undefined;
1543
+ locale?: string | null | undefined;
1544
+ } | null | undefined;
1545
+ } | null | undefined;
1546
+ }[] | null | undefined;
1547
+ conversationId?: string | null | undefined;
1548
+ transactionId?: string | null | undefined;
1549
+ labels?: {
1550
+ id: string;
1551
+ fileId: string;
1552
+ orderId: string;
1553
+ nonCroppedFileId: string;
1554
+ originalFileId: string;
1555
+ file?: {
1556
+ path: string;
1557
+ id: string;
1558
+ userId: string | number;
1559
+ signedUrl: string;
1560
+ createdAt: Date;
1561
+ } | null | undefined;
1562
+ originalFile?: {
1563
+ path: string;
1564
+ id: string;
1565
+ userId: string | number;
1566
+ signedUrl: string;
1567
+ createdAt: Date;
1568
+ } | null | undefined;
1569
+ nonCroppedFile?: {
1570
+ path: string;
1571
+ id: string;
1572
+ userId: string | number;
1573
+ signedUrl: string;
1574
+ createdAt: Date;
1575
+ } | null | undefined;
1576
+ }[] | null | undefined;
1577
+ pickupPoints?: {
1578
+ orderId: string;
1579
+ pickupPointId: string;
1580
+ isQrcode: boolean;
1581
+ code?: string | null | undefined;
1582
+ trackingLink?: string | null | undefined;
1583
+ availableUntil?: Date | null | undefined;
1584
+ pickupPoint?: {
1585
+ id: string;
1586
+ name: string;
1587
+ accountId: string;
1588
+ postalCode: string;
1589
+ city: string;
1590
+ countryCode: string;
1591
+ addressLine1: string;
1592
+ platformPickupPointId: string;
1593
+ addressLine2?: string | null | undefined;
1594
+ latitude?: number | null | undefined;
1595
+ longitude?: number | null | undefined;
1596
+ } | null | undefined;
1597
+ }[] | null | undefined;
1598
+ };
1599
+ }, {
1600
+ items: {
1601
+ id: string | number;
1602
+ userId: string | number;
1603
+ createdAt: Date;
1604
+ name: string;
1605
+ updatedAt: Date;
1606
+ sold: boolean;
1607
+ customerId?: string | number | null | undefined;
1608
+ description?: string | null | undefined;
1609
+ colorIds?: number[] | null | undefined;
1610
+ packageSizeId?: number | null | undefined;
1611
+ sizeId?: number | null | undefined;
1612
+ labels?: {
1613
+ itemId: string | number;
1614
+ labelId: string | number;
1615
+ label?: {
1616
+ id: string | number;
1617
+ createdAt: Date;
1618
+ name: string;
1619
+ isUserLabel: boolean;
1620
+ userId?: string | number | null | undefined;
1621
+ itemCount?: number | null | undefined;
1622
+ } | null | undefined;
1623
+ }[] | null | undefined;
1624
+ state?: number | null | undefined;
1625
+ fees?: {
1626
+ value: number;
1627
+ type: string;
1628
+ id: string | number;
1629
+ userId: string | number;
1630
+ createdAt: Date;
1631
+ name: string;
1632
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1633
+ startDate: Date;
1634
+ active: boolean;
1635
+ updatedAt: Date;
1636
+ description?: string | null | undefined;
1637
+ endDate?: Date | null | undefined;
1638
+ itemId?: string | number | null | undefined;
1639
+ parentFeeId?: string | number | null | undefined;
1640
+ }[] | null | undefined;
1641
+ categoryId?: number | null | undefined;
1642
+ brandId?: string | number | null | undefined;
1643
+ files?: {
1644
+ fileId: string;
1645
+ itemId: string | number;
1646
+ file?: {
1647
+ path: string;
1648
+ id: string;
1649
+ userId: string | number;
1650
+ signedUrl: string;
1651
+ createdAt: Date;
1652
+ } | null | undefined;
1653
+ index?: number | null | undefined;
1654
+ }[] | null | undefined;
1655
+ sex?: string | null | undefined;
1656
+ purchasePrice?: number | null | undefined;
1657
+ purchaseDate?: Date | null | undefined;
1658
+ purchasePlaceId?: string | number | null | undefined;
1659
+ purchased?: boolean | null | undefined;
1660
+ sellingPrice?: number | null | undefined;
1661
+ sellingDate?: Date | null | undefined;
1662
+ sellingPlaceId?: string | number | null | undefined;
1663
+ estimatedPrice?: number | null | undefined;
1664
+ feesSum?: number | null | undefined;
1665
+ customer?: {
1666
+ email: string;
1667
+ id: string | number;
1668
+ userId: string | number;
1669
+ firstName: string;
1670
+ lastName: string;
1671
+ birthDate: Date;
1672
+ idNumber: string;
1673
+ phone: string;
1674
+ iban: string;
1675
+ bic: string;
1676
+ phoneVerified: boolean;
1677
+ } | null | undefined;
1678
+ customerType?: string | null | undefined;
1679
+ customerPaid?: boolean | null | undefined;
1680
+ customerPaidDate?: Date | null | undefined;
1681
+ customerPaidType?: string | null | undefined;
1682
+ contractId?: string | number | null | undefined;
1683
+ fields?: {
1684
+ value: string;
1685
+ itemId: string | number;
1686
+ fieldId: string | number;
1687
+ }[] | null | undefined;
1688
+ lastHistory?: {
1689
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1690
+ id: string;
1691
+ createdAt: Date;
1692
+ itemId: string | number;
1693
+ data?: {
1694
+ type: "BUYER_PAID";
1695
+ data: {
1696
+ soldAccountId: string;
1697
+ soldOrderId: string;
1698
+ soldConversationId?: string | null | undefined;
1699
+ };
1700
+ } | {
1701
+ type: "DELIVERED";
1702
+ data: {
1703
+ soldAccountId: string;
1704
+ soldOrderId: string;
1705
+ soldConversationId?: string | null | undefined;
1706
+ };
1707
+ } | {
1708
+ type: "EMPTY";
1709
+ } | {
1710
+ type: "FAILED_TO_PUBLISH";
1711
+ data: {
1712
+ platform: "VINTED" | "SHOPIFY";
1713
+ accountId?: string | null | undefined;
1714
+ reason?: string | null | undefined;
1715
+ };
1716
+ } | {
1717
+ type: "REPUBLISHING";
1718
+ data: {
1719
+ platform: "VINTED" | "SHOPIFY";
1720
+ };
1721
+ } | {
1722
+ type: "SCHEDULED";
1723
+ data: {
1724
+ platform: "VINTED" | "SHOPIFY";
1725
+ publishingDate?: Date | null | undefined;
1726
+ };
1727
+ } | null | undefined;
1728
+ } | null | undefined;
1729
+ platforms?: {
1730
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1731
+ id: string;
1732
+ itemId: string | number;
1733
+ accountId: string;
1734
+ platformId: string;
1735
+ platformUrl: string;
1736
+ platformPrice: number;
1737
+ account?: {
1738
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1739
+ userId: string | number;
1740
+ name: string;
1741
+ platform: "VINTED" | "SHOPIFY";
1742
+ accountId: string;
1743
+ night?: {
1744
+ startsAt: Date;
1745
+ endsAt: Date;
1746
+ } | null | undefined;
1747
+ locale?: string | null | undefined;
1748
+ } | null | undefined;
1749
+ }[] | null | undefined;
1750
+ }[];
1751
+ order: {
1752
+ type: "PURCHASE" | "SALE";
1753
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
1754
+ id: string;
1755
+ date: Date;
1756
+ price: number;
1757
+ accountId: string;
1758
+ platformOrderId: string;
1759
+ items?: {
1760
+ orderId: string;
1761
+ itemOnPlatformId: string;
1762
+ itemOnPlatform?: {
1763
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1764
+ id: string;
1765
+ itemId: string | number;
1766
+ accountId: string;
1767
+ platformId: string;
1768
+ platformUrl: string;
1769
+ platformPrice: number;
1770
+ account?: {
1771
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1772
+ userId: string | number;
1773
+ name: string;
1774
+ platform: "VINTED" | "SHOPIFY";
1775
+ accountId: string;
1776
+ night?: {
1777
+ startsAt: Date;
1778
+ endsAt: Date;
1779
+ } | null | undefined;
1780
+ locale?: string | null | undefined;
1781
+ } | null | undefined;
1782
+ } | null | undefined;
1783
+ }[] | null | undefined;
1784
+ conversationId?: string | null | undefined;
1785
+ transactionId?: string | null | undefined;
1786
+ labels?: {
1787
+ id: string;
1788
+ fileId: string;
1789
+ orderId: string;
1790
+ nonCroppedFileId: string;
1791
+ originalFileId: string;
1792
+ file?: {
1793
+ path: string;
1794
+ id: string;
1795
+ userId: string | number;
1796
+ signedUrl: string;
1797
+ createdAt: Date;
1798
+ } | null | undefined;
1799
+ originalFile?: {
1800
+ path: string;
1801
+ id: string;
1802
+ userId: string | number;
1803
+ signedUrl: string;
1804
+ createdAt: Date;
1805
+ } | null | undefined;
1806
+ nonCroppedFile?: {
1807
+ path: string;
1808
+ id: string;
1809
+ userId: string | number;
1810
+ signedUrl: string;
1811
+ createdAt: Date;
1812
+ } | null | undefined;
1813
+ }[] | null | undefined;
1814
+ pickupPoints?: {
1815
+ orderId: string;
1816
+ pickupPointId: string;
1817
+ isQrcode: boolean;
1818
+ code?: string | null | undefined;
1819
+ trackingLink?: string | null | undefined;
1820
+ availableUntil?: Date | null | undefined;
1821
+ pickupPoint?: {
1822
+ id: string;
1823
+ name: string;
1824
+ accountId: string;
1825
+ postalCode: string;
1826
+ city: string;
1827
+ countryCode: string;
1828
+ addressLine1: string;
1829
+ platformPickupPointId: string;
1830
+ addressLine2?: string | null | undefined;
1831
+ latitude?: number | null | undefined;
1832
+ longitude?: number | null | undefined;
1833
+ } | null | undefined;
1834
+ }[] | null | undefined;
1835
+ };
1836
+ }>, "many">;
1837
+ currentPage: z.ZodNumber;
1838
+ totalPages: z.ZodNumber;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ count: number;
1841
+ rows: {
1842
+ items: {
1843
+ id: string | number;
1844
+ userId: string | number;
1845
+ createdAt: Date;
1846
+ name: string;
1847
+ updatedAt: Date;
1848
+ sold: boolean;
1849
+ customerId?: string | number | null | undefined;
1850
+ description?: string | null | undefined;
1851
+ colorIds?: number[] | null | undefined;
1852
+ packageSizeId?: number | null | undefined;
1853
+ sizeId?: number | null | undefined;
1854
+ labels?: {
1855
+ itemId: string | number;
1856
+ labelId: string | number;
1857
+ label?: {
1858
+ id: string | number;
1859
+ createdAt: Date;
1860
+ name: string;
1861
+ isUserLabel: boolean;
1862
+ userId?: string | number | null | undefined;
1863
+ itemCount?: number | null | undefined;
1864
+ } | null | undefined;
1865
+ }[] | null | undefined;
1866
+ state?: number | null | undefined;
1867
+ fees?: {
1868
+ value: number;
1869
+ type: string;
1870
+ id: string | number;
1871
+ userId: string | number;
1872
+ createdAt: Date;
1873
+ name: string;
1874
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1875
+ startDate: Date;
1876
+ active: boolean;
1877
+ updatedAt: Date;
1878
+ description?: string | null | undefined;
1879
+ endDate?: Date | null | undefined;
1880
+ itemId?: string | number | null | undefined;
1881
+ parentFeeId?: string | number | null | undefined;
1882
+ }[] | null | undefined;
1883
+ categoryId?: number | null | undefined;
1884
+ brandId?: string | number | null | undefined;
1885
+ files?: {
1886
+ fileId: string;
1887
+ itemId: string | number;
1888
+ file?: {
1889
+ path: string;
1890
+ id: string;
1891
+ userId: string | number;
1892
+ signedUrl: string;
1893
+ createdAt: Date;
1894
+ } | null | undefined;
1895
+ index?: number | null | undefined;
1896
+ }[] | null | undefined;
1897
+ sex?: string | null | undefined;
1898
+ purchasePrice?: number | null | undefined;
1899
+ purchaseDate?: Date | null | undefined;
1900
+ purchasePlaceId?: string | number | null | undefined;
1901
+ purchased?: boolean | null | undefined;
1902
+ sellingPrice?: number | null | undefined;
1903
+ sellingDate?: Date | null | undefined;
1904
+ sellingPlaceId?: string | number | null | undefined;
1905
+ estimatedPrice?: number | null | undefined;
1906
+ feesSum?: number | null | undefined;
1907
+ customer?: {
1908
+ email: string;
1909
+ id: string | number;
1910
+ userId: string | number;
1911
+ firstName: string;
1912
+ lastName: string;
1913
+ birthDate: Date;
1914
+ idNumber: string;
1915
+ phone: string;
1916
+ iban: string;
1917
+ bic: string;
1918
+ phoneVerified: boolean;
1919
+ } | null | undefined;
1920
+ customerType?: string | null | undefined;
1921
+ customerPaid?: boolean | null | undefined;
1922
+ customerPaidDate?: Date | null | undefined;
1923
+ customerPaidType?: string | null | undefined;
1924
+ contractId?: string | number | null | undefined;
1925
+ fields?: {
1926
+ value: string;
1927
+ itemId: string | number;
1928
+ fieldId: string | number;
1929
+ }[] | null | undefined;
1930
+ lastHistory?: {
1931
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1932
+ id: string;
1933
+ createdAt: Date;
1934
+ itemId: string | number;
1935
+ data?: {
1936
+ type: "BUYER_PAID";
1937
+ data: {
1938
+ soldAccountId: string;
1939
+ soldOrderId: string;
1940
+ soldConversationId?: string | null | undefined;
1941
+ };
1942
+ } | {
1943
+ type: "DELIVERED";
1944
+ data: {
1945
+ soldAccountId: string;
1946
+ soldOrderId: string;
1947
+ soldConversationId?: string | null | undefined;
1948
+ };
1949
+ } | {
1950
+ type: "EMPTY";
1951
+ } | {
1952
+ type: "FAILED_TO_PUBLISH";
1953
+ data: {
1954
+ platform: "VINTED" | "SHOPIFY";
1955
+ accountId?: string | null | undefined;
1956
+ reason?: string | null | undefined;
1957
+ };
1958
+ } | {
1959
+ type: "REPUBLISHING";
1960
+ data: {
1961
+ platform: "VINTED" | "SHOPIFY";
1962
+ };
1963
+ } | {
1964
+ type: "SCHEDULED";
1965
+ data: {
1966
+ platform: "VINTED" | "SHOPIFY";
1967
+ publishingDate?: Date | null | undefined;
1968
+ };
1969
+ } | null | undefined;
1970
+ } | null | undefined;
1971
+ platforms?: {
1972
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1973
+ id: string;
1974
+ itemId: string | number;
1975
+ accountId: string;
1976
+ platformId: string;
1977
+ platformUrl: string;
1978
+ platformPrice: number;
1979
+ account?: {
1980
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1981
+ userId: string | number;
1982
+ name: string;
1983
+ platform: "VINTED" | "SHOPIFY";
1984
+ accountId: string;
1985
+ night?: {
1986
+ startsAt: Date;
1987
+ endsAt: Date;
1988
+ } | null | undefined;
1989
+ locale?: string | null | undefined;
1990
+ } | null | undefined;
1991
+ }[] | null | undefined;
1992
+ }[];
1993
+ order: {
1994
+ type: "PURCHASE" | "SALE";
1995
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
1996
+ id: string;
1997
+ date: Date;
1998
+ price: number;
1999
+ accountId: string;
2000
+ platformOrderId: string;
2001
+ items?: {
2002
+ orderId: string;
2003
+ itemOnPlatformId: string;
2004
+ itemOnPlatform?: {
2005
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2006
+ id: string;
2007
+ itemId: string | number;
2008
+ accountId: string;
2009
+ platformId: string;
2010
+ platformUrl: string;
2011
+ platformPrice: number;
2012
+ account?: {
2013
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2014
+ userId: string | number;
2015
+ name: string;
2016
+ platform: "VINTED" | "SHOPIFY";
2017
+ accountId: string;
2018
+ night?: {
2019
+ startsAt: Date;
2020
+ endsAt: Date;
2021
+ } | null | undefined;
2022
+ locale?: string | null | undefined;
2023
+ } | null | undefined;
2024
+ } | null | undefined;
2025
+ }[] | null | undefined;
2026
+ conversationId?: string | null | undefined;
2027
+ transactionId?: string | null | undefined;
2028
+ labels?: {
2029
+ id: string;
2030
+ fileId: string;
2031
+ orderId: string;
2032
+ nonCroppedFileId: string;
2033
+ originalFileId: string;
2034
+ file?: {
2035
+ path: string;
2036
+ id: string;
2037
+ userId: string | number;
2038
+ signedUrl: string;
2039
+ createdAt: Date;
2040
+ } | null | undefined;
2041
+ originalFile?: {
2042
+ path: string;
2043
+ id: string;
2044
+ userId: string | number;
2045
+ signedUrl: string;
2046
+ createdAt: Date;
2047
+ } | null | undefined;
2048
+ nonCroppedFile?: {
2049
+ path: string;
2050
+ id: string;
2051
+ userId: string | number;
2052
+ signedUrl: string;
2053
+ createdAt: Date;
2054
+ } | null | undefined;
2055
+ }[] | null | undefined;
2056
+ pickupPoints?: {
2057
+ orderId: string;
2058
+ pickupPointId: string;
2059
+ isQrcode: boolean;
2060
+ code?: string | null | undefined;
2061
+ trackingLink?: string | null | undefined;
2062
+ availableUntil?: Date | null | undefined;
2063
+ pickupPoint?: {
2064
+ id: string;
2065
+ name: string;
2066
+ accountId: string;
2067
+ postalCode: string;
2068
+ city: string;
2069
+ countryCode: string;
2070
+ addressLine1: string;
2071
+ platformPickupPointId: string;
2072
+ addressLine2?: string | null | undefined;
2073
+ latitude?: number | null | undefined;
2074
+ longitude?: number | null | undefined;
2075
+ } | null | undefined;
2076
+ }[] | null | undefined;
2077
+ };
2078
+ }[];
2079
+ currentPage: number;
2080
+ totalPages: number;
2081
+ allOrdersCount: number;
2082
+ }, {
2083
+ count: number;
2084
+ rows: {
2085
+ items: {
2086
+ id: string | number;
2087
+ userId: string | number;
2088
+ createdAt: Date;
2089
+ name: string;
2090
+ updatedAt: Date;
2091
+ sold: boolean;
2092
+ customerId?: string | number | null | undefined;
2093
+ description?: string | null | undefined;
2094
+ colorIds?: number[] | null | undefined;
2095
+ packageSizeId?: number | null | undefined;
2096
+ sizeId?: number | null | undefined;
2097
+ labels?: {
2098
+ itemId: string | number;
2099
+ labelId: string | number;
2100
+ label?: {
2101
+ id: string | number;
2102
+ createdAt: Date;
2103
+ name: string;
2104
+ isUserLabel: boolean;
2105
+ userId?: string | number | null | undefined;
2106
+ itemCount?: number | null | undefined;
2107
+ } | null | undefined;
2108
+ }[] | null | undefined;
2109
+ state?: number | null | undefined;
2110
+ fees?: {
2111
+ value: number;
2112
+ type: string;
2113
+ id: string | number;
2114
+ userId: string | number;
2115
+ createdAt: Date;
2116
+ name: string;
2117
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2118
+ startDate: Date;
2119
+ active: boolean;
2120
+ updatedAt: Date;
2121
+ description?: string | null | undefined;
2122
+ endDate?: Date | null | undefined;
2123
+ itemId?: string | number | null | undefined;
2124
+ parentFeeId?: string | number | null | undefined;
2125
+ }[] | null | undefined;
2126
+ categoryId?: number | null | undefined;
2127
+ brandId?: string | number | null | undefined;
2128
+ files?: {
2129
+ fileId: string;
2130
+ itemId: string | number;
2131
+ file?: {
2132
+ path: string;
2133
+ id: string;
2134
+ userId: string | number;
2135
+ signedUrl: string;
2136
+ createdAt: Date;
2137
+ } | null | undefined;
2138
+ index?: number | null | undefined;
2139
+ }[] | null | undefined;
2140
+ sex?: string | null | undefined;
2141
+ purchasePrice?: number | null | undefined;
2142
+ purchaseDate?: Date | null | undefined;
2143
+ purchasePlaceId?: string | number | null | undefined;
2144
+ purchased?: boolean | null | undefined;
2145
+ sellingPrice?: number | null | undefined;
2146
+ sellingDate?: Date | null | undefined;
2147
+ sellingPlaceId?: string | number | null | undefined;
2148
+ estimatedPrice?: number | null | undefined;
2149
+ feesSum?: number | null | undefined;
2150
+ customer?: {
2151
+ email: string;
2152
+ id: string | number;
2153
+ userId: string | number;
2154
+ firstName: string;
2155
+ lastName: string;
2156
+ birthDate: Date;
2157
+ idNumber: string;
2158
+ phone: string;
2159
+ iban: string;
2160
+ bic: string;
2161
+ phoneVerified: boolean;
2162
+ } | null | undefined;
2163
+ customerType?: string | null | undefined;
2164
+ customerPaid?: boolean | null | undefined;
2165
+ customerPaidDate?: Date | null | undefined;
2166
+ customerPaidType?: string | null | undefined;
2167
+ contractId?: string | number | null | undefined;
2168
+ fields?: {
2169
+ value: string;
2170
+ itemId: string | number;
2171
+ fieldId: string | number;
2172
+ }[] | null | undefined;
2173
+ lastHistory?: {
2174
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
2175
+ id: string;
2176
+ createdAt: Date;
2177
+ itemId: string | number;
2178
+ data?: {
2179
+ type: "BUYER_PAID";
2180
+ data: {
2181
+ soldAccountId: string;
2182
+ soldOrderId: string;
2183
+ soldConversationId?: string | null | undefined;
2184
+ };
2185
+ } | {
2186
+ type: "DELIVERED";
2187
+ data: {
2188
+ soldAccountId: string;
2189
+ soldOrderId: string;
2190
+ soldConversationId?: string | null | undefined;
2191
+ };
2192
+ } | {
2193
+ type: "EMPTY";
2194
+ } | {
2195
+ type: "FAILED_TO_PUBLISH";
2196
+ data: {
2197
+ platform: "VINTED" | "SHOPIFY";
2198
+ accountId?: string | null | undefined;
2199
+ reason?: string | null | undefined;
2200
+ };
2201
+ } | {
2202
+ type: "REPUBLISHING";
2203
+ data: {
2204
+ platform: "VINTED" | "SHOPIFY";
2205
+ };
2206
+ } | {
2207
+ type: "SCHEDULED";
2208
+ data: {
2209
+ platform: "VINTED" | "SHOPIFY";
2210
+ publishingDate?: Date | null | undefined;
2211
+ };
2212
+ } | null | undefined;
2213
+ } | null | undefined;
2214
+ platforms?: {
2215
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2216
+ id: string;
2217
+ itemId: string | number;
2218
+ accountId: string;
2219
+ platformId: string;
2220
+ platformUrl: string;
2221
+ platformPrice: number;
2222
+ account?: {
2223
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2224
+ userId: string | number;
2225
+ name: string;
2226
+ platform: "VINTED" | "SHOPIFY";
2227
+ accountId: string;
2228
+ night?: {
2229
+ startsAt: Date;
2230
+ endsAt: Date;
2231
+ } | null | undefined;
2232
+ locale?: string | null | undefined;
2233
+ } | null | undefined;
2234
+ }[] | null | undefined;
2235
+ }[];
2236
+ order: {
2237
+ type: "PURCHASE" | "SALE";
2238
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
2239
+ id: string;
2240
+ date: Date;
2241
+ price: number;
2242
+ accountId: string;
2243
+ platformOrderId: string;
2244
+ items?: {
2245
+ orderId: string;
2246
+ itemOnPlatformId: string;
2247
+ itemOnPlatform?: {
2248
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2249
+ id: string;
2250
+ itemId: string | number;
2251
+ accountId: string;
2252
+ platformId: string;
2253
+ platformUrl: string;
2254
+ platformPrice: number;
2255
+ account?: {
2256
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2257
+ userId: string | number;
2258
+ name: string;
2259
+ platform: "VINTED" | "SHOPIFY";
2260
+ accountId: string;
2261
+ night?: {
2262
+ startsAt: Date;
2263
+ endsAt: Date;
2264
+ } | null | undefined;
2265
+ locale?: string | null | undefined;
2266
+ } | null | undefined;
2267
+ } | null | undefined;
2268
+ }[] | null | undefined;
2269
+ conversationId?: string | null | undefined;
2270
+ transactionId?: string | null | undefined;
2271
+ labels?: {
2272
+ id: string;
2273
+ fileId: string;
2274
+ orderId: string;
2275
+ nonCroppedFileId: string;
2276
+ originalFileId: string;
2277
+ file?: {
2278
+ path: string;
2279
+ id: string;
2280
+ userId: string | number;
2281
+ signedUrl: string;
2282
+ createdAt: Date;
2283
+ } | null | undefined;
2284
+ originalFile?: {
2285
+ path: string;
2286
+ id: string;
2287
+ userId: string | number;
2288
+ signedUrl: string;
2289
+ createdAt: Date;
2290
+ } | null | undefined;
2291
+ nonCroppedFile?: {
2292
+ path: string;
2293
+ id: string;
2294
+ userId: string | number;
2295
+ signedUrl: string;
2296
+ createdAt: Date;
2297
+ } | null | undefined;
2298
+ }[] | null | undefined;
2299
+ pickupPoints?: {
2300
+ orderId: string;
2301
+ pickupPointId: string;
2302
+ isQrcode: boolean;
2303
+ code?: string | null | undefined;
2304
+ trackingLink?: string | null | undefined;
2305
+ availableUntil?: Date | null | undefined;
2306
+ pickupPoint?: {
2307
+ id: string;
2308
+ name: string;
2309
+ accountId: string;
2310
+ postalCode: string;
2311
+ city: string;
2312
+ countryCode: string;
2313
+ addressLine1: string;
2314
+ platformPickupPointId: string;
2315
+ addressLine2?: string | null | undefined;
2316
+ latitude?: number | null | undefined;
2317
+ longitude?: number | null | undefined;
2318
+ } | null | undefined;
2319
+ }[] | null | undefined;
2320
+ };
2321
+ }[];
2322
+ currentPage: number;
2323
+ totalPages: number;
2324
+ allOrdersCount: number;
2325
+ }>;
2326
+ export type UserOrders = z.infer<typeof UserOrdersSchema>;
2327
+ //# sourceMappingURL=UserOrders.d.ts.map