@little-samo/samo-ai-sdk 0.7.4 → 0.7.6
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 +26 -26
- 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 +61 -28
- package/dist/dto/entities/users/user.requests.js +11 -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 +150 -150
- 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 {
|
|
@@ -152,15 +152,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
152
152
|
}>>;
|
|
153
153
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
|
-
name?: string | undefined;
|
|
156
155
|
role?: string | undefined;
|
|
157
156
|
avatar?: string | undefined;
|
|
158
157
|
referenceAvatar?: string | undefined;
|
|
159
158
|
appearance?: string | undefined;
|
|
159
|
+
name?: string | undefined;
|
|
160
160
|
core?: {
|
|
161
161
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
162
162
|
} | undefined;
|
|
163
|
-
rules?: string[] | undefined;
|
|
164
163
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
165
164
|
languages?: string[] | undefined;
|
|
166
165
|
timeZone?: string | undefined;
|
|
@@ -187,16 +186,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
187
186
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
188
187
|
} | undefined;
|
|
189
188
|
} | undefined;
|
|
189
|
+
rules?: string[] | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
name?: string | undefined;
|
|
192
191
|
role?: string | undefined;
|
|
193
192
|
avatar?: string | undefined;
|
|
194
193
|
referenceAvatar?: string | undefined;
|
|
195
194
|
appearance?: string | undefined;
|
|
195
|
+
name?: string | undefined;
|
|
196
196
|
core?: {
|
|
197
197
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
198
198
|
} | undefined;
|
|
199
|
-
rules?: string[] | undefined;
|
|
200
199
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
201
200
|
languages?: string[] | undefined;
|
|
202
201
|
timeZone?: string | undefined;
|
|
@@ -223,18 +222,19 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
223
222
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
224
223
|
} | undefined;
|
|
225
224
|
} | undefined;
|
|
225
|
+
rules?: string[] | undefined;
|
|
226
226
|
}>;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
agentId: bigint;
|
|
228
229
|
config: {
|
|
229
|
-
name?: string | undefined;
|
|
230
230
|
role?: string | undefined;
|
|
231
231
|
avatar?: string | undefined;
|
|
232
232
|
referenceAvatar?: string | undefined;
|
|
233
233
|
appearance?: string | undefined;
|
|
234
|
+
name?: string | undefined;
|
|
234
235
|
core?: {
|
|
235
236
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
236
237
|
} | undefined;
|
|
237
|
-
rules?: string[] | undefined;
|
|
238
238
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
239
239
|
languages?: string[] | undefined;
|
|
240
240
|
timeZone?: string | undefined;
|
|
@@ -261,19 +261,19 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
261
261
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
262
262
|
} | undefined;
|
|
263
263
|
} | undefined;
|
|
264
|
+
rules?: string[] | undefined;
|
|
264
265
|
};
|
|
265
|
-
agentId: bigint;
|
|
266
266
|
}, {
|
|
267
|
+
agentId: bigint;
|
|
267
268
|
config: {
|
|
268
|
-
name?: string | undefined;
|
|
269
269
|
role?: string | undefined;
|
|
270
270
|
avatar?: string | undefined;
|
|
271
271
|
referenceAvatar?: string | undefined;
|
|
272
272
|
appearance?: string | undefined;
|
|
273
|
+
name?: string | undefined;
|
|
273
274
|
core?: {
|
|
274
275
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
275
276
|
} | undefined;
|
|
276
|
-
rules?: string[] | undefined;
|
|
277
277
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
278
278
|
languages?: string[] | undefined;
|
|
279
279
|
timeZone?: string | undefined;
|
|
@@ -300,8 +300,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
300
300
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
301
301
|
} | undefined;
|
|
302
302
|
} | undefined;
|
|
303
|
+
rules?: string[] | undefined;
|
|
303
304
|
};
|
|
304
|
-
agentId: bigint;
|
|
305
305
|
}>;
|
|
306
306
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
307
307
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -327,6 +327,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
327
327
|
token: string;
|
|
328
328
|
}>]>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
agentId: bigint;
|
|
330
331
|
credential: {
|
|
331
332
|
type: "notion";
|
|
332
333
|
token: string;
|
|
@@ -334,8 +335,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
334
335
|
type: "notion";
|
|
335
336
|
token: string;
|
|
336
337
|
};
|
|
337
|
-
agentId: bigint;
|
|
338
338
|
}, {
|
|
339
|
+
agentId: bigint;
|
|
339
340
|
credential: {
|
|
340
341
|
type: "notion";
|
|
341
342
|
token: string;
|
|
@@ -343,7 +344,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
343
344
|
type: "notion";
|
|
344
345
|
token: string;
|
|
345
346
|
};
|
|
346
|
-
agentId: bigint;
|
|
347
347
|
}>;
|
|
348
348
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
349
349
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -354,11 +354,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
354
354
|
agentId: z.ZodBigInt;
|
|
355
355
|
credentialType: z.ZodString;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
credentialType: string;
|
|
358
357
|
agentId: bigint;
|
|
359
|
-
}, {
|
|
360
358
|
credentialType: string;
|
|
359
|
+
}, {
|
|
361
360
|
agentId: bigint;
|
|
361
|
+
credentialType: string;
|
|
362
362
|
}>;
|
|
363
363
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
364
364
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -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 {
|
|
@@ -499,15 +499,14 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
499
499
|
}>>;
|
|
500
500
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
501
501
|
}, "strict", z.ZodTypeAny, {
|
|
502
|
-
name?: string | undefined;
|
|
503
502
|
role?: string | undefined;
|
|
504
503
|
avatar?: string | undefined;
|
|
505
504
|
referenceAvatar?: string | undefined;
|
|
506
505
|
appearance?: string | undefined;
|
|
506
|
+
name?: string | undefined;
|
|
507
507
|
core?: {
|
|
508
508
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
509
509
|
} | undefined;
|
|
510
|
-
rules?: string[] | undefined;
|
|
511
510
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
512
511
|
languages?: string[] | undefined;
|
|
513
512
|
timeZone?: string | undefined;
|
|
@@ -534,16 +533,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
534
533
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
535
534
|
} | undefined;
|
|
536
535
|
} | undefined;
|
|
536
|
+
rules?: string[] | undefined;
|
|
537
537
|
}, {
|
|
538
|
-
name?: string | undefined;
|
|
539
538
|
role?: string | undefined;
|
|
540
539
|
avatar?: string | undefined;
|
|
541
540
|
referenceAvatar?: string | undefined;
|
|
542
541
|
appearance?: string | undefined;
|
|
542
|
+
name?: string | undefined;
|
|
543
543
|
core?: {
|
|
544
544
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
545
545
|
} | undefined;
|
|
546
|
-
rules?: string[] | undefined;
|
|
547
546
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
548
547
|
languages?: string[] | undefined;
|
|
549
548
|
timeZone?: string | undefined;
|
|
@@ -570,18 +569,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
570
569
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
571
570
|
} | undefined;
|
|
572
571
|
} | undefined;
|
|
572
|
+
rules?: string[] | undefined;
|
|
573
573
|
}>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
575
|
config: {
|
|
576
|
-
name?: string | undefined;
|
|
577
576
|
role?: string | undefined;
|
|
578
577
|
avatar?: string | undefined;
|
|
579
578
|
referenceAvatar?: string | undefined;
|
|
580
579
|
appearance?: string | undefined;
|
|
580
|
+
name?: string | undefined;
|
|
581
581
|
core?: {
|
|
582
582
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
583
583
|
} | undefined;
|
|
584
|
-
rules?: string[] | undefined;
|
|
585
584
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
586
585
|
languages?: string[] | undefined;
|
|
587
586
|
timeZone?: string | undefined;
|
|
@@ -608,18 +607,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
608
607
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
609
608
|
} | undefined;
|
|
610
609
|
} | undefined;
|
|
610
|
+
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}, {
|
|
613
613
|
config: {
|
|
614
|
-
name?: string | undefined;
|
|
615
614
|
role?: string | undefined;
|
|
616
615
|
avatar?: string | undefined;
|
|
617
616
|
referenceAvatar?: string | undefined;
|
|
618
617
|
appearance?: string | undefined;
|
|
618
|
+
name?: string | undefined;
|
|
619
619
|
core?: {
|
|
620
620
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
621
621
|
} | undefined;
|
|
622
|
-
rules?: string[] | undefined;
|
|
623
622
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
624
623
|
languages?: string[] | undefined;
|
|
625
624
|
timeZone?: string | undefined;
|
|
@@ -646,6 +645,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
646
645
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
647
646
|
} | undefined;
|
|
648
647
|
} | undefined;
|
|
648
|
+
rules?: string[] | undefined;
|
|
649
649
|
};
|
|
650
650
|
}>;
|
|
651
651
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -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"}
|
|
@@ -21,27 +21,27 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
21
21
|
bio: z.ZodOptional<z.ZodString>;
|
|
22
22
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
role?: string | undefined;
|
|
25
|
-
avatar?: string | undefined;
|
|
26
|
-
referenceAvatar?: string | undefined;
|
|
27
|
-
appearance?: string | undefined;
|
|
28
24
|
username?: string | undefined;
|
|
29
25
|
nickname?: string | undefined;
|
|
30
26
|
birthDate?: Date | undefined;
|
|
31
27
|
profilePicture?: string | undefined;
|
|
32
|
-
avatarName?: string | undefined;
|
|
33
|
-
bio?: string | undefined;
|
|
34
|
-
isAllowSensitive?: boolean | undefined;
|
|
35
|
-
}, {
|
|
36
28
|
role?: string | undefined;
|
|
29
|
+
avatarName?: string | undefined;
|
|
37
30
|
avatar?: string | undefined;
|
|
38
31
|
referenceAvatar?: string | undefined;
|
|
39
32
|
appearance?: string | undefined;
|
|
33
|
+
bio?: string | undefined;
|
|
34
|
+
isAllowSensitive?: boolean | undefined;
|
|
35
|
+
}, {
|
|
40
36
|
username?: string | undefined;
|
|
41
37
|
nickname?: string | undefined;
|
|
42
38
|
birthDate?: Date | undefined;
|
|
43
39
|
profilePicture?: string | undefined;
|
|
40
|
+
role?: string | undefined;
|
|
44
41
|
avatarName?: string | undefined;
|
|
42
|
+
avatar?: string | undefined;
|
|
43
|
+
referenceAvatar?: string | undefined;
|
|
44
|
+
appearance?: string | undefined;
|
|
45
45
|
bio?: string | undefined;
|
|
46
46
|
isAllowSensitive?: boolean | undefined;
|
|
47
47
|
}>;
|
|
@@ -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 {
|
|
@@ -80,6 +80,17 @@ export interface GetUserAvatarsResponseDto {
|
|
|
80
80
|
totalPages: number;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
+
export declare const GetUserAvatarParamsSchema: z.ZodObject<{
|
|
84
|
+
id: z.ZodBigInt;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
id: bigint;
|
|
87
|
+
}, {
|
|
88
|
+
id: bigint;
|
|
89
|
+
}>;
|
|
90
|
+
export type GetUserAvatarParamsDto = z.infer<typeof GetUserAvatarParamsSchema>;
|
|
91
|
+
export interface GetUserAvatarResponseDto {
|
|
92
|
+
avatar: UserAvatarDto;
|
|
93
|
+
}
|
|
83
94
|
export declare const CreateUserAvatarBodySchema: z.ZodObject<{
|
|
84
95
|
name: z.ZodString;
|
|
85
96
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -87,16 +98,16 @@ export declare const CreateUserAvatarBodySchema: z.ZodObject<{
|
|
|
87
98
|
referenceAvatar: z.ZodString;
|
|
88
99
|
appearance: z.ZodString;
|
|
89
100
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
name: string;
|
|
91
101
|
avatar: string;
|
|
92
102
|
referenceAvatar: string;
|
|
93
103
|
appearance: string;
|
|
104
|
+
name: string;
|
|
94
105
|
role?: string | undefined;
|
|
95
106
|
}, {
|
|
96
|
-
name: string;
|
|
97
107
|
avatar: string;
|
|
98
108
|
referenceAvatar: string;
|
|
99
109
|
appearance: string;
|
|
110
|
+
name: string;
|
|
100
111
|
role?: string | undefined;
|
|
101
112
|
}>;
|
|
102
113
|
export type CreateUserAvatarBodyDto = z.infer<typeof CreateUserAvatarBodySchema>;
|
|
@@ -188,11 +199,11 @@ export declare const GetUserFollowersQuerySchema: z.ZodObject<{
|
|
|
188
199
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
189
200
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
190
201
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
limit: number;
|
|
192
202
|
page: number;
|
|
203
|
+
limit: number;
|
|
193
204
|
}, {
|
|
194
|
-
limit?: number | undefined;
|
|
195
205
|
page?: number | undefined;
|
|
206
|
+
limit?: number | undefined;
|
|
196
207
|
}>;
|
|
197
208
|
export type GetUserFollowersQueryDto = z.infer<typeof GetUserFollowersQuerySchema>;
|
|
198
209
|
export interface GetUserFollowersResponseDto {
|
|
@@ -216,11 +227,11 @@ export declare const GetUserFollowingQuerySchema: z.ZodObject<{
|
|
|
216
227
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
217
228
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
218
229
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
limit: number;
|
|
220
230
|
page: number;
|
|
231
|
+
limit: number;
|
|
221
232
|
}, {
|
|
222
|
-
limit?: number | undefined;
|
|
223
233
|
page?: number | undefined;
|
|
234
|
+
limit?: number | undefined;
|
|
224
235
|
}>;
|
|
225
236
|
export type GetUserFollowingQueryDto = z.infer<typeof GetUserFollowingQuerySchema>;
|
|
226
237
|
export interface GetUserFollowingResponseDto {
|
|
@@ -245,12 +256,12 @@ export declare const GetUserCommentsQuerySchema: z.ZodObject<{
|
|
|
245
256
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
246
257
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
247
258
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
limit: number;
|
|
249
259
|
page: number;
|
|
260
|
+
limit: number;
|
|
250
261
|
sortBy: "latest" | "recommended";
|
|
251
262
|
}, {
|
|
252
|
-
limit?: number | undefined;
|
|
253
263
|
page?: number | undefined;
|
|
264
|
+
limit?: number | undefined;
|
|
254
265
|
sortBy?: "latest" | "recommended" | undefined;
|
|
255
266
|
}>;
|
|
256
267
|
export type GetUserCommentsQueryDto = z.infer<typeof GetUserCommentsQuerySchema>;
|
|
@@ -275,11 +286,11 @@ export declare const GetUserCommentRepliesQuerySchema: z.ZodObject<{
|
|
|
275
286
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
276
287
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
277
288
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
limit: number;
|
|
279
289
|
page: number;
|
|
290
|
+
limit: number;
|
|
280
291
|
}, {
|
|
281
|
-
limit?: number | undefined;
|
|
282
292
|
page?: number | undefined;
|
|
293
|
+
limit?: number | undefined;
|
|
283
294
|
}>;
|
|
284
295
|
export type GetUserCommentRepliesQueryDto = z.infer<typeof GetUserCommentRepliesQuerySchema>;
|
|
285
296
|
export interface GetUserCommentRepliesResponseDto {
|
|
@@ -343,11 +354,11 @@ export declare const ReportUserCommentParamsSchema: z.ZodObject<{
|
|
|
343
354
|
userId: z.ZodBigInt;
|
|
344
355
|
commentId: z.ZodBigInt;
|
|
345
356
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
commentId: bigint;
|
|
347
357
|
userId: bigint;
|
|
348
|
-
}, {
|
|
349
358
|
commentId: bigint;
|
|
359
|
+
}, {
|
|
350
360
|
userId: bigint;
|
|
361
|
+
commentId: bigint;
|
|
351
362
|
}>;
|
|
352
363
|
export type ReportUserCommentParamsDto = z.infer<typeof ReportUserCommentParamsSchema>;
|
|
353
364
|
export interface ReportUserCommentResponseDto {
|
|
@@ -358,11 +369,11 @@ export declare const DeleteUserCommentParamsSchema: z.ZodObject<{
|
|
|
358
369
|
userId: z.ZodBigInt;
|
|
359
370
|
commentId: z.ZodBigInt;
|
|
360
371
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
commentId: bigint;
|
|
362
372
|
userId: bigint;
|
|
363
|
-
}, {
|
|
364
373
|
commentId: bigint;
|
|
374
|
+
}, {
|
|
365
375
|
userId: bigint;
|
|
376
|
+
commentId: bigint;
|
|
366
377
|
}>;
|
|
367
378
|
export type DeleteUserCommentParamsDto = z.infer<typeof DeleteUserCommentParamsSchema>;
|
|
368
379
|
export interface DeleteUserCommentResponseDto {
|
|
@@ -394,11 +405,11 @@ export declare const GetNoticesQuerySchema: z.ZodObject<{
|
|
|
394
405
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
395
406
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
396
407
|
}, "strip", z.ZodTypeAny, {
|
|
397
|
-
limit: number;
|
|
398
408
|
page: number;
|
|
409
|
+
limit: number;
|
|
399
410
|
}, {
|
|
400
|
-
limit?: number | undefined;
|
|
401
411
|
page?: number | undefined;
|
|
412
|
+
limit?: number | undefined;
|
|
402
413
|
}>;
|
|
403
414
|
export type GetNoticesQueryDto = z.infer<typeof GetNoticesQuerySchema>;
|
|
404
415
|
export interface GetNoticesResponseDto {
|
|
@@ -433,11 +444,11 @@ export declare const GetUserNotificationsQuerySchema: z.ZodObject<{
|
|
|
433
444
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
434
445
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
435
446
|
}, "strip", z.ZodTypeAny, {
|
|
436
|
-
limit: number;
|
|
437
447
|
page: number;
|
|
448
|
+
limit: number;
|
|
438
449
|
}, {
|
|
439
|
-
limit?: number | undefined;
|
|
440
450
|
page?: number | undefined;
|
|
451
|
+
limit?: number | undefined;
|
|
441
452
|
}>;
|
|
442
453
|
export type GetUserNotificationsQueryDto = z.infer<typeof GetUserNotificationsQuerySchema>;
|
|
443
454
|
export interface GetUserNotificationsResponseDto {
|
|
@@ -479,6 +490,28 @@ export type GetUserSettingsQueryDto = z.infer<typeof GetUserSettingsQuerySchema>
|
|
|
479
490
|
export interface GetUserSettingsResponseDto {
|
|
480
491
|
settings: Record<string, string | number | boolean | object | null>;
|
|
481
492
|
}
|
|
493
|
+
export declare const GetUserApiKeyQuerySchema: z.ZodObject<{
|
|
494
|
+
type: z.ZodEnum<["AVATAR"]>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
type: "AVATAR";
|
|
497
|
+
}, {
|
|
498
|
+
type: "AVATAR";
|
|
499
|
+
}>;
|
|
500
|
+
export type GetUserApiKeyQueryDto = z.infer<typeof GetUserApiKeyQuerySchema>;
|
|
501
|
+
export interface GetUserApiKeyResponseDto {
|
|
502
|
+
apiKey: string;
|
|
503
|
+
}
|
|
504
|
+
export declare const RegenerateUserApiKeyBodySchema: z.ZodObject<{
|
|
505
|
+
type: z.ZodEnum<["AVATAR"]>;
|
|
506
|
+
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
type: "AVATAR";
|
|
508
|
+
}, {
|
|
509
|
+
type: "AVATAR";
|
|
510
|
+
}>;
|
|
511
|
+
export type RegenerateUserApiKeyBodyDto = z.infer<typeof RegenerateUserApiKeyBodySchema>;
|
|
512
|
+
export interface RegenerateUserApiKeyResponseDto {
|
|
513
|
+
apiKey: string;
|
|
514
|
+
}
|
|
482
515
|
export declare const GetCurrentUserSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
483
516
|
export type GetCurrentUserDto = z.infer<typeof GetCurrentUserSchema>;
|
|
484
517
|
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.GetUserAvatarParamsSchema = 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
|
|
@@ -28,6 +29,9 @@ exports.GetUserAvatarsQuerySchema = zod_1.z.object({
|
|
|
28
29
|
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
29
30
|
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
30
31
|
});
|
|
32
|
+
exports.GetUserAvatarParamsSchema = zod_1.z.object({
|
|
33
|
+
id: zod_1.z.coerce.bigint(),
|
|
34
|
+
});
|
|
31
35
|
exports.CreateUserAvatarBodySchema = zod_1.z.object({
|
|
32
36
|
name: zod_1.z.string().max(64),
|
|
33
37
|
role: zod_1.z.string().max(200).optional(),
|
|
@@ -147,5 +151,11 @@ exports.GetUserSettingsQuerySchema = zod_1.z.object({
|
|
|
147
151
|
message: 'At least one key must be provided',
|
|
148
152
|
}),
|
|
149
153
|
});
|
|
154
|
+
exports.GetUserApiKeyQuerySchema = zod_1.z.object({
|
|
155
|
+
type: user_1.UserApiKeyTypeSchema,
|
|
156
|
+
});
|
|
157
|
+
exports.RegenerateUserApiKeyBodySchema = zod_1.z.object({
|
|
158
|
+
type: user_1.UserApiKeyTypeSchema,
|
|
159
|
+
});
|
|
150
160
|
exports.GetCurrentUserSchema = zod_1.z.object({});
|
|
151
161
|
//# 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,cA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QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,2BAAoB;CAC3B,CAAC,CAAC;AASU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,2BAAoB;CAC3B,CAAC,CAAC;AAeU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,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
|
+
}
|