controlresell 2.7.1 → 2.7.6

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 (64) hide show
  1. package/package.json +6 -5
  2. package/src/com/controlresell/models/filters/SavedFilters.js +2 -2
  3. package/src/com/controlresell/models/filters/SavedFilters.js.map +1 -1
  4. package/src/com/controlresell/models/filters/SavedFilters.ts +2 -2
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.js +2 -2
  6. package/src/com/controlresell/models/filters/SavedFiltersPayload.js.map +1 -1
  7. package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +2 -2
  8. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
  9. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts.map +1 -1
  10. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +2 -0
  11. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js.map +1 -1
  12. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +2 -0
  13. package/src/com/controlresell/models/platforms/orders/Order.d.ts +130 -0
  14. package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
  15. package/src/com/controlresell/models/platforms/orders/Order.js +5 -1
  16. package/src/com/controlresell/models/platforms/orders/Order.js.map +1 -1
  17. package/src/com/controlresell/models/platforms/orders/Order.ts +5 -1
  18. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +19 -0
  19. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts.map +1 -0
  20. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js +14 -0
  21. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js.map +1 -0
  22. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.ts +12 -0
  23. package/src/com/controlresell/models/platforms/orders/OrderType.d.ts +4 -0
  24. package/src/com/controlresell/models/platforms/orders/OrderType.d.ts.map +1 -0
  25. package/src/com/controlresell/models/platforms/orders/OrderType.js +8 -0
  26. package/src/com/controlresell/models/platforms/orders/OrderType.js.map +1 -0
  27. package/src/com/controlresell/models/platforms/orders/OrderType.ts +6 -0
  28. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2320 -0
  29. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -0
  30. package/src/com/controlresell/models/platforms/orders/UserOrders.js +13 -0
  31. package/src/com/controlresell/models/platforms/orders/UserOrders.js.map +1 -0
  32. package/src/com/controlresell/models/platforms/orders/UserOrders.ts +11 -0
  33. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +174 -0
  34. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  35. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts +22 -0
  36. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts.map +1 -0
  37. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js +12 -0
  38. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js.map +1 -0
  39. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.ts +10 -0
  40. package/src/com/controlresell/models/platforms/pickups/{PickupPointInConversation.d.ts → PickupPointInOrder.d.ts} +15 -6
  41. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.d.ts.map +1 -0
  42. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js +15 -0
  43. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js.map +1 -0
  44. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.ts +13 -0
  45. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +24 -24
  46. package/src/index.d.ts +5 -3
  47. package/src/index.d.ts.map +1 -1
  48. package/src/index.js +12 -8
  49. package/src/index.js.map +1 -1
  50. package/src/index.ts +5 -3
  51. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +0 -16
  52. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts.map +0 -1
  53. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +0 -11
  54. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js.map +0 -1
  55. package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +0 -9
  56. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts +0 -13
  57. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts.map +0 -1
  58. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js +0 -9
  59. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js.map +0 -1
  60. package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.ts +0 -7
  61. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.d.ts.map +0 -1
  62. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js +0 -12
  63. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js.map +0 -1
  64. package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.ts +0 -10
@@ -0,0 +1,2320 @@
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
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
590
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
591
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
592
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
593
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
594
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
595
+ type: z.ZodString;
596
+ value: z.ZodNumber;
597
+ name: z.ZodString;
598
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
600
+ startDate: z.ZodDate;
601
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
602
+ active: z.ZodBoolean;
603
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
604
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
605
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
606
+ createdAt: z.ZodDate;
607
+ updatedAt: z.ZodDate;
608
+ }, "strip", z.ZodTypeAny, {
609
+ value: number;
610
+ type: string;
611
+ id: string | number;
612
+ userId: string | number;
613
+ createdAt: Date;
614
+ name: string;
615
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
616
+ startDate: Date;
617
+ active: boolean;
618
+ updatedAt: Date;
619
+ description?: string | null | undefined;
620
+ endDate?: Date | null | undefined;
621
+ itemId?: string | number | null | undefined;
622
+ parentFeeId?: string | number | null | undefined;
623
+ }, {
624
+ value: number;
625
+ type: string;
626
+ id: string | number;
627
+ userId: string | number;
628
+ createdAt: Date;
629
+ name: string;
630
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
631
+ startDate: Date;
632
+ active: boolean;
633
+ updatedAt: Date;
634
+ description?: string | null | undefined;
635
+ endDate?: Date | null | undefined;
636
+ itemId?: string | number | null | undefined;
637
+ parentFeeId?: string | number | null | undefined;
638
+ }>, "many">>>;
639
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
640
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
641
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
642
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
643
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
644
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
645
+ name: z.ZodString;
646
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
647
+ isUserLabel: z.ZodBoolean;
648
+ createdAt: z.ZodDate;
649
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ id: string | number;
652
+ createdAt: Date;
653
+ name: string;
654
+ isUserLabel: boolean;
655
+ userId?: string | number | null | undefined;
656
+ itemCount?: number | null | undefined;
657
+ }, {
658
+ id: string | number;
659
+ createdAt: Date;
660
+ name: string;
661
+ isUserLabel: boolean;
662
+ userId?: string | number | null | undefined;
663
+ itemCount?: number | null | undefined;
664
+ }>>>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ itemId: string | number;
667
+ labelId: string | number;
668
+ label?: {
669
+ id: string | number;
670
+ createdAt: Date;
671
+ name: string;
672
+ isUserLabel: boolean;
673
+ userId?: string | number | null | undefined;
674
+ itemCount?: number | null | undefined;
675
+ } | null | undefined;
676
+ }, {
677
+ itemId: string | number;
678
+ labelId: string | number;
679
+ label?: {
680
+ id: string | number;
681
+ createdAt: Date;
682
+ name: string;
683
+ isUserLabel: boolean;
684
+ userId?: string | number | null | undefined;
685
+ itemCount?: number | null | undefined;
686
+ } | null | undefined;
687
+ }>, "many">>>;
688
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
689
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
690
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
691
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
692
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
693
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
694
+ firstName: z.ZodString;
695
+ lastName: z.ZodString;
696
+ birthDate: z.ZodDate;
697
+ email: z.ZodString;
698
+ idNumber: z.ZodString;
699
+ phone: z.ZodString;
700
+ iban: z.ZodString;
701
+ bic: z.ZodString;
702
+ phoneVerified: z.ZodBoolean;
703
+ }, "strip", z.ZodTypeAny, {
704
+ email: string;
705
+ id: string | number;
706
+ userId: string | number;
707
+ firstName: string;
708
+ lastName: string;
709
+ birthDate: Date;
710
+ idNumber: string;
711
+ phone: string;
712
+ iban: string;
713
+ bic: string;
714
+ phoneVerified: boolean;
715
+ }, {
716
+ email: string;
717
+ id: string | number;
718
+ userId: string | number;
719
+ firstName: string;
720
+ lastName: string;
721
+ birthDate: Date;
722
+ idNumber: string;
723
+ phone: string;
724
+ iban: string;
725
+ bic: string;
726
+ phoneVerified: boolean;
727
+ }>>>;
728
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
729
+ customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
730
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
731
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
+ contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
733
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
734
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
735
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
736
+ value: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ value: string;
739
+ itemId: string | number;
740
+ fieldId: string | number;
741
+ }, {
742
+ value: string;
743
+ itemId: string | number;
744
+ fieldId: string | number;
745
+ }>, "many">>>;
746
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
747
+ id: z.ZodString;
748
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
749
+ 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"]>;
750
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
751
+ data: z.ZodObject<{
752
+ soldAccountId: z.ZodString;
753
+ soldOrderId: z.ZodString;
754
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ soldAccountId: string;
757
+ soldOrderId: string;
758
+ soldConversationId?: string | null | undefined;
759
+ }, {
760
+ soldAccountId: string;
761
+ soldOrderId: string;
762
+ soldConversationId?: string | null | undefined;
763
+ }>;
764
+ type: z.ZodLiteral<"BUYER_PAID">;
765
+ }, "strip", z.ZodTypeAny, {
766
+ type: "BUYER_PAID";
767
+ data: {
768
+ soldAccountId: string;
769
+ soldOrderId: string;
770
+ soldConversationId?: string | null | undefined;
771
+ };
772
+ }, {
773
+ type: "BUYER_PAID";
774
+ data: {
775
+ soldAccountId: string;
776
+ soldOrderId: string;
777
+ soldConversationId?: string | null | undefined;
778
+ };
779
+ }>, z.ZodObject<{
780
+ data: z.ZodObject<{
781
+ soldAccountId: z.ZodString;
782
+ soldOrderId: z.ZodString;
783
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ soldAccountId: string;
786
+ soldOrderId: string;
787
+ soldConversationId?: string | null | undefined;
788
+ }, {
789
+ soldAccountId: string;
790
+ soldOrderId: string;
791
+ soldConversationId?: string | null | undefined;
792
+ }>;
793
+ type: z.ZodLiteral<"DELIVERED">;
794
+ }, "strip", z.ZodTypeAny, {
795
+ type: "DELIVERED";
796
+ data: {
797
+ soldAccountId: string;
798
+ soldOrderId: string;
799
+ soldConversationId?: string | null | undefined;
800
+ };
801
+ }, {
802
+ type: "DELIVERED";
803
+ data: {
804
+ soldAccountId: string;
805
+ soldOrderId: string;
806
+ soldConversationId?: string | null | undefined;
807
+ };
808
+ }>, z.ZodObject<{
809
+ type: z.ZodLiteral<"EMPTY">;
810
+ }, "strip", z.ZodTypeAny, {
811
+ type: "EMPTY";
812
+ }, {
813
+ type: "EMPTY";
814
+ }>, z.ZodObject<{
815
+ data: z.ZodObject<{
816
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
817
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ platform: "VINTED" | "SHOPIFY";
821
+ accountId?: string | null | undefined;
822
+ reason?: string | null | undefined;
823
+ }, {
824
+ platform: "VINTED" | "SHOPIFY";
825
+ accountId?: string | null | undefined;
826
+ reason?: string | null | undefined;
827
+ }>;
828
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
829
+ }, "strip", z.ZodTypeAny, {
830
+ type: "FAILED_TO_PUBLISH";
831
+ data: {
832
+ platform: "VINTED" | "SHOPIFY";
833
+ accountId?: string | null | undefined;
834
+ reason?: string | null | undefined;
835
+ };
836
+ }, {
837
+ type: "FAILED_TO_PUBLISH";
838
+ data: {
839
+ platform: "VINTED" | "SHOPIFY";
840
+ accountId?: string | null | undefined;
841
+ reason?: string | null | undefined;
842
+ };
843
+ }>, z.ZodObject<{
844
+ data: z.ZodObject<{
845
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ platform: "VINTED" | "SHOPIFY";
848
+ }, {
849
+ platform: "VINTED" | "SHOPIFY";
850
+ }>;
851
+ type: z.ZodLiteral<"REPUBLISHING">;
852
+ }, "strip", z.ZodTypeAny, {
853
+ type: "REPUBLISHING";
854
+ data: {
855
+ platform: "VINTED" | "SHOPIFY";
856
+ };
857
+ }, {
858
+ type: "REPUBLISHING";
859
+ data: {
860
+ platform: "VINTED" | "SHOPIFY";
861
+ };
862
+ }>, z.ZodObject<{
863
+ data: z.ZodObject<{
864
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
865
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ platform: "VINTED" | "SHOPIFY";
868
+ publishingDate?: Date | null | undefined;
869
+ }, {
870
+ platform: "VINTED" | "SHOPIFY";
871
+ publishingDate?: Date | null | undefined;
872
+ }>;
873
+ type: z.ZodLiteral<"SCHEDULED">;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: "SCHEDULED";
876
+ data: {
877
+ platform: "VINTED" | "SHOPIFY";
878
+ publishingDate?: Date | null | undefined;
879
+ };
880
+ }, {
881
+ type: "SCHEDULED";
882
+ data: {
883
+ platform: "VINTED" | "SHOPIFY";
884
+ publishingDate?: Date | null | undefined;
885
+ };
886
+ }>]>>>;
887
+ createdAt: z.ZodDate;
888
+ }, "strip", z.ZodTypeAny, {
889
+ 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";
890
+ id: string;
891
+ createdAt: Date;
892
+ itemId: string | number;
893
+ data?: {
894
+ type: "BUYER_PAID";
895
+ data: {
896
+ soldAccountId: string;
897
+ soldOrderId: string;
898
+ soldConversationId?: string | null | undefined;
899
+ };
900
+ } | {
901
+ type: "DELIVERED";
902
+ data: {
903
+ soldAccountId: string;
904
+ soldOrderId: string;
905
+ soldConversationId?: string | null | undefined;
906
+ };
907
+ } | {
908
+ type: "EMPTY";
909
+ } | {
910
+ type: "FAILED_TO_PUBLISH";
911
+ data: {
912
+ platform: "VINTED" | "SHOPIFY";
913
+ accountId?: string | null | undefined;
914
+ reason?: string | null | undefined;
915
+ };
916
+ } | {
917
+ type: "REPUBLISHING";
918
+ data: {
919
+ platform: "VINTED" | "SHOPIFY";
920
+ };
921
+ } | {
922
+ type: "SCHEDULED";
923
+ data: {
924
+ platform: "VINTED" | "SHOPIFY";
925
+ publishingDate?: Date | null | undefined;
926
+ };
927
+ } | null | undefined;
928
+ }, {
929
+ 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";
930
+ id: string;
931
+ createdAt: Date;
932
+ itemId: string | number;
933
+ data?: {
934
+ type: "BUYER_PAID";
935
+ data: {
936
+ soldAccountId: string;
937
+ soldOrderId: string;
938
+ soldConversationId?: string | null | undefined;
939
+ };
940
+ } | {
941
+ type: "DELIVERED";
942
+ data: {
943
+ soldAccountId: string;
944
+ soldOrderId: string;
945
+ soldConversationId?: string | null | undefined;
946
+ };
947
+ } | {
948
+ type: "EMPTY";
949
+ } | {
950
+ type: "FAILED_TO_PUBLISH";
951
+ data: {
952
+ platform: "VINTED" | "SHOPIFY";
953
+ accountId?: string | null | undefined;
954
+ reason?: string | null | undefined;
955
+ };
956
+ } | {
957
+ type: "REPUBLISHING";
958
+ data: {
959
+ platform: "VINTED" | "SHOPIFY";
960
+ };
961
+ } | {
962
+ type: "SCHEDULED";
963
+ data: {
964
+ platform: "VINTED" | "SHOPIFY";
965
+ publishingDate?: Date | null | undefined;
966
+ };
967
+ } | null | undefined;
968
+ }>>>;
969
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
970
+ id: z.ZodString;
971
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
972
+ accountId: z.ZodString;
973
+ platformId: z.ZodString;
974
+ platformUrl: z.ZodString;
975
+ platformPrice: z.ZodNumber;
976
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
977
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
978
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
979
+ accountId: z.ZodString;
980
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
981
+ name: z.ZodString;
982
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
983
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
984
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
985
+ startsAt: z.ZodDate;
986
+ endsAt: z.ZodDate;
987
+ }, "strip", z.ZodTypeAny, {
988
+ startsAt: Date;
989
+ endsAt: Date;
990
+ }, {
991
+ startsAt: Date;
992
+ endsAt: Date;
993
+ }>>>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
996
+ userId: string | number;
997
+ name: string;
998
+ platform: "VINTED" | "SHOPIFY";
999
+ accountId: string;
1000
+ night?: {
1001
+ startsAt: Date;
1002
+ endsAt: Date;
1003
+ } | null | undefined;
1004
+ locale?: string | null | undefined;
1005
+ }, {
1006
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1007
+ userId: string | number;
1008
+ name: string;
1009
+ platform: "VINTED" | "SHOPIFY";
1010
+ accountId: string;
1011
+ night?: {
1012
+ startsAt: Date;
1013
+ endsAt: Date;
1014
+ } | null | undefined;
1015
+ locale?: string | null | undefined;
1016
+ }>>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1019
+ id: string;
1020
+ itemId: string | number;
1021
+ accountId: string;
1022
+ platformId: string;
1023
+ platformUrl: string;
1024
+ platformPrice: number;
1025
+ account?: {
1026
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1027
+ userId: string | number;
1028
+ name: string;
1029
+ platform: "VINTED" | "SHOPIFY";
1030
+ accountId: string;
1031
+ night?: {
1032
+ startsAt: Date;
1033
+ endsAt: Date;
1034
+ } | null | undefined;
1035
+ locale?: string | null | undefined;
1036
+ } | null | undefined;
1037
+ }, {
1038
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1039
+ id: string;
1040
+ itemId: string | number;
1041
+ accountId: string;
1042
+ platformId: string;
1043
+ platformUrl: string;
1044
+ platformPrice: number;
1045
+ account?: {
1046
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1047
+ userId: string | number;
1048
+ name: string;
1049
+ platform: "VINTED" | "SHOPIFY";
1050
+ accountId: string;
1051
+ night?: {
1052
+ startsAt: Date;
1053
+ endsAt: Date;
1054
+ } | null | undefined;
1055
+ locale?: string | null | undefined;
1056
+ } | null | undefined;
1057
+ }>, "many">>>;
1058
+ createdAt: z.ZodDate;
1059
+ updatedAt: z.ZodDate;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ id: string | number;
1062
+ userId: string | number;
1063
+ createdAt: Date;
1064
+ name: string;
1065
+ updatedAt: Date;
1066
+ sold: boolean;
1067
+ customerId?: string | number | null | undefined;
1068
+ description?: string | null | undefined;
1069
+ colorIds?: number[] | null | undefined;
1070
+ packageSizeId?: number | null | undefined;
1071
+ sizeId?: number | null | undefined;
1072
+ labels?: {
1073
+ itemId: string | number;
1074
+ labelId: string | number;
1075
+ label?: {
1076
+ id: string | number;
1077
+ createdAt: Date;
1078
+ name: string;
1079
+ isUserLabel: boolean;
1080
+ userId?: string | number | null | undefined;
1081
+ itemCount?: number | null | undefined;
1082
+ } | null | undefined;
1083
+ }[] | null | undefined;
1084
+ state?: number | null | undefined;
1085
+ fees?: {
1086
+ value: number;
1087
+ type: string;
1088
+ id: string | number;
1089
+ userId: string | number;
1090
+ createdAt: Date;
1091
+ name: string;
1092
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1093
+ startDate: Date;
1094
+ active: boolean;
1095
+ updatedAt: Date;
1096
+ description?: string | null | undefined;
1097
+ endDate?: Date | null | undefined;
1098
+ itemId?: string | number | null | undefined;
1099
+ parentFeeId?: string | number | null | undefined;
1100
+ }[] | null | undefined;
1101
+ categoryId?: number | null | undefined;
1102
+ brandId?: string | number | null | undefined;
1103
+ files?: {
1104
+ fileId: string;
1105
+ itemId: string | number;
1106
+ file?: {
1107
+ path: string;
1108
+ id: string;
1109
+ userId: string | number;
1110
+ signedUrl: string;
1111
+ createdAt: Date;
1112
+ } | null | undefined;
1113
+ index?: number | null | undefined;
1114
+ }[] | null | undefined;
1115
+ sex?: string | null | undefined;
1116
+ purchasePrice?: number | null | undefined;
1117
+ purchaseDate?: Date | null | undefined;
1118
+ purchasePlaceId?: string | number | null | undefined;
1119
+ sellingPrice?: number | null | undefined;
1120
+ sellingDate?: Date | null | undefined;
1121
+ sellingPlaceId?: string | number | null | undefined;
1122
+ estimatedPrice?: number | null | undefined;
1123
+ feesSum?: number | null | undefined;
1124
+ customer?: {
1125
+ email: string;
1126
+ id: string | number;
1127
+ userId: string | number;
1128
+ firstName: string;
1129
+ lastName: string;
1130
+ birthDate: Date;
1131
+ idNumber: string;
1132
+ phone: string;
1133
+ iban: string;
1134
+ bic: string;
1135
+ phoneVerified: boolean;
1136
+ } | null | undefined;
1137
+ customerType?: string | null | undefined;
1138
+ customerPaid?: boolean | null | undefined;
1139
+ customerPaidDate?: Date | null | undefined;
1140
+ customerPaidType?: string | null | undefined;
1141
+ contractId?: string | number | null | undefined;
1142
+ fields?: {
1143
+ value: string;
1144
+ itemId: string | number;
1145
+ fieldId: string | number;
1146
+ }[] | null | undefined;
1147
+ lastHistory?: {
1148
+ 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";
1149
+ id: string;
1150
+ createdAt: Date;
1151
+ itemId: string | number;
1152
+ data?: {
1153
+ type: "BUYER_PAID";
1154
+ data: {
1155
+ soldAccountId: string;
1156
+ soldOrderId: string;
1157
+ soldConversationId?: string | null | undefined;
1158
+ };
1159
+ } | {
1160
+ type: "DELIVERED";
1161
+ data: {
1162
+ soldAccountId: string;
1163
+ soldOrderId: string;
1164
+ soldConversationId?: string | null | undefined;
1165
+ };
1166
+ } | {
1167
+ type: "EMPTY";
1168
+ } | {
1169
+ type: "FAILED_TO_PUBLISH";
1170
+ data: {
1171
+ platform: "VINTED" | "SHOPIFY";
1172
+ accountId?: string | null | undefined;
1173
+ reason?: string | null | undefined;
1174
+ };
1175
+ } | {
1176
+ type: "REPUBLISHING";
1177
+ data: {
1178
+ platform: "VINTED" | "SHOPIFY";
1179
+ };
1180
+ } | {
1181
+ type: "SCHEDULED";
1182
+ data: {
1183
+ platform: "VINTED" | "SHOPIFY";
1184
+ publishingDate?: Date | null | undefined;
1185
+ };
1186
+ } | null | undefined;
1187
+ } | null | undefined;
1188
+ platforms?: {
1189
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1190
+ id: string;
1191
+ itemId: string | number;
1192
+ accountId: string;
1193
+ platformId: string;
1194
+ platformUrl: string;
1195
+ platformPrice: number;
1196
+ account?: {
1197
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1198
+ userId: string | number;
1199
+ name: string;
1200
+ platform: "VINTED" | "SHOPIFY";
1201
+ accountId: string;
1202
+ night?: {
1203
+ startsAt: Date;
1204
+ endsAt: Date;
1205
+ } | null | undefined;
1206
+ locale?: string | null | undefined;
1207
+ } | null | undefined;
1208
+ }[] | null | undefined;
1209
+ }, {
1210
+ id: string | number;
1211
+ userId: string | number;
1212
+ createdAt: Date;
1213
+ name: string;
1214
+ updatedAt: Date;
1215
+ sold: boolean;
1216
+ customerId?: string | number | null | undefined;
1217
+ description?: string | null | undefined;
1218
+ colorIds?: number[] | null | undefined;
1219
+ packageSizeId?: number | null | undefined;
1220
+ sizeId?: number | null | undefined;
1221
+ labels?: {
1222
+ itemId: string | number;
1223
+ labelId: string | number;
1224
+ label?: {
1225
+ id: string | number;
1226
+ createdAt: Date;
1227
+ name: string;
1228
+ isUserLabel: boolean;
1229
+ userId?: string | number | null | undefined;
1230
+ itemCount?: number | null | undefined;
1231
+ } | null | undefined;
1232
+ }[] | null | undefined;
1233
+ state?: number | null | undefined;
1234
+ fees?: {
1235
+ value: number;
1236
+ type: string;
1237
+ id: string | number;
1238
+ userId: string | number;
1239
+ createdAt: Date;
1240
+ name: string;
1241
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1242
+ startDate: Date;
1243
+ active: boolean;
1244
+ updatedAt: Date;
1245
+ description?: string | null | undefined;
1246
+ endDate?: Date | null | undefined;
1247
+ itemId?: string | number | null | undefined;
1248
+ parentFeeId?: string | number | null | undefined;
1249
+ }[] | null | undefined;
1250
+ categoryId?: number | null | undefined;
1251
+ brandId?: string | number | null | undefined;
1252
+ files?: {
1253
+ fileId: string;
1254
+ itemId: string | number;
1255
+ file?: {
1256
+ path: string;
1257
+ id: string;
1258
+ userId: string | number;
1259
+ signedUrl: string;
1260
+ createdAt: Date;
1261
+ } | null | undefined;
1262
+ index?: number | null | undefined;
1263
+ }[] | null | undefined;
1264
+ sex?: string | null | undefined;
1265
+ purchasePrice?: number | null | undefined;
1266
+ purchaseDate?: Date | null | undefined;
1267
+ purchasePlaceId?: string | number | null | undefined;
1268
+ sellingPrice?: number | null | undefined;
1269
+ sellingDate?: Date | null | undefined;
1270
+ sellingPlaceId?: string | number | null | undefined;
1271
+ estimatedPrice?: number | null | undefined;
1272
+ feesSum?: number | null | undefined;
1273
+ customer?: {
1274
+ email: string;
1275
+ id: string | number;
1276
+ userId: string | number;
1277
+ firstName: string;
1278
+ lastName: string;
1279
+ birthDate: Date;
1280
+ idNumber: string;
1281
+ phone: string;
1282
+ iban: string;
1283
+ bic: string;
1284
+ phoneVerified: boolean;
1285
+ } | null | undefined;
1286
+ customerType?: string | null | undefined;
1287
+ customerPaid?: boolean | null | undefined;
1288
+ customerPaidDate?: Date | null | undefined;
1289
+ customerPaidType?: string | null | undefined;
1290
+ contractId?: string | number | null | undefined;
1291
+ fields?: {
1292
+ value: string;
1293
+ itemId: string | number;
1294
+ fieldId: string | number;
1295
+ }[] | null | undefined;
1296
+ lastHistory?: {
1297
+ 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";
1298
+ id: string;
1299
+ createdAt: Date;
1300
+ itemId: string | number;
1301
+ data?: {
1302
+ type: "BUYER_PAID";
1303
+ data: {
1304
+ soldAccountId: string;
1305
+ soldOrderId: string;
1306
+ soldConversationId?: string | null | undefined;
1307
+ };
1308
+ } | {
1309
+ type: "DELIVERED";
1310
+ data: {
1311
+ soldAccountId: string;
1312
+ soldOrderId: string;
1313
+ soldConversationId?: string | null | undefined;
1314
+ };
1315
+ } | {
1316
+ type: "EMPTY";
1317
+ } | {
1318
+ type: "FAILED_TO_PUBLISH";
1319
+ data: {
1320
+ platform: "VINTED" | "SHOPIFY";
1321
+ accountId?: string | null | undefined;
1322
+ reason?: string | null | undefined;
1323
+ };
1324
+ } | {
1325
+ type: "REPUBLISHING";
1326
+ data: {
1327
+ platform: "VINTED" | "SHOPIFY";
1328
+ };
1329
+ } | {
1330
+ type: "SCHEDULED";
1331
+ data: {
1332
+ platform: "VINTED" | "SHOPIFY";
1333
+ publishingDate?: Date | null | undefined;
1334
+ };
1335
+ } | null | undefined;
1336
+ } | null | undefined;
1337
+ platforms?: {
1338
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1339
+ id: string;
1340
+ itemId: string | number;
1341
+ accountId: string;
1342
+ platformId: string;
1343
+ platformUrl: string;
1344
+ platformPrice: number;
1345
+ account?: {
1346
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1347
+ userId: string | number;
1348
+ name: string;
1349
+ platform: "VINTED" | "SHOPIFY";
1350
+ accountId: string;
1351
+ night?: {
1352
+ startsAt: Date;
1353
+ endsAt: Date;
1354
+ } | null | undefined;
1355
+ locale?: string | null | undefined;
1356
+ } | null | undefined;
1357
+ }[] | null | undefined;
1358
+ }>, "many">;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ items: {
1361
+ id: string | number;
1362
+ userId: string | number;
1363
+ createdAt: Date;
1364
+ name: string;
1365
+ updatedAt: Date;
1366
+ sold: boolean;
1367
+ customerId?: string | number | null | undefined;
1368
+ description?: string | null | undefined;
1369
+ colorIds?: number[] | null | undefined;
1370
+ packageSizeId?: number | null | undefined;
1371
+ sizeId?: number | null | undefined;
1372
+ labels?: {
1373
+ itemId: string | number;
1374
+ labelId: string | number;
1375
+ label?: {
1376
+ id: string | number;
1377
+ createdAt: Date;
1378
+ name: string;
1379
+ isUserLabel: boolean;
1380
+ userId?: string | number | null | undefined;
1381
+ itemCount?: number | null | undefined;
1382
+ } | null | undefined;
1383
+ }[] | null | undefined;
1384
+ state?: number | null | undefined;
1385
+ fees?: {
1386
+ value: number;
1387
+ type: string;
1388
+ id: string | number;
1389
+ userId: string | number;
1390
+ createdAt: Date;
1391
+ name: string;
1392
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1393
+ startDate: Date;
1394
+ active: boolean;
1395
+ updatedAt: Date;
1396
+ description?: string | null | undefined;
1397
+ endDate?: Date | null | undefined;
1398
+ itemId?: string | number | null | undefined;
1399
+ parentFeeId?: string | number | null | undefined;
1400
+ }[] | null | undefined;
1401
+ categoryId?: number | null | undefined;
1402
+ brandId?: string | number | null | undefined;
1403
+ files?: {
1404
+ fileId: string;
1405
+ itemId: string | number;
1406
+ file?: {
1407
+ path: string;
1408
+ id: string;
1409
+ userId: string | number;
1410
+ signedUrl: string;
1411
+ createdAt: Date;
1412
+ } | null | undefined;
1413
+ index?: number | null | undefined;
1414
+ }[] | null | undefined;
1415
+ sex?: string | null | undefined;
1416
+ purchasePrice?: number | null | undefined;
1417
+ purchaseDate?: Date | null | undefined;
1418
+ purchasePlaceId?: string | number | null | undefined;
1419
+ sellingPrice?: number | null | undefined;
1420
+ sellingDate?: Date | null | undefined;
1421
+ sellingPlaceId?: string | number | null | undefined;
1422
+ estimatedPrice?: number | null | undefined;
1423
+ feesSum?: number | null | undefined;
1424
+ customer?: {
1425
+ email: string;
1426
+ id: string | number;
1427
+ userId: string | number;
1428
+ firstName: string;
1429
+ lastName: string;
1430
+ birthDate: Date;
1431
+ idNumber: string;
1432
+ phone: string;
1433
+ iban: string;
1434
+ bic: string;
1435
+ phoneVerified: boolean;
1436
+ } | null | undefined;
1437
+ customerType?: string | null | undefined;
1438
+ customerPaid?: boolean | null | undefined;
1439
+ customerPaidDate?: Date | null | undefined;
1440
+ customerPaidType?: string | null | undefined;
1441
+ contractId?: string | number | null | undefined;
1442
+ fields?: {
1443
+ value: string;
1444
+ itemId: string | number;
1445
+ fieldId: string | number;
1446
+ }[] | null | undefined;
1447
+ lastHistory?: {
1448
+ 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";
1449
+ id: string;
1450
+ createdAt: Date;
1451
+ itemId: string | number;
1452
+ data?: {
1453
+ type: "BUYER_PAID";
1454
+ data: {
1455
+ soldAccountId: string;
1456
+ soldOrderId: string;
1457
+ soldConversationId?: string | null | undefined;
1458
+ };
1459
+ } | {
1460
+ type: "DELIVERED";
1461
+ data: {
1462
+ soldAccountId: string;
1463
+ soldOrderId: string;
1464
+ soldConversationId?: string | null | undefined;
1465
+ };
1466
+ } | {
1467
+ type: "EMPTY";
1468
+ } | {
1469
+ type: "FAILED_TO_PUBLISH";
1470
+ data: {
1471
+ platform: "VINTED" | "SHOPIFY";
1472
+ accountId?: string | null | undefined;
1473
+ reason?: string | null | undefined;
1474
+ };
1475
+ } | {
1476
+ type: "REPUBLISHING";
1477
+ data: {
1478
+ platform: "VINTED" | "SHOPIFY";
1479
+ };
1480
+ } | {
1481
+ type: "SCHEDULED";
1482
+ data: {
1483
+ platform: "VINTED" | "SHOPIFY";
1484
+ publishingDate?: Date | null | undefined;
1485
+ };
1486
+ } | null | undefined;
1487
+ } | null | undefined;
1488
+ platforms?: {
1489
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1490
+ id: string;
1491
+ itemId: string | number;
1492
+ accountId: string;
1493
+ platformId: string;
1494
+ platformUrl: string;
1495
+ platformPrice: number;
1496
+ account?: {
1497
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1498
+ userId: string | number;
1499
+ name: string;
1500
+ platform: "VINTED" | "SHOPIFY";
1501
+ accountId: string;
1502
+ night?: {
1503
+ startsAt: Date;
1504
+ endsAt: Date;
1505
+ } | null | undefined;
1506
+ locale?: string | null | undefined;
1507
+ } | null | undefined;
1508
+ }[] | null | undefined;
1509
+ }[];
1510
+ order: {
1511
+ type: "PURCHASE" | "SALE";
1512
+ 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";
1513
+ id: string;
1514
+ date: Date;
1515
+ price: number;
1516
+ accountId: string;
1517
+ platformOrderId: string;
1518
+ items?: {
1519
+ orderId: string;
1520
+ itemOnPlatformId: string;
1521
+ itemOnPlatform?: {
1522
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1523
+ id: string;
1524
+ itemId: string | number;
1525
+ accountId: string;
1526
+ platformId: string;
1527
+ platformUrl: string;
1528
+ platformPrice: number;
1529
+ account?: {
1530
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1531
+ userId: string | number;
1532
+ name: string;
1533
+ platform: "VINTED" | "SHOPIFY";
1534
+ accountId: string;
1535
+ night?: {
1536
+ startsAt: Date;
1537
+ endsAt: Date;
1538
+ } | null | undefined;
1539
+ locale?: string | null | undefined;
1540
+ } | null | undefined;
1541
+ } | null | undefined;
1542
+ }[] | null | undefined;
1543
+ conversationId?: string | null | undefined;
1544
+ transactionId?: string | null | undefined;
1545
+ labels?: {
1546
+ id: string;
1547
+ fileId: string;
1548
+ orderId: string;
1549
+ nonCroppedFileId: string;
1550
+ originalFileId: string;
1551
+ file?: {
1552
+ path: string;
1553
+ id: string;
1554
+ userId: string | number;
1555
+ signedUrl: string;
1556
+ createdAt: Date;
1557
+ } | null | undefined;
1558
+ originalFile?: {
1559
+ path: string;
1560
+ id: string;
1561
+ userId: string | number;
1562
+ signedUrl: string;
1563
+ createdAt: Date;
1564
+ } | null | undefined;
1565
+ nonCroppedFile?: {
1566
+ path: string;
1567
+ id: string;
1568
+ userId: string | number;
1569
+ signedUrl: string;
1570
+ createdAt: Date;
1571
+ } | null | undefined;
1572
+ }[] | null | undefined;
1573
+ pickupPoints?: {
1574
+ orderId: string;
1575
+ pickupPointId: string;
1576
+ isQrcode: boolean;
1577
+ code?: string | null | undefined;
1578
+ trackingLink?: string | null | undefined;
1579
+ availableUntil?: Date | null | undefined;
1580
+ pickupPoint?: {
1581
+ id: string;
1582
+ name: string;
1583
+ accountId: string;
1584
+ postalCode: string;
1585
+ city: string;
1586
+ countryCode: string;
1587
+ addressLine1: string;
1588
+ platformPickupPointId: string;
1589
+ addressLine2?: string | null | undefined;
1590
+ latitude?: number | null | undefined;
1591
+ longitude?: number | null | undefined;
1592
+ } | null | undefined;
1593
+ }[] | null | undefined;
1594
+ };
1595
+ }, {
1596
+ items: {
1597
+ id: string | number;
1598
+ userId: string | number;
1599
+ createdAt: Date;
1600
+ name: string;
1601
+ updatedAt: Date;
1602
+ sold: boolean;
1603
+ customerId?: string | number | null | undefined;
1604
+ description?: string | null | undefined;
1605
+ colorIds?: number[] | null | undefined;
1606
+ packageSizeId?: number | null | undefined;
1607
+ sizeId?: number | null | undefined;
1608
+ labels?: {
1609
+ itemId: string | number;
1610
+ labelId: string | number;
1611
+ label?: {
1612
+ id: string | number;
1613
+ createdAt: Date;
1614
+ name: string;
1615
+ isUserLabel: boolean;
1616
+ userId?: string | number | null | undefined;
1617
+ itemCount?: number | null | undefined;
1618
+ } | null | undefined;
1619
+ }[] | null | undefined;
1620
+ state?: number | null | undefined;
1621
+ fees?: {
1622
+ value: number;
1623
+ type: string;
1624
+ id: string | number;
1625
+ userId: string | number;
1626
+ createdAt: Date;
1627
+ name: string;
1628
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1629
+ startDate: Date;
1630
+ active: boolean;
1631
+ updatedAt: Date;
1632
+ description?: string | null | undefined;
1633
+ endDate?: Date | null | undefined;
1634
+ itemId?: string | number | null | undefined;
1635
+ parentFeeId?: string | number | null | undefined;
1636
+ }[] | null | undefined;
1637
+ categoryId?: number | null | undefined;
1638
+ brandId?: string | number | null | undefined;
1639
+ files?: {
1640
+ fileId: string;
1641
+ itemId: string | number;
1642
+ file?: {
1643
+ path: string;
1644
+ id: string;
1645
+ userId: string | number;
1646
+ signedUrl: string;
1647
+ createdAt: Date;
1648
+ } | null | undefined;
1649
+ index?: number | null | undefined;
1650
+ }[] | null | undefined;
1651
+ sex?: string | null | undefined;
1652
+ purchasePrice?: number | null | undefined;
1653
+ purchaseDate?: Date | null | undefined;
1654
+ purchasePlaceId?: string | number | null | undefined;
1655
+ sellingPrice?: number | null | undefined;
1656
+ sellingDate?: Date | null | undefined;
1657
+ sellingPlaceId?: string | number | null | undefined;
1658
+ estimatedPrice?: number | null | undefined;
1659
+ feesSum?: number | null | undefined;
1660
+ customer?: {
1661
+ email: string;
1662
+ id: string | number;
1663
+ userId: string | number;
1664
+ firstName: string;
1665
+ lastName: string;
1666
+ birthDate: Date;
1667
+ idNumber: string;
1668
+ phone: string;
1669
+ iban: string;
1670
+ bic: string;
1671
+ phoneVerified: boolean;
1672
+ } | null | undefined;
1673
+ customerType?: string | null | undefined;
1674
+ customerPaid?: boolean | null | undefined;
1675
+ customerPaidDate?: Date | null | undefined;
1676
+ customerPaidType?: string | null | undefined;
1677
+ contractId?: string | number | null | undefined;
1678
+ fields?: {
1679
+ value: string;
1680
+ itemId: string | number;
1681
+ fieldId: string | number;
1682
+ }[] | null | undefined;
1683
+ lastHistory?: {
1684
+ 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";
1685
+ id: string;
1686
+ createdAt: Date;
1687
+ itemId: string | number;
1688
+ data?: {
1689
+ type: "BUYER_PAID";
1690
+ data: {
1691
+ soldAccountId: string;
1692
+ soldOrderId: string;
1693
+ soldConversationId?: string | null | undefined;
1694
+ };
1695
+ } | {
1696
+ type: "DELIVERED";
1697
+ data: {
1698
+ soldAccountId: string;
1699
+ soldOrderId: string;
1700
+ soldConversationId?: string | null | undefined;
1701
+ };
1702
+ } | {
1703
+ type: "EMPTY";
1704
+ } | {
1705
+ type: "FAILED_TO_PUBLISH";
1706
+ data: {
1707
+ platform: "VINTED" | "SHOPIFY";
1708
+ accountId?: string | null | undefined;
1709
+ reason?: string | null | undefined;
1710
+ };
1711
+ } | {
1712
+ type: "REPUBLISHING";
1713
+ data: {
1714
+ platform: "VINTED" | "SHOPIFY";
1715
+ };
1716
+ } | {
1717
+ type: "SCHEDULED";
1718
+ data: {
1719
+ platform: "VINTED" | "SHOPIFY";
1720
+ publishingDate?: Date | null | undefined;
1721
+ };
1722
+ } | null | undefined;
1723
+ } | null | undefined;
1724
+ platforms?: {
1725
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1726
+ id: string;
1727
+ itemId: string | number;
1728
+ accountId: string;
1729
+ platformId: string;
1730
+ platformUrl: string;
1731
+ platformPrice: number;
1732
+ account?: {
1733
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1734
+ userId: string | number;
1735
+ name: string;
1736
+ platform: "VINTED" | "SHOPIFY";
1737
+ accountId: string;
1738
+ night?: {
1739
+ startsAt: Date;
1740
+ endsAt: Date;
1741
+ } | null | undefined;
1742
+ locale?: string | null | undefined;
1743
+ } | null | undefined;
1744
+ }[] | null | undefined;
1745
+ }[];
1746
+ order: {
1747
+ type: "PURCHASE" | "SALE";
1748
+ 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";
1749
+ id: string;
1750
+ date: Date;
1751
+ price: number;
1752
+ accountId: string;
1753
+ platformOrderId: string;
1754
+ items?: {
1755
+ orderId: string;
1756
+ itemOnPlatformId: string;
1757
+ itemOnPlatform?: {
1758
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1759
+ id: string;
1760
+ itemId: string | number;
1761
+ accountId: string;
1762
+ platformId: string;
1763
+ platformUrl: string;
1764
+ platformPrice: number;
1765
+ account?: {
1766
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1767
+ userId: string | number;
1768
+ name: string;
1769
+ platform: "VINTED" | "SHOPIFY";
1770
+ accountId: string;
1771
+ night?: {
1772
+ startsAt: Date;
1773
+ endsAt: Date;
1774
+ } | null | undefined;
1775
+ locale?: string | null | undefined;
1776
+ } | null | undefined;
1777
+ } | null | undefined;
1778
+ }[] | null | undefined;
1779
+ conversationId?: string | null | undefined;
1780
+ transactionId?: string | null | undefined;
1781
+ labels?: {
1782
+ id: string;
1783
+ fileId: string;
1784
+ orderId: string;
1785
+ nonCroppedFileId: string;
1786
+ originalFileId: string;
1787
+ file?: {
1788
+ path: string;
1789
+ id: string;
1790
+ userId: string | number;
1791
+ signedUrl: string;
1792
+ createdAt: Date;
1793
+ } | null | undefined;
1794
+ originalFile?: {
1795
+ path: string;
1796
+ id: string;
1797
+ userId: string | number;
1798
+ signedUrl: string;
1799
+ createdAt: Date;
1800
+ } | null | undefined;
1801
+ nonCroppedFile?: {
1802
+ path: string;
1803
+ id: string;
1804
+ userId: string | number;
1805
+ signedUrl: string;
1806
+ createdAt: Date;
1807
+ } | null | undefined;
1808
+ }[] | null | undefined;
1809
+ pickupPoints?: {
1810
+ orderId: string;
1811
+ pickupPointId: string;
1812
+ isQrcode: boolean;
1813
+ code?: string | null | undefined;
1814
+ trackingLink?: string | null | undefined;
1815
+ availableUntil?: Date | null | undefined;
1816
+ pickupPoint?: {
1817
+ id: string;
1818
+ name: string;
1819
+ accountId: string;
1820
+ postalCode: string;
1821
+ city: string;
1822
+ countryCode: string;
1823
+ addressLine1: string;
1824
+ platformPickupPointId: string;
1825
+ addressLine2?: string | null | undefined;
1826
+ latitude?: number | null | undefined;
1827
+ longitude?: number | null | undefined;
1828
+ } | null | undefined;
1829
+ }[] | null | undefined;
1830
+ };
1831
+ }>, "many">;
1832
+ currentPage: z.ZodNumber;
1833
+ totalPages: z.ZodNumber;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ count: number;
1836
+ rows: {
1837
+ items: {
1838
+ id: string | number;
1839
+ userId: string | number;
1840
+ createdAt: Date;
1841
+ name: string;
1842
+ updatedAt: Date;
1843
+ sold: boolean;
1844
+ customerId?: string | number | null | undefined;
1845
+ description?: string | null | undefined;
1846
+ colorIds?: number[] | null | undefined;
1847
+ packageSizeId?: number | null | undefined;
1848
+ sizeId?: number | null | undefined;
1849
+ labels?: {
1850
+ itemId: string | number;
1851
+ labelId: string | number;
1852
+ label?: {
1853
+ id: string | number;
1854
+ createdAt: Date;
1855
+ name: string;
1856
+ isUserLabel: boolean;
1857
+ userId?: string | number | null | undefined;
1858
+ itemCount?: number | null | undefined;
1859
+ } | null | undefined;
1860
+ }[] | null | undefined;
1861
+ state?: number | null | undefined;
1862
+ fees?: {
1863
+ value: number;
1864
+ type: string;
1865
+ id: string | number;
1866
+ userId: string | number;
1867
+ createdAt: Date;
1868
+ name: string;
1869
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1870
+ startDate: Date;
1871
+ active: boolean;
1872
+ updatedAt: Date;
1873
+ description?: string | null | undefined;
1874
+ endDate?: Date | null | undefined;
1875
+ itemId?: string | number | null | undefined;
1876
+ parentFeeId?: string | number | null | undefined;
1877
+ }[] | null | undefined;
1878
+ categoryId?: number | null | undefined;
1879
+ brandId?: string | number | null | undefined;
1880
+ files?: {
1881
+ fileId: string;
1882
+ itemId: string | number;
1883
+ file?: {
1884
+ path: string;
1885
+ id: string;
1886
+ userId: string | number;
1887
+ signedUrl: string;
1888
+ createdAt: Date;
1889
+ } | null | undefined;
1890
+ index?: number | null | undefined;
1891
+ }[] | null | undefined;
1892
+ sex?: string | null | undefined;
1893
+ purchasePrice?: number | null | undefined;
1894
+ purchaseDate?: Date | null | undefined;
1895
+ purchasePlaceId?: string | number | null | undefined;
1896
+ sellingPrice?: number | null | undefined;
1897
+ sellingDate?: Date | null | undefined;
1898
+ sellingPlaceId?: string | number | null | undefined;
1899
+ estimatedPrice?: number | null | undefined;
1900
+ feesSum?: number | null | undefined;
1901
+ customer?: {
1902
+ email: string;
1903
+ id: string | number;
1904
+ userId: string | number;
1905
+ firstName: string;
1906
+ lastName: string;
1907
+ birthDate: Date;
1908
+ idNumber: string;
1909
+ phone: string;
1910
+ iban: string;
1911
+ bic: string;
1912
+ phoneVerified: boolean;
1913
+ } | null | undefined;
1914
+ customerType?: string | null | undefined;
1915
+ customerPaid?: boolean | null | undefined;
1916
+ customerPaidDate?: Date | null | undefined;
1917
+ customerPaidType?: string | null | undefined;
1918
+ contractId?: string | number | null | undefined;
1919
+ fields?: {
1920
+ value: string;
1921
+ itemId: string | number;
1922
+ fieldId: string | number;
1923
+ }[] | null | undefined;
1924
+ lastHistory?: {
1925
+ 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";
1926
+ id: string;
1927
+ createdAt: Date;
1928
+ itemId: string | number;
1929
+ data?: {
1930
+ type: "BUYER_PAID";
1931
+ data: {
1932
+ soldAccountId: string;
1933
+ soldOrderId: string;
1934
+ soldConversationId?: string | null | undefined;
1935
+ };
1936
+ } | {
1937
+ type: "DELIVERED";
1938
+ data: {
1939
+ soldAccountId: string;
1940
+ soldOrderId: string;
1941
+ soldConversationId?: string | null | undefined;
1942
+ };
1943
+ } | {
1944
+ type: "EMPTY";
1945
+ } | {
1946
+ type: "FAILED_TO_PUBLISH";
1947
+ data: {
1948
+ platform: "VINTED" | "SHOPIFY";
1949
+ accountId?: string | null | undefined;
1950
+ reason?: string | null | undefined;
1951
+ };
1952
+ } | {
1953
+ type: "REPUBLISHING";
1954
+ data: {
1955
+ platform: "VINTED" | "SHOPIFY";
1956
+ };
1957
+ } | {
1958
+ type: "SCHEDULED";
1959
+ data: {
1960
+ platform: "VINTED" | "SHOPIFY";
1961
+ publishingDate?: Date | null | undefined;
1962
+ };
1963
+ } | null | undefined;
1964
+ } | null | undefined;
1965
+ platforms?: {
1966
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1967
+ id: string;
1968
+ itemId: string | number;
1969
+ accountId: string;
1970
+ platformId: string;
1971
+ platformUrl: string;
1972
+ platformPrice: number;
1973
+ account?: {
1974
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1975
+ userId: string | number;
1976
+ name: string;
1977
+ platform: "VINTED" | "SHOPIFY";
1978
+ accountId: string;
1979
+ night?: {
1980
+ startsAt: Date;
1981
+ endsAt: Date;
1982
+ } | null | undefined;
1983
+ locale?: string | null | undefined;
1984
+ } | null | undefined;
1985
+ }[] | null | undefined;
1986
+ }[];
1987
+ order: {
1988
+ type: "PURCHASE" | "SALE";
1989
+ 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";
1990
+ id: string;
1991
+ date: Date;
1992
+ price: number;
1993
+ accountId: string;
1994
+ platformOrderId: string;
1995
+ items?: {
1996
+ orderId: string;
1997
+ itemOnPlatformId: string;
1998
+ itemOnPlatform?: {
1999
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2000
+ id: string;
2001
+ itemId: string | number;
2002
+ accountId: string;
2003
+ platformId: string;
2004
+ platformUrl: string;
2005
+ platformPrice: number;
2006
+ account?: {
2007
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2008
+ userId: string | number;
2009
+ name: string;
2010
+ platform: "VINTED" | "SHOPIFY";
2011
+ accountId: string;
2012
+ night?: {
2013
+ startsAt: Date;
2014
+ endsAt: Date;
2015
+ } | null | undefined;
2016
+ locale?: string | null | undefined;
2017
+ } | null | undefined;
2018
+ } | null | undefined;
2019
+ }[] | null | undefined;
2020
+ conversationId?: string | null | undefined;
2021
+ transactionId?: string | null | undefined;
2022
+ labels?: {
2023
+ id: string;
2024
+ fileId: string;
2025
+ orderId: string;
2026
+ nonCroppedFileId: string;
2027
+ originalFileId: string;
2028
+ file?: {
2029
+ path: string;
2030
+ id: string;
2031
+ userId: string | number;
2032
+ signedUrl: string;
2033
+ createdAt: Date;
2034
+ } | null | undefined;
2035
+ originalFile?: {
2036
+ path: string;
2037
+ id: string;
2038
+ userId: string | number;
2039
+ signedUrl: string;
2040
+ createdAt: Date;
2041
+ } | null | undefined;
2042
+ nonCroppedFile?: {
2043
+ path: string;
2044
+ id: string;
2045
+ userId: string | number;
2046
+ signedUrl: string;
2047
+ createdAt: Date;
2048
+ } | null | undefined;
2049
+ }[] | null | undefined;
2050
+ pickupPoints?: {
2051
+ orderId: string;
2052
+ pickupPointId: string;
2053
+ isQrcode: boolean;
2054
+ code?: string | null | undefined;
2055
+ trackingLink?: string | null | undefined;
2056
+ availableUntil?: Date | null | undefined;
2057
+ pickupPoint?: {
2058
+ id: string;
2059
+ name: string;
2060
+ accountId: string;
2061
+ postalCode: string;
2062
+ city: string;
2063
+ countryCode: string;
2064
+ addressLine1: string;
2065
+ platformPickupPointId: string;
2066
+ addressLine2?: string | null | undefined;
2067
+ latitude?: number | null | undefined;
2068
+ longitude?: number | null | undefined;
2069
+ } | null | undefined;
2070
+ }[] | null | undefined;
2071
+ };
2072
+ }[];
2073
+ currentPage: number;
2074
+ totalPages: number;
2075
+ allOrdersCount: number;
2076
+ }, {
2077
+ count: number;
2078
+ rows: {
2079
+ items: {
2080
+ id: string | number;
2081
+ userId: string | number;
2082
+ createdAt: Date;
2083
+ name: string;
2084
+ updatedAt: Date;
2085
+ sold: boolean;
2086
+ customerId?: string | number | null | undefined;
2087
+ description?: string | null | undefined;
2088
+ colorIds?: number[] | null | undefined;
2089
+ packageSizeId?: number | null | undefined;
2090
+ sizeId?: number | null | undefined;
2091
+ labels?: {
2092
+ itemId: string | number;
2093
+ labelId: string | number;
2094
+ label?: {
2095
+ id: string | number;
2096
+ createdAt: Date;
2097
+ name: string;
2098
+ isUserLabel: boolean;
2099
+ userId?: string | number | null | undefined;
2100
+ itemCount?: number | null | undefined;
2101
+ } | null | undefined;
2102
+ }[] | null | undefined;
2103
+ state?: number | null | undefined;
2104
+ fees?: {
2105
+ value: number;
2106
+ type: string;
2107
+ id: string | number;
2108
+ userId: string | number;
2109
+ createdAt: Date;
2110
+ name: string;
2111
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2112
+ startDate: Date;
2113
+ active: boolean;
2114
+ updatedAt: Date;
2115
+ description?: string | null | undefined;
2116
+ endDate?: Date | null | undefined;
2117
+ itemId?: string | number | null | undefined;
2118
+ parentFeeId?: string | number | null | undefined;
2119
+ }[] | null | undefined;
2120
+ categoryId?: number | null | undefined;
2121
+ brandId?: string | number | null | undefined;
2122
+ files?: {
2123
+ fileId: string;
2124
+ itemId: string | number;
2125
+ file?: {
2126
+ path: string;
2127
+ id: string;
2128
+ userId: string | number;
2129
+ signedUrl: string;
2130
+ createdAt: Date;
2131
+ } | null | undefined;
2132
+ index?: number | null | undefined;
2133
+ }[] | null | undefined;
2134
+ sex?: string | null | undefined;
2135
+ purchasePrice?: number | null | undefined;
2136
+ purchaseDate?: Date | null | undefined;
2137
+ purchasePlaceId?: string | number | null | undefined;
2138
+ sellingPrice?: number | null | undefined;
2139
+ sellingDate?: Date | null | undefined;
2140
+ sellingPlaceId?: string | number | null | undefined;
2141
+ estimatedPrice?: number | null | undefined;
2142
+ feesSum?: number | null | undefined;
2143
+ customer?: {
2144
+ email: string;
2145
+ id: string | number;
2146
+ userId: string | number;
2147
+ firstName: string;
2148
+ lastName: string;
2149
+ birthDate: Date;
2150
+ idNumber: string;
2151
+ phone: string;
2152
+ iban: string;
2153
+ bic: string;
2154
+ phoneVerified: boolean;
2155
+ } | null | undefined;
2156
+ customerType?: string | null | undefined;
2157
+ customerPaid?: boolean | null | undefined;
2158
+ customerPaidDate?: Date | null | undefined;
2159
+ customerPaidType?: string | null | undefined;
2160
+ contractId?: string | number | null | undefined;
2161
+ fields?: {
2162
+ value: string;
2163
+ itemId: string | number;
2164
+ fieldId: string | number;
2165
+ }[] | null | undefined;
2166
+ lastHistory?: {
2167
+ 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";
2168
+ id: string;
2169
+ createdAt: Date;
2170
+ itemId: string | number;
2171
+ data?: {
2172
+ type: "BUYER_PAID";
2173
+ data: {
2174
+ soldAccountId: string;
2175
+ soldOrderId: string;
2176
+ soldConversationId?: string | null | undefined;
2177
+ };
2178
+ } | {
2179
+ type: "DELIVERED";
2180
+ data: {
2181
+ soldAccountId: string;
2182
+ soldOrderId: string;
2183
+ soldConversationId?: string | null | undefined;
2184
+ };
2185
+ } | {
2186
+ type: "EMPTY";
2187
+ } | {
2188
+ type: "FAILED_TO_PUBLISH";
2189
+ data: {
2190
+ platform: "VINTED" | "SHOPIFY";
2191
+ accountId?: string | null | undefined;
2192
+ reason?: string | null | undefined;
2193
+ };
2194
+ } | {
2195
+ type: "REPUBLISHING";
2196
+ data: {
2197
+ platform: "VINTED" | "SHOPIFY";
2198
+ };
2199
+ } | {
2200
+ type: "SCHEDULED";
2201
+ data: {
2202
+ platform: "VINTED" | "SHOPIFY";
2203
+ publishingDate?: Date | null | undefined;
2204
+ };
2205
+ } | null | undefined;
2206
+ } | null | undefined;
2207
+ platforms?: {
2208
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2209
+ id: string;
2210
+ itemId: string | number;
2211
+ accountId: string;
2212
+ platformId: string;
2213
+ platformUrl: string;
2214
+ platformPrice: number;
2215
+ account?: {
2216
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2217
+ userId: string | number;
2218
+ name: string;
2219
+ platform: "VINTED" | "SHOPIFY";
2220
+ accountId: string;
2221
+ night?: {
2222
+ startsAt: Date;
2223
+ endsAt: Date;
2224
+ } | null | undefined;
2225
+ locale?: string | null | undefined;
2226
+ } | null | undefined;
2227
+ }[] | null | undefined;
2228
+ }[];
2229
+ order: {
2230
+ type: "PURCHASE" | "SALE";
2231
+ 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";
2232
+ id: string;
2233
+ date: Date;
2234
+ price: number;
2235
+ accountId: string;
2236
+ platformOrderId: string;
2237
+ items?: {
2238
+ orderId: string;
2239
+ itemOnPlatformId: string;
2240
+ itemOnPlatform?: {
2241
+ status: "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2242
+ id: string;
2243
+ itemId: string | number;
2244
+ accountId: string;
2245
+ platformId: string;
2246
+ platformUrl: string;
2247
+ platformPrice: number;
2248
+ account?: {
2249
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2250
+ userId: string | number;
2251
+ name: string;
2252
+ platform: "VINTED" | "SHOPIFY";
2253
+ accountId: string;
2254
+ night?: {
2255
+ startsAt: Date;
2256
+ endsAt: Date;
2257
+ } | null | undefined;
2258
+ locale?: string | null | undefined;
2259
+ } | null | undefined;
2260
+ } | null | undefined;
2261
+ }[] | null | undefined;
2262
+ conversationId?: string | null | undefined;
2263
+ transactionId?: string | null | undefined;
2264
+ labels?: {
2265
+ id: string;
2266
+ fileId: string;
2267
+ orderId: string;
2268
+ nonCroppedFileId: string;
2269
+ originalFileId: string;
2270
+ file?: {
2271
+ path: string;
2272
+ id: string;
2273
+ userId: string | number;
2274
+ signedUrl: string;
2275
+ createdAt: Date;
2276
+ } | null | undefined;
2277
+ originalFile?: {
2278
+ path: string;
2279
+ id: string;
2280
+ userId: string | number;
2281
+ signedUrl: string;
2282
+ createdAt: Date;
2283
+ } | null | undefined;
2284
+ nonCroppedFile?: {
2285
+ path: string;
2286
+ id: string;
2287
+ userId: string | number;
2288
+ signedUrl: string;
2289
+ createdAt: Date;
2290
+ } | null | undefined;
2291
+ }[] | null | undefined;
2292
+ pickupPoints?: {
2293
+ orderId: string;
2294
+ pickupPointId: string;
2295
+ isQrcode: boolean;
2296
+ code?: string | null | undefined;
2297
+ trackingLink?: string | null | undefined;
2298
+ availableUntil?: Date | null | undefined;
2299
+ pickupPoint?: {
2300
+ id: string;
2301
+ name: string;
2302
+ accountId: string;
2303
+ postalCode: string;
2304
+ city: string;
2305
+ countryCode: string;
2306
+ addressLine1: string;
2307
+ platformPickupPointId: string;
2308
+ addressLine2?: string | null | undefined;
2309
+ latitude?: number | null | undefined;
2310
+ longitude?: number | null | undefined;
2311
+ } | null | undefined;
2312
+ }[] | null | undefined;
2313
+ };
2314
+ }[];
2315
+ currentPage: number;
2316
+ totalPages: number;
2317
+ allOrdersCount: number;
2318
+ }>;
2319
+ export type UserOrders = z.infer<typeof UserOrdersSchema>;
2320
+ //# sourceMappingURL=UserOrders.d.ts.map