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
|
@@ -4,7 +4,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
accountId: z.ZodString;
|
|
6
6
|
platformOrderId: z.ZodString;
|
|
7
|
-
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"]>;
|
|
7
|
+
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"]>;
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -21,10 +21,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
21
21
|
platformUrl: z.ZodString;
|
|
22
22
|
platformPrice: z.ZodNumber;
|
|
23
23
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
24
|
+
createdAt: z.ZodDate;
|
|
25
|
+
publishedAt: z.ZodDate;
|
|
26
|
+
updatedAt: z.ZodDate;
|
|
24
27
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
28
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
26
29
|
accountId: z.ZodString;
|
|
27
|
-
platform: z.ZodEnum<["
|
|
30
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
28
31
|
name: z.ZodString;
|
|
29
32
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
33
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -38,116 +41,154 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
38
41
|
startsAt: Date;
|
|
39
42
|
endsAt: Date;
|
|
40
43
|
}>>>;
|
|
44
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
47
|
}, "strip", z.ZodTypeAny, {
|
|
42
48
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
43
49
|
userId: string | number;
|
|
44
50
|
name: string;
|
|
45
|
-
platform: "
|
|
51
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
46
52
|
accountId: string;
|
|
53
|
+
locale?: string | null | undefined;
|
|
47
54
|
night?: {
|
|
48
55
|
startsAt: Date;
|
|
49
56
|
endsAt: Date;
|
|
50
57
|
} | null | undefined;
|
|
51
|
-
|
|
58
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
59
|
+
ordersMaxDelay?: number | null | undefined;
|
|
60
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
52
61
|
}, {
|
|
53
62
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
54
63
|
userId: string | number;
|
|
55
64
|
name: string;
|
|
56
|
-
platform: "
|
|
65
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
57
66
|
accountId: string;
|
|
67
|
+
locale?: string | null | undefined;
|
|
58
68
|
night?: {
|
|
59
69
|
startsAt: Date;
|
|
60
70
|
endsAt: Date;
|
|
61
71
|
} | null | undefined;
|
|
62
|
-
|
|
72
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
73
|
+
ordersMaxDelay?: number | null | undefined;
|
|
74
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
63
75
|
}>>>;
|
|
76
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
77
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
78
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
66
79
|
id: string;
|
|
80
|
+
createdAt: Date;
|
|
67
81
|
itemId: string | number;
|
|
82
|
+
updatedAt: Date;
|
|
68
83
|
accountId: string;
|
|
69
84
|
platformId: string;
|
|
70
85
|
platformUrl: string;
|
|
71
86
|
platformPrice: number;
|
|
87
|
+
publishedAt: Date;
|
|
88
|
+
conversationId?: string | null | undefined;
|
|
72
89
|
account?: {
|
|
73
90
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
74
91
|
userId: string | number;
|
|
75
92
|
name: string;
|
|
76
|
-
platform: "
|
|
93
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
77
94
|
accountId: string;
|
|
95
|
+
locale?: string | null | undefined;
|
|
78
96
|
night?: {
|
|
79
97
|
startsAt: Date;
|
|
80
98
|
endsAt: Date;
|
|
81
99
|
} | null | undefined;
|
|
82
|
-
|
|
100
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
101
|
+
ordersMaxDelay?: number | null | undefined;
|
|
102
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
83
103
|
} | null | undefined;
|
|
84
104
|
}, {
|
|
85
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
105
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
86
106
|
id: string;
|
|
107
|
+
createdAt: Date;
|
|
87
108
|
itemId: string | number;
|
|
109
|
+
updatedAt: Date;
|
|
88
110
|
accountId: string;
|
|
89
111
|
platformId: string;
|
|
90
112
|
platformUrl: string;
|
|
91
113
|
platformPrice: number;
|
|
114
|
+
publishedAt: Date;
|
|
115
|
+
conversationId?: string | null | undefined;
|
|
92
116
|
account?: {
|
|
93
117
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
94
118
|
userId: string | number;
|
|
95
119
|
name: string;
|
|
96
|
-
platform: "
|
|
120
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
97
121
|
accountId: string;
|
|
122
|
+
locale?: string | null | undefined;
|
|
98
123
|
night?: {
|
|
99
124
|
startsAt: Date;
|
|
100
125
|
endsAt: Date;
|
|
101
126
|
} | null | undefined;
|
|
102
|
-
|
|
127
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
128
|
+
ordersMaxDelay?: number | null | undefined;
|
|
129
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
103
130
|
} | null | undefined;
|
|
104
131
|
}>>>;
|
|
105
132
|
}, "strip", z.ZodTypeAny, {
|
|
106
133
|
orderId: string;
|
|
107
134
|
itemOnPlatformId: string;
|
|
108
135
|
itemOnPlatform?: {
|
|
109
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
136
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
110
137
|
id: string;
|
|
138
|
+
createdAt: Date;
|
|
111
139
|
itemId: string | number;
|
|
140
|
+
updatedAt: Date;
|
|
112
141
|
accountId: string;
|
|
113
142
|
platformId: string;
|
|
114
143
|
platformUrl: string;
|
|
115
144
|
platformPrice: number;
|
|
145
|
+
publishedAt: Date;
|
|
146
|
+
conversationId?: string | null | undefined;
|
|
116
147
|
account?: {
|
|
117
148
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
118
149
|
userId: string | number;
|
|
119
150
|
name: string;
|
|
120
|
-
platform: "
|
|
151
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
121
152
|
accountId: string;
|
|
153
|
+
locale?: string | null | undefined;
|
|
122
154
|
night?: {
|
|
123
155
|
startsAt: Date;
|
|
124
156
|
endsAt: Date;
|
|
125
157
|
} | null | undefined;
|
|
126
|
-
|
|
158
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
159
|
+
ordersMaxDelay?: number | null | undefined;
|
|
160
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
127
161
|
} | null | undefined;
|
|
128
162
|
} | null | undefined;
|
|
129
163
|
}, {
|
|
130
164
|
orderId: string;
|
|
131
165
|
itemOnPlatformId: string;
|
|
132
166
|
itemOnPlatform?: {
|
|
133
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
167
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
134
168
|
id: string;
|
|
169
|
+
createdAt: Date;
|
|
135
170
|
itemId: string | number;
|
|
171
|
+
updatedAt: Date;
|
|
136
172
|
accountId: string;
|
|
137
173
|
platformId: string;
|
|
138
174
|
platformUrl: string;
|
|
139
175
|
platformPrice: number;
|
|
176
|
+
publishedAt: Date;
|
|
177
|
+
conversationId?: string | null | undefined;
|
|
140
178
|
account?: {
|
|
141
179
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
142
180
|
userId: string | number;
|
|
143
181
|
name: string;
|
|
144
|
-
platform: "
|
|
182
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
145
183
|
accountId: string;
|
|
184
|
+
locale?: string | null | undefined;
|
|
146
185
|
night?: {
|
|
147
186
|
startsAt: Date;
|
|
148
187
|
endsAt: Date;
|
|
149
188
|
} | null | undefined;
|
|
150
|
-
|
|
189
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
190
|
+
ordersMaxDelay?: number | null | undefined;
|
|
191
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
151
192
|
} | null | undefined;
|
|
152
193
|
} | null | undefined;
|
|
153
194
|
}>, "many">>>;
|
|
@@ -291,10 +332,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
291
332
|
}, "strip", z.ZodTypeAny, {
|
|
292
333
|
id: string;
|
|
293
334
|
name: string;
|
|
294
|
-
accountId: string;
|
|
295
335
|
postalCode: string;
|
|
296
336
|
city: string;
|
|
297
337
|
countryCode: string;
|
|
338
|
+
accountId: string;
|
|
298
339
|
addressLine1: string;
|
|
299
340
|
platformPickupPointId: string;
|
|
300
341
|
addressLine2?: string | null | undefined;
|
|
@@ -303,10 +344,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
303
344
|
}, {
|
|
304
345
|
id: string;
|
|
305
346
|
name: string;
|
|
306
|
-
accountId: string;
|
|
307
347
|
postalCode: string;
|
|
308
348
|
city: string;
|
|
309
349
|
countryCode: string;
|
|
350
|
+
accountId: string;
|
|
310
351
|
addressLine1: string;
|
|
311
352
|
platformPickupPointId: string;
|
|
312
353
|
addressLine2?: string | null | undefined;
|
|
@@ -323,10 +364,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
323
364
|
pickupPoint?: {
|
|
324
365
|
id: string;
|
|
325
366
|
name: string;
|
|
326
|
-
accountId: string;
|
|
327
367
|
postalCode: string;
|
|
328
368
|
city: string;
|
|
329
369
|
countryCode: string;
|
|
370
|
+
accountId: string;
|
|
330
371
|
addressLine1: string;
|
|
331
372
|
platformPickupPointId: string;
|
|
332
373
|
addressLine2?: string | null | undefined;
|
|
@@ -343,10 +384,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
343
384
|
pickupPoint?: {
|
|
344
385
|
id: string;
|
|
345
386
|
name: string;
|
|
346
|
-
accountId: string;
|
|
347
387
|
postalCode: string;
|
|
348
388
|
city: string;
|
|
349
389
|
countryCode: string;
|
|
390
|
+
accountId: string;
|
|
350
391
|
addressLine1: string;
|
|
351
392
|
platformPickupPointId: string;
|
|
352
393
|
addressLine2?: string | null | undefined;
|
|
@@ -355,8 +396,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
355
396
|
} | null | undefined;
|
|
356
397
|
}>, "many">>>;
|
|
357
398
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
type: "
|
|
359
|
-
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" | "
|
|
399
|
+
type: "SALE" | "PURCHASE";
|
|
400
|
+
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";
|
|
360
401
|
id: string;
|
|
361
402
|
date: Date;
|
|
362
403
|
price: number;
|
|
@@ -366,24 +407,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
366
407
|
orderId: string;
|
|
367
408
|
itemOnPlatformId: string;
|
|
368
409
|
itemOnPlatform?: {
|
|
369
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
410
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
370
411
|
id: string;
|
|
412
|
+
createdAt: Date;
|
|
371
413
|
itemId: string | number;
|
|
414
|
+
updatedAt: Date;
|
|
372
415
|
accountId: string;
|
|
373
416
|
platformId: string;
|
|
374
417
|
platformUrl: string;
|
|
375
418
|
platformPrice: number;
|
|
419
|
+
publishedAt: Date;
|
|
420
|
+
conversationId?: string | null | undefined;
|
|
376
421
|
account?: {
|
|
377
422
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
378
423
|
userId: string | number;
|
|
379
424
|
name: string;
|
|
380
|
-
platform: "
|
|
425
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
381
426
|
accountId: string;
|
|
427
|
+
locale?: string | null | undefined;
|
|
382
428
|
night?: {
|
|
383
429
|
startsAt: Date;
|
|
384
430
|
endsAt: Date;
|
|
385
431
|
} | null | undefined;
|
|
386
|
-
|
|
432
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
433
|
+
ordersMaxDelay?: number | null | undefined;
|
|
434
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
387
435
|
} | null | undefined;
|
|
388
436
|
} | null | undefined;
|
|
389
437
|
}[] | null | undefined;
|
|
@@ -427,10 +475,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
427
475
|
pickupPoint?: {
|
|
428
476
|
id: string;
|
|
429
477
|
name: string;
|
|
430
|
-
accountId: string;
|
|
431
478
|
postalCode: string;
|
|
432
479
|
city: string;
|
|
433
480
|
countryCode: string;
|
|
481
|
+
accountId: string;
|
|
434
482
|
addressLine1: string;
|
|
435
483
|
platformPickupPointId: string;
|
|
436
484
|
addressLine2?: string | null | undefined;
|
|
@@ -439,8 +487,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
439
487
|
} | null | undefined;
|
|
440
488
|
}[] | null | undefined;
|
|
441
489
|
}, {
|
|
442
|
-
type: "
|
|
443
|
-
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" | "
|
|
490
|
+
type: "SALE" | "PURCHASE";
|
|
491
|
+
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";
|
|
444
492
|
id: string;
|
|
445
493
|
date: Date;
|
|
446
494
|
price: number;
|
|
@@ -450,24 +498,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
450
498
|
orderId: string;
|
|
451
499
|
itemOnPlatformId: string;
|
|
452
500
|
itemOnPlatform?: {
|
|
453
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
501
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
454
502
|
id: string;
|
|
503
|
+
createdAt: Date;
|
|
455
504
|
itemId: string | number;
|
|
505
|
+
updatedAt: Date;
|
|
456
506
|
accountId: string;
|
|
457
507
|
platformId: string;
|
|
458
508
|
platformUrl: string;
|
|
459
509
|
platformPrice: number;
|
|
510
|
+
publishedAt: Date;
|
|
511
|
+
conversationId?: string | null | undefined;
|
|
460
512
|
account?: {
|
|
461
513
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
462
514
|
userId: string | number;
|
|
463
515
|
name: string;
|
|
464
|
-
platform: "
|
|
516
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
465
517
|
accountId: string;
|
|
518
|
+
locale?: string | null | undefined;
|
|
466
519
|
night?: {
|
|
467
520
|
startsAt: Date;
|
|
468
521
|
endsAt: Date;
|
|
469
522
|
} | null | undefined;
|
|
470
|
-
|
|
523
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
524
|
+
ordersMaxDelay?: number | null | undefined;
|
|
525
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
471
526
|
} | null | undefined;
|
|
472
527
|
} | null | undefined;
|
|
473
528
|
}[] | null | undefined;
|
|
@@ -511,10 +566,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
511
566
|
pickupPoint?: {
|
|
512
567
|
id: string;
|
|
513
568
|
name: string;
|
|
514
|
-
accountId: string;
|
|
515
569
|
postalCode: string;
|
|
516
570
|
city: string;
|
|
517
571
|
countryCode: string;
|
|
572
|
+
accountId: string;
|
|
518
573
|
addressLine1: string;
|
|
519
574
|
platformPickupPointId: string;
|
|
520
575
|
addressLine2?: string | null | undefined;
|
|
@@ -744,8 +799,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
744
799
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
745
800
|
id: z.ZodString;
|
|
746
801
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
747
|
-
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"]>;
|
|
802
|
+
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"]>;
|
|
748
803
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
804
|
+
data: z.ZodObject<{
|
|
805
|
+
targetItemHistoryId: z.ZodString;
|
|
806
|
+
}, "strip", z.ZodTypeAny, {
|
|
807
|
+
targetItemHistoryId: string;
|
|
808
|
+
}, {
|
|
809
|
+
targetItemHistoryId: string;
|
|
810
|
+
}>;
|
|
811
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
812
|
+
}, "strip", z.ZodTypeAny, {
|
|
813
|
+
type: "ACTION_CANCELED";
|
|
814
|
+
data: {
|
|
815
|
+
targetItemHistoryId: string;
|
|
816
|
+
};
|
|
817
|
+
}, {
|
|
818
|
+
type: "ACTION_CANCELED";
|
|
819
|
+
data: {
|
|
820
|
+
targetItemHistoryId: string;
|
|
821
|
+
};
|
|
822
|
+
}>, z.ZodObject<{
|
|
749
823
|
data: z.ZodObject<{
|
|
750
824
|
soldAccountId: z.ZodString;
|
|
751
825
|
soldOrderId: z.ZodString;
|
|
@@ -811,15 +885,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
811
885
|
type: "EMPTY";
|
|
812
886
|
}>, z.ZodObject<{
|
|
813
887
|
data: z.ZodObject<{
|
|
814
|
-
platform: z.ZodEnum<["
|
|
888
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
815
889
|
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
890
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
891
|
}, "strip", z.ZodTypeAny, {
|
|
818
|
-
platform: "
|
|
892
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
819
893
|
accountId?: string | null | undefined;
|
|
820
894
|
reason?: string | null | undefined;
|
|
821
895
|
}, {
|
|
822
|
-
platform: "
|
|
896
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
823
897
|
accountId?: string | null | undefined;
|
|
824
898
|
reason?: string | null | undefined;
|
|
825
899
|
}>;
|
|
@@ -827,68 +901,201 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
827
901
|
}, "strip", z.ZodTypeAny, {
|
|
828
902
|
type: "FAILED_TO_PUBLISH";
|
|
829
903
|
data: {
|
|
830
|
-
platform: "
|
|
904
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
831
905
|
accountId?: string | null | undefined;
|
|
832
906
|
reason?: string | null | undefined;
|
|
833
907
|
};
|
|
834
908
|
}, {
|
|
835
909
|
type: "FAILED_TO_PUBLISH";
|
|
836
910
|
data: {
|
|
837
|
-
platform: "
|
|
911
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
838
912
|
accountId?: string | null | undefined;
|
|
839
913
|
reason?: string | null | undefined;
|
|
840
914
|
};
|
|
841
915
|
}>, z.ZodObject<{
|
|
842
916
|
data: z.ZodObject<{
|
|
843
|
-
platform: z.ZodEnum<["
|
|
917
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
918
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
919
|
+
fileId: z.ZodString;
|
|
920
|
+
seed: z.ZodNumber;
|
|
921
|
+
phash: z.ZodString;
|
|
922
|
+
distanceOriginal: z.ZodNumber;
|
|
923
|
+
originalImageUrl: z.ZodString;
|
|
924
|
+
originalPhash: z.ZodString;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
fileId: string;
|
|
927
|
+
seed: number;
|
|
928
|
+
phash: string;
|
|
929
|
+
distanceOriginal: number;
|
|
930
|
+
originalImageUrl: string;
|
|
931
|
+
originalPhash: string;
|
|
932
|
+
}, {
|
|
933
|
+
fileId: string;
|
|
934
|
+
seed: number;
|
|
935
|
+
phash: string;
|
|
936
|
+
distanceOriginal: number;
|
|
937
|
+
originalImageUrl: string;
|
|
938
|
+
originalPhash: string;
|
|
939
|
+
}>, "many">>>;
|
|
940
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
941
|
+
}, "strip", z.ZodTypeAny, {
|
|
942
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
943
|
+
variations?: {
|
|
944
|
+
fileId: string;
|
|
945
|
+
seed: number;
|
|
946
|
+
phash: string;
|
|
947
|
+
distanceOriginal: number;
|
|
948
|
+
originalImageUrl: string;
|
|
949
|
+
originalPhash: string;
|
|
950
|
+
}[] | null | undefined;
|
|
951
|
+
originalPhashes?: string[] | null | undefined;
|
|
952
|
+
}, {
|
|
953
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
954
|
+
variations?: {
|
|
955
|
+
fileId: string;
|
|
956
|
+
seed: number;
|
|
957
|
+
phash: string;
|
|
958
|
+
distanceOriginal: number;
|
|
959
|
+
originalImageUrl: string;
|
|
960
|
+
originalPhash: string;
|
|
961
|
+
}[] | null | undefined;
|
|
962
|
+
originalPhashes?: string[] | null | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
965
|
+
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
967
|
+
data: {
|
|
968
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
969
|
+
variations?: {
|
|
970
|
+
fileId: string;
|
|
971
|
+
seed: number;
|
|
972
|
+
phash: string;
|
|
973
|
+
distanceOriginal: number;
|
|
974
|
+
originalImageUrl: string;
|
|
975
|
+
originalPhash: string;
|
|
976
|
+
}[] | null | undefined;
|
|
977
|
+
originalPhashes?: string[] | null | undefined;
|
|
978
|
+
};
|
|
979
|
+
}, {
|
|
980
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
981
|
+
data: {
|
|
982
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
983
|
+
variations?: {
|
|
984
|
+
fileId: string;
|
|
985
|
+
seed: number;
|
|
986
|
+
phash: string;
|
|
987
|
+
distanceOriginal: number;
|
|
988
|
+
originalImageUrl: string;
|
|
989
|
+
originalPhash: string;
|
|
990
|
+
}[] | null | undefined;
|
|
991
|
+
originalPhashes?: string[] | null | undefined;
|
|
992
|
+
};
|
|
993
|
+
}>, z.ZodObject<{
|
|
994
|
+
data: z.ZodObject<{
|
|
995
|
+
accountId: z.ZodString;
|
|
844
996
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
-
|
|
997
|
+
accountId: string;
|
|
846
998
|
}, {
|
|
847
|
-
|
|
999
|
+
accountId: string;
|
|
1000
|
+
}>;
|
|
1001
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
1002
|
+
}, "strip", z.ZodTypeAny, {
|
|
1003
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1004
|
+
data: {
|
|
1005
|
+
accountId: string;
|
|
1006
|
+
};
|
|
1007
|
+
}, {
|
|
1008
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1009
|
+
data: {
|
|
1010
|
+
accountId: string;
|
|
1011
|
+
};
|
|
1012
|
+
}>, z.ZodObject<{
|
|
1013
|
+
data: z.ZodObject<{
|
|
1014
|
+
accountId: z.ZodString;
|
|
1015
|
+
caseId: z.ZodString;
|
|
1016
|
+
}, "strip", z.ZodTypeAny, {
|
|
1017
|
+
accountId: string;
|
|
1018
|
+
caseId: string;
|
|
1019
|
+
}, {
|
|
1020
|
+
accountId: string;
|
|
1021
|
+
caseId: string;
|
|
1022
|
+
}>;
|
|
1023
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
1024
|
+
}, "strip", z.ZodTypeAny, {
|
|
1025
|
+
type: "LIFECYCLE_STARTED";
|
|
1026
|
+
data: {
|
|
1027
|
+
accountId: string;
|
|
1028
|
+
caseId: string;
|
|
1029
|
+
};
|
|
1030
|
+
}, {
|
|
1031
|
+
type: "LIFECYCLE_STARTED";
|
|
1032
|
+
data: {
|
|
1033
|
+
accountId: string;
|
|
1034
|
+
caseId: string;
|
|
1035
|
+
};
|
|
1036
|
+
}>, z.ZodObject<{
|
|
1037
|
+
data: z.ZodObject<{
|
|
1038
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1039
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1040
|
+
}, "strip", z.ZodTypeAny, {
|
|
1041
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1042
|
+
publishingDate?: Date | null | undefined;
|
|
1043
|
+
}, {
|
|
1044
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1045
|
+
publishingDate?: Date | null | undefined;
|
|
848
1046
|
}>;
|
|
849
1047
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
850
1048
|
}, "strip", z.ZodTypeAny, {
|
|
851
1049
|
type: "REPUBLISHING";
|
|
852
1050
|
data: {
|
|
853
|
-
platform: "
|
|
1051
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1052
|
+
publishingDate?: Date | null | undefined;
|
|
854
1053
|
};
|
|
855
1054
|
}, {
|
|
856
1055
|
type: "REPUBLISHING";
|
|
857
1056
|
data: {
|
|
858
|
-
platform: "
|
|
1057
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1058
|
+
publishingDate?: Date | null | undefined;
|
|
859
1059
|
};
|
|
860
1060
|
}>, z.ZodObject<{
|
|
861
1061
|
data: z.ZodObject<{
|
|
862
|
-
platform: z.ZodEnum<["
|
|
1062
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
863
1063
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
864
1064
|
}, "strip", z.ZodTypeAny, {
|
|
865
|
-
platform: "
|
|
1065
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
866
1066
|
publishingDate?: Date | null | undefined;
|
|
867
1067
|
}, {
|
|
868
|
-
platform: "
|
|
1068
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
869
1069
|
publishingDate?: Date | null | undefined;
|
|
870
1070
|
}>;
|
|
871
1071
|
type: z.ZodLiteral<"SCHEDULED">;
|
|
872
1072
|
}, "strip", z.ZodTypeAny, {
|
|
873
1073
|
type: "SCHEDULED";
|
|
874
1074
|
data: {
|
|
875
|
-
platform: "
|
|
1075
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
876
1076
|
publishingDate?: Date | null | undefined;
|
|
877
1077
|
};
|
|
878
1078
|
}, {
|
|
879
1079
|
type: "SCHEDULED";
|
|
880
1080
|
data: {
|
|
881
|
-
platform: "
|
|
1081
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
882
1082
|
publishingDate?: Date | null | undefined;
|
|
883
1083
|
};
|
|
884
1084
|
}>]>>>;
|
|
885
1085
|
createdAt: z.ZodDate;
|
|
1086
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1087
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
886
1088
|
}, "strip", z.ZodTypeAny, {
|
|
887
|
-
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";
|
|
1089
|
+
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";
|
|
888
1090
|
id: string;
|
|
889
1091
|
createdAt: Date;
|
|
890
1092
|
itemId: string | number;
|
|
891
1093
|
data?: {
|
|
1094
|
+
type: "ACTION_CANCELED";
|
|
1095
|
+
data: {
|
|
1096
|
+
targetItemHistoryId: string;
|
|
1097
|
+
};
|
|
1098
|
+
} | {
|
|
892
1099
|
type: "BUYER_PAID";
|
|
893
1100
|
data: {
|
|
894
1101
|
soldAccountId: string;
|
|
@@ -907,28 +1114,61 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
907
1114
|
} | {
|
|
908
1115
|
type: "FAILED_TO_PUBLISH";
|
|
909
1116
|
data: {
|
|
910
|
-
platform: "
|
|
1117
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
911
1118
|
accountId?: string | null | undefined;
|
|
912
1119
|
reason?: string | null | undefined;
|
|
913
1120
|
};
|
|
1121
|
+
} | {
|
|
1122
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1123
|
+
data: {
|
|
1124
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1125
|
+
variations?: {
|
|
1126
|
+
fileId: string;
|
|
1127
|
+
seed: number;
|
|
1128
|
+
phash: string;
|
|
1129
|
+
distanceOriginal: number;
|
|
1130
|
+
originalImageUrl: string;
|
|
1131
|
+
originalPhash: string;
|
|
1132
|
+
}[] | null | undefined;
|
|
1133
|
+
originalPhashes?: string[] | null | undefined;
|
|
1134
|
+
};
|
|
1135
|
+
} | {
|
|
1136
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1137
|
+
data: {
|
|
1138
|
+
accountId: string;
|
|
1139
|
+
};
|
|
1140
|
+
} | {
|
|
1141
|
+
type: "LIFECYCLE_STARTED";
|
|
1142
|
+
data: {
|
|
1143
|
+
accountId: string;
|
|
1144
|
+
caseId: string;
|
|
1145
|
+
};
|
|
914
1146
|
} | {
|
|
915
1147
|
type: "REPUBLISHING";
|
|
916
1148
|
data: {
|
|
917
|
-
platform: "
|
|
1149
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1150
|
+
publishingDate?: Date | null | undefined;
|
|
918
1151
|
};
|
|
919
1152
|
} | {
|
|
920
1153
|
type: "SCHEDULED";
|
|
921
1154
|
data: {
|
|
922
|
-
platform: "
|
|
1155
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
923
1156
|
publishingDate?: Date | null | undefined;
|
|
924
1157
|
};
|
|
925
1158
|
} | null | undefined;
|
|
1159
|
+
accountId?: string | null | undefined;
|
|
1160
|
+
targetDate?: Date | null | undefined;
|
|
926
1161
|
}, {
|
|
927
|
-
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";
|
|
1162
|
+
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";
|
|
928
1163
|
id: string;
|
|
929
1164
|
createdAt: Date;
|
|
930
1165
|
itemId: string | number;
|
|
931
1166
|
data?: {
|
|
1167
|
+
type: "ACTION_CANCELED";
|
|
1168
|
+
data: {
|
|
1169
|
+
targetItemHistoryId: string;
|
|
1170
|
+
};
|
|
1171
|
+
} | {
|
|
932
1172
|
type: "BUYER_PAID";
|
|
933
1173
|
data: {
|
|
934
1174
|
soldAccountId: string;
|
|
@@ -947,22 +1187,50 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
947
1187
|
} | {
|
|
948
1188
|
type: "FAILED_TO_PUBLISH";
|
|
949
1189
|
data: {
|
|
950
|
-
platform: "
|
|
1190
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
951
1191
|
accountId?: string | null | undefined;
|
|
952
1192
|
reason?: string | null | undefined;
|
|
953
1193
|
};
|
|
1194
|
+
} | {
|
|
1195
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1196
|
+
data: {
|
|
1197
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1198
|
+
variations?: {
|
|
1199
|
+
fileId: string;
|
|
1200
|
+
seed: number;
|
|
1201
|
+
phash: string;
|
|
1202
|
+
distanceOriginal: number;
|
|
1203
|
+
originalImageUrl: string;
|
|
1204
|
+
originalPhash: string;
|
|
1205
|
+
}[] | null | undefined;
|
|
1206
|
+
originalPhashes?: string[] | null | undefined;
|
|
1207
|
+
};
|
|
1208
|
+
} | {
|
|
1209
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1210
|
+
data: {
|
|
1211
|
+
accountId: string;
|
|
1212
|
+
};
|
|
1213
|
+
} | {
|
|
1214
|
+
type: "LIFECYCLE_STARTED";
|
|
1215
|
+
data: {
|
|
1216
|
+
accountId: string;
|
|
1217
|
+
caseId: string;
|
|
1218
|
+
};
|
|
954
1219
|
} | {
|
|
955
1220
|
type: "REPUBLISHING";
|
|
956
1221
|
data: {
|
|
957
|
-
platform: "
|
|
1222
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1223
|
+
publishingDate?: Date | null | undefined;
|
|
958
1224
|
};
|
|
959
1225
|
} | {
|
|
960
1226
|
type: "SCHEDULED";
|
|
961
1227
|
data: {
|
|
962
|
-
platform: "
|
|
1228
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
963
1229
|
publishingDate?: Date | null | undefined;
|
|
964
1230
|
};
|
|
965
1231
|
} | null | undefined;
|
|
1232
|
+
accountId?: string | null | undefined;
|
|
1233
|
+
targetDate?: Date | null | undefined;
|
|
966
1234
|
}>>>;
|
|
967
1235
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
968
1236
|
id: z.ZodString;
|
|
@@ -972,10 +1240,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
972
1240
|
platformUrl: z.ZodString;
|
|
973
1241
|
platformPrice: z.ZodNumber;
|
|
974
1242
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
1243
|
+
createdAt: z.ZodDate;
|
|
1244
|
+
publishedAt: z.ZodDate;
|
|
1245
|
+
updatedAt: z.ZodDate;
|
|
975
1246
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
976
1247
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
977
1248
|
accountId: z.ZodString;
|
|
978
|
-
platform: z.ZodEnum<["
|
|
1249
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
979
1250
|
name: z.ZodString;
|
|
980
1251
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
981
1252
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -989,68 +1260,92 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
989
1260
|
startsAt: Date;
|
|
990
1261
|
endsAt: Date;
|
|
991
1262
|
}>>>;
|
|
1263
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1264
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1265
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
992
1266
|
}, "strip", z.ZodTypeAny, {
|
|
993
1267
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
994
1268
|
userId: string | number;
|
|
995
1269
|
name: string;
|
|
996
|
-
platform: "
|
|
1270
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
997
1271
|
accountId: string;
|
|
1272
|
+
locale?: string | null | undefined;
|
|
998
1273
|
night?: {
|
|
999
1274
|
startsAt: Date;
|
|
1000
1275
|
endsAt: Date;
|
|
1001
1276
|
} | null | undefined;
|
|
1002
|
-
|
|
1277
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1278
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1279
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1003
1280
|
}, {
|
|
1004
1281
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1005
1282
|
userId: string | number;
|
|
1006
1283
|
name: string;
|
|
1007
|
-
platform: "
|
|
1284
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1008
1285
|
accountId: string;
|
|
1286
|
+
locale?: string | null | undefined;
|
|
1009
1287
|
night?: {
|
|
1010
1288
|
startsAt: Date;
|
|
1011
1289
|
endsAt: Date;
|
|
1012
1290
|
} | null | undefined;
|
|
1013
|
-
|
|
1291
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1292
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1293
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1014
1294
|
}>>>;
|
|
1295
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1015
1296
|
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1297
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1017
1298
|
id: string;
|
|
1299
|
+
createdAt: Date;
|
|
1018
1300
|
itemId: string | number;
|
|
1301
|
+
updatedAt: Date;
|
|
1019
1302
|
accountId: string;
|
|
1020
1303
|
platformId: string;
|
|
1021
1304
|
platformUrl: string;
|
|
1022
1305
|
platformPrice: number;
|
|
1306
|
+
publishedAt: Date;
|
|
1307
|
+
conversationId?: string | null | undefined;
|
|
1023
1308
|
account?: {
|
|
1024
1309
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1025
1310
|
userId: string | number;
|
|
1026
1311
|
name: string;
|
|
1027
|
-
platform: "
|
|
1312
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1028
1313
|
accountId: string;
|
|
1314
|
+
locale?: string | null | undefined;
|
|
1029
1315
|
night?: {
|
|
1030
1316
|
startsAt: Date;
|
|
1031
1317
|
endsAt: Date;
|
|
1032
1318
|
} | null | undefined;
|
|
1033
|
-
|
|
1319
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1320
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1321
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1034
1322
|
} | null | undefined;
|
|
1035
1323
|
}, {
|
|
1036
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1324
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1037
1325
|
id: string;
|
|
1326
|
+
createdAt: Date;
|
|
1038
1327
|
itemId: string | number;
|
|
1328
|
+
updatedAt: Date;
|
|
1039
1329
|
accountId: string;
|
|
1040
1330
|
platformId: string;
|
|
1041
1331
|
platformUrl: string;
|
|
1042
1332
|
platformPrice: number;
|
|
1333
|
+
publishedAt: Date;
|
|
1334
|
+
conversationId?: string | null | undefined;
|
|
1043
1335
|
account?: {
|
|
1044
1336
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1045
1337
|
userId: string | number;
|
|
1046
1338
|
name: string;
|
|
1047
|
-
platform: "
|
|
1339
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1048
1340
|
accountId: string;
|
|
1341
|
+
locale?: string | null | undefined;
|
|
1049
1342
|
night?: {
|
|
1050
1343
|
startsAt: Date;
|
|
1051
1344
|
endsAt: Date;
|
|
1052
1345
|
} | null | undefined;
|
|
1053
|
-
|
|
1346
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1347
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1348
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1054
1349
|
} | null | undefined;
|
|
1055
1350
|
}>, "many">>>;
|
|
1056
1351
|
createdAt: z.ZodDate;
|
|
@@ -1064,6 +1359,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1064
1359
|
sold: boolean;
|
|
1065
1360
|
customerId?: string | number | null | undefined;
|
|
1066
1361
|
description?: string | null | undefined;
|
|
1362
|
+
state?: number | null | undefined;
|
|
1067
1363
|
colorIds?: number[] | null | undefined;
|
|
1068
1364
|
packageSizeId?: number | null | undefined;
|
|
1069
1365
|
sizeId?: number | null | undefined;
|
|
@@ -1079,7 +1375,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1079
1375
|
userId?: string | number | null | undefined;
|
|
1080
1376
|
} | null | undefined;
|
|
1081
1377
|
}[] | null | undefined;
|
|
1082
|
-
state?: number | null | undefined;
|
|
1083
1378
|
fees?: {
|
|
1084
1379
|
value: number;
|
|
1085
1380
|
type: string;
|
|
@@ -1098,6 +1393,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1098
1393
|
}[] | null | undefined;
|
|
1099
1394
|
categoryId?: number | null | undefined;
|
|
1100
1395
|
brandId?: string | number | null | undefined;
|
|
1396
|
+
estimatedPrice?: number | null | undefined;
|
|
1397
|
+
purchaseDate?: Date | null | undefined;
|
|
1398
|
+
sellingDate?: Date | null | undefined;
|
|
1101
1399
|
files?: {
|
|
1102
1400
|
fileId: string;
|
|
1103
1401
|
itemId: string | number;
|
|
@@ -1112,13 +1410,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1112
1410
|
}[] | null | undefined;
|
|
1113
1411
|
sex?: string | null | undefined;
|
|
1114
1412
|
purchasePrice?: number | null | undefined;
|
|
1115
|
-
purchaseDate?: Date | null | undefined;
|
|
1116
1413
|
purchasePlaceId?: string | number | null | undefined;
|
|
1117
1414
|
purchased?: boolean | null | undefined;
|
|
1118
1415
|
sellingPrice?: number | null | undefined;
|
|
1119
|
-
sellingDate?: Date | null | undefined;
|
|
1120
1416
|
sellingPlaceId?: string | number | null | undefined;
|
|
1121
|
-
estimatedPrice?: number | null | undefined;
|
|
1122
1417
|
feesSum?: number | null | undefined;
|
|
1123
1418
|
customer?: {
|
|
1124
1419
|
email: string;
|
|
@@ -1144,11 +1439,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1144
1439
|
fieldId: string | number;
|
|
1145
1440
|
}[] | null | undefined;
|
|
1146
1441
|
lastHistory?: {
|
|
1147
|
-
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";
|
|
1442
|
+
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";
|
|
1148
1443
|
id: string;
|
|
1149
1444
|
createdAt: Date;
|
|
1150
1445
|
itemId: string | number;
|
|
1151
1446
|
data?: {
|
|
1447
|
+
type: "ACTION_CANCELED";
|
|
1448
|
+
data: {
|
|
1449
|
+
targetItemHistoryId: string;
|
|
1450
|
+
};
|
|
1451
|
+
} | {
|
|
1152
1452
|
type: "BUYER_PAID";
|
|
1153
1453
|
data: {
|
|
1154
1454
|
soldAccountId: string;
|
|
@@ -1167,42 +1467,77 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1167
1467
|
} | {
|
|
1168
1468
|
type: "FAILED_TO_PUBLISH";
|
|
1169
1469
|
data: {
|
|
1170
|
-
platform: "
|
|
1470
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1171
1471
|
accountId?: string | null | undefined;
|
|
1172
1472
|
reason?: string | null | undefined;
|
|
1173
1473
|
};
|
|
1474
|
+
} | {
|
|
1475
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1476
|
+
data: {
|
|
1477
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1478
|
+
variations?: {
|
|
1479
|
+
fileId: string;
|
|
1480
|
+
seed: number;
|
|
1481
|
+
phash: string;
|
|
1482
|
+
distanceOriginal: number;
|
|
1483
|
+
originalImageUrl: string;
|
|
1484
|
+
originalPhash: string;
|
|
1485
|
+
}[] | null | undefined;
|
|
1486
|
+
originalPhashes?: string[] | null | undefined;
|
|
1487
|
+
};
|
|
1488
|
+
} | {
|
|
1489
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1490
|
+
data: {
|
|
1491
|
+
accountId: string;
|
|
1492
|
+
};
|
|
1493
|
+
} | {
|
|
1494
|
+
type: "LIFECYCLE_STARTED";
|
|
1495
|
+
data: {
|
|
1496
|
+
accountId: string;
|
|
1497
|
+
caseId: string;
|
|
1498
|
+
};
|
|
1174
1499
|
} | {
|
|
1175
1500
|
type: "REPUBLISHING";
|
|
1176
1501
|
data: {
|
|
1177
|
-
platform: "
|
|
1502
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1503
|
+
publishingDate?: Date | null | undefined;
|
|
1178
1504
|
};
|
|
1179
1505
|
} | {
|
|
1180
1506
|
type: "SCHEDULED";
|
|
1181
1507
|
data: {
|
|
1182
|
-
platform: "
|
|
1508
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1183
1509
|
publishingDate?: Date | null | undefined;
|
|
1184
1510
|
};
|
|
1185
1511
|
} | null | undefined;
|
|
1512
|
+
accountId?: string | null | undefined;
|
|
1513
|
+
targetDate?: Date | null | undefined;
|
|
1186
1514
|
} | null | undefined;
|
|
1187
1515
|
platforms?: {
|
|
1188
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1516
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1189
1517
|
id: string;
|
|
1518
|
+
createdAt: Date;
|
|
1190
1519
|
itemId: string | number;
|
|
1520
|
+
updatedAt: Date;
|
|
1191
1521
|
accountId: string;
|
|
1192
1522
|
platformId: string;
|
|
1193
1523
|
platformUrl: string;
|
|
1194
1524
|
platformPrice: number;
|
|
1525
|
+
publishedAt: Date;
|
|
1526
|
+
conversationId?: string | null | undefined;
|
|
1195
1527
|
account?: {
|
|
1196
1528
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1197
1529
|
userId: string | number;
|
|
1198
1530
|
name: string;
|
|
1199
|
-
platform: "
|
|
1531
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1200
1532
|
accountId: string;
|
|
1533
|
+
locale?: string | null | undefined;
|
|
1201
1534
|
night?: {
|
|
1202
1535
|
startsAt: Date;
|
|
1203
1536
|
endsAt: Date;
|
|
1204
1537
|
} | null | undefined;
|
|
1205
|
-
|
|
1538
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1539
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1540
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1206
1541
|
} | null | undefined;
|
|
1207
1542
|
}[] | null | undefined;
|
|
1208
1543
|
}, {
|
|
@@ -1214,6 +1549,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1214
1549
|
sold: boolean;
|
|
1215
1550
|
customerId?: string | number | null | undefined;
|
|
1216
1551
|
description?: string | null | undefined;
|
|
1552
|
+
state?: number | null | undefined;
|
|
1217
1553
|
colorIds?: number[] | null | undefined;
|
|
1218
1554
|
packageSizeId?: number | null | undefined;
|
|
1219
1555
|
sizeId?: number | null | undefined;
|
|
@@ -1229,7 +1565,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1229
1565
|
userId?: string | number | null | undefined;
|
|
1230
1566
|
} | null | undefined;
|
|
1231
1567
|
}[] | null | undefined;
|
|
1232
|
-
state?: number | null | undefined;
|
|
1233
1568
|
fees?: {
|
|
1234
1569
|
value: number;
|
|
1235
1570
|
type: string;
|
|
@@ -1248,6 +1583,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1248
1583
|
}[] | null | undefined;
|
|
1249
1584
|
categoryId?: number | null | undefined;
|
|
1250
1585
|
brandId?: string | number | null | undefined;
|
|
1586
|
+
estimatedPrice?: number | null | undefined;
|
|
1587
|
+
purchaseDate?: Date | null | undefined;
|
|
1588
|
+
sellingDate?: Date | null | undefined;
|
|
1251
1589
|
files?: {
|
|
1252
1590
|
fileId: string;
|
|
1253
1591
|
itemId: string | number;
|
|
@@ -1262,13 +1600,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1262
1600
|
}[] | null | undefined;
|
|
1263
1601
|
sex?: string | null | undefined;
|
|
1264
1602
|
purchasePrice?: number | null | undefined;
|
|
1265
|
-
purchaseDate?: Date | null | undefined;
|
|
1266
1603
|
purchasePlaceId?: string | number | null | undefined;
|
|
1267
1604
|
purchased?: boolean | null | undefined;
|
|
1268
1605
|
sellingPrice?: number | null | undefined;
|
|
1269
|
-
sellingDate?: Date | null | undefined;
|
|
1270
1606
|
sellingPlaceId?: string | number | null | undefined;
|
|
1271
|
-
estimatedPrice?: number | null | undefined;
|
|
1272
1607
|
feesSum?: number | null | undefined;
|
|
1273
1608
|
customer?: {
|
|
1274
1609
|
email: string;
|
|
@@ -1294,11 +1629,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1294
1629
|
fieldId: string | number;
|
|
1295
1630
|
}[] | null | undefined;
|
|
1296
1631
|
lastHistory?: {
|
|
1297
|
-
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";
|
|
1632
|
+
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";
|
|
1298
1633
|
id: string;
|
|
1299
1634
|
createdAt: Date;
|
|
1300
1635
|
itemId: string | number;
|
|
1301
1636
|
data?: {
|
|
1637
|
+
type: "ACTION_CANCELED";
|
|
1638
|
+
data: {
|
|
1639
|
+
targetItemHistoryId: string;
|
|
1640
|
+
};
|
|
1641
|
+
} | {
|
|
1302
1642
|
type: "BUYER_PAID";
|
|
1303
1643
|
data: {
|
|
1304
1644
|
soldAccountId: string;
|
|
@@ -1317,42 +1657,77 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1317
1657
|
} | {
|
|
1318
1658
|
type: "FAILED_TO_PUBLISH";
|
|
1319
1659
|
data: {
|
|
1320
|
-
platform: "
|
|
1660
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1321
1661
|
accountId?: string | null | undefined;
|
|
1322
1662
|
reason?: string | null | undefined;
|
|
1323
1663
|
};
|
|
1664
|
+
} | {
|
|
1665
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1666
|
+
data: {
|
|
1667
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1668
|
+
variations?: {
|
|
1669
|
+
fileId: string;
|
|
1670
|
+
seed: number;
|
|
1671
|
+
phash: string;
|
|
1672
|
+
distanceOriginal: number;
|
|
1673
|
+
originalImageUrl: string;
|
|
1674
|
+
originalPhash: string;
|
|
1675
|
+
}[] | null | undefined;
|
|
1676
|
+
originalPhashes?: string[] | null | undefined;
|
|
1677
|
+
};
|
|
1678
|
+
} | {
|
|
1679
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1680
|
+
data: {
|
|
1681
|
+
accountId: string;
|
|
1682
|
+
};
|
|
1683
|
+
} | {
|
|
1684
|
+
type: "LIFECYCLE_STARTED";
|
|
1685
|
+
data: {
|
|
1686
|
+
accountId: string;
|
|
1687
|
+
caseId: string;
|
|
1688
|
+
};
|
|
1324
1689
|
} | {
|
|
1325
1690
|
type: "REPUBLISHING";
|
|
1326
1691
|
data: {
|
|
1327
|
-
platform: "
|
|
1692
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1693
|
+
publishingDate?: Date | null | undefined;
|
|
1328
1694
|
};
|
|
1329
1695
|
} | {
|
|
1330
1696
|
type: "SCHEDULED";
|
|
1331
1697
|
data: {
|
|
1332
|
-
platform: "
|
|
1698
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1333
1699
|
publishingDate?: Date | null | undefined;
|
|
1334
1700
|
};
|
|
1335
1701
|
} | null | undefined;
|
|
1702
|
+
accountId?: string | null | undefined;
|
|
1703
|
+
targetDate?: Date | null | undefined;
|
|
1336
1704
|
} | null | undefined;
|
|
1337
1705
|
platforms?: {
|
|
1338
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1706
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1339
1707
|
id: string;
|
|
1708
|
+
createdAt: Date;
|
|
1340
1709
|
itemId: string | number;
|
|
1710
|
+
updatedAt: Date;
|
|
1341
1711
|
accountId: string;
|
|
1342
1712
|
platformId: string;
|
|
1343
1713
|
platformUrl: string;
|
|
1344
1714
|
platformPrice: number;
|
|
1715
|
+
publishedAt: Date;
|
|
1716
|
+
conversationId?: string | null | undefined;
|
|
1345
1717
|
account?: {
|
|
1346
1718
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1347
1719
|
userId: string | number;
|
|
1348
1720
|
name: string;
|
|
1349
|
-
platform: "
|
|
1721
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1350
1722
|
accountId: string;
|
|
1723
|
+
locale?: string | null | undefined;
|
|
1351
1724
|
night?: {
|
|
1352
1725
|
startsAt: Date;
|
|
1353
1726
|
endsAt: Date;
|
|
1354
1727
|
} | null | undefined;
|
|
1355
|
-
|
|
1728
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1729
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1730
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1356
1731
|
} | null | undefined;
|
|
1357
1732
|
}[] | null | undefined;
|
|
1358
1733
|
}>, "many">;
|
|
@@ -1366,6 +1741,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1366
1741
|
sold: boolean;
|
|
1367
1742
|
customerId?: string | number | null | undefined;
|
|
1368
1743
|
description?: string | null | undefined;
|
|
1744
|
+
state?: number | null | undefined;
|
|
1369
1745
|
colorIds?: number[] | null | undefined;
|
|
1370
1746
|
packageSizeId?: number | null | undefined;
|
|
1371
1747
|
sizeId?: number | null | undefined;
|
|
@@ -1381,7 +1757,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1381
1757
|
userId?: string | number | null | undefined;
|
|
1382
1758
|
} | null | undefined;
|
|
1383
1759
|
}[] | null | undefined;
|
|
1384
|
-
state?: number | null | undefined;
|
|
1385
1760
|
fees?: {
|
|
1386
1761
|
value: number;
|
|
1387
1762
|
type: string;
|
|
@@ -1400,6 +1775,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1400
1775
|
}[] | null | undefined;
|
|
1401
1776
|
categoryId?: number | null | undefined;
|
|
1402
1777
|
brandId?: string | number | null | undefined;
|
|
1778
|
+
estimatedPrice?: number | null | undefined;
|
|
1779
|
+
purchaseDate?: Date | null | undefined;
|
|
1780
|
+
sellingDate?: Date | null | undefined;
|
|
1403
1781
|
files?: {
|
|
1404
1782
|
fileId: string;
|
|
1405
1783
|
itemId: string | number;
|
|
@@ -1414,13 +1792,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1414
1792
|
}[] | null | undefined;
|
|
1415
1793
|
sex?: string | null | undefined;
|
|
1416
1794
|
purchasePrice?: number | null | undefined;
|
|
1417
|
-
purchaseDate?: Date | null | undefined;
|
|
1418
1795
|
purchasePlaceId?: string | number | null | undefined;
|
|
1419
1796
|
purchased?: boolean | null | undefined;
|
|
1420
1797
|
sellingPrice?: number | null | undefined;
|
|
1421
|
-
sellingDate?: Date | null | undefined;
|
|
1422
1798
|
sellingPlaceId?: string | number | null | undefined;
|
|
1423
|
-
estimatedPrice?: number | null | undefined;
|
|
1424
1799
|
feesSum?: number | null | undefined;
|
|
1425
1800
|
customer?: {
|
|
1426
1801
|
email: string;
|
|
@@ -1446,11 +1821,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1446
1821
|
fieldId: string | number;
|
|
1447
1822
|
}[] | null | undefined;
|
|
1448
1823
|
lastHistory?: {
|
|
1449
|
-
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";
|
|
1824
|
+
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";
|
|
1450
1825
|
id: string;
|
|
1451
1826
|
createdAt: Date;
|
|
1452
1827
|
itemId: string | number;
|
|
1453
1828
|
data?: {
|
|
1829
|
+
type: "ACTION_CANCELED";
|
|
1830
|
+
data: {
|
|
1831
|
+
targetItemHistoryId: string;
|
|
1832
|
+
};
|
|
1833
|
+
} | {
|
|
1454
1834
|
type: "BUYER_PAID";
|
|
1455
1835
|
data: {
|
|
1456
1836
|
soldAccountId: string;
|
|
@@ -1469,48 +1849,83 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1469
1849
|
} | {
|
|
1470
1850
|
type: "FAILED_TO_PUBLISH";
|
|
1471
1851
|
data: {
|
|
1472
|
-
platform: "
|
|
1852
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1473
1853
|
accountId?: string | null | undefined;
|
|
1474
1854
|
reason?: string | null | undefined;
|
|
1475
1855
|
};
|
|
1856
|
+
} | {
|
|
1857
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1858
|
+
data: {
|
|
1859
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1860
|
+
variations?: {
|
|
1861
|
+
fileId: string;
|
|
1862
|
+
seed: number;
|
|
1863
|
+
phash: string;
|
|
1864
|
+
distanceOriginal: number;
|
|
1865
|
+
originalImageUrl: string;
|
|
1866
|
+
originalPhash: string;
|
|
1867
|
+
}[] | null | undefined;
|
|
1868
|
+
originalPhashes?: string[] | null | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
} | {
|
|
1871
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1872
|
+
data: {
|
|
1873
|
+
accountId: string;
|
|
1874
|
+
};
|
|
1875
|
+
} | {
|
|
1876
|
+
type: "LIFECYCLE_STARTED";
|
|
1877
|
+
data: {
|
|
1878
|
+
accountId: string;
|
|
1879
|
+
caseId: string;
|
|
1880
|
+
};
|
|
1476
1881
|
} | {
|
|
1477
1882
|
type: "REPUBLISHING";
|
|
1478
1883
|
data: {
|
|
1479
|
-
platform: "
|
|
1884
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1885
|
+
publishingDate?: Date | null | undefined;
|
|
1480
1886
|
};
|
|
1481
1887
|
} | {
|
|
1482
1888
|
type: "SCHEDULED";
|
|
1483
1889
|
data: {
|
|
1484
|
-
platform: "
|
|
1890
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1485
1891
|
publishingDate?: Date | null | undefined;
|
|
1486
1892
|
};
|
|
1487
1893
|
} | null | undefined;
|
|
1894
|
+
accountId?: string | null | undefined;
|
|
1895
|
+
targetDate?: Date | null | undefined;
|
|
1488
1896
|
} | null | undefined;
|
|
1489
1897
|
platforms?: {
|
|
1490
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1898
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1491
1899
|
id: string;
|
|
1900
|
+
createdAt: Date;
|
|
1492
1901
|
itemId: string | number;
|
|
1902
|
+
updatedAt: Date;
|
|
1493
1903
|
accountId: string;
|
|
1494
1904
|
platformId: string;
|
|
1495
1905
|
platformUrl: string;
|
|
1496
1906
|
platformPrice: number;
|
|
1907
|
+
publishedAt: Date;
|
|
1908
|
+
conversationId?: string | null | undefined;
|
|
1497
1909
|
account?: {
|
|
1498
1910
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1499
1911
|
userId: string | number;
|
|
1500
1912
|
name: string;
|
|
1501
|
-
platform: "
|
|
1913
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1502
1914
|
accountId: string;
|
|
1915
|
+
locale?: string | null | undefined;
|
|
1503
1916
|
night?: {
|
|
1504
1917
|
startsAt: Date;
|
|
1505
1918
|
endsAt: Date;
|
|
1506
1919
|
} | null | undefined;
|
|
1507
|
-
|
|
1920
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1921
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1922
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1508
1923
|
} | null | undefined;
|
|
1509
1924
|
}[] | null | undefined;
|
|
1510
1925
|
}[];
|
|
1511
1926
|
order: {
|
|
1512
|
-
type: "
|
|
1513
|
-
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" | "
|
|
1927
|
+
type: "SALE" | "PURCHASE";
|
|
1928
|
+
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";
|
|
1514
1929
|
id: string;
|
|
1515
1930
|
date: Date;
|
|
1516
1931
|
price: number;
|
|
@@ -1520,24 +1935,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1520
1935
|
orderId: string;
|
|
1521
1936
|
itemOnPlatformId: string;
|
|
1522
1937
|
itemOnPlatform?: {
|
|
1523
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1938
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1524
1939
|
id: string;
|
|
1940
|
+
createdAt: Date;
|
|
1525
1941
|
itemId: string | number;
|
|
1942
|
+
updatedAt: Date;
|
|
1526
1943
|
accountId: string;
|
|
1527
1944
|
platformId: string;
|
|
1528
1945
|
platformUrl: string;
|
|
1529
1946
|
platformPrice: number;
|
|
1947
|
+
publishedAt: Date;
|
|
1948
|
+
conversationId?: string | null | undefined;
|
|
1530
1949
|
account?: {
|
|
1531
1950
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1532
1951
|
userId: string | number;
|
|
1533
1952
|
name: string;
|
|
1534
|
-
platform: "
|
|
1953
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1535
1954
|
accountId: string;
|
|
1955
|
+
locale?: string | null | undefined;
|
|
1536
1956
|
night?: {
|
|
1537
1957
|
startsAt: Date;
|
|
1538
1958
|
endsAt: Date;
|
|
1539
1959
|
} | null | undefined;
|
|
1540
|
-
|
|
1960
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1961
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1962
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1541
1963
|
} | null | undefined;
|
|
1542
1964
|
} | null | undefined;
|
|
1543
1965
|
}[] | null | undefined;
|
|
@@ -1581,10 +2003,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1581
2003
|
pickupPoint?: {
|
|
1582
2004
|
id: string;
|
|
1583
2005
|
name: string;
|
|
1584
|
-
accountId: string;
|
|
1585
2006
|
postalCode: string;
|
|
1586
2007
|
city: string;
|
|
1587
2008
|
countryCode: string;
|
|
2009
|
+
accountId: string;
|
|
1588
2010
|
addressLine1: string;
|
|
1589
2011
|
platformPickupPointId: string;
|
|
1590
2012
|
addressLine2?: string | null | undefined;
|
|
@@ -1603,6 +2025,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1603
2025
|
sold: boolean;
|
|
1604
2026
|
customerId?: string | number | null | undefined;
|
|
1605
2027
|
description?: string | null | undefined;
|
|
2028
|
+
state?: number | null | undefined;
|
|
1606
2029
|
colorIds?: number[] | null | undefined;
|
|
1607
2030
|
packageSizeId?: number | null | undefined;
|
|
1608
2031
|
sizeId?: number | null | undefined;
|
|
@@ -1618,7 +2041,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1618
2041
|
userId?: string | number | null | undefined;
|
|
1619
2042
|
} | null | undefined;
|
|
1620
2043
|
}[] | null | undefined;
|
|
1621
|
-
state?: number | null | undefined;
|
|
1622
2044
|
fees?: {
|
|
1623
2045
|
value: number;
|
|
1624
2046
|
type: string;
|
|
@@ -1637,6 +2059,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1637
2059
|
}[] | null | undefined;
|
|
1638
2060
|
categoryId?: number | null | undefined;
|
|
1639
2061
|
brandId?: string | number | null | undefined;
|
|
2062
|
+
estimatedPrice?: number | null | undefined;
|
|
2063
|
+
purchaseDate?: Date | null | undefined;
|
|
2064
|
+
sellingDate?: Date | null | undefined;
|
|
1640
2065
|
files?: {
|
|
1641
2066
|
fileId: string;
|
|
1642
2067
|
itemId: string | number;
|
|
@@ -1651,13 +2076,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1651
2076
|
}[] | null | undefined;
|
|
1652
2077
|
sex?: string | null | undefined;
|
|
1653
2078
|
purchasePrice?: number | null | undefined;
|
|
1654
|
-
purchaseDate?: Date | null | undefined;
|
|
1655
2079
|
purchasePlaceId?: string | number | null | undefined;
|
|
1656
2080
|
purchased?: boolean | null | undefined;
|
|
1657
2081
|
sellingPrice?: number | null | undefined;
|
|
1658
|
-
sellingDate?: Date | null | undefined;
|
|
1659
2082
|
sellingPlaceId?: string | number | null | undefined;
|
|
1660
|
-
estimatedPrice?: number | null | undefined;
|
|
1661
2083
|
feesSum?: number | null | undefined;
|
|
1662
2084
|
customer?: {
|
|
1663
2085
|
email: string;
|
|
@@ -1683,11 +2105,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1683
2105
|
fieldId: string | number;
|
|
1684
2106
|
}[] | null | undefined;
|
|
1685
2107
|
lastHistory?: {
|
|
1686
|
-
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";
|
|
2108
|
+
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";
|
|
1687
2109
|
id: string;
|
|
1688
2110
|
createdAt: Date;
|
|
1689
2111
|
itemId: string | number;
|
|
1690
2112
|
data?: {
|
|
2113
|
+
type: "ACTION_CANCELED";
|
|
2114
|
+
data: {
|
|
2115
|
+
targetItemHistoryId: string;
|
|
2116
|
+
};
|
|
2117
|
+
} | {
|
|
1691
2118
|
type: "BUYER_PAID";
|
|
1692
2119
|
data: {
|
|
1693
2120
|
soldAccountId: string;
|
|
@@ -1706,48 +2133,83 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1706
2133
|
} | {
|
|
1707
2134
|
type: "FAILED_TO_PUBLISH";
|
|
1708
2135
|
data: {
|
|
1709
|
-
platform: "
|
|
2136
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1710
2137
|
accountId?: string | null | undefined;
|
|
1711
2138
|
reason?: string | null | undefined;
|
|
1712
2139
|
};
|
|
2140
|
+
} | {
|
|
2141
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2142
|
+
data: {
|
|
2143
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2144
|
+
variations?: {
|
|
2145
|
+
fileId: string;
|
|
2146
|
+
seed: number;
|
|
2147
|
+
phash: string;
|
|
2148
|
+
distanceOriginal: number;
|
|
2149
|
+
originalImageUrl: string;
|
|
2150
|
+
originalPhash: string;
|
|
2151
|
+
}[] | null | undefined;
|
|
2152
|
+
originalPhashes?: string[] | null | undefined;
|
|
2153
|
+
};
|
|
2154
|
+
} | {
|
|
2155
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2156
|
+
data: {
|
|
2157
|
+
accountId: string;
|
|
2158
|
+
};
|
|
2159
|
+
} | {
|
|
2160
|
+
type: "LIFECYCLE_STARTED";
|
|
2161
|
+
data: {
|
|
2162
|
+
accountId: string;
|
|
2163
|
+
caseId: string;
|
|
2164
|
+
};
|
|
1713
2165
|
} | {
|
|
1714
2166
|
type: "REPUBLISHING";
|
|
1715
2167
|
data: {
|
|
1716
|
-
platform: "
|
|
2168
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2169
|
+
publishingDate?: Date | null | undefined;
|
|
1717
2170
|
};
|
|
1718
2171
|
} | {
|
|
1719
2172
|
type: "SCHEDULED";
|
|
1720
2173
|
data: {
|
|
1721
|
-
platform: "
|
|
2174
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1722
2175
|
publishingDate?: Date | null | undefined;
|
|
1723
2176
|
};
|
|
1724
2177
|
} | null | undefined;
|
|
2178
|
+
accountId?: string | null | undefined;
|
|
2179
|
+
targetDate?: Date | null | undefined;
|
|
1725
2180
|
} | null | undefined;
|
|
1726
2181
|
platforms?: {
|
|
1727
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2182
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1728
2183
|
id: string;
|
|
2184
|
+
createdAt: Date;
|
|
1729
2185
|
itemId: string | number;
|
|
2186
|
+
updatedAt: Date;
|
|
1730
2187
|
accountId: string;
|
|
1731
2188
|
platformId: string;
|
|
1732
2189
|
platformUrl: string;
|
|
1733
2190
|
platformPrice: number;
|
|
2191
|
+
publishedAt: Date;
|
|
2192
|
+
conversationId?: string | null | undefined;
|
|
1734
2193
|
account?: {
|
|
1735
2194
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1736
2195
|
userId: string | number;
|
|
1737
2196
|
name: string;
|
|
1738
|
-
platform: "
|
|
2197
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1739
2198
|
accountId: string;
|
|
2199
|
+
locale?: string | null | undefined;
|
|
1740
2200
|
night?: {
|
|
1741
2201
|
startsAt: Date;
|
|
1742
2202
|
endsAt: Date;
|
|
1743
2203
|
} | null | undefined;
|
|
1744
|
-
|
|
2204
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2205
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2206
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1745
2207
|
} | null | undefined;
|
|
1746
2208
|
}[] | null | undefined;
|
|
1747
2209
|
}[];
|
|
1748
2210
|
order: {
|
|
1749
|
-
type: "
|
|
1750
|
-
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" | "
|
|
2211
|
+
type: "SALE" | "PURCHASE";
|
|
2212
|
+
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";
|
|
1751
2213
|
id: string;
|
|
1752
2214
|
date: Date;
|
|
1753
2215
|
price: number;
|
|
@@ -1757,24 +2219,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1757
2219
|
orderId: string;
|
|
1758
2220
|
itemOnPlatformId: string;
|
|
1759
2221
|
itemOnPlatform?: {
|
|
1760
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2222
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1761
2223
|
id: string;
|
|
2224
|
+
createdAt: Date;
|
|
1762
2225
|
itemId: string | number;
|
|
2226
|
+
updatedAt: Date;
|
|
1763
2227
|
accountId: string;
|
|
1764
2228
|
platformId: string;
|
|
1765
2229
|
platformUrl: string;
|
|
1766
2230
|
platformPrice: number;
|
|
2231
|
+
publishedAt: Date;
|
|
2232
|
+
conversationId?: string | null | undefined;
|
|
1767
2233
|
account?: {
|
|
1768
2234
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1769
2235
|
userId: string | number;
|
|
1770
2236
|
name: string;
|
|
1771
|
-
platform: "
|
|
2237
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1772
2238
|
accountId: string;
|
|
2239
|
+
locale?: string | null | undefined;
|
|
1773
2240
|
night?: {
|
|
1774
2241
|
startsAt: Date;
|
|
1775
2242
|
endsAt: Date;
|
|
1776
2243
|
} | null | undefined;
|
|
1777
|
-
|
|
2244
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2245
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2246
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1778
2247
|
} | null | undefined;
|
|
1779
2248
|
} | null | undefined;
|
|
1780
2249
|
}[] | null | undefined;
|
|
@@ -1818,10 +2287,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1818
2287
|
pickupPoint?: {
|
|
1819
2288
|
id: string;
|
|
1820
2289
|
name: string;
|
|
1821
|
-
accountId: string;
|
|
1822
2290
|
postalCode: string;
|
|
1823
2291
|
city: string;
|
|
1824
2292
|
countryCode: string;
|
|
2293
|
+
accountId: string;
|
|
1825
2294
|
addressLine1: string;
|
|
1826
2295
|
platformPickupPointId: string;
|
|
1827
2296
|
addressLine2?: string | null | undefined;
|