controlresell 2.8.5 → 2.8.22

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 (42) hide show
  1. package/package.json +5 -5
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +20 -10
  3. package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
  4. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +20 -10
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
  6. package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts +10 -5
  7. package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts.map +1 -1
  8. package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts +10 -5
  9. package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts.map +1 -1
  10. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +5 -5
  11. package/src/com/controlresell/models/platforms/orders/Order.d.ts +89 -34
  12. package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
  13. package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +8 -8
  14. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +39 -19
  15. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts.map +1 -1
  16. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  17. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +729 -159
  18. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  19. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +58 -17
  20. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts.map +1 -1
  21. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +599 -125
  22. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  23. package/src/com/controlresell/models/platforms/pickups/PickupPoint.d.ts +2 -2
  24. package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.d.ts +4 -4
  25. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +5 -0
  26. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts.map +1 -1
  27. package/src/com/controlresell/models/users/User.d.ts +5 -0
  28. package/src/com/controlresell/models/users/User.d.ts.map +1 -1
  29. package/src/com/controlresell/models/users/fields/FieldConfig.d.ts +3 -0
  30. package/src/com/controlresell/models/users/fields/FieldConfig.d.ts.map +1 -1
  31. package/src/com/controlresell/models/users/fields/FieldConfig.js +2 -1
  32. package/src/com/controlresell/models/users/fields/FieldConfig.js.map +1 -1
  33. package/src/com/controlresell/models/users/fields/FieldConfig.ts +2 -1
  34. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +29 -14
  35. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts.map +1 -1
  36. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +29 -14
  37. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts.map +1 -1
  38. package/src/com/controlresell/models/users/platforms/UserOnPlatformRequest.d.ts +3 -3
  39. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +7 -7
  40. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1102 -250
  41. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  42. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +10 -10
@@ -7,7 +7,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
7
7
  id: z.ZodString;
8
8
  accountId: z.ZodString;
9
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"]>;
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", "ORDER_RETURNED_TO_SENDER", "UNKNOWN"]>;
11
11
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  price: z.ZodNumber;
@@ -24,10 +24,13 @@ export declare const UserOrdersSchema: z.ZodObject<{
24
24
  platformUrl: z.ZodString;
25
25
  platformPrice: z.ZodNumber;
26
26
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
27
+ createdAt: z.ZodDate;
28
+ publishedAt: z.ZodDate;
29
+ updatedAt: z.ZodDate;
27
30
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
31
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
29
32
  accountId: z.ZodString;
30
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
33
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
31
34
  name: z.ZodString;
32
35
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
36
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
@@ -41,116 +44,154 @@ export declare const UserOrdersSchema: z.ZodObject<{
41
44
  startsAt: Date;
42
45
  endsAt: Date;
43
46
  }>>>;
47
+ favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
50
  }, "strip", z.ZodTypeAny, {
45
51
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
46
52
  userId: string | number;
47
53
  name: string;
48
- platform: "VINTED" | "SHOPIFY";
54
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
49
55
  accountId: string;
56
+ locale?: string | null | undefined;
50
57
  night?: {
51
58
  startsAt: Date;
52
59
  endsAt: Date;
53
60
  } | null | undefined;
54
- locale?: string | null | undefined;
61
+ favoritesMaxDelay?: number | null | undefined;
62
+ ordersMaxDelay?: number | null | undefined;
63
+ conversationsMaxDelay?: number | null | undefined;
55
64
  }, {
56
65
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
57
66
  userId: string | number;
58
67
  name: string;
59
- platform: "VINTED" | "SHOPIFY";
68
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
60
69
  accountId: string;
70
+ locale?: string | null | undefined;
61
71
  night?: {
62
72
  startsAt: Date;
63
73
  endsAt: Date;
64
74
  } | null | undefined;
65
- locale?: string | null | undefined;
75
+ favoritesMaxDelay?: number | null | undefined;
76
+ ordersMaxDelay?: number | null | undefined;
77
+ conversationsMaxDelay?: number | null | undefined;
66
78
  }>>>;
79
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
80
  }, "strip", z.ZodTypeAny, {
68
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
81
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
69
82
  id: string;
83
+ createdAt: Date;
70
84
  itemId: string | number;
85
+ updatedAt: Date;
71
86
  accountId: string;
72
87
  platformId: string;
73
88
  platformUrl: string;
74
89
  platformPrice: number;
90
+ publishedAt: Date;
91
+ conversationId?: string | null | undefined;
75
92
  account?: {
76
93
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
77
94
  userId: string | number;
78
95
  name: string;
79
- platform: "VINTED" | "SHOPIFY";
96
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
80
97
  accountId: string;
98
+ locale?: string | null | undefined;
81
99
  night?: {
82
100
  startsAt: Date;
83
101
  endsAt: Date;
84
102
  } | null | undefined;
85
- locale?: string | null | undefined;
103
+ favoritesMaxDelay?: number | null | undefined;
104
+ ordersMaxDelay?: number | null | undefined;
105
+ conversationsMaxDelay?: number | null | undefined;
86
106
  } | null | undefined;
87
107
  }, {
88
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
108
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
89
109
  id: string;
110
+ createdAt: Date;
90
111
  itemId: string | number;
112
+ updatedAt: Date;
91
113
  accountId: string;
92
114
  platformId: string;
93
115
  platformUrl: string;
94
116
  platformPrice: number;
117
+ publishedAt: Date;
118
+ conversationId?: string | null | undefined;
95
119
  account?: {
96
120
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
97
121
  userId: string | number;
98
122
  name: string;
99
- platform: "VINTED" | "SHOPIFY";
123
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
100
124
  accountId: string;
125
+ locale?: string | null | undefined;
101
126
  night?: {
102
127
  startsAt: Date;
103
128
  endsAt: Date;
104
129
  } | null | undefined;
105
- locale?: string | null | undefined;
130
+ favoritesMaxDelay?: number | null | undefined;
131
+ ordersMaxDelay?: number | null | undefined;
132
+ conversationsMaxDelay?: number | null | undefined;
106
133
  } | null | undefined;
107
134
  }>>>;
108
135
  }, "strip", z.ZodTypeAny, {
109
136
  orderId: string;
110
137
  itemOnPlatformId: string;
111
138
  itemOnPlatform?: {
112
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
139
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
113
140
  id: string;
141
+ createdAt: Date;
114
142
  itemId: string | number;
143
+ updatedAt: Date;
115
144
  accountId: string;
116
145
  platformId: string;
117
146
  platformUrl: string;
118
147
  platformPrice: number;
148
+ publishedAt: Date;
149
+ conversationId?: string | null | undefined;
119
150
  account?: {
120
151
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
121
152
  userId: string | number;
122
153
  name: string;
123
- platform: "VINTED" | "SHOPIFY";
154
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
124
155
  accountId: string;
156
+ locale?: string | null | undefined;
125
157
  night?: {
126
158
  startsAt: Date;
127
159
  endsAt: Date;
128
160
  } | null | undefined;
129
- locale?: string | null | undefined;
161
+ favoritesMaxDelay?: number | null | undefined;
162
+ ordersMaxDelay?: number | null | undefined;
163
+ conversationsMaxDelay?: number | null | undefined;
130
164
  } | null | undefined;
131
165
  } | null | undefined;
132
166
  }, {
133
167
  orderId: string;
134
168
  itemOnPlatformId: string;
135
169
  itemOnPlatform?: {
136
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
170
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
137
171
  id: string;
172
+ createdAt: Date;
138
173
  itemId: string | number;
174
+ updatedAt: Date;
139
175
  accountId: string;
140
176
  platformId: string;
141
177
  platformUrl: string;
142
178
  platformPrice: number;
179
+ publishedAt: Date;
180
+ conversationId?: string | null | undefined;
143
181
  account?: {
144
182
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
145
183
  userId: string | number;
146
184
  name: string;
147
- platform: "VINTED" | "SHOPIFY";
185
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
148
186
  accountId: string;
187
+ locale?: string | null | undefined;
149
188
  night?: {
150
189
  startsAt: Date;
151
190
  endsAt: Date;
152
191
  } | null | undefined;
153
- locale?: string | null | undefined;
192
+ favoritesMaxDelay?: number | null | undefined;
193
+ ordersMaxDelay?: number | null | undefined;
194
+ conversationsMaxDelay?: number | null | undefined;
154
195
  } | null | undefined;
155
196
  } | null | undefined;
156
197
  }>, "many">>>;
@@ -294,10 +335,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
294
335
  }, "strip", z.ZodTypeAny, {
295
336
  id: string;
296
337
  name: string;
297
- accountId: string;
298
338
  postalCode: string;
299
339
  city: string;
300
340
  countryCode: string;
341
+ accountId: string;
301
342
  addressLine1: string;
302
343
  platformPickupPointId: string;
303
344
  addressLine2?: string | null | undefined;
@@ -306,10 +347,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
306
347
  }, {
307
348
  id: string;
308
349
  name: string;
309
- accountId: string;
310
350
  postalCode: string;
311
351
  city: string;
312
352
  countryCode: string;
353
+ accountId: string;
313
354
  addressLine1: string;
314
355
  platformPickupPointId: string;
315
356
  addressLine2?: string | null | undefined;
@@ -326,10 +367,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
326
367
  pickupPoint?: {
327
368
  id: string;
328
369
  name: string;
329
- accountId: string;
330
370
  postalCode: string;
331
371
  city: string;
332
372
  countryCode: string;
373
+ accountId: string;
333
374
  addressLine1: string;
334
375
  platformPickupPointId: string;
335
376
  addressLine2?: string | null | undefined;
@@ -346,10 +387,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
346
387
  pickupPoint?: {
347
388
  id: string;
348
389
  name: string;
349
- accountId: string;
350
390
  postalCode: string;
351
391
  city: string;
352
392
  countryCode: string;
393
+ accountId: string;
353
394
  addressLine1: string;
354
395
  platformPickupPointId: string;
355
396
  addressLine2?: string | null | undefined;
@@ -358,8 +399,8 @@ export declare const UserOrdersSchema: z.ZodObject<{
358
399
  } | null | undefined;
359
400
  }>, "many">>>;
360
401
  }, "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";
402
+ type: "SALE" | "PURCHASE";
403
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
363
404
  id: string;
364
405
  date: Date;
365
406
  price: number;
@@ -369,24 +410,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
369
410
  orderId: string;
370
411
  itemOnPlatformId: string;
371
412
  itemOnPlatform?: {
372
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
413
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
373
414
  id: string;
415
+ createdAt: Date;
374
416
  itemId: string | number;
417
+ updatedAt: Date;
375
418
  accountId: string;
376
419
  platformId: string;
377
420
  platformUrl: string;
378
421
  platformPrice: number;
422
+ publishedAt: Date;
423
+ conversationId?: string | null | undefined;
379
424
  account?: {
380
425
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
381
426
  userId: string | number;
382
427
  name: string;
383
- platform: "VINTED" | "SHOPIFY";
428
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
384
429
  accountId: string;
430
+ locale?: string | null | undefined;
385
431
  night?: {
386
432
  startsAt: Date;
387
433
  endsAt: Date;
388
434
  } | null | undefined;
389
- locale?: string | null | undefined;
435
+ favoritesMaxDelay?: number | null | undefined;
436
+ ordersMaxDelay?: number | null | undefined;
437
+ conversationsMaxDelay?: number | null | undefined;
390
438
  } | null | undefined;
391
439
  } | null | undefined;
392
440
  }[] | null | undefined;
@@ -430,10 +478,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
430
478
  pickupPoint?: {
431
479
  id: string;
432
480
  name: string;
433
- accountId: string;
434
481
  postalCode: string;
435
482
  city: string;
436
483
  countryCode: string;
484
+ accountId: string;
437
485
  addressLine1: string;
438
486
  platformPickupPointId: string;
439
487
  addressLine2?: string | null | undefined;
@@ -442,8 +490,8 @@ export declare const UserOrdersSchema: z.ZodObject<{
442
490
  } | null | undefined;
443
491
  }[] | null | undefined;
444
492
  }, {
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";
493
+ type: "SALE" | "PURCHASE";
494
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
447
495
  id: string;
448
496
  date: Date;
449
497
  price: number;
@@ -453,24 +501,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
453
501
  orderId: string;
454
502
  itemOnPlatformId: string;
455
503
  itemOnPlatform?: {
456
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
504
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
457
505
  id: string;
506
+ createdAt: Date;
458
507
  itemId: string | number;
508
+ updatedAt: Date;
459
509
  accountId: string;
460
510
  platformId: string;
461
511
  platformUrl: string;
462
512
  platformPrice: number;
513
+ publishedAt: Date;
514
+ conversationId?: string | null | undefined;
463
515
  account?: {
464
516
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
465
517
  userId: string | number;
466
518
  name: string;
467
- platform: "VINTED" | "SHOPIFY";
519
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
468
520
  accountId: string;
521
+ locale?: string | null | undefined;
469
522
  night?: {
470
523
  startsAt: Date;
471
524
  endsAt: Date;
472
525
  } | null | undefined;
473
- locale?: string | null | undefined;
526
+ favoritesMaxDelay?: number | null | undefined;
527
+ ordersMaxDelay?: number | null | undefined;
528
+ conversationsMaxDelay?: number | null | undefined;
474
529
  } | null | undefined;
475
530
  } | null | undefined;
476
531
  }[] | null | undefined;
@@ -514,10 +569,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
514
569
  pickupPoint?: {
515
570
  id: string;
516
571
  name: string;
517
- accountId: string;
518
572
  postalCode: string;
519
573
  city: string;
520
574
  countryCode: string;
575
+ accountId: string;
521
576
  addressLine1: string;
522
577
  platformPickupPointId: string;
523
578
  addressLine2?: string | null | undefined;
@@ -530,6 +585,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
530
585
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
531
586
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
532
587
  name: z.ZodString;
588
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
589
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
590
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
535
591
  fileId: z.ZodString;
@@ -747,8 +803,27 @@ export declare const UserOrdersSchema: z.ZodObject<{
747
803
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
748
804
  id: z.ZodString;
749
805
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
750
- type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
806
+ type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "IMAGE_PROCESSING_DONE", "REPUBLISHED", "REPUBLISH_CANCELED", "UPDATING", "UPDATED", "UPDATE_CANCELED", "CANCELED", "DISPUTE", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND", "LIFECYCLE_STARTED", "LIFECYCLE_COMPLETED", "LIFECYCLE_CANCELED"]>;
751
807
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
808
+ data: z.ZodObject<{
809
+ targetItemHistoryId: z.ZodString;
810
+ }, "strip", z.ZodTypeAny, {
811
+ targetItemHistoryId: string;
812
+ }, {
813
+ targetItemHistoryId: string;
814
+ }>;
815
+ type: z.ZodLiteral<"ACTION_CANCELED">;
816
+ }, "strip", z.ZodTypeAny, {
817
+ type: "ACTION_CANCELED";
818
+ data: {
819
+ targetItemHistoryId: string;
820
+ };
821
+ }, {
822
+ type: "ACTION_CANCELED";
823
+ data: {
824
+ targetItemHistoryId: string;
825
+ };
826
+ }>, z.ZodObject<{
752
827
  data: z.ZodObject<{
753
828
  soldAccountId: z.ZodString;
754
829
  soldOrderId: z.ZodString;
@@ -814,15 +889,15 @@ export declare const UserOrdersSchema: z.ZodObject<{
814
889
  type: "EMPTY";
815
890
  }>, z.ZodObject<{
816
891
  data: z.ZodObject<{
817
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
892
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
818
893
  accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
894
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
895
  }, "strip", z.ZodTypeAny, {
821
- platform: "VINTED" | "SHOPIFY";
896
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
822
897
  accountId?: string | null | undefined;
823
898
  reason?: string | null | undefined;
824
899
  }, {
825
- platform: "VINTED" | "SHOPIFY";
900
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
826
901
  accountId?: string | null | undefined;
827
902
  reason?: string | null | undefined;
828
903
  }>;
@@ -830,68 +905,201 @@ export declare const UserOrdersSchema: z.ZodObject<{
830
905
  }, "strip", z.ZodTypeAny, {
831
906
  type: "FAILED_TO_PUBLISH";
832
907
  data: {
833
- platform: "VINTED" | "SHOPIFY";
908
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
834
909
  accountId?: string | null | undefined;
835
910
  reason?: string | null | undefined;
836
911
  };
837
912
  }, {
838
913
  type: "FAILED_TO_PUBLISH";
839
914
  data: {
840
- platform: "VINTED" | "SHOPIFY";
915
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
841
916
  accountId?: string | null | undefined;
842
917
  reason?: string | null | undefined;
843
918
  };
844
919
  }>, z.ZodObject<{
845
920
  data: z.ZodObject<{
846
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
921
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
922
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
923
+ fileId: z.ZodString;
924
+ seed: z.ZodNumber;
925
+ phash: z.ZodString;
926
+ distanceOriginal: z.ZodNumber;
927
+ originalImageUrl: z.ZodString;
928
+ originalPhash: z.ZodString;
929
+ }, "strip", z.ZodTypeAny, {
930
+ fileId: string;
931
+ seed: number;
932
+ phash: string;
933
+ distanceOriginal: number;
934
+ originalImageUrl: string;
935
+ originalPhash: string;
936
+ }, {
937
+ fileId: string;
938
+ seed: number;
939
+ phash: string;
940
+ distanceOriginal: number;
941
+ originalImageUrl: string;
942
+ originalPhash: string;
943
+ }>, "many">>>;
944
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
947
+ variations?: {
948
+ fileId: string;
949
+ seed: number;
950
+ phash: string;
951
+ distanceOriginal: number;
952
+ originalImageUrl: string;
953
+ originalPhash: string;
954
+ }[] | null | undefined;
955
+ originalPhashes?: string[] | null | undefined;
956
+ }, {
957
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
958
+ variations?: {
959
+ fileId: string;
960
+ seed: number;
961
+ phash: string;
962
+ distanceOriginal: number;
963
+ originalImageUrl: string;
964
+ originalPhash: string;
965
+ }[] | null | undefined;
966
+ originalPhashes?: string[] | null | undefined;
967
+ }>;
968
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: "IMAGE_PROCESSING_DONE";
971
+ data: {
972
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
973
+ variations?: {
974
+ fileId: string;
975
+ seed: number;
976
+ phash: string;
977
+ distanceOriginal: number;
978
+ originalImageUrl: string;
979
+ originalPhash: string;
980
+ }[] | null | undefined;
981
+ originalPhashes?: string[] | null | undefined;
982
+ };
983
+ }, {
984
+ type: "IMAGE_PROCESSING_DONE";
985
+ data: {
986
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
987
+ variations?: {
988
+ fileId: string;
989
+ seed: number;
990
+ phash: string;
991
+ distanceOriginal: number;
992
+ originalImageUrl: string;
993
+ originalPhash: string;
994
+ }[] | null | undefined;
995
+ originalPhashes?: string[] | null | undefined;
996
+ };
997
+ }>, z.ZodObject<{
998
+ data: z.ZodObject<{
999
+ accountId: z.ZodString;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ accountId: string;
1002
+ }, {
1003
+ accountId: string;
1004
+ }>;
1005
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ type: "LIFECYCLE_COMPLETED";
1008
+ data: {
1009
+ accountId: string;
1010
+ };
1011
+ }, {
1012
+ type: "LIFECYCLE_COMPLETED";
1013
+ data: {
1014
+ accountId: string;
1015
+ };
1016
+ }>, z.ZodObject<{
1017
+ data: z.ZodObject<{
1018
+ accountId: z.ZodString;
1019
+ caseId: z.ZodString;
847
1020
  }, "strip", z.ZodTypeAny, {
848
- platform: "VINTED" | "SHOPIFY";
1021
+ accountId: string;
1022
+ caseId: string;
849
1023
  }, {
850
- platform: "VINTED" | "SHOPIFY";
1024
+ accountId: string;
1025
+ caseId: string;
1026
+ }>;
1027
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ type: "LIFECYCLE_STARTED";
1030
+ data: {
1031
+ accountId: string;
1032
+ caseId: string;
1033
+ };
1034
+ }, {
1035
+ type: "LIFECYCLE_STARTED";
1036
+ data: {
1037
+ accountId: string;
1038
+ caseId: string;
1039
+ };
1040
+ }>, z.ZodObject<{
1041
+ data: z.ZodObject<{
1042
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1043
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1044
+ }, "strip", z.ZodTypeAny, {
1045
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1046
+ publishingDate?: Date | null | undefined;
1047
+ }, {
1048
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1049
+ publishingDate?: Date | null | undefined;
851
1050
  }>;
852
1051
  type: z.ZodLiteral<"REPUBLISHING">;
853
1052
  }, "strip", z.ZodTypeAny, {
854
1053
  type: "REPUBLISHING";
855
1054
  data: {
856
- platform: "VINTED" | "SHOPIFY";
1055
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1056
+ publishingDate?: Date | null | undefined;
857
1057
  };
858
1058
  }, {
859
1059
  type: "REPUBLISHING";
860
1060
  data: {
861
- platform: "VINTED" | "SHOPIFY";
1061
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1062
+ publishingDate?: Date | null | undefined;
862
1063
  };
863
1064
  }>, z.ZodObject<{
864
1065
  data: z.ZodObject<{
865
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1066
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
866
1067
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
867
1068
  }, "strip", z.ZodTypeAny, {
868
- platform: "VINTED" | "SHOPIFY";
1069
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
869
1070
  publishingDate?: Date | null | undefined;
870
1071
  }, {
871
- platform: "VINTED" | "SHOPIFY";
1072
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
872
1073
  publishingDate?: Date | null | undefined;
873
1074
  }>;
874
1075
  type: z.ZodLiteral<"SCHEDULED">;
875
1076
  }, "strip", z.ZodTypeAny, {
876
1077
  type: "SCHEDULED";
877
1078
  data: {
878
- platform: "VINTED" | "SHOPIFY";
1079
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
879
1080
  publishingDate?: Date | null | undefined;
880
1081
  };
881
1082
  }, {
882
1083
  type: "SCHEDULED";
883
1084
  data: {
884
- platform: "VINTED" | "SHOPIFY";
1085
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
885
1086
  publishingDate?: Date | null | undefined;
886
1087
  };
887
1088
  }>]>>>;
888
1089
  createdAt: z.ZodDate;
1090
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1091
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
1092
  }, "strip", z.ZodTypeAny, {
890
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1093
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
891
1094
  id: string;
892
1095
  createdAt: Date;
893
1096
  itemId: string | number;
894
1097
  data?: {
1098
+ type: "ACTION_CANCELED";
1099
+ data: {
1100
+ targetItemHistoryId: string;
1101
+ };
1102
+ } | {
895
1103
  type: "BUYER_PAID";
896
1104
  data: {
897
1105
  soldAccountId: string;
@@ -910,28 +1118,61 @@ export declare const UserOrdersSchema: z.ZodObject<{
910
1118
  } | {
911
1119
  type: "FAILED_TO_PUBLISH";
912
1120
  data: {
913
- platform: "VINTED" | "SHOPIFY";
1121
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
914
1122
  accountId?: string | null | undefined;
915
1123
  reason?: string | null | undefined;
916
1124
  };
1125
+ } | {
1126
+ type: "IMAGE_PROCESSING_DONE";
1127
+ data: {
1128
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1129
+ variations?: {
1130
+ fileId: string;
1131
+ seed: number;
1132
+ phash: string;
1133
+ distanceOriginal: number;
1134
+ originalImageUrl: string;
1135
+ originalPhash: string;
1136
+ }[] | null | undefined;
1137
+ originalPhashes?: string[] | null | undefined;
1138
+ };
1139
+ } | {
1140
+ type: "LIFECYCLE_COMPLETED";
1141
+ data: {
1142
+ accountId: string;
1143
+ };
1144
+ } | {
1145
+ type: "LIFECYCLE_STARTED";
1146
+ data: {
1147
+ accountId: string;
1148
+ caseId: string;
1149
+ };
917
1150
  } | {
918
1151
  type: "REPUBLISHING";
919
1152
  data: {
920
- platform: "VINTED" | "SHOPIFY";
1153
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1154
+ publishingDate?: Date | null | undefined;
921
1155
  };
922
1156
  } | {
923
1157
  type: "SCHEDULED";
924
1158
  data: {
925
- platform: "VINTED" | "SHOPIFY";
1159
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
926
1160
  publishingDate?: Date | null | undefined;
927
1161
  };
928
1162
  } | null | undefined;
1163
+ accountId?: string | null | undefined;
1164
+ targetDate?: Date | null | undefined;
929
1165
  }, {
930
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1166
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
931
1167
  id: string;
932
1168
  createdAt: Date;
933
1169
  itemId: string | number;
934
1170
  data?: {
1171
+ type: "ACTION_CANCELED";
1172
+ data: {
1173
+ targetItemHistoryId: string;
1174
+ };
1175
+ } | {
935
1176
  type: "BUYER_PAID";
936
1177
  data: {
937
1178
  soldAccountId: string;
@@ -950,22 +1191,50 @@ export declare const UserOrdersSchema: z.ZodObject<{
950
1191
  } | {
951
1192
  type: "FAILED_TO_PUBLISH";
952
1193
  data: {
953
- platform: "VINTED" | "SHOPIFY";
1194
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
954
1195
  accountId?: string | null | undefined;
955
1196
  reason?: string | null | undefined;
956
1197
  };
1198
+ } | {
1199
+ type: "IMAGE_PROCESSING_DONE";
1200
+ data: {
1201
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1202
+ variations?: {
1203
+ fileId: string;
1204
+ seed: number;
1205
+ phash: string;
1206
+ distanceOriginal: number;
1207
+ originalImageUrl: string;
1208
+ originalPhash: string;
1209
+ }[] | null | undefined;
1210
+ originalPhashes?: string[] | null | undefined;
1211
+ };
1212
+ } | {
1213
+ type: "LIFECYCLE_COMPLETED";
1214
+ data: {
1215
+ accountId: string;
1216
+ };
1217
+ } | {
1218
+ type: "LIFECYCLE_STARTED";
1219
+ data: {
1220
+ accountId: string;
1221
+ caseId: string;
1222
+ };
957
1223
  } | {
958
1224
  type: "REPUBLISHING";
959
1225
  data: {
960
- platform: "VINTED" | "SHOPIFY";
1226
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1227
+ publishingDate?: Date | null | undefined;
961
1228
  };
962
1229
  } | {
963
1230
  type: "SCHEDULED";
964
1231
  data: {
965
- platform: "VINTED" | "SHOPIFY";
1232
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
966
1233
  publishingDate?: Date | null | undefined;
967
1234
  };
968
1235
  } | null | undefined;
1236
+ accountId?: string | null | undefined;
1237
+ targetDate?: Date | null | undefined;
969
1238
  }>>>;
970
1239
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
971
1240
  id: z.ZodString;
@@ -975,10 +1244,13 @@ export declare const UserOrdersSchema: z.ZodObject<{
975
1244
  platformUrl: z.ZodString;
976
1245
  platformPrice: z.ZodNumber;
977
1246
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
1247
+ createdAt: z.ZodDate;
1248
+ publishedAt: z.ZodDate;
1249
+ updatedAt: z.ZodDate;
978
1250
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
979
1251
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
980
1252
  accountId: z.ZodString;
981
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1253
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
982
1254
  name: z.ZodString;
983
1255
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
1256
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
@@ -992,68 +1264,92 @@ export declare const UserOrdersSchema: z.ZodObject<{
992
1264
  startsAt: Date;
993
1265
  endsAt: Date;
994
1266
  }>>>;
1267
+ favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1268
+ ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1269
+ conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
995
1270
  }, "strip", z.ZodTypeAny, {
996
1271
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
997
1272
  userId: string | number;
998
1273
  name: string;
999
- platform: "VINTED" | "SHOPIFY";
1274
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1000
1275
  accountId: string;
1276
+ locale?: string | null | undefined;
1001
1277
  night?: {
1002
1278
  startsAt: Date;
1003
1279
  endsAt: Date;
1004
1280
  } | null | undefined;
1005
- locale?: string | null | undefined;
1281
+ favoritesMaxDelay?: number | null | undefined;
1282
+ ordersMaxDelay?: number | null | undefined;
1283
+ conversationsMaxDelay?: number | null | undefined;
1006
1284
  }, {
1007
1285
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1008
1286
  userId: string | number;
1009
1287
  name: string;
1010
- platform: "VINTED" | "SHOPIFY";
1288
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1011
1289
  accountId: string;
1290
+ locale?: string | null | undefined;
1012
1291
  night?: {
1013
1292
  startsAt: Date;
1014
1293
  endsAt: Date;
1015
1294
  } | null | undefined;
1016
- locale?: string | null | undefined;
1295
+ favoritesMaxDelay?: number | null | undefined;
1296
+ ordersMaxDelay?: number | null | undefined;
1297
+ conversationsMaxDelay?: number | null | undefined;
1017
1298
  }>>>;
1299
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
1300
  }, "strip", z.ZodTypeAny, {
1019
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1301
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1020
1302
  id: string;
1303
+ createdAt: Date;
1021
1304
  itemId: string | number;
1305
+ updatedAt: Date;
1022
1306
  accountId: string;
1023
1307
  platformId: string;
1024
1308
  platformUrl: string;
1025
1309
  platformPrice: number;
1310
+ publishedAt: Date;
1311
+ conversationId?: string | null | undefined;
1026
1312
  account?: {
1027
1313
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1028
1314
  userId: string | number;
1029
1315
  name: string;
1030
- platform: "VINTED" | "SHOPIFY";
1316
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1031
1317
  accountId: string;
1318
+ locale?: string | null | undefined;
1032
1319
  night?: {
1033
1320
  startsAt: Date;
1034
1321
  endsAt: Date;
1035
1322
  } | null | undefined;
1036
- locale?: string | null | undefined;
1323
+ favoritesMaxDelay?: number | null | undefined;
1324
+ ordersMaxDelay?: number | null | undefined;
1325
+ conversationsMaxDelay?: number | null | undefined;
1037
1326
  } | null | undefined;
1038
1327
  }, {
1039
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1328
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1040
1329
  id: string;
1330
+ createdAt: Date;
1041
1331
  itemId: string | number;
1332
+ updatedAt: Date;
1042
1333
  accountId: string;
1043
1334
  platformId: string;
1044
1335
  platformUrl: string;
1045
1336
  platformPrice: number;
1337
+ publishedAt: Date;
1338
+ conversationId?: string | null | undefined;
1046
1339
  account?: {
1047
1340
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1048
1341
  userId: string | number;
1049
1342
  name: string;
1050
- platform: "VINTED" | "SHOPIFY";
1343
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1051
1344
  accountId: string;
1345
+ locale?: string | null | undefined;
1052
1346
  night?: {
1053
1347
  startsAt: Date;
1054
1348
  endsAt: Date;
1055
1349
  } | null | undefined;
1056
- locale?: string | null | undefined;
1350
+ favoritesMaxDelay?: number | null | undefined;
1351
+ ordersMaxDelay?: number | null | undefined;
1352
+ conversationsMaxDelay?: number | null | undefined;
1057
1353
  } | null | undefined;
1058
1354
  }>, "many">>>;
1059
1355
  createdAt: z.ZodDate;
@@ -1067,6 +1363,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
1067
1363
  sold: boolean;
1068
1364
  customerId?: string | number | null | undefined;
1069
1365
  description?: string | null | undefined;
1366
+ state?: number | null | undefined;
1070
1367
  colorIds?: number[] | null | undefined;
1071
1368
  packageSizeId?: number | null | undefined;
1072
1369
  sizeId?: number | null | undefined;
@@ -1082,7 +1379,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
1082
1379
  userId?: string | number | null | undefined;
1083
1380
  } | null | undefined;
1084
1381
  }[] | null | undefined;
1085
- state?: number | null | undefined;
1086
1382
  fees?: {
1087
1383
  value: number;
1088
1384
  type: string;
@@ -1101,6 +1397,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1101
1397
  }[] | null | undefined;
1102
1398
  categoryId?: number | null | undefined;
1103
1399
  brandId?: string | number | null | undefined;
1400
+ estimatedPrice?: number | null | undefined;
1401
+ purchaseDate?: Date | null | undefined;
1402
+ sellingDate?: Date | null | undefined;
1403
+ sku?: string | null | undefined;
1104
1404
  files?: {
1105
1405
  fileId: string;
1106
1406
  itemId: string | number;
@@ -1115,13 +1415,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1115
1415
  }[] | null | undefined;
1116
1416
  sex?: string | null | undefined;
1117
1417
  purchasePrice?: number | null | undefined;
1118
- purchaseDate?: Date | null | undefined;
1119
1418
  purchasePlaceId?: string | number | null | undefined;
1120
1419
  purchased?: boolean | null | undefined;
1121
1420
  sellingPrice?: number | null | undefined;
1122
- sellingDate?: Date | null | undefined;
1123
1421
  sellingPlaceId?: string | number | null | undefined;
1124
- estimatedPrice?: number | null | undefined;
1125
1422
  feesSum?: number | null | undefined;
1126
1423
  customer?: {
1127
1424
  email: string;
@@ -1147,11 +1444,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
1147
1444
  fieldId: string | number;
1148
1445
  }[] | null | undefined;
1149
1446
  lastHistory?: {
1150
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1447
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1151
1448
  id: string;
1152
1449
  createdAt: Date;
1153
1450
  itemId: string | number;
1154
1451
  data?: {
1452
+ type: "ACTION_CANCELED";
1453
+ data: {
1454
+ targetItemHistoryId: string;
1455
+ };
1456
+ } | {
1155
1457
  type: "BUYER_PAID";
1156
1458
  data: {
1157
1459
  soldAccountId: string;
@@ -1170,42 +1472,77 @@ export declare const UserOrdersSchema: z.ZodObject<{
1170
1472
  } | {
1171
1473
  type: "FAILED_TO_PUBLISH";
1172
1474
  data: {
1173
- platform: "VINTED" | "SHOPIFY";
1475
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1174
1476
  accountId?: string | null | undefined;
1175
1477
  reason?: string | null | undefined;
1176
1478
  };
1479
+ } | {
1480
+ type: "IMAGE_PROCESSING_DONE";
1481
+ data: {
1482
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1483
+ variations?: {
1484
+ fileId: string;
1485
+ seed: number;
1486
+ phash: string;
1487
+ distanceOriginal: number;
1488
+ originalImageUrl: string;
1489
+ originalPhash: string;
1490
+ }[] | null | undefined;
1491
+ originalPhashes?: string[] | null | undefined;
1492
+ };
1493
+ } | {
1494
+ type: "LIFECYCLE_COMPLETED";
1495
+ data: {
1496
+ accountId: string;
1497
+ };
1498
+ } | {
1499
+ type: "LIFECYCLE_STARTED";
1500
+ data: {
1501
+ accountId: string;
1502
+ caseId: string;
1503
+ };
1177
1504
  } | {
1178
1505
  type: "REPUBLISHING";
1179
1506
  data: {
1180
- platform: "VINTED" | "SHOPIFY";
1507
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1508
+ publishingDate?: Date | null | undefined;
1181
1509
  };
1182
1510
  } | {
1183
1511
  type: "SCHEDULED";
1184
1512
  data: {
1185
- platform: "VINTED" | "SHOPIFY";
1513
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1186
1514
  publishingDate?: Date | null | undefined;
1187
1515
  };
1188
1516
  } | null | undefined;
1517
+ accountId?: string | null | undefined;
1518
+ targetDate?: Date | null | undefined;
1189
1519
  } | null | undefined;
1190
1520
  platforms?: {
1191
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1521
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1192
1522
  id: string;
1523
+ createdAt: Date;
1193
1524
  itemId: string | number;
1525
+ updatedAt: Date;
1194
1526
  accountId: string;
1195
1527
  platformId: string;
1196
1528
  platformUrl: string;
1197
1529
  platformPrice: number;
1530
+ publishedAt: Date;
1531
+ conversationId?: string | null | undefined;
1198
1532
  account?: {
1199
1533
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1200
1534
  userId: string | number;
1201
1535
  name: string;
1202
- platform: "VINTED" | "SHOPIFY";
1536
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1203
1537
  accountId: string;
1538
+ locale?: string | null | undefined;
1204
1539
  night?: {
1205
1540
  startsAt: Date;
1206
1541
  endsAt: Date;
1207
1542
  } | null | undefined;
1208
- locale?: string | null | undefined;
1543
+ favoritesMaxDelay?: number | null | undefined;
1544
+ ordersMaxDelay?: number | null | undefined;
1545
+ conversationsMaxDelay?: number | null | undefined;
1209
1546
  } | null | undefined;
1210
1547
  }[] | null | undefined;
1211
1548
  }, {
@@ -1217,6 +1554,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
1217
1554
  sold: boolean;
1218
1555
  customerId?: string | number | null | undefined;
1219
1556
  description?: string | null | undefined;
1557
+ state?: number | null | undefined;
1220
1558
  colorIds?: number[] | null | undefined;
1221
1559
  packageSizeId?: number | null | undefined;
1222
1560
  sizeId?: number | null | undefined;
@@ -1232,7 +1570,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
1232
1570
  userId?: string | number | null | undefined;
1233
1571
  } | null | undefined;
1234
1572
  }[] | null | undefined;
1235
- state?: number | null | undefined;
1236
1573
  fees?: {
1237
1574
  value: number;
1238
1575
  type: string;
@@ -1251,6 +1588,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1251
1588
  }[] | null | undefined;
1252
1589
  categoryId?: number | null | undefined;
1253
1590
  brandId?: string | number | null | undefined;
1591
+ estimatedPrice?: number | null | undefined;
1592
+ purchaseDate?: Date | null | undefined;
1593
+ sellingDate?: Date | null | undefined;
1594
+ sku?: string | null | undefined;
1254
1595
  files?: {
1255
1596
  fileId: string;
1256
1597
  itemId: string | number;
@@ -1265,13 +1606,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1265
1606
  }[] | null | undefined;
1266
1607
  sex?: string | null | undefined;
1267
1608
  purchasePrice?: number | null | undefined;
1268
- purchaseDate?: Date | null | undefined;
1269
1609
  purchasePlaceId?: string | number | null | undefined;
1270
1610
  purchased?: boolean | null | undefined;
1271
1611
  sellingPrice?: number | null | undefined;
1272
- sellingDate?: Date | null | undefined;
1273
1612
  sellingPlaceId?: string | number | null | undefined;
1274
- estimatedPrice?: number | null | undefined;
1275
1613
  feesSum?: number | null | undefined;
1276
1614
  customer?: {
1277
1615
  email: string;
@@ -1297,11 +1635,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
1297
1635
  fieldId: string | number;
1298
1636
  }[] | null | undefined;
1299
1637
  lastHistory?: {
1300
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1638
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1301
1639
  id: string;
1302
1640
  createdAt: Date;
1303
1641
  itemId: string | number;
1304
1642
  data?: {
1643
+ type: "ACTION_CANCELED";
1644
+ data: {
1645
+ targetItemHistoryId: string;
1646
+ };
1647
+ } | {
1305
1648
  type: "BUYER_PAID";
1306
1649
  data: {
1307
1650
  soldAccountId: string;
@@ -1320,42 +1663,77 @@ export declare const UserOrdersSchema: z.ZodObject<{
1320
1663
  } | {
1321
1664
  type: "FAILED_TO_PUBLISH";
1322
1665
  data: {
1323
- platform: "VINTED" | "SHOPIFY";
1666
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1324
1667
  accountId?: string | null | undefined;
1325
1668
  reason?: string | null | undefined;
1326
1669
  };
1670
+ } | {
1671
+ type: "IMAGE_PROCESSING_DONE";
1672
+ data: {
1673
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1674
+ variations?: {
1675
+ fileId: string;
1676
+ seed: number;
1677
+ phash: string;
1678
+ distanceOriginal: number;
1679
+ originalImageUrl: string;
1680
+ originalPhash: string;
1681
+ }[] | null | undefined;
1682
+ originalPhashes?: string[] | null | undefined;
1683
+ };
1684
+ } | {
1685
+ type: "LIFECYCLE_COMPLETED";
1686
+ data: {
1687
+ accountId: string;
1688
+ };
1689
+ } | {
1690
+ type: "LIFECYCLE_STARTED";
1691
+ data: {
1692
+ accountId: string;
1693
+ caseId: string;
1694
+ };
1327
1695
  } | {
1328
1696
  type: "REPUBLISHING";
1329
1697
  data: {
1330
- platform: "VINTED" | "SHOPIFY";
1698
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1699
+ publishingDate?: Date | null | undefined;
1331
1700
  };
1332
1701
  } | {
1333
1702
  type: "SCHEDULED";
1334
1703
  data: {
1335
- platform: "VINTED" | "SHOPIFY";
1704
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1336
1705
  publishingDate?: Date | null | undefined;
1337
1706
  };
1338
1707
  } | null | undefined;
1708
+ accountId?: string | null | undefined;
1709
+ targetDate?: Date | null | undefined;
1339
1710
  } | null | undefined;
1340
1711
  platforms?: {
1341
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1712
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1342
1713
  id: string;
1714
+ createdAt: Date;
1343
1715
  itemId: string | number;
1716
+ updatedAt: Date;
1344
1717
  accountId: string;
1345
1718
  platformId: string;
1346
1719
  platformUrl: string;
1347
1720
  platformPrice: number;
1721
+ publishedAt: Date;
1722
+ conversationId?: string | null | undefined;
1348
1723
  account?: {
1349
1724
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1350
1725
  userId: string | number;
1351
1726
  name: string;
1352
- platform: "VINTED" | "SHOPIFY";
1727
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1353
1728
  accountId: string;
1729
+ locale?: string | null | undefined;
1354
1730
  night?: {
1355
1731
  startsAt: Date;
1356
1732
  endsAt: Date;
1357
1733
  } | null | undefined;
1358
- locale?: string | null | undefined;
1734
+ favoritesMaxDelay?: number | null | undefined;
1735
+ ordersMaxDelay?: number | null | undefined;
1736
+ conversationsMaxDelay?: number | null | undefined;
1359
1737
  } | null | undefined;
1360
1738
  }[] | null | undefined;
1361
1739
  }>, "many">;
@@ -1369,6 +1747,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
1369
1747
  sold: boolean;
1370
1748
  customerId?: string | number | null | undefined;
1371
1749
  description?: string | null | undefined;
1750
+ state?: number | null | undefined;
1372
1751
  colorIds?: number[] | null | undefined;
1373
1752
  packageSizeId?: number | null | undefined;
1374
1753
  sizeId?: number | null | undefined;
@@ -1384,7 +1763,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
1384
1763
  userId?: string | number | null | undefined;
1385
1764
  } | null | undefined;
1386
1765
  }[] | null | undefined;
1387
- state?: number | null | undefined;
1388
1766
  fees?: {
1389
1767
  value: number;
1390
1768
  type: string;
@@ -1403,6 +1781,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1403
1781
  }[] | null | undefined;
1404
1782
  categoryId?: number | null | undefined;
1405
1783
  brandId?: string | number | null | undefined;
1784
+ estimatedPrice?: number | null | undefined;
1785
+ purchaseDate?: Date | null | undefined;
1786
+ sellingDate?: Date | null | undefined;
1787
+ sku?: string | null | undefined;
1406
1788
  files?: {
1407
1789
  fileId: string;
1408
1790
  itemId: string | number;
@@ -1417,13 +1799,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1417
1799
  }[] | null | undefined;
1418
1800
  sex?: string | null | undefined;
1419
1801
  purchasePrice?: number | null | undefined;
1420
- purchaseDate?: Date | null | undefined;
1421
1802
  purchasePlaceId?: string | number | null | undefined;
1422
1803
  purchased?: boolean | null | undefined;
1423
1804
  sellingPrice?: number | null | undefined;
1424
- sellingDate?: Date | null | undefined;
1425
1805
  sellingPlaceId?: string | number | null | undefined;
1426
- estimatedPrice?: number | null | undefined;
1427
1806
  feesSum?: number | null | undefined;
1428
1807
  customer?: {
1429
1808
  email: string;
@@ -1449,11 +1828,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
1449
1828
  fieldId: string | number;
1450
1829
  }[] | null | undefined;
1451
1830
  lastHistory?: {
1452
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1831
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1453
1832
  id: string;
1454
1833
  createdAt: Date;
1455
1834
  itemId: string | number;
1456
1835
  data?: {
1836
+ type: "ACTION_CANCELED";
1837
+ data: {
1838
+ targetItemHistoryId: string;
1839
+ };
1840
+ } | {
1457
1841
  type: "BUYER_PAID";
1458
1842
  data: {
1459
1843
  soldAccountId: string;
@@ -1472,48 +1856,83 @@ export declare const UserOrdersSchema: z.ZodObject<{
1472
1856
  } | {
1473
1857
  type: "FAILED_TO_PUBLISH";
1474
1858
  data: {
1475
- platform: "VINTED" | "SHOPIFY";
1859
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1476
1860
  accountId?: string | null | undefined;
1477
1861
  reason?: string | null | undefined;
1478
1862
  };
1863
+ } | {
1864
+ type: "IMAGE_PROCESSING_DONE";
1865
+ data: {
1866
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1867
+ variations?: {
1868
+ fileId: string;
1869
+ seed: number;
1870
+ phash: string;
1871
+ distanceOriginal: number;
1872
+ originalImageUrl: string;
1873
+ originalPhash: string;
1874
+ }[] | null | undefined;
1875
+ originalPhashes?: string[] | null | undefined;
1876
+ };
1877
+ } | {
1878
+ type: "LIFECYCLE_COMPLETED";
1879
+ data: {
1880
+ accountId: string;
1881
+ };
1882
+ } | {
1883
+ type: "LIFECYCLE_STARTED";
1884
+ data: {
1885
+ accountId: string;
1886
+ caseId: string;
1887
+ };
1479
1888
  } | {
1480
1889
  type: "REPUBLISHING";
1481
1890
  data: {
1482
- platform: "VINTED" | "SHOPIFY";
1891
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1892
+ publishingDate?: Date | null | undefined;
1483
1893
  };
1484
1894
  } | {
1485
1895
  type: "SCHEDULED";
1486
1896
  data: {
1487
- platform: "VINTED" | "SHOPIFY";
1897
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1488
1898
  publishingDate?: Date | null | undefined;
1489
1899
  };
1490
1900
  } | null | undefined;
1901
+ accountId?: string | null | undefined;
1902
+ targetDate?: Date | null | undefined;
1491
1903
  } | null | undefined;
1492
1904
  platforms?: {
1493
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1905
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1494
1906
  id: string;
1907
+ createdAt: Date;
1495
1908
  itemId: string | number;
1909
+ updatedAt: Date;
1496
1910
  accountId: string;
1497
1911
  platformId: string;
1498
1912
  platformUrl: string;
1499
1913
  platformPrice: number;
1914
+ publishedAt: Date;
1915
+ conversationId?: string | null | undefined;
1500
1916
  account?: {
1501
1917
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1502
1918
  userId: string | number;
1503
1919
  name: string;
1504
- platform: "VINTED" | "SHOPIFY";
1920
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1505
1921
  accountId: string;
1922
+ locale?: string | null | undefined;
1506
1923
  night?: {
1507
1924
  startsAt: Date;
1508
1925
  endsAt: Date;
1509
1926
  } | null | undefined;
1510
- locale?: string | null | undefined;
1927
+ favoritesMaxDelay?: number | null | undefined;
1928
+ ordersMaxDelay?: number | null | undefined;
1929
+ conversationsMaxDelay?: number | null | undefined;
1511
1930
  } | null | undefined;
1512
1931
  }[] | null | undefined;
1513
1932
  }[];
1514
1933
  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";
1934
+ type: "SALE" | "PURCHASE";
1935
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
1517
1936
  id: string;
1518
1937
  date: Date;
1519
1938
  price: number;
@@ -1523,24 +1942,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
1523
1942
  orderId: string;
1524
1943
  itemOnPlatformId: string;
1525
1944
  itemOnPlatform?: {
1526
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1945
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1527
1946
  id: string;
1947
+ createdAt: Date;
1528
1948
  itemId: string | number;
1949
+ updatedAt: Date;
1529
1950
  accountId: string;
1530
1951
  platformId: string;
1531
1952
  platformUrl: string;
1532
1953
  platformPrice: number;
1954
+ publishedAt: Date;
1955
+ conversationId?: string | null | undefined;
1533
1956
  account?: {
1534
1957
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1535
1958
  userId: string | number;
1536
1959
  name: string;
1537
- platform: "VINTED" | "SHOPIFY";
1960
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1538
1961
  accountId: string;
1962
+ locale?: string | null | undefined;
1539
1963
  night?: {
1540
1964
  startsAt: Date;
1541
1965
  endsAt: Date;
1542
1966
  } | null | undefined;
1543
- locale?: string | null | undefined;
1967
+ favoritesMaxDelay?: number | null | undefined;
1968
+ ordersMaxDelay?: number | null | undefined;
1969
+ conversationsMaxDelay?: number | null | undefined;
1544
1970
  } | null | undefined;
1545
1971
  } | null | undefined;
1546
1972
  }[] | null | undefined;
@@ -1584,10 +2010,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1584
2010
  pickupPoint?: {
1585
2011
  id: string;
1586
2012
  name: string;
1587
- accountId: string;
1588
2013
  postalCode: string;
1589
2014
  city: string;
1590
2015
  countryCode: string;
2016
+ accountId: string;
1591
2017
  addressLine1: string;
1592
2018
  platformPickupPointId: string;
1593
2019
  addressLine2?: string | null | undefined;
@@ -1606,6 +2032,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
1606
2032
  sold: boolean;
1607
2033
  customerId?: string | number | null | undefined;
1608
2034
  description?: string | null | undefined;
2035
+ state?: number | null | undefined;
1609
2036
  colorIds?: number[] | null | undefined;
1610
2037
  packageSizeId?: number | null | undefined;
1611
2038
  sizeId?: number | null | undefined;
@@ -1621,7 +2048,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
1621
2048
  userId?: string | number | null | undefined;
1622
2049
  } | null | undefined;
1623
2050
  }[] | null | undefined;
1624
- state?: number | null | undefined;
1625
2051
  fees?: {
1626
2052
  value: number;
1627
2053
  type: string;
@@ -1640,6 +2066,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1640
2066
  }[] | null | undefined;
1641
2067
  categoryId?: number | null | undefined;
1642
2068
  brandId?: string | number | null | undefined;
2069
+ estimatedPrice?: number | null | undefined;
2070
+ purchaseDate?: Date | null | undefined;
2071
+ sellingDate?: Date | null | undefined;
2072
+ sku?: string | null | undefined;
1643
2073
  files?: {
1644
2074
  fileId: string;
1645
2075
  itemId: string | number;
@@ -1654,13 +2084,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1654
2084
  }[] | null | undefined;
1655
2085
  sex?: string | null | undefined;
1656
2086
  purchasePrice?: number | null | undefined;
1657
- purchaseDate?: Date | null | undefined;
1658
2087
  purchasePlaceId?: string | number | null | undefined;
1659
2088
  purchased?: boolean | null | undefined;
1660
2089
  sellingPrice?: number | null | undefined;
1661
- sellingDate?: Date | null | undefined;
1662
2090
  sellingPlaceId?: string | number | null | undefined;
1663
- estimatedPrice?: number | null | undefined;
1664
2091
  feesSum?: number | null | undefined;
1665
2092
  customer?: {
1666
2093
  email: string;
@@ -1686,11 +2113,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
1686
2113
  fieldId: string | number;
1687
2114
  }[] | null | undefined;
1688
2115
  lastHistory?: {
1689
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
2116
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1690
2117
  id: string;
1691
2118
  createdAt: Date;
1692
2119
  itemId: string | number;
1693
2120
  data?: {
2121
+ type: "ACTION_CANCELED";
2122
+ data: {
2123
+ targetItemHistoryId: string;
2124
+ };
2125
+ } | {
1694
2126
  type: "BUYER_PAID";
1695
2127
  data: {
1696
2128
  soldAccountId: string;
@@ -1709,48 +2141,83 @@ export declare const UserOrdersSchema: z.ZodObject<{
1709
2141
  } | {
1710
2142
  type: "FAILED_TO_PUBLISH";
1711
2143
  data: {
1712
- platform: "VINTED" | "SHOPIFY";
2144
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1713
2145
  accountId?: string | null | undefined;
1714
2146
  reason?: string | null | undefined;
1715
2147
  };
2148
+ } | {
2149
+ type: "IMAGE_PROCESSING_DONE";
2150
+ data: {
2151
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2152
+ variations?: {
2153
+ fileId: string;
2154
+ seed: number;
2155
+ phash: string;
2156
+ distanceOriginal: number;
2157
+ originalImageUrl: string;
2158
+ originalPhash: string;
2159
+ }[] | null | undefined;
2160
+ originalPhashes?: string[] | null | undefined;
2161
+ };
2162
+ } | {
2163
+ type: "LIFECYCLE_COMPLETED";
2164
+ data: {
2165
+ accountId: string;
2166
+ };
2167
+ } | {
2168
+ type: "LIFECYCLE_STARTED";
2169
+ data: {
2170
+ accountId: string;
2171
+ caseId: string;
2172
+ };
1716
2173
  } | {
1717
2174
  type: "REPUBLISHING";
1718
2175
  data: {
1719
- platform: "VINTED" | "SHOPIFY";
2176
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2177
+ publishingDate?: Date | null | undefined;
1720
2178
  };
1721
2179
  } | {
1722
2180
  type: "SCHEDULED";
1723
2181
  data: {
1724
- platform: "VINTED" | "SHOPIFY";
2182
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1725
2183
  publishingDate?: Date | null | undefined;
1726
2184
  };
1727
2185
  } | null | undefined;
2186
+ accountId?: string | null | undefined;
2187
+ targetDate?: Date | null | undefined;
1728
2188
  } | null | undefined;
1729
2189
  platforms?: {
1730
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2190
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1731
2191
  id: string;
2192
+ createdAt: Date;
1732
2193
  itemId: string | number;
2194
+ updatedAt: Date;
1733
2195
  accountId: string;
1734
2196
  platformId: string;
1735
2197
  platformUrl: string;
1736
2198
  platformPrice: number;
2199
+ publishedAt: Date;
2200
+ conversationId?: string | null | undefined;
1737
2201
  account?: {
1738
2202
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1739
2203
  userId: string | number;
1740
2204
  name: string;
1741
- platform: "VINTED" | "SHOPIFY";
2205
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1742
2206
  accountId: string;
2207
+ locale?: string | null | undefined;
1743
2208
  night?: {
1744
2209
  startsAt: Date;
1745
2210
  endsAt: Date;
1746
2211
  } | null | undefined;
1747
- locale?: string | null | undefined;
2212
+ favoritesMaxDelay?: number | null | undefined;
2213
+ ordersMaxDelay?: number | null | undefined;
2214
+ conversationsMaxDelay?: number | null | undefined;
1748
2215
  } | null | undefined;
1749
2216
  }[] | null | undefined;
1750
2217
  }[];
1751
2218
  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";
2219
+ type: "SALE" | "PURCHASE";
2220
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
1754
2221
  id: string;
1755
2222
  date: Date;
1756
2223
  price: number;
@@ -1760,24 +2227,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
1760
2227
  orderId: string;
1761
2228
  itemOnPlatformId: string;
1762
2229
  itemOnPlatform?: {
1763
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2230
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1764
2231
  id: string;
2232
+ createdAt: Date;
1765
2233
  itemId: string | number;
2234
+ updatedAt: Date;
1766
2235
  accountId: string;
1767
2236
  platformId: string;
1768
2237
  platformUrl: string;
1769
2238
  platformPrice: number;
2239
+ publishedAt: Date;
2240
+ conversationId?: string | null | undefined;
1770
2241
  account?: {
1771
2242
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1772
2243
  userId: string | number;
1773
2244
  name: string;
1774
- platform: "VINTED" | "SHOPIFY";
2245
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1775
2246
  accountId: string;
2247
+ locale?: string | null | undefined;
1776
2248
  night?: {
1777
2249
  startsAt: Date;
1778
2250
  endsAt: Date;
1779
2251
  } | null | undefined;
1780
- locale?: string | null | undefined;
2252
+ favoritesMaxDelay?: number | null | undefined;
2253
+ ordersMaxDelay?: number | null | undefined;
2254
+ conversationsMaxDelay?: number | null | undefined;
1781
2255
  } | null | undefined;
1782
2256
  } | null | undefined;
1783
2257
  }[] | null | undefined;
@@ -1821,10 +2295,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1821
2295
  pickupPoint?: {
1822
2296
  id: string;
1823
2297
  name: string;
1824
- accountId: string;
1825
2298
  postalCode: string;
1826
2299
  city: string;
1827
2300
  countryCode: string;
2301
+ accountId: string;
1828
2302
  addressLine1: string;
1829
2303
  platformPickupPointId: string;
1830
2304
  addressLine2?: string | null | undefined;
@@ -1848,6 +2322,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
1848
2322
  sold: boolean;
1849
2323
  customerId?: string | number | null | undefined;
1850
2324
  description?: string | null | undefined;
2325
+ state?: number | null | undefined;
1851
2326
  colorIds?: number[] | null | undefined;
1852
2327
  packageSizeId?: number | null | undefined;
1853
2328
  sizeId?: number | null | undefined;
@@ -1863,7 +2338,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
1863
2338
  userId?: string | number | null | undefined;
1864
2339
  } | null | undefined;
1865
2340
  }[] | null | undefined;
1866
- state?: number | null | undefined;
1867
2341
  fees?: {
1868
2342
  value: number;
1869
2343
  type: string;
@@ -1882,6 +2356,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1882
2356
  }[] | null | undefined;
1883
2357
  categoryId?: number | null | undefined;
1884
2358
  brandId?: string | number | null | undefined;
2359
+ estimatedPrice?: number | null | undefined;
2360
+ purchaseDate?: Date | null | undefined;
2361
+ sellingDate?: Date | null | undefined;
2362
+ sku?: string | null | undefined;
1885
2363
  files?: {
1886
2364
  fileId: string;
1887
2365
  itemId: string | number;
@@ -1896,13 +2374,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
1896
2374
  }[] | null | undefined;
1897
2375
  sex?: string | null | undefined;
1898
2376
  purchasePrice?: number | null | undefined;
1899
- purchaseDate?: Date | null | undefined;
1900
2377
  purchasePlaceId?: string | number | null | undefined;
1901
2378
  purchased?: boolean | null | undefined;
1902
2379
  sellingPrice?: number | null | undefined;
1903
- sellingDate?: Date | null | undefined;
1904
2380
  sellingPlaceId?: string | number | null | undefined;
1905
- estimatedPrice?: number | null | undefined;
1906
2381
  feesSum?: number | null | undefined;
1907
2382
  customer?: {
1908
2383
  email: string;
@@ -1928,11 +2403,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
1928
2403
  fieldId: string | number;
1929
2404
  }[] | null | undefined;
1930
2405
  lastHistory?: {
1931
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
2406
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1932
2407
  id: string;
1933
2408
  createdAt: Date;
1934
2409
  itemId: string | number;
1935
2410
  data?: {
2411
+ type: "ACTION_CANCELED";
2412
+ data: {
2413
+ targetItemHistoryId: string;
2414
+ };
2415
+ } | {
1936
2416
  type: "BUYER_PAID";
1937
2417
  data: {
1938
2418
  soldAccountId: string;
@@ -1951,48 +2431,83 @@ export declare const UserOrdersSchema: z.ZodObject<{
1951
2431
  } | {
1952
2432
  type: "FAILED_TO_PUBLISH";
1953
2433
  data: {
1954
- platform: "VINTED" | "SHOPIFY";
2434
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1955
2435
  accountId?: string | null | undefined;
1956
2436
  reason?: string | null | undefined;
1957
2437
  };
2438
+ } | {
2439
+ type: "IMAGE_PROCESSING_DONE";
2440
+ data: {
2441
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2442
+ variations?: {
2443
+ fileId: string;
2444
+ seed: number;
2445
+ phash: string;
2446
+ distanceOriginal: number;
2447
+ originalImageUrl: string;
2448
+ originalPhash: string;
2449
+ }[] | null | undefined;
2450
+ originalPhashes?: string[] | null | undefined;
2451
+ };
2452
+ } | {
2453
+ type: "LIFECYCLE_COMPLETED";
2454
+ data: {
2455
+ accountId: string;
2456
+ };
2457
+ } | {
2458
+ type: "LIFECYCLE_STARTED";
2459
+ data: {
2460
+ accountId: string;
2461
+ caseId: string;
2462
+ };
1958
2463
  } | {
1959
2464
  type: "REPUBLISHING";
1960
2465
  data: {
1961
- platform: "VINTED" | "SHOPIFY";
2466
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2467
+ publishingDate?: Date | null | undefined;
1962
2468
  };
1963
2469
  } | {
1964
2470
  type: "SCHEDULED";
1965
2471
  data: {
1966
- platform: "VINTED" | "SHOPIFY";
2472
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1967
2473
  publishingDate?: Date | null | undefined;
1968
2474
  };
1969
2475
  } | null | undefined;
2476
+ accountId?: string | null | undefined;
2477
+ targetDate?: Date | null | undefined;
1970
2478
  } | null | undefined;
1971
2479
  platforms?: {
1972
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2480
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
1973
2481
  id: string;
2482
+ createdAt: Date;
1974
2483
  itemId: string | number;
2484
+ updatedAt: Date;
1975
2485
  accountId: string;
1976
2486
  platformId: string;
1977
2487
  platformUrl: string;
1978
2488
  platformPrice: number;
2489
+ publishedAt: Date;
2490
+ conversationId?: string | null | undefined;
1979
2491
  account?: {
1980
2492
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1981
2493
  userId: string | number;
1982
2494
  name: string;
1983
- platform: "VINTED" | "SHOPIFY";
2495
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1984
2496
  accountId: string;
2497
+ locale?: string | null | undefined;
1985
2498
  night?: {
1986
2499
  startsAt: Date;
1987
2500
  endsAt: Date;
1988
2501
  } | null | undefined;
1989
- locale?: string | null | undefined;
2502
+ favoritesMaxDelay?: number | null | undefined;
2503
+ ordersMaxDelay?: number | null | undefined;
2504
+ conversationsMaxDelay?: number | null | undefined;
1990
2505
  } | null | undefined;
1991
2506
  }[] | null | undefined;
1992
2507
  }[];
1993
2508
  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";
2509
+ type: "SALE" | "PURCHASE";
2510
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
1996
2511
  id: string;
1997
2512
  date: Date;
1998
2513
  price: number;
@@ -2002,24 +2517,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
2002
2517
  orderId: string;
2003
2518
  itemOnPlatformId: string;
2004
2519
  itemOnPlatform?: {
2005
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2520
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
2006
2521
  id: string;
2522
+ createdAt: Date;
2007
2523
  itemId: string | number;
2524
+ updatedAt: Date;
2008
2525
  accountId: string;
2009
2526
  platformId: string;
2010
2527
  platformUrl: string;
2011
2528
  platformPrice: number;
2529
+ publishedAt: Date;
2530
+ conversationId?: string | null | undefined;
2012
2531
  account?: {
2013
2532
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2014
2533
  userId: string | number;
2015
2534
  name: string;
2016
- platform: "VINTED" | "SHOPIFY";
2535
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2017
2536
  accountId: string;
2537
+ locale?: string | null | undefined;
2018
2538
  night?: {
2019
2539
  startsAt: Date;
2020
2540
  endsAt: Date;
2021
2541
  } | null | undefined;
2022
- locale?: string | null | undefined;
2542
+ favoritesMaxDelay?: number | null | undefined;
2543
+ ordersMaxDelay?: number | null | undefined;
2544
+ conversationsMaxDelay?: number | null | undefined;
2023
2545
  } | null | undefined;
2024
2546
  } | null | undefined;
2025
2547
  }[] | null | undefined;
@@ -2063,10 +2585,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
2063
2585
  pickupPoint?: {
2064
2586
  id: string;
2065
2587
  name: string;
2066
- accountId: string;
2067
2588
  postalCode: string;
2068
2589
  city: string;
2069
2590
  countryCode: string;
2591
+ accountId: string;
2070
2592
  addressLine1: string;
2071
2593
  platformPickupPointId: string;
2072
2594
  addressLine2?: string | null | undefined;
@@ -2091,6 +2613,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
2091
2613
  sold: boolean;
2092
2614
  customerId?: string | number | null | undefined;
2093
2615
  description?: string | null | undefined;
2616
+ state?: number | null | undefined;
2094
2617
  colorIds?: number[] | null | undefined;
2095
2618
  packageSizeId?: number | null | undefined;
2096
2619
  sizeId?: number | null | undefined;
@@ -2106,7 +2629,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
2106
2629
  userId?: string | number | null | undefined;
2107
2630
  } | null | undefined;
2108
2631
  }[] | null | undefined;
2109
- state?: number | null | undefined;
2110
2632
  fees?: {
2111
2633
  value: number;
2112
2634
  type: string;
@@ -2125,6 +2647,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
2125
2647
  }[] | null | undefined;
2126
2648
  categoryId?: number | null | undefined;
2127
2649
  brandId?: string | number | null | undefined;
2650
+ estimatedPrice?: number | null | undefined;
2651
+ purchaseDate?: Date | null | undefined;
2652
+ sellingDate?: Date | null | undefined;
2653
+ sku?: string | null | undefined;
2128
2654
  files?: {
2129
2655
  fileId: string;
2130
2656
  itemId: string | number;
@@ -2139,13 +2665,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
2139
2665
  }[] | null | undefined;
2140
2666
  sex?: string | null | undefined;
2141
2667
  purchasePrice?: number | null | undefined;
2142
- purchaseDate?: Date | null | undefined;
2143
2668
  purchasePlaceId?: string | number | null | undefined;
2144
2669
  purchased?: boolean | null | undefined;
2145
2670
  sellingPrice?: number | null | undefined;
2146
- sellingDate?: Date | null | undefined;
2147
2671
  sellingPlaceId?: string | number | null | undefined;
2148
- estimatedPrice?: number | null | undefined;
2149
2672
  feesSum?: number | null | undefined;
2150
2673
  customer?: {
2151
2674
  email: string;
@@ -2171,11 +2694,16 @@ export declare const UserOrdersSchema: z.ZodObject<{
2171
2694
  fieldId: string | number;
2172
2695
  }[] | null | undefined;
2173
2696
  lastHistory?: {
2174
- type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
2697
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "CANCELED" | "DISPUTE" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
2175
2698
  id: string;
2176
2699
  createdAt: Date;
2177
2700
  itemId: string | number;
2178
2701
  data?: {
2702
+ type: "ACTION_CANCELED";
2703
+ data: {
2704
+ targetItemHistoryId: string;
2705
+ };
2706
+ } | {
2179
2707
  type: "BUYER_PAID";
2180
2708
  data: {
2181
2709
  soldAccountId: string;
@@ -2194,48 +2722,83 @@ export declare const UserOrdersSchema: z.ZodObject<{
2194
2722
  } | {
2195
2723
  type: "FAILED_TO_PUBLISH";
2196
2724
  data: {
2197
- platform: "VINTED" | "SHOPIFY";
2725
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2198
2726
  accountId?: string | null | undefined;
2199
2727
  reason?: string | null | undefined;
2200
2728
  };
2729
+ } | {
2730
+ type: "IMAGE_PROCESSING_DONE";
2731
+ data: {
2732
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2733
+ variations?: {
2734
+ fileId: string;
2735
+ seed: number;
2736
+ phash: string;
2737
+ distanceOriginal: number;
2738
+ originalImageUrl: string;
2739
+ originalPhash: string;
2740
+ }[] | null | undefined;
2741
+ originalPhashes?: string[] | null | undefined;
2742
+ };
2743
+ } | {
2744
+ type: "LIFECYCLE_COMPLETED";
2745
+ data: {
2746
+ accountId: string;
2747
+ };
2748
+ } | {
2749
+ type: "LIFECYCLE_STARTED";
2750
+ data: {
2751
+ accountId: string;
2752
+ caseId: string;
2753
+ };
2201
2754
  } | {
2202
2755
  type: "REPUBLISHING";
2203
2756
  data: {
2204
- platform: "VINTED" | "SHOPIFY";
2757
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2758
+ publishingDate?: Date | null | undefined;
2205
2759
  };
2206
2760
  } | {
2207
2761
  type: "SCHEDULED";
2208
2762
  data: {
2209
- platform: "VINTED" | "SHOPIFY";
2763
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2210
2764
  publishingDate?: Date | null | undefined;
2211
2765
  };
2212
2766
  } | null | undefined;
2767
+ accountId?: string | null | undefined;
2768
+ targetDate?: Date | null | undefined;
2213
2769
  } | null | undefined;
2214
2770
  platforms?: {
2215
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2771
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
2216
2772
  id: string;
2773
+ createdAt: Date;
2217
2774
  itemId: string | number;
2775
+ updatedAt: Date;
2218
2776
  accountId: string;
2219
2777
  platformId: string;
2220
2778
  platformUrl: string;
2221
2779
  platformPrice: number;
2780
+ publishedAt: Date;
2781
+ conversationId?: string | null | undefined;
2222
2782
  account?: {
2223
2783
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2224
2784
  userId: string | number;
2225
2785
  name: string;
2226
- platform: "VINTED" | "SHOPIFY";
2786
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2227
2787
  accountId: string;
2788
+ locale?: string | null | undefined;
2228
2789
  night?: {
2229
2790
  startsAt: Date;
2230
2791
  endsAt: Date;
2231
2792
  } | null | undefined;
2232
- locale?: string | null | undefined;
2793
+ favoritesMaxDelay?: number | null | undefined;
2794
+ ordersMaxDelay?: number | null | undefined;
2795
+ conversationsMaxDelay?: number | null | undefined;
2233
2796
  } | null | undefined;
2234
2797
  }[] | null | undefined;
2235
2798
  }[];
2236
2799
  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";
2800
+ type: "SALE" | "PURCHASE";
2801
+ status: "UNKNOWN" | "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" | "ORDER_RETURNED_TO_SENDER";
2239
2802
  id: string;
2240
2803
  date: Date;
2241
2804
  price: number;
@@ -2245,24 +2808,31 @@ export declare const UserOrdersSchema: z.ZodObject<{
2245
2808
  orderId: string;
2246
2809
  itemOnPlatformId: string;
2247
2810
  itemOnPlatform?: {
2248
- status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2811
+ status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
2249
2812
  id: string;
2813
+ createdAt: Date;
2250
2814
  itemId: string | number;
2815
+ updatedAt: Date;
2251
2816
  accountId: string;
2252
2817
  platformId: string;
2253
2818
  platformUrl: string;
2254
2819
  platformPrice: number;
2820
+ publishedAt: Date;
2821
+ conversationId?: string | null | undefined;
2255
2822
  account?: {
2256
2823
  status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2257
2824
  userId: string | number;
2258
2825
  name: string;
2259
- platform: "VINTED" | "SHOPIFY";
2826
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2260
2827
  accountId: string;
2828
+ locale?: string | null | undefined;
2261
2829
  night?: {
2262
2830
  startsAt: Date;
2263
2831
  endsAt: Date;
2264
2832
  } | null | undefined;
2265
- locale?: string | null | undefined;
2833
+ favoritesMaxDelay?: number | null | undefined;
2834
+ ordersMaxDelay?: number | null | undefined;
2835
+ conversationsMaxDelay?: number | null | undefined;
2266
2836
  } | null | undefined;
2267
2837
  } | null | undefined;
2268
2838
  }[] | null | undefined;
@@ -2306,10 +2876,10 @@ export declare const UserOrdersSchema: z.ZodObject<{
2306
2876
  pickupPoint?: {
2307
2877
  id: string;
2308
2878
  name: string;
2309
- accountId: string;
2310
2879
  postalCode: string;
2311
2880
  city: string;
2312
2881
  countryCode: string;
2882
+ accountId: string;
2313
2883
  addressLine1: string;
2314
2884
  platformPickupPointId: string;
2315
2885
  addressLine2?: string | null | undefined;