controlresell 2.8.4 → 2.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -6
- package/src/com/controlresell/models/filters/SavedFilters.d.ts +25 -48
- package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
- package/src/com/controlresell/models/filters/SavedFilters.js +1 -3
- package/src/com/controlresell/models/filters/SavedFilters.js.map +1 -1
- package/src/com/controlresell/models/filters/SavedFilters.ts +1 -3
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +25 -48
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/filters/SavedFiltersPayload.js +1 -3
- package/src/com/controlresell/models/filters/SavedFiltersPayload.js.map +1 -1
- package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +1 -3
- package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts +10 -5
- package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts.map +1 -1
- package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts +10 -5
- package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +89 -34
- package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +8 -8
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +34 -14
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +722 -159
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +58 -17
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +594 -125
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/pickups/PickupPoint.d.ts +2 -2
- package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.d.ts +4 -4
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +24 -9
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts.map +1 -1
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +24 -9
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts.map +1 -1
- package/src/com/controlresell/models/users/platforms/UserOnPlatformRequest.d.ts +3 -3
- package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +7 -7
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1092 -250
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +10 -10
|
@@ -8,7 +8,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
8
8
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
10
10
|
accountId: z.ZodString;
|
|
11
|
-
platform: z.ZodEnum<["
|
|
11
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -22,28 +22,37 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
22
22
|
startsAt: Date;
|
|
23
23
|
endsAt: Date;
|
|
24
24
|
}>>>;
|
|
25
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
28
|
}, "strip", z.ZodTypeAny, {
|
|
26
29
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
27
30
|
userId: string | number;
|
|
28
31
|
name: string;
|
|
29
|
-
platform: "
|
|
32
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
30
33
|
accountId: string;
|
|
34
|
+
locale?: string | null | undefined;
|
|
31
35
|
night?: {
|
|
32
36
|
startsAt: Date;
|
|
33
37
|
endsAt: Date;
|
|
34
38
|
} | null | undefined;
|
|
35
|
-
|
|
39
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
40
|
+
ordersMaxDelay?: number | null | undefined;
|
|
41
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
36
42
|
}, {
|
|
37
43
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
38
44
|
userId: string | number;
|
|
39
45
|
name: string;
|
|
40
|
-
platform: "
|
|
46
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
41
47
|
accountId: string;
|
|
48
|
+
locale?: string | null | undefined;
|
|
42
49
|
night?: {
|
|
43
50
|
startsAt: Date;
|
|
44
51
|
endsAt: Date;
|
|
45
52
|
} | null | undefined;
|
|
46
|
-
|
|
53
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
54
|
+
ordersMaxDelay?: number | null | undefined;
|
|
55
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
47
56
|
}>>>;
|
|
48
57
|
lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
58
|
id: z.ZodString;
|
|
@@ -68,7 +77,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
68
77
|
createdAt: Date;
|
|
69
78
|
messageId: string;
|
|
70
79
|
}>, "many">>>;
|
|
71
|
-
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "
|
|
80
|
+
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "VISION", "PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_LAST_OFFER", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
|
|
72
81
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
82
|
createdAt: z.ZodDate;
|
|
74
83
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -80,7 +89,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
80
89
|
originalPrice: z.ZodNumber;
|
|
81
90
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
82
91
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
status: "
|
|
92
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
84
93
|
id: string;
|
|
85
94
|
price: number;
|
|
86
95
|
messageId: string;
|
|
@@ -88,7 +97,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
88
97
|
transactionId?: string | null | undefined;
|
|
89
98
|
platformOfferId?: string | null | undefined;
|
|
90
99
|
}, {
|
|
91
|
-
status: "
|
|
100
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
92
101
|
id: string;
|
|
93
102
|
price: number;
|
|
94
103
|
messageId: string;
|
|
@@ -163,7 +172,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
163
172
|
conversationId: string;
|
|
164
173
|
body?: string | null | undefined;
|
|
165
174
|
offer?: {
|
|
166
|
-
status: "
|
|
175
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
167
176
|
id: string;
|
|
168
177
|
price: number;
|
|
169
178
|
messageId: string;
|
|
@@ -191,7 +200,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
191
200
|
createdAt: Date;
|
|
192
201
|
messageId: string;
|
|
193
202
|
}[] | null | undefined;
|
|
194
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
203
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
195
204
|
translation?: {
|
|
196
205
|
messageId: string;
|
|
197
206
|
body: string;
|
|
@@ -205,7 +214,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
205
214
|
conversationId: string;
|
|
206
215
|
body?: string | null | undefined;
|
|
207
216
|
offer?: {
|
|
208
|
-
status: "
|
|
217
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
209
218
|
id: string;
|
|
210
219
|
price: number;
|
|
211
220
|
messageId: string;
|
|
@@ -233,7 +242,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
233
242
|
createdAt: Date;
|
|
234
243
|
messageId: string;
|
|
235
244
|
}[] | null | undefined;
|
|
236
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
245
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
237
246
|
translation?: {
|
|
238
247
|
messageId: string;
|
|
239
248
|
body: string;
|
|
@@ -313,13 +322,16 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
313
322
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
314
323
|
userId: string | number;
|
|
315
324
|
name: string;
|
|
316
|
-
platform: "
|
|
325
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
317
326
|
accountId: string;
|
|
327
|
+
locale?: string | null | undefined;
|
|
318
328
|
night?: {
|
|
319
329
|
startsAt: Date;
|
|
320
330
|
endsAt: Date;
|
|
321
331
|
} | null | undefined;
|
|
322
|
-
|
|
332
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
333
|
+
ordersMaxDelay?: number | null | undefined;
|
|
334
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
323
335
|
} | null | undefined;
|
|
324
336
|
users?: {
|
|
325
337
|
id: string;
|
|
@@ -346,7 +358,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
346
358
|
conversationId: string;
|
|
347
359
|
body?: string | null | undefined;
|
|
348
360
|
offer?: {
|
|
349
|
-
status: "
|
|
361
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
350
362
|
id: string;
|
|
351
363
|
price: number;
|
|
352
364
|
messageId: string;
|
|
@@ -374,7 +386,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
374
386
|
createdAt: Date;
|
|
375
387
|
messageId: string;
|
|
376
388
|
}[] | null | undefined;
|
|
377
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
389
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
378
390
|
translation?: {
|
|
379
391
|
messageId: string;
|
|
380
392
|
body: string;
|
|
@@ -392,13 +404,16 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
392
404
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
393
405
|
userId: string | number;
|
|
394
406
|
name: string;
|
|
395
|
-
platform: "
|
|
407
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
396
408
|
accountId: string;
|
|
409
|
+
locale?: string | null | undefined;
|
|
397
410
|
night?: {
|
|
398
411
|
startsAt: Date;
|
|
399
412
|
endsAt: Date;
|
|
400
413
|
} | null | undefined;
|
|
401
|
-
|
|
414
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
415
|
+
ordersMaxDelay?: number | null | undefined;
|
|
416
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
402
417
|
} | null | undefined;
|
|
403
418
|
users?: {
|
|
404
419
|
id: string;
|
|
@@ -425,7 +440,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
425
440
|
conversationId: string;
|
|
426
441
|
body?: string | null | undefined;
|
|
427
442
|
offer?: {
|
|
428
|
-
status: "
|
|
443
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
429
444
|
id: string;
|
|
430
445
|
price: number;
|
|
431
446
|
messageId: string;
|
|
@@ -453,7 +468,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
453
468
|
createdAt: Date;
|
|
454
469
|
messageId: string;
|
|
455
470
|
}[] | null | undefined;
|
|
456
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
471
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
457
472
|
translation?: {
|
|
458
473
|
messageId: string;
|
|
459
474
|
body: string;
|
|
@@ -485,7 +500,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
485
500
|
createdAt: Date;
|
|
486
501
|
messageId: string;
|
|
487
502
|
}>, "many">>>;
|
|
488
|
-
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "
|
|
503
|
+
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "VISION", "PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_LAST_OFFER", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
|
|
489
504
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
505
|
createdAt: z.ZodDate;
|
|
491
506
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -497,7 +512,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
497
512
|
originalPrice: z.ZodNumber;
|
|
498
513
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
499
514
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
status: "
|
|
515
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
501
516
|
id: string;
|
|
502
517
|
price: number;
|
|
503
518
|
messageId: string;
|
|
@@ -505,7 +520,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
505
520
|
transactionId?: string | null | undefined;
|
|
506
521
|
platformOfferId?: string | null | undefined;
|
|
507
522
|
}, {
|
|
508
|
-
status: "
|
|
523
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
509
524
|
id: string;
|
|
510
525
|
price: number;
|
|
511
526
|
messageId: string;
|
|
@@ -580,7 +595,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
580
595
|
conversationId: string;
|
|
581
596
|
body?: string | null | undefined;
|
|
582
597
|
offer?: {
|
|
583
|
-
status: "
|
|
598
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
584
599
|
id: string;
|
|
585
600
|
price: number;
|
|
586
601
|
messageId: string;
|
|
@@ -608,7 +623,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
608
623
|
createdAt: Date;
|
|
609
624
|
messageId: string;
|
|
610
625
|
}[] | null | undefined;
|
|
611
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
626
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
612
627
|
translation?: {
|
|
613
628
|
messageId: string;
|
|
614
629
|
body: string;
|
|
@@ -622,7 +637,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
622
637
|
conversationId: string;
|
|
623
638
|
body?: string | null | undefined;
|
|
624
639
|
offer?: {
|
|
625
|
-
status: "
|
|
640
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
626
641
|
id: string;
|
|
627
642
|
price: number;
|
|
628
643
|
messageId: string;
|
|
@@ -650,7 +665,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
650
665
|
createdAt: Date;
|
|
651
666
|
messageId: string;
|
|
652
667
|
}[] | null | undefined;
|
|
653
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
668
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
654
669
|
translation?: {
|
|
655
670
|
messageId: string;
|
|
656
671
|
body: string;
|
|
@@ -670,13 +685,16 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
670
685
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
671
686
|
userId: string | number;
|
|
672
687
|
name: string;
|
|
673
|
-
platform: "
|
|
688
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
674
689
|
accountId: string;
|
|
690
|
+
locale?: string | null | undefined;
|
|
675
691
|
night?: {
|
|
676
692
|
startsAt: Date;
|
|
677
693
|
endsAt: Date;
|
|
678
694
|
} | null | undefined;
|
|
679
|
-
|
|
695
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
696
|
+
ordersMaxDelay?: number | null | undefined;
|
|
697
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
680
698
|
} | null | undefined;
|
|
681
699
|
users?: {
|
|
682
700
|
id: string;
|
|
@@ -703,7 +721,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
703
721
|
conversationId: string;
|
|
704
722
|
body?: string | null | undefined;
|
|
705
723
|
offer?: {
|
|
706
|
-
status: "
|
|
724
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
707
725
|
id: string;
|
|
708
726
|
price: number;
|
|
709
727
|
messageId: string;
|
|
@@ -731,7 +749,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
731
749
|
createdAt: Date;
|
|
732
750
|
messageId: string;
|
|
733
751
|
}[] | null | undefined;
|
|
734
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
752
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
735
753
|
translation?: {
|
|
736
754
|
messageId: string;
|
|
737
755
|
body: string;
|
|
@@ -748,7 +766,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
748
766
|
conversationId: string;
|
|
749
767
|
body?: string | null | undefined;
|
|
750
768
|
offer?: {
|
|
751
|
-
status: "
|
|
769
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
752
770
|
id: string;
|
|
753
771
|
price: number;
|
|
754
772
|
messageId: string;
|
|
@@ -776,7 +794,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
776
794
|
createdAt: Date;
|
|
777
795
|
messageId: string;
|
|
778
796
|
}[] | null | undefined;
|
|
779
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
797
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
780
798
|
translation?: {
|
|
781
799
|
messageId: string;
|
|
782
800
|
body: string;
|
|
@@ -795,13 +813,16 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
795
813
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
796
814
|
userId: string | number;
|
|
797
815
|
name: string;
|
|
798
|
-
platform: "
|
|
816
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
799
817
|
accountId: string;
|
|
818
|
+
locale?: string | null | undefined;
|
|
800
819
|
night?: {
|
|
801
820
|
startsAt: Date;
|
|
802
821
|
endsAt: Date;
|
|
803
822
|
} | null | undefined;
|
|
804
|
-
|
|
823
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
824
|
+
ordersMaxDelay?: number | null | undefined;
|
|
825
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
805
826
|
} | null | undefined;
|
|
806
827
|
users?: {
|
|
807
828
|
id: string;
|
|
@@ -828,7 +849,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
828
849
|
conversationId: string;
|
|
829
850
|
body?: string | null | undefined;
|
|
830
851
|
offer?: {
|
|
831
|
-
status: "
|
|
852
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
832
853
|
id: string;
|
|
833
854
|
price: number;
|
|
834
855
|
messageId: string;
|
|
@@ -856,7 +877,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
856
877
|
createdAt: Date;
|
|
857
878
|
messageId: string;
|
|
858
879
|
}[] | null | undefined;
|
|
859
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
880
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
860
881
|
translation?: {
|
|
861
882
|
messageId: string;
|
|
862
883
|
body: string;
|
|
@@ -873,7 +894,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
873
894
|
conversationId: string;
|
|
874
895
|
body?: string | null | undefined;
|
|
875
896
|
offer?: {
|
|
876
|
-
status: "
|
|
897
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
877
898
|
id: string;
|
|
878
899
|
price: number;
|
|
879
900
|
messageId: string;
|
|
@@ -901,7 +922,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
901
922
|
createdAt: Date;
|
|
902
923
|
messageId: string;
|
|
903
924
|
}[] | null | undefined;
|
|
904
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
925
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
905
926
|
translation?: {
|
|
906
927
|
messageId: string;
|
|
907
928
|
body: string;
|
|
@@ -1140,8 +1161,27 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1140
1161
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1141
1162
|
id: z.ZodString;
|
|
1142
1163
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1143
|
-
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"]>;
|
|
1164
|
+
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"]>;
|
|
1144
1165
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1166
|
+
data: z.ZodObject<{
|
|
1167
|
+
targetItemHistoryId: z.ZodString;
|
|
1168
|
+
}, "strip", z.ZodTypeAny, {
|
|
1169
|
+
targetItemHistoryId: string;
|
|
1170
|
+
}, {
|
|
1171
|
+
targetItemHistoryId: string;
|
|
1172
|
+
}>;
|
|
1173
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
1174
|
+
}, "strip", z.ZodTypeAny, {
|
|
1175
|
+
type: "ACTION_CANCELED";
|
|
1176
|
+
data: {
|
|
1177
|
+
targetItemHistoryId: string;
|
|
1178
|
+
};
|
|
1179
|
+
}, {
|
|
1180
|
+
type: "ACTION_CANCELED";
|
|
1181
|
+
data: {
|
|
1182
|
+
targetItemHistoryId: string;
|
|
1183
|
+
};
|
|
1184
|
+
}>, z.ZodObject<{
|
|
1145
1185
|
data: z.ZodObject<{
|
|
1146
1186
|
soldAccountId: z.ZodString;
|
|
1147
1187
|
soldOrderId: z.ZodString;
|
|
@@ -1207,15 +1247,15 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1207
1247
|
type: "EMPTY";
|
|
1208
1248
|
}>, z.ZodObject<{
|
|
1209
1249
|
data: z.ZodObject<{
|
|
1210
|
-
platform: z.ZodEnum<["
|
|
1250
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1211
1251
|
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1212
1252
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1213
1253
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
platform: "
|
|
1254
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1215
1255
|
accountId?: string | null | undefined;
|
|
1216
1256
|
reason?: string | null | undefined;
|
|
1217
1257
|
}, {
|
|
1218
|
-
platform: "
|
|
1258
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1219
1259
|
accountId?: string | null | undefined;
|
|
1220
1260
|
reason?: string | null | undefined;
|
|
1221
1261
|
}>;
|
|
@@ -1223,68 +1263,201 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1223
1263
|
}, "strip", z.ZodTypeAny, {
|
|
1224
1264
|
type: "FAILED_TO_PUBLISH";
|
|
1225
1265
|
data: {
|
|
1226
|
-
platform: "
|
|
1266
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1227
1267
|
accountId?: string | null | undefined;
|
|
1228
1268
|
reason?: string | null | undefined;
|
|
1229
1269
|
};
|
|
1230
1270
|
}, {
|
|
1231
1271
|
type: "FAILED_TO_PUBLISH";
|
|
1232
1272
|
data: {
|
|
1233
|
-
platform: "
|
|
1273
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1234
1274
|
accountId?: string | null | undefined;
|
|
1235
1275
|
reason?: string | null | undefined;
|
|
1236
1276
|
};
|
|
1237
1277
|
}>, z.ZodObject<{
|
|
1238
1278
|
data: z.ZodObject<{
|
|
1239
|
-
platform: z.ZodEnum<["
|
|
1279
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1280
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1281
|
+
fileId: z.ZodString;
|
|
1282
|
+
seed: z.ZodNumber;
|
|
1283
|
+
phash: z.ZodString;
|
|
1284
|
+
distanceOriginal: z.ZodNumber;
|
|
1285
|
+
originalImageUrl: z.ZodString;
|
|
1286
|
+
originalPhash: z.ZodString;
|
|
1287
|
+
}, "strip", z.ZodTypeAny, {
|
|
1288
|
+
fileId: string;
|
|
1289
|
+
seed: number;
|
|
1290
|
+
phash: string;
|
|
1291
|
+
distanceOriginal: number;
|
|
1292
|
+
originalImageUrl: string;
|
|
1293
|
+
originalPhash: string;
|
|
1294
|
+
}, {
|
|
1295
|
+
fileId: string;
|
|
1296
|
+
seed: number;
|
|
1297
|
+
phash: string;
|
|
1298
|
+
distanceOriginal: number;
|
|
1299
|
+
originalImageUrl: string;
|
|
1300
|
+
originalPhash: string;
|
|
1301
|
+
}>, "many">>>;
|
|
1302
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1240
1303
|
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
platform: "
|
|
1304
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1305
|
+
variations?: {
|
|
1306
|
+
fileId: string;
|
|
1307
|
+
seed: number;
|
|
1308
|
+
phash: string;
|
|
1309
|
+
distanceOriginal: number;
|
|
1310
|
+
originalImageUrl: string;
|
|
1311
|
+
originalPhash: string;
|
|
1312
|
+
}[] | null | undefined;
|
|
1313
|
+
originalPhashes?: string[] | null | undefined;
|
|
1242
1314
|
}, {
|
|
1243
|
-
platform: "
|
|
1315
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1316
|
+
variations?: {
|
|
1317
|
+
fileId: string;
|
|
1318
|
+
seed: number;
|
|
1319
|
+
phash: string;
|
|
1320
|
+
distanceOriginal: number;
|
|
1321
|
+
originalImageUrl: string;
|
|
1322
|
+
originalPhash: string;
|
|
1323
|
+
}[] | null | undefined;
|
|
1324
|
+
originalPhashes?: string[] | null | undefined;
|
|
1325
|
+
}>;
|
|
1326
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
1327
|
+
}, "strip", z.ZodTypeAny, {
|
|
1328
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1329
|
+
data: {
|
|
1330
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1331
|
+
variations?: {
|
|
1332
|
+
fileId: string;
|
|
1333
|
+
seed: number;
|
|
1334
|
+
phash: string;
|
|
1335
|
+
distanceOriginal: number;
|
|
1336
|
+
originalImageUrl: string;
|
|
1337
|
+
originalPhash: string;
|
|
1338
|
+
}[] | null | undefined;
|
|
1339
|
+
originalPhashes?: string[] | null | undefined;
|
|
1340
|
+
};
|
|
1341
|
+
}, {
|
|
1342
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1343
|
+
data: {
|
|
1344
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1345
|
+
variations?: {
|
|
1346
|
+
fileId: string;
|
|
1347
|
+
seed: number;
|
|
1348
|
+
phash: string;
|
|
1349
|
+
distanceOriginal: number;
|
|
1350
|
+
originalImageUrl: string;
|
|
1351
|
+
originalPhash: string;
|
|
1352
|
+
}[] | null | undefined;
|
|
1353
|
+
originalPhashes?: string[] | null | undefined;
|
|
1354
|
+
};
|
|
1355
|
+
}>, z.ZodObject<{
|
|
1356
|
+
data: z.ZodObject<{
|
|
1357
|
+
accountId: z.ZodString;
|
|
1358
|
+
}, "strip", z.ZodTypeAny, {
|
|
1359
|
+
accountId: string;
|
|
1360
|
+
}, {
|
|
1361
|
+
accountId: string;
|
|
1362
|
+
}>;
|
|
1363
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1366
|
+
data: {
|
|
1367
|
+
accountId: string;
|
|
1368
|
+
};
|
|
1369
|
+
}, {
|
|
1370
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1371
|
+
data: {
|
|
1372
|
+
accountId: string;
|
|
1373
|
+
};
|
|
1374
|
+
}>, z.ZodObject<{
|
|
1375
|
+
data: z.ZodObject<{
|
|
1376
|
+
accountId: z.ZodString;
|
|
1377
|
+
caseId: z.ZodString;
|
|
1378
|
+
}, "strip", z.ZodTypeAny, {
|
|
1379
|
+
accountId: string;
|
|
1380
|
+
caseId: string;
|
|
1381
|
+
}, {
|
|
1382
|
+
accountId: string;
|
|
1383
|
+
caseId: string;
|
|
1384
|
+
}>;
|
|
1385
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
1386
|
+
}, "strip", z.ZodTypeAny, {
|
|
1387
|
+
type: "LIFECYCLE_STARTED";
|
|
1388
|
+
data: {
|
|
1389
|
+
accountId: string;
|
|
1390
|
+
caseId: string;
|
|
1391
|
+
};
|
|
1392
|
+
}, {
|
|
1393
|
+
type: "LIFECYCLE_STARTED";
|
|
1394
|
+
data: {
|
|
1395
|
+
accountId: string;
|
|
1396
|
+
caseId: string;
|
|
1397
|
+
};
|
|
1398
|
+
}>, z.ZodObject<{
|
|
1399
|
+
data: z.ZodObject<{
|
|
1400
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1401
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1402
|
+
}, "strip", z.ZodTypeAny, {
|
|
1403
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1404
|
+
publishingDate?: Date | null | undefined;
|
|
1405
|
+
}, {
|
|
1406
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1407
|
+
publishingDate?: Date | null | undefined;
|
|
1244
1408
|
}>;
|
|
1245
1409
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
1246
1410
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1411
|
type: "REPUBLISHING";
|
|
1248
1412
|
data: {
|
|
1249
|
-
platform: "
|
|
1413
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1414
|
+
publishingDate?: Date | null | undefined;
|
|
1250
1415
|
};
|
|
1251
1416
|
}, {
|
|
1252
1417
|
type: "REPUBLISHING";
|
|
1253
1418
|
data: {
|
|
1254
|
-
platform: "
|
|
1419
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1420
|
+
publishingDate?: Date | null | undefined;
|
|
1255
1421
|
};
|
|
1256
1422
|
}>, z.ZodObject<{
|
|
1257
1423
|
data: z.ZodObject<{
|
|
1258
|
-
platform: z.ZodEnum<["
|
|
1424
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1259
1425
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1260
1426
|
}, "strip", z.ZodTypeAny, {
|
|
1261
|
-
platform: "
|
|
1427
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1262
1428
|
publishingDate?: Date | null | undefined;
|
|
1263
1429
|
}, {
|
|
1264
|
-
platform: "
|
|
1430
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1265
1431
|
publishingDate?: Date | null | undefined;
|
|
1266
1432
|
}>;
|
|
1267
1433
|
type: z.ZodLiteral<"SCHEDULED">;
|
|
1268
1434
|
}, "strip", z.ZodTypeAny, {
|
|
1269
1435
|
type: "SCHEDULED";
|
|
1270
1436
|
data: {
|
|
1271
|
-
platform: "
|
|
1437
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1272
1438
|
publishingDate?: Date | null | undefined;
|
|
1273
1439
|
};
|
|
1274
1440
|
}, {
|
|
1275
1441
|
type: "SCHEDULED";
|
|
1276
1442
|
data: {
|
|
1277
|
-
platform: "
|
|
1443
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1278
1444
|
publishingDate?: Date | null | undefined;
|
|
1279
1445
|
};
|
|
1280
1446
|
}>]>>>;
|
|
1281
1447
|
createdAt: z.ZodDate;
|
|
1448
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1449
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1282
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1283
|
-
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";
|
|
1451
|
+
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";
|
|
1284
1452
|
id: string;
|
|
1285
1453
|
createdAt: Date;
|
|
1286
1454
|
itemId: string | number;
|
|
1287
1455
|
data?: {
|
|
1456
|
+
type: "ACTION_CANCELED";
|
|
1457
|
+
data: {
|
|
1458
|
+
targetItemHistoryId: string;
|
|
1459
|
+
};
|
|
1460
|
+
} | {
|
|
1288
1461
|
type: "BUYER_PAID";
|
|
1289
1462
|
data: {
|
|
1290
1463
|
soldAccountId: string;
|
|
@@ -1303,28 +1476,61 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1303
1476
|
} | {
|
|
1304
1477
|
type: "FAILED_TO_PUBLISH";
|
|
1305
1478
|
data: {
|
|
1306
|
-
platform: "
|
|
1479
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1307
1480
|
accountId?: string | null | undefined;
|
|
1308
1481
|
reason?: string | null | undefined;
|
|
1309
1482
|
};
|
|
1483
|
+
} | {
|
|
1484
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1485
|
+
data: {
|
|
1486
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1487
|
+
variations?: {
|
|
1488
|
+
fileId: string;
|
|
1489
|
+
seed: number;
|
|
1490
|
+
phash: string;
|
|
1491
|
+
distanceOriginal: number;
|
|
1492
|
+
originalImageUrl: string;
|
|
1493
|
+
originalPhash: string;
|
|
1494
|
+
}[] | null | undefined;
|
|
1495
|
+
originalPhashes?: string[] | null | undefined;
|
|
1496
|
+
};
|
|
1497
|
+
} | {
|
|
1498
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1499
|
+
data: {
|
|
1500
|
+
accountId: string;
|
|
1501
|
+
};
|
|
1502
|
+
} | {
|
|
1503
|
+
type: "LIFECYCLE_STARTED";
|
|
1504
|
+
data: {
|
|
1505
|
+
accountId: string;
|
|
1506
|
+
caseId: string;
|
|
1507
|
+
};
|
|
1310
1508
|
} | {
|
|
1311
1509
|
type: "REPUBLISHING";
|
|
1312
1510
|
data: {
|
|
1313
|
-
platform: "
|
|
1511
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1512
|
+
publishingDate?: Date | null | undefined;
|
|
1314
1513
|
};
|
|
1315
1514
|
} | {
|
|
1316
1515
|
type: "SCHEDULED";
|
|
1317
1516
|
data: {
|
|
1318
|
-
platform: "
|
|
1517
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1319
1518
|
publishingDate?: Date | null | undefined;
|
|
1320
1519
|
};
|
|
1321
1520
|
} | null | undefined;
|
|
1521
|
+
accountId?: string | null | undefined;
|
|
1522
|
+
targetDate?: Date | null | undefined;
|
|
1322
1523
|
}, {
|
|
1323
|
-
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";
|
|
1524
|
+
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";
|
|
1324
1525
|
id: string;
|
|
1325
1526
|
createdAt: Date;
|
|
1326
1527
|
itemId: string | number;
|
|
1327
1528
|
data?: {
|
|
1529
|
+
type: "ACTION_CANCELED";
|
|
1530
|
+
data: {
|
|
1531
|
+
targetItemHistoryId: string;
|
|
1532
|
+
};
|
|
1533
|
+
} | {
|
|
1328
1534
|
type: "BUYER_PAID";
|
|
1329
1535
|
data: {
|
|
1330
1536
|
soldAccountId: string;
|
|
@@ -1343,22 +1549,50 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1343
1549
|
} | {
|
|
1344
1550
|
type: "FAILED_TO_PUBLISH";
|
|
1345
1551
|
data: {
|
|
1346
|
-
platform: "
|
|
1552
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1347
1553
|
accountId?: string | null | undefined;
|
|
1348
1554
|
reason?: string | null | undefined;
|
|
1349
1555
|
};
|
|
1556
|
+
} | {
|
|
1557
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1558
|
+
data: {
|
|
1559
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1560
|
+
variations?: {
|
|
1561
|
+
fileId: string;
|
|
1562
|
+
seed: number;
|
|
1563
|
+
phash: string;
|
|
1564
|
+
distanceOriginal: number;
|
|
1565
|
+
originalImageUrl: string;
|
|
1566
|
+
originalPhash: string;
|
|
1567
|
+
}[] | null | undefined;
|
|
1568
|
+
originalPhashes?: string[] | null | undefined;
|
|
1569
|
+
};
|
|
1570
|
+
} | {
|
|
1571
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1572
|
+
data: {
|
|
1573
|
+
accountId: string;
|
|
1574
|
+
};
|
|
1575
|
+
} | {
|
|
1576
|
+
type: "LIFECYCLE_STARTED";
|
|
1577
|
+
data: {
|
|
1578
|
+
accountId: string;
|
|
1579
|
+
caseId: string;
|
|
1580
|
+
};
|
|
1350
1581
|
} | {
|
|
1351
1582
|
type: "REPUBLISHING";
|
|
1352
1583
|
data: {
|
|
1353
|
-
platform: "
|
|
1584
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1585
|
+
publishingDate?: Date | null | undefined;
|
|
1354
1586
|
};
|
|
1355
1587
|
} | {
|
|
1356
1588
|
type: "SCHEDULED";
|
|
1357
1589
|
data: {
|
|
1358
|
-
platform: "
|
|
1590
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1359
1591
|
publishingDate?: Date | null | undefined;
|
|
1360
1592
|
};
|
|
1361
1593
|
} | null | undefined;
|
|
1594
|
+
accountId?: string | null | undefined;
|
|
1595
|
+
targetDate?: Date | null | undefined;
|
|
1362
1596
|
}>>>;
|
|
1363
1597
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1364
1598
|
id: z.ZodString;
|
|
@@ -1368,10 +1602,13 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1368
1602
|
platformUrl: z.ZodString;
|
|
1369
1603
|
platformPrice: z.ZodNumber;
|
|
1370
1604
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
1605
|
+
createdAt: z.ZodDate;
|
|
1606
|
+
publishedAt: z.ZodDate;
|
|
1607
|
+
updatedAt: z.ZodDate;
|
|
1371
1608
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1372
1609
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1373
1610
|
accountId: z.ZodString;
|
|
1374
|
-
platform: z.ZodEnum<["
|
|
1611
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1375
1612
|
name: z.ZodString;
|
|
1376
1613
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1377
1614
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -1385,68 +1622,92 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1385
1622
|
startsAt: Date;
|
|
1386
1623
|
endsAt: Date;
|
|
1387
1624
|
}>>>;
|
|
1625
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1626
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1627
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1388
1628
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1629
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1390
1630
|
userId: string | number;
|
|
1391
1631
|
name: string;
|
|
1392
|
-
platform: "
|
|
1632
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1393
1633
|
accountId: string;
|
|
1634
|
+
locale?: string | null | undefined;
|
|
1394
1635
|
night?: {
|
|
1395
1636
|
startsAt: Date;
|
|
1396
1637
|
endsAt: Date;
|
|
1397
1638
|
} | null | undefined;
|
|
1398
|
-
|
|
1639
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1640
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1641
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1399
1642
|
}, {
|
|
1400
1643
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1401
1644
|
userId: string | number;
|
|
1402
1645
|
name: string;
|
|
1403
|
-
platform: "
|
|
1646
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1404
1647
|
accountId: string;
|
|
1648
|
+
locale?: string | null | undefined;
|
|
1405
1649
|
night?: {
|
|
1406
1650
|
startsAt: Date;
|
|
1407
1651
|
endsAt: Date;
|
|
1408
1652
|
} | null | undefined;
|
|
1409
|
-
|
|
1653
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1654
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1655
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1410
1656
|
}>>>;
|
|
1657
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1411
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1412
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1659
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1413
1660
|
id: string;
|
|
1661
|
+
createdAt: Date;
|
|
1414
1662
|
itemId: string | number;
|
|
1663
|
+
updatedAt: Date;
|
|
1415
1664
|
accountId: string;
|
|
1416
1665
|
platformId: string;
|
|
1417
1666
|
platformUrl: string;
|
|
1418
1667
|
platformPrice: number;
|
|
1668
|
+
publishedAt: Date;
|
|
1669
|
+
conversationId?: string | null | undefined;
|
|
1419
1670
|
account?: {
|
|
1420
1671
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1421
1672
|
userId: string | number;
|
|
1422
1673
|
name: string;
|
|
1423
|
-
platform: "
|
|
1674
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1424
1675
|
accountId: string;
|
|
1676
|
+
locale?: string | null | undefined;
|
|
1425
1677
|
night?: {
|
|
1426
1678
|
startsAt: Date;
|
|
1427
1679
|
endsAt: Date;
|
|
1428
1680
|
} | null | undefined;
|
|
1429
|
-
|
|
1681
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1682
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1683
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1430
1684
|
} | null | undefined;
|
|
1431
1685
|
}, {
|
|
1432
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1686
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1433
1687
|
id: string;
|
|
1688
|
+
createdAt: Date;
|
|
1434
1689
|
itemId: string | number;
|
|
1690
|
+
updatedAt: Date;
|
|
1435
1691
|
accountId: string;
|
|
1436
1692
|
platformId: string;
|
|
1437
1693
|
platformUrl: string;
|
|
1438
1694
|
platformPrice: number;
|
|
1695
|
+
publishedAt: Date;
|
|
1696
|
+
conversationId?: string | null | undefined;
|
|
1439
1697
|
account?: {
|
|
1440
1698
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1441
1699
|
userId: string | number;
|
|
1442
1700
|
name: string;
|
|
1443
|
-
platform: "
|
|
1701
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1444
1702
|
accountId: string;
|
|
1703
|
+
locale?: string | null | undefined;
|
|
1445
1704
|
night?: {
|
|
1446
1705
|
startsAt: Date;
|
|
1447
1706
|
endsAt: Date;
|
|
1448
1707
|
} | null | undefined;
|
|
1449
|
-
|
|
1708
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1709
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1710
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1450
1711
|
} | null | undefined;
|
|
1451
1712
|
}>, "many">>>;
|
|
1452
1713
|
createdAt: z.ZodDate;
|
|
@@ -1460,6 +1721,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1460
1721
|
sold: boolean;
|
|
1461
1722
|
customerId?: string | number | null | undefined;
|
|
1462
1723
|
description?: string | null | undefined;
|
|
1724
|
+
state?: number | null | undefined;
|
|
1463
1725
|
colorIds?: number[] | null | undefined;
|
|
1464
1726
|
packageSizeId?: number | null | undefined;
|
|
1465
1727
|
sizeId?: number | null | undefined;
|
|
@@ -1475,7 +1737,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1475
1737
|
userId?: string | number | null | undefined;
|
|
1476
1738
|
} | null | undefined;
|
|
1477
1739
|
}[] | null | undefined;
|
|
1478
|
-
state?: number | null | undefined;
|
|
1479
1740
|
fees?: {
|
|
1480
1741
|
value: number;
|
|
1481
1742
|
type: string;
|
|
@@ -1494,6 +1755,9 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1494
1755
|
}[] | null | undefined;
|
|
1495
1756
|
categoryId?: number | null | undefined;
|
|
1496
1757
|
brandId?: string | number | null | undefined;
|
|
1758
|
+
estimatedPrice?: number | null | undefined;
|
|
1759
|
+
purchaseDate?: Date | null | undefined;
|
|
1760
|
+
sellingDate?: Date | null | undefined;
|
|
1497
1761
|
files?: {
|
|
1498
1762
|
fileId: string;
|
|
1499
1763
|
itemId: string | number;
|
|
@@ -1508,13 +1772,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1508
1772
|
}[] | null | undefined;
|
|
1509
1773
|
sex?: string | null | undefined;
|
|
1510
1774
|
purchasePrice?: number | null | undefined;
|
|
1511
|
-
purchaseDate?: Date | null | undefined;
|
|
1512
1775
|
purchasePlaceId?: string | number | null | undefined;
|
|
1513
1776
|
purchased?: boolean | null | undefined;
|
|
1514
1777
|
sellingPrice?: number | null | undefined;
|
|
1515
|
-
sellingDate?: Date | null | undefined;
|
|
1516
1778
|
sellingPlaceId?: string | number | null | undefined;
|
|
1517
|
-
estimatedPrice?: number | null | undefined;
|
|
1518
1779
|
feesSum?: number | null | undefined;
|
|
1519
1780
|
customer?: {
|
|
1520
1781
|
email: string;
|
|
@@ -1540,11 +1801,16 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1540
1801
|
fieldId: string | number;
|
|
1541
1802
|
}[] | null | undefined;
|
|
1542
1803
|
lastHistory?: {
|
|
1543
|
-
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";
|
|
1804
|
+
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";
|
|
1544
1805
|
id: string;
|
|
1545
1806
|
createdAt: Date;
|
|
1546
1807
|
itemId: string | number;
|
|
1547
1808
|
data?: {
|
|
1809
|
+
type: "ACTION_CANCELED";
|
|
1810
|
+
data: {
|
|
1811
|
+
targetItemHistoryId: string;
|
|
1812
|
+
};
|
|
1813
|
+
} | {
|
|
1548
1814
|
type: "BUYER_PAID";
|
|
1549
1815
|
data: {
|
|
1550
1816
|
soldAccountId: string;
|
|
@@ -1563,42 +1829,77 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1563
1829
|
} | {
|
|
1564
1830
|
type: "FAILED_TO_PUBLISH";
|
|
1565
1831
|
data: {
|
|
1566
|
-
platform: "
|
|
1832
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1567
1833
|
accountId?: string | null | undefined;
|
|
1568
1834
|
reason?: string | null | undefined;
|
|
1569
1835
|
};
|
|
1836
|
+
} | {
|
|
1837
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1838
|
+
data: {
|
|
1839
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1840
|
+
variations?: {
|
|
1841
|
+
fileId: string;
|
|
1842
|
+
seed: number;
|
|
1843
|
+
phash: string;
|
|
1844
|
+
distanceOriginal: number;
|
|
1845
|
+
originalImageUrl: string;
|
|
1846
|
+
originalPhash: string;
|
|
1847
|
+
}[] | null | undefined;
|
|
1848
|
+
originalPhashes?: string[] | null | undefined;
|
|
1849
|
+
};
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1852
|
+
data: {
|
|
1853
|
+
accountId: string;
|
|
1854
|
+
};
|
|
1855
|
+
} | {
|
|
1856
|
+
type: "LIFECYCLE_STARTED";
|
|
1857
|
+
data: {
|
|
1858
|
+
accountId: string;
|
|
1859
|
+
caseId: string;
|
|
1860
|
+
};
|
|
1570
1861
|
} | {
|
|
1571
1862
|
type: "REPUBLISHING";
|
|
1572
1863
|
data: {
|
|
1573
|
-
platform: "
|
|
1864
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1865
|
+
publishingDate?: Date | null | undefined;
|
|
1574
1866
|
};
|
|
1575
1867
|
} | {
|
|
1576
1868
|
type: "SCHEDULED";
|
|
1577
1869
|
data: {
|
|
1578
|
-
platform: "
|
|
1870
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1579
1871
|
publishingDate?: Date | null | undefined;
|
|
1580
1872
|
};
|
|
1581
1873
|
} | null | undefined;
|
|
1874
|
+
accountId?: string | null | undefined;
|
|
1875
|
+
targetDate?: Date | null | undefined;
|
|
1582
1876
|
} | null | undefined;
|
|
1583
1877
|
platforms?: {
|
|
1584
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1878
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1585
1879
|
id: string;
|
|
1880
|
+
createdAt: Date;
|
|
1586
1881
|
itemId: string | number;
|
|
1882
|
+
updatedAt: Date;
|
|
1587
1883
|
accountId: string;
|
|
1588
1884
|
platformId: string;
|
|
1589
1885
|
platformUrl: string;
|
|
1590
1886
|
platformPrice: number;
|
|
1887
|
+
publishedAt: Date;
|
|
1888
|
+
conversationId?: string | null | undefined;
|
|
1591
1889
|
account?: {
|
|
1592
1890
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1593
1891
|
userId: string | number;
|
|
1594
1892
|
name: string;
|
|
1595
|
-
platform: "
|
|
1893
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1596
1894
|
accountId: string;
|
|
1895
|
+
locale?: string | null | undefined;
|
|
1597
1896
|
night?: {
|
|
1598
1897
|
startsAt: Date;
|
|
1599
1898
|
endsAt: Date;
|
|
1600
1899
|
} | null | undefined;
|
|
1601
|
-
|
|
1900
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1901
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1902
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1602
1903
|
} | null | undefined;
|
|
1603
1904
|
}[] | null | undefined;
|
|
1604
1905
|
}, {
|
|
@@ -1610,6 +1911,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1610
1911
|
sold: boolean;
|
|
1611
1912
|
customerId?: string | number | null | undefined;
|
|
1612
1913
|
description?: string | null | undefined;
|
|
1914
|
+
state?: number | null | undefined;
|
|
1613
1915
|
colorIds?: number[] | null | undefined;
|
|
1614
1916
|
packageSizeId?: number | null | undefined;
|
|
1615
1917
|
sizeId?: number | null | undefined;
|
|
@@ -1625,7 +1927,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1625
1927
|
userId?: string | number | null | undefined;
|
|
1626
1928
|
} | null | undefined;
|
|
1627
1929
|
}[] | null | undefined;
|
|
1628
|
-
state?: number | null | undefined;
|
|
1629
1930
|
fees?: {
|
|
1630
1931
|
value: number;
|
|
1631
1932
|
type: string;
|
|
@@ -1644,6 +1945,9 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1644
1945
|
}[] | null | undefined;
|
|
1645
1946
|
categoryId?: number | null | undefined;
|
|
1646
1947
|
brandId?: string | number | null | undefined;
|
|
1948
|
+
estimatedPrice?: number | null | undefined;
|
|
1949
|
+
purchaseDate?: Date | null | undefined;
|
|
1950
|
+
sellingDate?: Date | null | undefined;
|
|
1647
1951
|
files?: {
|
|
1648
1952
|
fileId: string;
|
|
1649
1953
|
itemId: string | number;
|
|
@@ -1658,13 +1962,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1658
1962
|
}[] | null | undefined;
|
|
1659
1963
|
sex?: string | null | undefined;
|
|
1660
1964
|
purchasePrice?: number | null | undefined;
|
|
1661
|
-
purchaseDate?: Date | null | undefined;
|
|
1662
1965
|
purchasePlaceId?: string | number | null | undefined;
|
|
1663
1966
|
purchased?: boolean | null | undefined;
|
|
1664
1967
|
sellingPrice?: number | null | undefined;
|
|
1665
|
-
sellingDate?: Date | null | undefined;
|
|
1666
1968
|
sellingPlaceId?: string | number | null | undefined;
|
|
1667
|
-
estimatedPrice?: number | null | undefined;
|
|
1668
1969
|
feesSum?: number | null | undefined;
|
|
1669
1970
|
customer?: {
|
|
1670
1971
|
email: string;
|
|
@@ -1690,11 +1991,16 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1690
1991
|
fieldId: string | number;
|
|
1691
1992
|
}[] | null | undefined;
|
|
1692
1993
|
lastHistory?: {
|
|
1693
|
-
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";
|
|
1994
|
+
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";
|
|
1694
1995
|
id: string;
|
|
1695
1996
|
createdAt: Date;
|
|
1696
1997
|
itemId: string | number;
|
|
1697
1998
|
data?: {
|
|
1999
|
+
type: "ACTION_CANCELED";
|
|
2000
|
+
data: {
|
|
2001
|
+
targetItemHistoryId: string;
|
|
2002
|
+
};
|
|
2003
|
+
} | {
|
|
1698
2004
|
type: "BUYER_PAID";
|
|
1699
2005
|
data: {
|
|
1700
2006
|
soldAccountId: string;
|
|
@@ -1713,42 +2019,77 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1713
2019
|
} | {
|
|
1714
2020
|
type: "FAILED_TO_PUBLISH";
|
|
1715
2021
|
data: {
|
|
1716
|
-
platform: "
|
|
2022
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1717
2023
|
accountId?: string | null | undefined;
|
|
1718
2024
|
reason?: string | null | undefined;
|
|
1719
2025
|
};
|
|
2026
|
+
} | {
|
|
2027
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2028
|
+
data: {
|
|
2029
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2030
|
+
variations?: {
|
|
2031
|
+
fileId: string;
|
|
2032
|
+
seed: number;
|
|
2033
|
+
phash: string;
|
|
2034
|
+
distanceOriginal: number;
|
|
2035
|
+
originalImageUrl: string;
|
|
2036
|
+
originalPhash: string;
|
|
2037
|
+
}[] | null | undefined;
|
|
2038
|
+
originalPhashes?: string[] | null | undefined;
|
|
2039
|
+
};
|
|
2040
|
+
} | {
|
|
2041
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2042
|
+
data: {
|
|
2043
|
+
accountId: string;
|
|
2044
|
+
};
|
|
2045
|
+
} | {
|
|
2046
|
+
type: "LIFECYCLE_STARTED";
|
|
2047
|
+
data: {
|
|
2048
|
+
accountId: string;
|
|
2049
|
+
caseId: string;
|
|
2050
|
+
};
|
|
1720
2051
|
} | {
|
|
1721
2052
|
type: "REPUBLISHING";
|
|
1722
2053
|
data: {
|
|
1723
|
-
platform: "
|
|
2054
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2055
|
+
publishingDate?: Date | null | undefined;
|
|
1724
2056
|
};
|
|
1725
2057
|
} | {
|
|
1726
2058
|
type: "SCHEDULED";
|
|
1727
2059
|
data: {
|
|
1728
|
-
platform: "
|
|
2060
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1729
2061
|
publishingDate?: Date | null | undefined;
|
|
1730
2062
|
};
|
|
1731
2063
|
} | null | undefined;
|
|
2064
|
+
accountId?: string | null | undefined;
|
|
2065
|
+
targetDate?: Date | null | undefined;
|
|
1732
2066
|
} | null | undefined;
|
|
1733
2067
|
platforms?: {
|
|
1734
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2068
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1735
2069
|
id: string;
|
|
2070
|
+
createdAt: Date;
|
|
1736
2071
|
itemId: string | number;
|
|
2072
|
+
updatedAt: Date;
|
|
1737
2073
|
accountId: string;
|
|
1738
2074
|
platformId: string;
|
|
1739
2075
|
platformUrl: string;
|
|
1740
2076
|
platformPrice: number;
|
|
2077
|
+
publishedAt: Date;
|
|
2078
|
+
conversationId?: string | null | undefined;
|
|
1741
2079
|
account?: {
|
|
1742
2080
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1743
2081
|
userId: string | number;
|
|
1744
2082
|
name: string;
|
|
1745
|
-
platform: "
|
|
2083
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1746
2084
|
accountId: string;
|
|
2085
|
+
locale?: string | null | undefined;
|
|
1747
2086
|
night?: {
|
|
1748
2087
|
startsAt: Date;
|
|
1749
2088
|
endsAt: Date;
|
|
1750
2089
|
} | null | undefined;
|
|
1751
|
-
|
|
2090
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2091
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2092
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1752
2093
|
} | null | undefined;
|
|
1753
2094
|
}[] | null | undefined;
|
|
1754
2095
|
}>;
|
|
@@ -1765,6 +2106,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1765
2106
|
sold: boolean;
|
|
1766
2107
|
customerId?: string | number | null | undefined;
|
|
1767
2108
|
description?: string | null | undefined;
|
|
2109
|
+
state?: number | null | undefined;
|
|
1768
2110
|
colorIds?: number[] | null | undefined;
|
|
1769
2111
|
packageSizeId?: number | null | undefined;
|
|
1770
2112
|
sizeId?: number | null | undefined;
|
|
@@ -1780,7 +2122,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1780
2122
|
userId?: string | number | null | undefined;
|
|
1781
2123
|
} | null | undefined;
|
|
1782
2124
|
}[] | null | undefined;
|
|
1783
|
-
state?: number | null | undefined;
|
|
1784
2125
|
fees?: {
|
|
1785
2126
|
value: number;
|
|
1786
2127
|
type: string;
|
|
@@ -1799,6 +2140,9 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1799
2140
|
}[] | null | undefined;
|
|
1800
2141
|
categoryId?: number | null | undefined;
|
|
1801
2142
|
brandId?: string | number | null | undefined;
|
|
2143
|
+
estimatedPrice?: number | null | undefined;
|
|
2144
|
+
purchaseDate?: Date | null | undefined;
|
|
2145
|
+
sellingDate?: Date | null | undefined;
|
|
1802
2146
|
files?: {
|
|
1803
2147
|
fileId: string;
|
|
1804
2148
|
itemId: string | number;
|
|
@@ -1813,13 +2157,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1813
2157
|
}[] | null | undefined;
|
|
1814
2158
|
sex?: string | null | undefined;
|
|
1815
2159
|
purchasePrice?: number | null | undefined;
|
|
1816
|
-
purchaseDate?: Date | null | undefined;
|
|
1817
2160
|
purchasePlaceId?: string | number | null | undefined;
|
|
1818
2161
|
purchased?: boolean | null | undefined;
|
|
1819
2162
|
sellingPrice?: number | null | undefined;
|
|
1820
|
-
sellingDate?: Date | null | undefined;
|
|
1821
2163
|
sellingPlaceId?: string | number | null | undefined;
|
|
1822
|
-
estimatedPrice?: number | null | undefined;
|
|
1823
2164
|
feesSum?: number | null | undefined;
|
|
1824
2165
|
customer?: {
|
|
1825
2166
|
email: string;
|
|
@@ -1845,11 +2186,16 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1845
2186
|
fieldId: string | number;
|
|
1846
2187
|
}[] | null | undefined;
|
|
1847
2188
|
lastHistory?: {
|
|
1848
|
-
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";
|
|
2189
|
+
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";
|
|
1849
2190
|
id: string;
|
|
1850
2191
|
createdAt: Date;
|
|
1851
2192
|
itemId: string | number;
|
|
1852
2193
|
data?: {
|
|
2194
|
+
type: "ACTION_CANCELED";
|
|
2195
|
+
data: {
|
|
2196
|
+
targetItemHistoryId: string;
|
|
2197
|
+
};
|
|
2198
|
+
} | {
|
|
1853
2199
|
type: "BUYER_PAID";
|
|
1854
2200
|
data: {
|
|
1855
2201
|
soldAccountId: string;
|
|
@@ -1868,42 +2214,77 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1868
2214
|
} | {
|
|
1869
2215
|
type: "FAILED_TO_PUBLISH";
|
|
1870
2216
|
data: {
|
|
1871
|
-
platform: "
|
|
2217
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1872
2218
|
accountId?: string | null | undefined;
|
|
1873
2219
|
reason?: string | null | undefined;
|
|
1874
2220
|
};
|
|
2221
|
+
} | {
|
|
2222
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2223
|
+
data: {
|
|
2224
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2225
|
+
variations?: {
|
|
2226
|
+
fileId: string;
|
|
2227
|
+
seed: number;
|
|
2228
|
+
phash: string;
|
|
2229
|
+
distanceOriginal: number;
|
|
2230
|
+
originalImageUrl: string;
|
|
2231
|
+
originalPhash: string;
|
|
2232
|
+
}[] | null | undefined;
|
|
2233
|
+
originalPhashes?: string[] | null | undefined;
|
|
2234
|
+
};
|
|
2235
|
+
} | {
|
|
2236
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2237
|
+
data: {
|
|
2238
|
+
accountId: string;
|
|
2239
|
+
};
|
|
2240
|
+
} | {
|
|
2241
|
+
type: "LIFECYCLE_STARTED";
|
|
2242
|
+
data: {
|
|
2243
|
+
accountId: string;
|
|
2244
|
+
caseId: string;
|
|
2245
|
+
};
|
|
1875
2246
|
} | {
|
|
1876
2247
|
type: "REPUBLISHING";
|
|
1877
2248
|
data: {
|
|
1878
|
-
platform: "
|
|
2249
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2250
|
+
publishingDate?: Date | null | undefined;
|
|
1879
2251
|
};
|
|
1880
2252
|
} | {
|
|
1881
2253
|
type: "SCHEDULED";
|
|
1882
2254
|
data: {
|
|
1883
|
-
platform: "
|
|
2255
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1884
2256
|
publishingDate?: Date | null | undefined;
|
|
1885
2257
|
};
|
|
1886
2258
|
} | null | undefined;
|
|
2259
|
+
accountId?: string | null | undefined;
|
|
2260
|
+
targetDate?: Date | null | undefined;
|
|
1887
2261
|
} | null | undefined;
|
|
1888
2262
|
platforms?: {
|
|
1889
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2263
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1890
2264
|
id: string;
|
|
2265
|
+
createdAt: Date;
|
|
1891
2266
|
itemId: string | number;
|
|
2267
|
+
updatedAt: Date;
|
|
1892
2268
|
accountId: string;
|
|
1893
2269
|
platformId: string;
|
|
1894
2270
|
platformUrl: string;
|
|
1895
2271
|
platformPrice: number;
|
|
2272
|
+
publishedAt: Date;
|
|
2273
|
+
conversationId?: string | null | undefined;
|
|
1896
2274
|
account?: {
|
|
1897
2275
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1898
2276
|
userId: string | number;
|
|
1899
2277
|
name: string;
|
|
1900
|
-
platform: "
|
|
2278
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1901
2279
|
accountId: string;
|
|
2280
|
+
locale?: string | null | undefined;
|
|
1902
2281
|
night?: {
|
|
1903
2282
|
startsAt: Date;
|
|
1904
2283
|
endsAt: Date;
|
|
1905
2284
|
} | null | undefined;
|
|
1906
|
-
|
|
2285
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2286
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2287
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1907
2288
|
} | null | undefined;
|
|
1908
2289
|
}[] | null | undefined;
|
|
1909
2290
|
};
|
|
@@ -1919,6 +2300,7 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1919
2300
|
sold: boolean;
|
|
1920
2301
|
customerId?: string | number | null | undefined;
|
|
1921
2302
|
description?: string | null | undefined;
|
|
2303
|
+
state?: number | null | undefined;
|
|
1922
2304
|
colorIds?: number[] | null | undefined;
|
|
1923
2305
|
packageSizeId?: number | null | undefined;
|
|
1924
2306
|
sizeId?: number | null | undefined;
|
|
@@ -1934,7 +2316,6 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1934
2316
|
userId?: string | number | null | undefined;
|
|
1935
2317
|
} | null | undefined;
|
|
1936
2318
|
}[] | null | undefined;
|
|
1937
|
-
state?: number | null | undefined;
|
|
1938
2319
|
fees?: {
|
|
1939
2320
|
value: number;
|
|
1940
2321
|
type: string;
|
|
@@ -1953,6 +2334,9 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1953
2334
|
}[] | null | undefined;
|
|
1954
2335
|
categoryId?: number | null | undefined;
|
|
1955
2336
|
brandId?: string | number | null | undefined;
|
|
2337
|
+
estimatedPrice?: number | null | undefined;
|
|
2338
|
+
purchaseDate?: Date | null | undefined;
|
|
2339
|
+
sellingDate?: Date | null | undefined;
|
|
1956
2340
|
files?: {
|
|
1957
2341
|
fileId: string;
|
|
1958
2342
|
itemId: string | number;
|
|
@@ -1967,13 +2351,10 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1967
2351
|
}[] | null | undefined;
|
|
1968
2352
|
sex?: string | null | undefined;
|
|
1969
2353
|
purchasePrice?: number | null | undefined;
|
|
1970
|
-
purchaseDate?: Date | null | undefined;
|
|
1971
2354
|
purchasePlaceId?: string | number | null | undefined;
|
|
1972
2355
|
purchased?: boolean | null | undefined;
|
|
1973
2356
|
sellingPrice?: number | null | undefined;
|
|
1974
|
-
sellingDate?: Date | null | undefined;
|
|
1975
2357
|
sellingPlaceId?: string | number | null | undefined;
|
|
1976
|
-
estimatedPrice?: number | null | undefined;
|
|
1977
2358
|
feesSum?: number | null | undefined;
|
|
1978
2359
|
customer?: {
|
|
1979
2360
|
email: string;
|
|
@@ -1999,11 +2380,16 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
1999
2380
|
fieldId: string | number;
|
|
2000
2381
|
}[] | null | undefined;
|
|
2001
2382
|
lastHistory?: {
|
|
2002
|
-
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";
|
|
2383
|
+
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";
|
|
2003
2384
|
id: string;
|
|
2004
2385
|
createdAt: Date;
|
|
2005
2386
|
itemId: string | number;
|
|
2006
2387
|
data?: {
|
|
2388
|
+
type: "ACTION_CANCELED";
|
|
2389
|
+
data: {
|
|
2390
|
+
targetItemHistoryId: string;
|
|
2391
|
+
};
|
|
2392
|
+
} | {
|
|
2007
2393
|
type: "BUYER_PAID";
|
|
2008
2394
|
data: {
|
|
2009
2395
|
soldAccountId: string;
|
|
@@ -2022,42 +2408,77 @@ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
|
|
|
2022
2408
|
} | {
|
|
2023
2409
|
type: "FAILED_TO_PUBLISH";
|
|
2024
2410
|
data: {
|
|
2025
|
-
platform: "
|
|
2411
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2026
2412
|
accountId?: string | null | undefined;
|
|
2027
2413
|
reason?: string | null | undefined;
|
|
2028
2414
|
};
|
|
2415
|
+
} | {
|
|
2416
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2417
|
+
data: {
|
|
2418
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2419
|
+
variations?: {
|
|
2420
|
+
fileId: string;
|
|
2421
|
+
seed: number;
|
|
2422
|
+
phash: string;
|
|
2423
|
+
distanceOriginal: number;
|
|
2424
|
+
originalImageUrl: string;
|
|
2425
|
+
originalPhash: string;
|
|
2426
|
+
}[] | null | undefined;
|
|
2427
|
+
originalPhashes?: string[] | null | undefined;
|
|
2428
|
+
};
|
|
2429
|
+
} | {
|
|
2430
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2431
|
+
data: {
|
|
2432
|
+
accountId: string;
|
|
2433
|
+
};
|
|
2434
|
+
} | {
|
|
2435
|
+
type: "LIFECYCLE_STARTED";
|
|
2436
|
+
data: {
|
|
2437
|
+
accountId: string;
|
|
2438
|
+
caseId: string;
|
|
2439
|
+
};
|
|
2029
2440
|
} | {
|
|
2030
2441
|
type: "REPUBLISHING";
|
|
2031
2442
|
data: {
|
|
2032
|
-
platform: "
|
|
2443
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2444
|
+
publishingDate?: Date | null | undefined;
|
|
2033
2445
|
};
|
|
2034
2446
|
} | {
|
|
2035
2447
|
type: "SCHEDULED";
|
|
2036
2448
|
data: {
|
|
2037
|
-
platform: "
|
|
2449
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2038
2450
|
publishingDate?: Date | null | undefined;
|
|
2039
2451
|
};
|
|
2040
2452
|
} | null | undefined;
|
|
2453
|
+
accountId?: string | null | undefined;
|
|
2454
|
+
targetDate?: Date | null | undefined;
|
|
2041
2455
|
} | null | undefined;
|
|
2042
2456
|
platforms?: {
|
|
2043
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2457
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
2044
2458
|
id: string;
|
|
2459
|
+
createdAt: Date;
|
|
2045
2460
|
itemId: string | number;
|
|
2461
|
+
updatedAt: Date;
|
|
2046
2462
|
accountId: string;
|
|
2047
2463
|
platformId: string;
|
|
2048
2464
|
platformUrl: string;
|
|
2049
2465
|
platformPrice: number;
|
|
2466
|
+
publishedAt: Date;
|
|
2467
|
+
conversationId?: string | null | undefined;
|
|
2050
2468
|
account?: {
|
|
2051
2469
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
2052
2470
|
userId: string | number;
|
|
2053
2471
|
name: string;
|
|
2054
|
-
platform: "
|
|
2472
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2055
2473
|
accountId: string;
|
|
2474
|
+
locale?: string | null | undefined;
|
|
2056
2475
|
night?: {
|
|
2057
2476
|
startsAt: Date;
|
|
2058
2477
|
endsAt: Date;
|
|
2059
2478
|
} | null | undefined;
|
|
2060
|
-
|
|
2479
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2480
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2481
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2061
2482
|
} | null | undefined;
|
|
2062
2483
|
}[] | null | undefined;
|
|
2063
2484
|
};
|
|
@@ -2413,27 +2834,27 @@ export declare const UserWsPayloadResourceUpdatedSchema: z.ZodObject<{
|
|
|
2413
2834
|
};
|
|
2414
2835
|
}>, z.ZodObject<{
|
|
2415
2836
|
historyType: z.ZodObject<{
|
|
2416
|
-
type: z.ZodOptional<z.ZodNullable<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"]>>>;
|
|
2837
|
+
type: z.ZodOptional<z.ZodNullable<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"]>>>;
|
|
2417
2838
|
count: z.ZodNumber;
|
|
2418
2839
|
}, "strip", z.ZodTypeAny, {
|
|
2419
2840
|
count: number;
|
|
2420
|
-
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" | null | undefined;
|
|
2841
|
+
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" | null | undefined;
|
|
2421
2842
|
}, {
|
|
2422
2843
|
count: number;
|
|
2423
|
-
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" | null | undefined;
|
|
2844
|
+
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" | null | undefined;
|
|
2424
2845
|
}>;
|
|
2425
2846
|
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
2426
2847
|
}, "strip", z.ZodTypeAny, {
|
|
2427
2848
|
type: "HISTORY_TYPE";
|
|
2428
2849
|
historyType: {
|
|
2429
2850
|
count: number;
|
|
2430
|
-
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" | null | undefined;
|
|
2851
|
+
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" | null | undefined;
|
|
2431
2852
|
};
|
|
2432
2853
|
}, {
|
|
2433
2854
|
type: "HISTORY_TYPE";
|
|
2434
2855
|
historyType: {
|
|
2435
2856
|
count: number;
|
|
2436
|
-
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" | null | undefined;
|
|
2857
|
+
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" | null | undefined;
|
|
2437
2858
|
};
|
|
2438
2859
|
}>, z.ZodObject<{
|
|
2439
2860
|
label: z.ZodObject<{
|
|
@@ -2640,7 +3061,7 @@ export declare const UserWsPayloadResourceUpdatedSchema: z.ZodObject<{
|
|
|
2640
3061
|
type: "HISTORY_TYPE";
|
|
2641
3062
|
historyType: {
|
|
2642
3063
|
count: number;
|
|
2643
|
-
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" | null | undefined;
|
|
3064
|
+
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" | null | undefined;
|
|
2644
3065
|
};
|
|
2645
3066
|
} | {
|
|
2646
3067
|
type: "LABEL";
|
|
@@ -2721,7 +3142,7 @@ export declare const UserWsPayloadResourceUpdatedSchema: z.ZodObject<{
|
|
|
2721
3142
|
type: "HISTORY_TYPE";
|
|
2722
3143
|
historyType: {
|
|
2723
3144
|
count: number;
|
|
2724
|
-
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" | null | undefined;
|
|
3145
|
+
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" | null | undefined;
|
|
2725
3146
|
};
|
|
2726
3147
|
} | {
|
|
2727
3148
|
type: "LABEL";
|
|
@@ -2815,7 +3236,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2815
3236
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2816
3237
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2817
3238
|
accountId: z.ZodString;
|
|
2818
|
-
platform: z.ZodEnum<["
|
|
3239
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2819
3240
|
name: z.ZodString;
|
|
2820
3241
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2821
3242
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -2829,28 +3250,37 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2829
3250
|
startsAt: Date;
|
|
2830
3251
|
endsAt: Date;
|
|
2831
3252
|
}>>>;
|
|
3253
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3254
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3255
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2832
3256
|
}, "strip", z.ZodTypeAny, {
|
|
2833
3257
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
2834
3258
|
userId: string | number;
|
|
2835
3259
|
name: string;
|
|
2836
|
-
platform: "
|
|
3260
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2837
3261
|
accountId: string;
|
|
3262
|
+
locale?: string | null | undefined;
|
|
2838
3263
|
night?: {
|
|
2839
3264
|
startsAt: Date;
|
|
2840
3265
|
endsAt: Date;
|
|
2841
3266
|
} | null | undefined;
|
|
2842
|
-
|
|
3267
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3268
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3269
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2843
3270
|
}, {
|
|
2844
3271
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
2845
3272
|
userId: string | number;
|
|
2846
3273
|
name: string;
|
|
2847
|
-
platform: "
|
|
3274
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2848
3275
|
accountId: string;
|
|
3276
|
+
locale?: string | null | undefined;
|
|
2849
3277
|
night?: {
|
|
2850
3278
|
startsAt: Date;
|
|
2851
3279
|
endsAt: Date;
|
|
2852
3280
|
} | null | undefined;
|
|
2853
|
-
|
|
3281
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3282
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3283
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2854
3284
|
}>>>;
|
|
2855
3285
|
lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2856
3286
|
id: z.ZodString;
|
|
@@ -2875,7 +3305,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2875
3305
|
createdAt: Date;
|
|
2876
3306
|
messageId: string;
|
|
2877
3307
|
}>, "many">>>;
|
|
2878
|
-
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "
|
|
3308
|
+
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "VISION", "PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_LAST_OFFER", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
|
|
2879
3309
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2880
3310
|
createdAt: z.ZodDate;
|
|
2881
3311
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2887,7 +3317,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2887
3317
|
originalPrice: z.ZodNumber;
|
|
2888
3318
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
2889
3319
|
}, "strip", z.ZodTypeAny, {
|
|
2890
|
-
status: "
|
|
3320
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
2891
3321
|
id: string;
|
|
2892
3322
|
price: number;
|
|
2893
3323
|
messageId: string;
|
|
@@ -2895,7 +3325,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2895
3325
|
transactionId?: string | null | undefined;
|
|
2896
3326
|
platformOfferId?: string | null | undefined;
|
|
2897
3327
|
}, {
|
|
2898
|
-
status: "
|
|
3328
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
2899
3329
|
id: string;
|
|
2900
3330
|
price: number;
|
|
2901
3331
|
messageId: string;
|
|
@@ -2970,7 +3400,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2970
3400
|
conversationId: string;
|
|
2971
3401
|
body?: string | null | undefined;
|
|
2972
3402
|
offer?: {
|
|
2973
|
-
status: "
|
|
3403
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
2974
3404
|
id: string;
|
|
2975
3405
|
price: number;
|
|
2976
3406
|
messageId: string;
|
|
@@ -2998,7 +3428,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2998
3428
|
createdAt: Date;
|
|
2999
3429
|
messageId: string;
|
|
3000
3430
|
}[] | null | undefined;
|
|
3001
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3431
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3002
3432
|
translation?: {
|
|
3003
3433
|
messageId: string;
|
|
3004
3434
|
body: string;
|
|
@@ -3012,7 +3442,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3012
3442
|
conversationId: string;
|
|
3013
3443
|
body?: string | null | undefined;
|
|
3014
3444
|
offer?: {
|
|
3015
|
-
status: "
|
|
3445
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3016
3446
|
id: string;
|
|
3017
3447
|
price: number;
|
|
3018
3448
|
messageId: string;
|
|
@@ -3040,7 +3470,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3040
3470
|
createdAt: Date;
|
|
3041
3471
|
messageId: string;
|
|
3042
3472
|
}[] | null | undefined;
|
|
3043
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3473
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3044
3474
|
translation?: {
|
|
3045
3475
|
messageId: string;
|
|
3046
3476
|
body: string;
|
|
@@ -3120,13 +3550,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3120
3550
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3121
3551
|
userId: string | number;
|
|
3122
3552
|
name: string;
|
|
3123
|
-
platform: "
|
|
3553
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3124
3554
|
accountId: string;
|
|
3555
|
+
locale?: string | null | undefined;
|
|
3125
3556
|
night?: {
|
|
3126
3557
|
startsAt: Date;
|
|
3127
3558
|
endsAt: Date;
|
|
3128
3559
|
} | null | undefined;
|
|
3129
|
-
|
|
3560
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3561
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3562
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3130
3563
|
} | null | undefined;
|
|
3131
3564
|
users?: {
|
|
3132
3565
|
id: string;
|
|
@@ -3153,7 +3586,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3153
3586
|
conversationId: string;
|
|
3154
3587
|
body?: string | null | undefined;
|
|
3155
3588
|
offer?: {
|
|
3156
|
-
status: "
|
|
3589
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3157
3590
|
id: string;
|
|
3158
3591
|
price: number;
|
|
3159
3592
|
messageId: string;
|
|
@@ -3181,7 +3614,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3181
3614
|
createdAt: Date;
|
|
3182
3615
|
messageId: string;
|
|
3183
3616
|
}[] | null | undefined;
|
|
3184
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3617
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3185
3618
|
translation?: {
|
|
3186
3619
|
messageId: string;
|
|
3187
3620
|
body: string;
|
|
@@ -3199,13 +3632,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3199
3632
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3200
3633
|
userId: string | number;
|
|
3201
3634
|
name: string;
|
|
3202
|
-
platform: "
|
|
3635
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3203
3636
|
accountId: string;
|
|
3637
|
+
locale?: string | null | undefined;
|
|
3204
3638
|
night?: {
|
|
3205
3639
|
startsAt: Date;
|
|
3206
3640
|
endsAt: Date;
|
|
3207
3641
|
} | null | undefined;
|
|
3208
|
-
|
|
3642
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3643
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3644
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3209
3645
|
} | null | undefined;
|
|
3210
3646
|
users?: {
|
|
3211
3647
|
id: string;
|
|
@@ -3232,7 +3668,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3232
3668
|
conversationId: string;
|
|
3233
3669
|
body?: string | null | undefined;
|
|
3234
3670
|
offer?: {
|
|
3235
|
-
status: "
|
|
3671
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3236
3672
|
id: string;
|
|
3237
3673
|
price: number;
|
|
3238
3674
|
messageId: string;
|
|
@@ -3260,7 +3696,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3260
3696
|
createdAt: Date;
|
|
3261
3697
|
messageId: string;
|
|
3262
3698
|
}[] | null | undefined;
|
|
3263
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3699
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3264
3700
|
translation?: {
|
|
3265
3701
|
messageId: string;
|
|
3266
3702
|
body: string;
|
|
@@ -3292,7 +3728,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3292
3728
|
createdAt: Date;
|
|
3293
3729
|
messageId: string;
|
|
3294
3730
|
}>, "many">>>;
|
|
3295
|
-
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "
|
|
3731
|
+
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "VISION", "PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_LAST_OFFER", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
|
|
3296
3732
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3297
3733
|
createdAt: z.ZodDate;
|
|
3298
3734
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3304,7 +3740,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3304
3740
|
originalPrice: z.ZodNumber;
|
|
3305
3741
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
3306
3742
|
}, "strip", z.ZodTypeAny, {
|
|
3307
|
-
status: "
|
|
3743
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3308
3744
|
id: string;
|
|
3309
3745
|
price: number;
|
|
3310
3746
|
messageId: string;
|
|
@@ -3312,7 +3748,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3312
3748
|
transactionId?: string | null | undefined;
|
|
3313
3749
|
platformOfferId?: string | null | undefined;
|
|
3314
3750
|
}, {
|
|
3315
|
-
status: "
|
|
3751
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3316
3752
|
id: string;
|
|
3317
3753
|
price: number;
|
|
3318
3754
|
messageId: string;
|
|
@@ -3387,7 +3823,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3387
3823
|
conversationId: string;
|
|
3388
3824
|
body?: string | null | undefined;
|
|
3389
3825
|
offer?: {
|
|
3390
|
-
status: "
|
|
3826
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3391
3827
|
id: string;
|
|
3392
3828
|
price: number;
|
|
3393
3829
|
messageId: string;
|
|
@@ -3415,7 +3851,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3415
3851
|
createdAt: Date;
|
|
3416
3852
|
messageId: string;
|
|
3417
3853
|
}[] | null | undefined;
|
|
3418
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3854
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3419
3855
|
translation?: {
|
|
3420
3856
|
messageId: string;
|
|
3421
3857
|
body: string;
|
|
@@ -3429,7 +3865,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3429
3865
|
conversationId: string;
|
|
3430
3866
|
body?: string | null | undefined;
|
|
3431
3867
|
offer?: {
|
|
3432
|
-
status: "
|
|
3868
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3433
3869
|
id: string;
|
|
3434
3870
|
price: number;
|
|
3435
3871
|
messageId: string;
|
|
@@ -3457,7 +3893,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3457
3893
|
createdAt: Date;
|
|
3458
3894
|
messageId: string;
|
|
3459
3895
|
}[] | null | undefined;
|
|
3460
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3896
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3461
3897
|
translation?: {
|
|
3462
3898
|
messageId: string;
|
|
3463
3899
|
body: string;
|
|
@@ -3477,13 +3913,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3477
3913
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3478
3914
|
userId: string | number;
|
|
3479
3915
|
name: string;
|
|
3480
|
-
platform: "
|
|
3916
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3481
3917
|
accountId: string;
|
|
3918
|
+
locale?: string | null | undefined;
|
|
3482
3919
|
night?: {
|
|
3483
3920
|
startsAt: Date;
|
|
3484
3921
|
endsAt: Date;
|
|
3485
3922
|
} | null | undefined;
|
|
3486
|
-
|
|
3923
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3924
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3925
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3487
3926
|
} | null | undefined;
|
|
3488
3927
|
users?: {
|
|
3489
3928
|
id: string;
|
|
@@ -3510,7 +3949,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3510
3949
|
conversationId: string;
|
|
3511
3950
|
body?: string | null | undefined;
|
|
3512
3951
|
offer?: {
|
|
3513
|
-
status: "
|
|
3952
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3514
3953
|
id: string;
|
|
3515
3954
|
price: number;
|
|
3516
3955
|
messageId: string;
|
|
@@ -3538,7 +3977,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3538
3977
|
createdAt: Date;
|
|
3539
3978
|
messageId: string;
|
|
3540
3979
|
}[] | null | undefined;
|
|
3541
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
3980
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3542
3981
|
translation?: {
|
|
3543
3982
|
messageId: string;
|
|
3544
3983
|
body: string;
|
|
@@ -3555,7 +3994,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3555
3994
|
conversationId: string;
|
|
3556
3995
|
body?: string | null | undefined;
|
|
3557
3996
|
offer?: {
|
|
3558
|
-
status: "
|
|
3997
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3559
3998
|
id: string;
|
|
3560
3999
|
price: number;
|
|
3561
4000
|
messageId: string;
|
|
@@ -3583,7 +4022,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3583
4022
|
createdAt: Date;
|
|
3584
4023
|
messageId: string;
|
|
3585
4024
|
}[] | null | undefined;
|
|
3586
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
4025
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3587
4026
|
translation?: {
|
|
3588
4027
|
messageId: string;
|
|
3589
4028
|
body: string;
|
|
@@ -3602,13 +4041,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3602
4041
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3603
4042
|
userId: string | number;
|
|
3604
4043
|
name: string;
|
|
3605
|
-
platform: "
|
|
4044
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3606
4045
|
accountId: string;
|
|
4046
|
+
locale?: string | null | undefined;
|
|
3607
4047
|
night?: {
|
|
3608
4048
|
startsAt: Date;
|
|
3609
4049
|
endsAt: Date;
|
|
3610
4050
|
} | null | undefined;
|
|
3611
|
-
|
|
4051
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4052
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4053
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3612
4054
|
} | null | undefined;
|
|
3613
4055
|
users?: {
|
|
3614
4056
|
id: string;
|
|
@@ -3635,7 +4077,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3635
4077
|
conversationId: string;
|
|
3636
4078
|
body?: string | null | undefined;
|
|
3637
4079
|
offer?: {
|
|
3638
|
-
status: "
|
|
4080
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3639
4081
|
id: string;
|
|
3640
4082
|
price: number;
|
|
3641
4083
|
messageId: string;
|
|
@@ -3663,7 +4105,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3663
4105
|
createdAt: Date;
|
|
3664
4106
|
messageId: string;
|
|
3665
4107
|
}[] | null | undefined;
|
|
3666
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
4108
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3667
4109
|
translation?: {
|
|
3668
4110
|
messageId: string;
|
|
3669
4111
|
body: string;
|
|
@@ -3680,7 +4122,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3680
4122
|
conversationId: string;
|
|
3681
4123
|
body?: string | null | undefined;
|
|
3682
4124
|
offer?: {
|
|
3683
|
-
status: "
|
|
4125
|
+
status: "CANCELED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
3684
4126
|
id: string;
|
|
3685
4127
|
price: number;
|
|
3686
4128
|
messageId: string;
|
|
@@ -3708,7 +4150,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3708
4150
|
createdAt: Date;
|
|
3709
4151
|
messageId: string;
|
|
3710
4152
|
}[] | null | undefined;
|
|
3711
|
-
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "
|
|
4153
|
+
associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "PHOTO_ADDING" | "TEMPLATE" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_LAST_OFFER" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
|
|
3712
4154
|
translation?: {
|
|
3713
4155
|
messageId: string;
|
|
3714
4156
|
body: string;
|
|
@@ -3943,8 +4385,27 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3943
4385
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3944
4386
|
id: z.ZodString;
|
|
3945
4387
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3946
|
-
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"]>;
|
|
4388
|
+
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"]>;
|
|
3947
4389
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4390
|
+
data: z.ZodObject<{
|
|
4391
|
+
targetItemHistoryId: z.ZodString;
|
|
4392
|
+
}, "strip", z.ZodTypeAny, {
|
|
4393
|
+
targetItemHistoryId: string;
|
|
4394
|
+
}, {
|
|
4395
|
+
targetItemHistoryId: string;
|
|
4396
|
+
}>;
|
|
4397
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
4398
|
+
}, "strip", z.ZodTypeAny, {
|
|
4399
|
+
type: "ACTION_CANCELED";
|
|
4400
|
+
data: {
|
|
4401
|
+
targetItemHistoryId: string;
|
|
4402
|
+
};
|
|
4403
|
+
}, {
|
|
4404
|
+
type: "ACTION_CANCELED";
|
|
4405
|
+
data: {
|
|
4406
|
+
targetItemHistoryId: string;
|
|
4407
|
+
};
|
|
4408
|
+
}>, z.ZodObject<{
|
|
3948
4409
|
data: z.ZodObject<{
|
|
3949
4410
|
soldAccountId: z.ZodString;
|
|
3950
4411
|
soldOrderId: z.ZodString;
|
|
@@ -4010,15 +4471,15 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4010
4471
|
type: "EMPTY";
|
|
4011
4472
|
}>, z.ZodObject<{
|
|
4012
4473
|
data: z.ZodObject<{
|
|
4013
|
-
platform: z.ZodEnum<["
|
|
4474
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
4014
4475
|
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4015
4476
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4016
4477
|
}, "strip", z.ZodTypeAny, {
|
|
4017
|
-
platform: "
|
|
4478
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4018
4479
|
accountId?: string | null | undefined;
|
|
4019
4480
|
reason?: string | null | undefined;
|
|
4020
4481
|
}, {
|
|
4021
|
-
platform: "
|
|
4482
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4022
4483
|
accountId?: string | null | undefined;
|
|
4023
4484
|
reason?: string | null | undefined;
|
|
4024
4485
|
}>;
|
|
@@ -4026,68 +4487,201 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4026
4487
|
}, "strip", z.ZodTypeAny, {
|
|
4027
4488
|
type: "FAILED_TO_PUBLISH";
|
|
4028
4489
|
data: {
|
|
4029
|
-
platform: "
|
|
4490
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4030
4491
|
accountId?: string | null | undefined;
|
|
4031
4492
|
reason?: string | null | undefined;
|
|
4032
4493
|
};
|
|
4033
4494
|
}, {
|
|
4034
4495
|
type: "FAILED_TO_PUBLISH";
|
|
4035
4496
|
data: {
|
|
4036
|
-
platform: "
|
|
4497
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4037
4498
|
accountId?: string | null | undefined;
|
|
4038
4499
|
reason?: string | null | undefined;
|
|
4039
4500
|
};
|
|
4040
4501
|
}>, z.ZodObject<{
|
|
4041
4502
|
data: z.ZodObject<{
|
|
4042
|
-
platform: z.ZodEnum<["
|
|
4503
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
4504
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4505
|
+
fileId: z.ZodString;
|
|
4506
|
+
seed: z.ZodNumber;
|
|
4507
|
+
phash: z.ZodString;
|
|
4508
|
+
distanceOriginal: z.ZodNumber;
|
|
4509
|
+
originalImageUrl: z.ZodString;
|
|
4510
|
+
originalPhash: z.ZodString;
|
|
4511
|
+
}, "strip", z.ZodTypeAny, {
|
|
4512
|
+
fileId: string;
|
|
4513
|
+
seed: number;
|
|
4514
|
+
phash: string;
|
|
4515
|
+
distanceOriginal: number;
|
|
4516
|
+
originalImageUrl: string;
|
|
4517
|
+
originalPhash: string;
|
|
4518
|
+
}, {
|
|
4519
|
+
fileId: string;
|
|
4520
|
+
seed: number;
|
|
4521
|
+
phash: string;
|
|
4522
|
+
distanceOriginal: number;
|
|
4523
|
+
originalImageUrl: string;
|
|
4524
|
+
originalPhash: string;
|
|
4525
|
+
}>, "many">>>;
|
|
4526
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4043
4527
|
}, "strip", z.ZodTypeAny, {
|
|
4044
|
-
platform: "
|
|
4528
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4529
|
+
variations?: {
|
|
4530
|
+
fileId: string;
|
|
4531
|
+
seed: number;
|
|
4532
|
+
phash: string;
|
|
4533
|
+
distanceOriginal: number;
|
|
4534
|
+
originalImageUrl: string;
|
|
4535
|
+
originalPhash: string;
|
|
4536
|
+
}[] | null | undefined;
|
|
4537
|
+
originalPhashes?: string[] | null | undefined;
|
|
4045
4538
|
}, {
|
|
4046
|
-
platform: "
|
|
4539
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4540
|
+
variations?: {
|
|
4541
|
+
fileId: string;
|
|
4542
|
+
seed: number;
|
|
4543
|
+
phash: string;
|
|
4544
|
+
distanceOriginal: number;
|
|
4545
|
+
originalImageUrl: string;
|
|
4546
|
+
originalPhash: string;
|
|
4547
|
+
}[] | null | undefined;
|
|
4548
|
+
originalPhashes?: string[] | null | undefined;
|
|
4549
|
+
}>;
|
|
4550
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
4551
|
+
}, "strip", z.ZodTypeAny, {
|
|
4552
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4553
|
+
data: {
|
|
4554
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4555
|
+
variations?: {
|
|
4556
|
+
fileId: string;
|
|
4557
|
+
seed: number;
|
|
4558
|
+
phash: string;
|
|
4559
|
+
distanceOriginal: number;
|
|
4560
|
+
originalImageUrl: string;
|
|
4561
|
+
originalPhash: string;
|
|
4562
|
+
}[] | null | undefined;
|
|
4563
|
+
originalPhashes?: string[] | null | undefined;
|
|
4564
|
+
};
|
|
4565
|
+
}, {
|
|
4566
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4567
|
+
data: {
|
|
4568
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4569
|
+
variations?: {
|
|
4570
|
+
fileId: string;
|
|
4571
|
+
seed: number;
|
|
4572
|
+
phash: string;
|
|
4573
|
+
distanceOriginal: number;
|
|
4574
|
+
originalImageUrl: string;
|
|
4575
|
+
originalPhash: string;
|
|
4576
|
+
}[] | null | undefined;
|
|
4577
|
+
originalPhashes?: string[] | null | undefined;
|
|
4578
|
+
};
|
|
4579
|
+
}>, z.ZodObject<{
|
|
4580
|
+
data: z.ZodObject<{
|
|
4581
|
+
accountId: z.ZodString;
|
|
4582
|
+
}, "strip", z.ZodTypeAny, {
|
|
4583
|
+
accountId: string;
|
|
4584
|
+
}, {
|
|
4585
|
+
accountId: string;
|
|
4586
|
+
}>;
|
|
4587
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
4588
|
+
}, "strip", z.ZodTypeAny, {
|
|
4589
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4590
|
+
data: {
|
|
4591
|
+
accountId: string;
|
|
4592
|
+
};
|
|
4593
|
+
}, {
|
|
4594
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4595
|
+
data: {
|
|
4596
|
+
accountId: string;
|
|
4597
|
+
};
|
|
4598
|
+
}>, z.ZodObject<{
|
|
4599
|
+
data: z.ZodObject<{
|
|
4600
|
+
accountId: z.ZodString;
|
|
4601
|
+
caseId: z.ZodString;
|
|
4602
|
+
}, "strip", z.ZodTypeAny, {
|
|
4603
|
+
accountId: string;
|
|
4604
|
+
caseId: string;
|
|
4605
|
+
}, {
|
|
4606
|
+
accountId: string;
|
|
4607
|
+
caseId: string;
|
|
4608
|
+
}>;
|
|
4609
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
4610
|
+
}, "strip", z.ZodTypeAny, {
|
|
4611
|
+
type: "LIFECYCLE_STARTED";
|
|
4612
|
+
data: {
|
|
4613
|
+
accountId: string;
|
|
4614
|
+
caseId: string;
|
|
4615
|
+
};
|
|
4616
|
+
}, {
|
|
4617
|
+
type: "LIFECYCLE_STARTED";
|
|
4618
|
+
data: {
|
|
4619
|
+
accountId: string;
|
|
4620
|
+
caseId: string;
|
|
4621
|
+
};
|
|
4622
|
+
}>, z.ZodObject<{
|
|
4623
|
+
data: z.ZodObject<{
|
|
4624
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
4625
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4626
|
+
}, "strip", z.ZodTypeAny, {
|
|
4627
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4628
|
+
publishingDate?: Date | null | undefined;
|
|
4629
|
+
}, {
|
|
4630
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4631
|
+
publishingDate?: Date | null | undefined;
|
|
4047
4632
|
}>;
|
|
4048
4633
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
4049
4634
|
}, "strip", z.ZodTypeAny, {
|
|
4050
4635
|
type: "REPUBLISHING";
|
|
4051
4636
|
data: {
|
|
4052
|
-
platform: "
|
|
4637
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4638
|
+
publishingDate?: Date | null | undefined;
|
|
4053
4639
|
};
|
|
4054
4640
|
}, {
|
|
4055
4641
|
type: "REPUBLISHING";
|
|
4056
4642
|
data: {
|
|
4057
|
-
platform: "
|
|
4643
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4644
|
+
publishingDate?: Date | null | undefined;
|
|
4058
4645
|
};
|
|
4059
4646
|
}>, z.ZodObject<{
|
|
4060
4647
|
data: z.ZodObject<{
|
|
4061
|
-
platform: z.ZodEnum<["
|
|
4648
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
4062
4649
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4063
4650
|
}, "strip", z.ZodTypeAny, {
|
|
4064
|
-
platform: "
|
|
4651
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4065
4652
|
publishingDate?: Date | null | undefined;
|
|
4066
4653
|
}, {
|
|
4067
|
-
platform: "
|
|
4654
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4068
4655
|
publishingDate?: Date | null | undefined;
|
|
4069
4656
|
}>;
|
|
4070
4657
|
type: z.ZodLiteral<"SCHEDULED">;
|
|
4071
4658
|
}, "strip", z.ZodTypeAny, {
|
|
4072
4659
|
type: "SCHEDULED";
|
|
4073
4660
|
data: {
|
|
4074
|
-
platform: "
|
|
4661
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4075
4662
|
publishingDate?: Date | null | undefined;
|
|
4076
4663
|
};
|
|
4077
4664
|
}, {
|
|
4078
4665
|
type: "SCHEDULED";
|
|
4079
4666
|
data: {
|
|
4080
|
-
platform: "
|
|
4667
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4081
4668
|
publishingDate?: Date | null | undefined;
|
|
4082
4669
|
};
|
|
4083
4670
|
}>]>>>;
|
|
4084
4671
|
createdAt: z.ZodDate;
|
|
4672
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4673
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4085
4674
|
}, "strip", z.ZodTypeAny, {
|
|
4086
|
-
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";
|
|
4675
|
+
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";
|
|
4087
4676
|
id: string;
|
|
4088
4677
|
createdAt: Date;
|
|
4089
4678
|
itemId: string | number;
|
|
4090
4679
|
data?: {
|
|
4680
|
+
type: "ACTION_CANCELED";
|
|
4681
|
+
data: {
|
|
4682
|
+
targetItemHistoryId: string;
|
|
4683
|
+
};
|
|
4684
|
+
} | {
|
|
4091
4685
|
type: "BUYER_PAID";
|
|
4092
4686
|
data: {
|
|
4093
4687
|
soldAccountId: string;
|
|
@@ -4106,28 +4700,61 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4106
4700
|
} | {
|
|
4107
4701
|
type: "FAILED_TO_PUBLISH";
|
|
4108
4702
|
data: {
|
|
4109
|
-
platform: "
|
|
4703
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4110
4704
|
accountId?: string | null | undefined;
|
|
4111
4705
|
reason?: string | null | undefined;
|
|
4112
4706
|
};
|
|
4707
|
+
} | {
|
|
4708
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4709
|
+
data: {
|
|
4710
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4711
|
+
variations?: {
|
|
4712
|
+
fileId: string;
|
|
4713
|
+
seed: number;
|
|
4714
|
+
phash: string;
|
|
4715
|
+
distanceOriginal: number;
|
|
4716
|
+
originalImageUrl: string;
|
|
4717
|
+
originalPhash: string;
|
|
4718
|
+
}[] | null | undefined;
|
|
4719
|
+
originalPhashes?: string[] | null | undefined;
|
|
4720
|
+
};
|
|
4721
|
+
} | {
|
|
4722
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4723
|
+
data: {
|
|
4724
|
+
accountId: string;
|
|
4725
|
+
};
|
|
4726
|
+
} | {
|
|
4727
|
+
type: "LIFECYCLE_STARTED";
|
|
4728
|
+
data: {
|
|
4729
|
+
accountId: string;
|
|
4730
|
+
caseId: string;
|
|
4731
|
+
};
|
|
4113
4732
|
} | {
|
|
4114
4733
|
type: "REPUBLISHING";
|
|
4115
4734
|
data: {
|
|
4116
|
-
platform: "
|
|
4735
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4736
|
+
publishingDate?: Date | null | undefined;
|
|
4117
4737
|
};
|
|
4118
4738
|
} | {
|
|
4119
4739
|
type: "SCHEDULED";
|
|
4120
4740
|
data: {
|
|
4121
|
-
platform: "
|
|
4741
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4122
4742
|
publishingDate?: Date | null | undefined;
|
|
4123
4743
|
};
|
|
4124
4744
|
} | null | undefined;
|
|
4745
|
+
accountId?: string | null | undefined;
|
|
4746
|
+
targetDate?: Date | null | undefined;
|
|
4125
4747
|
}, {
|
|
4126
|
-
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";
|
|
4748
|
+
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";
|
|
4127
4749
|
id: string;
|
|
4128
4750
|
createdAt: Date;
|
|
4129
4751
|
itemId: string | number;
|
|
4130
4752
|
data?: {
|
|
4753
|
+
type: "ACTION_CANCELED";
|
|
4754
|
+
data: {
|
|
4755
|
+
targetItemHistoryId: string;
|
|
4756
|
+
};
|
|
4757
|
+
} | {
|
|
4131
4758
|
type: "BUYER_PAID";
|
|
4132
4759
|
data: {
|
|
4133
4760
|
soldAccountId: string;
|
|
@@ -4146,22 +4773,50 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4146
4773
|
} | {
|
|
4147
4774
|
type: "FAILED_TO_PUBLISH";
|
|
4148
4775
|
data: {
|
|
4149
|
-
platform: "
|
|
4776
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4150
4777
|
accountId?: string | null | undefined;
|
|
4151
4778
|
reason?: string | null | undefined;
|
|
4152
4779
|
};
|
|
4780
|
+
} | {
|
|
4781
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4782
|
+
data: {
|
|
4783
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4784
|
+
variations?: {
|
|
4785
|
+
fileId: string;
|
|
4786
|
+
seed: number;
|
|
4787
|
+
phash: string;
|
|
4788
|
+
distanceOriginal: number;
|
|
4789
|
+
originalImageUrl: string;
|
|
4790
|
+
originalPhash: string;
|
|
4791
|
+
}[] | null | undefined;
|
|
4792
|
+
originalPhashes?: string[] | null | undefined;
|
|
4793
|
+
};
|
|
4794
|
+
} | {
|
|
4795
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4796
|
+
data: {
|
|
4797
|
+
accountId: string;
|
|
4798
|
+
};
|
|
4799
|
+
} | {
|
|
4800
|
+
type: "LIFECYCLE_STARTED";
|
|
4801
|
+
data: {
|
|
4802
|
+
accountId: string;
|
|
4803
|
+
caseId: string;
|
|
4804
|
+
};
|
|
4153
4805
|
} | {
|
|
4154
4806
|
type: "REPUBLISHING";
|
|
4155
4807
|
data: {
|
|
4156
|
-
platform: "
|
|
4808
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4809
|
+
publishingDate?: Date | null | undefined;
|
|
4157
4810
|
};
|
|
4158
4811
|
} | {
|
|
4159
4812
|
type: "SCHEDULED";
|
|
4160
4813
|
data: {
|
|
4161
|
-
platform: "
|
|
4814
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4162
4815
|
publishingDate?: Date | null | undefined;
|
|
4163
4816
|
};
|
|
4164
4817
|
} | null | undefined;
|
|
4818
|
+
accountId?: string | null | undefined;
|
|
4819
|
+
targetDate?: Date | null | undefined;
|
|
4165
4820
|
}>>>;
|
|
4166
4821
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4167
4822
|
id: z.ZodString;
|
|
@@ -4171,10 +4826,13 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4171
4826
|
platformUrl: z.ZodString;
|
|
4172
4827
|
platformPrice: z.ZodNumber;
|
|
4173
4828
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
4829
|
+
createdAt: z.ZodDate;
|
|
4830
|
+
publishedAt: z.ZodDate;
|
|
4831
|
+
updatedAt: z.ZodDate;
|
|
4174
4832
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4175
4833
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4176
4834
|
accountId: z.ZodString;
|
|
4177
|
-
platform: z.ZodEnum<["
|
|
4835
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
4178
4836
|
name: z.ZodString;
|
|
4179
4837
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4180
4838
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -4188,68 +4846,92 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4188
4846
|
startsAt: Date;
|
|
4189
4847
|
endsAt: Date;
|
|
4190
4848
|
}>>>;
|
|
4849
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4850
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4851
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4191
4852
|
}, "strip", z.ZodTypeAny, {
|
|
4192
4853
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4193
4854
|
userId: string | number;
|
|
4194
4855
|
name: string;
|
|
4195
|
-
platform: "
|
|
4856
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4196
4857
|
accountId: string;
|
|
4858
|
+
locale?: string | null | undefined;
|
|
4197
4859
|
night?: {
|
|
4198
4860
|
startsAt: Date;
|
|
4199
4861
|
endsAt: Date;
|
|
4200
4862
|
} | null | undefined;
|
|
4201
|
-
|
|
4863
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4864
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4865
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4202
4866
|
}, {
|
|
4203
4867
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4204
4868
|
userId: string | number;
|
|
4205
4869
|
name: string;
|
|
4206
|
-
platform: "
|
|
4870
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4207
4871
|
accountId: string;
|
|
4872
|
+
locale?: string | null | undefined;
|
|
4208
4873
|
night?: {
|
|
4209
4874
|
startsAt: Date;
|
|
4210
4875
|
endsAt: Date;
|
|
4211
4876
|
} | null | undefined;
|
|
4212
|
-
|
|
4877
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4878
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4879
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4213
4880
|
}>>>;
|
|
4881
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4214
4882
|
}, "strip", z.ZodTypeAny, {
|
|
4215
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
4883
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4216
4884
|
id: string;
|
|
4885
|
+
createdAt: Date;
|
|
4217
4886
|
itemId: string | number;
|
|
4887
|
+
updatedAt: Date;
|
|
4218
4888
|
accountId: string;
|
|
4219
4889
|
platformId: string;
|
|
4220
4890
|
platformUrl: string;
|
|
4221
4891
|
platformPrice: number;
|
|
4892
|
+
publishedAt: Date;
|
|
4893
|
+
conversationId?: string | null | undefined;
|
|
4222
4894
|
account?: {
|
|
4223
4895
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4224
4896
|
userId: string | number;
|
|
4225
4897
|
name: string;
|
|
4226
|
-
platform: "
|
|
4898
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4227
4899
|
accountId: string;
|
|
4900
|
+
locale?: string | null | undefined;
|
|
4228
4901
|
night?: {
|
|
4229
4902
|
startsAt: Date;
|
|
4230
4903
|
endsAt: Date;
|
|
4231
4904
|
} | null | undefined;
|
|
4232
|
-
|
|
4905
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4906
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4907
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4233
4908
|
} | null | undefined;
|
|
4234
4909
|
}, {
|
|
4235
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
4910
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4236
4911
|
id: string;
|
|
4912
|
+
createdAt: Date;
|
|
4237
4913
|
itemId: string | number;
|
|
4914
|
+
updatedAt: Date;
|
|
4238
4915
|
accountId: string;
|
|
4239
4916
|
platformId: string;
|
|
4240
4917
|
platformUrl: string;
|
|
4241
4918
|
platformPrice: number;
|
|
4919
|
+
publishedAt: Date;
|
|
4920
|
+
conversationId?: string | null | undefined;
|
|
4242
4921
|
account?: {
|
|
4243
4922
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4244
4923
|
userId: string | number;
|
|
4245
4924
|
name: string;
|
|
4246
|
-
platform: "
|
|
4925
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4247
4926
|
accountId: string;
|
|
4927
|
+
locale?: string | null | undefined;
|
|
4248
4928
|
night?: {
|
|
4249
4929
|
startsAt: Date;
|
|
4250
4930
|
endsAt: Date;
|
|
4251
4931
|
} | null | undefined;
|
|
4252
|
-
|
|
4932
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4933
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4934
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4253
4935
|
} | null | undefined;
|
|
4254
4936
|
}>, "many">>>;
|
|
4255
4937
|
createdAt: z.ZodDate;
|
|
@@ -4263,6 +4945,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4263
4945
|
sold: boolean;
|
|
4264
4946
|
customerId?: string | number | null | undefined;
|
|
4265
4947
|
description?: string | null | undefined;
|
|
4948
|
+
state?: number | null | undefined;
|
|
4266
4949
|
colorIds?: number[] | null | undefined;
|
|
4267
4950
|
packageSizeId?: number | null | undefined;
|
|
4268
4951
|
sizeId?: number | null | undefined;
|
|
@@ -4278,7 +4961,6 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4278
4961
|
userId?: string | number | null | undefined;
|
|
4279
4962
|
} | null | undefined;
|
|
4280
4963
|
}[] | null | undefined;
|
|
4281
|
-
state?: number | null | undefined;
|
|
4282
4964
|
fees?: {
|
|
4283
4965
|
value: number;
|
|
4284
4966
|
type: string;
|
|
@@ -4297,6 +4979,9 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4297
4979
|
}[] | null | undefined;
|
|
4298
4980
|
categoryId?: number | null | undefined;
|
|
4299
4981
|
brandId?: string | number | null | undefined;
|
|
4982
|
+
estimatedPrice?: number | null | undefined;
|
|
4983
|
+
purchaseDate?: Date | null | undefined;
|
|
4984
|
+
sellingDate?: Date | null | undefined;
|
|
4300
4985
|
files?: {
|
|
4301
4986
|
fileId: string;
|
|
4302
4987
|
itemId: string | number;
|
|
@@ -4311,13 +4996,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4311
4996
|
}[] | null | undefined;
|
|
4312
4997
|
sex?: string | null | undefined;
|
|
4313
4998
|
purchasePrice?: number | null | undefined;
|
|
4314
|
-
purchaseDate?: Date | null | undefined;
|
|
4315
4999
|
purchasePlaceId?: string | number | null | undefined;
|
|
4316
5000
|
purchased?: boolean | null | undefined;
|
|
4317
5001
|
sellingPrice?: number | null | undefined;
|
|
4318
|
-
sellingDate?: Date | null | undefined;
|
|
4319
5002
|
sellingPlaceId?: string | number | null | undefined;
|
|
4320
|
-
estimatedPrice?: number | null | undefined;
|
|
4321
5003
|
feesSum?: number | null | undefined;
|
|
4322
5004
|
customer?: {
|
|
4323
5005
|
email: string;
|
|
@@ -4343,11 +5025,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4343
5025
|
fieldId: string | number;
|
|
4344
5026
|
}[] | null | undefined;
|
|
4345
5027
|
lastHistory?: {
|
|
4346
|
-
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";
|
|
5028
|
+
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";
|
|
4347
5029
|
id: string;
|
|
4348
5030
|
createdAt: Date;
|
|
4349
5031
|
itemId: string | number;
|
|
4350
5032
|
data?: {
|
|
5033
|
+
type: "ACTION_CANCELED";
|
|
5034
|
+
data: {
|
|
5035
|
+
targetItemHistoryId: string;
|
|
5036
|
+
};
|
|
5037
|
+
} | {
|
|
4351
5038
|
type: "BUYER_PAID";
|
|
4352
5039
|
data: {
|
|
4353
5040
|
soldAccountId: string;
|
|
@@ -4366,42 +5053,77 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4366
5053
|
} | {
|
|
4367
5054
|
type: "FAILED_TO_PUBLISH";
|
|
4368
5055
|
data: {
|
|
4369
|
-
platform: "
|
|
5056
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4370
5057
|
accountId?: string | null | undefined;
|
|
4371
5058
|
reason?: string | null | undefined;
|
|
4372
5059
|
};
|
|
5060
|
+
} | {
|
|
5061
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
5062
|
+
data: {
|
|
5063
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5064
|
+
variations?: {
|
|
5065
|
+
fileId: string;
|
|
5066
|
+
seed: number;
|
|
5067
|
+
phash: string;
|
|
5068
|
+
distanceOriginal: number;
|
|
5069
|
+
originalImageUrl: string;
|
|
5070
|
+
originalPhash: string;
|
|
5071
|
+
}[] | null | undefined;
|
|
5072
|
+
originalPhashes?: string[] | null | undefined;
|
|
5073
|
+
};
|
|
5074
|
+
} | {
|
|
5075
|
+
type: "LIFECYCLE_COMPLETED";
|
|
5076
|
+
data: {
|
|
5077
|
+
accountId: string;
|
|
5078
|
+
};
|
|
5079
|
+
} | {
|
|
5080
|
+
type: "LIFECYCLE_STARTED";
|
|
5081
|
+
data: {
|
|
5082
|
+
accountId: string;
|
|
5083
|
+
caseId: string;
|
|
5084
|
+
};
|
|
4373
5085
|
} | {
|
|
4374
5086
|
type: "REPUBLISHING";
|
|
4375
5087
|
data: {
|
|
4376
|
-
platform: "
|
|
5088
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5089
|
+
publishingDate?: Date | null | undefined;
|
|
4377
5090
|
};
|
|
4378
5091
|
} | {
|
|
4379
5092
|
type: "SCHEDULED";
|
|
4380
5093
|
data: {
|
|
4381
|
-
platform: "
|
|
5094
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4382
5095
|
publishingDate?: Date | null | undefined;
|
|
4383
5096
|
};
|
|
4384
5097
|
} | null | undefined;
|
|
5098
|
+
accountId?: string | null | undefined;
|
|
5099
|
+
targetDate?: Date | null | undefined;
|
|
4385
5100
|
} | null | undefined;
|
|
4386
5101
|
platforms?: {
|
|
4387
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
5102
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4388
5103
|
id: string;
|
|
5104
|
+
createdAt: Date;
|
|
4389
5105
|
itemId: string | number;
|
|
5106
|
+
updatedAt: Date;
|
|
4390
5107
|
accountId: string;
|
|
4391
5108
|
platformId: string;
|
|
4392
5109
|
platformUrl: string;
|
|
4393
5110
|
platformPrice: number;
|
|
5111
|
+
publishedAt: Date;
|
|
5112
|
+
conversationId?: string | null | undefined;
|
|
4394
5113
|
account?: {
|
|
4395
5114
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4396
5115
|
userId: string | number;
|
|
4397
5116
|
name: string;
|
|
4398
|
-
platform: "
|
|
5117
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4399
5118
|
accountId: string;
|
|
5119
|
+
locale?: string | null | undefined;
|
|
4400
5120
|
night?: {
|
|
4401
5121
|
startsAt: Date;
|
|
4402
5122
|
endsAt: Date;
|
|
4403
5123
|
} | null | undefined;
|
|
4404
|
-
|
|
5124
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5125
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5126
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4405
5127
|
} | null | undefined;
|
|
4406
5128
|
}[] | null | undefined;
|
|
4407
5129
|
}, {
|
|
@@ -4413,6 +5135,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4413
5135
|
sold: boolean;
|
|
4414
5136
|
customerId?: string | number | null | undefined;
|
|
4415
5137
|
description?: string | null | undefined;
|
|
5138
|
+
state?: number | null | undefined;
|
|
4416
5139
|
colorIds?: number[] | null | undefined;
|
|
4417
5140
|
packageSizeId?: number | null | undefined;
|
|
4418
5141
|
sizeId?: number | null | undefined;
|
|
@@ -4428,7 +5151,6 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4428
5151
|
userId?: string | number | null | undefined;
|
|
4429
5152
|
} | null | undefined;
|
|
4430
5153
|
}[] | null | undefined;
|
|
4431
|
-
state?: number | null | undefined;
|
|
4432
5154
|
fees?: {
|
|
4433
5155
|
value: number;
|
|
4434
5156
|
type: string;
|
|
@@ -4447,6 +5169,9 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4447
5169
|
}[] | null | undefined;
|
|
4448
5170
|
categoryId?: number | null | undefined;
|
|
4449
5171
|
brandId?: string | number | null | undefined;
|
|
5172
|
+
estimatedPrice?: number | null | undefined;
|
|
5173
|
+
purchaseDate?: Date | null | undefined;
|
|
5174
|
+
sellingDate?: Date | null | undefined;
|
|
4450
5175
|
files?: {
|
|
4451
5176
|
fileId: string;
|
|
4452
5177
|
itemId: string | number;
|
|
@@ -4461,13 +5186,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4461
5186
|
}[] | null | undefined;
|
|
4462
5187
|
sex?: string | null | undefined;
|
|
4463
5188
|
purchasePrice?: number | null | undefined;
|
|
4464
|
-
purchaseDate?: Date | null | undefined;
|
|
4465
5189
|
purchasePlaceId?: string | number | null | undefined;
|
|
4466
5190
|
purchased?: boolean | null | undefined;
|
|
4467
5191
|
sellingPrice?: number | null | undefined;
|
|
4468
|
-
sellingDate?: Date | null | undefined;
|
|
4469
5192
|
sellingPlaceId?: string | number | null | undefined;
|
|
4470
|
-
estimatedPrice?: number | null | undefined;
|
|
4471
5193
|
feesSum?: number | null | undefined;
|
|
4472
5194
|
customer?: {
|
|
4473
5195
|
email: string;
|
|
@@ -4493,11 +5215,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4493
5215
|
fieldId: string | number;
|
|
4494
5216
|
}[] | null | undefined;
|
|
4495
5217
|
lastHistory?: {
|
|
4496
|
-
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";
|
|
5218
|
+
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";
|
|
4497
5219
|
id: string;
|
|
4498
5220
|
createdAt: Date;
|
|
4499
5221
|
itemId: string | number;
|
|
4500
5222
|
data?: {
|
|
5223
|
+
type: "ACTION_CANCELED";
|
|
5224
|
+
data: {
|
|
5225
|
+
targetItemHistoryId: string;
|
|
5226
|
+
};
|
|
5227
|
+
} | {
|
|
4501
5228
|
type: "BUYER_PAID";
|
|
4502
5229
|
data: {
|
|
4503
5230
|
soldAccountId: string;
|
|
@@ -4516,42 +5243,77 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4516
5243
|
} | {
|
|
4517
5244
|
type: "FAILED_TO_PUBLISH";
|
|
4518
5245
|
data: {
|
|
4519
|
-
platform: "
|
|
5246
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4520
5247
|
accountId?: string | null | undefined;
|
|
4521
5248
|
reason?: string | null | undefined;
|
|
4522
5249
|
};
|
|
5250
|
+
} | {
|
|
5251
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
5252
|
+
data: {
|
|
5253
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5254
|
+
variations?: {
|
|
5255
|
+
fileId: string;
|
|
5256
|
+
seed: number;
|
|
5257
|
+
phash: string;
|
|
5258
|
+
distanceOriginal: number;
|
|
5259
|
+
originalImageUrl: string;
|
|
5260
|
+
originalPhash: string;
|
|
5261
|
+
}[] | null | undefined;
|
|
5262
|
+
originalPhashes?: string[] | null | undefined;
|
|
5263
|
+
};
|
|
5264
|
+
} | {
|
|
5265
|
+
type: "LIFECYCLE_COMPLETED";
|
|
5266
|
+
data: {
|
|
5267
|
+
accountId: string;
|
|
5268
|
+
};
|
|
5269
|
+
} | {
|
|
5270
|
+
type: "LIFECYCLE_STARTED";
|
|
5271
|
+
data: {
|
|
5272
|
+
accountId: string;
|
|
5273
|
+
caseId: string;
|
|
5274
|
+
};
|
|
4523
5275
|
} | {
|
|
4524
5276
|
type: "REPUBLISHING";
|
|
4525
5277
|
data: {
|
|
4526
|
-
platform: "
|
|
5278
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5279
|
+
publishingDate?: Date | null | undefined;
|
|
4527
5280
|
};
|
|
4528
5281
|
} | {
|
|
4529
5282
|
type: "SCHEDULED";
|
|
4530
5283
|
data: {
|
|
4531
|
-
platform: "
|
|
5284
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4532
5285
|
publishingDate?: Date | null | undefined;
|
|
4533
5286
|
};
|
|
4534
5287
|
} | null | undefined;
|
|
5288
|
+
accountId?: string | null | undefined;
|
|
5289
|
+
targetDate?: Date | null | undefined;
|
|
4535
5290
|
} | null | undefined;
|
|
4536
5291
|
platforms?: {
|
|
4537
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
5292
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4538
5293
|
id: string;
|
|
5294
|
+
createdAt: Date;
|
|
4539
5295
|
itemId: string | number;
|
|
5296
|
+
updatedAt: Date;
|
|
4540
5297
|
accountId: string;
|
|
4541
5298
|
platformId: string;
|
|
4542
5299
|
platformUrl: string;
|
|
4543
5300
|
platformPrice: number;
|
|
5301
|
+
publishedAt: Date;
|
|
5302
|
+
conversationId?: string | null | undefined;
|
|
4544
5303
|
account?: {
|
|
4545
5304
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4546
5305
|
userId: string | number;
|
|
4547
5306
|
name: string;
|
|
4548
|
-
platform: "
|
|
5307
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4549
5308
|
accountId: string;
|
|
5309
|
+
locale?: string | null | undefined;
|
|
4550
5310
|
night?: {
|
|
4551
5311
|
startsAt: Date;
|
|
4552
5312
|
endsAt: Date;
|
|
4553
5313
|
} | null | undefined;
|
|
4554
|
-
|
|
5314
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5315
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5316
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4555
5317
|
} | null | undefined;
|
|
4556
5318
|
}[] | null | undefined;
|
|
4557
5319
|
}>;
|
|
@@ -4568,6 +5330,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4568
5330
|
sold: boolean;
|
|
4569
5331
|
customerId?: string | number | null | undefined;
|
|
4570
5332
|
description?: string | null | undefined;
|
|
5333
|
+
state?: number | null | undefined;
|
|
4571
5334
|
colorIds?: number[] | null | undefined;
|
|
4572
5335
|
packageSizeId?: number | null | undefined;
|
|
4573
5336
|
sizeId?: number | null | undefined;
|
|
@@ -4583,7 +5346,6 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4583
5346
|
userId?: string | number | null | undefined;
|
|
4584
5347
|
} | null | undefined;
|
|
4585
5348
|
}[] | null | undefined;
|
|
4586
|
-
state?: number | null | undefined;
|
|
4587
5349
|
fees?: {
|
|
4588
5350
|
value: number;
|
|
4589
5351
|
type: string;
|
|
@@ -4602,6 +5364,9 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4602
5364
|
}[] | null | undefined;
|
|
4603
5365
|
categoryId?: number | null | undefined;
|
|
4604
5366
|
brandId?: string | number | null | undefined;
|
|
5367
|
+
estimatedPrice?: number | null | undefined;
|
|
5368
|
+
purchaseDate?: Date | null | undefined;
|
|
5369
|
+
sellingDate?: Date | null | undefined;
|
|
4605
5370
|
files?: {
|
|
4606
5371
|
fileId: string;
|
|
4607
5372
|
itemId: string | number;
|
|
@@ -4616,13 +5381,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4616
5381
|
}[] | null | undefined;
|
|
4617
5382
|
sex?: string | null | undefined;
|
|
4618
5383
|
purchasePrice?: number | null | undefined;
|
|
4619
|
-
purchaseDate?: Date | null | undefined;
|
|
4620
5384
|
purchasePlaceId?: string | number | null | undefined;
|
|
4621
5385
|
purchased?: boolean | null | undefined;
|
|
4622
5386
|
sellingPrice?: number | null | undefined;
|
|
4623
|
-
sellingDate?: Date | null | undefined;
|
|
4624
5387
|
sellingPlaceId?: string | number | null | undefined;
|
|
4625
|
-
estimatedPrice?: number | null | undefined;
|
|
4626
5388
|
feesSum?: number | null | undefined;
|
|
4627
5389
|
customer?: {
|
|
4628
5390
|
email: string;
|
|
@@ -4648,11 +5410,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4648
5410
|
fieldId: string | number;
|
|
4649
5411
|
}[] | null | undefined;
|
|
4650
5412
|
lastHistory?: {
|
|
4651
|
-
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";
|
|
5413
|
+
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";
|
|
4652
5414
|
id: string;
|
|
4653
5415
|
createdAt: Date;
|
|
4654
5416
|
itemId: string | number;
|
|
4655
5417
|
data?: {
|
|
5418
|
+
type: "ACTION_CANCELED";
|
|
5419
|
+
data: {
|
|
5420
|
+
targetItemHistoryId: string;
|
|
5421
|
+
};
|
|
5422
|
+
} | {
|
|
4656
5423
|
type: "BUYER_PAID";
|
|
4657
5424
|
data: {
|
|
4658
5425
|
soldAccountId: string;
|
|
@@ -4671,42 +5438,77 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4671
5438
|
} | {
|
|
4672
5439
|
type: "FAILED_TO_PUBLISH";
|
|
4673
5440
|
data: {
|
|
4674
|
-
platform: "
|
|
5441
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4675
5442
|
accountId?: string | null | undefined;
|
|
4676
5443
|
reason?: string | null | undefined;
|
|
4677
5444
|
};
|
|
5445
|
+
} | {
|
|
5446
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
5447
|
+
data: {
|
|
5448
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5449
|
+
variations?: {
|
|
5450
|
+
fileId: string;
|
|
5451
|
+
seed: number;
|
|
5452
|
+
phash: string;
|
|
5453
|
+
distanceOriginal: number;
|
|
5454
|
+
originalImageUrl: string;
|
|
5455
|
+
originalPhash: string;
|
|
5456
|
+
}[] | null | undefined;
|
|
5457
|
+
originalPhashes?: string[] | null | undefined;
|
|
5458
|
+
};
|
|
5459
|
+
} | {
|
|
5460
|
+
type: "LIFECYCLE_COMPLETED";
|
|
5461
|
+
data: {
|
|
5462
|
+
accountId: string;
|
|
5463
|
+
};
|
|
5464
|
+
} | {
|
|
5465
|
+
type: "LIFECYCLE_STARTED";
|
|
5466
|
+
data: {
|
|
5467
|
+
accountId: string;
|
|
5468
|
+
caseId: string;
|
|
5469
|
+
};
|
|
4678
5470
|
} | {
|
|
4679
5471
|
type: "REPUBLISHING";
|
|
4680
5472
|
data: {
|
|
4681
|
-
platform: "
|
|
5473
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5474
|
+
publishingDate?: Date | null | undefined;
|
|
4682
5475
|
};
|
|
4683
5476
|
} | {
|
|
4684
5477
|
type: "SCHEDULED";
|
|
4685
5478
|
data: {
|
|
4686
|
-
platform: "
|
|
5479
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4687
5480
|
publishingDate?: Date | null | undefined;
|
|
4688
5481
|
};
|
|
4689
5482
|
} | null | undefined;
|
|
5483
|
+
accountId?: string | null | undefined;
|
|
5484
|
+
targetDate?: Date | null | undefined;
|
|
4690
5485
|
} | null | undefined;
|
|
4691
5486
|
platforms?: {
|
|
4692
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
5487
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4693
5488
|
id: string;
|
|
5489
|
+
createdAt: Date;
|
|
4694
5490
|
itemId: string | number;
|
|
5491
|
+
updatedAt: Date;
|
|
4695
5492
|
accountId: string;
|
|
4696
5493
|
platformId: string;
|
|
4697
5494
|
platformUrl: string;
|
|
4698
5495
|
platformPrice: number;
|
|
5496
|
+
publishedAt: Date;
|
|
5497
|
+
conversationId?: string | null | undefined;
|
|
4699
5498
|
account?: {
|
|
4700
5499
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4701
5500
|
userId: string | number;
|
|
4702
5501
|
name: string;
|
|
4703
|
-
platform: "
|
|
5502
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4704
5503
|
accountId: string;
|
|
5504
|
+
locale?: string | null | undefined;
|
|
4705
5505
|
night?: {
|
|
4706
5506
|
startsAt: Date;
|
|
4707
5507
|
endsAt: Date;
|
|
4708
5508
|
} | null | undefined;
|
|
4709
|
-
|
|
5509
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5510
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5511
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4710
5512
|
} | null | undefined;
|
|
4711
5513
|
}[] | null | undefined;
|
|
4712
5514
|
};
|
|
@@ -4722,6 +5524,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4722
5524
|
sold: boolean;
|
|
4723
5525
|
customerId?: string | number | null | undefined;
|
|
4724
5526
|
description?: string | null | undefined;
|
|
5527
|
+
state?: number | null | undefined;
|
|
4725
5528
|
colorIds?: number[] | null | undefined;
|
|
4726
5529
|
packageSizeId?: number | null | undefined;
|
|
4727
5530
|
sizeId?: number | null | undefined;
|
|
@@ -4737,7 +5540,6 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4737
5540
|
userId?: string | number | null | undefined;
|
|
4738
5541
|
} | null | undefined;
|
|
4739
5542
|
}[] | null | undefined;
|
|
4740
|
-
state?: number | null | undefined;
|
|
4741
5543
|
fees?: {
|
|
4742
5544
|
value: number;
|
|
4743
5545
|
type: string;
|
|
@@ -4756,6 +5558,9 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4756
5558
|
}[] | null | undefined;
|
|
4757
5559
|
categoryId?: number | null | undefined;
|
|
4758
5560
|
brandId?: string | number | null | undefined;
|
|
5561
|
+
estimatedPrice?: number | null | undefined;
|
|
5562
|
+
purchaseDate?: Date | null | undefined;
|
|
5563
|
+
sellingDate?: Date | null | undefined;
|
|
4759
5564
|
files?: {
|
|
4760
5565
|
fileId: string;
|
|
4761
5566
|
itemId: string | number;
|
|
@@ -4770,13 +5575,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4770
5575
|
}[] | null | undefined;
|
|
4771
5576
|
sex?: string | null | undefined;
|
|
4772
5577
|
purchasePrice?: number | null | undefined;
|
|
4773
|
-
purchaseDate?: Date | null | undefined;
|
|
4774
5578
|
purchasePlaceId?: string | number | null | undefined;
|
|
4775
5579
|
purchased?: boolean | null | undefined;
|
|
4776
5580
|
sellingPrice?: number | null | undefined;
|
|
4777
|
-
sellingDate?: Date | null | undefined;
|
|
4778
5581
|
sellingPlaceId?: string | number | null | undefined;
|
|
4779
|
-
estimatedPrice?: number | null | undefined;
|
|
4780
5582
|
feesSum?: number | null | undefined;
|
|
4781
5583
|
customer?: {
|
|
4782
5584
|
email: string;
|
|
@@ -4802,11 +5604,16 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4802
5604
|
fieldId: string | number;
|
|
4803
5605
|
}[] | null | undefined;
|
|
4804
5606
|
lastHistory?: {
|
|
4805
|
-
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";
|
|
5607
|
+
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";
|
|
4806
5608
|
id: string;
|
|
4807
5609
|
createdAt: Date;
|
|
4808
5610
|
itemId: string | number;
|
|
4809
5611
|
data?: {
|
|
5612
|
+
type: "ACTION_CANCELED";
|
|
5613
|
+
data: {
|
|
5614
|
+
targetItemHistoryId: string;
|
|
5615
|
+
};
|
|
5616
|
+
} | {
|
|
4810
5617
|
type: "BUYER_PAID";
|
|
4811
5618
|
data: {
|
|
4812
5619
|
soldAccountId: string;
|
|
@@ -4825,42 +5632,77 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4825
5632
|
} | {
|
|
4826
5633
|
type: "FAILED_TO_PUBLISH";
|
|
4827
5634
|
data: {
|
|
4828
|
-
platform: "
|
|
5635
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4829
5636
|
accountId?: string | null | undefined;
|
|
4830
5637
|
reason?: string | null | undefined;
|
|
4831
5638
|
};
|
|
5639
|
+
} | {
|
|
5640
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
5641
|
+
data: {
|
|
5642
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5643
|
+
variations?: {
|
|
5644
|
+
fileId: string;
|
|
5645
|
+
seed: number;
|
|
5646
|
+
phash: string;
|
|
5647
|
+
distanceOriginal: number;
|
|
5648
|
+
originalImageUrl: string;
|
|
5649
|
+
originalPhash: string;
|
|
5650
|
+
}[] | null | undefined;
|
|
5651
|
+
originalPhashes?: string[] | null | undefined;
|
|
5652
|
+
};
|
|
5653
|
+
} | {
|
|
5654
|
+
type: "LIFECYCLE_COMPLETED";
|
|
5655
|
+
data: {
|
|
5656
|
+
accountId: string;
|
|
5657
|
+
};
|
|
5658
|
+
} | {
|
|
5659
|
+
type: "LIFECYCLE_STARTED";
|
|
5660
|
+
data: {
|
|
5661
|
+
accountId: string;
|
|
5662
|
+
caseId: string;
|
|
5663
|
+
};
|
|
4832
5664
|
} | {
|
|
4833
5665
|
type: "REPUBLISHING";
|
|
4834
5666
|
data: {
|
|
4835
|
-
platform: "
|
|
5667
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5668
|
+
publishingDate?: Date | null | undefined;
|
|
4836
5669
|
};
|
|
4837
5670
|
} | {
|
|
4838
5671
|
type: "SCHEDULED";
|
|
4839
5672
|
data: {
|
|
4840
|
-
platform: "
|
|
5673
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4841
5674
|
publishingDate?: Date | null | undefined;
|
|
4842
5675
|
};
|
|
4843
5676
|
} | null | undefined;
|
|
5677
|
+
accountId?: string | null | undefined;
|
|
5678
|
+
targetDate?: Date | null | undefined;
|
|
4844
5679
|
} | null | undefined;
|
|
4845
5680
|
platforms?: {
|
|
4846
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
5681
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
4847
5682
|
id: string;
|
|
5683
|
+
createdAt: Date;
|
|
4848
5684
|
itemId: string | number;
|
|
5685
|
+
updatedAt: Date;
|
|
4849
5686
|
accountId: string;
|
|
4850
5687
|
platformId: string;
|
|
4851
5688
|
platformUrl: string;
|
|
4852
5689
|
platformPrice: number;
|
|
5690
|
+
publishedAt: Date;
|
|
5691
|
+
conversationId?: string | null | undefined;
|
|
4853
5692
|
account?: {
|
|
4854
5693
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4855
5694
|
userId: string | number;
|
|
4856
5695
|
name: string;
|
|
4857
|
-
platform: "
|
|
5696
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4858
5697
|
accountId: string;
|
|
5698
|
+
locale?: string | null | undefined;
|
|
4859
5699
|
night?: {
|
|
4860
5700
|
startsAt: Date;
|
|
4861
5701
|
endsAt: Date;
|
|
4862
5702
|
} | null | undefined;
|
|
4863
|
-
|
|
5703
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5704
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5705
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4864
5706
|
} | null | undefined;
|
|
4865
5707
|
}[] | null | undefined;
|
|
4866
5708
|
};
|
|
@@ -5208,27 +6050,27 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
5208
6050
|
};
|
|
5209
6051
|
}>, z.ZodObject<{
|
|
5210
6052
|
historyType: z.ZodObject<{
|
|
5211
|
-
type: z.ZodOptional<z.ZodNullable<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"]>>>;
|
|
6053
|
+
type: z.ZodOptional<z.ZodNullable<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"]>>>;
|
|
5212
6054
|
count: z.ZodNumber;
|
|
5213
6055
|
}, "strip", z.ZodTypeAny, {
|
|
5214
6056
|
count: number;
|
|
5215
|
-
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" | null | undefined;
|
|
6057
|
+
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" | null | undefined;
|
|
5216
6058
|
}, {
|
|
5217
6059
|
count: number;
|
|
5218
|
-
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" | null | undefined;
|
|
6060
|
+
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" | null | undefined;
|
|
5219
6061
|
}>;
|
|
5220
6062
|
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
5221
6063
|
}, "strip", z.ZodTypeAny, {
|
|
5222
6064
|
type: "HISTORY_TYPE";
|
|
5223
6065
|
historyType: {
|
|
5224
6066
|
count: number;
|
|
5225
|
-
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" | null | undefined;
|
|
6067
|
+
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" | null | undefined;
|
|
5226
6068
|
};
|
|
5227
6069
|
}, {
|
|
5228
6070
|
type: "HISTORY_TYPE";
|
|
5229
6071
|
historyType: {
|
|
5230
6072
|
count: number;
|
|
5231
|
-
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" | null | undefined;
|
|
6073
|
+
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" | null | undefined;
|
|
5232
6074
|
};
|
|
5233
6075
|
}>, z.ZodObject<{
|
|
5234
6076
|
label: z.ZodObject<{
|
|
@@ -5435,7 +6277,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
5435
6277
|
type: "HISTORY_TYPE";
|
|
5436
6278
|
historyType: {
|
|
5437
6279
|
count: number;
|
|
5438
|
-
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" | null | undefined;
|
|
6280
|
+
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" | null | undefined;
|
|
5439
6281
|
};
|
|
5440
6282
|
} | {
|
|
5441
6283
|
type: "LABEL";
|
|
@@ -5516,7 +6358,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
5516
6358
|
type: "HISTORY_TYPE";
|
|
5517
6359
|
historyType: {
|
|
5518
6360
|
count: number;
|
|
5519
|
-
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" | null | undefined;
|
|
6361
|
+
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" | null | undefined;
|
|
5520
6362
|
};
|
|
5521
6363
|
} | {
|
|
5522
6364
|
type: "LABEL";
|