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