@zyacreatives/shared 2.5.78 → 2.5.79

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.
Files changed (46) hide show
  1. package/dist/schemas/chat.d.ts +6 -0
  2. package/dist/schemas/chat.js +6 -1
  3. package/dist/schemas/comment.d.ts +72 -0
  4. package/dist/schemas/comment.js +15 -1
  5. package/dist/schemas/common.d.ts +5 -0
  6. package/dist/schemas/common.js +4 -1
  7. package/dist/schemas/discipline.d.ts +6 -0
  8. package/dist/schemas/discipline.js +5 -1
  9. package/dist/schemas/feed.d.ts +106 -0
  10. package/dist/schemas/feed.js +6 -1
  11. package/dist/schemas/file.d.ts +16 -0
  12. package/dist/schemas/file.js +12 -1
  13. package/dist/schemas/investor-shortlist.d.ts +9 -0
  14. package/dist/schemas/investor-shortlist.js +6 -1
  15. package/dist/schemas/investor-signal.d.ts +9 -0
  16. package/dist/schemas/investor-signal.js +6 -1
  17. package/dist/schemas/job-application.d.ts +41 -0
  18. package/dist/schemas/job-application.js +10 -1
  19. package/dist/schemas/job.d.ts +1 -0
  20. package/dist/schemas/message.d.ts +14 -0
  21. package/dist/schemas/message.js +13 -1
  22. package/dist/schemas/payout-method.d.ts +9 -0
  23. package/dist/schemas/payout-method.js +8 -1
  24. package/dist/schemas/product.d.ts +4 -0
  25. package/dist/schemas/product.js +4 -1
  26. package/dist/schemas/transaction.d.ts +72 -1
  27. package/dist/schemas/transaction.js +36 -1
  28. package/dist/schemas/user.d.ts +39 -1
  29. package/dist/schemas/user.js +15 -1
  30. package/docs/backend-openapi-shared-contracts-handoff.md +193 -0
  31. package/package.json +1 -1
  32. package/src/schemas/chat.ts +25 -17
  33. package/src/schemas/comment.ts +40 -8
  34. package/src/schemas/common.ts +18 -11
  35. package/src/schemas/discipline.ts +24 -10
  36. package/src/schemas/feed.ts +18 -7
  37. package/src/schemas/file.ts +37 -13
  38. package/src/schemas/investor-shortlist.ts +30 -15
  39. package/src/schemas/investor-signal.ts +36 -21
  40. package/src/schemas/job-application.ts +34 -15
  41. package/src/schemas/job.ts +11 -9
  42. package/src/schemas/message.ts +29 -6
  43. package/src/schemas/payout-method.ts +18 -5
  44. package/src/schemas/product.ts +15 -9
  45. package/src/schemas/transaction.ts +61 -8
  46. package/src/schemas/user.ts +44 -16
@@ -210,4 +210,10 @@ export declare const ReportChatOutputSchema: z.ZodObject<{
210
210
  messageId: z.ZodNullable<z.ZodString>;
211
211
  }, z.core.$strip>;
212
212
  export type ReportChatOutput = z.infer<typeof ReportChatOutputSchema>;
213
+ export declare const ChatListQuerySchema: z.ZodObject<{
214
+ cursor: z.ZodOptional<z.ZodString>;
215
+ query: z.ZodOptional<z.ZodString>;
216
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
217
+ }, z.core.$strip>;
218
+ export type ChatListQuery = z.infer<typeof ChatListQuerySchema>;
213
219
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportChatOutputSchema = exports.ReportChatInputSchema = exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
3
+ exports.ChatListQuerySchema = exports.ReportChatOutputSchema = exports.ReportChatInputSchema = exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -81,3 +81,8 @@ exports.ReportChatOutputSchema = zod_openapi_1.z.object({
81
81
  chatId: zod_openapi_1.z.string(),
82
82
  messageId: zod_openapi_1.z.string().nullable(),
83
83
  });
84
+ exports.ChatListQuerySchema = zod_openapi_1.z.object({
85
+ cursor: zod_openapi_1.z.string().optional(),
86
+ query: zod_openapi_1.z.string().trim().max(100).optional(),
87
+ limit: zod_openapi_1.z.coerce.number().int().min(1).max(100).default(20),
88
+ });
@@ -72,6 +72,15 @@ export declare const DeleteCommentInputSchema: z.ZodObject<{
72
72
  commentId: z.ZodCUID2;
73
73
  }, z.core.$strip>;
74
74
  export type DeleteCommentInput = z.infer<typeof DeleteCommentInputSchema>;
75
+ export declare const CommentIdInputSchema: z.ZodObject<{
76
+ commentId: z.ZodCUID2;
77
+ }, z.core.$strip>;
78
+ export type CommentIdInput = z.infer<typeof CommentIdInputSchema>;
79
+ export declare const ProjectCommentParamsSchema: z.ZodObject<{
80
+ projectId: z.ZodCUID2;
81
+ commentId: z.ZodCUID2;
82
+ }, z.core.$strip>;
83
+ export type ProjectCommentParams = z.infer<typeof ProjectCommentParamsSchema>;
75
84
  /**
76
85
  * --------------------------------
77
86
  * OUTPUTS
@@ -106,4 +115,67 @@ export declare const CommentOutputSchema: z.ZodObject<{
106
115
  userId: z.ZodCUID2;
107
116
  }, z.core.$strip>;
108
117
  export type CommentOutput = z.infer<typeof CommentOutputSchema>;
118
+ export declare const CommentThreadResponseSchema: z.ZodObject<{
119
+ comments: z.ZodArray<z.ZodObject<{
120
+ commenterUsername: z.ZodOptional<z.ZodString>;
121
+ commenterName: z.ZodOptional<z.ZodString>;
122
+ commenterImageUrl: z.ZodOptional<z.ZodString>;
123
+ isLiked: z.ZodDefault<z.ZodBoolean>;
124
+ likesCount: z.ZodDefault<z.ZodInt>;
125
+ hasReplies: z.ZodOptional<z.ZodBoolean>;
126
+ createdAt: z.ZodISODateTime;
127
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
128
+ parentId: z.ZodCUID2;
129
+ parentType: z.ZodEnum<{
130
+ readonly PROJECT: "PROJECT";
131
+ readonly USER: "USER";
132
+ readonly JOB: "JOB";
133
+ readonly POST: "POST";
134
+ readonly PRODUCT: "PRODUCT";
135
+ readonly SIGNAL: "SIGNAL";
136
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
137
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
138
+ readonly COMMENT: "COMMENT";
139
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
140
+ }>;
141
+ content: z.ZodString;
142
+ parentCommentId: z.ZodOptional<z.ZodCUID2>;
143
+ replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
144
+ id: z.ZodCUID2;
145
+ userId: z.ZodCUID2;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>;
148
+ export type CommentThreadResponse = z.infer<typeof CommentThreadResponseSchema>;
149
+ export declare const CommentRepliesOutputSchema: z.ZodObject<{
150
+ replies: z.ZodArray<z.ZodObject<{
151
+ commenterUsername: z.ZodOptional<z.ZodString>;
152
+ commenterName: z.ZodOptional<z.ZodString>;
153
+ commenterImageUrl: z.ZodOptional<z.ZodString>;
154
+ isLiked: z.ZodDefault<z.ZodBoolean>;
155
+ likesCount: z.ZodDefault<z.ZodInt>;
156
+ hasReplies: z.ZodOptional<z.ZodBoolean>;
157
+ createdAt: z.ZodISODateTime;
158
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
159
+ parentId: z.ZodCUID2;
160
+ parentType: z.ZodEnum<{
161
+ readonly PROJECT: "PROJECT";
162
+ readonly USER: "USER";
163
+ readonly JOB: "JOB";
164
+ readonly POST: "POST";
165
+ readonly PRODUCT: "PRODUCT";
166
+ readonly SIGNAL: "SIGNAL";
167
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
168
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
169
+ readonly COMMENT: "COMMENT";
170
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
171
+ }>;
172
+ content: z.ZodString;
173
+ parentCommentId: z.ZodOptional<z.ZodCUID2>;
174
+ replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
175
+ id: z.ZodCUID2;
176
+ userId: z.ZodCUID2;
177
+ }, z.core.$strip>>;
178
+ nextCursor: z.ZodNullable<z.ZodString>;
179
+ }, z.core.$strip>;
180
+ export type CommentRepliesOutput = z.infer<typeof CommentRepliesOutputSchema>;
109
181
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommentOutputSchema = exports.DeleteCommentInputSchema = exports.CreateCommentInputSchema = exports.CommentEntitySchema = void 0;
3
+ exports.CommentRepliesOutputSchema = exports.CommentThreadResponseSchema = exports.CommentOutputSchema = exports.ProjectCommentParamsSchema = exports.CommentIdInputSchema = exports.DeleteCommentInputSchema = exports.CreateCommentInputSchema = exports.CommentEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -48,9 +48,23 @@ exports.CreateCommentInputSchema = zod_openapi_1.z.object({
48
48
  exports.DeleteCommentInputSchema = zod_openapi_1.z.object({
49
49
  commentId: zod_openapi_1.z.cuid2(),
50
50
  });
51
+ exports.CommentIdInputSchema = zod_openapi_1.z.object({
52
+ commentId: zod_openapi_1.z.cuid2(),
53
+ });
54
+ exports.ProjectCommentParamsSchema = zod_openapi_1.z.object({
55
+ projectId: zod_openapi_1.z.cuid2(),
56
+ commentId: zod_openapi_1.z.cuid2(),
57
+ });
51
58
  /**
52
59
  * --------------------------------
53
60
  * OUTPUTS
54
61
  * --------------------------------
55
62
  */
56
63
  exports.CommentOutputSchema = exports.CommentEntitySchema;
64
+ exports.CommentThreadResponseSchema = zod_openapi_1.z.object({
65
+ comments: zod_openapi_1.z.array(exports.CommentEntitySchema),
66
+ });
67
+ exports.CommentRepliesOutputSchema = zod_openapi_1.z.object({
68
+ replies: zod_openapi_1.z.array(exports.CommentEntitySchema),
69
+ nextCursor: zod_openapi_1.z.string().nullable(),
70
+ });
@@ -1,5 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  export declare const CuidSchema: z.ZodCUID2;
3
+ export declare const IdInputSchema: z.ZodObject<{
4
+ id: z.ZodCUID2;
5
+ }, z.core.$strip>;
6
+ export type IdInput = z.infer<typeof IdInputSchema>;
3
7
  export declare const UserIdentifierSchema: z.ZodObject<{
4
8
  by: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5
9
  username: "username";
@@ -25,6 +29,7 @@ export declare const DefaultApiSuccessOutputSchema: z.ZodObject<{
25
29
  status: z.ZodLiteral<"success">;
26
30
  }, z.core.$strip>;
27
31
  export type ApiSuccessOutput = z.infer<typeof DefaultApiSuccessOutputSchema>;
32
+ export type DefaultApiSuccessOutput = ApiSuccessOutput;
28
33
  export declare const EntityCommentsOutputSchema: z.ZodObject<{
29
34
  comments: z.ZodArray<z.ZodObject<{
30
35
  commenterUsername: z.ZodOptional<z.ZodString>;
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebsiteUrlInputSchema = exports.WorkExperienceSchema = exports.AchievementSchema = exports.LinkSchema = exports.EntityRepliesOutputSchema = exports.EntityBookmarksOutputSchema = exports.EntityLikesOutputSchema = exports.EntityCommentsOutputSchema = exports.DefaultApiSuccessOutputSchema = exports.ProjectIdentifierSchema = exports.ProfileIdentifierSchema = exports.UserIdentifierSchema = exports.CuidSchema = void 0;
3
+ exports.WebsiteUrlInputSchema = exports.WorkExperienceSchema = exports.AchievementSchema = exports.LinkSchema = exports.EntityRepliesOutputSchema = exports.EntityBookmarksOutputSchema = exports.EntityLikesOutputSchema = exports.EntityCommentsOutputSchema = exports.DefaultApiSuccessOutputSchema = exports.ProjectIdentifierSchema = exports.ProfileIdentifierSchema = exports.UserIdentifierSchema = exports.IdInputSchema = exports.CuidSchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const comment_1 = require("./comment");
6
6
  const activity_1 = require("./activity");
7
7
  const constants_1 = require("../constants");
8
8
  exports.CuidSchema = zod_openapi_1.z.cuid2({ error: "Invalid CUID2 is written." });
9
+ exports.IdInputSchema = zod_openapi_1.z.object({
10
+ id: zod_openapi_1.z.cuid2(),
11
+ });
9
12
  exports.UserIdentifierSchema = zod_openapi_1.z.object({
10
13
  by: zod_openapi_1.z.enum(["id", "username"]).optional().default("id"),
11
14
  });
@@ -69,6 +69,10 @@ export declare const SlugInputSchema: z.ZodObject<{
69
69
  slug: z.ZodString;
70
70
  }, z.core.$strip>;
71
71
  export type SlugInput = z.infer<typeof SlugInputSchema>;
72
+ export declare const GetDisciplineTagsInputSchema: z.ZodObject<{
73
+ substring: z.ZodString;
74
+ }, z.core.$strip>;
75
+ export type GetDisciplineTagsInput = z.infer<typeof GetDisciplineTagsInputSchema>;
72
76
  /**
73
77
  * --------------------------------
74
78
  * OUTPUTS
@@ -90,4 +94,6 @@ export declare const GetDisciplinesOutputSchema: z.ZodObject<{
90
94
  }, z.core.$strip>>;
91
95
  }, z.core.$strip>;
92
96
  export type GetDisciplinesOutput = z.infer<typeof GetDisciplinesOutputSchema>;
97
+ export declare const GetDisciplineTagsOutputSchema: z.ZodArray<z.ZodString>;
98
+ export type GetDisciplineTagsOutput = z.infer<typeof GetDisciplineTagsOutputSchema>;
93
99
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetDisciplinesOutputSchema = exports.CreateDisciplinesOutputSchema = exports.DisciplineUpdateOutputSchema = exports.SlugInputSchema = exports.GetDisciplinesInputSchema = exports.CreateDisciplinesInputSchema = exports.DisciplineEntitySchema = exports.TagEntitySchema = exports.BaseDisciplineEntitySchema = void 0;
3
+ exports.GetDisciplineTagsOutputSchema = exports.GetDisciplinesOutputSchema = exports.CreateDisciplinesOutputSchema = exports.DisciplineUpdateOutputSchema = exports.GetDisciplineTagsInputSchema = exports.SlugInputSchema = exports.GetDisciplinesInputSchema = exports.CreateDisciplinesInputSchema = exports.DisciplineEntitySchema = exports.TagEntitySchema = exports.BaseDisciplineEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  /**
6
6
  * --------------------------------
@@ -60,6 +60,9 @@ exports.GetDisciplinesInputSchema = zod_openapi_1.z.object({
60
60
  exports.SlugInputSchema = zod_openapi_1.z.object({
61
61
  slug: zod_openapi_1.z.string().max(128),
62
62
  });
63
+ exports.GetDisciplineTagsInputSchema = zod_openapi_1.z.object({
64
+ substring: zod_openapi_1.z.string(),
65
+ });
63
66
  /**
64
67
  * --------------------------------
65
68
  * OUTPUTS
@@ -74,3 +77,4 @@ exports.CreateDisciplinesOutputSchema = zod_openapi_1.z.object({
74
77
  exports.GetDisciplinesOutputSchema = zod_openapi_1.z.object({
75
78
  disciplines: zod_openapi_1.z.array(exports.DisciplineEntitySchema),
76
79
  });
80
+ exports.GetDisciplineTagsOutputSchema = zod_openapi_1.z.array(zod_openapi_1.z.string());
@@ -62,6 +62,112 @@ export declare const TrendingUsersOutputSchema: z.ZodObject<{
62
62
  }, z.core.$strip>>;
63
63
  }, z.core.$strip>;
64
64
  export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
65
+ export declare const GetFeedWithCommentPolicyOutputSchema: z.ZodObject<{
66
+ feed: z.ZodArray<z.ZodObject<{
67
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ id: z.ZodInt;
69
+ name: z.ZodString;
70
+ }, z.core.$strip>>>;
71
+ creatorUsername: z.ZodOptional<z.ZodString>;
72
+ creatorFullName: z.ZodOptional<z.ZodString>;
73
+ creatorImageUrl: z.ZodOptional<z.ZodString>;
74
+ createdAt: z.ZodISODateTime;
75
+ parentId: z.ZodOptional<z.ZodCUID2>;
76
+ parentType: z.ZodDefault<z.ZodEnum<{
77
+ readonly PROJECT: "PROJECT";
78
+ readonly USER: "USER";
79
+ readonly JOB: "JOB";
80
+ readonly POST: "POST";
81
+ readonly PRODUCT: "PRODUCT";
82
+ readonly SIGNAL: "SIGNAL";
83
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
84
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
85
+ readonly COMMENT: "COMMENT";
86
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
87
+ }>>;
88
+ content: z.ZodOptional<z.ZodString>;
89
+ postType: z.ZodDefault<z.ZodEnum<{
90
+ readonly MARKETPLACE: "MARKETPLACE";
91
+ readonly PROJECT: "PROJECT";
92
+ readonly JOB_OPENING: "JOB_OPENING";
93
+ readonly DEFAULT_POST: "DEFAULT_POST";
94
+ readonly POST_WITH_LINKS: "POST_WITH_LINKS";
95
+ readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
96
+ readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
97
+ }>>;
98
+ badge: z.ZodOptional<z.ZodEnum<{
99
+ readonly NETWORKING: "Networking";
100
+ readonly FUNDING: "Funding";
101
+ readonly COLLABORATION: "Collaboration";
102
+ readonly OPPORTUNITIES: "Opportunities";
103
+ readonly SHOWCASE: "Showcase";
104
+ readonly LEARNING: "Learning";
105
+ readonly DISCUSSION: "Discussion";
106
+ readonly MENTORSHIP: "Mentorship";
107
+ }>>;
108
+ mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
109
+ linkMeta: z.ZodOptional<z.ZodObject<{
110
+ url: z.ZodURL;
111
+ title: z.ZodOptional<z.ZodString>;
112
+ description: z.ZodOptional<z.ZodString>;
113
+ image: z.ZodOptional<z.ZodString>;
114
+ }, z.core.$strip>>;
115
+ id: z.ZodCUID2;
116
+ userId: z.ZodCUID2;
117
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ createdAt: z.ZodISODateTime;
119
+ updatedAt: z.ZodISODateTime;
120
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
121
+ key: z.ZodString;
122
+ mimeType: z.ZodString;
123
+ parentId: z.ZodNullable<z.ZodCUID2>;
124
+ parentType: z.ZodNullable<z.ZodEnum<{
125
+ readonly PROJECT: "PROJECT";
126
+ readonly USER: "USER";
127
+ readonly JOB: "JOB";
128
+ readonly POST: "POST";
129
+ readonly PRODUCT: "PRODUCT";
130
+ readonly SIGNAL: "SIGNAL";
131
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
132
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
133
+ readonly COMMENT: "COMMENT";
134
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
135
+ }>>;
136
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
137
+ order: z.ZodNumber;
138
+ id: z.ZodCUID2;
139
+ url: z.ZodURL;
140
+ }, z.core.$strip>>>;
141
+ stats: z.ZodObject<{
142
+ createdAt: z.ZodISODateTime;
143
+ updatedAt: z.ZodISODateTime;
144
+ parentId: z.ZodCUID2;
145
+ parentType: z.ZodEnum<{
146
+ readonly PROJECT: "PROJECT";
147
+ readonly USER: "USER";
148
+ readonly JOB: "JOB";
149
+ readonly POST: "POST";
150
+ readonly PRODUCT: "PRODUCT";
151
+ readonly SIGNAL: "SIGNAL";
152
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
153
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
154
+ readonly COMMENT: "COMMENT";
155
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
156
+ }>;
157
+ likesCount: z.ZodNumber;
158
+ bookmarksCount: z.ZodNumber;
159
+ viewsCount: z.ZodNumber;
160
+ commentsCount: z.ZodNumber;
161
+ }, z.core.$strip>;
162
+ score: z.ZodNumber;
163
+ isLiked: z.ZodOptional<z.ZodBoolean>;
164
+ isFollowing: z.ZodOptional<z.ZodBoolean>;
165
+ isBookmarked: z.ZodOptional<z.ZodBoolean>;
166
+ canComment: z.ZodBoolean;
167
+ }, z.core.$strip>>;
168
+ nextCursor: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strip>;
170
+ export type GetFeedWithCommentPolicyOutput = z.infer<typeof GetFeedWithCommentPolicyOutputSchema>;
65
171
  export declare const FeedTagsInputSchema: z.ZodObject<{
66
172
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
67
173
  }, z.core.$strip>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeedTagsSchema = exports.FeedTagsInputSchema = exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
3
+ exports.FeedTagsSchema = exports.FeedTagsInputSchema = exports.GetFeedWithCommentPolicyOutputSchema = exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
+ const post_1 = require("./post");
5
6
  /**
6
7
  * --------------------------------
7
8
  * SHAPE
@@ -49,6 +50,10 @@ exports.FeedTagsOutputSchema = exports.FeedTagsEntitySchema;
49
50
  exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
50
51
  creators: zod_openapi_1.z.array(exports.TrendingUserSchema),
51
52
  });
53
+ exports.GetFeedWithCommentPolicyOutputSchema = zod_openapi_1.z.object({
54
+ feed: zod_openapi_1.z.array(post_1.FeedPostEntitySchema),
55
+ nextCursor: zod_openapi_1.z.string().optional(),
56
+ });
52
57
  exports.FeedTagsInputSchema = zod_openapi_1.z.object({
53
58
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string().min(1)).default([]),
54
59
  });
@@ -115,6 +115,15 @@ export declare const GetPresignedDownloadUrlInputSchema: z.ZodObject<{
115
115
  fileId: z.ZodCUID2;
116
116
  }, z.core.$strip>;
117
117
  export type GetPresignedDownloadUrlInput = z.infer<typeof GetPresignedDownloadUrlInputSchema>;
118
+ export declare const PurchasedDownloadUrlInputSchema: z.ZodObject<{
119
+ productId: z.ZodCUID2;
120
+ fileId: z.ZodCUID2;
121
+ }, z.core.$strip>;
122
+ export type PurchasedDownloadUrlInput = z.infer<typeof PurchasedDownloadUrlInputSchema>;
123
+ export declare const PublicFileUrlInputSchema: z.ZodObject<{
124
+ fileId: z.ZodCUID2;
125
+ }, z.core.$strip>;
126
+ export type PublicFileUrlInput = z.infer<typeof PublicFileUrlInputSchema>;
118
127
  /**
119
128
  * --------------------------------
120
129
  * OUTPUTS
@@ -157,4 +166,11 @@ export declare const GetPresignedDownloadUrlOutputSchema: z.ZodObject<{
157
166
  url: z.ZodURL;
158
167
  }, z.core.$strip>;
159
168
  export type GetPresignedDownloadUrlOutput = z.infer<typeof GetPresignedDownloadUrlOutputSchema>;
169
+ export declare const PresignedUrlJSendOutputSchema: z.ZodObject<{
170
+ status: z.ZodString;
171
+ data: z.ZodObject<{
172
+ url: z.ZodURL;
173
+ }, z.core.$strip>;
174
+ }, z.core.$strip>;
175
+ export type PresignedUrlJSendOutput = z.infer<typeof PresignedUrlJSendOutputSchema>;
160
176
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPresignedDownloadUrlOutputSchema = exports.GetPresignedUploadUrlOutputSchema = exports.DeleteFileOutputSchema = exports.CreateFileOutputSchema = exports.GetPresignedDownloadUrlInputSchema = exports.GetPresignedUploadUrlInputSchema = exports.FileKeyInputSchema = exports.DeleteFileInputSchema = exports.UpdateFileInputSchema = exports.CreateFileInputSchema = exports.FileEntitySchema = void 0;
3
+ exports.PresignedUrlJSendOutputSchema = exports.GetPresignedDownloadUrlOutputSchema = exports.GetPresignedUploadUrlOutputSchema = exports.DeleteFileOutputSchema = exports.CreateFileOutputSchema = exports.PublicFileUrlInputSchema = exports.PurchasedDownloadUrlInputSchema = exports.GetPresignedDownloadUrlInputSchema = exports.GetPresignedUploadUrlInputSchema = exports.FileKeyInputSchema = exports.DeleteFileInputSchema = exports.UpdateFileInputSchema = exports.CreateFileInputSchema = exports.FileEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -64,6 +64,13 @@ exports.GetPresignedUploadUrlInputSchema = zod_openapi_1.z.object({
64
64
  exports.GetPresignedDownloadUrlInputSchema = zod_openapi_1.z.object({
65
65
  fileId: zod_openapi_1.z.cuid2(),
66
66
  });
67
+ exports.PurchasedDownloadUrlInputSchema = zod_openapi_1.z.object({
68
+ productId: zod_openapi_1.z.cuid2(),
69
+ fileId: zod_openapi_1.z.cuid2(),
70
+ });
71
+ exports.PublicFileUrlInputSchema = zod_openapi_1.z.object({
72
+ fileId: zod_openapi_1.z.cuid2().openapi({ example: "ckq7t9yb40001q9l5z6a5c7fg" }),
73
+ });
67
74
  /**
68
75
  * --------------------------------
69
76
  * OUTPUTS
@@ -77,3 +84,7 @@ exports.GetPresignedUploadUrlOutputSchema = zod_openapi_1.z.object({
77
84
  url: zod_openapi_1.z.url(),
78
85
  });
79
86
  exports.GetPresignedDownloadUrlOutputSchema = exports.GetPresignedUploadUrlOutputSchema;
87
+ exports.PresignedUrlJSendOutputSchema = zod_openapi_1.z.object({
88
+ status: zod_openapi_1.z.string(),
89
+ data: exports.GetPresignedDownloadUrlOutputSchema,
90
+ });
@@ -78,6 +78,10 @@ export declare const GetInvestorShortlistInputSchema: z.ZodObject<{
78
78
  cursor: z.ZodOptional<z.ZodString>;
79
79
  }, z.core.$strip>;
80
80
  export type GetInvestorShortlistInput = z.infer<typeof GetInvestorShortlistInputSchema>;
81
+ export declare const InvestorShortlistItemIdInputSchema: z.ZodObject<{
82
+ id: z.ZodCUID2;
83
+ }, z.core.$strip>;
84
+ export type InvestorShortlistItemIdInput = z.infer<typeof InvestorShortlistItemIdInputSchema>;
81
85
  /**
82
86
  * --------------------------------
83
87
  * OUTPUTS
@@ -116,4 +120,9 @@ export declare const GetInvestorShortlistOutputSchema: z.ZodObject<{
116
120
  }, z.core.$strip>>;
117
121
  }, z.core.$strip>;
118
122
  export type GetInvestorShortlistOutput = z.infer<typeof GetInvestorShortlistOutputSchema>;
123
+ export declare const CheckInvestorShortlistItemOutputSchema: z.ZodObject<{
124
+ exists: z.ZodBoolean;
125
+ shortlistItemId: z.ZodNullable<z.ZodString>;
126
+ }, z.core.$strip>;
127
+ export type CheckInvestorShortlistItemOutput = z.infer<typeof CheckInvestorShortlistItemOutputSchema>;
119
128
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetInvestorShortlistOutputSchema = exports.GetInvestorShortlistInputSchema = exports.CreateInvestorShortlistInputSchema = exports.InvestorShortlistEntitySchema = void 0;
3
+ exports.CheckInvestorShortlistItemOutputSchema = exports.GetInvestorShortlistOutputSchema = exports.InvestorShortlistItemIdInputSchema = exports.GetInvestorShortlistInputSchema = exports.CreateInvestorShortlistInputSchema = exports.InvestorShortlistEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -43,6 +43,7 @@ exports.CreateInvestorShortlistInputSchema = zod_openapi_1.z.object({
43
43
  exports.GetInvestorShortlistInputSchema = zod_openapi_1.z.object({
44
44
  cursor: zod_openapi_1.z.string().optional(),
45
45
  });
46
+ exports.InvestorShortlistItemIdInputSchema = zod_openapi_1.z.object({ id: zod_openapi_1.z.cuid2() });
46
47
  /**
47
48
  * --------------------------------
48
49
  * OUTPUTS
@@ -52,3 +53,7 @@ exports.GetInvestorShortlistOutputSchema = zod_openapi_1.z.object({
52
53
  nextCursor: zod_openapi_1.z.string().optional(),
53
54
  shortlistItems: zod_openapi_1.z.array(exports.InvestorShortlistEntitySchema),
54
55
  });
56
+ exports.CheckInvestorShortlistItemOutputSchema = zod_openapi_1.z.object({
57
+ exists: zod_openapi_1.z.boolean(),
58
+ shortlistItemId: zod_openapi_1.z.string().nullable(),
59
+ });
@@ -112,6 +112,10 @@ export declare const GetInvestorSignalInputSchema: z.ZodObject<{
112
112
  }>>;
113
113
  }, z.core.$strip>;
114
114
  export type GetInvestorSignalInput = z.infer<typeof GetInvestorSignalInputSchema>;
115
+ export declare const InvestorSignalIdInputSchema: z.ZodObject<{
116
+ id: z.ZodCUID2;
117
+ }, z.core.$strip>;
118
+ export type InvestorSignalIdInput = z.infer<typeof InvestorSignalIdInputSchema>;
115
119
  /**
116
120
  * --------------------------------
117
121
  * OUTPUTS
@@ -169,4 +173,9 @@ export declare const GetInvestorSignalOutputSchema: z.ZodObject<{
169
173
  }, z.core.$strip>>;
170
174
  }, z.core.$strip>;
171
175
  export type GetInvestorSignalOutput = z.infer<typeof GetInvestorSignalOutputSchema>;
176
+ export declare const CheckInvestorSignalOutputSchema: z.ZodObject<{
177
+ exists: z.ZodBoolean;
178
+ signalId: z.ZodNullable<z.ZodString>;
179
+ }, z.core.$strip>;
180
+ export type CheckInvestorSignalOutput = z.infer<typeof CheckInvestorSignalOutputSchema>;
172
181
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetInvestorSignalOutputSchema = exports.GetInvestorSignalInputSchema = exports.UpdateInvestorSignalStatusInputSchema = exports.CreateInvestorSignalInputSchema = exports.InvestorSignalEntitySchema = void 0;
3
+ exports.CheckInvestorSignalOutputSchema = exports.GetInvestorSignalOutputSchema = exports.InvestorSignalIdInputSchema = exports.GetInvestorSignalInputSchema = exports.UpdateInvestorSignalStatusInputSchema = exports.CreateInvestorSignalInputSchema = exports.InvestorSignalEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -55,6 +55,7 @@ exports.GetInvestorSignalInputSchema = zod_openapi_1.z.object({
55
55
  cursor: zod_openapi_1.z.string().optional(),
56
56
  signalStatus: zod_openapi_1.z.enum(constants_1.SIGNAL_STATUS).optional(),
57
57
  });
58
+ exports.InvestorSignalIdInputSchema = zod_openapi_1.z.object({ id: zod_openapi_1.z.cuid2() });
58
59
  /**
59
60
  * --------------------------------
60
61
  * OUTPUTS
@@ -64,3 +65,7 @@ exports.GetInvestorSignalOutputSchema = zod_openapi_1.z.object({
64
65
  nextCursor: zod_openapi_1.z.string().optional(),
65
66
  signals: zod_openapi_1.z.array(exports.InvestorSignalEntitySchema),
66
67
  });
68
+ exports.CheckInvestorSignalOutputSchema = zod_openapi_1.z.object({
69
+ exists: zod_openapi_1.z.boolean(),
70
+ signalId: zod_openapi_1.z.string().nullable(),
71
+ });
@@ -508,6 +508,10 @@ export declare const ApplicationIdInputSchema: z.ZodObject<{
508
508
  id: z.ZodCUID2;
509
509
  }, z.core.$strip>;
510
510
  export type ApplicationIdInput = z.infer<typeof ApplicationIdInputSchema>;
511
+ export declare const JobApplicationIdInputSchema: z.ZodObject<{
512
+ applicationId: z.ZodString;
513
+ }, z.core.$strip>;
514
+ export type JobApplicationIdInput = z.infer<typeof JobApplicationIdInputSchema>;
511
515
  export declare const CreateJobApplicationInputSchema: z.ZodObject<{
512
516
  jobId: z.ZodCUID2;
513
517
  firstName: z.ZodOptional<z.ZodString>;
@@ -914,3 +918,40 @@ export declare const GetBrandUnansweredApplicationsOutputSchema: z.ZodObject<{
914
918
  unansweredCount: z.ZodNumber;
915
919
  }, z.core.$strip>;
916
920
  export type GetBrandUnansweredApplicationsOutput = z.infer<typeof GetBrandUnansweredApplicationsOutputSchema>;
921
+ export declare const GetApplicationsForJobOutputSchema: z.ZodObject<{
922
+ applications: z.ZodArray<z.ZodObject<{
923
+ id: z.ZodCUID2;
924
+ jobId: z.ZodCUID2;
925
+ user: z.ZodObject<{
926
+ id: z.ZodCUID2;
927
+ name: z.ZodDefault<z.ZodString>;
928
+ email: z.ZodEmail;
929
+ image: z.ZodDefault<z.ZodString>;
930
+ username: z.ZodDefault<z.ZodString>;
931
+ role: z.ZodEnum<{
932
+ CREATIVE: "CREATIVE";
933
+ BRAND: "BRAND";
934
+ INVESTOR: "INVESTOR";
935
+ ADMIN: "ADMIN";
936
+ }>;
937
+ }, z.core.$strip>;
938
+ coverLetter: z.ZodNullable<z.ZodString>;
939
+ applicationStatus: z.ZodEnum<{
940
+ readonly SENT: "Application Sent";
941
+ readonly OPENED: "Opened";
942
+ readonly REJECTED: "Rejected";
943
+ readonly DECLINED: "Declined";
944
+ readonly OFFERED: "Offered";
945
+ readonly HIRED: "Hired";
946
+ }>;
947
+ brandResponseMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
948
+ meetingLink: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
949
+ offerAcceptedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
950
+ offerDeclinedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
951
+ lastStatusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
952
+ hasUnreadStatusUpdate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
953
+ createdAt: z.ZodISODateTime;
954
+ }, z.core.$strip>>;
955
+ nextCursor: z.ZodOptional<z.ZodString>;
956
+ }, z.core.$strip>;
957
+ export type GetApplicationsForJobOutput = z.infer<typeof GetApplicationsForJobOutputSchema>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // job-application.schemas.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.GetBrandUnansweredApplicationsOutputSchema = exports.GetApplicationStatusUpdatesCountOutputSchema = exports.GetTrackedJobApplicationsOutputSchema = exports.GetTrackedJobApplicationsInputSchema = exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema = exports.ApplicationIdInputSchema = exports.TrackedJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = exports.BaseJobApplicationEntitySchema = exports.JobApplicationEntitySchema = exports.JobApplicationResponseSchema = exports.JobApplicationShape = void 0;
4
+ exports.GetApplicationsForJobOutputSchema = exports.GetBrandUnansweredApplicationsOutputSchema = exports.GetApplicationStatusUpdatesCountOutputSchema = exports.GetTrackedJobApplicationsOutputSchema = exports.GetTrackedJobApplicationsInputSchema = exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema = exports.JobApplicationIdInputSchema = exports.ApplicationIdInputSchema = exports.TrackedJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = exports.BaseJobApplicationEntitySchema = exports.JobApplicationEntitySchema = exports.JobApplicationResponseSchema = exports.JobApplicationShape = void 0;
5
5
  const zod_openapi_1 = require("@hono/zod-openapi");
6
6
  const constants_1 = require("../constants");
7
7
  const job_1 = require("./job");
@@ -124,6 +124,11 @@ exports.TrackedJobApplicationEntitySchema = zod_openapi_1.z.object({
124
124
  exports.ApplicationIdInputSchema = zod_openapi_1.z.object({
125
125
  id: zod_openapi_1.z.cuid2(),
126
126
  });
127
+ exports.JobApplicationIdInputSchema = zod_openapi_1.z.object({
128
+ applicationId: zod_openapi_1.z
129
+ .string()
130
+ .openapi({ param: { name: "applicationId", in: "path" } }),
131
+ });
127
132
  exports.CreateJobApplicationInputSchema = exports.JobApplicationShape.extend({
128
133
  jobSections: zod_openapi_1.z.array(zod_openapi_1.z.enum(constants_1.JOB_SECTIONS)).optional(),
129
134
  });
@@ -163,3 +168,7 @@ exports.GetApplicationStatusUpdatesCountOutputSchema = zod_openapi_1.z.object({
163
168
  exports.GetBrandUnansweredApplicationsOutputSchema = zod_openapi_1.z.object({
164
169
  unansweredCount: zod_openapi_1.z.number(),
165
170
  });
171
+ exports.GetApplicationsForJobOutputSchema = zod_openapi_1.z.object({
172
+ applications: zod_openapi_1.z.array(exports.MinimalJobApplicationEntitySchema),
173
+ nextCursor: zod_openapi_1.z.string().optional(),
174
+ });
@@ -1573,6 +1573,7 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
1573
1573
  noOfActiveJobs: z.ZodNumber;
1574
1574
  }, z.core.$strip>;
1575
1575
  export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
1576
+ export type NormalizedJob = z.infer<typeof NormalizedJobSchema>;
1576
1577
  /**
1577
1578
  * --------------------------------
1578
1579
  * SEARCH DOCUMENT
@@ -210,6 +210,20 @@ export declare const EditMessageInputSchema: z.ZodObject<{
210
210
  content: z.ZodOptional<z.ZodString>;
211
211
  }, z.core.$strip>;
212
212
  export type EditMessageInput = z.infer<typeof EditMessageInputSchema>;
213
+ export declare const ChatIdParamSchema: z.ZodObject<{
214
+ chatId: z.ZodCUID2;
215
+ }, z.core.$strip>;
216
+ export type ChatIdParam = z.infer<typeof ChatIdParamSchema>;
217
+ export declare const MessageParamsSchema: z.ZodObject<{
218
+ chatId: z.ZodCUID2;
219
+ messageId: z.ZodCUID2;
220
+ }, z.core.$strip>;
221
+ export type MessageParams = z.infer<typeof MessageParamsSchema>;
222
+ export declare const DeleteMessagesInputSchema: z.ZodObject<{
223
+ messageIds: z.ZodArray<z.ZodCUID2>;
224
+ deleteForEveryone: z.ZodDefault<z.ZodBoolean>;
225
+ }, z.core.$strip>;
226
+ export type DeleteMessagesInput = z.infer<typeof DeleteMessagesInputSchema>;
213
227
  /**
214
228
  * --------------------------------
215
229
  * OUTPUTS
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMessagesOutputSchema = exports.EditMessageInputSchema = exports.CreateMessageInputSchema = exports.MessageWithFilesEntitySchema = exports.MessageFileEntitySchema = exports.MessageEntitySchema = void 0;
3
+ exports.GetMessagesOutputSchema = exports.DeleteMessagesInputSchema = exports.MessageParamsSchema = exports.ChatIdParamSchema = exports.EditMessageInputSchema = exports.CreateMessageInputSchema = exports.MessageWithFilesEntitySchema = exports.MessageFileEntitySchema = exports.MessageEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -75,6 +75,18 @@ exports.EditMessageInputSchema = zod_openapi_1.z.object({
75
75
  messageId: zod_openapi_1.z.cuid2(),
76
76
  content: zod_openapi_1.z.string().optional(),
77
77
  });
78
+ exports.ChatIdParamSchema = zod_openapi_1.z.object({
79
+ chatId: zod_openapi_1.z.cuid2().openapi({ param: { name: "chatId", in: "path" } }),
80
+ });
81
+ exports.MessageParamsSchema = exports.ChatIdParamSchema.extend({
82
+ messageId: zod_openapi_1.z
83
+ .cuid2()
84
+ .openapi({ param: { name: "messageId", in: "path" } }),
85
+ });
86
+ exports.DeleteMessagesInputSchema = zod_openapi_1.z.object({
87
+ messageIds: zod_openapi_1.z.array(zod_openapi_1.z.cuid2()).min(1),
88
+ deleteForEveryone: zod_openapi_1.z.boolean().default(false),
89
+ });
78
90
  /**
79
91
  * --------------------------------
80
92
  * OUTPUTS