controlresell 2.9.0 → 2.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/api/responses/ErrorResponse.d.ts +16 -0
  3. package/src/com/controlresell/api/responses/ErrorResponse.d.ts.map +1 -0
  4. package/src/com/controlresell/api/responses/ErrorResponse.js +7 -0
  5. package/src/com/controlresell/api/responses/ErrorResponse.js.map +1 -0
  6. package/src/com/controlresell/api/responses/ErrorResponse.ts +8 -0
  7. package/src/com/controlresell/api/responses/items/ItemAction.d.ts +4 -0
  8. package/src/com/controlresell/api/responses/items/ItemAction.d.ts.map +1 -0
  9. package/src/com/controlresell/api/responses/items/ItemAction.js +5 -0
  10. package/src/com/controlresell/api/responses/items/ItemAction.js.map +1 -0
  11. package/src/com/controlresell/api/responses/items/ItemAction.ts +6 -0
  12. package/src/com/controlresell/{inventory/models → api/responses}/items/ItemsWithFilters.d.ts +30 -144
  13. package/src/com/controlresell/{inventory/models → api/responses}/items/ItemsWithFilters.d.ts.map +1 -1
  14. package/src/com/controlresell/{inventory/models → api/responses}/items/ItemsWithFilters.js +2 -2
  15. package/src/com/controlresell/api/responses/items/ItemsWithFilters.js.map +1 -0
  16. package/src/com/controlresell/{inventory/models → api/responses}/items/ItemsWithFilters.ts +2 -2
  17. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +1995 -0
  18. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -0
  19. package/src/com/controlresell/api/responses/items/ListedItem.js +42 -0
  20. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -0
  21. package/src/com/controlresell/api/responses/items/ListedItem.ts +43 -0
  22. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.d.ts +3 -3
  23. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.js +1 -1
  24. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.js.map +1 -1
  25. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.ts +1 -1
  26. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +158 -18
  27. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts.map +1 -1
  28. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +2 -1
  29. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js.map +1 -1
  30. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +2 -1
  31. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts +109 -9
  32. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts.map +1 -1
  33. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js +6 -3
  34. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js.map +1 -1
  35. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.ts +6 -3
  36. package/src/com/controlresell/subscriptions/models/CancellationReason.d.ts +4 -0
  37. package/src/com/controlresell/subscriptions/models/CancellationReason.d.ts.map +1 -0
  38. package/src/com/controlresell/subscriptions/models/CancellationReason.js +5 -0
  39. package/src/com/controlresell/subscriptions/models/CancellationReason.js.map +1 -0
  40. package/src/com/controlresell/subscriptions/models/CancellationReason.ts +6 -0
  41. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.d.ts +109 -9
  42. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.d.ts.map +1 -1
  43. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.js +6 -3
  44. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.js.map +1 -1
  45. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.ts +6 -3
  46. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryMetadata.d.ts +132 -0
  47. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryMetadata.d.ts.map +1 -0
  48. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryMetadata.js +33 -0
  49. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryMetadata.js.map +1 -0
  50. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryMetadata.ts +42 -0
  51. package/src/com/controlresell/subscriptions/models/SubscriptionHistorySource.d.ts +4 -0
  52. package/src/com/controlresell/subscriptions/models/SubscriptionHistorySource.d.ts.map +1 -0
  53. package/src/com/controlresell/subscriptions/models/SubscriptionHistorySource.js +5 -0
  54. package/src/com/controlresell/subscriptions/models/SubscriptionHistorySource.js.map +1 -0
  55. package/src/com/controlresell/subscriptions/models/SubscriptionHistorySource.ts +6 -0
  56. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryType.d.ts +4 -0
  57. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryType.d.ts.map +1 -0
  58. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryType.js +5 -0
  59. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryType.js.map +1 -0
  60. package/src/com/controlresell/subscriptions/models/SubscriptionHistoryType.ts +6 -0
  61. package/src/com/controlresell/subscriptions/models/SubscriptionState.d.ts +4 -0
  62. package/src/com/controlresell/subscriptions/models/SubscriptionState.d.ts.map +1 -0
  63. package/src/com/controlresell/subscriptions/models/SubscriptionState.js +5 -0
  64. package/src/com/controlresell/subscriptions/models/SubscriptionState.js.map +1 -0
  65. package/src/com/controlresell/subscriptions/models/SubscriptionState.ts +6 -0
  66. package/src/index.d.ts +9 -1
  67. package/src/index.d.ts.map +1 -1
  68. package/src/index.js +9 -1
  69. package/src/index.js.map +1 -1
  70. package/src/index.ts +9 -1
  71. package/src/com/controlresell/inventory/models/items/ItemsWithFilters.js.map +0 -1
@@ -0,0 +1,1995 @@
1
+ import { z } from "zod";
2
+ export declare const ListedItemSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ userId: z.ZodNumber;
5
+ name: z.ZodString;
6
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
9
+ fileId: z.ZodString;
10
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
11
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodString;
14
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
15
+ path: z.ZodString;
16
+ signedUrl: z.ZodString;
17
+ createdAt: z.ZodDate;
18
+ }, "strip", z.ZodTypeAny, {
19
+ path: string;
20
+ userId: string | number;
21
+ id: string;
22
+ createdAt: Date;
23
+ signedUrl: string;
24
+ }, {
25
+ path: string;
26
+ userId: string | number;
27
+ id: string;
28
+ createdAt: Date;
29
+ signedUrl: string;
30
+ }>>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ itemId: string | number;
33
+ fileId: string;
34
+ index?: number | null | undefined;
35
+ file?: {
36
+ path: string;
37
+ userId: string | number;
38
+ id: string;
39
+ createdAt: Date;
40
+ signedUrl: string;
41
+ } | null | undefined;
42
+ }, {
43
+ itemId: string | number;
44
+ fileId: string;
45
+ index?: number | null | undefined;
46
+ file?: {
47
+ path: string;
48
+ userId: string | number;
49
+ id: string;
50
+ createdAt: Date;
51
+ signedUrl: string;
52
+ } | null | undefined;
53
+ }>, "many">>>;
54
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
61
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ sold: z.ZodBoolean;
63
+ purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
64
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
69
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
70
+ type: z.ZodString;
71
+ value: z.ZodNumber;
72
+ name: z.ZodString;
73
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
75
+ startDate: z.ZodDate;
76
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
77
+ active: z.ZodBoolean;
78
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
79
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
80
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
81
+ createdAt: z.ZodDate;
82
+ updatedAt: z.ZodDate;
83
+ }, "strip", z.ZodTypeAny, {
84
+ value: number;
85
+ type: string;
86
+ userId: string | number;
87
+ id: string | number;
88
+ updatedAt: Date;
89
+ name: string;
90
+ createdAt: Date;
91
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
92
+ startDate: Date;
93
+ active: boolean;
94
+ description?: string | null | undefined;
95
+ itemId?: string | number | null | undefined;
96
+ endDate?: Date | null | undefined;
97
+ parentFeeId?: string | number | null | undefined;
98
+ }, {
99
+ value: number;
100
+ type: string;
101
+ userId: string | number;
102
+ id: string | number;
103
+ updatedAt: Date;
104
+ name: string;
105
+ createdAt: Date;
106
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
107
+ startDate: Date;
108
+ active: boolean;
109
+ description?: string | null | undefined;
110
+ itemId?: string | number | null | undefined;
111
+ endDate?: Date | null | undefined;
112
+ parentFeeId?: string | number | null | undefined;
113
+ }>, "many">>>;
114
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
116
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
117
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
118
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
119
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
120
+ name: z.ZodString;
121
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
122
+ isUserLabel: z.ZodBoolean;
123
+ createdAt: z.ZodDate;
124
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
125
+ parentId: z.ZodUnknown;
126
+ }, "strip", z.ZodTypeAny, {
127
+ id: string | number;
128
+ name: string;
129
+ createdAt: Date;
130
+ isUserLabel: boolean;
131
+ userId?: string | number | null | undefined;
132
+ itemCount?: number | null | undefined;
133
+ parentId?: unknown;
134
+ }, {
135
+ id: string | number;
136
+ name: string;
137
+ createdAt: Date;
138
+ isUserLabel: boolean;
139
+ userId?: string | number | null | undefined;
140
+ itemCount?: number | null | undefined;
141
+ parentId?: unknown;
142
+ }>>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ itemId: string | number;
145
+ labelId: string | number;
146
+ label?: {
147
+ id: string | number;
148
+ name: string;
149
+ createdAt: Date;
150
+ isUserLabel: boolean;
151
+ userId?: string | number | null | undefined;
152
+ itemCount?: number | null | undefined;
153
+ parentId?: unknown;
154
+ } | null | undefined;
155
+ }, {
156
+ itemId: string | number;
157
+ labelId: string | number;
158
+ label?: {
159
+ id: string | number;
160
+ name: string;
161
+ createdAt: Date;
162
+ isUserLabel: boolean;
163
+ userId?: string | number | null | undefined;
164
+ itemCount?: number | null | undefined;
165
+ parentId?: unknown;
166
+ } | null | undefined;
167
+ }>, "many">>>;
168
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
169
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
171
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
172
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
173
+ value: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ value: string;
176
+ itemId: string | number;
177
+ fieldId: string | number;
178
+ }, {
179
+ value: string;
180
+ itemId: string | number;
181
+ fieldId: string | number;
182
+ }>, "many">>>;
183
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
184
+ id: z.ZodString;
185
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
186
+ type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED_RETRY", "REPUBLISHING_RETRY", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "IMAGE_PROCESSING_DONE", "REPUBLISHED", "REPUBLISH_CANCELED", "UPDATING", "UPDATED", "UPDATE_CANCELED", "CANCELED", "DISPUTE", "DELETING", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND", "LIFECYCLE_STARTED", "LIFECYCLE_COMPLETED", "LIFECYCLE_CANCELED"]>;
187
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
188
+ data: z.ZodObject<{
189
+ targetItemHistoryId: z.ZodString;
190
+ }, "strip", z.ZodTypeAny, {
191
+ targetItemHistoryId: string;
192
+ }, {
193
+ targetItemHistoryId: string;
194
+ }>;
195
+ type: z.ZodLiteral<"ACTION_CANCELED">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "ACTION_CANCELED";
198
+ data: {
199
+ targetItemHistoryId: string;
200
+ };
201
+ }, {
202
+ type: "ACTION_CANCELED";
203
+ data: {
204
+ targetItemHistoryId: string;
205
+ };
206
+ }>, z.ZodObject<{
207
+ data: z.ZodObject<{
208
+ soldAccountId: z.ZodString;
209
+ soldOrderId: z.ZodString;
210
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ soldAccountId: string;
213
+ soldOrderId: string;
214
+ soldConversationId?: string | null | undefined;
215
+ }, {
216
+ soldAccountId: string;
217
+ soldOrderId: string;
218
+ soldConversationId?: string | null | undefined;
219
+ }>;
220
+ type: z.ZodLiteral<"BUYER_PAID">;
221
+ }, "strip", z.ZodTypeAny, {
222
+ type: "BUYER_PAID";
223
+ data: {
224
+ soldAccountId: string;
225
+ soldOrderId: string;
226
+ soldConversationId?: string | null | undefined;
227
+ };
228
+ }, {
229
+ type: "BUYER_PAID";
230
+ data: {
231
+ soldAccountId: string;
232
+ soldOrderId: string;
233
+ soldConversationId?: string | null | undefined;
234
+ };
235
+ }>, z.ZodObject<{
236
+ data: z.ZodObject<{
237
+ soldAccountId: z.ZodString;
238
+ soldOrderId: z.ZodString;
239
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ soldAccountId: string;
242
+ soldOrderId: string;
243
+ soldConversationId?: string | null | undefined;
244
+ }, {
245
+ soldAccountId: string;
246
+ soldOrderId: string;
247
+ soldConversationId?: string | null | undefined;
248
+ }>;
249
+ type: z.ZodLiteral<"DELIVERED">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ type: "DELIVERED";
252
+ data: {
253
+ soldAccountId: string;
254
+ soldOrderId: string;
255
+ soldConversationId?: string | null | undefined;
256
+ };
257
+ }, {
258
+ type: "DELIVERED";
259
+ data: {
260
+ soldAccountId: string;
261
+ soldOrderId: string;
262
+ soldConversationId?: string | null | undefined;
263
+ };
264
+ }>, z.ZodObject<{
265
+ type: z.ZodLiteral<"EMPTY">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ type: "EMPTY";
268
+ }, {
269
+ type: "EMPTY";
270
+ }>, z.ZodObject<{
271
+ data: z.ZodObject<{
272
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
273
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
276
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
277
+ autoFixable: z.ZodBoolean;
278
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
281
+ autoFixable: boolean;
282
+ error?: string | null | undefined;
283
+ }, {
284
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
285
+ autoFixable: boolean;
286
+ error?: string | null | undefined;
287
+ }>, "many">>>;
288
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
291
+ accountId?: string | null | undefined;
292
+ reason?: string | null | undefined;
293
+ fields?: {
294
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
295
+ autoFixable: boolean;
296
+ error?: string | null | undefined;
297
+ }[] | null | undefined;
298
+ itemHistoryId?: string | null | undefined;
299
+ }, {
300
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
301
+ accountId?: string | null | undefined;
302
+ reason?: string | null | undefined;
303
+ fields?: {
304
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
305
+ autoFixable: boolean;
306
+ error?: string | null | undefined;
307
+ }[] | null | undefined;
308
+ itemHistoryId?: string | null | undefined;
309
+ }>;
310
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
311
+ }, "strip", z.ZodTypeAny, {
312
+ type: "FAILED_TO_PUBLISH";
313
+ data: {
314
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
315
+ accountId?: string | null | undefined;
316
+ reason?: string | null | undefined;
317
+ fields?: {
318
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
319
+ autoFixable: boolean;
320
+ error?: string | null | undefined;
321
+ }[] | null | undefined;
322
+ itemHistoryId?: string | null | undefined;
323
+ };
324
+ }, {
325
+ type: "FAILED_TO_PUBLISH";
326
+ data: {
327
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
328
+ accountId?: string | null | undefined;
329
+ reason?: string | null | undefined;
330
+ fields?: {
331
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
332
+ autoFixable: boolean;
333
+ error?: string | null | undefined;
334
+ }[] | null | undefined;
335
+ itemHistoryId?: string | null | undefined;
336
+ };
337
+ }>, z.ZodObject<{
338
+ data: z.ZodObject<{
339
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
340
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
341
+ fileId: z.ZodString;
342
+ seed: z.ZodNumber;
343
+ phash: z.ZodString;
344
+ distanceOriginal: z.ZodNumber;
345
+ originalImageUrl: z.ZodString;
346
+ originalPhash: z.ZodString;
347
+ }, "strip", z.ZodTypeAny, {
348
+ fileId: string;
349
+ seed: number;
350
+ phash: string;
351
+ distanceOriginal: number;
352
+ originalImageUrl: string;
353
+ originalPhash: string;
354
+ }, {
355
+ fileId: string;
356
+ seed: number;
357
+ phash: string;
358
+ distanceOriginal: number;
359
+ originalImageUrl: string;
360
+ originalPhash: string;
361
+ }>, "many">>>;
362
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
365
+ variations?: {
366
+ fileId: string;
367
+ seed: number;
368
+ phash: string;
369
+ distanceOriginal: number;
370
+ originalImageUrl: string;
371
+ originalPhash: string;
372
+ }[] | null | undefined;
373
+ originalPhashes?: string[] | null | undefined;
374
+ }, {
375
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
376
+ variations?: {
377
+ fileId: string;
378
+ seed: number;
379
+ phash: string;
380
+ distanceOriginal: number;
381
+ originalImageUrl: string;
382
+ originalPhash: string;
383
+ }[] | null | undefined;
384
+ originalPhashes?: string[] | null | undefined;
385
+ }>;
386
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
387
+ }, "strip", z.ZodTypeAny, {
388
+ type: "IMAGE_PROCESSING_DONE";
389
+ data: {
390
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
391
+ variations?: {
392
+ fileId: string;
393
+ seed: number;
394
+ phash: string;
395
+ distanceOriginal: number;
396
+ originalImageUrl: string;
397
+ originalPhash: string;
398
+ }[] | null | undefined;
399
+ originalPhashes?: string[] | null | undefined;
400
+ };
401
+ }, {
402
+ type: "IMAGE_PROCESSING_DONE";
403
+ data: {
404
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
405
+ variations?: {
406
+ fileId: string;
407
+ seed: number;
408
+ phash: string;
409
+ distanceOriginal: number;
410
+ originalImageUrl: string;
411
+ originalPhash: string;
412
+ }[] | null | undefined;
413
+ originalPhashes?: string[] | null | undefined;
414
+ };
415
+ }>, z.ZodObject<{
416
+ data: z.ZodObject<{
417
+ post: z.ZodObject<{
418
+ platformId: z.ZodString;
419
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
421
+ post: z.ZodObject<{
422
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
425
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
426
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
427
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
429
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
430
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
431
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
432
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
433
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
436
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
438
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
440
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
441
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
442
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
443
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ status?: string | null | undefined;
447
+ price?: number | null | undefined;
448
+ currency?: string | null | undefined;
449
+ brand?: string | null | undefined;
450
+ catalog?: string | null | undefined;
451
+ catalogId?: number | null | undefined;
452
+ colors?: string[] | null | undefined;
453
+ colorIds?: number[] | null | undefined;
454
+ description?: string | null | undefined;
455
+ measurementLength?: number | null | undefined;
456
+ measurementWidth?: number | null | undefined;
457
+ packageSizeId?: number | null | undefined;
458
+ photoUrls?: string[] | null | undefined;
459
+ size?: string | null | undefined;
460
+ sizeId?: number | null | undefined;
461
+ statusId?: number | null | undefined;
462
+ title?: string | null | undefined;
463
+ isDraft?: boolean | null | undefined;
464
+ isArchived?: boolean | null | undefined;
465
+ availableQuantity?: number | null | undefined;
466
+ material?: number[] | null | undefined;
467
+ manufacturerLabelling?: string | null | undefined;
468
+ labels?: string[] | null | undefined;
469
+ }, {
470
+ status?: string | null | undefined;
471
+ price?: number | null | undefined;
472
+ currency?: string | null | undefined;
473
+ brand?: string | null | undefined;
474
+ catalog?: string | null | undefined;
475
+ catalogId?: number | null | undefined;
476
+ colors?: string[] | null | undefined;
477
+ colorIds?: number[] | null | undefined;
478
+ description?: string | null | undefined;
479
+ measurementLength?: number | null | undefined;
480
+ measurementWidth?: number | null | undefined;
481
+ packageSizeId?: number | null | undefined;
482
+ photoUrls?: string[] | null | undefined;
483
+ size?: string | null | undefined;
484
+ sizeId?: number | null | undefined;
485
+ statusId?: number | null | undefined;
486
+ title?: string | null | undefined;
487
+ isDraft?: boolean | null | undefined;
488
+ isArchived?: boolean | null | undefined;
489
+ availableQuantity?: number | null | undefined;
490
+ material?: number[] | null | undefined;
491
+ manufacturerLabelling?: string | null | undefined;
492
+ labels?: string[] | null | undefined;
493
+ }>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ platformId: string;
496
+ post: {
497
+ status?: string | null | undefined;
498
+ price?: number | null | undefined;
499
+ currency?: string | null | undefined;
500
+ brand?: string | null | undefined;
501
+ catalog?: string | null | undefined;
502
+ catalogId?: number | null | undefined;
503
+ colors?: string[] | null | undefined;
504
+ colorIds?: number[] | null | undefined;
505
+ description?: string | null | undefined;
506
+ measurementLength?: number | null | undefined;
507
+ measurementWidth?: number | null | undefined;
508
+ packageSizeId?: number | null | undefined;
509
+ photoUrls?: string[] | null | undefined;
510
+ size?: string | null | undefined;
511
+ sizeId?: number | null | undefined;
512
+ statusId?: number | null | undefined;
513
+ title?: string | null | undefined;
514
+ isDraft?: boolean | null | undefined;
515
+ isArchived?: boolean | null | undefined;
516
+ availableQuantity?: number | null | undefined;
517
+ material?: number[] | null | undefined;
518
+ manufacturerLabelling?: string | null | undefined;
519
+ labels?: string[] | null | undefined;
520
+ };
521
+ createdAt?: Date | null | undefined;
522
+ platformUrl?: string | null | undefined;
523
+ }, {
524
+ platformId: string;
525
+ post: {
526
+ status?: string | null | undefined;
527
+ price?: number | null | undefined;
528
+ currency?: string | null | undefined;
529
+ brand?: string | null | undefined;
530
+ catalog?: string | null | undefined;
531
+ catalogId?: number | null | undefined;
532
+ colors?: string[] | null | undefined;
533
+ colorIds?: number[] | null | undefined;
534
+ description?: string | null | undefined;
535
+ measurementLength?: number | null | undefined;
536
+ measurementWidth?: number | null | undefined;
537
+ packageSizeId?: number | null | undefined;
538
+ photoUrls?: string[] | null | undefined;
539
+ size?: string | null | undefined;
540
+ sizeId?: number | null | undefined;
541
+ statusId?: number | null | undefined;
542
+ title?: string | null | undefined;
543
+ isDraft?: boolean | null | undefined;
544
+ isArchived?: boolean | null | undefined;
545
+ availableQuantity?: number | null | undefined;
546
+ material?: number[] | null | undefined;
547
+ manufacturerLabelling?: string | null | undefined;
548
+ labels?: string[] | null | undefined;
549
+ };
550
+ createdAt?: Date | null | undefined;
551
+ platformUrl?: string | null | undefined;
552
+ }>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ post: {
555
+ platformId: string;
556
+ post: {
557
+ status?: string | null | undefined;
558
+ price?: number | null | undefined;
559
+ currency?: string | null | undefined;
560
+ brand?: string | null | undefined;
561
+ catalog?: string | null | undefined;
562
+ catalogId?: number | null | undefined;
563
+ colors?: string[] | null | undefined;
564
+ colorIds?: number[] | null | undefined;
565
+ description?: string | null | undefined;
566
+ measurementLength?: number | null | undefined;
567
+ measurementWidth?: number | null | undefined;
568
+ packageSizeId?: number | null | undefined;
569
+ photoUrls?: string[] | null | undefined;
570
+ size?: string | null | undefined;
571
+ sizeId?: number | null | undefined;
572
+ statusId?: number | null | undefined;
573
+ title?: string | null | undefined;
574
+ isDraft?: boolean | null | undefined;
575
+ isArchived?: boolean | null | undefined;
576
+ availableQuantity?: number | null | undefined;
577
+ material?: number[] | null | undefined;
578
+ manufacturerLabelling?: string | null | undefined;
579
+ labels?: string[] | null | undefined;
580
+ };
581
+ createdAt?: Date | null | undefined;
582
+ platformUrl?: string | null | undefined;
583
+ };
584
+ }, {
585
+ post: {
586
+ platformId: string;
587
+ post: {
588
+ status?: string | null | undefined;
589
+ price?: number | null | undefined;
590
+ currency?: string | null | undefined;
591
+ brand?: string | null | undefined;
592
+ catalog?: string | null | undefined;
593
+ catalogId?: number | null | undefined;
594
+ colors?: string[] | null | undefined;
595
+ colorIds?: number[] | null | undefined;
596
+ description?: string | null | undefined;
597
+ measurementLength?: number | null | undefined;
598
+ measurementWidth?: number | null | undefined;
599
+ packageSizeId?: number | null | undefined;
600
+ photoUrls?: string[] | null | undefined;
601
+ size?: string | null | undefined;
602
+ sizeId?: number | null | undefined;
603
+ statusId?: number | null | undefined;
604
+ title?: string | null | undefined;
605
+ isDraft?: boolean | null | undefined;
606
+ isArchived?: boolean | null | undefined;
607
+ availableQuantity?: number | null | undefined;
608
+ material?: number[] | null | undefined;
609
+ manufacturerLabelling?: string | null | undefined;
610
+ labels?: string[] | null | undefined;
611
+ };
612
+ createdAt?: Date | null | undefined;
613
+ platformUrl?: string | null | undefined;
614
+ };
615
+ }>;
616
+ type: z.ZodLiteral<"IMPORTED">;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: "IMPORTED";
619
+ data: {
620
+ post: {
621
+ platformId: string;
622
+ post: {
623
+ status?: string | null | undefined;
624
+ price?: number | null | undefined;
625
+ currency?: string | null | undefined;
626
+ brand?: string | null | undefined;
627
+ catalog?: string | null | undefined;
628
+ catalogId?: number | null | undefined;
629
+ colors?: string[] | null | undefined;
630
+ colorIds?: number[] | null | undefined;
631
+ description?: string | null | undefined;
632
+ measurementLength?: number | null | undefined;
633
+ measurementWidth?: number | null | undefined;
634
+ packageSizeId?: number | null | undefined;
635
+ photoUrls?: string[] | null | undefined;
636
+ size?: string | null | undefined;
637
+ sizeId?: number | null | undefined;
638
+ statusId?: number | null | undefined;
639
+ title?: string | null | undefined;
640
+ isDraft?: boolean | null | undefined;
641
+ isArchived?: boolean | null | undefined;
642
+ availableQuantity?: number | null | undefined;
643
+ material?: number[] | null | undefined;
644
+ manufacturerLabelling?: string | null | undefined;
645
+ labels?: string[] | null | undefined;
646
+ };
647
+ createdAt?: Date | null | undefined;
648
+ platformUrl?: string | null | undefined;
649
+ };
650
+ };
651
+ }, {
652
+ type: "IMPORTED";
653
+ data: {
654
+ post: {
655
+ platformId: string;
656
+ post: {
657
+ status?: string | null | undefined;
658
+ price?: number | null | undefined;
659
+ currency?: string | null | undefined;
660
+ brand?: string | null | undefined;
661
+ catalog?: string | null | undefined;
662
+ catalogId?: number | null | undefined;
663
+ colors?: string[] | null | undefined;
664
+ colorIds?: number[] | null | undefined;
665
+ description?: string | null | undefined;
666
+ measurementLength?: number | null | undefined;
667
+ measurementWidth?: number | null | undefined;
668
+ packageSizeId?: number | null | undefined;
669
+ photoUrls?: string[] | null | undefined;
670
+ size?: string | null | undefined;
671
+ sizeId?: number | null | undefined;
672
+ statusId?: number | null | undefined;
673
+ title?: string | null | undefined;
674
+ isDraft?: boolean | null | undefined;
675
+ isArchived?: boolean | null | undefined;
676
+ availableQuantity?: number | null | undefined;
677
+ material?: number[] | null | undefined;
678
+ manufacturerLabelling?: string | null | undefined;
679
+ labels?: string[] | null | undefined;
680
+ };
681
+ createdAt?: Date | null | undefined;
682
+ platformUrl?: string | null | undefined;
683
+ };
684
+ };
685
+ }>, z.ZodObject<{
686
+ data: z.ZodObject<{
687
+ accountId: z.ZodString;
688
+ }, "strip", z.ZodTypeAny, {
689
+ accountId: string;
690
+ }, {
691
+ accountId: string;
692
+ }>;
693
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
694
+ }, "strip", z.ZodTypeAny, {
695
+ type: "LIFECYCLE_COMPLETED";
696
+ data: {
697
+ accountId: string;
698
+ };
699
+ }, {
700
+ type: "LIFECYCLE_COMPLETED";
701
+ data: {
702
+ accountId: string;
703
+ };
704
+ }>, z.ZodObject<{
705
+ data: z.ZodObject<{
706
+ accountId: z.ZodString;
707
+ caseId: z.ZodString;
708
+ }, "strip", z.ZodTypeAny, {
709
+ accountId: string;
710
+ caseId: string;
711
+ }, {
712
+ accountId: string;
713
+ caseId: string;
714
+ }>;
715
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
716
+ }, "strip", z.ZodTypeAny, {
717
+ type: "LIFECYCLE_STARTED";
718
+ data: {
719
+ accountId: string;
720
+ caseId: string;
721
+ };
722
+ }, {
723
+ type: "LIFECYCLE_STARTED";
724
+ data: {
725
+ accountId: string;
726
+ caseId: string;
727
+ };
728
+ }>, z.ZodObject<{
729
+ data: z.ZodObject<{
730
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
731
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
732
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
733
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
734
+ value: z.ZodNumber;
735
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
736
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
737
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ value: number;
740
+ type: "PERCENTAGE" | "ABSOLUTE";
741
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
742
+ roundStep?: number | null | undefined;
743
+ maxRounds?: number | null | undefined;
744
+ }, {
745
+ value: number;
746
+ type: "PERCENTAGE" | "ABSOLUTE";
747
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
748
+ roundStep?: number | null | undefined;
749
+ maxRounds?: number | null | undefined;
750
+ }>>>;
751
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
752
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
755
+ publishingDate?: Date | null | undefined;
756
+ priceDropPayload?: {
757
+ value: number;
758
+ type: "PERCENTAGE" | "ABSOLUTE";
759
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
760
+ roundStep?: number | null | undefined;
761
+ maxRounds?: number | null | undefined;
762
+ } | null | undefined;
763
+ isTransfer?: boolean | null | undefined;
764
+ targetAccountId?: string | null | undefined;
765
+ }, {
766
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
767
+ publishingDate?: Date | null | undefined;
768
+ priceDropPayload?: {
769
+ value: number;
770
+ type: "PERCENTAGE" | "ABSOLUTE";
771
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
772
+ roundStep?: number | null | undefined;
773
+ maxRounds?: number | null | undefined;
774
+ } | null | undefined;
775
+ isTransfer?: boolean | null | undefined;
776
+ targetAccountId?: string | null | undefined;
777
+ }>;
778
+ type: z.ZodLiteral<"REPUBLISHING">;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: "REPUBLISHING";
781
+ data: {
782
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
783
+ publishingDate?: Date | null | undefined;
784
+ priceDropPayload?: {
785
+ value: number;
786
+ type: "PERCENTAGE" | "ABSOLUTE";
787
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
788
+ roundStep?: number | null | undefined;
789
+ maxRounds?: number | null | undefined;
790
+ } | null | undefined;
791
+ isTransfer?: boolean | null | undefined;
792
+ targetAccountId?: string | null | undefined;
793
+ };
794
+ }, {
795
+ type: "REPUBLISHING";
796
+ data: {
797
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
798
+ publishingDate?: Date | null | undefined;
799
+ priceDropPayload?: {
800
+ value: number;
801
+ type: "PERCENTAGE" | "ABSOLUTE";
802
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
803
+ roundStep?: number | null | undefined;
804
+ maxRounds?: number | null | undefined;
805
+ } | null | undefined;
806
+ isTransfer?: boolean | null | undefined;
807
+ targetAccountId?: string | null | undefined;
808
+ };
809
+ }>, z.ZodObject<{
810
+ data: z.ZodObject<{
811
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
812
+ attemptNumber: z.ZodNumber;
813
+ maxAttempts: z.ZodNumber;
814
+ previousHistoryId: z.ZodString;
815
+ originalFailureDate: z.ZodDate;
816
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
817
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
818
+ autoFixable: z.ZodBoolean;
819
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
822
+ autoFixable: boolean;
823
+ error?: string | null | undefined;
824
+ }, {
825
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
826
+ autoFixable: boolean;
827
+ error?: string | null | undefined;
828
+ }>, "many">>>;
829
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
830
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
831
+ value: z.ZodNumber;
832
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
833
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
834
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
835
+ }, "strip", z.ZodTypeAny, {
836
+ value: number;
837
+ type: "PERCENTAGE" | "ABSOLUTE";
838
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
839
+ roundStep?: number | null | undefined;
840
+ maxRounds?: number | null | undefined;
841
+ }, {
842
+ value: number;
843
+ type: "PERCENTAGE" | "ABSOLUTE";
844
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
845
+ roundStep?: number | null | undefined;
846
+ maxRounds?: number | null | undefined;
847
+ }>>>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
850
+ attemptNumber: number;
851
+ maxAttempts: number;
852
+ previousHistoryId: string;
853
+ originalFailureDate: Date;
854
+ fields?: {
855
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
856
+ autoFixable: boolean;
857
+ error?: string | null | undefined;
858
+ }[] | null | undefined;
859
+ priceDropPayload?: {
860
+ value: number;
861
+ type: "PERCENTAGE" | "ABSOLUTE";
862
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
863
+ roundStep?: number | null | undefined;
864
+ maxRounds?: number | null | undefined;
865
+ } | null | undefined;
866
+ }, {
867
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
868
+ attemptNumber: number;
869
+ maxAttempts: number;
870
+ previousHistoryId: string;
871
+ originalFailureDate: Date;
872
+ fields?: {
873
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
874
+ autoFixable: boolean;
875
+ error?: string | null | undefined;
876
+ }[] | null | undefined;
877
+ priceDropPayload?: {
878
+ value: number;
879
+ type: "PERCENTAGE" | "ABSOLUTE";
880
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
881
+ roundStep?: number | null | undefined;
882
+ maxRounds?: number | null | undefined;
883
+ } | null | undefined;
884
+ }>;
885
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
886
+ }, "strip", z.ZodTypeAny, {
887
+ type: "REPUBLISHING_RETRY";
888
+ data: {
889
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
890
+ attemptNumber: number;
891
+ maxAttempts: number;
892
+ previousHistoryId: string;
893
+ originalFailureDate: Date;
894
+ fields?: {
895
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
896
+ autoFixable: boolean;
897
+ error?: string | null | undefined;
898
+ }[] | null | undefined;
899
+ priceDropPayload?: {
900
+ value: number;
901
+ type: "PERCENTAGE" | "ABSOLUTE";
902
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
903
+ roundStep?: number | null | undefined;
904
+ maxRounds?: number | null | undefined;
905
+ } | null | undefined;
906
+ };
907
+ }, {
908
+ type: "REPUBLISHING_RETRY";
909
+ data: {
910
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
911
+ attemptNumber: number;
912
+ maxAttempts: number;
913
+ previousHistoryId: string;
914
+ originalFailureDate: Date;
915
+ fields?: {
916
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
917
+ autoFixable: boolean;
918
+ error?: string | null | undefined;
919
+ }[] | null | undefined;
920
+ priceDropPayload?: {
921
+ value: number;
922
+ type: "PERCENTAGE" | "ABSOLUTE";
923
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
924
+ roundStep?: number | null | undefined;
925
+ maxRounds?: number | null | undefined;
926
+ } | null | undefined;
927
+ };
928
+ }>, z.ZodObject<{
929
+ data: z.ZodObject<{
930
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
931
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
934
+ publishingDate?: Date | null | undefined;
935
+ }, {
936
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
937
+ publishingDate?: Date | null | undefined;
938
+ }>;
939
+ type: z.ZodLiteral<"SCHEDULED">;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: "SCHEDULED";
942
+ data: {
943
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
944
+ publishingDate?: Date | null | undefined;
945
+ };
946
+ }, {
947
+ type: "SCHEDULED";
948
+ data: {
949
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
950
+ publishingDate?: Date | null | undefined;
951
+ };
952
+ }>, z.ZodObject<{
953
+ data: z.ZodObject<{
954
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
955
+ attemptNumber: z.ZodNumber;
956
+ maxAttempts: z.ZodNumber;
957
+ previousHistoryId: z.ZodString;
958
+ originalFailureDate: z.ZodDate;
959
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
960
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
961
+ autoFixable: z.ZodBoolean;
962
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
965
+ autoFixable: boolean;
966
+ error?: string | null | undefined;
967
+ }, {
968
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
969
+ autoFixable: boolean;
970
+ error?: string | null | undefined;
971
+ }>, "many">>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
974
+ attemptNumber: number;
975
+ maxAttempts: number;
976
+ previousHistoryId: string;
977
+ originalFailureDate: Date;
978
+ fields?: {
979
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
980
+ autoFixable: boolean;
981
+ error?: string | null | undefined;
982
+ }[] | null | undefined;
983
+ }, {
984
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
985
+ attemptNumber: number;
986
+ maxAttempts: number;
987
+ previousHistoryId: string;
988
+ originalFailureDate: Date;
989
+ fields?: {
990
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
991
+ autoFixable: boolean;
992
+ error?: string | null | undefined;
993
+ }[] | null | undefined;
994
+ }>;
995
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
996
+ }, "strip", z.ZodTypeAny, {
997
+ type: "SCHEDULED_RETRY";
998
+ data: {
999
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1000
+ attemptNumber: number;
1001
+ maxAttempts: number;
1002
+ previousHistoryId: string;
1003
+ originalFailureDate: Date;
1004
+ fields?: {
1005
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1006
+ autoFixable: boolean;
1007
+ error?: string | null | undefined;
1008
+ }[] | null | undefined;
1009
+ };
1010
+ }, {
1011
+ type: "SCHEDULED_RETRY";
1012
+ data: {
1013
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1014
+ attemptNumber: number;
1015
+ maxAttempts: number;
1016
+ previousHistoryId: string;
1017
+ originalFailureDate: Date;
1018
+ fields?: {
1019
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1020
+ autoFixable: boolean;
1021
+ error?: string | null | undefined;
1022
+ }[] | null | undefined;
1023
+ };
1024
+ }>]>>>;
1025
+ createdAt: z.ZodDate;
1026
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1027
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1031
+ id: string;
1032
+ createdAt: Date;
1033
+ itemId: string | number;
1034
+ data?: {
1035
+ type: "ACTION_CANCELED";
1036
+ data: {
1037
+ targetItemHistoryId: string;
1038
+ };
1039
+ } | {
1040
+ type: "BUYER_PAID";
1041
+ data: {
1042
+ soldAccountId: string;
1043
+ soldOrderId: string;
1044
+ soldConversationId?: string | null | undefined;
1045
+ };
1046
+ } | {
1047
+ type: "DELIVERED";
1048
+ data: {
1049
+ soldAccountId: string;
1050
+ soldOrderId: string;
1051
+ soldConversationId?: string | null | undefined;
1052
+ };
1053
+ } | {
1054
+ type: "EMPTY";
1055
+ } | {
1056
+ type: "FAILED_TO_PUBLISH";
1057
+ data: {
1058
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1059
+ accountId?: string | null | undefined;
1060
+ reason?: string | null | undefined;
1061
+ fields?: {
1062
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1063
+ autoFixable: boolean;
1064
+ error?: string | null | undefined;
1065
+ }[] | null | undefined;
1066
+ itemHistoryId?: string | null | undefined;
1067
+ };
1068
+ } | {
1069
+ type: "IMAGE_PROCESSING_DONE";
1070
+ data: {
1071
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1072
+ variations?: {
1073
+ fileId: string;
1074
+ seed: number;
1075
+ phash: string;
1076
+ distanceOriginal: number;
1077
+ originalImageUrl: string;
1078
+ originalPhash: string;
1079
+ }[] | null | undefined;
1080
+ originalPhashes?: string[] | null | undefined;
1081
+ };
1082
+ } | {
1083
+ type: "IMPORTED";
1084
+ data: {
1085
+ post: {
1086
+ platformId: string;
1087
+ post: {
1088
+ status?: string | null | undefined;
1089
+ price?: number | null | undefined;
1090
+ currency?: string | null | undefined;
1091
+ brand?: string | null | undefined;
1092
+ catalog?: string | null | undefined;
1093
+ catalogId?: number | null | undefined;
1094
+ colors?: string[] | null | undefined;
1095
+ colorIds?: number[] | null | undefined;
1096
+ description?: string | null | undefined;
1097
+ measurementLength?: number | null | undefined;
1098
+ measurementWidth?: number | null | undefined;
1099
+ packageSizeId?: number | null | undefined;
1100
+ photoUrls?: string[] | null | undefined;
1101
+ size?: string | null | undefined;
1102
+ sizeId?: number | null | undefined;
1103
+ statusId?: number | null | undefined;
1104
+ title?: string | null | undefined;
1105
+ isDraft?: boolean | null | undefined;
1106
+ isArchived?: boolean | null | undefined;
1107
+ availableQuantity?: number | null | undefined;
1108
+ material?: number[] | null | undefined;
1109
+ manufacturerLabelling?: string | null | undefined;
1110
+ labels?: string[] | null | undefined;
1111
+ };
1112
+ createdAt?: Date | null | undefined;
1113
+ platformUrl?: string | null | undefined;
1114
+ };
1115
+ };
1116
+ } | {
1117
+ type: "LIFECYCLE_COMPLETED";
1118
+ data: {
1119
+ accountId: string;
1120
+ };
1121
+ } | {
1122
+ type: "LIFECYCLE_STARTED";
1123
+ data: {
1124
+ accountId: string;
1125
+ caseId: string;
1126
+ };
1127
+ } | {
1128
+ type: "REPUBLISHING";
1129
+ data: {
1130
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1131
+ publishingDate?: Date | null | undefined;
1132
+ priceDropPayload?: {
1133
+ value: number;
1134
+ type: "PERCENTAGE" | "ABSOLUTE";
1135
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1136
+ roundStep?: number | null | undefined;
1137
+ maxRounds?: number | null | undefined;
1138
+ } | null | undefined;
1139
+ isTransfer?: boolean | null | undefined;
1140
+ targetAccountId?: string | null | undefined;
1141
+ };
1142
+ } | {
1143
+ type: "REPUBLISHING_RETRY";
1144
+ data: {
1145
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1146
+ attemptNumber: number;
1147
+ maxAttempts: number;
1148
+ previousHistoryId: string;
1149
+ originalFailureDate: Date;
1150
+ fields?: {
1151
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1152
+ autoFixable: boolean;
1153
+ error?: string | null | undefined;
1154
+ }[] | null | undefined;
1155
+ priceDropPayload?: {
1156
+ value: number;
1157
+ type: "PERCENTAGE" | "ABSOLUTE";
1158
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1159
+ roundStep?: number | null | undefined;
1160
+ maxRounds?: number | null | undefined;
1161
+ } | null | undefined;
1162
+ };
1163
+ } | {
1164
+ type: "SCHEDULED";
1165
+ data: {
1166
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1167
+ publishingDate?: Date | null | undefined;
1168
+ };
1169
+ } | {
1170
+ type: "SCHEDULED_RETRY";
1171
+ data: {
1172
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1173
+ attemptNumber: number;
1174
+ maxAttempts: number;
1175
+ previousHistoryId: string;
1176
+ originalFailureDate: Date;
1177
+ fields?: {
1178
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1179
+ autoFixable: boolean;
1180
+ error?: string | null | undefined;
1181
+ }[] | null | undefined;
1182
+ };
1183
+ } | null | undefined;
1184
+ accountId?: string | null | undefined;
1185
+ requestId?: string | null | undefined;
1186
+ targetDate?: Date | null | undefined;
1187
+ }, {
1188
+ type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1189
+ id: string;
1190
+ createdAt: Date;
1191
+ itemId: string | number;
1192
+ data?: {
1193
+ type: "ACTION_CANCELED";
1194
+ data: {
1195
+ targetItemHistoryId: string;
1196
+ };
1197
+ } | {
1198
+ type: "BUYER_PAID";
1199
+ data: {
1200
+ soldAccountId: string;
1201
+ soldOrderId: string;
1202
+ soldConversationId?: string | null | undefined;
1203
+ };
1204
+ } | {
1205
+ type: "DELIVERED";
1206
+ data: {
1207
+ soldAccountId: string;
1208
+ soldOrderId: string;
1209
+ soldConversationId?: string | null | undefined;
1210
+ };
1211
+ } | {
1212
+ type: "EMPTY";
1213
+ } | {
1214
+ type: "FAILED_TO_PUBLISH";
1215
+ data: {
1216
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1217
+ accountId?: string | null | undefined;
1218
+ reason?: string | null | undefined;
1219
+ fields?: {
1220
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1221
+ autoFixable: boolean;
1222
+ error?: string | null | undefined;
1223
+ }[] | null | undefined;
1224
+ itemHistoryId?: string | null | undefined;
1225
+ };
1226
+ } | {
1227
+ type: "IMAGE_PROCESSING_DONE";
1228
+ data: {
1229
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1230
+ variations?: {
1231
+ fileId: string;
1232
+ seed: number;
1233
+ phash: string;
1234
+ distanceOriginal: number;
1235
+ originalImageUrl: string;
1236
+ originalPhash: string;
1237
+ }[] | null | undefined;
1238
+ originalPhashes?: string[] | null | undefined;
1239
+ };
1240
+ } | {
1241
+ type: "IMPORTED";
1242
+ data: {
1243
+ post: {
1244
+ platformId: string;
1245
+ post: {
1246
+ status?: string | null | undefined;
1247
+ price?: number | null | undefined;
1248
+ currency?: string | null | undefined;
1249
+ brand?: string | null | undefined;
1250
+ catalog?: string | null | undefined;
1251
+ catalogId?: number | null | undefined;
1252
+ colors?: string[] | null | undefined;
1253
+ colorIds?: number[] | null | undefined;
1254
+ description?: string | null | undefined;
1255
+ measurementLength?: number | null | undefined;
1256
+ measurementWidth?: number | null | undefined;
1257
+ packageSizeId?: number | null | undefined;
1258
+ photoUrls?: string[] | null | undefined;
1259
+ size?: string | null | undefined;
1260
+ sizeId?: number | null | undefined;
1261
+ statusId?: number | null | undefined;
1262
+ title?: string | null | undefined;
1263
+ isDraft?: boolean | null | undefined;
1264
+ isArchived?: boolean | null | undefined;
1265
+ availableQuantity?: number | null | undefined;
1266
+ material?: number[] | null | undefined;
1267
+ manufacturerLabelling?: string | null | undefined;
1268
+ labels?: string[] | null | undefined;
1269
+ };
1270
+ createdAt?: Date | null | undefined;
1271
+ platformUrl?: string | null | undefined;
1272
+ };
1273
+ };
1274
+ } | {
1275
+ type: "LIFECYCLE_COMPLETED";
1276
+ data: {
1277
+ accountId: string;
1278
+ };
1279
+ } | {
1280
+ type: "LIFECYCLE_STARTED";
1281
+ data: {
1282
+ accountId: string;
1283
+ caseId: string;
1284
+ };
1285
+ } | {
1286
+ type: "REPUBLISHING";
1287
+ data: {
1288
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1289
+ publishingDate?: Date | null | undefined;
1290
+ priceDropPayload?: {
1291
+ value: number;
1292
+ type: "PERCENTAGE" | "ABSOLUTE";
1293
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1294
+ roundStep?: number | null | undefined;
1295
+ maxRounds?: number | null | undefined;
1296
+ } | null | undefined;
1297
+ isTransfer?: boolean | null | undefined;
1298
+ targetAccountId?: string | null | undefined;
1299
+ };
1300
+ } | {
1301
+ type: "REPUBLISHING_RETRY";
1302
+ data: {
1303
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1304
+ attemptNumber: number;
1305
+ maxAttempts: number;
1306
+ previousHistoryId: string;
1307
+ originalFailureDate: Date;
1308
+ fields?: {
1309
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1310
+ autoFixable: boolean;
1311
+ error?: string | null | undefined;
1312
+ }[] | null | undefined;
1313
+ priceDropPayload?: {
1314
+ value: number;
1315
+ type: "PERCENTAGE" | "ABSOLUTE";
1316
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1317
+ roundStep?: number | null | undefined;
1318
+ maxRounds?: number | null | undefined;
1319
+ } | null | undefined;
1320
+ };
1321
+ } | {
1322
+ type: "SCHEDULED";
1323
+ data: {
1324
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1325
+ publishingDate?: Date | null | undefined;
1326
+ };
1327
+ } | {
1328
+ type: "SCHEDULED_RETRY";
1329
+ data: {
1330
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1331
+ attemptNumber: number;
1332
+ maxAttempts: number;
1333
+ previousHistoryId: string;
1334
+ originalFailureDate: Date;
1335
+ fields?: {
1336
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1337
+ autoFixable: boolean;
1338
+ error?: string | null | undefined;
1339
+ }[] | null | undefined;
1340
+ };
1341
+ } | null | undefined;
1342
+ accountId?: string | null | undefined;
1343
+ requestId?: string | null | undefined;
1344
+ targetDate?: Date | null | undefined;
1345
+ }>>>;
1346
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1347
+ id: z.ZodString;
1348
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1349
+ accountId: z.ZodString;
1350
+ platformId: z.ZodString;
1351
+ platformUrl: z.ZodString;
1352
+ platformPrice: z.ZodNumber;
1353
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
1354
+ createdAt: z.ZodDate;
1355
+ publishedAt: z.ZodDate;
1356
+ updatedAt: z.ZodDate;
1357
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1358
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1359
+ accountId: z.ZodString;
1360
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1361
+ name: z.ZodString;
1362
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1363
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR", "LOCKED"]>;
1364
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1365
+ startsAt: z.ZodDate;
1366
+ endsAt: z.ZodDate;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ startsAt: Date;
1369
+ endsAt: Date;
1370
+ }, {
1371
+ startsAt: Date;
1372
+ endsAt: Date;
1373
+ }>>>;
1374
+ favoritesMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1375
+ ordersMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1376
+ conversationsMaxDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1379
+ userId: string | number;
1380
+ name: string;
1381
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1382
+ accountId: string;
1383
+ locale?: string | null | undefined;
1384
+ night?: {
1385
+ startsAt: Date;
1386
+ endsAt: Date;
1387
+ } | null | undefined;
1388
+ favoritesMaxDelay?: number | null | undefined;
1389
+ ordersMaxDelay?: number | null | undefined;
1390
+ conversationsMaxDelay?: number | null | undefined;
1391
+ }, {
1392
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1393
+ userId: string | number;
1394
+ name: string;
1395
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1396
+ accountId: string;
1397
+ locale?: string | null | undefined;
1398
+ night?: {
1399
+ startsAt: Date;
1400
+ endsAt: Date;
1401
+ } | null | undefined;
1402
+ favoritesMaxDelay?: number | null | undefined;
1403
+ ordersMaxDelay?: number | null | undefined;
1404
+ conversationsMaxDelay?: number | null | undefined;
1405
+ }>>>;
1406
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1407
+ viewsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1408
+ favoritesCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1411
+ id: string;
1412
+ updatedAt: Date;
1413
+ createdAt: Date;
1414
+ accountId: string;
1415
+ itemId: string | number;
1416
+ platformId: string;
1417
+ platformUrl: string;
1418
+ platformPrice: number;
1419
+ publishedAt: Date;
1420
+ conversationId?: string | null | undefined;
1421
+ account?: {
1422
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1423
+ userId: string | number;
1424
+ name: string;
1425
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1426
+ accountId: string;
1427
+ locale?: string | null | undefined;
1428
+ night?: {
1429
+ startsAt: Date;
1430
+ endsAt: Date;
1431
+ } | null | undefined;
1432
+ favoritesMaxDelay?: number | null | undefined;
1433
+ ordersMaxDelay?: number | null | undefined;
1434
+ conversationsMaxDelay?: number | null | undefined;
1435
+ } | null | undefined;
1436
+ viewsCount?: number | null | undefined;
1437
+ favoritesCount?: number | null | undefined;
1438
+ }, {
1439
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1440
+ id: string;
1441
+ updatedAt: Date;
1442
+ createdAt: Date;
1443
+ accountId: string;
1444
+ itemId: string | number;
1445
+ platformId: string;
1446
+ platformUrl: string;
1447
+ platformPrice: number;
1448
+ publishedAt: Date;
1449
+ conversationId?: string | null | undefined;
1450
+ account?: {
1451
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1452
+ userId: string | number;
1453
+ name: string;
1454
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1455
+ accountId: string;
1456
+ locale?: string | null | undefined;
1457
+ night?: {
1458
+ startsAt: Date;
1459
+ endsAt: Date;
1460
+ } | null | undefined;
1461
+ favoritesMaxDelay?: number | null | undefined;
1462
+ ordersMaxDelay?: number | null | undefined;
1463
+ conversationsMaxDelay?: number | null | undefined;
1464
+ } | null | undefined;
1465
+ viewsCount?: number | null | undefined;
1466
+ favoritesCount?: number | null | undefined;
1467
+ }>, "many">>>;
1468
+ actions: z.ZodArray<z.ZodEnum<["PUBLISH", "REPUBLISH"]>, "many">;
1469
+ createdAt: z.ZodDate;
1470
+ updatedAt: z.ZodDate;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ userId: number;
1473
+ id: number;
1474
+ updatedAt: Date;
1475
+ name: string;
1476
+ createdAt: Date;
1477
+ sold: boolean;
1478
+ actions: ("REPUBLISH" | "PUBLISH")[];
1479
+ state?: number | null | undefined;
1480
+ colorIds?: number[] | null | undefined;
1481
+ description?: string | null | undefined;
1482
+ packageSizeId?: number | null | undefined;
1483
+ sizeId?: number | null | undefined;
1484
+ labels?: {
1485
+ itemId: string | number;
1486
+ labelId: string | number;
1487
+ label?: {
1488
+ id: string | number;
1489
+ name: string;
1490
+ createdAt: Date;
1491
+ isUserLabel: boolean;
1492
+ userId?: string | number | null | undefined;
1493
+ itemCount?: number | null | undefined;
1494
+ parentId?: unknown;
1495
+ } | null | undefined;
1496
+ }[] | null | undefined;
1497
+ files?: {
1498
+ itemId: string | number;
1499
+ fileId: string;
1500
+ index?: number | null | undefined;
1501
+ file?: {
1502
+ path: string;
1503
+ userId: string | number;
1504
+ id: string;
1505
+ createdAt: Date;
1506
+ signedUrl: string;
1507
+ } | null | undefined;
1508
+ }[] | null | undefined;
1509
+ fields?: {
1510
+ value: string;
1511
+ itemId: string | number;
1512
+ fieldId: string | number;
1513
+ }[] | null | undefined;
1514
+ sku?: string | null | undefined;
1515
+ categoryId?: number | null | undefined;
1516
+ brandId?: number | null | undefined;
1517
+ sex?: string | null | undefined;
1518
+ purchasePrice?: number | null | undefined;
1519
+ purchaseDate?: Date | null | undefined;
1520
+ purchasePlaceId?: number | null | undefined;
1521
+ purchased?: boolean | null | undefined;
1522
+ sellingPrice?: number | null | undefined;
1523
+ sellingDate?: Date | null | undefined;
1524
+ sellingPlaceId?: number | null | undefined;
1525
+ estimatedPrice?: number | null | undefined;
1526
+ fees?: {
1527
+ value: number;
1528
+ type: string;
1529
+ userId: string | number;
1530
+ id: string | number;
1531
+ updatedAt: Date;
1532
+ name: string;
1533
+ createdAt: Date;
1534
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1535
+ startDate: Date;
1536
+ active: boolean;
1537
+ description?: string | null | undefined;
1538
+ itemId?: string | number | null | undefined;
1539
+ endDate?: Date | null | undefined;
1540
+ parentFeeId?: string | number | null | undefined;
1541
+ }[] | null | undefined;
1542
+ feesSum?: number | null | undefined;
1543
+ lastHistory?: {
1544
+ type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1545
+ id: string;
1546
+ createdAt: Date;
1547
+ itemId: string | number;
1548
+ data?: {
1549
+ type: "ACTION_CANCELED";
1550
+ data: {
1551
+ targetItemHistoryId: string;
1552
+ };
1553
+ } | {
1554
+ type: "BUYER_PAID";
1555
+ data: {
1556
+ soldAccountId: string;
1557
+ soldOrderId: string;
1558
+ soldConversationId?: string | null | undefined;
1559
+ };
1560
+ } | {
1561
+ type: "DELIVERED";
1562
+ data: {
1563
+ soldAccountId: string;
1564
+ soldOrderId: string;
1565
+ soldConversationId?: string | null | undefined;
1566
+ };
1567
+ } | {
1568
+ type: "EMPTY";
1569
+ } | {
1570
+ type: "FAILED_TO_PUBLISH";
1571
+ data: {
1572
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1573
+ accountId?: string | null | undefined;
1574
+ reason?: string | null | undefined;
1575
+ fields?: {
1576
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1577
+ autoFixable: boolean;
1578
+ error?: string | null | undefined;
1579
+ }[] | null | undefined;
1580
+ itemHistoryId?: string | null | undefined;
1581
+ };
1582
+ } | {
1583
+ type: "IMAGE_PROCESSING_DONE";
1584
+ data: {
1585
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1586
+ variations?: {
1587
+ fileId: string;
1588
+ seed: number;
1589
+ phash: string;
1590
+ distanceOriginal: number;
1591
+ originalImageUrl: string;
1592
+ originalPhash: string;
1593
+ }[] | null | undefined;
1594
+ originalPhashes?: string[] | null | undefined;
1595
+ };
1596
+ } | {
1597
+ type: "IMPORTED";
1598
+ data: {
1599
+ post: {
1600
+ platformId: string;
1601
+ post: {
1602
+ status?: string | null | undefined;
1603
+ price?: number | null | undefined;
1604
+ currency?: string | null | undefined;
1605
+ brand?: string | null | undefined;
1606
+ catalog?: string | null | undefined;
1607
+ catalogId?: number | null | undefined;
1608
+ colors?: string[] | null | undefined;
1609
+ colorIds?: number[] | null | undefined;
1610
+ description?: string | null | undefined;
1611
+ measurementLength?: number | null | undefined;
1612
+ measurementWidth?: number | null | undefined;
1613
+ packageSizeId?: number | null | undefined;
1614
+ photoUrls?: string[] | null | undefined;
1615
+ size?: string | null | undefined;
1616
+ sizeId?: number | null | undefined;
1617
+ statusId?: number | null | undefined;
1618
+ title?: string | null | undefined;
1619
+ isDraft?: boolean | null | undefined;
1620
+ isArchived?: boolean | null | undefined;
1621
+ availableQuantity?: number | null | undefined;
1622
+ material?: number[] | null | undefined;
1623
+ manufacturerLabelling?: string | null | undefined;
1624
+ labels?: string[] | null | undefined;
1625
+ };
1626
+ createdAt?: Date | null | undefined;
1627
+ platformUrl?: string | null | undefined;
1628
+ };
1629
+ };
1630
+ } | {
1631
+ type: "LIFECYCLE_COMPLETED";
1632
+ data: {
1633
+ accountId: string;
1634
+ };
1635
+ } | {
1636
+ type: "LIFECYCLE_STARTED";
1637
+ data: {
1638
+ accountId: string;
1639
+ caseId: string;
1640
+ };
1641
+ } | {
1642
+ type: "REPUBLISHING";
1643
+ data: {
1644
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1645
+ publishingDate?: Date | null | undefined;
1646
+ priceDropPayload?: {
1647
+ value: number;
1648
+ type: "PERCENTAGE" | "ABSOLUTE";
1649
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1650
+ roundStep?: number | null | undefined;
1651
+ maxRounds?: number | null | undefined;
1652
+ } | null | undefined;
1653
+ isTransfer?: boolean | null | undefined;
1654
+ targetAccountId?: string | null | undefined;
1655
+ };
1656
+ } | {
1657
+ type: "REPUBLISHING_RETRY";
1658
+ data: {
1659
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1660
+ attemptNumber: number;
1661
+ maxAttempts: number;
1662
+ previousHistoryId: string;
1663
+ originalFailureDate: Date;
1664
+ fields?: {
1665
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1666
+ autoFixable: boolean;
1667
+ error?: string | null | undefined;
1668
+ }[] | null | undefined;
1669
+ priceDropPayload?: {
1670
+ value: number;
1671
+ type: "PERCENTAGE" | "ABSOLUTE";
1672
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1673
+ roundStep?: number | null | undefined;
1674
+ maxRounds?: number | null | undefined;
1675
+ } | null | undefined;
1676
+ };
1677
+ } | {
1678
+ type: "SCHEDULED";
1679
+ data: {
1680
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1681
+ publishingDate?: Date | null | undefined;
1682
+ };
1683
+ } | {
1684
+ type: "SCHEDULED_RETRY";
1685
+ data: {
1686
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1687
+ attemptNumber: number;
1688
+ maxAttempts: number;
1689
+ previousHistoryId: string;
1690
+ originalFailureDate: Date;
1691
+ fields?: {
1692
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1693
+ autoFixable: boolean;
1694
+ error?: string | null | undefined;
1695
+ }[] | null | undefined;
1696
+ };
1697
+ } | null | undefined;
1698
+ accountId?: string | null | undefined;
1699
+ requestId?: string | null | undefined;
1700
+ targetDate?: Date | null | undefined;
1701
+ } | null | undefined;
1702
+ platforms?: {
1703
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1704
+ id: string;
1705
+ updatedAt: Date;
1706
+ createdAt: Date;
1707
+ accountId: string;
1708
+ itemId: string | number;
1709
+ platformId: string;
1710
+ platformUrl: string;
1711
+ platformPrice: number;
1712
+ publishedAt: Date;
1713
+ conversationId?: string | null | undefined;
1714
+ account?: {
1715
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1716
+ userId: string | number;
1717
+ name: string;
1718
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1719
+ accountId: string;
1720
+ locale?: string | null | undefined;
1721
+ night?: {
1722
+ startsAt: Date;
1723
+ endsAt: Date;
1724
+ } | null | undefined;
1725
+ favoritesMaxDelay?: number | null | undefined;
1726
+ ordersMaxDelay?: number | null | undefined;
1727
+ conversationsMaxDelay?: number | null | undefined;
1728
+ } | null | undefined;
1729
+ viewsCount?: number | null | undefined;
1730
+ favoritesCount?: number | null | undefined;
1731
+ }[] | null | undefined;
1732
+ }, {
1733
+ userId: number;
1734
+ id: number;
1735
+ updatedAt: Date;
1736
+ name: string;
1737
+ createdAt: Date;
1738
+ sold: boolean;
1739
+ actions: ("REPUBLISH" | "PUBLISH")[];
1740
+ state?: number | null | undefined;
1741
+ colorIds?: number[] | null | undefined;
1742
+ description?: string | null | undefined;
1743
+ packageSizeId?: number | null | undefined;
1744
+ sizeId?: number | null | undefined;
1745
+ labels?: {
1746
+ itemId: string | number;
1747
+ labelId: string | number;
1748
+ label?: {
1749
+ id: string | number;
1750
+ name: string;
1751
+ createdAt: Date;
1752
+ isUserLabel: boolean;
1753
+ userId?: string | number | null | undefined;
1754
+ itemCount?: number | null | undefined;
1755
+ parentId?: unknown;
1756
+ } | null | undefined;
1757
+ }[] | null | undefined;
1758
+ files?: {
1759
+ itemId: string | number;
1760
+ fileId: string;
1761
+ index?: number | null | undefined;
1762
+ file?: {
1763
+ path: string;
1764
+ userId: string | number;
1765
+ id: string;
1766
+ createdAt: Date;
1767
+ signedUrl: string;
1768
+ } | null | undefined;
1769
+ }[] | null | undefined;
1770
+ fields?: {
1771
+ value: string;
1772
+ itemId: string | number;
1773
+ fieldId: string | number;
1774
+ }[] | null | undefined;
1775
+ sku?: string | null | undefined;
1776
+ categoryId?: number | null | undefined;
1777
+ brandId?: number | null | undefined;
1778
+ sex?: string | null | undefined;
1779
+ purchasePrice?: number | null | undefined;
1780
+ purchaseDate?: Date | null | undefined;
1781
+ purchasePlaceId?: number | null | undefined;
1782
+ purchased?: boolean | null | undefined;
1783
+ sellingPrice?: number | null | undefined;
1784
+ sellingDate?: Date | null | undefined;
1785
+ sellingPlaceId?: number | null | undefined;
1786
+ estimatedPrice?: number | null | undefined;
1787
+ fees?: {
1788
+ value: number;
1789
+ type: string;
1790
+ userId: string | number;
1791
+ id: string | number;
1792
+ updatedAt: Date;
1793
+ name: string;
1794
+ createdAt: Date;
1795
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1796
+ startDate: Date;
1797
+ active: boolean;
1798
+ description?: string | null | undefined;
1799
+ itemId?: string | number | null | undefined;
1800
+ endDate?: Date | null | undefined;
1801
+ parentFeeId?: string | number | null | undefined;
1802
+ }[] | null | undefined;
1803
+ feesSum?: number | null | undefined;
1804
+ lastHistory?: {
1805
+ type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1806
+ id: string;
1807
+ createdAt: Date;
1808
+ itemId: string | number;
1809
+ data?: {
1810
+ type: "ACTION_CANCELED";
1811
+ data: {
1812
+ targetItemHistoryId: string;
1813
+ };
1814
+ } | {
1815
+ type: "BUYER_PAID";
1816
+ data: {
1817
+ soldAccountId: string;
1818
+ soldOrderId: string;
1819
+ soldConversationId?: string | null | undefined;
1820
+ };
1821
+ } | {
1822
+ type: "DELIVERED";
1823
+ data: {
1824
+ soldAccountId: string;
1825
+ soldOrderId: string;
1826
+ soldConversationId?: string | null | undefined;
1827
+ };
1828
+ } | {
1829
+ type: "EMPTY";
1830
+ } | {
1831
+ type: "FAILED_TO_PUBLISH";
1832
+ data: {
1833
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1834
+ accountId?: string | null | undefined;
1835
+ reason?: string | null | undefined;
1836
+ fields?: {
1837
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1838
+ autoFixable: boolean;
1839
+ error?: string | null | undefined;
1840
+ }[] | null | undefined;
1841
+ itemHistoryId?: string | null | undefined;
1842
+ };
1843
+ } | {
1844
+ type: "IMAGE_PROCESSING_DONE";
1845
+ data: {
1846
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1847
+ variations?: {
1848
+ fileId: string;
1849
+ seed: number;
1850
+ phash: string;
1851
+ distanceOriginal: number;
1852
+ originalImageUrl: string;
1853
+ originalPhash: string;
1854
+ }[] | null | undefined;
1855
+ originalPhashes?: string[] | null | undefined;
1856
+ };
1857
+ } | {
1858
+ type: "IMPORTED";
1859
+ data: {
1860
+ post: {
1861
+ platformId: string;
1862
+ post: {
1863
+ status?: string | null | undefined;
1864
+ price?: number | null | undefined;
1865
+ currency?: string | null | undefined;
1866
+ brand?: string | null | undefined;
1867
+ catalog?: string | null | undefined;
1868
+ catalogId?: number | null | undefined;
1869
+ colors?: string[] | null | undefined;
1870
+ colorIds?: number[] | null | undefined;
1871
+ description?: string | null | undefined;
1872
+ measurementLength?: number | null | undefined;
1873
+ measurementWidth?: number | null | undefined;
1874
+ packageSizeId?: number | null | undefined;
1875
+ photoUrls?: string[] | null | undefined;
1876
+ size?: string | null | undefined;
1877
+ sizeId?: number | null | undefined;
1878
+ statusId?: number | null | undefined;
1879
+ title?: string | null | undefined;
1880
+ isDraft?: boolean | null | undefined;
1881
+ isArchived?: boolean | null | undefined;
1882
+ availableQuantity?: number | null | undefined;
1883
+ material?: number[] | null | undefined;
1884
+ manufacturerLabelling?: string | null | undefined;
1885
+ labels?: string[] | null | undefined;
1886
+ };
1887
+ createdAt?: Date | null | undefined;
1888
+ platformUrl?: string | null | undefined;
1889
+ };
1890
+ };
1891
+ } | {
1892
+ type: "LIFECYCLE_COMPLETED";
1893
+ data: {
1894
+ accountId: string;
1895
+ };
1896
+ } | {
1897
+ type: "LIFECYCLE_STARTED";
1898
+ data: {
1899
+ accountId: string;
1900
+ caseId: string;
1901
+ };
1902
+ } | {
1903
+ type: "REPUBLISHING";
1904
+ data: {
1905
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1906
+ publishingDate?: Date | null | undefined;
1907
+ priceDropPayload?: {
1908
+ value: number;
1909
+ type: "PERCENTAGE" | "ABSOLUTE";
1910
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1911
+ roundStep?: number | null | undefined;
1912
+ maxRounds?: number | null | undefined;
1913
+ } | null | undefined;
1914
+ isTransfer?: boolean | null | undefined;
1915
+ targetAccountId?: string | null | undefined;
1916
+ };
1917
+ } | {
1918
+ type: "REPUBLISHING_RETRY";
1919
+ data: {
1920
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1921
+ attemptNumber: number;
1922
+ maxAttempts: number;
1923
+ previousHistoryId: string;
1924
+ originalFailureDate: Date;
1925
+ fields?: {
1926
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1927
+ autoFixable: boolean;
1928
+ error?: string | null | undefined;
1929
+ }[] | null | undefined;
1930
+ priceDropPayload?: {
1931
+ value: number;
1932
+ type: "PERCENTAGE" | "ABSOLUTE";
1933
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1934
+ roundStep?: number | null | undefined;
1935
+ maxRounds?: number | null | undefined;
1936
+ } | null | undefined;
1937
+ };
1938
+ } | {
1939
+ type: "SCHEDULED";
1940
+ data: {
1941
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1942
+ publishingDate?: Date | null | undefined;
1943
+ };
1944
+ } | {
1945
+ type: "SCHEDULED_RETRY";
1946
+ data: {
1947
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1948
+ attemptNumber: number;
1949
+ maxAttempts: number;
1950
+ previousHistoryId: string;
1951
+ originalFailureDate: Date;
1952
+ fields?: {
1953
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1954
+ autoFixable: boolean;
1955
+ error?: string | null | undefined;
1956
+ }[] | null | undefined;
1957
+ };
1958
+ } | null | undefined;
1959
+ accountId?: string | null | undefined;
1960
+ requestId?: string | null | undefined;
1961
+ targetDate?: Date | null | undefined;
1962
+ } | null | undefined;
1963
+ platforms?: {
1964
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1965
+ id: string;
1966
+ updatedAt: Date;
1967
+ createdAt: Date;
1968
+ accountId: string;
1969
+ itemId: string | number;
1970
+ platformId: string;
1971
+ platformUrl: string;
1972
+ platformPrice: number;
1973
+ publishedAt: Date;
1974
+ conversationId?: string | null | undefined;
1975
+ account?: {
1976
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1977
+ userId: string | number;
1978
+ name: string;
1979
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1980
+ accountId: string;
1981
+ locale?: string | null | undefined;
1982
+ night?: {
1983
+ startsAt: Date;
1984
+ endsAt: Date;
1985
+ } | null | undefined;
1986
+ favoritesMaxDelay?: number | null | undefined;
1987
+ ordersMaxDelay?: number | null | undefined;
1988
+ conversationsMaxDelay?: number | null | undefined;
1989
+ } | null | undefined;
1990
+ viewsCount?: number | null | undefined;
1991
+ favoritesCount?: number | null | undefined;
1992
+ }[] | null | undefined;
1993
+ }>;
1994
+ export type ListedItem = z.infer<typeof ListedItemSchema>;
1995
+ //# sourceMappingURL=ListedItem.d.ts.map