controlresell 2.0.7 → 2.0.9

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 (31) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/ItemSoldPayload.d.ts +18 -0
  3. package/src/com/controlresell/models/items/ItemSoldPayload.js +10 -0
  4. package/src/com/controlresell/models/items/ItemSoldPayload.ts +9 -0
  5. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +218 -0
  6. package/src/com/controlresell/models/platforms/conversations/Conversation.js +7 -1
  7. package/src/com/controlresell/models/platforms/conversations/Conversation.ts +7 -1
  8. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +344 -0
  9. package/src/com/controlresell/models/platforms/conversations/UserConversations.js +12 -0
  10. package/src/com/controlresell/models/platforms/conversations/UserConversations.ts +11 -0
  11. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +60 -0
  12. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +16 -0
  13. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +15 -0
  14. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +21 -0
  15. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +12 -0
  16. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +11 -0
  17. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +105 -0
  18. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.js +11 -0
  19. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.ts +10 -0
  20. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +63 -0
  21. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.js +16 -0
  22. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.ts +15 -0
  23. package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.d.ts +24 -0
  24. package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.js +12 -0
  25. package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.ts +11 -0
  26. package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.d.ts +21 -0
  27. package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.js +11 -0
  28. package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.ts +10 -0
  29. package/src/index.d.ts +8 -0
  30. package/src/index.js +8 -0
  31. package/src/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,7 +17,7 @@
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-connector": "^0.0.27",
20
+ "controlresell-connector": "^0.0.29",
21
21
  "zod": "^3.24.2",
22
22
  "zodable-idschema": "^1.0.0"
23
23
  }
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const ItemSoldPayloadSchema: z.ZodObject<{
3
+ sold: z.ZodBoolean;
4
+ sellingPrice: z.ZodNumber;
5
+ sellingDate: z.ZodDate;
6
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ sold: boolean;
9
+ sellingPrice: number;
10
+ sellingDate: Date;
11
+ sellingPlaceId?: number | null | undefined;
12
+ }, {
13
+ sold: boolean;
14
+ sellingPrice: number;
15
+ sellingDate: Date;
16
+ sellingPlaceId?: number | null | undefined;
17
+ }>;
18
+ export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemSoldPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ItemSoldPayloadSchema = zod_1.z.object({
6
+ sold: zod_1.z.boolean(),
7
+ sellingPrice: zod_1.z.number(),
8
+ sellingDate: zod_1.z.coerce.date(),
9
+ sellingPlaceId: zod_1.z.number().nullish()
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+
3
+ export const ItemSoldPayloadSchema = z.object({
4
+ sold: z.boolean(),
5
+ sellingPrice: z.number(),
6
+ sellingDate: z.coerce.date(),
7
+ sellingPlaceId: z.number().nullish()
8
+ })
9
+ export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>
@@ -4,15 +4,233 @@ export declare const ConversationSchema: z.ZodObject<{
4
4
  accountId: z.ZodString;
5
5
  platformConversationId: z.ZodString;
6
6
  updatedAt: z.ZodDate;
7
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
9
+ accountId: z.ZodString;
10
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
11
+ name: z.ZodString;
12
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
15
+ platform: "VINTED" | "SHOPIFY";
16
+ accountId: string;
17
+ name: string;
18
+ userId: string | number;
19
+ }, {
20
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
21
+ platform: "VINTED" | "SHOPIFY";
22
+ accountId: string;
23
+ name: string;
24
+ userId: string | number;
25
+ }>>>;
26
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodString;
28
+ conversationId: z.ZodString;
29
+ conversationUserId: z.ZodString;
30
+ platformMessageId: z.ZodString;
31
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
32
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
36
+ path: z.ZodString;
37
+ signedUrl: z.ZodString;
38
+ createdAt: z.ZodDate;
39
+ }, "strip", z.ZodTypeAny, {
40
+ path: string;
41
+ id: string;
42
+ userId: string | number;
43
+ createdAt: Date;
44
+ signedUrl: string;
45
+ }, {
46
+ path: string;
47
+ id: string;
48
+ userId: string | number;
49
+ createdAt: Date;
50
+ signedUrl: string;
51
+ }>, "many">>>;
52
+ createdAt: z.ZodDate;
53
+ }, "strip", z.ZodTypeAny, {
54
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
55
+ id: string;
56
+ createdAt: Date;
57
+ conversationId: string;
58
+ conversationUserId: string;
59
+ platformMessageId: string;
60
+ body?: string | null | undefined;
61
+ files?: {
62
+ path: string;
63
+ id: string;
64
+ userId: string | number;
65
+ createdAt: Date;
66
+ signedUrl: string;
67
+ }[] | null | undefined;
68
+ }, {
69
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
70
+ id: string;
71
+ createdAt: Date;
72
+ conversationId: string;
73
+ conversationUserId: string;
74
+ platformMessageId: string;
75
+ body?: string | null | undefined;
76
+ files?: {
77
+ path: string;
78
+ id: string;
79
+ userId: string | number;
80
+ createdAt: Date;
81
+ signedUrl: string;
82
+ }[] | null | undefined;
83
+ }>>>;
84
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
85
+ id: z.ZodString;
86
+ platformUserId: z.ZodString;
87
+ conversationId: z.ZodString;
88
+ login: z.ZodString;
89
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
+ id: z.ZodString;
95
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
96
+ path: z.ZodString;
97
+ signedUrl: z.ZodString;
98
+ createdAt: z.ZodDate;
99
+ }, "strip", z.ZodTypeAny, {
100
+ path: string;
101
+ id: string;
102
+ userId: string | number;
103
+ createdAt: Date;
104
+ signedUrl: string;
105
+ }, {
106
+ path: string;
107
+ id: string;
108
+ userId: string | number;
109
+ createdAt: Date;
110
+ signedUrl: string;
111
+ }>>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ id: string;
114
+ login: string;
115
+ conversationId: string;
116
+ platformUserId: string;
117
+ reviewCount?: number | null | undefined;
118
+ reviewValue?: number | null | undefined;
119
+ location?: string | null | undefined;
120
+ photoFileId?: string | null | undefined;
121
+ photoFile?: {
122
+ path: string;
123
+ id: string;
124
+ userId: string | number;
125
+ createdAt: Date;
126
+ signedUrl: string;
127
+ } | null | undefined;
128
+ }, {
129
+ id: string;
130
+ login: string;
131
+ conversationId: string;
132
+ platformUserId: string;
133
+ reviewCount?: number | null | undefined;
134
+ reviewValue?: number | null | undefined;
135
+ location?: string | null | undefined;
136
+ photoFileId?: string | null | undefined;
137
+ photoFile?: {
138
+ path: string;
139
+ id: string;
140
+ userId: string | number;
141
+ createdAt: Date;
142
+ signedUrl: string;
143
+ } | null | undefined;
144
+ }>, "many">>>;
7
145
  }, "strip", z.ZodTypeAny, {
8
146
  id: string;
9
147
  accountId: string;
10
148
  updatedAt: Date;
11
149
  platformConversationId: string;
150
+ account?: {
151
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
152
+ platform: "VINTED" | "SHOPIFY";
153
+ accountId: string;
154
+ name: string;
155
+ userId: string | number;
156
+ } | null | undefined;
157
+ lastMessage?: {
158
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
159
+ id: string;
160
+ createdAt: Date;
161
+ conversationId: string;
162
+ conversationUserId: string;
163
+ platformMessageId: string;
164
+ body?: string | null | undefined;
165
+ files?: {
166
+ path: string;
167
+ id: string;
168
+ userId: string | number;
169
+ createdAt: Date;
170
+ signedUrl: string;
171
+ }[] | null | undefined;
172
+ } | null | undefined;
173
+ users?: {
174
+ id: string;
175
+ login: string;
176
+ conversationId: string;
177
+ platformUserId: string;
178
+ reviewCount?: number | null | undefined;
179
+ reviewValue?: number | null | undefined;
180
+ location?: string | null | undefined;
181
+ photoFileId?: string | null | undefined;
182
+ photoFile?: {
183
+ path: string;
184
+ id: string;
185
+ userId: string | number;
186
+ createdAt: Date;
187
+ signedUrl: string;
188
+ } | null | undefined;
189
+ }[] | null | undefined;
12
190
  }, {
13
191
  id: string;
14
192
  accountId: string;
15
193
  updatedAt: Date;
16
194
  platformConversationId: string;
195
+ account?: {
196
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
197
+ platform: "VINTED" | "SHOPIFY";
198
+ accountId: string;
199
+ name: string;
200
+ userId: string | number;
201
+ } | null | undefined;
202
+ lastMessage?: {
203
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
204
+ id: string;
205
+ createdAt: Date;
206
+ conversationId: string;
207
+ conversationUserId: string;
208
+ platformMessageId: string;
209
+ body?: string | null | undefined;
210
+ files?: {
211
+ path: string;
212
+ id: string;
213
+ userId: string | number;
214
+ createdAt: Date;
215
+ signedUrl: string;
216
+ }[] | null | undefined;
217
+ } | null | undefined;
218
+ users?: {
219
+ id: string;
220
+ login: string;
221
+ conversationId: string;
222
+ platformUserId: string;
223
+ reviewCount?: number | null | undefined;
224
+ reviewValue?: number | null | undefined;
225
+ location?: string | null | undefined;
226
+ photoFileId?: string | null | undefined;
227
+ photoFile?: {
228
+ path: string;
229
+ id: string;
230
+ userId: string | number;
231
+ createdAt: Date;
232
+ signedUrl: string;
233
+ } | null | undefined;
234
+ }[] | null | undefined;
17
235
  }>;
18
236
  export type Conversation = z.infer<typeof ConversationSchema>;
@@ -2,9 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConversationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
6
+ const ConversationMessage_1 = require("./messages/ConversationMessage");
7
+ const ConversationUser_1 = require("./users/ConversationUser");
5
8
  exports.ConversationSchema = zod_1.z.object({
6
9
  id: zod_1.z.string().uuid(),
7
10
  accountId: zod_1.z.string().uuid(),
8
11
  platformConversationId: zod_1.z.string(),
9
- updatedAt: zod_1.z.coerce.date()
12
+ updatedAt: zod_1.z.coerce.date(),
13
+ account: UserOnPlatform_1.UserOnPlatformSchema.nullish(),
14
+ lastMessage: ConversationMessage_1.ConversationMessageSchema.nullish(),
15
+ users: zod_1.z.array(ConversationUser_1.ConversationUserSchema).nullish()
10
16
  });
@@ -1,9 +1,15 @@
1
1
  import {z} from "zod"
2
+ import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
3
+ import {ConversationMessageSchema} from "./messages/ConversationMessage"
4
+ import {ConversationUserSchema} from "./users/ConversationUser"
2
5
 
3
6
  export const ConversationSchema = z.object({
4
7
  id: z.string().uuid(),
5
8
  accountId: z.string().uuid(),
6
9
  platformConversationId: z.string(),
7
- updatedAt: z.coerce.date()
10
+ updatedAt: z.coerce.date(),
11
+ account: UserOnPlatformSchema.nullish(),
12
+ lastMessage: ConversationMessageSchema.nullish(),
13
+ users: z.array(ConversationUserSchema).nullish()
8
14
  })
9
15
  export type Conversation = z.infer<typeof ConversationSchema>
@@ -0,0 +1,344 @@
1
+ import { z } from "zod";
2
+ export declare const UserConversationsSchema: z.ZodObject<{
3
+ count: z.ZodNumber;
4
+ allConversationsCount: z.ZodNumber;
5
+ rows: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ accountId: z.ZodString;
8
+ platformConversationId: z.ZodString;
9
+ updatedAt: z.ZodDate;
10
+ account: z.ZodOptional<z.ZodNullable<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
+ platform: "VINTED" | "SHOPIFY";
19
+ accountId: string;
20
+ name: string;
21
+ userId: string | number;
22
+ }, {
23
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
24
+ platform: "VINTED" | "SHOPIFY";
25
+ accountId: string;
26
+ name: string;
27
+ userId: string | number;
28
+ }>>>;
29
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
+ id: z.ZodString;
31
+ conversationId: z.ZodString;
32
+ conversationUserId: z.ZodString;
33
+ platformMessageId: z.ZodString;
34
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
35
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
39
+ path: z.ZodString;
40
+ signedUrl: z.ZodString;
41
+ createdAt: z.ZodDate;
42
+ }, "strip", z.ZodTypeAny, {
43
+ path: string;
44
+ id: string;
45
+ userId: string | number;
46
+ createdAt: Date;
47
+ signedUrl: string;
48
+ }, {
49
+ path: string;
50
+ id: string;
51
+ userId: string | number;
52
+ createdAt: Date;
53
+ signedUrl: string;
54
+ }>, "many">>>;
55
+ createdAt: z.ZodDate;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
58
+ id: string;
59
+ createdAt: Date;
60
+ conversationId: string;
61
+ conversationUserId: string;
62
+ platformMessageId: string;
63
+ body?: string | null | undefined;
64
+ files?: {
65
+ path: string;
66
+ id: string;
67
+ userId: string | number;
68
+ createdAt: Date;
69
+ signedUrl: string;
70
+ }[] | null | undefined;
71
+ }, {
72
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
73
+ id: string;
74
+ createdAt: Date;
75
+ conversationId: string;
76
+ conversationUserId: string;
77
+ platformMessageId: string;
78
+ body?: string | null | undefined;
79
+ files?: {
80
+ path: string;
81
+ id: string;
82
+ userId: string | number;
83
+ createdAt: Date;
84
+ signedUrl: string;
85
+ }[] | null | undefined;
86
+ }>>>;
87
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
88
+ id: z.ZodString;
89
+ platformUserId: z.ZodString;
90
+ conversationId: z.ZodString;
91
+ login: z.ZodString;
92
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
94
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
95
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ id: z.ZodString;
98
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
99
+ path: z.ZodString;
100
+ signedUrl: z.ZodString;
101
+ createdAt: z.ZodDate;
102
+ }, "strip", z.ZodTypeAny, {
103
+ path: string;
104
+ id: string;
105
+ userId: string | number;
106
+ createdAt: Date;
107
+ signedUrl: string;
108
+ }, {
109
+ path: string;
110
+ id: string;
111
+ userId: string | number;
112
+ createdAt: Date;
113
+ signedUrl: string;
114
+ }>>>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ id: string;
117
+ login: string;
118
+ conversationId: string;
119
+ platformUserId: string;
120
+ reviewCount?: number | null | undefined;
121
+ reviewValue?: number | null | undefined;
122
+ location?: string | null | undefined;
123
+ photoFileId?: string | null | undefined;
124
+ photoFile?: {
125
+ path: string;
126
+ id: string;
127
+ userId: string | number;
128
+ createdAt: Date;
129
+ signedUrl: string;
130
+ } | null | undefined;
131
+ }, {
132
+ id: string;
133
+ login: string;
134
+ conversationId: string;
135
+ platformUserId: string;
136
+ reviewCount?: number | null | undefined;
137
+ reviewValue?: number | null | undefined;
138
+ location?: string | null | undefined;
139
+ photoFileId?: string | null | undefined;
140
+ photoFile?: {
141
+ path: string;
142
+ id: string;
143
+ userId: string | number;
144
+ createdAt: Date;
145
+ signedUrl: string;
146
+ } | null | undefined;
147
+ }>, "many">>>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ id: string;
150
+ accountId: string;
151
+ updatedAt: Date;
152
+ platformConversationId: string;
153
+ account?: {
154
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
155
+ platform: "VINTED" | "SHOPIFY";
156
+ accountId: string;
157
+ name: string;
158
+ userId: string | number;
159
+ } | null | undefined;
160
+ lastMessage?: {
161
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
162
+ id: string;
163
+ createdAt: Date;
164
+ conversationId: string;
165
+ conversationUserId: string;
166
+ platformMessageId: string;
167
+ body?: string | null | undefined;
168
+ files?: {
169
+ path: string;
170
+ id: string;
171
+ userId: string | number;
172
+ createdAt: Date;
173
+ signedUrl: string;
174
+ }[] | null | undefined;
175
+ } | null | undefined;
176
+ users?: {
177
+ id: string;
178
+ login: string;
179
+ conversationId: string;
180
+ platformUserId: string;
181
+ reviewCount?: number | null | undefined;
182
+ reviewValue?: number | null | undefined;
183
+ location?: string | null | undefined;
184
+ photoFileId?: string | null | undefined;
185
+ photoFile?: {
186
+ path: string;
187
+ id: string;
188
+ userId: string | number;
189
+ createdAt: Date;
190
+ signedUrl: string;
191
+ } | null | undefined;
192
+ }[] | null | undefined;
193
+ }, {
194
+ id: string;
195
+ accountId: string;
196
+ updatedAt: Date;
197
+ platformConversationId: string;
198
+ account?: {
199
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
200
+ platform: "VINTED" | "SHOPIFY";
201
+ accountId: string;
202
+ name: string;
203
+ userId: string | number;
204
+ } | null | undefined;
205
+ lastMessage?: {
206
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
207
+ id: string;
208
+ createdAt: Date;
209
+ conversationId: string;
210
+ conversationUserId: string;
211
+ platformMessageId: string;
212
+ body?: string | null | undefined;
213
+ files?: {
214
+ path: string;
215
+ id: string;
216
+ userId: string | number;
217
+ createdAt: Date;
218
+ signedUrl: string;
219
+ }[] | null | undefined;
220
+ } | null | undefined;
221
+ users?: {
222
+ id: string;
223
+ login: string;
224
+ conversationId: string;
225
+ platformUserId: string;
226
+ reviewCount?: number | null | undefined;
227
+ reviewValue?: number | null | undefined;
228
+ location?: string | null | undefined;
229
+ photoFileId?: string | null | undefined;
230
+ photoFile?: {
231
+ path: string;
232
+ id: string;
233
+ userId: string | number;
234
+ createdAt: Date;
235
+ signedUrl: string;
236
+ } | null | undefined;
237
+ }[] | null | undefined;
238
+ }>, "many">;
239
+ currentPage: z.ZodNumber;
240
+ totalPages: z.ZodNumber;
241
+ }, "strip", z.ZodTypeAny, {
242
+ count: number;
243
+ rows: {
244
+ id: string;
245
+ accountId: string;
246
+ updatedAt: Date;
247
+ platformConversationId: string;
248
+ account?: {
249
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
250
+ platform: "VINTED" | "SHOPIFY";
251
+ accountId: string;
252
+ name: string;
253
+ userId: string | number;
254
+ } | null | undefined;
255
+ lastMessage?: {
256
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
257
+ id: string;
258
+ createdAt: Date;
259
+ conversationId: string;
260
+ conversationUserId: string;
261
+ platformMessageId: string;
262
+ body?: string | null | undefined;
263
+ files?: {
264
+ path: string;
265
+ id: string;
266
+ userId: string | number;
267
+ createdAt: Date;
268
+ signedUrl: string;
269
+ }[] | null | undefined;
270
+ } | null | undefined;
271
+ users?: {
272
+ id: string;
273
+ login: string;
274
+ conversationId: string;
275
+ platformUserId: string;
276
+ reviewCount?: number | null | undefined;
277
+ reviewValue?: number | null | undefined;
278
+ location?: string | null | undefined;
279
+ photoFileId?: string | null | undefined;
280
+ photoFile?: {
281
+ path: string;
282
+ id: string;
283
+ userId: string | number;
284
+ createdAt: Date;
285
+ signedUrl: string;
286
+ } | null | undefined;
287
+ }[] | null | undefined;
288
+ }[];
289
+ currentPage: number;
290
+ totalPages: number;
291
+ allConversationsCount: number;
292
+ }, {
293
+ count: number;
294
+ rows: {
295
+ id: string;
296
+ accountId: string;
297
+ updatedAt: Date;
298
+ platformConversationId: string;
299
+ account?: {
300
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
301
+ platform: "VINTED" | "SHOPIFY";
302
+ accountId: string;
303
+ name: string;
304
+ userId: string | number;
305
+ } | null | undefined;
306
+ lastMessage?: {
307
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
308
+ id: string;
309
+ createdAt: Date;
310
+ conversationId: string;
311
+ conversationUserId: string;
312
+ platformMessageId: string;
313
+ body?: string | null | undefined;
314
+ files?: {
315
+ path: string;
316
+ id: string;
317
+ userId: string | number;
318
+ createdAt: Date;
319
+ signedUrl: string;
320
+ }[] | null | undefined;
321
+ } | null | undefined;
322
+ users?: {
323
+ id: string;
324
+ login: string;
325
+ conversationId: string;
326
+ platformUserId: string;
327
+ reviewCount?: number | null | undefined;
328
+ reviewValue?: number | null | undefined;
329
+ location?: string | null | undefined;
330
+ photoFileId?: string | null | undefined;
331
+ photoFile?: {
332
+ path: string;
333
+ id: string;
334
+ userId: string | number;
335
+ createdAt: Date;
336
+ signedUrl: string;
337
+ } | null | undefined;
338
+ }[] | null | undefined;
339
+ }[];
340
+ currentPage: number;
341
+ totalPages: number;
342
+ allConversationsCount: number;
343
+ }>;
344
+ export type UserConversations = z.infer<typeof UserConversationsSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserConversationsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const Conversation_1 = require("./Conversation");
6
+ exports.UserConversationsSchema = zod_1.z.object({
7
+ count: zod_1.z.number(),
8
+ allConversationsCount: zod_1.z.number(),
9
+ rows: zod_1.z.array(Conversation_1.ConversationSchema),
10
+ currentPage: zod_1.z.number(),
11
+ totalPages: zod_1.z.number()
12
+ });
@@ -0,0 +1,11 @@
1
+ import {z} from "zod"
2
+ import {ConversationSchema} from "./Conversation"
3
+
4
+ export const UserConversationsSchema = z.object({
5
+ count: z.number(),
6
+ allConversationsCount: z.number(),
7
+ rows: z.array(ConversationSchema),
8
+ currentPage: z.number(),
9
+ totalPages: z.number()
10
+ })
11
+ export type UserConversations = z.infer<typeof UserConversationsSchema>
@@ -0,0 +1,60 @@
1
+ import { z } from "zod";
2
+ export declare const ConversationMessageSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ conversationId: z.ZodString;
5
+ conversationUserId: z.ZodString;
6
+ platformMessageId: z.ZodString;
7
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
8
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
12
+ path: z.ZodString;
13
+ signedUrl: z.ZodString;
14
+ createdAt: z.ZodDate;
15
+ }, "strip", z.ZodTypeAny, {
16
+ path: string;
17
+ id: string;
18
+ userId: string | number;
19
+ createdAt: Date;
20
+ signedUrl: string;
21
+ }, {
22
+ path: string;
23
+ id: string;
24
+ userId: string | number;
25
+ createdAt: Date;
26
+ signedUrl: string;
27
+ }>, "many">>>;
28
+ createdAt: z.ZodDate;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
31
+ id: string;
32
+ createdAt: Date;
33
+ conversationId: string;
34
+ conversationUserId: string;
35
+ platformMessageId: string;
36
+ body?: string | null | undefined;
37
+ files?: {
38
+ path: string;
39
+ id: string;
40
+ userId: string | number;
41
+ createdAt: Date;
42
+ signedUrl: string;
43
+ }[] | null | undefined;
44
+ }, {
45
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
46
+ id: string;
47
+ createdAt: Date;
48
+ conversationId: string;
49
+ conversationUserId: string;
50
+ platformMessageId: string;
51
+ body?: string | null | undefined;
52
+ files?: {
53
+ path: string;
54
+ id: string;
55
+ userId: string | number;
56
+ createdAt: Date;
57
+ signedUrl: string;
58
+ }[] | null | undefined;
59
+ }>;
60
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationMessageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ const File_1 = require("../../../users/files/File");
7
+ exports.ConversationMessageSchema = zod_1.z.object({
8
+ id: zod_1.z.string().uuid(),
9
+ conversationId: zod_1.z.string().uuid(),
10
+ conversationUserId: zod_1.z.string().uuid(),
11
+ platformMessageId: zod_1.z.string(),
12
+ type: controlresell_connector_1.JobConversationMessageTypeSchema,
13
+ body: zod_1.z.string().nullish(),
14
+ files: zod_1.z.array(File_1.FileSchema).nullish(),
15
+ createdAt: zod_1.z.coerce.date()
16
+ });
@@ -0,0 +1,15 @@
1
+ import {z} from "zod"
2
+ import {JobConversationMessageTypeSchema} from "controlresell-connector"
3
+ import {FileSchema} from "../../../users/files/File"
4
+
5
+ export const ConversationMessageSchema = z.object({
6
+ id: z.string().uuid(),
7
+ conversationId: z.string().uuid(),
8
+ conversationUserId: z.string().uuid(),
9
+ platformMessageId: z.string(),
10
+ type: JobConversationMessageTypeSchema,
11
+ body: z.string().nullish(),
12
+ files: z.array(FileSchema).nullish(),
13
+ createdAt: z.coerce.date()
14
+ })
15
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const CreateConversationMessagePayloadSchema: z.ZodObject<{
3
+ conversationUserId: z.ZodString;
4
+ platformMessageId: z.ZodString;
5
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
6
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
10
+ conversationUserId: string;
11
+ platformMessageId: string;
12
+ body?: string | null | undefined;
13
+ createdAt?: Date | null | undefined;
14
+ }, {
15
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
16
+ conversationUserId: string;
17
+ platformMessageId: string;
18
+ body?: string | null | undefined;
19
+ createdAt?: Date | null | undefined;
20
+ }>;
21
+ export type CreateConversationMessagePayload = z.infer<typeof CreateConversationMessagePayloadSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateConversationMessagePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ exports.CreateConversationMessagePayloadSchema = zod_1.z.object({
7
+ conversationUserId: zod_1.z.string().uuid(),
8
+ platformMessageId: zod_1.z.string(),
9
+ type: controlresell_connector_1.JobConversationMessageTypeSchema,
10
+ body: zod_1.z.string().nullish(),
11
+ createdAt: zod_1.z.coerce.date().nullish()
12
+ });
@@ -0,0 +1,11 @@
1
+ import {z} from "zod"
2
+ import {JobConversationMessageTypeSchema} from "controlresell-connector"
3
+
4
+ export const CreateConversationMessagePayloadSchema = z.object({
5
+ conversationUserId: z.string().uuid(),
6
+ platformMessageId: z.string(),
7
+ type: JobConversationMessageTypeSchema,
8
+ body: z.string().nullish(),
9
+ createdAt: z.coerce.date().nullish()
10
+ })
11
+ export type CreateConversationMessagePayload = z.infer<typeof CreateConversationMessagePayloadSchema>
@@ -0,0 +1,105 @@
1
+ import { z } from "zod";
2
+ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
3
+ count: z.ZodNumber;
4
+ rows: z.ZodArray<z.ZodObject<{
5
+ id: z.ZodString;
6
+ conversationId: z.ZodString;
7
+ conversationUserId: z.ZodString;
8
+ platformMessageId: z.ZodString;
9
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
10
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
14
+ path: z.ZodString;
15
+ signedUrl: z.ZodString;
16
+ createdAt: z.ZodDate;
17
+ }, "strip", z.ZodTypeAny, {
18
+ path: string;
19
+ id: string;
20
+ userId: string | number;
21
+ createdAt: Date;
22
+ signedUrl: string;
23
+ }, {
24
+ path: string;
25
+ id: string;
26
+ userId: string | number;
27
+ createdAt: Date;
28
+ signedUrl: string;
29
+ }>, "many">>>;
30
+ createdAt: z.ZodDate;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
33
+ id: string;
34
+ createdAt: Date;
35
+ conversationId: string;
36
+ conversationUserId: string;
37
+ platformMessageId: string;
38
+ body?: string | null | undefined;
39
+ files?: {
40
+ path: string;
41
+ id: string;
42
+ userId: string | number;
43
+ createdAt: Date;
44
+ signedUrl: string;
45
+ }[] | null | undefined;
46
+ }, {
47
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
48
+ id: string;
49
+ createdAt: Date;
50
+ conversationId: string;
51
+ conversationUserId: string;
52
+ platformMessageId: string;
53
+ body?: string | null | undefined;
54
+ files?: {
55
+ path: string;
56
+ id: string;
57
+ userId: string | number;
58
+ createdAt: Date;
59
+ signedUrl: string;
60
+ }[] | null | undefined;
61
+ }>, "many">;
62
+ currentPage: z.ZodNumber;
63
+ totalPages: z.ZodNumber;
64
+ }, "strip", z.ZodTypeAny, {
65
+ count: number;
66
+ rows: {
67
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
68
+ id: string;
69
+ createdAt: Date;
70
+ conversationId: string;
71
+ conversationUserId: string;
72
+ platformMessageId: string;
73
+ body?: string | null | undefined;
74
+ files?: {
75
+ path: string;
76
+ id: string;
77
+ userId: string | number;
78
+ createdAt: Date;
79
+ signedUrl: string;
80
+ }[] | null | undefined;
81
+ }[];
82
+ currentPage: number;
83
+ totalPages: number;
84
+ }, {
85
+ count: number;
86
+ rows: {
87
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
88
+ id: string;
89
+ createdAt: Date;
90
+ conversationId: string;
91
+ conversationUserId: string;
92
+ platformMessageId: string;
93
+ body?: string | null | undefined;
94
+ files?: {
95
+ path: string;
96
+ id: string;
97
+ userId: string | number;
98
+ createdAt: Date;
99
+ signedUrl: string;
100
+ }[] | null | undefined;
101
+ }[];
102
+ currentPage: number;
103
+ totalPages: number;
104
+ }>;
105
+ export type PaginatedConversationMessages = z.infer<typeof PaginatedConversationMessagesSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaginatedConversationMessagesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const ConversationMessage_1 = require("./ConversationMessage");
6
+ exports.PaginatedConversationMessagesSchema = zod_1.z.object({
7
+ count: zod_1.z.number(),
8
+ rows: zod_1.z.array(ConversationMessage_1.ConversationMessageSchema),
9
+ currentPage: zod_1.z.number(),
10
+ totalPages: zod_1.z.number()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+ import {ConversationMessageSchema} from "./ConversationMessage"
3
+
4
+ export const PaginatedConversationMessagesSchema = z.object({
5
+ count: z.number(),
6
+ rows: z.array(ConversationMessageSchema),
7
+ currentPage: z.number(),
8
+ totalPages: z.number()
9
+ })
10
+ export type PaginatedConversationMessages = z.infer<typeof PaginatedConversationMessagesSchema>
@@ -0,0 +1,63 @@
1
+ import { z } from "zod";
2
+ export declare const ConversationUserSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ platformUserId: z.ZodString;
5
+ conversationId: z.ZodString;
6
+ login: z.ZodString;
7
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ id: z.ZodString;
13
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
14
+ path: z.ZodString;
15
+ signedUrl: z.ZodString;
16
+ createdAt: z.ZodDate;
17
+ }, "strip", z.ZodTypeAny, {
18
+ path: string;
19
+ id: string;
20
+ userId: string | number;
21
+ createdAt: Date;
22
+ signedUrl: string;
23
+ }, {
24
+ path: string;
25
+ id: string;
26
+ userId: string | number;
27
+ createdAt: Date;
28
+ signedUrl: string;
29
+ }>>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id: string;
32
+ login: string;
33
+ conversationId: string;
34
+ platformUserId: string;
35
+ reviewCount?: number | null | undefined;
36
+ reviewValue?: number | null | undefined;
37
+ location?: string | null | undefined;
38
+ photoFileId?: string | null | undefined;
39
+ photoFile?: {
40
+ path: string;
41
+ id: string;
42
+ userId: string | number;
43
+ createdAt: Date;
44
+ signedUrl: string;
45
+ } | null | undefined;
46
+ }, {
47
+ id: string;
48
+ login: string;
49
+ conversationId: string;
50
+ platformUserId: string;
51
+ reviewCount?: number | null | undefined;
52
+ reviewValue?: number | null | undefined;
53
+ location?: string | null | undefined;
54
+ photoFileId?: string | null | undefined;
55
+ photoFile?: {
56
+ path: string;
57
+ id: string;
58
+ userId: string | number;
59
+ createdAt: Date;
60
+ signedUrl: string;
61
+ } | null | undefined;
62
+ }>;
63
+ export type ConversationUser = z.infer<typeof ConversationUserSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationUserSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const File_1 = require("../../../users/files/File");
6
+ exports.ConversationUserSchema = zod_1.z.object({
7
+ id: zod_1.z.string().uuid(),
8
+ platformUserId: zod_1.z.string(),
9
+ conversationId: zod_1.z.string().uuid(),
10
+ login: zod_1.z.string(),
11
+ location: zod_1.z.string().nullish(),
12
+ reviewCount: zod_1.z.number().int().nullish(),
13
+ reviewValue: zod_1.z.number().nullish(),
14
+ photoFileId: zod_1.z.string().uuid().nullish(),
15
+ photoFile: File_1.FileSchema.nullish()
16
+ });
@@ -0,0 +1,15 @@
1
+ import {z} from "zod"
2
+ import {FileSchema} from "../../../users/files/File"
3
+
4
+ export const ConversationUserSchema = z.object({
5
+ id: z.string().uuid(),
6
+ platformUserId: z.string(),
7
+ conversationId: z.string().uuid(),
8
+ login: z.string(),
9
+ location: z.string().nullish(),
10
+ reviewCount: z.number().int().nullish(),
11
+ reviewValue: z.number().nullish(),
12
+ photoFileId: z.string().uuid().nullish(),
13
+ photoFile: FileSchema.nullish()
14
+ })
15
+ export type ConversationUser = z.infer<typeof ConversationUserSchema>
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+ export declare const CreateConversationUserPayloadSchema: z.ZodObject<{
3
+ platformUserId: z.ZodString;
4
+ login: z.ZodString;
5
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ login: string;
11
+ platformUserId: string;
12
+ reviewCount?: number | null | undefined;
13
+ reviewValue?: number | null | undefined;
14
+ location?: string | null | undefined;
15
+ photoFileId?: string | null | undefined;
16
+ }, {
17
+ login: string;
18
+ platformUserId: string;
19
+ reviewCount?: number | null | undefined;
20
+ reviewValue?: number | null | undefined;
21
+ location?: string | null | undefined;
22
+ photoFileId?: string | null | undefined;
23
+ }>;
24
+ export type CreateConversationUserPayload = z.infer<typeof CreateConversationUserPayloadSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateConversationUserPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CreateConversationUserPayloadSchema = zod_1.z.object({
6
+ platformUserId: zod_1.z.string(),
7
+ login: zod_1.z.string(),
8
+ location: zod_1.z.string().nullish(),
9
+ reviewCount: zod_1.z.number().int().nullish(),
10
+ reviewValue: zod_1.z.number().nullish(),
11
+ photoFileId: zod_1.z.string().uuid().nullish()
12
+ });
@@ -0,0 +1,11 @@
1
+ import {z} from "zod"
2
+
3
+ export const CreateConversationUserPayloadSchema = z.object({
4
+ platformUserId: z.string(),
5
+ login: z.string(),
6
+ location: z.string().nullish(),
7
+ reviewCount: z.number().int().nullish(),
8
+ reviewValue: z.number().nullish(),
9
+ photoFileId: z.string().uuid().nullish()
10
+ })
11
+ export type CreateConversationUserPayload = z.infer<typeof CreateConversationUserPayloadSchema>
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateConversationUserPayloadSchema: z.ZodObject<{
3
+ login: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
+ reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ login?: string | null | undefined;
10
+ reviewCount?: number | null | undefined;
11
+ reviewValue?: number | null | undefined;
12
+ location?: string | null | undefined;
13
+ photoFileId?: string | null | undefined;
14
+ }, {
15
+ login?: string | null | undefined;
16
+ reviewCount?: number | null | undefined;
17
+ reviewValue?: number | null | undefined;
18
+ location?: string | null | undefined;
19
+ photoFileId?: string | null | undefined;
20
+ }>;
21
+ export type UpdateConversationUserPayload = z.infer<typeof UpdateConversationUserPayloadSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateConversationUserPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdateConversationUserPayloadSchema = zod_1.z.object({
6
+ login: zod_1.z.string().nullish(),
7
+ location: zod_1.z.string().nullish(),
8
+ reviewCount: zod_1.z.number().int().nullish(),
9
+ reviewValue: zod_1.z.number().nullish(),
10
+ photoFileId: zod_1.z.string().uuid().nullish()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdateConversationUserPayloadSchema = z.object({
4
+ login: z.string().nullish(),
5
+ location: z.string().nullish(),
6
+ reviewCount: z.number().int().nullish(),
7
+ reviewValue: z.number().nullish(),
8
+ photoFileId: z.string().uuid().nullish()
9
+ })
10
+ export type UpdateConversationUserPayload = z.infer<typeof UpdateConversationUserPayloadSchema>
package/src/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from "./com/controlresell/models/items/CreatedItems";
28
28
  export * from "./com/controlresell/models/items/Item";
29
29
  export * from "./com/controlresell/models/items/ItemFiltersContext";
30
30
  export * from "./com/controlresell/models/items/ItemPayload";
31
+ export * from "./com/controlresell/models/items/ItemSoldPayload";
31
32
  export * from "./com/controlresell/models/items/ItemSort";
32
33
  export * from "./com/controlresell/models/items/ItemsWithFilters";
33
34
  export * from "./com/controlresell/models/items/UpdatedItem";
@@ -64,6 +65,13 @@ export * from "./com/controlresell/models/metadata/statuses/Status";
64
65
  export * from "./com/controlresell/models/platforms/conversations/Conversation";
65
66
  export * from "./com/controlresell/models/platforms/conversations/CreateConversationPayload";
66
67
  export * from "./com/controlresell/models/platforms/conversations/UpdateConversationPayload";
68
+ export * from "./com/controlresell/models/platforms/conversations/UserConversations";
69
+ export * from "./com/controlresell/models/platforms/conversations/messages/ConversationMessage";
70
+ export * from "./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload";
71
+ export * from "./com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages";
72
+ export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser";
73
+ export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload";
74
+ export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload";
67
75
  export * from "./com/controlresell/models/platforms/labels/CreateOrderLabelPayload";
68
76
  export * from "./com/controlresell/models/platforms/labels/OrderLabel";
69
77
  export * from "./com/controlresell/models/platforms/orders/CreateOrderPayload";
package/src/index.js CHANGED
@@ -44,6 +44,7 @@ __exportStar(require("./com/controlresell/models/items/CreatedItems"), exports);
44
44
  __exportStar(require("./com/controlresell/models/items/Item"), exports);
45
45
  __exportStar(require("./com/controlresell/models/items/ItemFiltersContext"), exports);
46
46
  __exportStar(require("./com/controlresell/models/items/ItemPayload"), exports);
47
+ __exportStar(require("./com/controlresell/models/items/ItemSoldPayload"), exports);
47
48
  __exportStar(require("./com/controlresell/models/items/ItemSort"), exports);
48
49
  __exportStar(require("./com/controlresell/models/items/ItemsWithFilters"), exports);
49
50
  __exportStar(require("./com/controlresell/models/items/UpdatedItem"), exports);
@@ -80,6 +81,13 @@ __exportStar(require("./com/controlresell/models/metadata/statuses/Status"), exp
80
81
  __exportStar(require("./com/controlresell/models/platforms/conversations/Conversation"), exports);
81
82
  __exportStar(require("./com/controlresell/models/platforms/conversations/CreateConversationPayload"), exports);
82
83
  __exportStar(require("./com/controlresell/models/platforms/conversations/UpdateConversationPayload"), exports);
84
+ __exportStar(require("./com/controlresell/models/platforms/conversations/UserConversations"), exports);
85
+ __exportStar(require("./com/controlresell/models/platforms/conversations/messages/ConversationMessage"), exports);
86
+ __exportStar(require("./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload"), exports);
87
+ __exportStar(require("./com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages"), exports);
88
+ __exportStar(require("./com/controlresell/models/platforms/conversations/users/ConversationUser"), exports);
89
+ __exportStar(require("./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"), exports);
90
+ __exportStar(require("./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"), exports);
83
91
  __exportStar(require("./com/controlresell/models/platforms/labels/CreateOrderLabelPayload"), exports);
84
92
  __exportStar(require("./com/controlresell/models/platforms/labels/OrderLabel"), exports);
85
93
  __exportStar(require("./com/controlresell/models/platforms/orders/CreateOrderPayload"), exports);
package/src/index.ts CHANGED
@@ -28,6 +28,7 @@ export * from "./com/controlresell/models/items/CreatedItems"
28
28
  export * from "./com/controlresell/models/items/Item"
29
29
  export * from "./com/controlresell/models/items/ItemFiltersContext"
30
30
  export * from "./com/controlresell/models/items/ItemPayload"
31
+ export * from "./com/controlresell/models/items/ItemSoldPayload"
31
32
  export * from "./com/controlresell/models/items/ItemSort"
32
33
  export * from "./com/controlresell/models/items/ItemsWithFilters"
33
34
  export * from "./com/controlresell/models/items/UpdatedItem"
@@ -64,6 +65,13 @@ export * from "./com/controlresell/models/metadata/statuses/Status"
64
65
  export * from "./com/controlresell/models/platforms/conversations/Conversation"
65
66
  export * from "./com/controlresell/models/platforms/conversations/CreateConversationPayload"
66
67
  export * from "./com/controlresell/models/platforms/conversations/UpdateConversationPayload"
68
+ export * from "./com/controlresell/models/platforms/conversations/UserConversations"
69
+ export * from "./com/controlresell/models/platforms/conversations/messages/ConversationMessage"
70
+ export * from "./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload"
71
+ export * from "./com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages"
72
+ export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser"
73
+ export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"
74
+ export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"
67
75
  export * from "./com/controlresell/models/platforms/labels/CreateOrderLabelPayload"
68
76
  export * from "./com/controlresell/models/platforms/labels/OrderLabel"
69
77
  export * from "./com/controlresell/models/platforms/orders/CreateOrderPayload"