@little-samo/samo-ai-sdk 0.6.6 → 0.6.7
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.
- package/dist/dto/entities/agents/agent.requests.d.ts +34 -34
- package/dist/dto/entities/users/index.d.ts +2 -0
- package/dist/dto/entities/users/index.js +2 -0
- package/dist/dto/entities/users/index.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +20 -2
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.notice.d.ts +8 -0
- package/dist/dto/entities/users/user.notice.js +3 -0
- package/dist/dto/entities/users/user.notice.js.map +1 -0
- package/dist/dto/entities/users/user.notification.d.ts +15 -0
- package/dist/dto/entities/users/user.notification.js +3 -0
- package/dist/dto/entities/users/user.notification.js.map +1 -0
- package/dist/dto/entities/users/user.requests.d.ts +246 -16
- package/dist/dto/entities/users/user.requests.js +62 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +157 -154
- package/dist/dto/locations/location.requests.js +1 -0
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { UserAvatarDto, UserPrivateDto, UserPublicDto } from './user';
|
|
2
|
+
import { UserAvatarDto, UserCommentDto, UserPrivateDto, UserPublicDto } from './user';
|
|
3
|
+
import { NoticeDto } from './user.notice';
|
|
4
|
+
import { UserNotificationDto } from './user.notification';
|
|
3
5
|
export declare const GetCurrentUserQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
6
|
export type GetCurrentUserQueryDto = z.infer<typeof GetCurrentUserQuerySchema>;
|
|
5
7
|
export interface GetCurrentUserResponseDto {
|
|
@@ -16,24 +18,24 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
16
18
|
appearance: z.ZodOptional<z.ZodString>;
|
|
17
19
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
18
20
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
avatar?: string | undefined;
|
|
20
|
-
referenceAvatar?: string | undefined;
|
|
21
|
-
appearance?: string | undefined;
|
|
22
21
|
username?: string | undefined;
|
|
23
22
|
nickname?: string | undefined;
|
|
24
23
|
birthDate?: Date | undefined;
|
|
25
24
|
profilePicture?: string | undefined;
|
|
26
25
|
avatarName?: string | undefined;
|
|
27
|
-
isAllowSensitive?: boolean | undefined;
|
|
28
|
-
}, {
|
|
29
26
|
avatar?: string | undefined;
|
|
30
27
|
referenceAvatar?: string | undefined;
|
|
31
28
|
appearance?: string | undefined;
|
|
29
|
+
isAllowSensitive?: boolean | undefined;
|
|
30
|
+
}, {
|
|
32
31
|
username?: string | undefined;
|
|
33
32
|
nickname?: string | undefined;
|
|
34
33
|
birthDate?: Date | undefined;
|
|
35
34
|
profilePicture?: string | undefined;
|
|
36
35
|
avatarName?: string | undefined;
|
|
36
|
+
avatar?: string | undefined;
|
|
37
|
+
referenceAvatar?: string | undefined;
|
|
38
|
+
appearance?: string | undefined;
|
|
37
39
|
isAllowSensitive?: boolean | undefined;
|
|
38
40
|
}>;
|
|
39
41
|
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
@@ -56,58 +58,58 @@ export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
56
58
|
referenceAvatar: z.ZodString;
|
|
57
59
|
appearance: z.ZodString;
|
|
58
60
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
name: string;
|
|
60
61
|
avatar: string;
|
|
61
62
|
referenceAvatar: string;
|
|
62
63
|
appearance: string;
|
|
64
|
+
name: string;
|
|
63
65
|
role?: string | undefined;
|
|
64
66
|
}, {
|
|
65
|
-
name: string;
|
|
66
67
|
avatar: string;
|
|
67
68
|
referenceAvatar: string;
|
|
68
69
|
appearance: string;
|
|
70
|
+
name: string;
|
|
69
71
|
role?: string | undefined;
|
|
70
72
|
}>>>;
|
|
71
73
|
}, "strip", z.ZodTypeAny, {
|
|
72
74
|
avatar?: {
|
|
73
|
-
name: string;
|
|
74
75
|
avatar: string;
|
|
75
76
|
referenceAvatar: string;
|
|
76
77
|
appearance: string;
|
|
78
|
+
name: string;
|
|
77
79
|
role?: string | undefined;
|
|
78
80
|
} | null | undefined;
|
|
79
|
-
locationId?: bigint | undefined;
|
|
80
81
|
index?: number | undefined;
|
|
82
|
+
locationId?: bigint | undefined;
|
|
81
83
|
}, {
|
|
82
84
|
avatar?: {
|
|
83
|
-
name: string;
|
|
84
85
|
avatar: string;
|
|
85
86
|
referenceAvatar: string;
|
|
86
87
|
appearance: string;
|
|
88
|
+
name: string;
|
|
87
89
|
role?: string | undefined;
|
|
88
90
|
} | null | undefined;
|
|
89
|
-
locationId?: bigint | undefined;
|
|
90
91
|
index?: number | undefined;
|
|
92
|
+
locationId?: bigint | undefined;
|
|
91
93
|
}>, {
|
|
92
94
|
avatar?: {
|
|
93
|
-
name: string;
|
|
94
95
|
avatar: string;
|
|
95
96
|
referenceAvatar: string;
|
|
96
97
|
appearance: string;
|
|
98
|
+
name: string;
|
|
97
99
|
role?: string | undefined;
|
|
98
100
|
} | null | undefined;
|
|
99
|
-
locationId?: bigint | undefined;
|
|
100
101
|
index?: number | undefined;
|
|
102
|
+
locationId?: bigint | undefined;
|
|
101
103
|
}, {
|
|
102
104
|
avatar?: {
|
|
103
|
-
name: string;
|
|
104
105
|
avatar: string;
|
|
105
106
|
referenceAvatar: string;
|
|
106
107
|
appearance: string;
|
|
108
|
+
name: string;
|
|
107
109
|
role?: string | undefined;
|
|
108
110
|
} | null | undefined;
|
|
109
|
-
locationId?: bigint | undefined;
|
|
110
111
|
index?: number | undefined;
|
|
112
|
+
locationId?: bigint | undefined;
|
|
111
113
|
}>;
|
|
112
114
|
export type UpdateUserAvatarBodyDto = z.infer<typeof UpdateUserAvatarBodySchema>;
|
|
113
115
|
export interface UpdateUserAvatarResponseDto {
|
|
@@ -162,6 +164,234 @@ export type GetUsersByIdsQueryDto = z.infer<typeof GetUsersByIdsQuerySchema>;
|
|
|
162
164
|
export interface GetUserPublicsByIdsResponseDto {
|
|
163
165
|
users: UserPublicDto[];
|
|
164
166
|
}
|
|
167
|
+
export declare const GetUserCommentsParamsSchema: z.ZodObject<{
|
|
168
|
+
userId: z.ZodBigInt;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
userId: bigint;
|
|
171
|
+
}, {
|
|
172
|
+
userId: bigint;
|
|
173
|
+
}>;
|
|
174
|
+
export type GetUserCommentsParamsDto = z.infer<typeof GetUserCommentsParamsSchema>;
|
|
175
|
+
export declare const GetUserCommentsQuerySchema: z.ZodObject<{
|
|
176
|
+
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["latest", "recommended"]>>>;
|
|
177
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
178
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
sortBy: "latest" | "recommended";
|
|
181
|
+
page: number;
|
|
182
|
+
limit: number;
|
|
183
|
+
}, {
|
|
184
|
+
sortBy?: "latest" | "recommended" | undefined;
|
|
185
|
+
page?: number | undefined;
|
|
186
|
+
limit?: number | undefined;
|
|
187
|
+
}>;
|
|
188
|
+
export type GetUserCommentsQueryDto = z.infer<typeof GetUserCommentsQuerySchema>;
|
|
189
|
+
export interface GetUserCommentsResponseDto {
|
|
190
|
+
data: UserCommentDto[];
|
|
191
|
+
meta: {
|
|
192
|
+
total: number;
|
|
193
|
+
page: number;
|
|
194
|
+
limit: number;
|
|
195
|
+
totalPages: number;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
export declare const GetUserCommentRepliesParamsSchema: z.ZodObject<{
|
|
199
|
+
commentId: z.ZodBigInt;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
commentId: bigint;
|
|
202
|
+
}, {
|
|
203
|
+
commentId: bigint;
|
|
204
|
+
}>;
|
|
205
|
+
export type GetUserCommentRepliesParamsDto = z.infer<typeof GetUserCommentRepliesParamsSchema>;
|
|
206
|
+
export declare const GetUserCommentRepliesQuerySchema: z.ZodObject<{
|
|
207
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
208
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
page: number;
|
|
211
|
+
limit: number;
|
|
212
|
+
}, {
|
|
213
|
+
page?: number | undefined;
|
|
214
|
+
limit?: number | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export type GetUserCommentRepliesQueryDto = z.infer<typeof GetUserCommentRepliesQuerySchema>;
|
|
217
|
+
export interface GetUserCommentRepliesResponseDto {
|
|
218
|
+
data: UserCommentDto[];
|
|
219
|
+
meta: {
|
|
220
|
+
total: number;
|
|
221
|
+
page: number;
|
|
222
|
+
limit: number;
|
|
223
|
+
totalPages: number;
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export declare const CreateUserCommentParamsSchema: z.ZodObject<{
|
|
227
|
+
userId: z.ZodBigInt;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
userId: bigint;
|
|
230
|
+
}, {
|
|
231
|
+
userId: bigint;
|
|
232
|
+
}>;
|
|
233
|
+
export type CreateUserCommentParamsDto = z.infer<typeof CreateUserCommentParamsSchema>;
|
|
234
|
+
export declare const CreateUserCommentBodySchema: z.ZodObject<{
|
|
235
|
+
parentCommentId: z.ZodOptional<z.ZodBigInt>;
|
|
236
|
+
content: z.ZodString;
|
|
237
|
+
contentImageUrl: z.ZodOptional<z.ZodString>;
|
|
238
|
+
isSecret: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
content: string;
|
|
241
|
+
isSecret: boolean;
|
|
242
|
+
parentCommentId?: bigint | undefined;
|
|
243
|
+
contentImageUrl?: string | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
content: string;
|
|
246
|
+
parentCommentId?: bigint | undefined;
|
|
247
|
+
contentImageUrl?: string | undefined;
|
|
248
|
+
isSecret?: boolean | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
export type CreateUserCommentBodyDto = z.infer<typeof CreateUserCommentBodySchema>;
|
|
251
|
+
export interface CreateUserCommentResponseDto {
|
|
252
|
+
comment: UserCommentDto;
|
|
253
|
+
}
|
|
254
|
+
export declare const UpdateUserCommentReactionParamsSchema: z.ZodObject<{
|
|
255
|
+
commentId: z.ZodBigInt;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
commentId: bigint;
|
|
258
|
+
}, {
|
|
259
|
+
commentId: bigint;
|
|
260
|
+
}>;
|
|
261
|
+
export type UpdateUserCommentReactionParamsDto = z.infer<typeof UpdateUserCommentReactionParamsSchema>;
|
|
262
|
+
export declare const UpdateUserCommentReactionBodySchema: z.ZodObject<{
|
|
263
|
+
reactionType: z.ZodNullable<z.ZodEnum<["LIKE", "DISLIKE"]>>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
reactionType: "LIKE" | "DISLIKE" | null;
|
|
266
|
+
}, {
|
|
267
|
+
reactionType: "LIKE" | "DISLIKE" | null;
|
|
268
|
+
}>;
|
|
269
|
+
export type UpdateUserCommentReactionBodyDto = z.infer<typeof UpdateUserCommentReactionBodySchema>;
|
|
270
|
+
export interface UpdateUserCommentReactionResponseDto {
|
|
271
|
+
success: boolean;
|
|
272
|
+
error?: string;
|
|
273
|
+
}
|
|
274
|
+
export declare const ReportUserCommentParamsSchema: z.ZodObject<{
|
|
275
|
+
userId: z.ZodBigInt;
|
|
276
|
+
commentId: z.ZodBigInt;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
userId: bigint;
|
|
279
|
+
commentId: bigint;
|
|
280
|
+
}, {
|
|
281
|
+
userId: bigint;
|
|
282
|
+
commentId: bigint;
|
|
283
|
+
}>;
|
|
284
|
+
export type ReportUserCommentParamsDto = z.infer<typeof ReportUserCommentParamsSchema>;
|
|
285
|
+
export interface ReportUserCommentResponseDto {
|
|
286
|
+
success: boolean;
|
|
287
|
+
error?: string;
|
|
288
|
+
}
|
|
289
|
+
export declare const DeleteUserCommentParamsSchema: z.ZodObject<{
|
|
290
|
+
userId: z.ZodBigInt;
|
|
291
|
+
commentId: z.ZodBigInt;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
userId: bigint;
|
|
294
|
+
commentId: bigint;
|
|
295
|
+
}, {
|
|
296
|
+
userId: bigint;
|
|
297
|
+
commentId: bigint;
|
|
298
|
+
}>;
|
|
299
|
+
export type DeleteUserCommentParamsDto = z.infer<typeof DeleteUserCommentParamsSchema>;
|
|
300
|
+
export interface DeleteUserCommentResponseDto {
|
|
301
|
+
success: boolean;
|
|
302
|
+
error?: string;
|
|
303
|
+
}
|
|
304
|
+
export declare const GetUserReferralQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
305
|
+
export type GetUserReferralQueryDto = z.infer<typeof GetUserReferralQuerySchema>;
|
|
306
|
+
export interface GetUserReferralResponseDto {
|
|
307
|
+
referralCode: string;
|
|
308
|
+
referrerId: bigint | null;
|
|
309
|
+
referrerCode: string | null;
|
|
310
|
+
totalRewardCredits: number;
|
|
311
|
+
referralCount: number;
|
|
312
|
+
rewardCreditsPerReferral: number;
|
|
313
|
+
}
|
|
314
|
+
export declare const SetUserReferrerBodySchema: z.ZodObject<{
|
|
315
|
+
referralCode: z.ZodString;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
referralCode: string;
|
|
318
|
+
}, {
|
|
319
|
+
referralCode: string;
|
|
320
|
+
}>;
|
|
321
|
+
export type SetUserReferrerBodyDto = z.infer<typeof SetUserReferrerBodySchema>;
|
|
322
|
+
export interface SetUserReferrerResponseDto {
|
|
323
|
+
rewardCredits: number;
|
|
324
|
+
}
|
|
325
|
+
export declare const GetNoticesQuerySchema: z.ZodObject<{
|
|
326
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
327
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
page: number;
|
|
330
|
+
limit: number;
|
|
331
|
+
}, {
|
|
332
|
+
page?: number | undefined;
|
|
333
|
+
limit?: number | undefined;
|
|
334
|
+
}>;
|
|
335
|
+
export type GetNoticesQueryDto = z.infer<typeof GetNoticesQuerySchema>;
|
|
336
|
+
export interface GetNoticesResponseDto {
|
|
337
|
+
data: NoticeDto[];
|
|
338
|
+
meta: {
|
|
339
|
+
total: number;
|
|
340
|
+
page: number;
|
|
341
|
+
limit: number;
|
|
342
|
+
totalPages: number;
|
|
343
|
+
};
|
|
344
|
+
unacknowledgedCount: number;
|
|
345
|
+
}
|
|
346
|
+
export declare const AcknowledgeNoticesBodySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
347
|
+
export type AcknowledgeNoticesBodyDto = z.infer<typeof AcknowledgeNoticesBodySchema>;
|
|
348
|
+
export interface AcknowledgeNoticesResponseDto {
|
|
349
|
+
}
|
|
350
|
+
export declare const ReadNoticeParamsSchema: z.ZodObject<{
|
|
351
|
+
noticeId: z.ZodBigInt;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
noticeId: bigint;
|
|
354
|
+
}, {
|
|
355
|
+
noticeId: bigint;
|
|
356
|
+
}>;
|
|
357
|
+
export type ReadNoticeParamsDto = z.infer<typeof ReadNoticeParamsSchema>;
|
|
358
|
+
export interface ReadNoticeResponseDto {
|
|
359
|
+
}
|
|
360
|
+
export declare const GetUserNotificationsQuerySchema: z.ZodObject<{
|
|
361
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
362
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
page: number;
|
|
365
|
+
limit: number;
|
|
366
|
+
}, {
|
|
367
|
+
page?: number | undefined;
|
|
368
|
+
limit?: number | undefined;
|
|
369
|
+
}>;
|
|
370
|
+
export type GetUserNotificationsQueryDto = z.infer<typeof GetUserNotificationsQuerySchema>;
|
|
371
|
+
export interface GetUserNotificationsResponseDto {
|
|
372
|
+
data: UserNotificationDto[];
|
|
373
|
+
meta: {
|
|
374
|
+
total: number;
|
|
375
|
+
page: number;
|
|
376
|
+
limit: number;
|
|
377
|
+
totalPages: number;
|
|
378
|
+
};
|
|
379
|
+
unacknowledgedCount: number;
|
|
380
|
+
}
|
|
381
|
+
export declare const AcknowledgeUserNotificationsBodySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
382
|
+
export type AcknowledgeUserNotificationsBodyDto = z.infer<typeof AcknowledgeUserNotificationsBodySchema>;
|
|
383
|
+
export interface AcknowledgeUserNotificationsResponseDto {
|
|
384
|
+
}
|
|
385
|
+
export declare const ReadUserNotificationParamsSchema: z.ZodObject<{
|
|
386
|
+
notificationId: z.ZodBigInt;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
notificationId: bigint;
|
|
389
|
+
}, {
|
|
390
|
+
notificationId: bigint;
|
|
391
|
+
}>;
|
|
392
|
+
export type ReadUserNotificationParamsDto = z.infer<typeof ReadUserNotificationParamsSchema>;
|
|
393
|
+
export interface ReadUserNotificationResponseDto {
|
|
394
|
+
}
|
|
165
395
|
export declare const GetCurrentUserSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
166
396
|
export type GetCurrentUserDto = z.infer<typeof GetCurrentUserSchema>;
|
|
167
397
|
export interface GetCurrentUserResponseDto {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.UpdateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.ReadUserNotificationParamsSchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.AcknowledgeNoticesBodySchema = exports.GetNoticesQuerySchema = exports.SetUserReferrerBodySchema = exports.GetUserReferralQuerySchema = exports.DeleteUserCommentParamsSchema = exports.ReportUserCommentParamsSchema = exports.UpdateUserCommentReactionBodySchema = exports.UpdateUserCommentReactionParamsSchema = exports.CreateUserCommentBodySchema = exports.CreateUserCommentParamsSchema = exports.GetUserCommentRepliesQuerySchema = exports.GetUserCommentRepliesParamsSchema = exports.GetUserCommentsQuerySchema = exports.GetUserCommentsParamsSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.UpdateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const user_1 = require("./user");
|
|
6
6
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
@@ -50,5 +50,66 @@ exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
|
50
50
|
}),
|
|
51
51
|
locationId: zod_1.z.coerce.bigint().optional(),
|
|
52
52
|
});
|
|
53
|
+
exports.GetUserCommentsParamsSchema = zod_1.z.object({
|
|
54
|
+
userId: zod_1.z.coerce.bigint(),
|
|
55
|
+
});
|
|
56
|
+
exports.GetUserCommentsQuerySchema = zod_1.z.object({
|
|
57
|
+
sortBy: zod_1.z.enum(['latest', 'recommended']).optional().default('latest'),
|
|
58
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
59
|
+
limit: zod_1.z.coerce.number().int().min(1).max(50).optional().default(20),
|
|
60
|
+
});
|
|
61
|
+
exports.GetUserCommentRepliesParamsSchema = zod_1.z.object({
|
|
62
|
+
commentId: zod_1.z.coerce.bigint(),
|
|
63
|
+
});
|
|
64
|
+
exports.GetUserCommentRepliesQuerySchema = zod_1.z.object({
|
|
65
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
66
|
+
limit: zod_1.z.coerce.number().int().min(1).max(50).optional().default(20),
|
|
67
|
+
});
|
|
68
|
+
exports.CreateUserCommentParamsSchema = zod_1.z.object({
|
|
69
|
+
userId: zod_1.z.coerce.bigint(),
|
|
70
|
+
});
|
|
71
|
+
exports.CreateUserCommentBodySchema = zod_1.z.object({
|
|
72
|
+
parentCommentId: zod_1.z.coerce.bigint().optional(),
|
|
73
|
+
content: zod_1.z.string().min(1).max(2000),
|
|
74
|
+
contentImageUrl: zod_1.z.string().url().optional(),
|
|
75
|
+
isSecret: zod_1.z.boolean().optional().default(false),
|
|
76
|
+
});
|
|
77
|
+
exports.UpdateUserCommentReactionParamsSchema = zod_1.z.object({
|
|
78
|
+
commentId: zod_1.z.coerce.bigint(),
|
|
79
|
+
});
|
|
80
|
+
exports.UpdateUserCommentReactionBodySchema = zod_1.z.object({
|
|
81
|
+
reactionType: zod_1.z.enum(['LIKE', 'DISLIKE']).nullable(),
|
|
82
|
+
});
|
|
83
|
+
exports.ReportUserCommentParamsSchema = zod_1.z.object({
|
|
84
|
+
userId: zod_1.z.coerce.bigint(),
|
|
85
|
+
commentId: zod_1.z.coerce.bigint(),
|
|
86
|
+
});
|
|
87
|
+
exports.DeleteUserCommentParamsSchema = zod_1.z.object({
|
|
88
|
+
userId: zod_1.z.coerce.bigint(),
|
|
89
|
+
commentId: zod_1.z.coerce.bigint(),
|
|
90
|
+
});
|
|
91
|
+
exports.GetUserReferralQuerySchema = zod_1.z.object({});
|
|
92
|
+
exports.SetUserReferrerBodySchema = zod_1.z.object({
|
|
93
|
+
referralCode: zod_1.z
|
|
94
|
+
.string()
|
|
95
|
+
.length(6)
|
|
96
|
+
.regex(/^[A-Z0-9]+$/),
|
|
97
|
+
});
|
|
98
|
+
exports.GetNoticesQuerySchema = zod_1.z.object({
|
|
99
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
100
|
+
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
101
|
+
});
|
|
102
|
+
exports.AcknowledgeNoticesBodySchema = zod_1.z.object({});
|
|
103
|
+
exports.ReadNoticeParamsSchema = zod_1.z.object({
|
|
104
|
+
noticeId: zod_1.z.coerce.bigint(),
|
|
105
|
+
});
|
|
106
|
+
exports.GetUserNotificationsQuerySchema = zod_1.z.object({
|
|
107
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
108
|
+
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
109
|
+
});
|
|
110
|
+
exports.AcknowledgeUserNotificationsBodySchema = zod_1.z.object({});
|
|
111
|
+
exports.ReadUserNotificationParamsSchema = zod_1.z.object({
|
|
112
|
+
notificationId: zod_1.z.coerce.bigint(),
|
|
113
|
+
});
|
|
53
114
|
exports.GetCurrentUserSchema = zod_1.z.object({});
|
|
54
115
|
//# sourceMappingURL=user.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iCAMgB;AASH,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASz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