controlresell 2.1.6 → 2.1.8

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 (37) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  3. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  4. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  5. package/src/com/controlresell/models/items/CreatedItems.d.ts +44 -44
  6. package/src/com/controlresell/models/items/Item.d.ts +22 -22
  7. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -0
  8. package/src/com/controlresell/models/items/ItemFiltersContext.js +4 -1
  9. package/src/com/controlresell/models/items/ItemFiltersContext.ts +4 -1
  10. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +44 -44
  12. package/src/com/controlresell/models/items/UpdatedItem.d.ts +44 -44
  13. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +12 -0
  14. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.js +9 -0
  15. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.ts +8 -0
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +189 -0
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.js +10 -0
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.ts +9 -0
  19. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -0
  20. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.js +1 -0
  21. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.ts +1 -0
  22. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +29 -29
  23. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +820 -0
  24. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.js +10 -0
  25. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.ts +9 -0
  26. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +63 -63
  27. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  28. package/src/com/controlresell/models/platforms/orders/Order.d.ts +3 -3
  29. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +82 -0
  30. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.js +10 -0
  31. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.ts +9 -0
  32. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  33. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +49 -49
  34. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +44 -44
  35. package/src/index.d.ts +4 -0
  36. package/src/index.js +4 -0
  37. package/src/index.ts +4 -0
@@ -0,0 +1,820 @@
1
+ import { z } from "zod";
2
+ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
3
+ conversation: z.ZodObject<{
4
+ id: z.ZodString;
5
+ readByCurrentUser: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
+ readByOppositeUser: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
+ allowReply: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8
+ messages: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ photos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
12
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ isHidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
15
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodString;
17
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ price: z.ZodNumber;
19
+ originalPrice: z.ZodNumber;
20
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
23
+ id: string;
24
+ price: number;
25
+ originalPrice: number;
26
+ transactionId?: string | null | undefined;
27
+ }, {
28
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
29
+ id: string;
30
+ price: number;
31
+ originalPrice: number;
32
+ transactionId?: string | null | undefined;
33
+ }>>>;
34
+ createdAt: z.ZodDate;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
37
+ id: string;
38
+ createdAt: Date;
39
+ userId?: string | null | undefined;
40
+ body?: string | null | undefined;
41
+ photos?: string[] | null | undefined;
42
+ isHidden?: boolean | null | undefined;
43
+ offer?: {
44
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
45
+ id: string;
46
+ price: number;
47
+ originalPrice: number;
48
+ transactionId?: string | null | undefined;
49
+ } | null | undefined;
50
+ }, {
51
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
52
+ id: string;
53
+ createdAt: Date;
54
+ userId?: string | null | undefined;
55
+ body?: string | null | undefined;
56
+ photos?: string[] | null | undefined;
57
+ isHidden?: boolean | null | undefined;
58
+ offer?: {
59
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
60
+ id: string;
61
+ price: number;
62
+ originalPrice: number;
63
+ transactionId?: string | null | undefined;
64
+ } | null | undefined;
65
+ }>, "many">;
66
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ login: z.ZodString;
69
+ lastLoggedInAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
70
+ isSystem: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
71
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
73
+ isOnHoliday: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
74
+ isModerator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
75
+ photo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ id: string;
79
+ login: string;
80
+ lastLoggedInAt?: Date | null | undefined;
81
+ isSystem?: boolean | null | undefined;
82
+ reviewCount?: number | null | undefined;
83
+ reviewValue?: number | null | undefined;
84
+ isOnHoliday?: boolean | null | undefined;
85
+ isModerator?: boolean | null | undefined;
86
+ photo?: string | null | undefined;
87
+ location?: string | null | undefined;
88
+ }, {
89
+ id: string;
90
+ login: string;
91
+ lastLoggedInAt?: Date | null | undefined;
92
+ isSystem?: boolean | null | undefined;
93
+ reviewCount?: number | null | undefined;
94
+ reviewValue?: number | null | undefined;
95
+ isOnHoliday?: boolean | null | undefined;
96
+ isModerator?: boolean | null | undefined;
97
+ photo?: string | null | undefined;
98
+ location?: string | null | undefined;
99
+ }>, "many">>>;
100
+ transactions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ status: z.ZodNumber;
103
+ offlineVerification: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
104
+ offerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
+ buyerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
+ sellerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ isCompleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
108
+ shippingOrderId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
109
+ availableActions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
110
+ currentUserSide: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ isBundle: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
112
+ isReserved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
113
+ isPackageSizeSelected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
114
+ isBusinessSeller: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
115
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ itemIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
118
+ itemTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ itemUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ itemIsClosed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
+ offerPriceAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ offerPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ serviceFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ serviceFeeCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ shipmentPriceAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ shipmentPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ totalWithoutShipmentAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ totalWithoutShipmentCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ totalAmountWithoutTax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ sellerItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
131
+ sellerCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ shipmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ shipmentStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
134
+ packageSizeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ status: number;
137
+ id: string;
138
+ itemCount?: number | null | undefined;
139
+ itemId?: string | null | undefined;
140
+ offlineVerification?: boolean | null | undefined;
141
+ offerId?: number | null | undefined;
142
+ buyerId?: number | null | undefined;
143
+ sellerId?: number | null | undefined;
144
+ isCompleted?: boolean | null | undefined;
145
+ shippingOrderId?: number | null | undefined;
146
+ availableActions?: string[] | null | undefined;
147
+ currentUserSide?: string | null | undefined;
148
+ isBundle?: boolean | null | undefined;
149
+ isReserved?: boolean | null | undefined;
150
+ isPackageSizeSelected?: boolean | null | undefined;
151
+ isBusinessSeller?: boolean | null | undefined;
152
+ itemIds?: string[] | null | undefined;
153
+ itemTitle?: string | null | undefined;
154
+ itemUrl?: string | null | undefined;
155
+ itemIsClosed?: boolean | null | undefined;
156
+ offerPriceAmount?: string | null | undefined;
157
+ offerPriceCurrency?: string | null | undefined;
158
+ serviceFeeAmount?: string | null | undefined;
159
+ serviceFeeCurrency?: string | null | undefined;
160
+ shipmentPriceAmount?: string | null | undefined;
161
+ shipmentPriceCurrency?: string | null | undefined;
162
+ totalWithoutShipmentAmount?: string | null | undefined;
163
+ totalWithoutShipmentCurrency?: string | null | undefined;
164
+ totalAmountWithoutTax?: string | null | undefined;
165
+ sellerItemCount?: number | null | undefined;
166
+ sellerCity?: string | null | undefined;
167
+ shipmentId?: string | null | undefined;
168
+ shipmentStatus?: number | null | undefined;
169
+ packageSizeCode?: string | null | undefined;
170
+ }, {
171
+ status: number;
172
+ id: string;
173
+ itemCount?: number | null | undefined;
174
+ itemId?: string | null | undefined;
175
+ offlineVerification?: boolean | null | undefined;
176
+ offerId?: number | null | undefined;
177
+ buyerId?: number | null | undefined;
178
+ sellerId?: number | null | undefined;
179
+ isCompleted?: boolean | null | undefined;
180
+ shippingOrderId?: number | null | undefined;
181
+ availableActions?: string[] | null | undefined;
182
+ currentUserSide?: string | null | undefined;
183
+ isBundle?: boolean | null | undefined;
184
+ isReserved?: boolean | null | undefined;
185
+ isPackageSizeSelected?: boolean | null | undefined;
186
+ isBusinessSeller?: boolean | null | undefined;
187
+ itemIds?: string[] | null | undefined;
188
+ itemTitle?: string | null | undefined;
189
+ itemUrl?: string | null | undefined;
190
+ itemIsClosed?: boolean | null | undefined;
191
+ offerPriceAmount?: string | null | undefined;
192
+ offerPriceCurrency?: string | null | undefined;
193
+ serviceFeeAmount?: string | null | undefined;
194
+ serviceFeeCurrency?: string | null | undefined;
195
+ shipmentPriceAmount?: string | null | undefined;
196
+ shipmentPriceCurrency?: string | null | undefined;
197
+ totalWithoutShipmentAmount?: string | null | undefined;
198
+ totalWithoutShipmentCurrency?: string | null | undefined;
199
+ totalAmountWithoutTax?: string | null | undefined;
200
+ sellerItemCount?: number | null | undefined;
201
+ sellerCity?: string | null | undefined;
202
+ shipmentId?: string | null | undefined;
203
+ shipmentStatus?: number | null | undefined;
204
+ packageSizeCode?: string | null | undefined;
205
+ }>, "many">>>;
206
+ posts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
207
+ platformId: z.ZodString;
208
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ sold: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
210
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
211
+ post: z.ZodObject<{
212
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
214
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
215
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
217
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
218
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
219
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
220
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
223
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
225
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
226
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ title?: string | null | undefined;
229
+ description?: string | null | undefined;
230
+ price?: number | null | undefined;
231
+ brand?: string | null | undefined;
232
+ catalogId?: number | null | undefined;
233
+ colorIds?: number[] | null | undefined;
234
+ measurementLength?: number | null | undefined;
235
+ measurementWidth?: number | null | undefined;
236
+ packageSizeId?: number | null | undefined;
237
+ photoUrls?: string[] | null | undefined;
238
+ sizeId?: number | null | undefined;
239
+ statusId?: number | null | undefined;
240
+ isDraft?: boolean | null | undefined;
241
+ material?: number[] | null | undefined;
242
+ manufacturerLabelling?: string | null | undefined;
243
+ }, {
244
+ title?: string | null | undefined;
245
+ description?: string | null | undefined;
246
+ price?: number | null | undefined;
247
+ brand?: string | null | undefined;
248
+ catalogId?: number | null | undefined;
249
+ colorIds?: number[] | null | undefined;
250
+ measurementLength?: number | null | undefined;
251
+ measurementWidth?: number | null | undefined;
252
+ packageSizeId?: number | null | undefined;
253
+ photoUrls?: string[] | null | undefined;
254
+ sizeId?: number | null | undefined;
255
+ statusId?: number | null | undefined;
256
+ isDraft?: boolean | null | undefined;
257
+ material?: number[] | null | undefined;
258
+ manufacturerLabelling?: string | null | undefined;
259
+ }>;
260
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ platformId: string;
263
+ post: {
264
+ title?: string | null | undefined;
265
+ description?: string | null | undefined;
266
+ price?: number | null | undefined;
267
+ brand?: string | null | undefined;
268
+ catalogId?: number | null | undefined;
269
+ colorIds?: number[] | null | undefined;
270
+ measurementLength?: number | null | undefined;
271
+ measurementWidth?: number | null | undefined;
272
+ packageSizeId?: number | null | undefined;
273
+ photoUrls?: string[] | null | undefined;
274
+ sizeId?: number | null | undefined;
275
+ statusId?: number | null | undefined;
276
+ isDraft?: boolean | null | undefined;
277
+ material?: number[] | null | undefined;
278
+ manufacturerLabelling?: string | null | undefined;
279
+ };
280
+ createdAt?: Date | null | undefined;
281
+ data?: string | null | undefined;
282
+ platformUrl?: string | null | undefined;
283
+ sold?: boolean | null | undefined;
284
+ }, {
285
+ platformId: string;
286
+ post: {
287
+ title?: string | null | undefined;
288
+ description?: string | null | undefined;
289
+ price?: number | null | undefined;
290
+ brand?: string | null | undefined;
291
+ catalogId?: number | null | undefined;
292
+ colorIds?: number[] | null | undefined;
293
+ measurementLength?: number | null | undefined;
294
+ measurementWidth?: number | null | undefined;
295
+ packageSizeId?: number | null | undefined;
296
+ photoUrls?: string[] | null | undefined;
297
+ sizeId?: number | null | undefined;
298
+ statusId?: number | null | undefined;
299
+ isDraft?: boolean | null | undefined;
300
+ material?: number[] | null | undefined;
301
+ manufacturerLabelling?: string | null | undefined;
302
+ };
303
+ createdAt?: Date | null | undefined;
304
+ data?: string | null | undefined;
305
+ platformUrl?: string | null | undefined;
306
+ sold?: boolean | null | undefined;
307
+ }>, "many">>>;
308
+ orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
309
+ id: z.ZodString;
310
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ price: z.ZodNumber;
313
+ currencyCode: z.ZodString;
314
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "UNKNOWN"]>;
315
+ date: z.ZodDate;
316
+ }, "strip", z.ZodTypeAny, {
317
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
318
+ id: string;
319
+ date: Date;
320
+ price: number;
321
+ currencyCode: string;
322
+ transactionId?: string | null | undefined;
323
+ conversationId?: string | null | undefined;
324
+ }, {
325
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
326
+ id: string;
327
+ date: Date;
328
+ price: number;
329
+ currencyCode: string;
330
+ transactionId?: string | null | undefined;
331
+ conversationId?: string | null | undefined;
332
+ }>, "many">>>;
333
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
334
+ orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
335
+ labelUrl: z.ZodString;
336
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ shipmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ labelUrl: string;
340
+ transactionId?: string | null | undefined;
341
+ shipmentId?: string | null | undefined;
342
+ orderId?: string | null | undefined;
343
+ }, {
344
+ labelUrl: string;
345
+ transactionId?: string | null | undefined;
346
+ shipmentId?: string | null | undefined;
347
+ orderId?: string | null | undefined;
348
+ }>, "many">>>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id: string;
351
+ messages: {
352
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
353
+ id: string;
354
+ createdAt: Date;
355
+ userId?: string | null | undefined;
356
+ body?: string | null | undefined;
357
+ photos?: string[] | null | undefined;
358
+ isHidden?: boolean | null | undefined;
359
+ offer?: {
360
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
361
+ id: string;
362
+ price: number;
363
+ originalPrice: number;
364
+ transactionId?: string | null | undefined;
365
+ } | null | undefined;
366
+ }[];
367
+ readByCurrentUser?: boolean | null | undefined;
368
+ readByOppositeUser?: boolean | null | undefined;
369
+ allowReply?: boolean | null | undefined;
370
+ users?: {
371
+ id: string;
372
+ login: string;
373
+ lastLoggedInAt?: Date | null | undefined;
374
+ isSystem?: boolean | null | undefined;
375
+ reviewCount?: number | null | undefined;
376
+ reviewValue?: number | null | undefined;
377
+ isOnHoliday?: boolean | null | undefined;
378
+ isModerator?: boolean | null | undefined;
379
+ photo?: string | null | undefined;
380
+ location?: string | null | undefined;
381
+ }[] | null | undefined;
382
+ transactions?: {
383
+ status: number;
384
+ id: string;
385
+ itemCount?: number | null | undefined;
386
+ itemId?: string | null | undefined;
387
+ offlineVerification?: boolean | null | undefined;
388
+ offerId?: number | null | undefined;
389
+ buyerId?: number | null | undefined;
390
+ sellerId?: number | null | undefined;
391
+ isCompleted?: boolean | null | undefined;
392
+ shippingOrderId?: number | null | undefined;
393
+ availableActions?: string[] | null | undefined;
394
+ currentUserSide?: string | null | undefined;
395
+ isBundle?: boolean | null | undefined;
396
+ isReserved?: boolean | null | undefined;
397
+ isPackageSizeSelected?: boolean | null | undefined;
398
+ isBusinessSeller?: boolean | null | undefined;
399
+ itemIds?: string[] | null | undefined;
400
+ itemTitle?: string | null | undefined;
401
+ itemUrl?: string | null | undefined;
402
+ itemIsClosed?: boolean | null | undefined;
403
+ offerPriceAmount?: string | null | undefined;
404
+ offerPriceCurrency?: string | null | undefined;
405
+ serviceFeeAmount?: string | null | undefined;
406
+ serviceFeeCurrency?: string | null | undefined;
407
+ shipmentPriceAmount?: string | null | undefined;
408
+ shipmentPriceCurrency?: string | null | undefined;
409
+ totalWithoutShipmentAmount?: string | null | undefined;
410
+ totalWithoutShipmentCurrency?: string | null | undefined;
411
+ totalAmountWithoutTax?: string | null | undefined;
412
+ sellerItemCount?: number | null | undefined;
413
+ sellerCity?: string | null | undefined;
414
+ shipmentId?: string | null | undefined;
415
+ shipmentStatus?: number | null | undefined;
416
+ packageSizeCode?: string | null | undefined;
417
+ }[] | null | undefined;
418
+ posts?: {
419
+ platformId: string;
420
+ post: {
421
+ title?: string | null | undefined;
422
+ description?: string | null | undefined;
423
+ price?: number | null | undefined;
424
+ brand?: string | null | undefined;
425
+ catalogId?: number | null | undefined;
426
+ colorIds?: number[] | null | undefined;
427
+ measurementLength?: number | null | undefined;
428
+ measurementWidth?: number | null | undefined;
429
+ packageSizeId?: number | null | undefined;
430
+ photoUrls?: string[] | null | undefined;
431
+ sizeId?: number | null | undefined;
432
+ statusId?: number | null | undefined;
433
+ isDraft?: boolean | null | undefined;
434
+ material?: number[] | null | undefined;
435
+ manufacturerLabelling?: string | null | undefined;
436
+ };
437
+ createdAt?: Date | null | undefined;
438
+ data?: string | null | undefined;
439
+ platformUrl?: string | null | undefined;
440
+ sold?: boolean | null | undefined;
441
+ }[] | null | undefined;
442
+ orders?: {
443
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
444
+ id: string;
445
+ date: Date;
446
+ price: number;
447
+ currencyCode: string;
448
+ transactionId?: string | null | undefined;
449
+ conversationId?: string | null | undefined;
450
+ }[] | null | undefined;
451
+ labels?: {
452
+ labelUrl: string;
453
+ transactionId?: string | null | undefined;
454
+ shipmentId?: string | null | undefined;
455
+ orderId?: string | null | undefined;
456
+ }[] | null | undefined;
457
+ }, {
458
+ id: string;
459
+ messages: {
460
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
461
+ id: string;
462
+ createdAt: Date;
463
+ userId?: string | null | undefined;
464
+ body?: string | null | undefined;
465
+ photos?: string[] | null | undefined;
466
+ isHidden?: boolean | null | undefined;
467
+ offer?: {
468
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
469
+ id: string;
470
+ price: number;
471
+ originalPrice: number;
472
+ transactionId?: string | null | undefined;
473
+ } | null | undefined;
474
+ }[];
475
+ readByCurrentUser?: boolean | null | undefined;
476
+ readByOppositeUser?: boolean | null | undefined;
477
+ allowReply?: boolean | null | undefined;
478
+ users?: {
479
+ id: string;
480
+ login: string;
481
+ lastLoggedInAt?: Date | null | undefined;
482
+ isSystem?: boolean | null | undefined;
483
+ reviewCount?: number | null | undefined;
484
+ reviewValue?: number | null | undefined;
485
+ isOnHoliday?: boolean | null | undefined;
486
+ isModerator?: boolean | null | undefined;
487
+ photo?: string | null | undefined;
488
+ location?: string | null | undefined;
489
+ }[] | null | undefined;
490
+ transactions?: {
491
+ status: number;
492
+ id: string;
493
+ itemCount?: number | null | undefined;
494
+ itemId?: string | null | undefined;
495
+ offlineVerification?: boolean | null | undefined;
496
+ offerId?: number | null | undefined;
497
+ buyerId?: number | null | undefined;
498
+ sellerId?: number | null | undefined;
499
+ isCompleted?: boolean | null | undefined;
500
+ shippingOrderId?: number | null | undefined;
501
+ availableActions?: string[] | null | undefined;
502
+ currentUserSide?: string | null | undefined;
503
+ isBundle?: boolean | null | undefined;
504
+ isReserved?: boolean | null | undefined;
505
+ isPackageSizeSelected?: boolean | null | undefined;
506
+ isBusinessSeller?: boolean | null | undefined;
507
+ itemIds?: string[] | null | undefined;
508
+ itemTitle?: string | null | undefined;
509
+ itemUrl?: string | null | undefined;
510
+ itemIsClosed?: boolean | null | undefined;
511
+ offerPriceAmount?: string | null | undefined;
512
+ offerPriceCurrency?: string | null | undefined;
513
+ serviceFeeAmount?: string | null | undefined;
514
+ serviceFeeCurrency?: string | null | undefined;
515
+ shipmentPriceAmount?: string | null | undefined;
516
+ shipmentPriceCurrency?: string | null | undefined;
517
+ totalWithoutShipmentAmount?: string | null | undefined;
518
+ totalWithoutShipmentCurrency?: string | null | undefined;
519
+ totalAmountWithoutTax?: string | null | undefined;
520
+ sellerItemCount?: number | null | undefined;
521
+ sellerCity?: string | null | undefined;
522
+ shipmentId?: string | null | undefined;
523
+ shipmentStatus?: number | null | undefined;
524
+ packageSizeCode?: string | null | undefined;
525
+ }[] | null | undefined;
526
+ posts?: {
527
+ platformId: string;
528
+ post: {
529
+ title?: string | null | undefined;
530
+ description?: string | null | undefined;
531
+ price?: number | null | undefined;
532
+ brand?: string | null | undefined;
533
+ catalogId?: number | null | undefined;
534
+ colorIds?: number[] | null | undefined;
535
+ measurementLength?: number | null | undefined;
536
+ measurementWidth?: number | null | undefined;
537
+ packageSizeId?: number | null | undefined;
538
+ photoUrls?: string[] | null | undefined;
539
+ sizeId?: number | null | undefined;
540
+ statusId?: number | null | undefined;
541
+ isDraft?: boolean | null | undefined;
542
+ material?: number[] | null | undefined;
543
+ manufacturerLabelling?: string | null | undefined;
544
+ };
545
+ createdAt?: Date | null | undefined;
546
+ data?: string | null | undefined;
547
+ platformUrl?: string | null | undefined;
548
+ sold?: boolean | null | undefined;
549
+ }[] | null | undefined;
550
+ orders?: {
551
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
552
+ id: string;
553
+ date: Date;
554
+ price: number;
555
+ currencyCode: string;
556
+ transactionId?: string | null | undefined;
557
+ conversationId?: string | null | undefined;
558
+ }[] | null | undefined;
559
+ labels?: {
560
+ labelUrl: string;
561
+ transactionId?: string | null | undefined;
562
+ shipmentId?: string | null | undefined;
563
+ orderId?: string | null | undefined;
564
+ }[] | null | undefined;
565
+ }>;
566
+ account: z.ZodObject<{
567
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
568
+ accountId: z.ZodString;
569
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
570
+ name: z.ZodString;
571
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
574
+ userId: string | number;
575
+ name: string;
576
+ platform: "VINTED" | "SHOPIFY";
577
+ accountId: string;
578
+ }, {
579
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
580
+ userId: string | number;
581
+ name: string;
582
+ platform: "VINTED" | "SHOPIFY";
583
+ accountId: string;
584
+ }>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ account: {
587
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
588
+ userId: string | number;
589
+ name: string;
590
+ platform: "VINTED" | "SHOPIFY";
591
+ accountId: string;
592
+ };
593
+ conversation: {
594
+ id: string;
595
+ messages: {
596
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
597
+ id: string;
598
+ createdAt: Date;
599
+ userId?: string | null | undefined;
600
+ body?: string | null | undefined;
601
+ photos?: string[] | null | undefined;
602
+ isHidden?: boolean | null | undefined;
603
+ offer?: {
604
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
605
+ id: string;
606
+ price: number;
607
+ originalPrice: number;
608
+ transactionId?: string | null | undefined;
609
+ } | null | undefined;
610
+ }[];
611
+ readByCurrentUser?: boolean | null | undefined;
612
+ readByOppositeUser?: boolean | null | undefined;
613
+ allowReply?: boolean | null | undefined;
614
+ users?: {
615
+ id: string;
616
+ login: string;
617
+ lastLoggedInAt?: Date | null | undefined;
618
+ isSystem?: boolean | null | undefined;
619
+ reviewCount?: number | null | undefined;
620
+ reviewValue?: number | null | undefined;
621
+ isOnHoliday?: boolean | null | undefined;
622
+ isModerator?: boolean | null | undefined;
623
+ photo?: string | null | undefined;
624
+ location?: string | null | undefined;
625
+ }[] | null | undefined;
626
+ transactions?: {
627
+ status: number;
628
+ id: string;
629
+ itemCount?: number | null | undefined;
630
+ itemId?: string | null | undefined;
631
+ offlineVerification?: boolean | null | undefined;
632
+ offerId?: number | null | undefined;
633
+ buyerId?: number | null | undefined;
634
+ sellerId?: number | null | undefined;
635
+ isCompleted?: boolean | null | undefined;
636
+ shippingOrderId?: number | null | undefined;
637
+ availableActions?: string[] | null | undefined;
638
+ currentUserSide?: string | null | undefined;
639
+ isBundle?: boolean | null | undefined;
640
+ isReserved?: boolean | null | undefined;
641
+ isPackageSizeSelected?: boolean | null | undefined;
642
+ isBusinessSeller?: boolean | null | undefined;
643
+ itemIds?: string[] | null | undefined;
644
+ itemTitle?: string | null | undefined;
645
+ itemUrl?: string | null | undefined;
646
+ itemIsClosed?: boolean | null | undefined;
647
+ offerPriceAmount?: string | null | undefined;
648
+ offerPriceCurrency?: string | null | undefined;
649
+ serviceFeeAmount?: string | null | undefined;
650
+ serviceFeeCurrency?: string | null | undefined;
651
+ shipmentPriceAmount?: string | null | undefined;
652
+ shipmentPriceCurrency?: string | null | undefined;
653
+ totalWithoutShipmentAmount?: string | null | undefined;
654
+ totalWithoutShipmentCurrency?: string | null | undefined;
655
+ totalAmountWithoutTax?: string | null | undefined;
656
+ sellerItemCount?: number | null | undefined;
657
+ sellerCity?: string | null | undefined;
658
+ shipmentId?: string | null | undefined;
659
+ shipmentStatus?: number | null | undefined;
660
+ packageSizeCode?: string | null | undefined;
661
+ }[] | null | undefined;
662
+ posts?: {
663
+ platformId: string;
664
+ post: {
665
+ title?: string | null | undefined;
666
+ description?: string | null | undefined;
667
+ price?: number | null | undefined;
668
+ brand?: string | null | undefined;
669
+ catalogId?: number | null | undefined;
670
+ colorIds?: number[] | null | undefined;
671
+ measurementLength?: number | null | undefined;
672
+ measurementWidth?: number | null | undefined;
673
+ packageSizeId?: number | null | undefined;
674
+ photoUrls?: string[] | null | undefined;
675
+ sizeId?: number | null | undefined;
676
+ statusId?: number | null | undefined;
677
+ isDraft?: boolean | null | undefined;
678
+ material?: number[] | null | undefined;
679
+ manufacturerLabelling?: string | null | undefined;
680
+ };
681
+ createdAt?: Date | null | undefined;
682
+ data?: string | null | undefined;
683
+ platformUrl?: string | null | undefined;
684
+ sold?: boolean | null | undefined;
685
+ }[] | null | undefined;
686
+ orders?: {
687
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
688
+ id: string;
689
+ date: Date;
690
+ price: number;
691
+ currencyCode: string;
692
+ transactionId?: string | null | undefined;
693
+ conversationId?: string | null | undefined;
694
+ }[] | null | undefined;
695
+ labels?: {
696
+ labelUrl: string;
697
+ transactionId?: string | null | undefined;
698
+ shipmentId?: string | null | undefined;
699
+ orderId?: string | null | undefined;
700
+ }[] | null | undefined;
701
+ };
702
+ }, {
703
+ account: {
704
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
705
+ userId: string | number;
706
+ name: string;
707
+ platform: "VINTED" | "SHOPIFY";
708
+ accountId: string;
709
+ };
710
+ conversation: {
711
+ id: string;
712
+ messages: {
713
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
714
+ id: string;
715
+ createdAt: Date;
716
+ userId?: string | null | undefined;
717
+ body?: string | null | undefined;
718
+ photos?: string[] | null | undefined;
719
+ isHidden?: boolean | null | undefined;
720
+ offer?: {
721
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
722
+ id: string;
723
+ price: number;
724
+ originalPrice: number;
725
+ transactionId?: string | null | undefined;
726
+ } | null | undefined;
727
+ }[];
728
+ readByCurrentUser?: boolean | null | undefined;
729
+ readByOppositeUser?: boolean | null | undefined;
730
+ allowReply?: boolean | null | undefined;
731
+ users?: {
732
+ id: string;
733
+ login: string;
734
+ lastLoggedInAt?: Date | null | undefined;
735
+ isSystem?: boolean | null | undefined;
736
+ reviewCount?: number | null | undefined;
737
+ reviewValue?: number | null | undefined;
738
+ isOnHoliday?: boolean | null | undefined;
739
+ isModerator?: boolean | null | undefined;
740
+ photo?: string | null | undefined;
741
+ location?: string | null | undefined;
742
+ }[] | null | undefined;
743
+ transactions?: {
744
+ status: number;
745
+ id: string;
746
+ itemCount?: number | null | undefined;
747
+ itemId?: string | null | undefined;
748
+ offlineVerification?: boolean | null | undefined;
749
+ offerId?: number | null | undefined;
750
+ buyerId?: number | null | undefined;
751
+ sellerId?: number | null | undefined;
752
+ isCompleted?: boolean | null | undefined;
753
+ shippingOrderId?: number | null | undefined;
754
+ availableActions?: string[] | null | undefined;
755
+ currentUserSide?: string | null | undefined;
756
+ isBundle?: boolean | null | undefined;
757
+ isReserved?: boolean | null | undefined;
758
+ isPackageSizeSelected?: boolean | null | undefined;
759
+ isBusinessSeller?: boolean | null | undefined;
760
+ itemIds?: string[] | null | undefined;
761
+ itemTitle?: string | null | undefined;
762
+ itemUrl?: string | null | undefined;
763
+ itemIsClosed?: boolean | null | undefined;
764
+ offerPriceAmount?: string | null | undefined;
765
+ offerPriceCurrency?: string | null | undefined;
766
+ serviceFeeAmount?: string | null | undefined;
767
+ serviceFeeCurrency?: string | null | undefined;
768
+ shipmentPriceAmount?: string | null | undefined;
769
+ shipmentPriceCurrency?: string | null | undefined;
770
+ totalWithoutShipmentAmount?: string | null | undefined;
771
+ totalWithoutShipmentCurrency?: string | null | undefined;
772
+ totalAmountWithoutTax?: string | null | undefined;
773
+ sellerItemCount?: number | null | undefined;
774
+ sellerCity?: string | null | undefined;
775
+ shipmentId?: string | null | undefined;
776
+ shipmentStatus?: number | null | undefined;
777
+ packageSizeCode?: string | null | undefined;
778
+ }[] | null | undefined;
779
+ posts?: {
780
+ platformId: string;
781
+ post: {
782
+ title?: string | null | undefined;
783
+ description?: string | null | undefined;
784
+ price?: number | null | undefined;
785
+ brand?: string | null | undefined;
786
+ catalogId?: number | null | undefined;
787
+ colorIds?: number[] | null | undefined;
788
+ measurementLength?: number | null | undefined;
789
+ measurementWidth?: number | null | undefined;
790
+ packageSizeId?: number | null | undefined;
791
+ photoUrls?: string[] | null | undefined;
792
+ sizeId?: number | null | undefined;
793
+ statusId?: number | null | undefined;
794
+ isDraft?: boolean | null | undefined;
795
+ material?: number[] | null | undefined;
796
+ manufacturerLabelling?: string | null | undefined;
797
+ };
798
+ createdAt?: Date | null | undefined;
799
+ data?: string | null | undefined;
800
+ platformUrl?: string | null | undefined;
801
+ sold?: boolean | null | undefined;
802
+ }[] | null | undefined;
803
+ orders?: {
804
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
805
+ id: string;
806
+ date: Date;
807
+ price: number;
808
+ currencyCode: string;
809
+ transactionId?: string | null | undefined;
810
+ conversationId?: string | null | undefined;
811
+ }[] | null | undefined;
812
+ labels?: {
813
+ labelUrl: string;
814
+ transactionId?: string | null | undefined;
815
+ shipmentId?: string | null | undefined;
816
+ orderId?: string | null | undefined;
817
+ }[] | null | undefined;
818
+ };
819
+ }>;
820
+ export type ConversationOnPlatformUpdateRequest = z.infer<typeof ConversationOnPlatformUpdateRequestSchema>;