@zyacreatives/shared 1.4.1 → 1.4.2
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/types/user.d.ts +11 -1
- package/package.json +1 -1
- package/src/types/user.ts +43 -11
package/dist/types/user.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
import { BaseUserEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema } from "../schemas/user";
|
|
1
2
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { BaseUserEntitySchema, UserWithFollowingEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectBookmarksEntitySchema, UserWithProjectsEntitySchema, UserWithFollowersEntitySchema } from "../schemas";
|
|
3
3
|
export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
|
|
4
4
|
export type MinimalUser = z.infer<typeof MinimalUserSchema>;
|
|
5
5
|
export type UserEntity = z.infer<typeof UserEntitySchema>;
|
|
6
6
|
export type UserProfileEntity = z.infer<typeof UserProfileEntitySchema>;
|
|
7
7
|
export type UserWithProjectsEntity = z.infer<typeof UserWithProjectsEntitySchema>;
|
|
8
8
|
export type UserWithProjectBookmarksEntity = z.infer<typeof UserWithProjectBookmarksEntitySchema>;
|
|
9
|
+
export type GetUserFollowingInput = z.infer<typeof GetUserFollowingInputSchema>;
|
|
10
|
+
export type GetUserFollowersInput = z.infer<typeof GetUserFollowersInputSchema>;
|
|
9
11
|
export type UserWithFollowingEntity = z.infer<typeof UserWithFollowingEntitySchema>;
|
|
10
12
|
export type UserWithFollowersEntity = z.infer<typeof UserWithFollowersEntitySchema>;
|
|
13
|
+
export type GetUserFollowingOutput = z.infer<typeof GetUserFollowingOutputSchema>;
|
|
14
|
+
export type GetUserFollowersOutput = z.infer<typeof GetUserFollowersOutputSchema>;
|
|
15
|
+
export type GetAuthenticatedUserOutput = z.infer<typeof GetAuthenticatedUserOutputSchema>;
|
|
16
|
+
export type GetAuthenticatedUserProfileOutput = z.infer<typeof GetAuthenticatedUserProfileOutputSchema>;
|
|
17
|
+
export type GetAuthenticatedUserWithProjectsOutput = z.infer<typeof GetAuthenticatedUserWithProjectsOutputSchema>;
|
|
18
|
+
export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema>;
|
|
19
|
+
export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<typeof GetAuthenticatedUserWithUserFollowingOutputSchema>;
|
|
20
|
+
export type GetAuthenticatedUserWithUserFollowersOutput = z.infer<typeof GetAuthenticatedUserWithUserFollowersOutputSchema>;
|
package/package.json
CHANGED
package/src/types/user.ts
CHANGED
|
@@ -1,35 +1,67 @@
|
|
|
1
|
-
|
|
1
|
+
// user.types.ts
|
|
2
2
|
import {
|
|
3
|
+
UserSocialGraphEntitySchema,
|
|
3
4
|
BaseUserEntitySchema,
|
|
4
|
-
UserWithFollowingEntitySchema,
|
|
5
5
|
MinimalUserSchema,
|
|
6
6
|
UserEntitySchema,
|
|
7
7
|
UserProfileEntitySchema,
|
|
8
|
-
UserWithProjectBookmarksEntitySchema,
|
|
9
8
|
UserWithProjectsEntitySchema,
|
|
9
|
+
UserWithProjectBookmarksEntitySchema,
|
|
10
|
+
GetUserFollowingInputSchema,
|
|
11
|
+
GetUserFollowersInputSchema,
|
|
12
|
+
UserWithFollowingEntitySchema,
|
|
10
13
|
UserWithFollowersEntitySchema,
|
|
11
|
-
|
|
14
|
+
GetUserFollowingOutputSchema,
|
|
15
|
+
GetUserFollowersOutputSchema,
|
|
16
|
+
GetAuthenticatedUserOutputSchema,
|
|
17
|
+
GetAuthenticatedUserProfileOutputSchema,
|
|
18
|
+
GetAuthenticatedUserWithProjectsOutputSchema,
|
|
19
|
+
GetAuthenticatedUserWithProjectBookmarksOutputSchema,
|
|
20
|
+
GetAuthenticatedUserWithUserFollowingOutputSchema,
|
|
21
|
+
GetAuthenticatedUserWithUserFollowersOutputSchema,
|
|
22
|
+
} from "../schemas/user";
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
import { z } from "@hono/zod-openapi";
|
|
14
25
|
|
|
26
|
+
export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
|
|
15
27
|
export type MinimalUser = z.infer<typeof MinimalUserSchema>;
|
|
16
|
-
|
|
17
28
|
export type UserEntity = z.infer<typeof UserEntitySchema>;
|
|
18
|
-
|
|
19
29
|
export type UserProfileEntity = z.infer<typeof UserProfileEntitySchema>;
|
|
20
|
-
|
|
21
30
|
export type UserWithProjectsEntity = z.infer<
|
|
22
31
|
typeof UserWithProjectsEntitySchema
|
|
23
32
|
>;
|
|
24
|
-
|
|
25
33
|
export type UserWithProjectBookmarksEntity = z.infer<
|
|
26
34
|
typeof UserWithProjectBookmarksEntitySchema
|
|
27
35
|
>;
|
|
28
|
-
|
|
36
|
+
export type GetUserFollowingInput = z.infer<typeof GetUserFollowingInputSchema>;
|
|
37
|
+
export type GetUserFollowersInput = z.infer<typeof GetUserFollowersInputSchema>;
|
|
29
38
|
export type UserWithFollowingEntity = z.infer<
|
|
30
39
|
typeof UserWithFollowingEntitySchema
|
|
31
40
|
>;
|
|
32
|
-
|
|
33
41
|
export type UserWithFollowersEntity = z.infer<
|
|
34
42
|
typeof UserWithFollowersEntitySchema
|
|
35
43
|
>;
|
|
44
|
+
export type GetUserFollowingOutput = z.infer<
|
|
45
|
+
typeof GetUserFollowingOutputSchema
|
|
46
|
+
>;
|
|
47
|
+
export type GetUserFollowersOutput = z.infer<
|
|
48
|
+
typeof GetUserFollowersOutputSchema
|
|
49
|
+
>;
|
|
50
|
+
export type GetAuthenticatedUserOutput = z.infer<
|
|
51
|
+
typeof GetAuthenticatedUserOutputSchema
|
|
52
|
+
>;
|
|
53
|
+
export type GetAuthenticatedUserProfileOutput = z.infer<
|
|
54
|
+
typeof GetAuthenticatedUserProfileOutputSchema
|
|
55
|
+
>;
|
|
56
|
+
export type GetAuthenticatedUserWithProjectsOutput = z.infer<
|
|
57
|
+
typeof GetAuthenticatedUserWithProjectsOutputSchema
|
|
58
|
+
>;
|
|
59
|
+
export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<
|
|
60
|
+
typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema
|
|
61
|
+
>;
|
|
62
|
+
export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<
|
|
63
|
+
typeof GetAuthenticatedUserWithUserFollowingOutputSchema
|
|
64
|
+
>;
|
|
65
|
+
export type GetAuthenticatedUserWithUserFollowersOutput = z.infer<
|
|
66
|
+
typeof GetAuthenticatedUserWithUserFollowersOutputSchema
|
|
67
|
+
>;
|