controlresell 2.0.11 → 2.1.0

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 (102) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/customers/VerifyCustomerRequest.d.ts +9 -0
  3. package/src/com/controlresell/models/customers/VerifyCustomerRequest.js +7 -0
  4. package/src/com/controlresell/models/customers/VerifyCustomerRequest.ts +6 -0
  5. package/src/com/controlresell/models/customers/contracts/Contract.d.ts +4 -4
  6. package/src/com/controlresell/models/customers/contracts/PrepareContractResponse.d.ts +4 -4
  7. package/src/com/controlresell/models/fees/Fee.d.ts +6 -6
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +86 -86
  9. package/src/com/controlresell/models/items/Item.d.ts +56 -56
  10. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +82 -82
  12. package/src/com/controlresell/models/items/UpdatedItem.d.ts +86 -86
  13. package/src/com/controlresell/models/items/files/ItemFile.d.ts +6 -6
  14. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +2 -2
  15. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
  16. package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +2 -2
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +12 -12
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +82 -82
  19. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +2 -2
  20. package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
  21. package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
  22. package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
  23. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +144 -50
  24. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +186 -68
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +94 -24
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +5 -3
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +5 -3
  28. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +2 -2
  29. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +128 -34
  30. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +45 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +10 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +9 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.d.ts +48 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.js +11 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.ts +10 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.d.ts +12 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.js +8 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.ts +7 -0
  39. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.d.ts +9 -0
  40. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.js +7 -0
  41. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.ts +6 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +21 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +12 -0
  44. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +11 -0
  45. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +15 -0
  46. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +10 -0
  47. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +9 -0
  48. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +9 -0
  49. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +8 -0
  50. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +7 -0
  51. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +4 -4
  52. package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +10 -10
  53. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
  54. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +1 -0
  55. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +1 -0
  56. package/src/com/controlresell/models/platforms/orders/Order.d.ts +51 -48
  57. package/src/com/controlresell/models/platforms/orders/Order.js +1 -0
  58. package/src/com/controlresell/models/platforms/orders/Order.ts +1 -0
  59. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -0
  60. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.js +1 -0
  61. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.ts +1 -0
  62. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +20 -20
  63. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +1126 -0
  64. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +10 -0
  65. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +9 -0
  66. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.d.ts +21 -0
  67. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.js +11 -0
  68. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.ts +10 -0
  69. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +167 -0
  70. package/src/com/controlresell/models/platforms/transactions/Transaction.js +15 -0
  71. package/src/com/controlresell/models/platforms/transactions/Transaction.ts +14 -0
  72. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.d.ts +18 -0
  73. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.js +10 -0
  74. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.ts +9 -0
  75. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.d.ts +9 -0
  76. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.js +7 -0
  77. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.ts +6 -0
  78. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +102 -0
  79. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.js +10 -0
  80. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.ts +9 -0
  81. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +959 -0
  82. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.js +10 -0
  83. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.ts +9 -0
  84. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +2 -2
  85. package/src/com/controlresell/models/users/User.d.ts +2 -2
  86. package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
  87. package/src/com/controlresell/models/users/fields/FieldsWithData.d.ts +4 -4
  88. package/src/com/controlresell/models/users/files/File.d.ts +2 -2
  89. package/src/com/controlresell/models/users/platforms/CreateUserOnPlatformPayload.d.ts +2 -2
  90. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +8 -8
  91. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +8 -8
  92. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +2 -2
  93. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +4 -4
  94. package/src/index.d.ts +17 -2
  95. package/src/index.js +17 -2
  96. package/src/index.ts +17 -2
  97. package/src/com/controlresell/models/platforms/conversations/messages/{ConversationOfferRequest.d.ts → offers/ConversationOfferRequest.d.ts} +0 -0
  98. package/src/com/controlresell/models/platforms/conversations/messages/{ConversationOfferRequest.js → offers/ConversationOfferRequest.js} +0 -0
  99. package/src/com/controlresell/models/platforms/conversations/messages/{ConversationOfferRequest.ts → offers/ConversationOfferRequest.ts} +0 -0
  100. package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.d.ts +2 -2
  101. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.js +0 -0
  102. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.ts +0 -0
@@ -0,0 +1,1126 @@
1
+ import { z } from "zod";
2
+ export declare const OrderWithItemsSchema: z.ZodObject<{
3
+ order: z.ZodObject<{
4
+ id: z.ZodString;
5
+ accountId: z.ZodString;
6
+ platformOrderId: z.ZodString;
7
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
8
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ price: z.ZodNumber;
11
+ date: z.ZodDate;
12
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ itemOnPlatformId: z.ZodString;
14
+ orderId: z.ZodString;
15
+ itemOnPlatform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodString;
17
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
18
+ accountId: z.ZodString;
19
+ platformId: z.ZodString;
20
+ platformUrl: z.ZodString;
21
+ platformPrice: z.ZodNumber;
22
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
23
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
25
+ accountId: z.ZodString;
26
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
27
+ name: z.ZodString;
28
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
31
+ userId: string | number;
32
+ name: string;
33
+ platform: "VINTED" | "SHOPIFY";
34
+ accountId: string;
35
+ }, {
36
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
37
+ userId: string | number;
38
+ name: string;
39
+ platform: "VINTED" | "SHOPIFY";
40
+ accountId: string;
41
+ }>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
44
+ id: string;
45
+ itemId: string | number;
46
+ accountId: string;
47
+ platformId: string;
48
+ platformUrl: string;
49
+ platformPrice: number;
50
+ account?: {
51
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
52
+ userId: string | number;
53
+ name: string;
54
+ platform: "VINTED" | "SHOPIFY";
55
+ accountId: string;
56
+ } | null | undefined;
57
+ }, {
58
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
59
+ id: string;
60
+ itemId: string | number;
61
+ accountId: string;
62
+ platformId: string;
63
+ platformUrl: string;
64
+ platformPrice: number;
65
+ account?: {
66
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
67
+ userId: string | number;
68
+ name: string;
69
+ platform: "VINTED" | "SHOPIFY";
70
+ accountId: string;
71
+ } | null | undefined;
72
+ }>>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ orderId: string;
75
+ itemOnPlatformId: string;
76
+ itemOnPlatform?: {
77
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
78
+ id: string;
79
+ itemId: string | number;
80
+ accountId: string;
81
+ platformId: string;
82
+ platformUrl: string;
83
+ platformPrice: number;
84
+ account?: {
85
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
86
+ userId: string | number;
87
+ name: string;
88
+ platform: "VINTED" | "SHOPIFY";
89
+ accountId: string;
90
+ } | null | undefined;
91
+ } | null | undefined;
92
+ }, {
93
+ orderId: string;
94
+ itemOnPlatformId: string;
95
+ itemOnPlatform?: {
96
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
97
+ id: string;
98
+ itemId: string | number;
99
+ accountId: string;
100
+ platformId: string;
101
+ platformUrl: string;
102
+ platformPrice: number;
103
+ account?: {
104
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
105
+ userId: string | number;
106
+ name: string;
107
+ platform: "VINTED" | "SHOPIFY";
108
+ accountId: string;
109
+ } | null | undefined;
110
+ } | null | undefined;
111
+ }>, "many">>>;
112
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ orderId: z.ZodString;
115
+ fileId: z.ZodString;
116
+ originalFileId: z.ZodString;
117
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
118
+ id: z.ZodString;
119
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
120
+ path: z.ZodString;
121
+ signedUrl: z.ZodString;
122
+ createdAt: z.ZodDate;
123
+ }, "strip", z.ZodTypeAny, {
124
+ path: string;
125
+ id: string;
126
+ userId: string | number;
127
+ signedUrl: string;
128
+ createdAt: Date;
129
+ }, {
130
+ path: string;
131
+ id: string;
132
+ userId: string | number;
133
+ signedUrl: string;
134
+ createdAt: Date;
135
+ }>>>;
136
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
137
+ id: z.ZodString;
138
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
139
+ path: z.ZodString;
140
+ signedUrl: z.ZodString;
141
+ createdAt: z.ZodDate;
142
+ }, "strip", z.ZodTypeAny, {
143
+ path: string;
144
+ id: string;
145
+ userId: string | number;
146
+ signedUrl: string;
147
+ createdAt: Date;
148
+ }, {
149
+ path: string;
150
+ id: string;
151
+ userId: string | number;
152
+ signedUrl: string;
153
+ createdAt: Date;
154
+ }>>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ id: string;
157
+ fileId: string;
158
+ orderId: string;
159
+ originalFileId: string;
160
+ file?: {
161
+ path: string;
162
+ id: string;
163
+ userId: string | number;
164
+ signedUrl: string;
165
+ createdAt: Date;
166
+ } | null | undefined;
167
+ originalFile?: {
168
+ path: string;
169
+ id: string;
170
+ userId: string | number;
171
+ signedUrl: string;
172
+ createdAt: Date;
173
+ } | null | undefined;
174
+ }, {
175
+ id: string;
176
+ fileId: string;
177
+ orderId: string;
178
+ originalFileId: string;
179
+ file?: {
180
+ path: string;
181
+ id: string;
182
+ userId: string | number;
183
+ signedUrl: string;
184
+ createdAt: Date;
185
+ } | null | undefined;
186
+ originalFile?: {
187
+ path: string;
188
+ id: string;
189
+ userId: string | number;
190
+ signedUrl: string;
191
+ createdAt: Date;
192
+ } | null | undefined;
193
+ }>, "many">>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
196
+ id: string;
197
+ date: Date;
198
+ price: number;
199
+ accountId: string;
200
+ platformOrderId: string;
201
+ items?: {
202
+ orderId: string;
203
+ itemOnPlatformId: string;
204
+ itemOnPlatform?: {
205
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
206
+ id: string;
207
+ itemId: string | number;
208
+ accountId: string;
209
+ platformId: string;
210
+ platformUrl: string;
211
+ platformPrice: number;
212
+ account?: {
213
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
214
+ userId: string | number;
215
+ name: string;
216
+ platform: "VINTED" | "SHOPIFY";
217
+ accountId: string;
218
+ } | null | undefined;
219
+ } | null | undefined;
220
+ }[] | null | undefined;
221
+ transactionId?: string | null | undefined;
222
+ conversationId?: string | null | undefined;
223
+ labels?: {
224
+ id: string;
225
+ fileId: string;
226
+ orderId: string;
227
+ originalFileId: string;
228
+ file?: {
229
+ path: string;
230
+ id: string;
231
+ userId: string | number;
232
+ signedUrl: string;
233
+ createdAt: Date;
234
+ } | null | undefined;
235
+ originalFile?: {
236
+ path: string;
237
+ id: string;
238
+ userId: string | number;
239
+ signedUrl: string;
240
+ createdAt: Date;
241
+ } | null | undefined;
242
+ }[] | null | undefined;
243
+ }, {
244
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
245
+ id: string;
246
+ date: Date;
247
+ price: number;
248
+ accountId: string;
249
+ platformOrderId: string;
250
+ items?: {
251
+ orderId: string;
252
+ itemOnPlatformId: string;
253
+ itemOnPlatform?: {
254
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
255
+ id: string;
256
+ itemId: string | number;
257
+ accountId: string;
258
+ platformId: string;
259
+ platformUrl: string;
260
+ platformPrice: number;
261
+ account?: {
262
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
263
+ userId: string | number;
264
+ name: string;
265
+ platform: "VINTED" | "SHOPIFY";
266
+ accountId: string;
267
+ } | null | undefined;
268
+ } | null | undefined;
269
+ }[] | null | undefined;
270
+ transactionId?: string | null | undefined;
271
+ conversationId?: string | null | undefined;
272
+ labels?: {
273
+ id: string;
274
+ fileId: string;
275
+ orderId: string;
276
+ originalFileId: string;
277
+ file?: {
278
+ path: string;
279
+ id: string;
280
+ userId: string | number;
281
+ signedUrl: string;
282
+ createdAt: Date;
283
+ } | null | undefined;
284
+ originalFile?: {
285
+ path: string;
286
+ id: string;
287
+ userId: string | number;
288
+ signedUrl: string;
289
+ createdAt: Date;
290
+ } | null | undefined;
291
+ }[] | null | undefined;
292
+ }>;
293
+ items: z.ZodArray<z.ZodObject<{
294
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
295
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
296
+ name: z.ZodString;
297
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
299
+ fileId: z.ZodString;
300
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
301
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
302
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
303
+ id: z.ZodString;
304
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
305
+ path: z.ZodString;
306
+ signedUrl: z.ZodString;
307
+ createdAt: z.ZodDate;
308
+ }, "strip", z.ZodTypeAny, {
309
+ path: string;
310
+ id: string;
311
+ userId: string | number;
312
+ signedUrl: string;
313
+ createdAt: Date;
314
+ }, {
315
+ path: string;
316
+ id: string;
317
+ userId: string | number;
318
+ signedUrl: string;
319
+ createdAt: Date;
320
+ }>>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ fileId: string;
323
+ itemId: string | number;
324
+ file?: {
325
+ path: string;
326
+ id: string;
327
+ userId: string | number;
328
+ signedUrl: string;
329
+ createdAt: Date;
330
+ } | null | undefined;
331
+ index?: number | null | undefined;
332
+ }, {
333
+ fileId: string;
334
+ itemId: string | number;
335
+ file?: {
336
+ path: string;
337
+ id: string;
338
+ userId: string | number;
339
+ signedUrl: string;
340
+ createdAt: Date;
341
+ } | null | undefined;
342
+ index?: number | null | undefined;
343
+ }>, "many">>>;
344
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
345
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
346
+ sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
348
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
349
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
351
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
352
+ sold: z.ZodBoolean;
353
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
354
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
355
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
356
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
357
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
358
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
359
+ type: z.ZodString;
360
+ value: z.ZodNumber;
361
+ name: z.ZodString;
362
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
364
+ startDate: z.ZodDate;
365
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
366
+ active: z.ZodBoolean;
367
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
368
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
369
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
370
+ createdAt: z.ZodDate;
371
+ updatedAt: z.ZodDate;
372
+ }, "strip", z.ZodTypeAny, {
373
+ value: number;
374
+ type: string;
375
+ id: string | number;
376
+ userId: string | number;
377
+ createdAt: Date;
378
+ name: string;
379
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
380
+ startDate: Date;
381
+ active: boolean;
382
+ updatedAt: Date;
383
+ description?: string | null | undefined;
384
+ endDate?: Date | null | undefined;
385
+ itemId?: string | number | null | undefined;
386
+ parentFeeId?: string | number | null | undefined;
387
+ }, {
388
+ value: number;
389
+ type: string;
390
+ id: string | number;
391
+ userId: string | number;
392
+ createdAt: Date;
393
+ name: string;
394
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
395
+ startDate: Date;
396
+ active: boolean;
397
+ updatedAt: Date;
398
+ description?: string | null | undefined;
399
+ endDate?: Date | null | undefined;
400
+ itemId?: string | number | null | undefined;
401
+ parentFeeId?: string | number | null | undefined;
402
+ }>, "many">>>;
403
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
404
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
405
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
406
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
407
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
408
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
409
+ name: z.ZodString;
410
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
411
+ isUserLabel: z.ZodBoolean;
412
+ createdAt: z.ZodDate;
413
+ }, "strip", z.ZodTypeAny, {
414
+ id: string | number;
415
+ createdAt: Date;
416
+ name: string;
417
+ isUserLabel: boolean;
418
+ userId?: string | number | null | undefined;
419
+ }, {
420
+ id: string | number;
421
+ createdAt: Date;
422
+ name: string;
423
+ isUserLabel: boolean;
424
+ userId?: string | number | null | undefined;
425
+ }>>>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ itemId: string | number;
428
+ labelId: string | number;
429
+ label?: {
430
+ id: string | number;
431
+ createdAt: Date;
432
+ name: string;
433
+ isUserLabel: boolean;
434
+ userId?: string | number | null | undefined;
435
+ } | null | undefined;
436
+ }, {
437
+ itemId: string | number;
438
+ labelId: string | number;
439
+ label?: {
440
+ id: string | number;
441
+ createdAt: Date;
442
+ name: string;
443
+ isUserLabel: boolean;
444
+ userId?: string | number | null | undefined;
445
+ } | null | undefined;
446
+ }>, "many">>>;
447
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
448
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
449
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
450
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
452
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
453
+ firstName: z.ZodString;
454
+ lastName: z.ZodString;
455
+ birthDate: z.ZodDate;
456
+ email: z.ZodString;
457
+ idNumber: z.ZodString;
458
+ phone: z.ZodString;
459
+ iban: z.ZodString;
460
+ bic: z.ZodString;
461
+ phoneVerified: z.ZodBoolean;
462
+ }, "strip", z.ZodTypeAny, {
463
+ email: string;
464
+ id: string | number;
465
+ userId: string | number;
466
+ firstName: string;
467
+ lastName: string;
468
+ birthDate: Date;
469
+ idNumber: string;
470
+ phone: string;
471
+ iban: string;
472
+ bic: string;
473
+ phoneVerified: boolean;
474
+ }, {
475
+ email: string;
476
+ id: string | number;
477
+ userId: string | number;
478
+ firstName: string;
479
+ lastName: string;
480
+ birthDate: Date;
481
+ idNumber: string;
482
+ phone: string;
483
+ iban: string;
484
+ bic: string;
485
+ phoneVerified: boolean;
486
+ }>>>;
487
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
489
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
490
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
492
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
493
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
494
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
495
+ value: z.ZodString;
496
+ }, "strip", z.ZodTypeAny, {
497
+ value: string;
498
+ itemId: string | number;
499
+ fieldId: string | number;
500
+ }, {
501
+ value: string;
502
+ itemId: string | number;
503
+ fieldId: string | number;
504
+ }>, "many">>>;
505
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
506
+ id: z.ZodString;
507
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
508
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
509
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ createdAt: z.ZodDate;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
513
+ id: string;
514
+ createdAt: Date;
515
+ itemId: string | number;
516
+ data?: string | null | undefined;
517
+ }, {
518
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
519
+ id: string;
520
+ createdAt: Date;
521
+ itemId: string | number;
522
+ data?: string | null | undefined;
523
+ }>>>;
524
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
525
+ id: z.ZodString;
526
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
527
+ accountId: z.ZodString;
528
+ platformId: z.ZodString;
529
+ platformUrl: z.ZodString;
530
+ platformPrice: z.ZodNumber;
531
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
532
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
533
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
534
+ accountId: z.ZodString;
535
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
536
+ name: z.ZodString;
537
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
540
+ userId: string | number;
541
+ name: string;
542
+ platform: "VINTED" | "SHOPIFY";
543
+ accountId: string;
544
+ }, {
545
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
546
+ userId: string | number;
547
+ name: string;
548
+ platform: "VINTED" | "SHOPIFY";
549
+ accountId: string;
550
+ }>>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
553
+ id: string;
554
+ itemId: string | number;
555
+ accountId: string;
556
+ platformId: string;
557
+ platformUrl: string;
558
+ platformPrice: number;
559
+ account?: {
560
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
561
+ userId: string | number;
562
+ name: string;
563
+ platform: "VINTED" | "SHOPIFY";
564
+ accountId: string;
565
+ } | null | undefined;
566
+ }, {
567
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
568
+ id: string;
569
+ itemId: string | number;
570
+ accountId: string;
571
+ platformId: string;
572
+ platformUrl: string;
573
+ platformPrice: number;
574
+ account?: {
575
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
576
+ userId: string | number;
577
+ name: string;
578
+ platform: "VINTED" | "SHOPIFY";
579
+ accountId: string;
580
+ } | null | undefined;
581
+ }>, "many">>>;
582
+ createdAt: z.ZodDate;
583
+ updatedAt: z.ZodDate;
584
+ }, "strip", z.ZodTypeAny, {
585
+ id: string | number;
586
+ userId: string | number;
587
+ createdAt: Date;
588
+ name: string;
589
+ updatedAt: Date;
590
+ sold: boolean;
591
+ description?: string | null | undefined;
592
+ customerId?: string | number | null | undefined;
593
+ colorIds?: number[] | null | undefined;
594
+ packageSizeId?: number | null | undefined;
595
+ sizeId?: number | null | undefined;
596
+ files?: {
597
+ fileId: string;
598
+ itemId: string | number;
599
+ file?: {
600
+ path: string;
601
+ id: string;
602
+ userId: string | number;
603
+ signedUrl: string;
604
+ createdAt: Date;
605
+ } | null | undefined;
606
+ index?: number | null | undefined;
607
+ }[] | null | undefined;
608
+ categoryId?: number | null | undefined;
609
+ brandId?: string | number | null | undefined;
610
+ sex?: string | null | undefined;
611
+ state?: number | null | undefined;
612
+ purchasePrice?: number | null | undefined;
613
+ purchaseDate?: Date | null | undefined;
614
+ purchasePlaceId?: string | number | null | undefined;
615
+ sellingPrice?: number | null | undefined;
616
+ sellingDate?: Date | null | undefined;
617
+ sellingPlaceId?: string | number | null | undefined;
618
+ estimatedPrice?: number | null | undefined;
619
+ fees?: {
620
+ value: number;
621
+ type: string;
622
+ id: string | number;
623
+ userId: string | number;
624
+ createdAt: Date;
625
+ name: string;
626
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
627
+ startDate: Date;
628
+ active: boolean;
629
+ updatedAt: Date;
630
+ description?: string | null | undefined;
631
+ endDate?: Date | null | undefined;
632
+ itemId?: string | number | null | undefined;
633
+ parentFeeId?: string | number | null | undefined;
634
+ }[] | null | undefined;
635
+ feesSum?: number | null | undefined;
636
+ labels?: {
637
+ itemId: string | number;
638
+ labelId: string | number;
639
+ label?: {
640
+ id: string | number;
641
+ createdAt: Date;
642
+ name: string;
643
+ isUserLabel: boolean;
644
+ userId?: string | number | null | undefined;
645
+ } | null | undefined;
646
+ }[] | null | undefined;
647
+ customer?: {
648
+ email: string;
649
+ id: string | number;
650
+ userId: string | number;
651
+ firstName: string;
652
+ lastName: string;
653
+ birthDate: Date;
654
+ idNumber: string;
655
+ phone: string;
656
+ iban: string;
657
+ bic: string;
658
+ phoneVerified: boolean;
659
+ } | null | undefined;
660
+ customerType?: string | null | undefined;
661
+ customerPaid?: boolean | null | undefined;
662
+ customerPaidDate?: Date | null | undefined;
663
+ customerPaidType?: string | null | undefined;
664
+ contractId?: string | number | null | undefined;
665
+ fields?: {
666
+ value: string;
667
+ itemId: string | number;
668
+ fieldId: string | number;
669
+ }[] | null | undefined;
670
+ lastHistory?: {
671
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
672
+ id: string;
673
+ createdAt: Date;
674
+ itemId: string | number;
675
+ data?: string | null | undefined;
676
+ } | null | undefined;
677
+ platforms?: {
678
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
679
+ id: string;
680
+ itemId: string | number;
681
+ accountId: string;
682
+ platformId: string;
683
+ platformUrl: string;
684
+ platformPrice: number;
685
+ account?: {
686
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
687
+ userId: string | number;
688
+ name: string;
689
+ platform: "VINTED" | "SHOPIFY";
690
+ accountId: string;
691
+ } | null | undefined;
692
+ }[] | null | undefined;
693
+ }, {
694
+ id: string | number;
695
+ userId: string | number;
696
+ createdAt: Date;
697
+ name: string;
698
+ updatedAt: Date;
699
+ sold: boolean;
700
+ description?: string | null | undefined;
701
+ customerId?: string | number | null | undefined;
702
+ colorIds?: number[] | null | undefined;
703
+ packageSizeId?: number | null | undefined;
704
+ sizeId?: number | null | undefined;
705
+ files?: {
706
+ fileId: string;
707
+ itemId: string | number;
708
+ file?: {
709
+ path: string;
710
+ id: string;
711
+ userId: string | number;
712
+ signedUrl: string;
713
+ createdAt: Date;
714
+ } | null | undefined;
715
+ index?: number | null | undefined;
716
+ }[] | null | undefined;
717
+ categoryId?: number | null | undefined;
718
+ brandId?: string | number | null | undefined;
719
+ sex?: string | null | undefined;
720
+ state?: number | null | undefined;
721
+ purchasePrice?: number | null | undefined;
722
+ purchaseDate?: Date | null | undefined;
723
+ purchasePlaceId?: string | number | null | undefined;
724
+ sellingPrice?: number | null | undefined;
725
+ sellingDate?: Date | null | undefined;
726
+ sellingPlaceId?: string | number | null | undefined;
727
+ estimatedPrice?: number | null | undefined;
728
+ fees?: {
729
+ value: number;
730
+ type: string;
731
+ id: string | number;
732
+ userId: string | number;
733
+ createdAt: Date;
734
+ name: string;
735
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
736
+ startDate: Date;
737
+ active: boolean;
738
+ updatedAt: Date;
739
+ description?: string | null | undefined;
740
+ endDate?: Date | null | undefined;
741
+ itemId?: string | number | null | undefined;
742
+ parentFeeId?: string | number | null | undefined;
743
+ }[] | null | undefined;
744
+ feesSum?: number | null | undefined;
745
+ labels?: {
746
+ itemId: string | number;
747
+ labelId: string | number;
748
+ label?: {
749
+ id: string | number;
750
+ createdAt: Date;
751
+ name: string;
752
+ isUserLabel: boolean;
753
+ userId?: string | number | null | undefined;
754
+ } | null | undefined;
755
+ }[] | null | undefined;
756
+ customer?: {
757
+ email: string;
758
+ id: string | number;
759
+ userId: string | number;
760
+ firstName: string;
761
+ lastName: string;
762
+ birthDate: Date;
763
+ idNumber: string;
764
+ phone: string;
765
+ iban: string;
766
+ bic: string;
767
+ phoneVerified: boolean;
768
+ } | null | undefined;
769
+ customerType?: string | null | undefined;
770
+ customerPaid?: boolean | null | undefined;
771
+ customerPaidDate?: Date | null | undefined;
772
+ customerPaidType?: string | null | undefined;
773
+ contractId?: string | number | null | undefined;
774
+ fields?: {
775
+ value: string;
776
+ itemId: string | number;
777
+ fieldId: string | number;
778
+ }[] | null | undefined;
779
+ lastHistory?: {
780
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
781
+ id: string;
782
+ createdAt: Date;
783
+ itemId: string | number;
784
+ data?: string | null | undefined;
785
+ } | null | undefined;
786
+ platforms?: {
787
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
788
+ id: string;
789
+ itemId: string | number;
790
+ accountId: string;
791
+ platformId: string;
792
+ platformUrl: string;
793
+ platformPrice: number;
794
+ account?: {
795
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
796
+ userId: string | number;
797
+ name: string;
798
+ platform: "VINTED" | "SHOPIFY";
799
+ accountId: string;
800
+ } | null | undefined;
801
+ }[] | null | undefined;
802
+ }>, "many">;
803
+ }, "strip", z.ZodTypeAny, {
804
+ items: {
805
+ id: string | number;
806
+ userId: string | number;
807
+ createdAt: Date;
808
+ name: string;
809
+ updatedAt: Date;
810
+ sold: boolean;
811
+ description?: string | null | undefined;
812
+ customerId?: string | number | null | undefined;
813
+ colorIds?: number[] | null | undefined;
814
+ packageSizeId?: number | null | undefined;
815
+ sizeId?: number | null | undefined;
816
+ files?: {
817
+ fileId: string;
818
+ itemId: string | number;
819
+ file?: {
820
+ path: string;
821
+ id: string;
822
+ userId: string | number;
823
+ signedUrl: string;
824
+ createdAt: Date;
825
+ } | null | undefined;
826
+ index?: number | null | undefined;
827
+ }[] | null | undefined;
828
+ categoryId?: number | null | undefined;
829
+ brandId?: string | number | null | undefined;
830
+ sex?: string | null | undefined;
831
+ state?: number | null | undefined;
832
+ purchasePrice?: number | null | undefined;
833
+ purchaseDate?: Date | null | undefined;
834
+ purchasePlaceId?: string | number | null | undefined;
835
+ sellingPrice?: number | null | undefined;
836
+ sellingDate?: Date | null | undefined;
837
+ sellingPlaceId?: string | number | null | undefined;
838
+ estimatedPrice?: number | null | undefined;
839
+ fees?: {
840
+ value: number;
841
+ type: string;
842
+ id: string | number;
843
+ userId: string | number;
844
+ createdAt: Date;
845
+ name: string;
846
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
847
+ startDate: Date;
848
+ active: boolean;
849
+ updatedAt: Date;
850
+ description?: string | null | undefined;
851
+ endDate?: Date | null | undefined;
852
+ itemId?: string | number | null | undefined;
853
+ parentFeeId?: string | number | null | undefined;
854
+ }[] | null | undefined;
855
+ feesSum?: number | null | undefined;
856
+ labels?: {
857
+ itemId: string | number;
858
+ labelId: string | number;
859
+ label?: {
860
+ id: string | number;
861
+ createdAt: Date;
862
+ name: string;
863
+ isUserLabel: boolean;
864
+ userId?: string | number | null | undefined;
865
+ } | null | undefined;
866
+ }[] | null | undefined;
867
+ customer?: {
868
+ email: string;
869
+ id: string | number;
870
+ userId: string | number;
871
+ firstName: string;
872
+ lastName: string;
873
+ birthDate: Date;
874
+ idNumber: string;
875
+ phone: string;
876
+ iban: string;
877
+ bic: string;
878
+ phoneVerified: boolean;
879
+ } | null | undefined;
880
+ customerType?: string | null | undefined;
881
+ customerPaid?: boolean | null | undefined;
882
+ customerPaidDate?: Date | null | undefined;
883
+ customerPaidType?: string | null | undefined;
884
+ contractId?: string | number | null | undefined;
885
+ fields?: {
886
+ value: string;
887
+ itemId: string | number;
888
+ fieldId: string | number;
889
+ }[] | null | undefined;
890
+ lastHistory?: {
891
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
892
+ id: string;
893
+ createdAt: Date;
894
+ itemId: string | number;
895
+ data?: string | null | undefined;
896
+ } | null | undefined;
897
+ platforms?: {
898
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
899
+ id: string;
900
+ itemId: string | number;
901
+ accountId: string;
902
+ platformId: string;
903
+ platformUrl: string;
904
+ platformPrice: number;
905
+ account?: {
906
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
907
+ userId: string | number;
908
+ name: string;
909
+ platform: "VINTED" | "SHOPIFY";
910
+ accountId: string;
911
+ } | null | undefined;
912
+ }[] | null | undefined;
913
+ }[];
914
+ order: {
915
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
916
+ id: string;
917
+ date: Date;
918
+ price: number;
919
+ accountId: string;
920
+ platformOrderId: string;
921
+ items?: {
922
+ orderId: string;
923
+ itemOnPlatformId: string;
924
+ itemOnPlatform?: {
925
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
926
+ id: string;
927
+ itemId: string | number;
928
+ accountId: string;
929
+ platformId: string;
930
+ platformUrl: string;
931
+ platformPrice: number;
932
+ account?: {
933
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
934
+ userId: string | number;
935
+ name: string;
936
+ platform: "VINTED" | "SHOPIFY";
937
+ accountId: string;
938
+ } | null | undefined;
939
+ } | null | undefined;
940
+ }[] | null | undefined;
941
+ transactionId?: string | null | undefined;
942
+ conversationId?: string | null | undefined;
943
+ labels?: {
944
+ id: string;
945
+ fileId: string;
946
+ orderId: string;
947
+ originalFileId: string;
948
+ file?: {
949
+ path: string;
950
+ id: string;
951
+ userId: string | number;
952
+ signedUrl: string;
953
+ createdAt: Date;
954
+ } | null | undefined;
955
+ originalFile?: {
956
+ path: string;
957
+ id: string;
958
+ userId: string | number;
959
+ signedUrl: string;
960
+ createdAt: Date;
961
+ } | null | undefined;
962
+ }[] | null | undefined;
963
+ };
964
+ }, {
965
+ items: {
966
+ id: string | number;
967
+ userId: string | number;
968
+ createdAt: Date;
969
+ name: string;
970
+ updatedAt: Date;
971
+ sold: boolean;
972
+ description?: string | null | undefined;
973
+ customerId?: string | number | null | undefined;
974
+ colorIds?: number[] | null | undefined;
975
+ packageSizeId?: number | null | undefined;
976
+ sizeId?: number | null | undefined;
977
+ files?: {
978
+ fileId: string;
979
+ itemId: string | number;
980
+ file?: {
981
+ path: string;
982
+ id: string;
983
+ userId: string | number;
984
+ signedUrl: string;
985
+ createdAt: Date;
986
+ } | null | undefined;
987
+ index?: number | null | undefined;
988
+ }[] | null | undefined;
989
+ categoryId?: number | null | undefined;
990
+ brandId?: string | number | null | undefined;
991
+ sex?: string | null | undefined;
992
+ state?: number | null | undefined;
993
+ purchasePrice?: number | null | undefined;
994
+ purchaseDate?: Date | null | undefined;
995
+ purchasePlaceId?: string | number | null | undefined;
996
+ sellingPrice?: number | null | undefined;
997
+ sellingDate?: Date | null | undefined;
998
+ sellingPlaceId?: string | number | null | undefined;
999
+ estimatedPrice?: number | null | undefined;
1000
+ fees?: {
1001
+ value: number;
1002
+ type: string;
1003
+ id: string | number;
1004
+ userId: string | number;
1005
+ createdAt: Date;
1006
+ name: string;
1007
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1008
+ startDate: Date;
1009
+ active: boolean;
1010
+ updatedAt: Date;
1011
+ description?: string | null | undefined;
1012
+ endDate?: Date | null | undefined;
1013
+ itemId?: string | number | null | undefined;
1014
+ parentFeeId?: string | number | null | undefined;
1015
+ }[] | null | undefined;
1016
+ feesSum?: number | null | undefined;
1017
+ labels?: {
1018
+ itemId: string | number;
1019
+ labelId: string | number;
1020
+ label?: {
1021
+ id: string | number;
1022
+ createdAt: Date;
1023
+ name: string;
1024
+ isUserLabel: boolean;
1025
+ userId?: string | number | null | undefined;
1026
+ } | null | undefined;
1027
+ }[] | null | undefined;
1028
+ customer?: {
1029
+ email: string;
1030
+ id: string | number;
1031
+ userId: string | number;
1032
+ firstName: string;
1033
+ lastName: string;
1034
+ birthDate: Date;
1035
+ idNumber: string;
1036
+ phone: string;
1037
+ iban: string;
1038
+ bic: string;
1039
+ phoneVerified: boolean;
1040
+ } | null | undefined;
1041
+ customerType?: string | null | undefined;
1042
+ customerPaid?: boolean | null | undefined;
1043
+ customerPaidDate?: Date | null | undefined;
1044
+ customerPaidType?: string | null | undefined;
1045
+ contractId?: string | number | null | undefined;
1046
+ fields?: {
1047
+ value: string;
1048
+ itemId: string | number;
1049
+ fieldId: string | number;
1050
+ }[] | null | undefined;
1051
+ lastHistory?: {
1052
+ type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1053
+ id: string;
1054
+ createdAt: Date;
1055
+ itemId: string | number;
1056
+ data?: string | null | undefined;
1057
+ } | null | undefined;
1058
+ platforms?: {
1059
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1060
+ id: string;
1061
+ itemId: string | number;
1062
+ accountId: string;
1063
+ platformId: string;
1064
+ platformUrl: string;
1065
+ platformPrice: number;
1066
+ account?: {
1067
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
1068
+ userId: string | number;
1069
+ name: string;
1070
+ platform: "VINTED" | "SHOPIFY";
1071
+ accountId: string;
1072
+ } | null | undefined;
1073
+ }[] | null | undefined;
1074
+ }[];
1075
+ order: {
1076
+ status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
1077
+ id: string;
1078
+ date: Date;
1079
+ price: number;
1080
+ accountId: string;
1081
+ platformOrderId: string;
1082
+ items?: {
1083
+ orderId: string;
1084
+ itemOnPlatformId: string;
1085
+ itemOnPlatform?: {
1086
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1087
+ id: string;
1088
+ itemId: string | number;
1089
+ accountId: string;
1090
+ platformId: string;
1091
+ platformUrl: string;
1092
+ platformPrice: number;
1093
+ account?: {
1094
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
1095
+ userId: string | number;
1096
+ name: string;
1097
+ platform: "VINTED" | "SHOPIFY";
1098
+ accountId: string;
1099
+ } | null | undefined;
1100
+ } | null | undefined;
1101
+ }[] | null | undefined;
1102
+ transactionId?: string | null | undefined;
1103
+ conversationId?: string | null | undefined;
1104
+ labels?: {
1105
+ id: string;
1106
+ fileId: string;
1107
+ orderId: string;
1108
+ originalFileId: string;
1109
+ file?: {
1110
+ path: string;
1111
+ id: string;
1112
+ userId: string | number;
1113
+ signedUrl: string;
1114
+ createdAt: Date;
1115
+ } | null | undefined;
1116
+ originalFile?: {
1117
+ path: string;
1118
+ id: string;
1119
+ userId: string | number;
1120
+ signedUrl: string;
1121
+ createdAt: Date;
1122
+ } | null | undefined;
1123
+ }[] | null | undefined;
1124
+ };
1125
+ }>;
1126
+ export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;