controlresell 2.1.2 → 2.1.5

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 (65) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +1 -1
  3. package/src/com/controlresell/models/application/ControlResellEnvironment.js +1 -1
  4. package/src/com/controlresell/models/application/ControlResellEnvironment.ts +1 -1
  5. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  6. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  7. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +11 -11
  9. package/src/com/controlresell/models/items/Item.d.ts +7 -7
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  12. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +11 -11
  13. package/src/com/controlresell/models/items/UpdatedItem.d.ts +11 -11
  14. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
  15. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
  16. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  17. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  18. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
  20. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
  21. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
  22. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +11 -730
  23. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -2
  24. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -2
  25. package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +15 -0
  26. package/src/com/controlresell/models/items/platforms/PlatformInfo.js +9 -0
  27. package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +8 -0
  28. package/src/com/controlresell/models/notifications/CreateNotificationPayload.d.ts +27 -0
  29. package/src/com/controlresell/models/notifications/CreateNotificationPayload.js +13 -0
  30. package/src/com/controlresell/models/notifications/CreateNotificationPayload.ts +12 -0
  31. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.d.ts +9 -0
  32. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.js +7 -0
  33. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.ts +6 -0
  34. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.d.ts +24 -0
  35. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.js +12 -0
  36. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.ts +11 -0
  37. package/src/com/controlresell/models/notifications/NotificationToken.d.ts +15 -0
  38. package/src/com/controlresell/models/notifications/NotificationToken.js +9 -0
  39. package/src/com/controlresell/models/notifications/NotificationToken.ts +8 -0
  40. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +7 -0
  41. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +9 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +5 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +7 -0
  44. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +0 -33
  45. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +1 -3
  46. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +1 -3
  47. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +3 -0
  48. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +1 -0
  49. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +1 -0
  50. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +3 -0
  51. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +2 -1
  52. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +2 -1
  53. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +3 -0
  54. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +1 -0
  55. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +1 -0
  56. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +3 -0
  57. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +1 -0
  58. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +1 -0
  59. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +11 -11
  60. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +11 -11
  61. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  62. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  63. package/src/index.d.ts +5 -0
  64. package/src/index.js +5 -0
  65. package/src/index.ts +5 -0
@@ -3,752 +3,33 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
3
3
  request: z.ZodObject<{
4
4
  accountsId: z.ZodArray<z.ZodString, "many">;
5
5
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
+ disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  accountsId: string[];
8
9
  publishingDate?: Date | null | undefined;
10
+ disableGetDraft?: boolean | null | undefined;
9
11
  }, {
10
12
  accountsId: string[];
11
13
  publishingDate?: Date | null | undefined;
14
+ disableGetDraft?: boolean | null | undefined;
12
15
  }>;
13
- item: z.ZodObject<{
14
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
15
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
16
- name: z.ZodString;
17
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
- fileId: z.ZodString;
20
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
21
- index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
- file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
- id: z.ZodString;
24
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
25
- path: z.ZodString;
26
- signedUrl: z.ZodString;
27
- createdAt: z.ZodDate;
28
- }, "strip", z.ZodTypeAny, {
29
- path: string;
30
- id: string;
31
- userId: string | number;
32
- signedUrl: string;
33
- createdAt: Date;
34
- }, {
35
- path: string;
36
- id: string;
37
- userId: string | number;
38
- signedUrl: string;
39
- createdAt: Date;
40
- }>>>;
41
- }, "strip", z.ZodTypeAny, {
42
- fileId: string;
43
- itemId: string | number;
44
- file?: {
45
- path: string;
46
- id: string;
47
- userId: string | number;
48
- signedUrl: string;
49
- createdAt: Date;
50
- } | null | undefined;
51
- index?: number | null | undefined;
52
- }, {
53
- fileId: string;
54
- itemId: string | number;
55
- file?: {
56
- path: string;
57
- id: string;
58
- userId: string | number;
59
- signedUrl: string;
60
- createdAt: Date;
61
- } | null | undefined;
62
- index?: number | null | undefined;
63
- }>, "many">>>;
64
- categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
- brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
66
- sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
- state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
- sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
- purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
- purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
71
- purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
72
- sold: z.ZodBoolean;
73
- sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
- sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
75
- sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
76
- estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
- fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
78
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
79
- type: z.ZodString;
80
- value: z.ZodNumber;
81
- name: z.ZodString;
82
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
84
- startDate: z.ZodDate;
85
- endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
86
- active: z.ZodBoolean;
87
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
88
- itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
89
- parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
90
- createdAt: z.ZodDate;
91
- updatedAt: z.ZodDate;
92
- }, "strip", z.ZodTypeAny, {
93
- value: number;
94
- type: string;
95
- id: string | number;
96
- userId: string | number;
97
- createdAt: Date;
98
- name: string;
99
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
100
- startDate: Date;
101
- active: boolean;
102
- updatedAt: Date;
103
- description?: string | null | undefined;
104
- endDate?: Date | null | undefined;
105
- itemId?: string | number | null | undefined;
106
- parentFeeId?: string | number | null | undefined;
107
- }, {
108
- value: number;
109
- type: string;
110
- id: string | number;
111
- userId: string | number;
112
- createdAt: Date;
113
- name: string;
114
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
115
- startDate: Date;
116
- active: boolean;
117
- updatedAt: Date;
118
- description?: string | null | undefined;
119
- endDate?: Date | null | undefined;
120
- itemId?: string | number | null | undefined;
121
- parentFeeId?: string | number | null | undefined;
122
- }>, "many">>>;
123
- feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
124
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
125
- labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
126
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
127
- label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
128
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
129
- name: z.ZodString;
130
- userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
131
- isUserLabel: z.ZodBoolean;
132
- createdAt: z.ZodDate;
133
- }, "strip", z.ZodTypeAny, {
134
- id: string | number;
135
- createdAt: Date;
136
- name: string;
137
- isUserLabel: boolean;
138
- userId?: string | number | null | undefined;
139
- }, {
140
- id: string | number;
141
- createdAt: Date;
142
- name: string;
143
- isUserLabel: boolean;
144
- userId?: string | number | null | undefined;
145
- }>>>;
146
- }, "strip", z.ZodTypeAny, {
147
- itemId: string | number;
148
- labelId: string | number;
149
- label?: {
150
- id: string | number;
151
- createdAt: Date;
152
- name: string;
153
- isUserLabel: boolean;
154
- userId?: string | number | null | undefined;
155
- } | null | undefined;
156
- }, {
157
- itemId: string | number;
158
- labelId: string | number;
159
- label?: {
160
- id: string | number;
161
- createdAt: Date;
162
- name: string;
163
- isUserLabel: boolean;
164
- userId?: string | number | null | undefined;
165
- } | null | undefined;
166
- }>, "many">>>;
167
- colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
168
- packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
- customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
170
- customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
172
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
173
- firstName: z.ZodString;
174
- lastName: z.ZodString;
175
- birthDate: z.ZodDate;
176
- email: z.ZodString;
177
- idNumber: z.ZodString;
178
- phone: z.ZodString;
179
- iban: z.ZodString;
180
- bic: z.ZodString;
181
- phoneVerified: z.ZodBoolean;
182
- }, "strip", z.ZodTypeAny, {
183
- email: string;
184
- id: string | number;
185
- userId: string | number;
186
- firstName: string;
187
- lastName: string;
188
- birthDate: Date;
189
- idNumber: string;
190
- phone: string;
191
- iban: string;
192
- bic: string;
193
- phoneVerified: boolean;
194
- }, {
195
- email: string;
196
- id: string | number;
197
- userId: string | number;
198
- firstName: string;
199
- lastName: string;
200
- birthDate: Date;
201
- idNumber: string;
202
- phone: string;
203
- iban: string;
204
- bic: string;
205
- phoneVerified: boolean;
206
- }>>>;
207
- customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
- customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
209
- customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
210
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
212
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
213
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
214
- fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
215
- value: z.ZodString;
216
- }, "strip", z.ZodTypeAny, {
217
- value: string;
218
- itemId: string | number;
219
- fieldId: string | number;
220
- }, {
221
- value: string;
222
- itemId: string | number;
223
- fieldId: string | number;
224
- }>, "many">>>;
225
- lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
226
- id: z.ZodString;
227
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
228
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
229
- data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
- createdAt: z.ZodDate;
231
- }, "strip", z.ZodTypeAny, {
232
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
233
- id: string;
234
- createdAt: Date;
235
- itemId: string | number;
236
- data?: string | null | undefined;
237
- }, {
238
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
239
- id: string;
240
- createdAt: Date;
241
- itemId: string | number;
242
- data?: string | null | undefined;
243
- }>>>;
244
- platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
245
- id: z.ZodString;
246
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
247
- accountId: z.ZodString;
248
- platformId: z.ZodString;
249
- platformUrl: z.ZodString;
250
- platformPrice: z.ZodNumber;
251
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
252
- account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
253
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
254
- accountId: z.ZodString;
255
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
256
- name: z.ZodString;
257
- status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
258
- }, "strip", z.ZodTypeAny, {
259
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
260
- userId: string | number;
261
- name: string;
262
- platform: "VINTED" | "SHOPIFY";
263
- accountId: string;
264
- }, {
265
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
266
- userId: string | number;
267
- name: string;
268
- platform: "VINTED" | "SHOPIFY";
269
- accountId: string;
270
- }>>>;
271
- }, "strip", z.ZodTypeAny, {
272
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
273
- id: string;
274
- itemId: string | number;
275
- accountId: string;
276
- platformId: string;
277
- platformUrl: string;
278
- platformPrice: number;
279
- account?: {
280
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
281
- userId: string | number;
282
- name: string;
283
- platform: "VINTED" | "SHOPIFY";
284
- accountId: string;
285
- } | null | undefined;
286
- }, {
287
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
288
- id: string;
289
- itemId: string | number;
290
- accountId: string;
291
- platformId: string;
292
- platformUrl: string;
293
- platformPrice: number;
294
- account?: {
295
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
296
- userId: string | number;
297
- name: string;
298
- platform: "VINTED" | "SHOPIFY";
299
- accountId: string;
300
- } | null | undefined;
301
- }>, "many">>>;
302
- createdAt: z.ZodDate;
303
- updatedAt: z.ZodDate;
304
- }, "strip", z.ZodTypeAny, {
305
- id: string | number;
306
- userId: string | number;
307
- createdAt: Date;
308
- name: string;
309
- updatedAt: Date;
310
- sold: boolean;
311
- description?: string | null | undefined;
312
- customerId?: string | number | null | undefined;
313
- colorIds?: number[] | null | undefined;
314
- packageSizeId?: number | null | undefined;
315
- sizeId?: number | null | undefined;
316
- files?: {
317
- fileId: string;
318
- itemId: string | number;
319
- file?: {
320
- path: string;
321
- id: string;
322
- userId: string | number;
323
- signedUrl: string;
324
- createdAt: Date;
325
- } | null | undefined;
326
- index?: number | null | undefined;
327
- }[] | null | undefined;
328
- categoryId?: number | null | undefined;
329
- brandId?: string | number | null | undefined;
330
- sex?: string | null | undefined;
331
- state?: number | null | undefined;
332
- purchasePrice?: number | null | undefined;
333
- purchaseDate?: Date | null | undefined;
334
- purchasePlaceId?: string | number | null | undefined;
335
- sellingPrice?: number | null | undefined;
336
- sellingDate?: Date | null | undefined;
337
- sellingPlaceId?: string | number | null | undefined;
338
- estimatedPrice?: number | null | undefined;
339
- fees?: {
340
- value: number;
341
- type: string;
342
- id: string | number;
343
- userId: string | number;
344
- createdAt: Date;
345
- name: string;
346
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
347
- startDate: Date;
348
- active: boolean;
349
- updatedAt: Date;
350
- description?: string | null | undefined;
351
- endDate?: Date | null | undefined;
352
- itemId?: string | number | null | undefined;
353
- parentFeeId?: string | number | null | undefined;
354
- }[] | null | undefined;
355
- feesSum?: number | null | undefined;
356
- labels?: {
357
- itemId: string | number;
358
- labelId: string | number;
359
- label?: {
360
- id: string | number;
361
- createdAt: Date;
362
- name: string;
363
- isUserLabel: boolean;
364
- userId?: string | number | null | undefined;
365
- } | null | undefined;
366
- }[] | null | undefined;
367
- customer?: {
368
- email: string;
369
- id: string | number;
370
- userId: string | number;
371
- firstName: string;
372
- lastName: string;
373
- birthDate: Date;
374
- idNumber: string;
375
- phone: string;
376
- iban: string;
377
- bic: string;
378
- phoneVerified: boolean;
379
- } | null | undefined;
380
- customerType?: string | null | undefined;
381
- customerPaid?: boolean | null | undefined;
382
- customerPaidDate?: Date | null | undefined;
383
- customerPaidType?: string | null | undefined;
384
- contractId?: string | number | null | undefined;
385
- fields?: {
386
- value: string;
387
- itemId: string | number;
388
- fieldId: string | number;
389
- }[] | null | undefined;
390
- lastHistory?: {
391
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
392
- id: string;
393
- createdAt: Date;
394
- itemId: string | number;
395
- data?: string | null | undefined;
396
- } | null | undefined;
397
- platforms?: {
398
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
399
- id: string;
400
- itemId: string | number;
401
- accountId: string;
402
- platformId: string;
403
- platformUrl: string;
404
- platformPrice: number;
405
- account?: {
406
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
407
- userId: string | number;
408
- name: string;
409
- platform: "VINTED" | "SHOPIFY";
410
- accountId: string;
411
- } | null | undefined;
412
- }[] | null | undefined;
413
- }, {
414
- id: string | number;
415
- userId: string | number;
416
- createdAt: Date;
417
- name: string;
418
- updatedAt: Date;
419
- sold: boolean;
420
- description?: string | null | undefined;
421
- customerId?: string | number | null | undefined;
422
- colorIds?: number[] | null | undefined;
423
- packageSizeId?: number | null | undefined;
424
- sizeId?: number | null | undefined;
425
- files?: {
426
- fileId: string;
427
- itemId: string | number;
428
- file?: {
429
- path: string;
430
- id: string;
431
- userId: string | number;
432
- signedUrl: string;
433
- createdAt: Date;
434
- } | null | undefined;
435
- index?: number | null | undefined;
436
- }[] | null | undefined;
437
- categoryId?: number | null | undefined;
438
- brandId?: string | number | null | undefined;
439
- sex?: string | null | undefined;
440
- state?: number | null | undefined;
441
- purchasePrice?: number | null | undefined;
442
- purchaseDate?: Date | null | undefined;
443
- purchasePlaceId?: string | number | null | undefined;
444
- sellingPrice?: number | null | undefined;
445
- sellingDate?: Date | null | undefined;
446
- sellingPlaceId?: string | number | null | undefined;
447
- estimatedPrice?: number | null | undefined;
448
- fees?: {
449
- value: number;
450
- type: string;
451
- id: string | number;
452
- userId: string | number;
453
- createdAt: Date;
454
- name: string;
455
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
456
- startDate: Date;
457
- active: boolean;
458
- updatedAt: Date;
459
- description?: string | null | undefined;
460
- endDate?: Date | null | undefined;
461
- itemId?: string | number | null | undefined;
462
- parentFeeId?: string | number | null | undefined;
463
- }[] | null | undefined;
464
- feesSum?: number | null | undefined;
465
- labels?: {
466
- itemId: string | number;
467
- labelId: string | number;
468
- label?: {
469
- id: string | number;
470
- createdAt: Date;
471
- name: string;
472
- isUserLabel: boolean;
473
- userId?: string | number | null | undefined;
474
- } | null | undefined;
475
- }[] | null | undefined;
476
- customer?: {
477
- email: string;
478
- id: string | number;
479
- userId: string | number;
480
- firstName: string;
481
- lastName: string;
482
- birthDate: Date;
483
- idNumber: string;
484
- phone: string;
485
- iban: string;
486
- bic: string;
487
- phoneVerified: boolean;
488
- } | null | undefined;
489
- customerType?: string | null | undefined;
490
- customerPaid?: boolean | null | undefined;
491
- customerPaidDate?: Date | null | undefined;
492
- customerPaidType?: string | null | undefined;
493
- contractId?: string | number | null | undefined;
494
- fields?: {
495
- value: string;
496
- itemId: string | number;
497
- fieldId: string | number;
498
- }[] | null | undefined;
499
- lastHistory?: {
500
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
501
- id: string;
502
- createdAt: Date;
503
- itemId: string | number;
504
- data?: string | null | undefined;
505
- } | null | undefined;
506
- platforms?: {
507
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
508
- id: string;
509
- itemId: string | number;
510
- accountId: string;
511
- platformId: string;
512
- platformUrl: string;
513
- platformPrice: number;
514
- account?: {
515
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
516
- userId: string | number;
517
- name: string;
518
- platform: "VINTED" | "SHOPIFY";
519
- accountId: string;
520
- } | null | undefined;
521
- }[] | null | undefined;
522
- }>;
16
+ itemId: z.ZodNumber;
17
+ userId: z.ZodNumber;
523
18
  }, "strip", z.ZodTypeAny, {
524
- item: {
525
- id: string | number;
526
- userId: string | number;
527
- createdAt: Date;
528
- name: string;
529
- updatedAt: Date;
530
- sold: boolean;
531
- description?: string | null | undefined;
532
- customerId?: string | number | null | undefined;
533
- colorIds?: number[] | null | undefined;
534
- packageSizeId?: number | null | undefined;
535
- sizeId?: number | null | undefined;
536
- files?: {
537
- fileId: string;
538
- itemId: string | number;
539
- file?: {
540
- path: string;
541
- id: string;
542
- userId: string | number;
543
- signedUrl: string;
544
- createdAt: Date;
545
- } | null | undefined;
546
- index?: number | null | undefined;
547
- }[] | null | undefined;
548
- categoryId?: number | null | undefined;
549
- brandId?: string | number | null | undefined;
550
- sex?: string | null | undefined;
551
- state?: number | null | undefined;
552
- purchasePrice?: number | null | undefined;
553
- purchaseDate?: Date | null | undefined;
554
- purchasePlaceId?: string | number | null | undefined;
555
- sellingPrice?: number | null | undefined;
556
- sellingDate?: Date | null | undefined;
557
- sellingPlaceId?: string | number | null | undefined;
558
- estimatedPrice?: number | null | undefined;
559
- fees?: {
560
- value: number;
561
- type: string;
562
- id: string | number;
563
- userId: string | number;
564
- createdAt: Date;
565
- name: string;
566
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
567
- startDate: Date;
568
- active: boolean;
569
- updatedAt: Date;
570
- description?: string | null | undefined;
571
- endDate?: Date | null | undefined;
572
- itemId?: string | number | null | undefined;
573
- parentFeeId?: string | number | null | undefined;
574
- }[] | null | undefined;
575
- feesSum?: number | null | undefined;
576
- labels?: {
577
- itemId: string | number;
578
- labelId: string | number;
579
- label?: {
580
- id: string | number;
581
- createdAt: Date;
582
- name: string;
583
- isUserLabel: boolean;
584
- userId?: string | number | null | undefined;
585
- } | null | undefined;
586
- }[] | null | undefined;
587
- customer?: {
588
- email: string;
589
- id: string | number;
590
- userId: string | number;
591
- firstName: string;
592
- lastName: string;
593
- birthDate: Date;
594
- idNumber: string;
595
- phone: string;
596
- iban: string;
597
- bic: string;
598
- phoneVerified: boolean;
599
- } | null | undefined;
600
- customerType?: string | null | undefined;
601
- customerPaid?: boolean | null | undefined;
602
- customerPaidDate?: Date | null | undefined;
603
- customerPaidType?: string | null | undefined;
604
- contractId?: string | number | null | undefined;
605
- fields?: {
606
- value: string;
607
- itemId: string | number;
608
- fieldId: string | number;
609
- }[] | null | undefined;
610
- lastHistory?: {
611
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
612
- id: string;
613
- createdAt: Date;
614
- itemId: string | number;
615
- data?: string | null | undefined;
616
- } | null | undefined;
617
- platforms?: {
618
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
619
- id: string;
620
- itemId: string | number;
621
- accountId: string;
622
- platformId: string;
623
- platformUrl: string;
624
- platformPrice: number;
625
- account?: {
626
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
627
- userId: string | number;
628
- name: string;
629
- platform: "VINTED" | "SHOPIFY";
630
- accountId: string;
631
- } | null | undefined;
632
- }[] | null | undefined;
633
- };
19
+ userId: number;
20
+ itemId: number;
634
21
  request: {
635
22
  accountsId: string[];
636
23
  publishingDate?: Date | null | undefined;
24
+ disableGetDraft?: boolean | null | undefined;
637
25
  };
638
26
  }, {
639
- item: {
640
- id: string | number;
641
- userId: string | number;
642
- createdAt: Date;
643
- name: string;
644
- updatedAt: Date;
645
- sold: boolean;
646
- description?: string | null | undefined;
647
- customerId?: string | number | null | undefined;
648
- colorIds?: number[] | null | undefined;
649
- packageSizeId?: number | null | undefined;
650
- sizeId?: number | null | undefined;
651
- files?: {
652
- fileId: string;
653
- itemId: string | number;
654
- file?: {
655
- path: string;
656
- id: string;
657
- userId: string | number;
658
- signedUrl: string;
659
- createdAt: Date;
660
- } | null | undefined;
661
- index?: number | null | undefined;
662
- }[] | null | undefined;
663
- categoryId?: number | null | undefined;
664
- brandId?: string | number | null | undefined;
665
- sex?: string | null | undefined;
666
- state?: number | null | undefined;
667
- purchasePrice?: number | null | undefined;
668
- purchaseDate?: Date | null | undefined;
669
- purchasePlaceId?: string | number | null | undefined;
670
- sellingPrice?: number | null | undefined;
671
- sellingDate?: Date | null | undefined;
672
- sellingPlaceId?: string | number | null | undefined;
673
- estimatedPrice?: number | null | undefined;
674
- fees?: {
675
- value: number;
676
- type: string;
677
- id: string | number;
678
- userId: string | number;
679
- createdAt: Date;
680
- name: string;
681
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
682
- startDate: Date;
683
- active: boolean;
684
- updatedAt: Date;
685
- description?: string | null | undefined;
686
- endDate?: Date | null | undefined;
687
- itemId?: string | number | null | undefined;
688
- parentFeeId?: string | number | null | undefined;
689
- }[] | null | undefined;
690
- feesSum?: number | null | undefined;
691
- labels?: {
692
- itemId: string | number;
693
- labelId: string | number;
694
- label?: {
695
- id: string | number;
696
- createdAt: Date;
697
- name: string;
698
- isUserLabel: boolean;
699
- userId?: string | number | null | undefined;
700
- } | null | undefined;
701
- }[] | null | undefined;
702
- customer?: {
703
- email: string;
704
- id: string | number;
705
- userId: string | number;
706
- firstName: string;
707
- lastName: string;
708
- birthDate: Date;
709
- idNumber: string;
710
- phone: string;
711
- iban: string;
712
- bic: string;
713
- phoneVerified: boolean;
714
- } | null | undefined;
715
- customerType?: string | null | undefined;
716
- customerPaid?: boolean | null | undefined;
717
- customerPaidDate?: Date | null | undefined;
718
- customerPaidType?: string | null | undefined;
719
- contractId?: string | number | null | undefined;
720
- fields?: {
721
- value: string;
722
- itemId: string | number;
723
- fieldId: string | number;
724
- }[] | null | undefined;
725
- lastHistory?: {
726
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
727
- id: string;
728
- createdAt: Date;
729
- itemId: string | number;
730
- data?: string | null | undefined;
731
- } | null | undefined;
732
- platforms?: {
733
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
734
- id: string;
735
- itemId: string | number;
736
- accountId: string;
737
- platformId: string;
738
- platformUrl: string;
739
- platformPrice: number;
740
- account?: {
741
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
742
- userId: string | number;
743
- name: string;
744
- platform: "VINTED" | "SHOPIFY";
745
- accountId: string;
746
- } | null | undefined;
747
- }[] | null | undefined;
748
- };
27
+ userId: number;
28
+ itemId: number;
749
29
  request: {
750
30
  accountsId: string[];
751
31
  publishingDate?: Date | null | undefined;
32
+ disableGetDraft?: boolean | null | undefined;
752
33
  };
753
34
  }>;
754
35
  export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>;