controlresell 2.2.6 → 2.2.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 (92) hide show
  1. package/package.json +2 -2
  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 +205 -7
  6. package/src/com/controlresell/models/items/Item.d.ts +163 -5
  7. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +205 -7
  8. package/src/com/controlresell/models/items/UpdatedItem.d.ts +205 -7
  9. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +121 -3
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.js +2 -1
  11. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.ts +2 -1
  12. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +121 -3
  13. package/src/com/controlresell/models/items/history/ItemHistory.js +2 -1
  14. package/src/com/controlresell/models/items/history/ItemHistory.ts +2 -1
  15. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +81 -0
  16. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +24 -0
  17. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +24 -0
  18. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.d.ts +15 -0
  19. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.js +9 -0
  20. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.ts +8 -0
  21. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.d.ts +15 -0
  22. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.js +9 -0
  23. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.ts +8 -0
  24. package/src/com/controlresell/models/items/platforms/PriceDropRequest.d.ts +42 -0
  25. package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
  26. package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
  27. package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
  28. package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
  29. package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
  30. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.d.ts +15 -0
  31. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.js +9 -0
  32. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.ts +8 -0
  33. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +559 -0
  34. package/src/com/controlresell/models/platforms/favorites/Favorite.js +15 -0
  35. package/src/com/controlresell/models/platforms/favorites/Favorite.ts +14 -0
  36. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +52 -0
  37. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.js +10 -0
  38. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.ts +9 -0
  39. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.d.ts +12 -0
  40. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.js +8 -0
  41. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.ts +7 -0
  42. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +205 -7
  43. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +205 -7
  44. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
  45. package/src/com/controlresell/models/preferences/Preference.d.ts +29 -299
  46. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +205 -7
  47. package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
  48. package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
  49. package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
  50. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +83 -893
  51. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +22 -260
  52. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +22 -260
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +22 -260
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +6 -116
  55. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
  56. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
  57. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +0 -79
  58. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
  59. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
  60. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +1 -1
  61. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +1 -1
  62. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +1 -1
  63. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +10 -152
  64. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
  65. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
  66. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
  67. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +213 -0
  68. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +13 -0
  69. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +12 -0
  70. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.d.ts +3 -0
  71. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.js +7 -0
  72. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.ts +6 -0
  73. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +3 -3
  74. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +1 -1
  75. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +1 -1
  76. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +1 -1
  77. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +18 -224
  78. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +18 -224
  79. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +14 -188
  80. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +18 -224
  81. package/src/index.d.ts +12 -3
  82. package/src/index.js +27 -9
  83. package/src/index.ts +12 -3
  84. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +0 -36
  85. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +0 -17
  86. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +0 -16
  87. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +0 -42
  88. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +0 -20
  89. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +0 -19
  90. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +0 -30
  91. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +0 -14
  92. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +0 -13
@@ -0,0 +1,559 @@
1
+ import { z } from "zod";
2
+ export declare const FavoriteSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ accountId: z.ZodString;
5
+ platformFavoriteId: z.ZodString;
6
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ updatedAt: z.ZodDate;
8
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
10
+ accountId: z.ZodString;
11
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
12
+ name: z.ZodString;
13
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
16
+ userId: string | number;
17
+ name: string;
18
+ platform: "VINTED" | "SHOPIFY";
19
+ accountId: string;
20
+ }, {
21
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
22
+ userId: string | number;
23
+ name: string;
24
+ platform: "VINTED" | "SHOPIFY";
25
+ accountId: string;
26
+ }>>>;
27
+ conversation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodString;
29
+ accountId: z.ZodString;
30
+ platformConversationId: z.ZodString;
31
+ updatedAt: z.ZodDate;
32
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
34
+ accountId: z.ZodString;
35
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
36
+ name: z.ZodString;
37
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
40
+ userId: string | number;
41
+ name: string;
42
+ platform: "VINTED" | "SHOPIFY";
43
+ accountId: string;
44
+ }, {
45
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
46
+ userId: string | number;
47
+ name: string;
48
+ platform: "VINTED" | "SHOPIFY";
49
+ accountId: string;
50
+ }>>>;
51
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ id: z.ZodString;
53
+ conversationId: z.ZodString;
54
+ conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
57
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ createdAt: z.ZodDate;
59
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
+ id: z.ZodString;
61
+ platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ messageId: z.ZodString;
63
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ price: z.ZodNumber;
65
+ originalPrice: z.ZodNumber;
66
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
69
+ id: string;
70
+ price: number;
71
+ originalPrice: number;
72
+ messageId: string;
73
+ transactionId?: string | null | undefined;
74
+ platformOfferId?: string | null | undefined;
75
+ }, {
76
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
77
+ id: string;
78
+ price: number;
79
+ originalPrice: number;
80
+ messageId: string;
81
+ transactionId?: string | null | undefined;
82
+ platformOfferId?: string | null | undefined;
83
+ }>>>;
84
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
85
+ messageId: z.ZodString;
86
+ lang: z.ZodString;
87
+ body: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ body: string;
90
+ messageId: string;
91
+ lang: string;
92
+ }, {
93
+ body: string;
94
+ messageId: string;
95
+ lang: string;
96
+ }>>>;
97
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
98
+ fileId: z.ZodString;
99
+ messageId: z.ZodString;
100
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
102
+ id: z.ZodString;
103
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
104
+ path: z.ZodString;
105
+ signedUrl: z.ZodString;
106
+ createdAt: z.ZodDate;
107
+ }, "strip", z.ZodTypeAny, {
108
+ path: string;
109
+ id: string;
110
+ userId: string | number;
111
+ signedUrl: string;
112
+ createdAt: Date;
113
+ }, {
114
+ path: string;
115
+ id: string;
116
+ userId: string | number;
117
+ signedUrl: string;
118
+ createdAt: Date;
119
+ }>>>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ fileId: string;
122
+ messageId: string;
123
+ file?: {
124
+ path: string;
125
+ id: string;
126
+ userId: string | number;
127
+ signedUrl: string;
128
+ createdAt: Date;
129
+ } | null | undefined;
130
+ index?: number | null | undefined;
131
+ }, {
132
+ fileId: string;
133
+ messageId: string;
134
+ file?: {
135
+ path: string;
136
+ id: string;
137
+ userId: string | number;
138
+ signedUrl: string;
139
+ createdAt: Date;
140
+ } | null | undefined;
141
+ index?: number | null | undefined;
142
+ }>, "many">>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
145
+ id: string;
146
+ createdAt: Date;
147
+ conversationId: string;
148
+ body?: string | null | undefined;
149
+ offer?: {
150
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
151
+ id: string;
152
+ price: number;
153
+ originalPrice: number;
154
+ messageId: string;
155
+ transactionId?: string | null | undefined;
156
+ platformOfferId?: string | null | undefined;
157
+ } | null | undefined;
158
+ files?: {
159
+ fileId: string;
160
+ messageId: string;
161
+ file?: {
162
+ path: string;
163
+ id: string;
164
+ userId: string | number;
165
+ signedUrl: string;
166
+ createdAt: Date;
167
+ } | null | undefined;
168
+ index?: number | null | undefined;
169
+ }[] | null | undefined;
170
+ conversationUserId?: string | null | undefined;
171
+ platformMessageId?: string | null | undefined;
172
+ translation?: {
173
+ body: string;
174
+ messageId: string;
175
+ lang: string;
176
+ } | null | undefined;
177
+ }, {
178
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
179
+ id: string;
180
+ createdAt: Date;
181
+ conversationId: string;
182
+ body?: string | null | undefined;
183
+ offer?: {
184
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
185
+ id: string;
186
+ price: number;
187
+ originalPrice: number;
188
+ messageId: string;
189
+ transactionId?: string | null | undefined;
190
+ platformOfferId?: string | null | undefined;
191
+ } | null | undefined;
192
+ files?: {
193
+ fileId: string;
194
+ messageId: string;
195
+ file?: {
196
+ path: string;
197
+ id: string;
198
+ userId: string | number;
199
+ signedUrl: string;
200
+ createdAt: Date;
201
+ } | null | undefined;
202
+ index?: number | null | undefined;
203
+ }[] | null | undefined;
204
+ conversationUserId?: string | null | undefined;
205
+ platformMessageId?: string | null | undefined;
206
+ translation?: {
207
+ body: string;
208
+ messageId: string;
209
+ lang: string;
210
+ } | null | undefined;
211
+ }>>>;
212
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
213
+ id: z.ZodString;
214
+ platformUserId: z.ZodString;
215
+ conversationId: z.ZodString;
216
+ login: z.ZodString;
217
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
219
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
220
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
222
+ id: z.ZodString;
223
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
224
+ path: z.ZodString;
225
+ signedUrl: z.ZodString;
226
+ createdAt: z.ZodDate;
227
+ }, "strip", z.ZodTypeAny, {
228
+ path: string;
229
+ id: string;
230
+ userId: string | number;
231
+ signedUrl: string;
232
+ createdAt: Date;
233
+ }, {
234
+ path: string;
235
+ id: string;
236
+ userId: string | number;
237
+ signedUrl: string;
238
+ createdAt: Date;
239
+ }>>>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ id: string;
242
+ login: string;
243
+ conversationId: string;
244
+ platformUserId: string;
245
+ reviewCount?: number | null | undefined;
246
+ reviewValue?: number | null | undefined;
247
+ location?: string | null | undefined;
248
+ photoFileId?: string | null | undefined;
249
+ photoFile?: {
250
+ path: string;
251
+ id: string;
252
+ userId: string | number;
253
+ signedUrl: string;
254
+ createdAt: Date;
255
+ } | null | undefined;
256
+ }, {
257
+ id: string;
258
+ login: string;
259
+ conversationId: string;
260
+ platformUserId: string;
261
+ reviewCount?: number | null | undefined;
262
+ reviewValue?: number | null | undefined;
263
+ location?: string | null | undefined;
264
+ photoFileId?: string | null | undefined;
265
+ photoFile?: {
266
+ path: string;
267
+ id: string;
268
+ userId: string | number;
269
+ signedUrl: string;
270
+ createdAt: Date;
271
+ } | null | undefined;
272
+ }>, "many">>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ id: string;
275
+ updatedAt: Date;
276
+ accountId: string;
277
+ platformConversationId: string;
278
+ account?: {
279
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
280
+ userId: string | number;
281
+ name: string;
282
+ platform: "VINTED" | "SHOPIFY";
283
+ accountId: string;
284
+ } | null | undefined;
285
+ users?: {
286
+ id: string;
287
+ login: string;
288
+ conversationId: string;
289
+ platformUserId: string;
290
+ reviewCount?: number | null | undefined;
291
+ reviewValue?: number | null | undefined;
292
+ location?: string | null | undefined;
293
+ photoFileId?: string | null | undefined;
294
+ photoFile?: {
295
+ path: string;
296
+ id: string;
297
+ userId: string | number;
298
+ signedUrl: string;
299
+ createdAt: Date;
300
+ } | null | undefined;
301
+ }[] | null | undefined;
302
+ lastMessage?: {
303
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
304
+ id: string;
305
+ createdAt: Date;
306
+ conversationId: string;
307
+ body?: string | null | undefined;
308
+ offer?: {
309
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
310
+ id: string;
311
+ price: number;
312
+ originalPrice: number;
313
+ messageId: string;
314
+ transactionId?: string | null | undefined;
315
+ platformOfferId?: string | null | undefined;
316
+ } | null | undefined;
317
+ files?: {
318
+ fileId: string;
319
+ messageId: string;
320
+ file?: {
321
+ path: string;
322
+ id: string;
323
+ userId: string | number;
324
+ signedUrl: string;
325
+ createdAt: Date;
326
+ } | null | undefined;
327
+ index?: number | null | undefined;
328
+ }[] | null | undefined;
329
+ conversationUserId?: string | null | undefined;
330
+ platformMessageId?: string | null | undefined;
331
+ translation?: {
332
+ body: string;
333
+ messageId: string;
334
+ lang: string;
335
+ } | null | undefined;
336
+ } | null | undefined;
337
+ }, {
338
+ id: string;
339
+ updatedAt: Date;
340
+ accountId: string;
341
+ platformConversationId: string;
342
+ account?: {
343
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
344
+ userId: string | number;
345
+ name: string;
346
+ platform: "VINTED" | "SHOPIFY";
347
+ accountId: string;
348
+ } | null | undefined;
349
+ users?: {
350
+ id: string;
351
+ login: string;
352
+ conversationId: string;
353
+ platformUserId: string;
354
+ reviewCount?: number | null | undefined;
355
+ reviewValue?: number | null | undefined;
356
+ location?: string | null | undefined;
357
+ photoFileId?: string | null | undefined;
358
+ photoFile?: {
359
+ path: string;
360
+ id: string;
361
+ userId: string | number;
362
+ signedUrl: string;
363
+ createdAt: Date;
364
+ } | null | undefined;
365
+ }[] | null | undefined;
366
+ lastMessage?: {
367
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
368
+ id: string;
369
+ createdAt: Date;
370
+ conversationId: string;
371
+ body?: string | null | undefined;
372
+ offer?: {
373
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
374
+ id: string;
375
+ price: number;
376
+ originalPrice: number;
377
+ messageId: string;
378
+ transactionId?: string | null | undefined;
379
+ platformOfferId?: string | null | undefined;
380
+ } | null | undefined;
381
+ files?: {
382
+ fileId: string;
383
+ messageId: string;
384
+ file?: {
385
+ path: string;
386
+ id: string;
387
+ userId: string | number;
388
+ signedUrl: string;
389
+ createdAt: Date;
390
+ } | null | undefined;
391
+ index?: number | null | undefined;
392
+ }[] | null | undefined;
393
+ conversationUserId?: string | null | undefined;
394
+ platformMessageId?: string | null | undefined;
395
+ translation?: {
396
+ body: string;
397
+ messageId: string;
398
+ lang: string;
399
+ } | null | undefined;
400
+ } | null | undefined;
401
+ }>>>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ id: string;
404
+ updatedAt: Date;
405
+ accountId: string;
406
+ platformFavoriteId: string;
407
+ account?: {
408
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
409
+ userId: string | number;
410
+ name: string;
411
+ platform: "VINTED" | "SHOPIFY";
412
+ accountId: string;
413
+ } | null | undefined;
414
+ conversationId?: string | null | undefined;
415
+ conversation?: {
416
+ id: string;
417
+ updatedAt: Date;
418
+ accountId: string;
419
+ platformConversationId: string;
420
+ account?: {
421
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
422
+ userId: string | number;
423
+ name: string;
424
+ platform: "VINTED" | "SHOPIFY";
425
+ accountId: string;
426
+ } | null | undefined;
427
+ users?: {
428
+ id: string;
429
+ login: string;
430
+ conversationId: string;
431
+ platformUserId: string;
432
+ reviewCount?: number | null | undefined;
433
+ reviewValue?: number | null | undefined;
434
+ location?: string | null | undefined;
435
+ photoFileId?: string | null | undefined;
436
+ photoFile?: {
437
+ path: string;
438
+ id: string;
439
+ userId: string | number;
440
+ signedUrl: string;
441
+ createdAt: Date;
442
+ } | null | undefined;
443
+ }[] | null | undefined;
444
+ lastMessage?: {
445
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
446
+ id: string;
447
+ createdAt: Date;
448
+ conversationId: string;
449
+ body?: string | null | undefined;
450
+ offer?: {
451
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
452
+ id: string;
453
+ price: number;
454
+ originalPrice: number;
455
+ messageId: string;
456
+ transactionId?: string | null | undefined;
457
+ platformOfferId?: string | null | undefined;
458
+ } | null | undefined;
459
+ files?: {
460
+ fileId: string;
461
+ messageId: string;
462
+ file?: {
463
+ path: string;
464
+ id: string;
465
+ userId: string | number;
466
+ signedUrl: string;
467
+ createdAt: Date;
468
+ } | null | undefined;
469
+ index?: number | null | undefined;
470
+ }[] | null | undefined;
471
+ conversationUserId?: string | null | undefined;
472
+ platformMessageId?: string | null | undefined;
473
+ translation?: {
474
+ body: string;
475
+ messageId: string;
476
+ lang: string;
477
+ } | null | undefined;
478
+ } | null | undefined;
479
+ } | null | undefined;
480
+ }, {
481
+ id: string;
482
+ updatedAt: Date;
483
+ accountId: string;
484
+ platformFavoriteId: string;
485
+ account?: {
486
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
487
+ userId: string | number;
488
+ name: string;
489
+ platform: "VINTED" | "SHOPIFY";
490
+ accountId: string;
491
+ } | null | undefined;
492
+ conversationId?: string | null | undefined;
493
+ conversation?: {
494
+ id: string;
495
+ updatedAt: Date;
496
+ accountId: string;
497
+ platformConversationId: string;
498
+ account?: {
499
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
500
+ userId: string | number;
501
+ name: string;
502
+ platform: "VINTED" | "SHOPIFY";
503
+ accountId: string;
504
+ } | null | undefined;
505
+ users?: {
506
+ id: string;
507
+ login: string;
508
+ conversationId: string;
509
+ platformUserId: string;
510
+ reviewCount?: number | null | undefined;
511
+ reviewValue?: number | null | undefined;
512
+ location?: string | null | undefined;
513
+ photoFileId?: string | null | undefined;
514
+ photoFile?: {
515
+ path: string;
516
+ id: string;
517
+ userId: string | number;
518
+ signedUrl: string;
519
+ createdAt: Date;
520
+ } | null | undefined;
521
+ }[] | null | undefined;
522
+ lastMessage?: {
523
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
524
+ id: string;
525
+ createdAt: Date;
526
+ conversationId: string;
527
+ body?: string | null | undefined;
528
+ offer?: {
529
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
530
+ id: string;
531
+ price: number;
532
+ originalPrice: number;
533
+ messageId: string;
534
+ transactionId?: string | null | undefined;
535
+ platformOfferId?: string | null | undefined;
536
+ } | null | undefined;
537
+ files?: {
538
+ fileId: string;
539
+ messageId: string;
540
+ file?: {
541
+ path: string;
542
+ id: string;
543
+ userId: string | number;
544
+ signedUrl: string;
545
+ createdAt: Date;
546
+ } | null | undefined;
547
+ index?: number | null | undefined;
548
+ }[] | null | undefined;
549
+ conversationUserId?: string | null | undefined;
550
+ platformMessageId?: string | null | undefined;
551
+ translation?: {
552
+ body: string;
553
+ messageId: string;
554
+ lang: string;
555
+ } | null | undefined;
556
+ } | null | undefined;
557
+ } | null | undefined;
558
+ }>;
559
+ export type Favorite = z.infer<typeof FavoriteSchema>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FavoriteSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
6
+ const Conversation_1 = require("../conversations/Conversation");
7
+ exports.FavoriteSchema = zod_1.z.object({
8
+ id: zod_1.z.string().uuid(),
9
+ accountId: zod_1.z.string().uuid(),
10
+ platformFavoriteId: zod_1.z.string(),
11
+ conversationId: zod_1.z.string().uuid().nullish(),
12
+ updatedAt: zod_1.z.coerce.date(),
13
+ account: UserOnPlatform_1.UserOnPlatformSchema.nullish(),
14
+ conversation: Conversation_1.ConversationSchema.nullish()
15
+ });
@@ -0,0 +1,14 @@
1
+ import {z} from "zod"
2
+ import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
3
+ import {ConversationSchema} from "../conversations/Conversation"
4
+
5
+ export const FavoriteSchema = z.object({
6
+ id: z.string().uuid(),
7
+ accountId: z.string().uuid(),
8
+ platformFavoriteId: z.string(),
9
+ conversationId: z.string().uuid().nullish(),
10
+ updatedAt: z.coerce.date(),
11
+ account: UserOnPlatformSchema.nullish(),
12
+ conversation: ConversationSchema.nullish()
13
+ })
14
+ export type Favorite = z.infer<typeof FavoriteSchema>
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ export declare const FavoriteOnPlatformUpdateRequestSchema: z.ZodObject<{
3
+ favorite: z.ZodObject<{
4
+ conversationId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ conversationId: string;
7
+ }, {
8
+ conversationId: string;
9
+ }>;
10
+ account: z.ZodObject<{
11
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
12
+ accountId: z.ZodString;
13
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
14
+ name: z.ZodString;
15
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
18
+ userId: string | number;
19
+ name: string;
20
+ platform: "VINTED" | "SHOPIFY";
21
+ accountId: string;
22
+ }, {
23
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
24
+ userId: string | number;
25
+ name: string;
26
+ platform: "VINTED" | "SHOPIFY";
27
+ accountId: string;
28
+ }>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ account: {
31
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
32
+ userId: string | number;
33
+ name: string;
34
+ platform: "VINTED" | "SHOPIFY";
35
+ accountId: string;
36
+ };
37
+ favorite: {
38
+ conversationId: string;
39
+ };
40
+ }, {
41
+ account: {
42
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
43
+ userId: string | number;
44
+ name: string;
45
+ platform: "VINTED" | "SHOPIFY";
46
+ accountId: string;
47
+ };
48
+ favorite: {
49
+ conversationId: string;
50
+ };
51
+ }>;
52
+ export type FavoriteOnPlatformUpdateRequest = z.infer<typeof FavoriteOnPlatformUpdateRequestSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FavoriteOnPlatformUpdateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
7
+ exports.FavoriteOnPlatformUpdateRequestSchema = zod_1.z.object({
8
+ favorite: controlresell_connector_1.JobConversationFavoriteSchema,
9
+ account: UserOnPlatform_1.UserOnPlatformSchema
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+ import {JobConversationFavoriteSchema} from "controlresell-connector"
3
+ import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
4
+
5
+ export const FavoriteOnPlatformUpdateRequestSchema = z.object({
6
+ favorite: JobConversationFavoriteSchema,
7
+ account: UserOnPlatformSchema
8
+ })
9
+ export type FavoriteOnPlatformUpdateRequest = z.infer<typeof FavoriteOnPlatformUpdateRequestSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateFavoritePayloadSchema: z.ZodObject<{
3
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ updatedAt: z.ZodDate;
5
+ }, "strip", z.ZodTypeAny, {
6
+ updatedAt: Date;
7
+ conversationId?: string | null | undefined;
8
+ }, {
9
+ updatedAt: Date;
10
+ conversationId?: string | null | undefined;
11
+ }>;
12
+ export type UpdateFavoritePayload = z.infer<typeof UpdateFavoritePayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateFavoritePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdateFavoritePayloadSchema = zod_1.z.object({
6
+ conversationId: zod_1.z.string().uuid().nullish(),
7
+ updatedAt: zod_1.z.coerce.date()
8
+ });