controlresell 2.4.9 → 2.4.19

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