@gigapay-dev/contracts 1.2.6 → 1.2.8
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/build/commands/index.js
CHANGED
|
@@ -8,13 +8,13 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
const enums_1 = require("./enums");
|
|
9
9
|
exports.UserReadResponseSchema = zod_1.default.object({
|
|
10
10
|
id: zod_1.default.coerce.number().positive(),
|
|
11
|
-
username: zod_1.default.string(),
|
|
12
|
-
picture: zod_1.default.string(),
|
|
13
|
-
email: zod_1.default.string(),
|
|
14
|
-
steamId: zod_1.default.string(),
|
|
15
|
-
telegramId: zod_1.default.string(),
|
|
16
|
-
vkId: zod_1.default.string(),
|
|
17
|
-
googleId: zod_1.default.string(),
|
|
11
|
+
username: zod_1.default.string().nullable(),
|
|
12
|
+
picture: zod_1.default.string().nullable(),
|
|
13
|
+
email: zod_1.default.string().nullable(),
|
|
14
|
+
steamId: zod_1.default.string().nullable(),
|
|
15
|
+
telegramId: zod_1.default.string().nullable(),
|
|
16
|
+
vkId: zod_1.default.string().nullable(),
|
|
17
|
+
googleId: zod_1.default.string().nullable(),
|
|
18
18
|
createdAt: zod_1.default.coerce.date().nullable().optional(),
|
|
19
19
|
updatedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
20
20
|
blockedAt: zod_1.default.coerce.date().nullable().optional(),
|
package/commands/index.ts
CHANGED
|
@@ -39,8 +39,8 @@ export const UserEndpoints = {
|
|
|
39
39
|
|
|
40
40
|
export type UserEndpointKey = keyof typeof UserEndpoints;
|
|
41
41
|
|
|
42
|
-
export type
|
|
42
|
+
export type GetUserRequest<K extends UserEndpointKey> =
|
|
43
43
|
z.infer<typeof UserEndpoints[K]["request"]>;
|
|
44
44
|
|
|
45
|
-
export type
|
|
45
|
+
export type GetUserResponse<K extends UserEndpointKey> =
|
|
46
46
|
z.infer<typeof UserEndpoints[K]["response"]>;
|
package/commands/users/read.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { UserRoleEnum, UserStatusEnum } from "./enums";
|
|
|
3
3
|
|
|
4
4
|
export const UserReadResponseSchema = z.object({
|
|
5
5
|
id: z.coerce.number().positive(),
|
|
6
|
-
username: z.string(),
|
|
7
|
-
picture: z.string(),
|
|
8
|
-
email: z.string(),
|
|
9
|
-
steamId: z.string(),
|
|
10
|
-
telegramId: z.string(),
|
|
11
|
-
vkId: z.string(),
|
|
12
|
-
googleId: z.string(),
|
|
6
|
+
username: z.string().nullable(),
|
|
7
|
+
picture: z.string().nullable(),
|
|
8
|
+
email: z.string().nullable(),
|
|
9
|
+
steamId: z.string().nullable(),
|
|
10
|
+
telegramId: z.string().nullable(),
|
|
11
|
+
vkId: z.string().nullable(),
|
|
12
|
+
googleId: z.string().nullable(),
|
|
13
13
|
createdAt: z.coerce.date().nullable().optional(),
|
|
14
14
|
updatedAt: z.coerce.date().nullable().optional(),
|
|
15
15
|
blockedAt: z.coerce.date().nullable().optional(),
|