@zyacreatives/shared 2.1.85 → 2.1.86
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/README.md +1 -1
- package/package.json +1 -1
- package/src/constants.ts +483 -483
- package/src/index.ts +4 -4
- package/src/schemas/activity.ts +14 -14
- package/src/schemas/auth.ts +43 -43
- package/src/schemas/bookmark.ts +38 -38
- package/src/schemas/brand.ts +146 -146
- package/src/schemas/chat.ts +31 -31
- package/src/schemas/comment.ts +60 -60
- package/src/schemas/common.ts +22 -22
- package/src/schemas/creative.ts +222 -222
- package/src/schemas/discipline.ts +88 -88
- package/src/schemas/entity-stats.ts +43 -43
- package/src/schemas/feed.ts +11 -11
- package/src/schemas/file.ts +61 -61
- package/src/schemas/index.ts +21 -21
- package/src/schemas/investor.ts +211 -211
- package/src/schemas/job-application.ts +257 -257
- package/src/schemas/job.ts +364 -364
- package/src/schemas/like.ts +38 -38
- package/src/schemas/message.ts +112 -112
- package/src/schemas/notification.ts +71 -71
- package/src/schemas/post.ts +279 -279
- package/src/schemas/project.ts +298 -298
- package/src/schemas/user-strike.ts +21 -21
- package/src/schemas/user.ts +283 -283
- package/src/schemas/username.ts +11 -11
- package/src/schemas/view.ts +50 -50
- package/src/types/auth.ts +5 -5
- package/src/types/bookmark.ts +4 -4
- package/src/types/brand.ts +37 -37
- package/src/types/chat.ts +21 -21
- package/src/types/comment.ts +12 -12
- package/src/types/common.ts +9 -9
- package/src/types/creative.ts +33 -33
- package/src/types/discipline.ts +32 -32
- package/src/types/entity-stats.ts +4 -4
- package/src/types/feed.ts +5 -5
- package/src/types/file.ts +39 -39
- package/src/types/index.ts +22 -22
- package/src/types/investor.ts +34 -34
- package/src/types/job-application.ts +41 -41
- package/src/types/job.ts +71 -71
- package/src/types/like.ts +3 -3
- package/src/types/message.ts +23 -23
- package/src/types/notification.ts +34 -34
- package/src/types/post.ts +63 -63
- package/src/types/project.ts +65 -65
- package/src/types/user-strike.ts +10 -10
- package/src/types/user.ts +96 -96
- package/src/types/username.ts +4 -4
- package/src/utils/slugify.ts +10 -10
- package/tsconfig.json +13 -13
package/src/schemas/view.ts
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { ACTIVITY_PARENT_TYPES } from "../constants";
|
|
3
|
-
|
|
4
|
-
export const ViewEntitySchema = z
|
|
5
|
-
.object({
|
|
6
|
-
id: z.cuid2().openapi({
|
|
7
|
-
description: "Unique identifier of the view record.",
|
|
8
|
-
title: "View ID",
|
|
9
|
-
}),
|
|
10
|
-
userId: z.cuid2().nullable().openapi({
|
|
11
|
-
description:
|
|
12
|
-
"Identifier of the user who viewed the entity, if authenticated.",
|
|
13
|
-
title: "User ID",
|
|
14
|
-
}),
|
|
15
|
-
ipAddress: z.string().nullable().openapi({
|
|
16
|
-
description: "IP address from which the entity was viewed.",
|
|
17
|
-
title: "IP Address",
|
|
18
|
-
}),
|
|
19
|
-
userAgent: z.string().nullable().openapi({
|
|
20
|
-
description:
|
|
21
|
-
"User agent string identifying the client device or browser.",
|
|
22
|
-
title: "User Agent",
|
|
23
|
-
}),
|
|
24
|
-
parentId: z.cuid2().openapi({
|
|
25
|
-
description: "Identifier of the parent entity being viewed.",
|
|
26
|
-
title: "Parent ID",
|
|
27
|
-
}),
|
|
28
|
-
parentType: z.enum(ACTIVITY_PARENT_TYPES).openapi({
|
|
29
|
-
description: "Type of the parent entity (e.g., project, post, etc.).",
|
|
30
|
-
title: "Parent Type",
|
|
31
|
-
}),
|
|
32
|
-
sessionId: z.string().nullable().openapi({
|
|
33
|
-
description:
|
|
34
|
-
"Session identifier associated with the view event, if available.",
|
|
35
|
-
title: "Session ID",
|
|
36
|
-
}),
|
|
37
|
-
viewedAt: z.coerce.date().optional().openapi({
|
|
38
|
-
description: "Exact timestamp when the view occurred.",
|
|
39
|
-
title: "Viewed At",
|
|
40
|
-
}),
|
|
41
|
-
viewDate: z.coerce.date().optional().openapi({
|
|
42
|
-
description:
|
|
43
|
-
"Calendar date corresponding to the view event, used for aggregation.",
|
|
44
|
-
title: "View Date",
|
|
45
|
-
}),
|
|
46
|
-
})
|
|
47
|
-
.openapi({
|
|
48
|
-
description: "Represents a record of a single view event for an entity.",
|
|
49
|
-
title: "View",
|
|
50
|
-
});
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import { ACTIVITY_PARENT_TYPES } from "../constants";
|
|
3
|
+
|
|
4
|
+
export const ViewEntitySchema = z
|
|
5
|
+
.object({
|
|
6
|
+
id: z.cuid2().openapi({
|
|
7
|
+
description: "Unique identifier of the view record.",
|
|
8
|
+
title: "View ID",
|
|
9
|
+
}),
|
|
10
|
+
userId: z.cuid2().nullable().openapi({
|
|
11
|
+
description:
|
|
12
|
+
"Identifier of the user who viewed the entity, if authenticated.",
|
|
13
|
+
title: "User ID",
|
|
14
|
+
}),
|
|
15
|
+
ipAddress: z.string().nullable().openapi({
|
|
16
|
+
description: "IP address from which the entity was viewed.",
|
|
17
|
+
title: "IP Address",
|
|
18
|
+
}),
|
|
19
|
+
userAgent: z.string().nullable().openapi({
|
|
20
|
+
description:
|
|
21
|
+
"User agent string identifying the client device or browser.",
|
|
22
|
+
title: "User Agent",
|
|
23
|
+
}),
|
|
24
|
+
parentId: z.cuid2().openapi({
|
|
25
|
+
description: "Identifier of the parent entity being viewed.",
|
|
26
|
+
title: "Parent ID",
|
|
27
|
+
}),
|
|
28
|
+
parentType: z.enum(ACTIVITY_PARENT_TYPES).openapi({
|
|
29
|
+
description: "Type of the parent entity (e.g., project, post, etc.).",
|
|
30
|
+
title: "Parent Type",
|
|
31
|
+
}),
|
|
32
|
+
sessionId: z.string().nullable().openapi({
|
|
33
|
+
description:
|
|
34
|
+
"Session identifier associated with the view event, if available.",
|
|
35
|
+
title: "Session ID",
|
|
36
|
+
}),
|
|
37
|
+
viewedAt: z.coerce.date().optional().openapi({
|
|
38
|
+
description: "Exact timestamp when the view occurred.",
|
|
39
|
+
title: "Viewed At",
|
|
40
|
+
}),
|
|
41
|
+
viewDate: z.coerce.date().optional().openapi({
|
|
42
|
+
description:
|
|
43
|
+
"Calendar date corresponding to the view event, used for aggregation.",
|
|
44
|
+
title: "View Date",
|
|
45
|
+
}),
|
|
46
|
+
})
|
|
47
|
+
.openapi({
|
|
48
|
+
description: "Represents a record of a single view event for an entity.",
|
|
49
|
+
title: "View",
|
|
50
|
+
});
|
package/src/types/auth.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { LoginSchema, RegisterSchema } from "../schemas/auth";
|
|
3
|
-
|
|
4
|
-
export type RegisterInput = z.infer<typeof RegisterSchema>;
|
|
5
|
-
export type LoginInput = z.infer<typeof LoginSchema>;
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { LoginSchema, RegisterSchema } from "../schemas/auth";
|
|
3
|
+
|
|
4
|
+
export type RegisterInput = z.infer<typeof RegisterSchema>;
|
|
5
|
+
export type LoginInput = z.infer<typeof LoginSchema>;
|
package/src/types/bookmark.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { BookmarkEntitySchema } from "../schemas/bookmark";
|
|
3
|
-
|
|
4
|
-
export type BookmarkEntity = z.infer<typeof BookmarkEntitySchema>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import { BookmarkEntitySchema } from "../schemas/bookmark";
|
|
3
|
+
|
|
4
|
+
export type BookmarkEntity = z.infer<typeof BookmarkEntitySchema>;
|
package/src/types/brand.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
BrandEntitySchema,
|
|
4
|
-
CreateBrandProfileInputSchema,
|
|
5
|
-
UpdateBrandProfileInputSchema,
|
|
6
|
-
GetBrandInputSchema,
|
|
7
|
-
CreateBrandOutputSchema,
|
|
8
|
-
GetBrandOutputSchema,
|
|
9
|
-
UpdateBrandOutputSchema,
|
|
10
|
-
BrandWithUserEntitySchema,
|
|
11
|
-
SearchBrandInputSchema,
|
|
12
|
-
SearchBrandOutputSchema,
|
|
13
|
-
MinimalBrandEntitySchema,
|
|
14
|
-
} from "../schemas/brand";
|
|
15
|
-
|
|
16
|
-
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
17
|
-
|
|
18
|
-
export type CreateBrandProfileInput = z.infer<
|
|
19
|
-
typeof CreateBrandProfileInputSchema
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type UpdateBrandProfileInput = z.infer<
|
|
23
|
-
typeof UpdateBrandProfileInputSchema
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
|
-
export type GetBrandInput = z.infer<typeof GetBrandInputSchema>;
|
|
27
|
-
|
|
28
|
-
export type CreateBrandOutput = z.infer<typeof CreateBrandOutputSchema>;
|
|
29
|
-
|
|
30
|
-
export type GetBrandOutput = z.infer<typeof GetBrandOutputSchema>;
|
|
31
|
-
|
|
32
|
-
export type UpdateBrandOutput = z.infer<typeof UpdateBrandOutputSchema>;
|
|
33
|
-
|
|
34
|
-
export type BrandWithUserEntity = z.infer<typeof BrandWithUserEntitySchema>
|
|
35
|
-
export type SearchBrandInput = z.infer<typeof SearchBrandInputSchema>
|
|
36
|
-
export type SearchBrandOutput = z.infer<typeof SearchBrandOutputSchema>
|
|
37
|
-
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
BrandEntitySchema,
|
|
4
|
+
CreateBrandProfileInputSchema,
|
|
5
|
+
UpdateBrandProfileInputSchema,
|
|
6
|
+
GetBrandInputSchema,
|
|
7
|
+
CreateBrandOutputSchema,
|
|
8
|
+
GetBrandOutputSchema,
|
|
9
|
+
UpdateBrandOutputSchema,
|
|
10
|
+
BrandWithUserEntitySchema,
|
|
11
|
+
SearchBrandInputSchema,
|
|
12
|
+
SearchBrandOutputSchema,
|
|
13
|
+
MinimalBrandEntitySchema,
|
|
14
|
+
} from "../schemas/brand";
|
|
15
|
+
|
|
16
|
+
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
17
|
+
|
|
18
|
+
export type CreateBrandProfileInput = z.infer<
|
|
19
|
+
typeof CreateBrandProfileInputSchema
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type UpdateBrandProfileInput = z.infer<
|
|
23
|
+
typeof UpdateBrandProfileInputSchema
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export type GetBrandInput = z.infer<typeof GetBrandInputSchema>;
|
|
27
|
+
|
|
28
|
+
export type CreateBrandOutput = z.infer<typeof CreateBrandOutputSchema>;
|
|
29
|
+
|
|
30
|
+
export type GetBrandOutput = z.infer<typeof GetBrandOutputSchema>;
|
|
31
|
+
|
|
32
|
+
export type UpdateBrandOutput = z.infer<typeof UpdateBrandOutputSchema>;
|
|
33
|
+
|
|
34
|
+
export type BrandWithUserEntity = z.infer<typeof BrandWithUserEntitySchema>
|
|
35
|
+
export type SearchBrandInput = z.infer<typeof SearchBrandInputSchema>
|
|
36
|
+
export type SearchBrandOutput = z.infer<typeof SearchBrandOutputSchema>
|
|
37
|
+
|
|
38
38
|
export type MinimalBrandEntity = z.infer<typeof MinimalBrandEntitySchema>
|
package/src/types/chat.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import {
|
|
3
|
-
BaseChatEntitySchema,
|
|
4
|
-
ChatEntitySchema,
|
|
5
|
-
ChatIdSchema,
|
|
6
|
-
CreateChatInputSchema,
|
|
7
|
-
CreateChatOutputSchema,
|
|
8
|
-
GetChatsOutputSchema,
|
|
9
|
-
} from "../schemas/chat";
|
|
10
|
-
|
|
11
|
-
export type BaseChatEntity = z.infer<typeof BaseChatEntitySchema>;
|
|
12
|
-
|
|
13
|
-
export type ChatEntity = z.infer<typeof ChatEntitySchema>;
|
|
14
|
-
|
|
15
|
-
export type CreateChatInput = z.infer<typeof CreateChatInputSchema>;
|
|
16
|
-
|
|
17
|
-
export type CreateChatOutput = z.infer<typeof CreateChatOutputSchema>;
|
|
18
|
-
|
|
19
|
-
export type ChatIdInput = z.infer<typeof ChatIdSchema>;
|
|
20
|
-
|
|
21
|
-
export type GetChatsOutput = z.infer<typeof GetChatsOutputSchema>;
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import {
|
|
3
|
+
BaseChatEntitySchema,
|
|
4
|
+
ChatEntitySchema,
|
|
5
|
+
ChatIdSchema,
|
|
6
|
+
CreateChatInputSchema,
|
|
7
|
+
CreateChatOutputSchema,
|
|
8
|
+
GetChatsOutputSchema,
|
|
9
|
+
} from "../schemas/chat";
|
|
10
|
+
|
|
11
|
+
export type BaseChatEntity = z.infer<typeof BaseChatEntitySchema>;
|
|
12
|
+
|
|
13
|
+
export type ChatEntity = z.infer<typeof ChatEntitySchema>;
|
|
14
|
+
|
|
15
|
+
export type CreateChatInput = z.infer<typeof CreateChatInputSchema>;
|
|
16
|
+
|
|
17
|
+
export type CreateChatOutput = z.infer<typeof CreateChatOutputSchema>;
|
|
18
|
+
|
|
19
|
+
export type ChatIdInput = z.infer<typeof ChatIdSchema>;
|
|
20
|
+
|
|
21
|
+
export type GetChatsOutput = z.infer<typeof GetChatsOutputSchema>;
|
package/src/types/comment.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
CommentEntitySchema,
|
|
4
|
-
CommentInputSchema,
|
|
5
|
-
CommentOutputSchema,
|
|
6
|
-
} from "../schemas/comment";
|
|
7
|
-
|
|
8
|
-
export type CommentEntity = z.infer<typeof CommentEntitySchema>;
|
|
9
|
-
|
|
10
|
-
export type CommentInput = z.infer<typeof CommentInputSchema>;
|
|
11
|
-
|
|
12
|
-
export type CommentOutput = z.infer<typeof CommentOutputSchema>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
CommentEntitySchema,
|
|
4
|
+
CommentInputSchema,
|
|
5
|
+
CommentOutputSchema,
|
|
6
|
+
} from "../schemas/comment";
|
|
7
|
+
|
|
8
|
+
export type CommentEntity = z.infer<typeof CommentEntitySchema>;
|
|
9
|
+
|
|
10
|
+
export type CommentInput = z.infer<typeof CommentInputSchema>;
|
|
11
|
+
|
|
12
|
+
export type CommentOutput = z.infer<typeof CommentOutputSchema>;
|
package/src/types/common.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { ProjectSocialGraphEntitySchema } from "../schemas";
|
|
3
|
-
|
|
4
|
-
export type ProjectSocialGraphEntity = z.infer<
|
|
5
|
-
typeof ProjectSocialGraphEntitySchema
|
|
6
|
-
>;
|
|
7
|
-
export type PostSocialGraphEntity = z.infer<
|
|
8
|
-
typeof ProjectSocialGraphEntitySchema
|
|
9
|
-
>;
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { ProjectSocialGraphEntitySchema } from "../schemas";
|
|
3
|
+
|
|
4
|
+
export type ProjectSocialGraphEntity = z.infer<
|
|
5
|
+
typeof ProjectSocialGraphEntitySchema
|
|
6
|
+
>;
|
|
7
|
+
export type PostSocialGraphEntity = z.infer<
|
|
8
|
+
typeof ProjectSocialGraphEntitySchema
|
|
9
|
+
>;
|
package/src/types/creative.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
CreativeEntitySchema,
|
|
4
|
-
CreateCreativeProfileInputSchema,
|
|
5
|
-
UpdateCreativeProfileInputSchema,
|
|
6
|
-
GetCreativeInputSchema,
|
|
7
|
-
CreateCreativeOutputSchema,
|
|
8
|
-
GetCreativeOutputSchema,
|
|
9
|
-
UpdateCreativeOutputSchema,
|
|
10
|
-
CreativeWithUserEntitySchema,
|
|
11
|
-
SearchCreativeInputSchema,
|
|
12
|
-
SearchCreativeOutputSchema,
|
|
13
|
-
MinimalCreativeEntitySchema,
|
|
14
|
-
} from "../schemas/creative";
|
|
15
|
-
|
|
16
|
-
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
17
|
-
|
|
18
|
-
export type CreateCreativeProfileInput = z.infer<
|
|
19
|
-
typeof CreateCreativeProfileInputSchema
|
|
20
|
-
>;
|
|
21
|
-
export type UpdateCreativeProfileInput = z.infer<
|
|
22
|
-
typeof UpdateCreativeProfileInputSchema
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
export type GetCreativeInput = z.infer<typeof GetCreativeInputSchema>;
|
|
26
|
-
|
|
27
|
-
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
|
28
|
-
export type GetCreativeOutput = z.infer<typeof GetCreativeOutputSchema>;
|
|
29
|
-
export type UpdateCreativeOutput = z.infer<typeof UpdateCreativeOutputSchema>;
|
|
30
|
-
|
|
31
|
-
export type CreativeWithUserEntity = z.infer<typeof CreativeWithUserEntitySchema>
|
|
32
|
-
export type SearchCreativeInput = z.infer<typeof SearchCreativeInputSchema>
|
|
33
|
-
export type SearchCreativeOutput = z.infer<typeof SearchCreativeOutputSchema>
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
CreativeEntitySchema,
|
|
4
|
+
CreateCreativeProfileInputSchema,
|
|
5
|
+
UpdateCreativeProfileInputSchema,
|
|
6
|
+
GetCreativeInputSchema,
|
|
7
|
+
CreateCreativeOutputSchema,
|
|
8
|
+
GetCreativeOutputSchema,
|
|
9
|
+
UpdateCreativeOutputSchema,
|
|
10
|
+
CreativeWithUserEntitySchema,
|
|
11
|
+
SearchCreativeInputSchema,
|
|
12
|
+
SearchCreativeOutputSchema,
|
|
13
|
+
MinimalCreativeEntitySchema,
|
|
14
|
+
} from "../schemas/creative";
|
|
15
|
+
|
|
16
|
+
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
17
|
+
|
|
18
|
+
export type CreateCreativeProfileInput = z.infer<
|
|
19
|
+
typeof CreateCreativeProfileInputSchema
|
|
20
|
+
>;
|
|
21
|
+
export type UpdateCreativeProfileInput = z.infer<
|
|
22
|
+
typeof UpdateCreativeProfileInputSchema
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
export type GetCreativeInput = z.infer<typeof GetCreativeInputSchema>;
|
|
26
|
+
|
|
27
|
+
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
|
28
|
+
export type GetCreativeOutput = z.infer<typeof GetCreativeOutputSchema>;
|
|
29
|
+
export type UpdateCreativeOutput = z.infer<typeof UpdateCreativeOutputSchema>;
|
|
30
|
+
|
|
31
|
+
export type CreativeWithUserEntity = z.infer<typeof CreativeWithUserEntitySchema>
|
|
32
|
+
export type SearchCreativeInput = z.infer<typeof SearchCreativeInputSchema>
|
|
33
|
+
export type SearchCreativeOutput = z.infer<typeof SearchCreativeOutputSchema>
|
|
34
34
|
export type MinimalCreativeEntity = z.infer<typeof MinimalCreativeEntitySchema>
|
package/src/types/discipline.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
BaseDisciplineEntitySchema,
|
|
4
|
-
CreateDisciplinesInputSchema,
|
|
5
|
-
CreateDisciplinesOutputSchema,
|
|
6
|
-
DisciplineEntitySchema,
|
|
7
|
-
DisciplineUpdateOutputSchema,
|
|
8
|
-
GetDisciplinesInputSchema,
|
|
9
|
-
GetDisciplinesOutputSchema,
|
|
10
|
-
SlugInputSchema,
|
|
11
|
-
TagEntitySchema,
|
|
12
|
-
} from "../schemas/discipline";
|
|
13
|
-
|
|
14
|
-
export type BaseDisciplineEntity = z.infer<typeof BaseDisciplineEntitySchema>;
|
|
15
|
-
export type DisciplineEntity = z.infer<typeof DisciplineEntitySchema>;
|
|
16
|
-
|
|
17
|
-
export type DisciplineUpdateOutput = z.infer<
|
|
18
|
-
typeof DisciplineUpdateOutputSchema
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
export type CreateDisciplinesInput = z.infer<
|
|
22
|
-
typeof CreateDisciplinesInputSchema
|
|
23
|
-
>;
|
|
24
|
-
export type CreateDisciplinesOutput = z.infer<
|
|
25
|
-
typeof CreateDisciplinesOutputSchema
|
|
26
|
-
>;
|
|
27
|
-
|
|
28
|
-
export type GetDisciplinesInput = z.infer<typeof GetDisciplinesInputSchema>;
|
|
29
|
-
export type GetDisciplinesOutput = z.infer<typeof GetDisciplinesOutputSchema>;
|
|
30
|
-
|
|
31
|
-
export type SlugInput = z.infer<typeof SlugInputSchema>;
|
|
32
|
-
export type TagEntity = z.infer<typeof TagEntitySchema>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
BaseDisciplineEntitySchema,
|
|
4
|
+
CreateDisciplinesInputSchema,
|
|
5
|
+
CreateDisciplinesOutputSchema,
|
|
6
|
+
DisciplineEntitySchema,
|
|
7
|
+
DisciplineUpdateOutputSchema,
|
|
8
|
+
GetDisciplinesInputSchema,
|
|
9
|
+
GetDisciplinesOutputSchema,
|
|
10
|
+
SlugInputSchema,
|
|
11
|
+
TagEntitySchema,
|
|
12
|
+
} from "../schemas/discipline";
|
|
13
|
+
|
|
14
|
+
export type BaseDisciplineEntity = z.infer<typeof BaseDisciplineEntitySchema>;
|
|
15
|
+
export type DisciplineEntity = z.infer<typeof DisciplineEntitySchema>;
|
|
16
|
+
|
|
17
|
+
export type DisciplineUpdateOutput = z.infer<
|
|
18
|
+
typeof DisciplineUpdateOutputSchema
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export type CreateDisciplinesInput = z.infer<
|
|
22
|
+
typeof CreateDisciplinesInputSchema
|
|
23
|
+
>;
|
|
24
|
+
export type CreateDisciplinesOutput = z.infer<
|
|
25
|
+
typeof CreateDisciplinesOutputSchema
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export type GetDisciplinesInput = z.infer<typeof GetDisciplinesInputSchema>;
|
|
29
|
+
export type GetDisciplinesOutput = z.infer<typeof GetDisciplinesOutputSchema>;
|
|
30
|
+
|
|
31
|
+
export type SlugInput = z.infer<typeof SlugInputSchema>;
|
|
32
|
+
export type TagEntity = z.infer<typeof TagEntitySchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { EntityStatsSchema } from "../schemas/entity-stats";
|
|
3
|
-
|
|
4
|
-
export type EntityStatsEntity = z.infer<typeof EntityStatsSchema>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import { EntityStatsSchema } from "../schemas/entity-stats";
|
|
3
|
+
|
|
4
|
+
export type EntityStatsEntity = z.infer<typeof EntityStatsSchema>;
|
package/src/types/feed.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
|
|
3
|
-
|
|
4
|
-
export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
|
|
5
|
-
export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
|
|
3
|
+
|
|
4
|
+
export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
|
|
5
|
+
export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
|
package/src/types/file.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
CreateFileInputSchema,
|
|
4
|
-
CreateFileOutputSchema,
|
|
5
|
-
DeleteFileInputSchema,
|
|
6
|
-
DeleteFileOutputSchema,
|
|
7
|
-
FileEntitySchema,
|
|
8
|
-
FileKeySchema,
|
|
9
|
-
FileUpdateInputSchema,
|
|
10
|
-
GetPresignedDownloadUrlInputSchema,
|
|
11
|
-
GetPresignedDownloadUrlOutputSchema,
|
|
12
|
-
GetPresignedUploadUrlInputSchema,
|
|
13
|
-
GetPresignedUploadUrlOutputSchema,
|
|
14
|
-
} from "../schemas/file";
|
|
15
|
-
|
|
16
|
-
export type FileEntity = z.infer<typeof FileEntitySchema>;
|
|
17
|
-
|
|
18
|
-
export type CreateFileInput = z.infer<typeof CreateFileInputSchema>;
|
|
19
|
-
export type CreateFileOutput = z.infer<typeof CreateFileOutputSchema>;
|
|
20
|
-
|
|
21
|
-
export type FileUpdateEntity = z.infer<typeof FileUpdateInputSchema>;
|
|
22
|
-
|
|
23
|
-
export type DeleteFileInput = z.infer<typeof DeleteFileInputSchema>;
|
|
24
|
-
export type DeleteFileOutput = z.infer<typeof DeleteFileOutputSchema>;
|
|
25
|
-
|
|
26
|
-
export type FileKeyInput = z.infer<typeof FileKeySchema>;
|
|
27
|
-
export type GetPresignedUploadUrlInput = z.infer<
|
|
28
|
-
typeof GetPresignedUploadUrlInputSchema
|
|
29
|
-
>;
|
|
30
|
-
export type GetPresignedUploadUrlOutput = z.infer<
|
|
31
|
-
typeof GetPresignedUploadUrlOutputSchema
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export type GetPresignedDownloadUrlInput = z.infer<
|
|
35
|
-
typeof GetPresignedDownloadUrlInputSchema
|
|
36
|
-
>;
|
|
37
|
-
export type GetPresignedDownloadUrlOutput = z.infer<
|
|
38
|
-
typeof GetPresignedDownloadUrlOutputSchema
|
|
39
|
-
>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
CreateFileInputSchema,
|
|
4
|
+
CreateFileOutputSchema,
|
|
5
|
+
DeleteFileInputSchema,
|
|
6
|
+
DeleteFileOutputSchema,
|
|
7
|
+
FileEntitySchema,
|
|
8
|
+
FileKeySchema,
|
|
9
|
+
FileUpdateInputSchema,
|
|
10
|
+
GetPresignedDownloadUrlInputSchema,
|
|
11
|
+
GetPresignedDownloadUrlOutputSchema,
|
|
12
|
+
GetPresignedUploadUrlInputSchema,
|
|
13
|
+
GetPresignedUploadUrlOutputSchema,
|
|
14
|
+
} from "../schemas/file";
|
|
15
|
+
|
|
16
|
+
export type FileEntity = z.infer<typeof FileEntitySchema>;
|
|
17
|
+
|
|
18
|
+
export type CreateFileInput = z.infer<typeof CreateFileInputSchema>;
|
|
19
|
+
export type CreateFileOutput = z.infer<typeof CreateFileOutputSchema>;
|
|
20
|
+
|
|
21
|
+
export type FileUpdateEntity = z.infer<typeof FileUpdateInputSchema>;
|
|
22
|
+
|
|
23
|
+
export type DeleteFileInput = z.infer<typeof DeleteFileInputSchema>;
|
|
24
|
+
export type DeleteFileOutput = z.infer<typeof DeleteFileOutputSchema>;
|
|
25
|
+
|
|
26
|
+
export type FileKeyInput = z.infer<typeof FileKeySchema>;
|
|
27
|
+
export type GetPresignedUploadUrlInput = z.infer<
|
|
28
|
+
typeof GetPresignedUploadUrlInputSchema
|
|
29
|
+
>;
|
|
30
|
+
export type GetPresignedUploadUrlOutput = z.infer<
|
|
31
|
+
typeof GetPresignedUploadUrlOutputSchema
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type GetPresignedDownloadUrlInput = z.infer<
|
|
35
|
+
typeof GetPresignedDownloadUrlInputSchema
|
|
36
|
+
>;
|
|
37
|
+
export type GetPresignedDownloadUrlOutput = z.infer<
|
|
38
|
+
typeof GetPresignedDownloadUrlOutputSchema
|
|
39
|
+
>;
|
package/src/types/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from "./auth";
|
|
2
|
-
export * from "./brand";
|
|
3
|
-
export * from "./bookmark";
|
|
4
|
-
export * from "./like";
|
|
5
|
-
export * from "./common";
|
|
6
|
-
export * from "./creative";
|
|
7
|
-
export * from "./discipline";
|
|
8
|
-
export * from "./file";
|
|
9
|
-
export * from "./investor";
|
|
10
|
-
export * from "./project";
|
|
11
|
-
export * from "./user";
|
|
12
|
-
export * from "./comment";
|
|
13
|
-
export * from "./username";
|
|
14
|
-
export * from "./entity-stats";
|
|
15
|
-
export * from "./feed";
|
|
16
|
-
export * from "./post";
|
|
17
|
-
export * from "./job-application";
|
|
18
|
-
export * from "./message";
|
|
19
|
-
export * from "./chat";
|
|
20
|
-
export * from "./job";
|
|
21
|
-
export * from "./user-strike";
|
|
22
|
-
export * from "./notification";
|
|
1
|
+
export * from "./auth";
|
|
2
|
+
export * from "./brand";
|
|
3
|
+
export * from "./bookmark";
|
|
4
|
+
export * from "./like";
|
|
5
|
+
export * from "./common";
|
|
6
|
+
export * from "./creative";
|
|
7
|
+
export * from "./discipline";
|
|
8
|
+
export * from "./file";
|
|
9
|
+
export * from "./investor";
|
|
10
|
+
export * from "./project";
|
|
11
|
+
export * from "./user";
|
|
12
|
+
export * from "./comment";
|
|
13
|
+
export * from "./username";
|
|
14
|
+
export * from "./entity-stats";
|
|
15
|
+
export * from "./feed";
|
|
16
|
+
export * from "./post";
|
|
17
|
+
export * from "./job-application";
|
|
18
|
+
export * from "./message";
|
|
19
|
+
export * from "./chat";
|
|
20
|
+
export * from "./job";
|
|
21
|
+
export * from "./user-strike";
|
|
22
|
+
export * from "./notification";
|
package/src/types/investor.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import {
|
|
3
|
-
CreateInvestorOutputSchema,
|
|
4
|
-
CreateInvestorProfileInputSchema,
|
|
5
|
-
GetInvestorOutputSchema,
|
|
6
|
-
GetInvestorParamsSchema,
|
|
7
|
-
GetInvestorQuerySchema,
|
|
8
|
-
InvestorEntitySchema,
|
|
9
|
-
ListInvestorsInputSchema,
|
|
10
|
-
UpdateInvestorOutputSchema,
|
|
11
|
-
UpdateInvestorProfileInputSchema,
|
|
12
|
-
} from "../schemas/investor";
|
|
13
|
-
|
|
14
|
-
export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
15
|
-
|
|
16
|
-
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
17
|
-
|
|
18
|
-
export type CreateInvestorInput = z.infer<
|
|
19
|
-
typeof CreateInvestorProfileInputSchema
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type UpdateInvestorInput = z.infer<
|
|
23
|
-
typeof UpdateInvestorProfileInputSchema
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
|
-
export type GetInvestorParams = z.infer<typeof GetInvestorParamsSchema>;
|
|
27
|
-
|
|
28
|
-
export type GetInvestorQuery = z.infer<typeof GetInvestorQuerySchema>;
|
|
29
|
-
|
|
30
|
-
export type CreateInvestorOutput = z.infer<typeof CreateInvestorOutputSchema>;
|
|
31
|
-
|
|
32
|
-
export type GetInvestorOutput = z.infer<typeof GetInvestorOutputSchema>;
|
|
33
|
-
|
|
34
|
-
export type UpdateInvestorOutput = z.infer<typeof UpdateInvestorOutputSchema>;
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import {
|
|
3
|
+
CreateInvestorOutputSchema,
|
|
4
|
+
CreateInvestorProfileInputSchema,
|
|
5
|
+
GetInvestorOutputSchema,
|
|
6
|
+
GetInvestorParamsSchema,
|
|
7
|
+
GetInvestorQuerySchema,
|
|
8
|
+
InvestorEntitySchema,
|
|
9
|
+
ListInvestorsInputSchema,
|
|
10
|
+
UpdateInvestorOutputSchema,
|
|
11
|
+
UpdateInvestorProfileInputSchema,
|
|
12
|
+
} from "../schemas/investor";
|
|
13
|
+
|
|
14
|
+
export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
15
|
+
|
|
16
|
+
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
17
|
+
|
|
18
|
+
export type CreateInvestorInput = z.infer<
|
|
19
|
+
typeof CreateInvestorProfileInputSchema
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type UpdateInvestorInput = z.infer<
|
|
23
|
+
typeof UpdateInvestorProfileInputSchema
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export type GetInvestorParams = z.infer<typeof GetInvestorParamsSchema>;
|
|
27
|
+
|
|
28
|
+
export type GetInvestorQuery = z.infer<typeof GetInvestorQuerySchema>;
|
|
29
|
+
|
|
30
|
+
export type CreateInvestorOutput = z.infer<typeof CreateInvestorOutputSchema>;
|
|
31
|
+
|
|
32
|
+
export type GetInvestorOutput = z.infer<typeof GetInvestorOutputSchema>;
|
|
33
|
+
|
|
34
|
+
export type UpdateInvestorOutput = z.infer<typeof UpdateInvestorOutputSchema>;
|