controlresell 2.8.5 → 2.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/com/controlresell/models/filters/SavedFilters.d.ts +20 -10
- package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +20 -10
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
- 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 +39 -19
- 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 +729 -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 +599 -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/UpdateUserPayload.d.ts +5 -0
- package/src/com/controlresell/models/users/UpdateUserPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/User.d.ts +5 -0
- package/src/com/controlresell/models/users/User.d.ts.map +1 -1
- package/src/com/controlresell/models/users/fields/FieldConfig.d.ts +3 -0
- package/src/com/controlresell/models/users/fields/FieldConfig.d.ts.map +1 -1
- package/src/com/controlresell/models/users/fields/FieldConfig.js +2 -1
- package/src/com/controlresell/models/users/fields/FieldConfig.js.map +1 -1
- package/src/com/controlresell/models/users/fields/FieldConfig.ts +2 -1
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +29 -14
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts.map +1 -1
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +29 -14
- 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 +1102 -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;
|
|
@@ -527,6 +582,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
527
582
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
528
583
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
529
584
|
name: z.ZodString;
|
|
585
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
530
586
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
587
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
532
588
|
fileId: z.ZodString;
|
|
@@ -744,8 +800,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
744
800
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
745
801
|
id: z.ZodString;
|
|
746
802
|
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"]>;
|
|
803
|
+
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
804
|
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
805
|
+
data: z.ZodObject<{
|
|
806
|
+
targetItemHistoryId: z.ZodString;
|
|
807
|
+
}, "strip", z.ZodTypeAny, {
|
|
808
|
+
targetItemHistoryId: string;
|
|
809
|
+
}, {
|
|
810
|
+
targetItemHistoryId: string;
|
|
811
|
+
}>;
|
|
812
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
813
|
+
}, "strip", z.ZodTypeAny, {
|
|
814
|
+
type: "ACTION_CANCELED";
|
|
815
|
+
data: {
|
|
816
|
+
targetItemHistoryId: string;
|
|
817
|
+
};
|
|
818
|
+
}, {
|
|
819
|
+
type: "ACTION_CANCELED";
|
|
820
|
+
data: {
|
|
821
|
+
targetItemHistoryId: string;
|
|
822
|
+
};
|
|
823
|
+
}>, z.ZodObject<{
|
|
749
824
|
data: z.ZodObject<{
|
|
750
825
|
soldAccountId: z.ZodString;
|
|
751
826
|
soldOrderId: z.ZodString;
|
|
@@ -811,15 +886,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
811
886
|
type: "EMPTY";
|
|
812
887
|
}>, z.ZodObject<{
|
|
813
888
|
data: z.ZodObject<{
|
|
814
|
-
platform: z.ZodEnum<["
|
|
889
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
815
890
|
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
891
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
892
|
}, "strip", z.ZodTypeAny, {
|
|
818
|
-
platform: "
|
|
893
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
819
894
|
accountId?: string | null | undefined;
|
|
820
895
|
reason?: string | null | undefined;
|
|
821
896
|
}, {
|
|
822
|
-
platform: "
|
|
897
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
823
898
|
accountId?: string | null | undefined;
|
|
824
899
|
reason?: string | null | undefined;
|
|
825
900
|
}>;
|
|
@@ -827,68 +902,201 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
827
902
|
}, "strip", z.ZodTypeAny, {
|
|
828
903
|
type: "FAILED_TO_PUBLISH";
|
|
829
904
|
data: {
|
|
830
|
-
platform: "
|
|
905
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
831
906
|
accountId?: string | null | undefined;
|
|
832
907
|
reason?: string | null | undefined;
|
|
833
908
|
};
|
|
834
909
|
}, {
|
|
835
910
|
type: "FAILED_TO_PUBLISH";
|
|
836
911
|
data: {
|
|
837
|
-
platform: "
|
|
912
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
838
913
|
accountId?: string | null | undefined;
|
|
839
914
|
reason?: string | null | undefined;
|
|
840
915
|
};
|
|
841
916
|
}>, z.ZodObject<{
|
|
842
917
|
data: z.ZodObject<{
|
|
843
|
-
platform: z.ZodEnum<["
|
|
918
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
919
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
920
|
+
fileId: z.ZodString;
|
|
921
|
+
seed: z.ZodNumber;
|
|
922
|
+
phash: z.ZodString;
|
|
923
|
+
distanceOriginal: z.ZodNumber;
|
|
924
|
+
originalImageUrl: z.ZodString;
|
|
925
|
+
originalPhash: z.ZodString;
|
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
|
+
fileId: string;
|
|
928
|
+
seed: number;
|
|
929
|
+
phash: string;
|
|
930
|
+
distanceOriginal: number;
|
|
931
|
+
originalImageUrl: string;
|
|
932
|
+
originalPhash: string;
|
|
933
|
+
}, {
|
|
934
|
+
fileId: string;
|
|
935
|
+
seed: number;
|
|
936
|
+
phash: string;
|
|
937
|
+
distanceOriginal: number;
|
|
938
|
+
originalImageUrl: string;
|
|
939
|
+
originalPhash: string;
|
|
940
|
+
}>, "many">>>;
|
|
941
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
942
|
+
}, "strip", z.ZodTypeAny, {
|
|
943
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
944
|
+
variations?: {
|
|
945
|
+
fileId: string;
|
|
946
|
+
seed: number;
|
|
947
|
+
phash: string;
|
|
948
|
+
distanceOriginal: number;
|
|
949
|
+
originalImageUrl: string;
|
|
950
|
+
originalPhash: string;
|
|
951
|
+
}[] | null | undefined;
|
|
952
|
+
originalPhashes?: string[] | null | undefined;
|
|
953
|
+
}, {
|
|
954
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
955
|
+
variations?: {
|
|
956
|
+
fileId: string;
|
|
957
|
+
seed: number;
|
|
958
|
+
phash: string;
|
|
959
|
+
distanceOriginal: number;
|
|
960
|
+
originalImageUrl: string;
|
|
961
|
+
originalPhash: string;
|
|
962
|
+
}[] | null | undefined;
|
|
963
|
+
originalPhashes?: string[] | null | undefined;
|
|
964
|
+
}>;
|
|
965
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
968
|
+
data: {
|
|
969
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
970
|
+
variations?: {
|
|
971
|
+
fileId: string;
|
|
972
|
+
seed: number;
|
|
973
|
+
phash: string;
|
|
974
|
+
distanceOriginal: number;
|
|
975
|
+
originalImageUrl: string;
|
|
976
|
+
originalPhash: string;
|
|
977
|
+
}[] | null | undefined;
|
|
978
|
+
originalPhashes?: string[] | null | undefined;
|
|
979
|
+
};
|
|
980
|
+
}, {
|
|
981
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
982
|
+
data: {
|
|
983
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
984
|
+
variations?: {
|
|
985
|
+
fileId: string;
|
|
986
|
+
seed: number;
|
|
987
|
+
phash: string;
|
|
988
|
+
distanceOriginal: number;
|
|
989
|
+
originalImageUrl: string;
|
|
990
|
+
originalPhash: string;
|
|
991
|
+
}[] | null | undefined;
|
|
992
|
+
originalPhashes?: string[] | null | undefined;
|
|
993
|
+
};
|
|
994
|
+
}>, z.ZodObject<{
|
|
995
|
+
data: z.ZodObject<{
|
|
996
|
+
accountId: z.ZodString;
|
|
844
997
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
-
|
|
998
|
+
accountId: string;
|
|
846
999
|
}, {
|
|
847
|
-
|
|
1000
|
+
accountId: string;
|
|
1001
|
+
}>;
|
|
1002
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
1003
|
+
}, "strip", z.ZodTypeAny, {
|
|
1004
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1005
|
+
data: {
|
|
1006
|
+
accountId: string;
|
|
1007
|
+
};
|
|
1008
|
+
}, {
|
|
1009
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1010
|
+
data: {
|
|
1011
|
+
accountId: string;
|
|
1012
|
+
};
|
|
1013
|
+
}>, z.ZodObject<{
|
|
1014
|
+
data: z.ZodObject<{
|
|
1015
|
+
accountId: z.ZodString;
|
|
1016
|
+
caseId: z.ZodString;
|
|
1017
|
+
}, "strip", z.ZodTypeAny, {
|
|
1018
|
+
accountId: string;
|
|
1019
|
+
caseId: string;
|
|
1020
|
+
}, {
|
|
1021
|
+
accountId: string;
|
|
1022
|
+
caseId: string;
|
|
1023
|
+
}>;
|
|
1024
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
1025
|
+
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
type: "LIFECYCLE_STARTED";
|
|
1027
|
+
data: {
|
|
1028
|
+
accountId: string;
|
|
1029
|
+
caseId: string;
|
|
1030
|
+
};
|
|
1031
|
+
}, {
|
|
1032
|
+
type: "LIFECYCLE_STARTED";
|
|
1033
|
+
data: {
|
|
1034
|
+
accountId: string;
|
|
1035
|
+
caseId: string;
|
|
1036
|
+
};
|
|
1037
|
+
}>, z.ZodObject<{
|
|
1038
|
+
data: z.ZodObject<{
|
|
1039
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1040
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
1042
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1043
|
+
publishingDate?: Date | null | undefined;
|
|
1044
|
+
}, {
|
|
1045
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1046
|
+
publishingDate?: Date | null | undefined;
|
|
848
1047
|
}>;
|
|
849
1048
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
850
1049
|
}, "strip", z.ZodTypeAny, {
|
|
851
1050
|
type: "REPUBLISHING";
|
|
852
1051
|
data: {
|
|
853
|
-
platform: "
|
|
1052
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1053
|
+
publishingDate?: Date | null | undefined;
|
|
854
1054
|
};
|
|
855
1055
|
}, {
|
|
856
1056
|
type: "REPUBLISHING";
|
|
857
1057
|
data: {
|
|
858
|
-
platform: "
|
|
1058
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1059
|
+
publishingDate?: Date | null | undefined;
|
|
859
1060
|
};
|
|
860
1061
|
}>, z.ZodObject<{
|
|
861
1062
|
data: z.ZodObject<{
|
|
862
|
-
platform: z.ZodEnum<["
|
|
1063
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
863
1064
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
864
1065
|
}, "strip", z.ZodTypeAny, {
|
|
865
|
-
platform: "
|
|
1066
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
866
1067
|
publishingDate?: Date | null | undefined;
|
|
867
1068
|
}, {
|
|
868
|
-
platform: "
|
|
1069
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
869
1070
|
publishingDate?: Date | null | undefined;
|
|
870
1071
|
}>;
|
|
871
1072
|
type: z.ZodLiteral<"SCHEDULED">;
|
|
872
1073
|
}, "strip", z.ZodTypeAny, {
|
|
873
1074
|
type: "SCHEDULED";
|
|
874
1075
|
data: {
|
|
875
|
-
platform: "
|
|
1076
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
876
1077
|
publishingDate?: Date | null | undefined;
|
|
877
1078
|
};
|
|
878
1079
|
}, {
|
|
879
1080
|
type: "SCHEDULED";
|
|
880
1081
|
data: {
|
|
881
|
-
platform: "
|
|
1082
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
882
1083
|
publishingDate?: Date | null | undefined;
|
|
883
1084
|
};
|
|
884
1085
|
}>]>>>;
|
|
885
1086
|
createdAt: z.ZodDate;
|
|
1087
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1088
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
886
1089
|
}, "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";
|
|
1090
|
+
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
1091
|
id: string;
|
|
889
1092
|
createdAt: Date;
|
|
890
1093
|
itemId: string | number;
|
|
891
1094
|
data?: {
|
|
1095
|
+
type: "ACTION_CANCELED";
|
|
1096
|
+
data: {
|
|
1097
|
+
targetItemHistoryId: string;
|
|
1098
|
+
};
|
|
1099
|
+
} | {
|
|
892
1100
|
type: "BUYER_PAID";
|
|
893
1101
|
data: {
|
|
894
1102
|
soldAccountId: string;
|
|
@@ -907,28 +1115,61 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
907
1115
|
} | {
|
|
908
1116
|
type: "FAILED_TO_PUBLISH";
|
|
909
1117
|
data: {
|
|
910
|
-
platform: "
|
|
1118
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
911
1119
|
accountId?: string | null | undefined;
|
|
912
1120
|
reason?: string | null | undefined;
|
|
913
1121
|
};
|
|
1122
|
+
} | {
|
|
1123
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1124
|
+
data: {
|
|
1125
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1126
|
+
variations?: {
|
|
1127
|
+
fileId: string;
|
|
1128
|
+
seed: number;
|
|
1129
|
+
phash: string;
|
|
1130
|
+
distanceOriginal: number;
|
|
1131
|
+
originalImageUrl: string;
|
|
1132
|
+
originalPhash: string;
|
|
1133
|
+
}[] | null | undefined;
|
|
1134
|
+
originalPhashes?: string[] | null | undefined;
|
|
1135
|
+
};
|
|
1136
|
+
} | {
|
|
1137
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1138
|
+
data: {
|
|
1139
|
+
accountId: string;
|
|
1140
|
+
};
|
|
1141
|
+
} | {
|
|
1142
|
+
type: "LIFECYCLE_STARTED";
|
|
1143
|
+
data: {
|
|
1144
|
+
accountId: string;
|
|
1145
|
+
caseId: string;
|
|
1146
|
+
};
|
|
914
1147
|
} | {
|
|
915
1148
|
type: "REPUBLISHING";
|
|
916
1149
|
data: {
|
|
917
|
-
platform: "
|
|
1150
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1151
|
+
publishingDate?: Date | null | undefined;
|
|
918
1152
|
};
|
|
919
1153
|
} | {
|
|
920
1154
|
type: "SCHEDULED";
|
|
921
1155
|
data: {
|
|
922
|
-
platform: "
|
|
1156
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
923
1157
|
publishingDate?: Date | null | undefined;
|
|
924
1158
|
};
|
|
925
1159
|
} | null | undefined;
|
|
1160
|
+
accountId?: string | null | undefined;
|
|
1161
|
+
targetDate?: Date | null | undefined;
|
|
926
1162
|
}, {
|
|
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";
|
|
1163
|
+
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
1164
|
id: string;
|
|
929
1165
|
createdAt: Date;
|
|
930
1166
|
itemId: string | number;
|
|
931
1167
|
data?: {
|
|
1168
|
+
type: "ACTION_CANCELED";
|
|
1169
|
+
data: {
|
|
1170
|
+
targetItemHistoryId: string;
|
|
1171
|
+
};
|
|
1172
|
+
} | {
|
|
932
1173
|
type: "BUYER_PAID";
|
|
933
1174
|
data: {
|
|
934
1175
|
soldAccountId: string;
|
|
@@ -947,22 +1188,50 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
947
1188
|
} | {
|
|
948
1189
|
type: "FAILED_TO_PUBLISH";
|
|
949
1190
|
data: {
|
|
950
|
-
platform: "
|
|
1191
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
951
1192
|
accountId?: string | null | undefined;
|
|
952
1193
|
reason?: string | null | undefined;
|
|
953
1194
|
};
|
|
1195
|
+
} | {
|
|
1196
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1197
|
+
data: {
|
|
1198
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1199
|
+
variations?: {
|
|
1200
|
+
fileId: string;
|
|
1201
|
+
seed: number;
|
|
1202
|
+
phash: string;
|
|
1203
|
+
distanceOriginal: number;
|
|
1204
|
+
originalImageUrl: string;
|
|
1205
|
+
originalPhash: string;
|
|
1206
|
+
}[] | null | undefined;
|
|
1207
|
+
originalPhashes?: string[] | null | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
} | {
|
|
1210
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1211
|
+
data: {
|
|
1212
|
+
accountId: string;
|
|
1213
|
+
};
|
|
1214
|
+
} | {
|
|
1215
|
+
type: "LIFECYCLE_STARTED";
|
|
1216
|
+
data: {
|
|
1217
|
+
accountId: string;
|
|
1218
|
+
caseId: string;
|
|
1219
|
+
};
|
|
954
1220
|
} | {
|
|
955
1221
|
type: "REPUBLISHING";
|
|
956
1222
|
data: {
|
|
957
|
-
platform: "
|
|
1223
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1224
|
+
publishingDate?: Date | null | undefined;
|
|
958
1225
|
};
|
|
959
1226
|
} | {
|
|
960
1227
|
type: "SCHEDULED";
|
|
961
1228
|
data: {
|
|
962
|
-
platform: "
|
|
1229
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
963
1230
|
publishingDate?: Date | null | undefined;
|
|
964
1231
|
};
|
|
965
1232
|
} | null | undefined;
|
|
1233
|
+
accountId?: string | null | undefined;
|
|
1234
|
+
targetDate?: Date | null | undefined;
|
|
966
1235
|
}>>>;
|
|
967
1236
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
968
1237
|
id: z.ZodString;
|
|
@@ -972,10 +1241,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
972
1241
|
platformUrl: z.ZodString;
|
|
973
1242
|
platformPrice: z.ZodNumber;
|
|
974
1243
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
1244
|
+
createdAt: z.ZodDate;
|
|
1245
|
+
publishedAt: z.ZodDate;
|
|
1246
|
+
updatedAt: z.ZodDate;
|
|
975
1247
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
976
1248
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
977
1249
|
accountId: z.ZodString;
|
|
978
|
-
platform: z.ZodEnum<["
|
|
1250
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
979
1251
|
name: z.ZodString;
|
|
980
1252
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
981
1253
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
@@ -989,68 +1261,92 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
989
1261
|
startsAt: Date;
|
|
990
1262
|
endsAt: Date;
|
|
991
1263
|
}>>>;
|
|
1264
|
+
favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1265
|
+
ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1266
|
+
conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
992
1267
|
}, "strip", z.ZodTypeAny, {
|
|
993
1268
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
994
1269
|
userId: string | number;
|
|
995
1270
|
name: string;
|
|
996
|
-
platform: "
|
|
1271
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
997
1272
|
accountId: string;
|
|
1273
|
+
locale?: string | null | undefined;
|
|
998
1274
|
night?: {
|
|
999
1275
|
startsAt: Date;
|
|
1000
1276
|
endsAt: Date;
|
|
1001
1277
|
} | null | undefined;
|
|
1002
|
-
|
|
1278
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1279
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1280
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1003
1281
|
}, {
|
|
1004
1282
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1005
1283
|
userId: string | number;
|
|
1006
1284
|
name: string;
|
|
1007
|
-
platform: "
|
|
1285
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1008
1286
|
accountId: string;
|
|
1287
|
+
locale?: string | null | undefined;
|
|
1009
1288
|
night?: {
|
|
1010
1289
|
startsAt: Date;
|
|
1011
1290
|
endsAt: Date;
|
|
1012
1291
|
} | null | undefined;
|
|
1013
|
-
|
|
1292
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1293
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1294
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1014
1295
|
}>>>;
|
|
1296
|
+
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1015
1297
|
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1298
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1017
1299
|
id: string;
|
|
1300
|
+
createdAt: Date;
|
|
1018
1301
|
itemId: string | number;
|
|
1302
|
+
updatedAt: Date;
|
|
1019
1303
|
accountId: string;
|
|
1020
1304
|
platformId: string;
|
|
1021
1305
|
platformUrl: string;
|
|
1022
1306
|
platformPrice: number;
|
|
1307
|
+
publishedAt: Date;
|
|
1308
|
+
conversationId?: string | null | undefined;
|
|
1023
1309
|
account?: {
|
|
1024
1310
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1025
1311
|
userId: string | number;
|
|
1026
1312
|
name: string;
|
|
1027
|
-
platform: "
|
|
1313
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1028
1314
|
accountId: string;
|
|
1315
|
+
locale?: string | null | undefined;
|
|
1029
1316
|
night?: {
|
|
1030
1317
|
startsAt: Date;
|
|
1031
1318
|
endsAt: Date;
|
|
1032
1319
|
} | null | undefined;
|
|
1033
|
-
|
|
1320
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1321
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1322
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1034
1323
|
} | null | undefined;
|
|
1035
1324
|
}, {
|
|
1036
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1325
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1037
1326
|
id: string;
|
|
1327
|
+
createdAt: Date;
|
|
1038
1328
|
itemId: string | number;
|
|
1329
|
+
updatedAt: Date;
|
|
1039
1330
|
accountId: string;
|
|
1040
1331
|
platformId: string;
|
|
1041
1332
|
platformUrl: string;
|
|
1042
1333
|
platformPrice: number;
|
|
1334
|
+
publishedAt: Date;
|
|
1335
|
+
conversationId?: string | null | undefined;
|
|
1043
1336
|
account?: {
|
|
1044
1337
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1045
1338
|
userId: string | number;
|
|
1046
1339
|
name: string;
|
|
1047
|
-
platform: "
|
|
1340
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1048
1341
|
accountId: string;
|
|
1342
|
+
locale?: string | null | undefined;
|
|
1049
1343
|
night?: {
|
|
1050
1344
|
startsAt: Date;
|
|
1051
1345
|
endsAt: Date;
|
|
1052
1346
|
} | null | undefined;
|
|
1053
|
-
|
|
1347
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1348
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1349
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1054
1350
|
} | null | undefined;
|
|
1055
1351
|
}>, "many">>>;
|
|
1056
1352
|
createdAt: z.ZodDate;
|
|
@@ -1064,6 +1360,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1064
1360
|
sold: boolean;
|
|
1065
1361
|
customerId?: string | number | null | undefined;
|
|
1066
1362
|
description?: string | null | undefined;
|
|
1363
|
+
state?: number | null | undefined;
|
|
1067
1364
|
colorIds?: number[] | null | undefined;
|
|
1068
1365
|
packageSizeId?: number | null | undefined;
|
|
1069
1366
|
sizeId?: number | null | undefined;
|
|
@@ -1079,7 +1376,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1079
1376
|
userId?: string | number | null | undefined;
|
|
1080
1377
|
} | null | undefined;
|
|
1081
1378
|
}[] | null | undefined;
|
|
1082
|
-
state?: number | null | undefined;
|
|
1083
1379
|
fees?: {
|
|
1084
1380
|
value: number;
|
|
1085
1381
|
type: string;
|
|
@@ -1098,6 +1394,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1098
1394
|
}[] | null | undefined;
|
|
1099
1395
|
categoryId?: number | null | undefined;
|
|
1100
1396
|
brandId?: string | number | null | undefined;
|
|
1397
|
+
estimatedPrice?: number | null | undefined;
|
|
1398
|
+
purchaseDate?: Date | null | undefined;
|
|
1399
|
+
sellingDate?: Date | null | undefined;
|
|
1400
|
+
sku?: string | null | undefined;
|
|
1101
1401
|
files?: {
|
|
1102
1402
|
fileId: string;
|
|
1103
1403
|
itemId: string | number;
|
|
@@ -1112,13 +1412,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1112
1412
|
}[] | null | undefined;
|
|
1113
1413
|
sex?: string | null | undefined;
|
|
1114
1414
|
purchasePrice?: number | null | undefined;
|
|
1115
|
-
purchaseDate?: Date | null | undefined;
|
|
1116
1415
|
purchasePlaceId?: string | number | null | undefined;
|
|
1117
1416
|
purchased?: boolean | null | undefined;
|
|
1118
1417
|
sellingPrice?: number | null | undefined;
|
|
1119
|
-
sellingDate?: Date | null | undefined;
|
|
1120
1418
|
sellingPlaceId?: string | number | null | undefined;
|
|
1121
|
-
estimatedPrice?: number | null | undefined;
|
|
1122
1419
|
feesSum?: number | null | undefined;
|
|
1123
1420
|
customer?: {
|
|
1124
1421
|
email: string;
|
|
@@ -1144,11 +1441,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1144
1441
|
fieldId: string | number;
|
|
1145
1442
|
}[] | null | undefined;
|
|
1146
1443
|
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";
|
|
1444
|
+
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
1445
|
id: string;
|
|
1149
1446
|
createdAt: Date;
|
|
1150
1447
|
itemId: string | number;
|
|
1151
1448
|
data?: {
|
|
1449
|
+
type: "ACTION_CANCELED";
|
|
1450
|
+
data: {
|
|
1451
|
+
targetItemHistoryId: string;
|
|
1452
|
+
};
|
|
1453
|
+
} | {
|
|
1152
1454
|
type: "BUYER_PAID";
|
|
1153
1455
|
data: {
|
|
1154
1456
|
soldAccountId: string;
|
|
@@ -1167,42 +1469,77 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1167
1469
|
} | {
|
|
1168
1470
|
type: "FAILED_TO_PUBLISH";
|
|
1169
1471
|
data: {
|
|
1170
|
-
platform: "
|
|
1472
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1171
1473
|
accountId?: string | null | undefined;
|
|
1172
1474
|
reason?: string | null | undefined;
|
|
1173
1475
|
};
|
|
1476
|
+
} | {
|
|
1477
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1478
|
+
data: {
|
|
1479
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1480
|
+
variations?: {
|
|
1481
|
+
fileId: string;
|
|
1482
|
+
seed: number;
|
|
1483
|
+
phash: string;
|
|
1484
|
+
distanceOriginal: number;
|
|
1485
|
+
originalImageUrl: string;
|
|
1486
|
+
originalPhash: string;
|
|
1487
|
+
}[] | null | undefined;
|
|
1488
|
+
originalPhashes?: string[] | null | undefined;
|
|
1489
|
+
};
|
|
1490
|
+
} | {
|
|
1491
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1492
|
+
data: {
|
|
1493
|
+
accountId: string;
|
|
1494
|
+
};
|
|
1495
|
+
} | {
|
|
1496
|
+
type: "LIFECYCLE_STARTED";
|
|
1497
|
+
data: {
|
|
1498
|
+
accountId: string;
|
|
1499
|
+
caseId: string;
|
|
1500
|
+
};
|
|
1174
1501
|
} | {
|
|
1175
1502
|
type: "REPUBLISHING";
|
|
1176
1503
|
data: {
|
|
1177
|
-
platform: "
|
|
1504
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1505
|
+
publishingDate?: Date | null | undefined;
|
|
1178
1506
|
};
|
|
1179
1507
|
} | {
|
|
1180
1508
|
type: "SCHEDULED";
|
|
1181
1509
|
data: {
|
|
1182
|
-
platform: "
|
|
1510
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1183
1511
|
publishingDate?: Date | null | undefined;
|
|
1184
1512
|
};
|
|
1185
1513
|
} | null | undefined;
|
|
1514
|
+
accountId?: string | null | undefined;
|
|
1515
|
+
targetDate?: Date | null | undefined;
|
|
1186
1516
|
} | null | undefined;
|
|
1187
1517
|
platforms?: {
|
|
1188
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1518
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1189
1519
|
id: string;
|
|
1520
|
+
createdAt: Date;
|
|
1190
1521
|
itemId: string | number;
|
|
1522
|
+
updatedAt: Date;
|
|
1191
1523
|
accountId: string;
|
|
1192
1524
|
platformId: string;
|
|
1193
1525
|
platformUrl: string;
|
|
1194
1526
|
platformPrice: number;
|
|
1527
|
+
publishedAt: Date;
|
|
1528
|
+
conversationId?: string | null | undefined;
|
|
1195
1529
|
account?: {
|
|
1196
1530
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1197
1531
|
userId: string | number;
|
|
1198
1532
|
name: string;
|
|
1199
|
-
platform: "
|
|
1533
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1200
1534
|
accountId: string;
|
|
1535
|
+
locale?: string | null | undefined;
|
|
1201
1536
|
night?: {
|
|
1202
1537
|
startsAt: Date;
|
|
1203
1538
|
endsAt: Date;
|
|
1204
1539
|
} | null | undefined;
|
|
1205
|
-
|
|
1540
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1541
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1542
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1206
1543
|
} | null | undefined;
|
|
1207
1544
|
}[] | null | undefined;
|
|
1208
1545
|
}, {
|
|
@@ -1214,6 +1551,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1214
1551
|
sold: boolean;
|
|
1215
1552
|
customerId?: string | number | null | undefined;
|
|
1216
1553
|
description?: string | null | undefined;
|
|
1554
|
+
state?: number | null | undefined;
|
|
1217
1555
|
colorIds?: number[] | null | undefined;
|
|
1218
1556
|
packageSizeId?: number | null | undefined;
|
|
1219
1557
|
sizeId?: number | null | undefined;
|
|
@@ -1229,7 +1567,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1229
1567
|
userId?: string | number | null | undefined;
|
|
1230
1568
|
} | null | undefined;
|
|
1231
1569
|
}[] | null | undefined;
|
|
1232
|
-
state?: number | null | undefined;
|
|
1233
1570
|
fees?: {
|
|
1234
1571
|
value: number;
|
|
1235
1572
|
type: string;
|
|
@@ -1248,6 +1585,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1248
1585
|
}[] | null | undefined;
|
|
1249
1586
|
categoryId?: number | null | undefined;
|
|
1250
1587
|
brandId?: string | number | null | undefined;
|
|
1588
|
+
estimatedPrice?: number | null | undefined;
|
|
1589
|
+
purchaseDate?: Date | null | undefined;
|
|
1590
|
+
sellingDate?: Date | null | undefined;
|
|
1591
|
+
sku?: string | null | undefined;
|
|
1251
1592
|
files?: {
|
|
1252
1593
|
fileId: string;
|
|
1253
1594
|
itemId: string | number;
|
|
@@ -1262,13 +1603,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1262
1603
|
}[] | null | undefined;
|
|
1263
1604
|
sex?: string | null | undefined;
|
|
1264
1605
|
purchasePrice?: number | null | undefined;
|
|
1265
|
-
purchaseDate?: Date | null | undefined;
|
|
1266
1606
|
purchasePlaceId?: string | number | null | undefined;
|
|
1267
1607
|
purchased?: boolean | null | undefined;
|
|
1268
1608
|
sellingPrice?: number | null | undefined;
|
|
1269
|
-
sellingDate?: Date | null | undefined;
|
|
1270
1609
|
sellingPlaceId?: string | number | null | undefined;
|
|
1271
|
-
estimatedPrice?: number | null | undefined;
|
|
1272
1610
|
feesSum?: number | null | undefined;
|
|
1273
1611
|
customer?: {
|
|
1274
1612
|
email: string;
|
|
@@ -1294,11 +1632,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1294
1632
|
fieldId: string | number;
|
|
1295
1633
|
}[] | null | undefined;
|
|
1296
1634
|
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";
|
|
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";
|
|
1298
1636
|
id: string;
|
|
1299
1637
|
createdAt: Date;
|
|
1300
1638
|
itemId: string | number;
|
|
1301
1639
|
data?: {
|
|
1640
|
+
type: "ACTION_CANCELED";
|
|
1641
|
+
data: {
|
|
1642
|
+
targetItemHistoryId: string;
|
|
1643
|
+
};
|
|
1644
|
+
} | {
|
|
1302
1645
|
type: "BUYER_PAID";
|
|
1303
1646
|
data: {
|
|
1304
1647
|
soldAccountId: string;
|
|
@@ -1317,42 +1660,77 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1317
1660
|
} | {
|
|
1318
1661
|
type: "FAILED_TO_PUBLISH";
|
|
1319
1662
|
data: {
|
|
1320
|
-
platform: "
|
|
1663
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1321
1664
|
accountId?: string | null | undefined;
|
|
1322
1665
|
reason?: string | null | undefined;
|
|
1323
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
|
+
};
|
|
1324
1692
|
} | {
|
|
1325
1693
|
type: "REPUBLISHING";
|
|
1326
1694
|
data: {
|
|
1327
|
-
platform: "
|
|
1695
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1696
|
+
publishingDate?: Date | null | undefined;
|
|
1328
1697
|
};
|
|
1329
1698
|
} | {
|
|
1330
1699
|
type: "SCHEDULED";
|
|
1331
1700
|
data: {
|
|
1332
|
-
platform: "
|
|
1701
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1333
1702
|
publishingDate?: Date | null | undefined;
|
|
1334
1703
|
};
|
|
1335
1704
|
} | null | undefined;
|
|
1705
|
+
accountId?: string | null | undefined;
|
|
1706
|
+
targetDate?: Date | null | undefined;
|
|
1336
1707
|
} | null | undefined;
|
|
1337
1708
|
platforms?: {
|
|
1338
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1709
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1339
1710
|
id: string;
|
|
1711
|
+
createdAt: Date;
|
|
1340
1712
|
itemId: string | number;
|
|
1713
|
+
updatedAt: Date;
|
|
1341
1714
|
accountId: string;
|
|
1342
1715
|
platformId: string;
|
|
1343
1716
|
platformUrl: string;
|
|
1344
1717
|
platformPrice: number;
|
|
1718
|
+
publishedAt: Date;
|
|
1719
|
+
conversationId?: string | null | undefined;
|
|
1345
1720
|
account?: {
|
|
1346
1721
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1347
1722
|
userId: string | number;
|
|
1348
1723
|
name: string;
|
|
1349
|
-
platform: "
|
|
1724
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1350
1725
|
accountId: string;
|
|
1726
|
+
locale?: string | null | undefined;
|
|
1351
1727
|
night?: {
|
|
1352
1728
|
startsAt: Date;
|
|
1353
1729
|
endsAt: Date;
|
|
1354
1730
|
} | null | undefined;
|
|
1355
|
-
|
|
1731
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1732
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1733
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1356
1734
|
} | null | undefined;
|
|
1357
1735
|
}[] | null | undefined;
|
|
1358
1736
|
}>, "many">;
|
|
@@ -1366,6 +1744,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1366
1744
|
sold: boolean;
|
|
1367
1745
|
customerId?: string | number | null | undefined;
|
|
1368
1746
|
description?: string | null | undefined;
|
|
1747
|
+
state?: number | null | undefined;
|
|
1369
1748
|
colorIds?: number[] | null | undefined;
|
|
1370
1749
|
packageSizeId?: number | null | undefined;
|
|
1371
1750
|
sizeId?: number | null | undefined;
|
|
@@ -1381,7 +1760,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1381
1760
|
userId?: string | number | null | undefined;
|
|
1382
1761
|
} | null | undefined;
|
|
1383
1762
|
}[] | null | undefined;
|
|
1384
|
-
state?: number | null | undefined;
|
|
1385
1763
|
fees?: {
|
|
1386
1764
|
value: number;
|
|
1387
1765
|
type: string;
|
|
@@ -1400,6 +1778,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1400
1778
|
}[] | null | undefined;
|
|
1401
1779
|
categoryId?: number | null | undefined;
|
|
1402
1780
|
brandId?: string | number | null | undefined;
|
|
1781
|
+
estimatedPrice?: number | null | undefined;
|
|
1782
|
+
purchaseDate?: Date | null | undefined;
|
|
1783
|
+
sellingDate?: Date | null | undefined;
|
|
1784
|
+
sku?: string | null | undefined;
|
|
1403
1785
|
files?: {
|
|
1404
1786
|
fileId: string;
|
|
1405
1787
|
itemId: string | number;
|
|
@@ -1414,13 +1796,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1414
1796
|
}[] | null | undefined;
|
|
1415
1797
|
sex?: string | null | undefined;
|
|
1416
1798
|
purchasePrice?: number | null | undefined;
|
|
1417
|
-
purchaseDate?: Date | null | undefined;
|
|
1418
1799
|
purchasePlaceId?: string | number | null | undefined;
|
|
1419
1800
|
purchased?: boolean | null | undefined;
|
|
1420
1801
|
sellingPrice?: number | null | undefined;
|
|
1421
|
-
sellingDate?: Date | null | undefined;
|
|
1422
1802
|
sellingPlaceId?: string | number | null | undefined;
|
|
1423
|
-
estimatedPrice?: number | null | undefined;
|
|
1424
1803
|
feesSum?: number | null | undefined;
|
|
1425
1804
|
customer?: {
|
|
1426
1805
|
email: string;
|
|
@@ -1446,11 +1825,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1446
1825
|
fieldId: string | number;
|
|
1447
1826
|
}[] | null | undefined;
|
|
1448
1827
|
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";
|
|
1828
|
+
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
1829
|
id: string;
|
|
1451
1830
|
createdAt: Date;
|
|
1452
1831
|
itemId: string | number;
|
|
1453
1832
|
data?: {
|
|
1833
|
+
type: "ACTION_CANCELED";
|
|
1834
|
+
data: {
|
|
1835
|
+
targetItemHistoryId: string;
|
|
1836
|
+
};
|
|
1837
|
+
} | {
|
|
1454
1838
|
type: "BUYER_PAID";
|
|
1455
1839
|
data: {
|
|
1456
1840
|
soldAccountId: string;
|
|
@@ -1469,48 +1853,83 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1469
1853
|
} | {
|
|
1470
1854
|
type: "FAILED_TO_PUBLISH";
|
|
1471
1855
|
data: {
|
|
1472
|
-
platform: "
|
|
1856
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1473
1857
|
accountId?: string | null | undefined;
|
|
1474
1858
|
reason?: string | null | undefined;
|
|
1475
1859
|
};
|
|
1860
|
+
} | {
|
|
1861
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
1862
|
+
data: {
|
|
1863
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1864
|
+
variations?: {
|
|
1865
|
+
fileId: string;
|
|
1866
|
+
seed: number;
|
|
1867
|
+
phash: string;
|
|
1868
|
+
distanceOriginal: number;
|
|
1869
|
+
originalImageUrl: string;
|
|
1870
|
+
originalPhash: string;
|
|
1871
|
+
}[] | null | undefined;
|
|
1872
|
+
originalPhashes?: string[] | null | undefined;
|
|
1873
|
+
};
|
|
1874
|
+
} | {
|
|
1875
|
+
type: "LIFECYCLE_COMPLETED";
|
|
1876
|
+
data: {
|
|
1877
|
+
accountId: string;
|
|
1878
|
+
};
|
|
1879
|
+
} | {
|
|
1880
|
+
type: "LIFECYCLE_STARTED";
|
|
1881
|
+
data: {
|
|
1882
|
+
accountId: string;
|
|
1883
|
+
caseId: string;
|
|
1884
|
+
};
|
|
1476
1885
|
} | {
|
|
1477
1886
|
type: "REPUBLISHING";
|
|
1478
1887
|
data: {
|
|
1479
|
-
platform: "
|
|
1888
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1889
|
+
publishingDate?: Date | null | undefined;
|
|
1480
1890
|
};
|
|
1481
1891
|
} | {
|
|
1482
1892
|
type: "SCHEDULED";
|
|
1483
1893
|
data: {
|
|
1484
|
-
platform: "
|
|
1894
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1485
1895
|
publishingDate?: Date | null | undefined;
|
|
1486
1896
|
};
|
|
1487
1897
|
} | null | undefined;
|
|
1898
|
+
accountId?: string | null | undefined;
|
|
1899
|
+
targetDate?: Date | null | undefined;
|
|
1488
1900
|
} | null | undefined;
|
|
1489
1901
|
platforms?: {
|
|
1490
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1902
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1491
1903
|
id: string;
|
|
1904
|
+
createdAt: Date;
|
|
1492
1905
|
itemId: string | number;
|
|
1906
|
+
updatedAt: Date;
|
|
1493
1907
|
accountId: string;
|
|
1494
1908
|
platformId: string;
|
|
1495
1909
|
platformUrl: string;
|
|
1496
1910
|
platformPrice: number;
|
|
1911
|
+
publishedAt: Date;
|
|
1912
|
+
conversationId?: string | null | undefined;
|
|
1497
1913
|
account?: {
|
|
1498
1914
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1499
1915
|
userId: string | number;
|
|
1500
1916
|
name: string;
|
|
1501
|
-
platform: "
|
|
1917
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1502
1918
|
accountId: string;
|
|
1919
|
+
locale?: string | null | undefined;
|
|
1503
1920
|
night?: {
|
|
1504
1921
|
startsAt: Date;
|
|
1505
1922
|
endsAt: Date;
|
|
1506
1923
|
} | null | undefined;
|
|
1507
|
-
|
|
1924
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1925
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1926
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1508
1927
|
} | null | undefined;
|
|
1509
1928
|
}[] | null | undefined;
|
|
1510
1929
|
}[];
|
|
1511
1930
|
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" | "
|
|
1931
|
+
type: "SALE" | "PURCHASE";
|
|
1932
|
+
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
1933
|
id: string;
|
|
1515
1934
|
date: Date;
|
|
1516
1935
|
price: number;
|
|
@@ -1520,24 +1939,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1520
1939
|
orderId: string;
|
|
1521
1940
|
itemOnPlatformId: string;
|
|
1522
1941
|
itemOnPlatform?: {
|
|
1523
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
1942
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1524
1943
|
id: string;
|
|
1944
|
+
createdAt: Date;
|
|
1525
1945
|
itemId: string | number;
|
|
1946
|
+
updatedAt: Date;
|
|
1526
1947
|
accountId: string;
|
|
1527
1948
|
platformId: string;
|
|
1528
1949
|
platformUrl: string;
|
|
1529
1950
|
platformPrice: number;
|
|
1951
|
+
publishedAt: Date;
|
|
1952
|
+
conversationId?: string | null | undefined;
|
|
1530
1953
|
account?: {
|
|
1531
1954
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1532
1955
|
userId: string | number;
|
|
1533
1956
|
name: string;
|
|
1534
|
-
platform: "
|
|
1957
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1535
1958
|
accountId: string;
|
|
1959
|
+
locale?: string | null | undefined;
|
|
1536
1960
|
night?: {
|
|
1537
1961
|
startsAt: Date;
|
|
1538
1962
|
endsAt: Date;
|
|
1539
1963
|
} | null | undefined;
|
|
1540
|
-
|
|
1964
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
1965
|
+
ordersMaxDelay?: number | null | undefined;
|
|
1966
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1541
1967
|
} | null | undefined;
|
|
1542
1968
|
} | null | undefined;
|
|
1543
1969
|
}[] | null | undefined;
|
|
@@ -1581,10 +2007,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1581
2007
|
pickupPoint?: {
|
|
1582
2008
|
id: string;
|
|
1583
2009
|
name: string;
|
|
1584
|
-
accountId: string;
|
|
1585
2010
|
postalCode: string;
|
|
1586
2011
|
city: string;
|
|
1587
2012
|
countryCode: string;
|
|
2013
|
+
accountId: string;
|
|
1588
2014
|
addressLine1: string;
|
|
1589
2015
|
platformPickupPointId: string;
|
|
1590
2016
|
addressLine2?: string | null | undefined;
|
|
@@ -1603,6 +2029,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1603
2029
|
sold: boolean;
|
|
1604
2030
|
customerId?: string | number | null | undefined;
|
|
1605
2031
|
description?: string | null | undefined;
|
|
2032
|
+
state?: number | null | undefined;
|
|
1606
2033
|
colorIds?: number[] | null | undefined;
|
|
1607
2034
|
packageSizeId?: number | null | undefined;
|
|
1608
2035
|
sizeId?: number | null | undefined;
|
|
@@ -1618,7 +2045,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1618
2045
|
userId?: string | number | null | undefined;
|
|
1619
2046
|
} | null | undefined;
|
|
1620
2047
|
}[] | null | undefined;
|
|
1621
|
-
state?: number | null | undefined;
|
|
1622
2048
|
fees?: {
|
|
1623
2049
|
value: number;
|
|
1624
2050
|
type: string;
|
|
@@ -1637,6 +2063,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1637
2063
|
}[] | null | undefined;
|
|
1638
2064
|
categoryId?: number | null | undefined;
|
|
1639
2065
|
brandId?: string | number | null | undefined;
|
|
2066
|
+
estimatedPrice?: number | null | undefined;
|
|
2067
|
+
purchaseDate?: Date | null | undefined;
|
|
2068
|
+
sellingDate?: Date | null | undefined;
|
|
2069
|
+
sku?: string | null | undefined;
|
|
1640
2070
|
files?: {
|
|
1641
2071
|
fileId: string;
|
|
1642
2072
|
itemId: string | number;
|
|
@@ -1651,13 +2081,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1651
2081
|
}[] | null | undefined;
|
|
1652
2082
|
sex?: string | null | undefined;
|
|
1653
2083
|
purchasePrice?: number | null | undefined;
|
|
1654
|
-
purchaseDate?: Date | null | undefined;
|
|
1655
2084
|
purchasePlaceId?: string | number | null | undefined;
|
|
1656
2085
|
purchased?: boolean | null | undefined;
|
|
1657
2086
|
sellingPrice?: number | null | undefined;
|
|
1658
|
-
sellingDate?: Date | null | undefined;
|
|
1659
2087
|
sellingPlaceId?: string | number | null | undefined;
|
|
1660
|
-
estimatedPrice?: number | null | undefined;
|
|
1661
2088
|
feesSum?: number | null | undefined;
|
|
1662
2089
|
customer?: {
|
|
1663
2090
|
email: string;
|
|
@@ -1683,11 +2110,16 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1683
2110
|
fieldId: string | number;
|
|
1684
2111
|
}[] | null | undefined;
|
|
1685
2112
|
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";
|
|
2113
|
+
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
2114
|
id: string;
|
|
1688
2115
|
createdAt: Date;
|
|
1689
2116
|
itemId: string | number;
|
|
1690
2117
|
data?: {
|
|
2118
|
+
type: "ACTION_CANCELED";
|
|
2119
|
+
data: {
|
|
2120
|
+
targetItemHistoryId: string;
|
|
2121
|
+
};
|
|
2122
|
+
} | {
|
|
1691
2123
|
type: "BUYER_PAID";
|
|
1692
2124
|
data: {
|
|
1693
2125
|
soldAccountId: string;
|
|
@@ -1706,48 +2138,83 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1706
2138
|
} | {
|
|
1707
2139
|
type: "FAILED_TO_PUBLISH";
|
|
1708
2140
|
data: {
|
|
1709
|
-
platform: "
|
|
2141
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1710
2142
|
accountId?: string | null | undefined;
|
|
1711
2143
|
reason?: string | null | undefined;
|
|
1712
2144
|
};
|
|
2145
|
+
} | {
|
|
2146
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2147
|
+
data: {
|
|
2148
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2149
|
+
variations?: {
|
|
2150
|
+
fileId: string;
|
|
2151
|
+
seed: number;
|
|
2152
|
+
phash: string;
|
|
2153
|
+
distanceOriginal: number;
|
|
2154
|
+
originalImageUrl: string;
|
|
2155
|
+
originalPhash: string;
|
|
2156
|
+
}[] | null | undefined;
|
|
2157
|
+
originalPhashes?: string[] | null | undefined;
|
|
2158
|
+
};
|
|
2159
|
+
} | {
|
|
2160
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2161
|
+
data: {
|
|
2162
|
+
accountId: string;
|
|
2163
|
+
};
|
|
2164
|
+
} | {
|
|
2165
|
+
type: "LIFECYCLE_STARTED";
|
|
2166
|
+
data: {
|
|
2167
|
+
accountId: string;
|
|
2168
|
+
caseId: string;
|
|
2169
|
+
};
|
|
1713
2170
|
} | {
|
|
1714
2171
|
type: "REPUBLISHING";
|
|
1715
2172
|
data: {
|
|
1716
|
-
platform: "
|
|
2173
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2174
|
+
publishingDate?: Date | null | undefined;
|
|
1717
2175
|
};
|
|
1718
2176
|
} | {
|
|
1719
2177
|
type: "SCHEDULED";
|
|
1720
2178
|
data: {
|
|
1721
|
-
platform: "
|
|
2179
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1722
2180
|
publishingDate?: Date | null | undefined;
|
|
1723
2181
|
};
|
|
1724
2182
|
} | null | undefined;
|
|
2183
|
+
accountId?: string | null | undefined;
|
|
2184
|
+
targetDate?: Date | null | undefined;
|
|
1725
2185
|
} | null | undefined;
|
|
1726
2186
|
platforms?: {
|
|
1727
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2187
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1728
2188
|
id: string;
|
|
2189
|
+
createdAt: Date;
|
|
1729
2190
|
itemId: string | number;
|
|
2191
|
+
updatedAt: Date;
|
|
1730
2192
|
accountId: string;
|
|
1731
2193
|
platformId: string;
|
|
1732
2194
|
platformUrl: string;
|
|
1733
2195
|
platformPrice: number;
|
|
2196
|
+
publishedAt: Date;
|
|
2197
|
+
conversationId?: string | null | undefined;
|
|
1734
2198
|
account?: {
|
|
1735
2199
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1736
2200
|
userId: string | number;
|
|
1737
2201
|
name: string;
|
|
1738
|
-
platform: "
|
|
2202
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1739
2203
|
accountId: string;
|
|
2204
|
+
locale?: string | null | undefined;
|
|
1740
2205
|
night?: {
|
|
1741
2206
|
startsAt: Date;
|
|
1742
2207
|
endsAt: Date;
|
|
1743
2208
|
} | null | undefined;
|
|
1744
|
-
|
|
2209
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2210
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2211
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1745
2212
|
} | null | undefined;
|
|
1746
2213
|
}[] | null | undefined;
|
|
1747
2214
|
}[];
|
|
1748
2215
|
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" | "
|
|
2216
|
+
type: "SALE" | "PURCHASE";
|
|
2217
|
+
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
2218
|
id: string;
|
|
1752
2219
|
date: Date;
|
|
1753
2220
|
price: number;
|
|
@@ -1757,24 +2224,31 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1757
2224
|
orderId: string;
|
|
1758
2225
|
itemOnPlatformId: string;
|
|
1759
2226
|
itemOnPlatform?: {
|
|
1760
|
-
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN"
|
|
2227
|
+
status: "ARCHIVED" | "DISPUTE" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN";
|
|
1761
2228
|
id: string;
|
|
2229
|
+
createdAt: Date;
|
|
1762
2230
|
itemId: string | number;
|
|
2231
|
+
updatedAt: Date;
|
|
1763
2232
|
accountId: string;
|
|
1764
2233
|
platformId: string;
|
|
1765
2234
|
platformUrl: string;
|
|
1766
2235
|
platformPrice: number;
|
|
2236
|
+
publishedAt: Date;
|
|
2237
|
+
conversationId?: string | null | undefined;
|
|
1767
2238
|
account?: {
|
|
1768
2239
|
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1769
2240
|
userId: string | number;
|
|
1770
2241
|
name: string;
|
|
1771
|
-
platform: "
|
|
2242
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1772
2243
|
accountId: string;
|
|
2244
|
+
locale?: string | null | undefined;
|
|
1773
2245
|
night?: {
|
|
1774
2246
|
startsAt: Date;
|
|
1775
2247
|
endsAt: Date;
|
|
1776
2248
|
} | null | undefined;
|
|
1777
|
-
|
|
2249
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
2250
|
+
ordersMaxDelay?: number | null | undefined;
|
|
2251
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
1778
2252
|
} | null | undefined;
|
|
1779
2253
|
} | null | undefined;
|
|
1780
2254
|
}[] | null | undefined;
|
|
@@ -1818,10 +2292,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1818
2292
|
pickupPoint?: {
|
|
1819
2293
|
id: string;
|
|
1820
2294
|
name: string;
|
|
1821
|
-
accountId: string;
|
|
1822
2295
|
postalCode: string;
|
|
1823
2296
|
city: string;
|
|
1824
2297
|
countryCode: string;
|
|
2298
|
+
accountId: string;
|
|
1825
2299
|
addressLine1: string;
|
|
1826
2300
|
platformPickupPointId: string;
|
|
1827
2301
|
addressLine2?: string | null | undefined;
|