@little-samo/samo-ai-sdk 0.7.4 → 0.7.5
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 +4 -4
- package/dist/dto/entities/users/user.d.ts +2 -0
- package/dist/dto/entities/users/user.js +2 -1
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +40 -18
- package/dist/dto/entities/users/user.requests.js +8 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.d.ts +12 -0
- package/dist/dto/items/item.js +6 -0
- package/dist/dto/items/item.js.map +1 -1
- package/dist/dto/items/item.requests.d.ts +44 -0
- package/dist/dto/items/item.requests.js +6 -1
- package/dist/dto/items/item.requests.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +24 -24
- package/dist/dto/locations/location.snapshot.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
|
7
7
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
8
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
11
|
+
limit: number;
|
|
12
12
|
}, {
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
page?: number | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
17
17
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -369,11 +369,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
369
369
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
370
370
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
limit: number;
|
|
373
372
|
page: number;
|
|
373
|
+
limit: number;
|
|
374
374
|
}, {
|
|
375
|
-
limit?: number | undefined;
|
|
376
375
|
page?: number | undefined;
|
|
376
|
+
limit?: number | undefined;
|
|
377
377
|
}>;
|
|
378
378
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
379
379
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -66,6 +66,8 @@ export declare const UserAvatarSchema: z.ZodObject<{
|
|
|
66
66
|
createdAt?: Date | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export type UserAvatarDto = z.infer<typeof UserAvatarSchema>;
|
|
69
|
+
export declare const UserApiKeyTypeSchema: z.ZodEnum<["AVATAR"]>;
|
|
70
|
+
export type UserApiKeyType = z.infer<typeof UserApiKeyTypeSchema>;
|
|
69
71
|
export interface UserCommentDto {
|
|
70
72
|
id: bigint;
|
|
71
73
|
authorUserId: UserId;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UserAvatarSchema = void 0;
|
|
6
|
+
exports.UserApiKeyTypeSchema = exports.UserAvatarSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.UserAvatarSchema = zod_1.default.object({
|
|
9
9
|
id: zod_1.default.coerce.bigint().optional(),
|
|
@@ -14,4 +14,5 @@ exports.UserAvatarSchema = zod_1.default.object({
|
|
|
14
14
|
appearance: zod_1.default.string().max(500),
|
|
15
15
|
createdAt: zod_1.default.coerce.date().optional(),
|
|
16
16
|
});
|
|
17
|
+
exports.UserApiKeyTypeSchema = zod_1.default.enum(['AVATAR']);
|
|
17
18
|
//# sourceMappingURL=user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAmDP,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACrC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC/B,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAmDP,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACrC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC/B,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAKU,QAAA,oBAAoB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -64,11 +64,11 @@ export declare const GetUserAvatarsQuerySchema: z.ZodObject<{
|
|
|
64
64
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
65
65
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
limit: number;
|
|
68
67
|
page: number;
|
|
68
|
+
limit: number;
|
|
69
69
|
}, {
|
|
70
|
-
limit?: number | undefined;
|
|
71
70
|
page?: number | undefined;
|
|
71
|
+
limit?: number | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
export type GetUserAvatarsQueryDto = z.infer<typeof GetUserAvatarsQuerySchema>;
|
|
74
74
|
export interface GetUserAvatarsResponseDto {
|
|
@@ -188,11 +188,11 @@ export declare const GetUserFollowersQuerySchema: z.ZodObject<{
|
|
|
188
188
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
189
189
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
limit: number;
|
|
192
191
|
page: number;
|
|
192
|
+
limit: number;
|
|
193
193
|
}, {
|
|
194
|
-
limit?: number | undefined;
|
|
195
194
|
page?: number | undefined;
|
|
195
|
+
limit?: number | undefined;
|
|
196
196
|
}>;
|
|
197
197
|
export type GetUserFollowersQueryDto = z.infer<typeof GetUserFollowersQuerySchema>;
|
|
198
198
|
export interface GetUserFollowersResponseDto {
|
|
@@ -216,11 +216,11 @@ export declare const GetUserFollowingQuerySchema: z.ZodObject<{
|
|
|
216
216
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
217
217
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
limit: number;
|
|
220
219
|
page: number;
|
|
220
|
+
limit: number;
|
|
221
221
|
}, {
|
|
222
|
-
limit?: number | undefined;
|
|
223
222
|
page?: number | undefined;
|
|
223
|
+
limit?: number | undefined;
|
|
224
224
|
}>;
|
|
225
225
|
export type GetUserFollowingQueryDto = z.infer<typeof GetUserFollowingQuerySchema>;
|
|
226
226
|
export interface GetUserFollowingResponseDto {
|
|
@@ -245,12 +245,12 @@ export declare const GetUserCommentsQuerySchema: z.ZodObject<{
|
|
|
245
245
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
246
246
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
limit: number;
|
|
249
248
|
page: number;
|
|
249
|
+
limit: number;
|
|
250
250
|
sortBy: "latest" | "recommended";
|
|
251
251
|
}, {
|
|
252
|
-
limit?: number | undefined;
|
|
253
252
|
page?: number | undefined;
|
|
253
|
+
limit?: number | undefined;
|
|
254
254
|
sortBy?: "latest" | "recommended" | undefined;
|
|
255
255
|
}>;
|
|
256
256
|
export type GetUserCommentsQueryDto = z.infer<typeof GetUserCommentsQuerySchema>;
|
|
@@ -275,11 +275,11 @@ export declare const GetUserCommentRepliesQuerySchema: z.ZodObject<{
|
|
|
275
275
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
276
276
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
limit: number;
|
|
279
278
|
page: number;
|
|
279
|
+
limit: number;
|
|
280
280
|
}, {
|
|
281
|
-
limit?: number | undefined;
|
|
282
281
|
page?: number | undefined;
|
|
282
|
+
limit?: number | undefined;
|
|
283
283
|
}>;
|
|
284
284
|
export type GetUserCommentRepliesQueryDto = z.infer<typeof GetUserCommentRepliesQuerySchema>;
|
|
285
285
|
export interface GetUserCommentRepliesResponseDto {
|
|
@@ -343,11 +343,11 @@ export declare const ReportUserCommentParamsSchema: z.ZodObject<{
|
|
|
343
343
|
userId: z.ZodBigInt;
|
|
344
344
|
commentId: z.ZodBigInt;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
commentId: bigint;
|
|
347
346
|
userId: bigint;
|
|
348
|
-
}, {
|
|
349
347
|
commentId: bigint;
|
|
348
|
+
}, {
|
|
350
349
|
userId: bigint;
|
|
350
|
+
commentId: bigint;
|
|
351
351
|
}>;
|
|
352
352
|
export type ReportUserCommentParamsDto = z.infer<typeof ReportUserCommentParamsSchema>;
|
|
353
353
|
export interface ReportUserCommentResponseDto {
|
|
@@ -358,11 +358,11 @@ export declare const DeleteUserCommentParamsSchema: z.ZodObject<{
|
|
|
358
358
|
userId: z.ZodBigInt;
|
|
359
359
|
commentId: z.ZodBigInt;
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
commentId: bigint;
|
|
362
361
|
userId: bigint;
|
|
363
|
-
}, {
|
|
364
362
|
commentId: bigint;
|
|
363
|
+
}, {
|
|
365
364
|
userId: bigint;
|
|
365
|
+
commentId: bigint;
|
|
366
366
|
}>;
|
|
367
367
|
export type DeleteUserCommentParamsDto = z.infer<typeof DeleteUserCommentParamsSchema>;
|
|
368
368
|
export interface DeleteUserCommentResponseDto {
|
|
@@ -394,11 +394,11 @@ export declare const GetNoticesQuerySchema: z.ZodObject<{
|
|
|
394
394
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
395
395
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
|
-
limit: number;
|
|
398
397
|
page: number;
|
|
398
|
+
limit: number;
|
|
399
399
|
}, {
|
|
400
|
-
limit?: number | undefined;
|
|
401
400
|
page?: number | undefined;
|
|
401
|
+
limit?: number | undefined;
|
|
402
402
|
}>;
|
|
403
403
|
export type GetNoticesQueryDto = z.infer<typeof GetNoticesQuerySchema>;
|
|
404
404
|
export interface GetNoticesResponseDto {
|
|
@@ -433,11 +433,11 @@ export declare const GetUserNotificationsQuerySchema: z.ZodObject<{
|
|
|
433
433
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
434
434
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
435
435
|
}, "strip", z.ZodTypeAny, {
|
|
436
|
-
limit: number;
|
|
437
436
|
page: number;
|
|
437
|
+
limit: number;
|
|
438
438
|
}, {
|
|
439
|
-
limit?: number | undefined;
|
|
440
439
|
page?: number | undefined;
|
|
440
|
+
limit?: number | undefined;
|
|
441
441
|
}>;
|
|
442
442
|
export type GetUserNotificationsQueryDto = z.infer<typeof GetUserNotificationsQuerySchema>;
|
|
443
443
|
export interface GetUserNotificationsResponseDto {
|
|
@@ -479,6 +479,28 @@ export type GetUserSettingsQueryDto = z.infer<typeof GetUserSettingsQuerySchema>
|
|
|
479
479
|
export interface GetUserSettingsResponseDto {
|
|
480
480
|
settings: Record<string, string | number | boolean | object | null>;
|
|
481
481
|
}
|
|
482
|
+
export declare const GetUserApiKeyQuerySchema: z.ZodObject<{
|
|
483
|
+
type: z.ZodEnum<["AVATAR"]>;
|
|
484
|
+
}, "strip", z.ZodTypeAny, {
|
|
485
|
+
type: "AVATAR";
|
|
486
|
+
}, {
|
|
487
|
+
type: "AVATAR";
|
|
488
|
+
}>;
|
|
489
|
+
export type GetUserApiKeyQueryDto = z.infer<typeof GetUserApiKeyQuerySchema>;
|
|
490
|
+
export interface GetUserApiKeyResponseDto {
|
|
491
|
+
apiKey: string;
|
|
492
|
+
}
|
|
493
|
+
export declare const RegenerateUserApiKeyBodySchema: z.ZodObject<{
|
|
494
|
+
type: z.ZodEnum<["AVATAR"]>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
type: "AVATAR";
|
|
497
|
+
}, {
|
|
498
|
+
type: "AVATAR";
|
|
499
|
+
}>;
|
|
500
|
+
export type RegenerateUserApiKeyBodyDto = z.infer<typeof RegenerateUserApiKeyBodySchema>;
|
|
501
|
+
export interface RegenerateUserApiKeyResponseDto {
|
|
502
|
+
apiKey: string;
|
|
503
|
+
}
|
|
482
504
|
export declare const GetCurrentUserSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
483
505
|
export type GetCurrentUserDto = z.infer<typeof GetCurrentUserSchema>;
|
|
484
506
|
export interface GetCurrentUserResponseDto {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = 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.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.DeleteUserAvatarBodySchema = exports.CreateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.DeleteCurrentUserBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.RegenerateUserApiKeyBodySchema = exports.GetUserApiKeyQuerySchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = 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.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.DeleteUserAvatarBodySchema = exports.CreateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.DeleteCurrentUserBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const user_1 = require("./user");
|
|
5
6
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
7
|
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
7
8
|
username: zod_1.z
|
|
@@ -147,5 +148,11 @@ exports.GetUserSettingsQuerySchema = zod_1.z.object({
|
|
|
147
148
|
message: 'At least one key must be provided',
|
|
148
149
|
}),
|
|
149
150
|
});
|
|
151
|
+
exports.GetUserApiKeyQuerySchema = zod_1.z.object({
|
|
152
|
+
type: user_1.UserApiKeyTypeSchema,
|
|
153
|
+
});
|
|
154
|
+
exports.RegenerateUserApiKeyBodySchema = zod_1.z.object({
|
|
155
|
+
type: user_1.UserApiKeyTypeSchema,
|
|
156
|
+
});
|
|
150
157
|
exports.GetCurrentUserSchema = zod_1.z.object({});
|
|
151
158
|
//# 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":";;;AACA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAExB,iCAMgB;AASH,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EA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AAC,CAAC"}
|
package/dist/dto/items/item.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
export interface ItemDto {
|
|
2
3
|
id: number;
|
|
3
4
|
itemDataId: number;
|
|
@@ -18,3 +19,14 @@ export interface ItemUpdateDto {
|
|
|
18
19
|
param4: number;
|
|
19
20
|
updatedAt: Date;
|
|
20
21
|
}
|
|
22
|
+
export declare const ItemStackSchema: z.ZodObject<{
|
|
23
|
+
itemDataId: z.ZodNumber;
|
|
24
|
+
count: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
itemDataId: number;
|
|
27
|
+
count: number;
|
|
28
|
+
}, {
|
|
29
|
+
itemDataId: number;
|
|
30
|
+
count: number;
|
|
31
|
+
}>;
|
|
32
|
+
export type ItemStackDto = z.infer<typeof ItemStackSchema>;
|
package/dist/dto/items/item.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemStackSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ItemStackSchema = zod_1.z.object({
|
|
6
|
+
itemDataId: zod_1.z.number().int().positive(),
|
|
7
|
+
count: zod_1.z.number().int().positive(),
|
|
8
|
+
});
|
|
3
9
|
//# sourceMappingURL=item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../src/dto/items/item.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../src/dto/items/item.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAwBX,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|
|
@@ -11,3 +11,47 @@ export type GetUserItemsQueryDto = z.infer<typeof GetUserItemsQuerySchema>;
|
|
|
11
11
|
export interface GetUserItemsResponseDto {
|
|
12
12
|
items: ItemDto[];
|
|
13
13
|
}
|
|
14
|
+
export declare const ExchangeItemsBodySchema: z.ZodObject<{
|
|
15
|
+
requiredItems: z.ZodArray<z.ZodObject<{
|
|
16
|
+
itemDataId: z.ZodNumber;
|
|
17
|
+
count: z.ZodNumber;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
itemDataId: number;
|
|
20
|
+
count: number;
|
|
21
|
+
}, {
|
|
22
|
+
itemDataId: number;
|
|
23
|
+
count: number;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
receivedItems: z.ZodArray<z.ZodObject<{
|
|
26
|
+
itemDataId: z.ZodNumber;
|
|
27
|
+
count: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
itemDataId: number;
|
|
30
|
+
count: number;
|
|
31
|
+
}, {
|
|
32
|
+
itemDataId: number;
|
|
33
|
+
count: number;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
requiredItems: {
|
|
37
|
+
itemDataId: number;
|
|
38
|
+
count: number;
|
|
39
|
+
}[];
|
|
40
|
+
receivedItems: {
|
|
41
|
+
itemDataId: number;
|
|
42
|
+
count: number;
|
|
43
|
+
}[];
|
|
44
|
+
}, {
|
|
45
|
+
requiredItems: {
|
|
46
|
+
itemDataId: number;
|
|
47
|
+
count: number;
|
|
48
|
+
}[];
|
|
49
|
+
receivedItems: {
|
|
50
|
+
itemDataId: number;
|
|
51
|
+
count: number;
|
|
52
|
+
}[];
|
|
53
|
+
}>;
|
|
54
|
+
export type ExchangeItemsBodyDto = z.infer<typeof ExchangeItemsBodySchema>;
|
|
55
|
+
export interface ExchangeItemsResponseDto {
|
|
56
|
+
items: ItemDto[];
|
|
57
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUserItemsQuerySchema = void 0;
|
|
3
|
+
exports.ExchangeItemsBodySchema = exports.GetUserItemsQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const item_1 = require("./item");
|
|
5
6
|
exports.GetUserItemsQuerySchema = zod_1.z.object({
|
|
6
7
|
itemDataIds: zod_1.z
|
|
7
8
|
.string()
|
|
@@ -18,4 +19,8 @@ exports.GetUserItemsQuerySchema = zod_1.z.object({
|
|
|
18
19
|
message: 'itemDataIds must contain at most 50 item data IDs',
|
|
19
20
|
}),
|
|
20
21
|
});
|
|
22
|
+
exports.ExchangeItemsBodySchema = zod_1.z.object({
|
|
23
|
+
requiredItems: zod_1.z.array(item_1.ItemStackSchema).min(1).max(10),
|
|
24
|
+
receivedItems: zod_1.z.array(item_1.ItemStackSchema).min(1).max(10),
|
|
25
|
+
});
|
|
21
26
|
//# sourceMappingURL=item.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iCAAkD;AAOrC,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACjB,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAC3B,OAAO,GAAG;aACP,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;aAC/C,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACzC,OAAO,EAAE,mDAAmD;KAC7D,CAAC;CACL,CAAC,CAAC;AASU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACtD,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;CACvD,CAAC,CAAC"}
|
|
@@ -15,8 +15,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
15
15
|
limit: number;
|
|
16
16
|
cursor?: string | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
cursor?: string | undefined;
|
|
19
18
|
limit?: number | undefined;
|
|
19
|
+
cursor?: string | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
22
22
|
export interface UserLocationsResponseDto {
|
|
@@ -30,11 +30,11 @@ export declare const PublishedLocationsQuerySchema: z.ZodObject<{
|
|
|
30
30
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
31
31
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
limit: number;
|
|
34
33
|
page: number;
|
|
34
|
+
limit: number;
|
|
35
35
|
}, {
|
|
36
|
-
limit?: number | undefined;
|
|
37
36
|
page?: number | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
export type PublishedLocationsQueryDto = z.infer<typeof PublishedLocationsQuerySchema>;
|
|
40
40
|
export interface PublishedLocationsResponseDto {
|
|
@@ -356,12 +356,12 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
356
356
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
357
357
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
358
358
|
}, "strip", z.ZodTypeAny, {
|
|
359
|
-
limit: number;
|
|
360
359
|
page: number;
|
|
360
|
+
limit: number;
|
|
361
361
|
visibility: "edited" | "private" | "public" | "publish";
|
|
362
362
|
}, {
|
|
363
|
-
limit?: number | undefined;
|
|
364
363
|
page?: number | undefined;
|
|
364
|
+
limit?: number | undefined;
|
|
365
365
|
visibility?: "edited" | "private" | "public" | "publish" | undefined;
|
|
366
366
|
}>;
|
|
367
367
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
@@ -384,19 +384,19 @@ export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
|
|
|
384
384
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
385
385
|
}, "strip", z.ZodTypeAny, {
|
|
386
386
|
type: "NOVEL";
|
|
387
|
-
limit: number;
|
|
388
387
|
page: number;
|
|
388
|
+
limit: number;
|
|
389
|
+
sortBy: "latest" | "popular";
|
|
389
390
|
gender: "all" | "male" | "female";
|
|
390
|
-
sortBy: "popular" | "latest";
|
|
391
391
|
tag?: string | undefined;
|
|
392
392
|
ownerUserId?: bigint | undefined;
|
|
393
393
|
}, {
|
|
394
394
|
type: "NOVEL";
|
|
395
|
-
limit?: number | undefined;
|
|
396
395
|
page?: number | undefined;
|
|
396
|
+
limit?: number | undefined;
|
|
397
|
+
sortBy?: "latest" | "popular" | undefined;
|
|
397
398
|
gender?: "all" | "male" | "female" | undefined;
|
|
398
399
|
tag?: string | undefined;
|
|
399
|
-
sortBy?: "popular" | "latest" | undefined;
|
|
400
400
|
ownerUserId?: bigint | undefined;
|
|
401
401
|
}>;
|
|
402
402
|
export type PublishedLocationPresetsQueryDto = z.infer<typeof PublishedLocationPresetsQuerySchema>;
|
|
@@ -413,11 +413,11 @@ export declare const FollowingLocationPresetsQuerySchema: z.ZodObject<{
|
|
|
413
413
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
414
414
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
|
-
limit: number;
|
|
417
416
|
page: number;
|
|
417
|
+
limit: number;
|
|
418
418
|
}, {
|
|
419
|
-
limit?: number | undefined;
|
|
420
419
|
page?: number | undefined;
|
|
420
|
+
limit?: number | undefined;
|
|
421
421
|
}>;
|
|
422
422
|
export type FollowingLocationPresetsQueryDto = z.infer<typeof FollowingLocationPresetsQuerySchema>;
|
|
423
423
|
export interface FollowingLocationPresetsResponseDto {
|
|
@@ -436,18 +436,18 @@ export declare const SearchLocationPresetsQuerySchema: z.ZodObject<{
|
|
|
436
436
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
437
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
438
|
type: "NOVEL";
|
|
439
|
-
limit: number;
|
|
440
439
|
page: number;
|
|
440
|
+
limit: number;
|
|
441
|
+
sortBy: "latest" | "popular";
|
|
441
442
|
gender: "all" | "male" | "female";
|
|
442
|
-
sortBy: "popular" | "latest";
|
|
443
443
|
query: string;
|
|
444
444
|
}, {
|
|
445
445
|
type: "NOVEL";
|
|
446
446
|
query: string;
|
|
447
|
-
limit?: number | undefined;
|
|
448
447
|
page?: number | undefined;
|
|
448
|
+
limit?: number | undefined;
|
|
449
|
+
sortBy?: "latest" | "popular" | undefined;
|
|
449
450
|
gender?: "all" | "male" | "female" | undefined;
|
|
450
|
-
sortBy?: "popular" | "latest" | undefined;
|
|
451
451
|
}>;
|
|
452
452
|
export type SearchLocationPresetsQueryDto = z.infer<typeof SearchLocationPresetsQuerySchema>;
|
|
453
453
|
export interface SearchLocationPresetsResponseDto {
|
|
@@ -1787,8 +1787,8 @@ export declare const GetLocationPresetLocationsParamsSchema: z.ZodObject<{
|
|
|
1787
1787
|
cursor?: string | undefined;
|
|
1788
1788
|
}, {
|
|
1789
1789
|
presetId: bigint;
|
|
1790
|
-
cursor?: string | undefined;
|
|
1791
1790
|
limit?: number | undefined;
|
|
1791
|
+
cursor?: string | undefined;
|
|
1792
1792
|
}>;
|
|
1793
1793
|
export type GetLocationPresetLocationsParamsDto = z.infer<typeof GetLocationPresetLocationsParamsSchema>;
|
|
1794
1794
|
export interface GetLocationPresetLocationsResponseDto {
|
|
@@ -1811,12 +1811,12 @@ export declare const GetLocationPresetCommentsQuerySchema: z.ZodObject<{
|
|
|
1811
1811
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1812
1812
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1813
1813
|
}, "strip", z.ZodTypeAny, {
|
|
1814
|
-
limit: number;
|
|
1815
1814
|
page: number;
|
|
1815
|
+
limit: number;
|
|
1816
1816
|
sortBy: "latest" | "recommended";
|
|
1817
1817
|
}, {
|
|
1818
|
-
limit?: number | undefined;
|
|
1819
1818
|
page?: number | undefined;
|
|
1819
|
+
limit?: number | undefined;
|
|
1820
1820
|
sortBy?: "latest" | "recommended" | undefined;
|
|
1821
1821
|
}>;
|
|
1822
1822
|
export type GetLocationPresetCommentsQueryDto = z.infer<typeof GetLocationPresetCommentsQuerySchema>;
|
|
@@ -1842,11 +1842,11 @@ export declare const GetLocationPresetCommentRepliesQuerySchema: z.ZodObject<{
|
|
|
1842
1842
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1843
1843
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1844
1844
|
}, "strip", z.ZodTypeAny, {
|
|
1845
|
-
limit: number;
|
|
1846
1845
|
page: number;
|
|
1846
|
+
limit: number;
|
|
1847
1847
|
}, {
|
|
1848
|
-
limit?: number | undefined;
|
|
1849
1848
|
page?: number | undefined;
|
|
1849
|
+
limit?: number | undefined;
|
|
1850
1850
|
}>;
|
|
1851
1851
|
export type GetLocationPresetCommentRepliesQueryDto = z.infer<typeof GetLocationPresetCommentRepliesQuerySchema>;
|
|
1852
1852
|
export interface GetLocationPresetCommentRepliesResponseDto {
|
|
@@ -1910,11 +1910,11 @@ export declare const ReportLocationPresetCommentParamsSchema: z.ZodObject<{
|
|
|
1910
1910
|
presetId: z.ZodBigInt;
|
|
1911
1911
|
commentId: z.ZodBigInt;
|
|
1912
1912
|
}, "strip", z.ZodTypeAny, {
|
|
1913
|
-
presetId: bigint;
|
|
1914
1913
|
commentId: bigint;
|
|
1915
|
-
}, {
|
|
1916
1914
|
presetId: bigint;
|
|
1915
|
+
}, {
|
|
1917
1916
|
commentId: bigint;
|
|
1917
|
+
presetId: bigint;
|
|
1918
1918
|
}>;
|
|
1919
1919
|
export type ReportLocationPresetCommentParamsDto = z.infer<typeof ReportLocationPresetCommentParamsSchema>;
|
|
1920
1920
|
export interface ReportLocationPresetCommentResponseDto {
|
|
@@ -1925,11 +1925,11 @@ export declare const DeleteLocationPresetCommentParamsSchema: z.ZodObject<{
|
|
|
1925
1925
|
presetId: z.ZodBigInt;
|
|
1926
1926
|
commentId: z.ZodBigInt;
|
|
1927
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1928
|
-
presetId: bigint;
|
|
1929
1928
|
commentId: bigint;
|
|
1930
|
-
}, {
|
|
1931
1929
|
presetId: bigint;
|
|
1930
|
+
}, {
|
|
1932
1931
|
commentId: bigint;
|
|
1932
|
+
presetId: bigint;
|
|
1933
1933
|
}>;
|
|
1934
1934
|
export type DeleteLocationPresetCommentParamsDto = z.infer<typeof DeleteLocationPresetCommentParamsSchema>;
|
|
1935
1935
|
export interface DeleteLocationPresetCommentResponseDto {
|