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