@zyacreatives/shared 2.5.54 → 2.5.55

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 (111) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/schemas/activity.d.ts +1 -0
  4. package/dist/schemas/auth.d.ts +2 -0
  5. package/dist/schemas/bookmark.d.ts +62 -7
  6. package/dist/schemas/bookmark.js +32 -30
  7. package/dist/schemas/brand.d.ts +3 -3
  8. package/dist/schemas/chat.d.ts +96 -52
  9. package/dist/schemas/chat.js +44 -18
  10. package/dist/schemas/comment.d.ts +65 -21
  11. package/dist/schemas/comment.js +48 -54
  12. package/dist/schemas/common.d.ts +15 -11
  13. package/dist/schemas/creative.d.ts +3 -3
  14. package/dist/schemas/discipline.d.ts +63 -12
  15. package/dist/schemas/discipline.js +62 -65
  16. package/dist/schemas/entity-stats.d.ts +35 -3
  17. package/dist/schemas/entity-stats.js +24 -38
  18. package/dist/schemas/feed.d.ts +50 -3
  19. package/dist/schemas/feed.js +43 -13
  20. package/dist/schemas/file.d.ts +65 -24
  21. package/dist/schemas/file.js +60 -49
  22. package/dist/schemas/index.d.ts +1 -0
  23. package/dist/schemas/index.js +1 -0
  24. package/dist/schemas/investor-shortlist.d.ts +68 -11
  25. package/dist/schemas/investor-shortlist.js +46 -24
  26. package/dist/schemas/investor-signal.d.ts +52 -12
  27. package/dist/schemas/investor-signal.js +59 -39
  28. package/dist/schemas/investor.d.ts +3 -3
  29. package/dist/schemas/job-application.d.ts +291 -279
  30. package/dist/schemas/job-application.js +59 -95
  31. package/dist/schemas/job.d.ts +200 -659
  32. package/dist/schemas/job.js +98 -231
  33. package/dist/schemas/like.d.ts +3 -0
  34. package/dist/schemas/message.d.ts +125 -94
  35. package/dist/schemas/message.js +54 -55
  36. package/dist/schemas/notification.d.ts +99 -32
  37. package/dist/schemas/notification.js +46 -42
  38. package/dist/schemas/payout-method.d.ts +51 -31
  39. package/dist/schemas/payout-method.js +48 -58
  40. package/dist/schemas/post.d.ts +295 -204
  41. package/dist/schemas/post.js +148 -272
  42. package/dist/schemas/product.d.ts +308 -229
  43. package/dist/schemas/product.js +111 -94
  44. package/dist/schemas/project.d.ts +75 -107
  45. package/dist/schemas/project.js +1 -5
  46. package/dist/schemas/seller.d.ts +10 -10
  47. package/dist/schemas/user-strike.d.ts +3 -0
  48. package/dist/schemas/user.d.ts +114 -123
  49. package/dist/schemas/username.d.ts +1 -0
  50. package/dist/schemas/view.d.ts +1 -0
  51. package/dist/types/activity.d.ts +1 -3
  52. package/dist/types/auth.d.ts +1 -4
  53. package/dist/types/bookmark.d.ts +1 -3
  54. package/dist/types/chat.d.ts +1 -11
  55. package/dist/types/comment.d.ts +1 -5
  56. package/dist/types/common.d.ts +2 -8
  57. package/dist/types/discipline.d.ts +1 -11
  58. package/dist/types/entity-stats.d.ts +1 -3
  59. package/dist/types/feed.d.ts +1 -5
  60. package/dist/types/investor-shortlist.d.ts +1 -6
  61. package/dist/types/investor-signal.d.ts +1 -7
  62. package/dist/types/like.d.ts +1 -3
  63. package/dist/types/message.d.ts +1 -9
  64. package/dist/types/notification.d.ts +1 -9
  65. package/dist/types/user-strike.d.ts +1 -5
  66. package/dist/types/username.d.ts +1 -3
  67. package/package.json +1 -1
  68. package/src/index.ts +4 -5
  69. package/src/schemas/activity.ts +5 -4
  70. package/src/schemas/auth.ts +14 -10
  71. package/src/schemas/bookmark.ts +48 -29
  72. package/src/schemas/chat.ts +79 -18
  73. package/src/schemas/comment.ts +63 -49
  74. package/src/schemas/common.ts +8 -3
  75. package/src/schemas/discipline.ts +103 -71
  76. package/src/schemas/entity-stats.ts +32 -38
  77. package/src/schemas/feed.ts +62 -15
  78. package/src/schemas/file.ts +85 -58
  79. package/src/schemas/index.ts +1 -0
  80. package/src/schemas/investor-shortlist.ts +57 -8
  81. package/src/schemas/investor-signal.ts +79 -27
  82. package/src/schemas/job-application.ts +81 -115
  83. package/src/schemas/job.ts +160 -301
  84. package/src/schemas/like.ts +5 -1
  85. package/src/schemas/message.ts +71 -64
  86. package/src/schemas/notification.ts +63 -51
  87. package/src/schemas/payout-method.ts +47 -63
  88. package/src/schemas/post.ts +211 -272
  89. package/src/schemas/product.ts +202 -139
  90. package/src/schemas/project.ts +7 -10
  91. package/src/schemas/user-strike.ts +7 -1
  92. package/src/schemas/user.ts +2 -6
  93. package/src/schemas/username.ts +5 -3
  94. package/src/schemas/view.ts +0 -50
  95. package/src/types/activity.ts +0 -4
  96. package/src/types/auth.ts +0 -5
  97. package/src/types/bookmark.ts +0 -4
  98. package/src/types/chat.ts +0 -31
  99. package/src/types/comment.ts +0 -12
  100. package/src/types/common.ts +0 -14
  101. package/src/types/discipline.ts +0 -32
  102. package/src/types/entity-stats.ts +0 -4
  103. package/src/types/feed.ts +0 -10
  104. package/src/types/index.ts +0 -16
  105. package/src/types/investor-shortlist.ts +0 -18
  106. package/src/types/investor-signal.ts +0 -26
  107. package/src/types/like.ts +0 -4
  108. package/src/types/message.ts +0 -26
  109. package/src/types/notification.ts +0 -34
  110. package/src/types/user-strike.ts +0 -10
  111. package/src/types/username.ts +0 -4
@@ -1,18 +1,65 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const FeedTagsSchema: z.ZodObject<{
2
+ /**
3
+ * --------------------------------
4
+ * SHAPE
5
+ * --------------------------------
6
+ */
7
+ declare const FeedTagsShape: z.ZodObject<{
8
+ tags: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type FeedTagsShapeType = z.infer<typeof FeedTagsShape>;
11
+ /**
12
+ * --------------------------------
13
+ * BASE ENTITY
14
+ * --------------------------------
15
+ */
16
+ export declare const FeedTagsEntitySchema: z.ZodObject<{
17
+ tags: z.ZodArray<z.ZodString>;
3
18
  userId: z.ZodCUID2;
19
+ }, z.core.$strip>;
20
+ export type FeedTagsEntity = z.infer<typeof FeedTagsEntitySchema>;
21
+ /**
22
+ * --------------------------------
23
+ * DERIVED ENTITIES
24
+ * --------------------------------
25
+ */
26
+ export declare const TrendingUserSchema: z.ZodObject<{
27
+ creatorId: z.ZodCUID2;
28
+ creatorUsername: z.ZodString;
29
+ creatorName: z.ZodString;
30
+ creatorImageUrl: z.ZodURL;
31
+ isFollowing: z.ZodOptional<z.ZodBoolean>;
32
+ followsYou: z.ZodOptional<z.ZodBoolean>;
33
+ }, z.core.$strip>;
34
+ export type TrendingUser = z.infer<typeof TrendingUserSchema>;
35
+ /**
36
+ * --------------------------------
37
+ * INPUTS
38
+ * --------------------------------
39
+ */
40
+ export declare const UpdateFeedTagsInputSchema: z.ZodObject<{
4
41
  tags: z.ZodArray<z.ZodString>;
5
42
  }, z.core.$strip>;
6
- export declare const FeedTagsInputSchema: z.ZodObject<{
43
+ export type UpdateFeedTagsInput = z.infer<typeof UpdateFeedTagsInputSchema>;
44
+ /**
45
+ * --------------------------------
46
+ * OUTPUTS
47
+ * --------------------------------
48
+ */
49
+ export declare const FeedTagsOutputSchema: z.ZodObject<{
7
50
  tags: z.ZodArray<z.ZodString>;
51
+ userId: z.ZodCUID2;
8
52
  }, z.core.$strip>;
53
+ export type FeedTagsOutput = z.infer<typeof FeedTagsOutputSchema>;
9
54
  export declare const TrendingUsersOutputSchema: z.ZodObject<{
10
55
  creators: z.ZodArray<z.ZodObject<{
56
+ creatorId: z.ZodCUID2;
11
57
  creatorUsername: z.ZodString;
12
58
  creatorName: z.ZodString;
13
- creatorId: z.ZodCUID2;
14
59
  creatorImageUrl: z.ZodURL;
15
60
  isFollowing: z.ZodOptional<z.ZodBoolean>;
16
61
  followsYou: z.ZodOptional<z.ZodBoolean>;
17
62
  }, z.core.$strip>>;
18
63
  }, z.core.$strip>;
64
+ export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
65
+ export {};
@@ -1,21 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TrendingUsersOutputSchema = exports.FeedTagsInputSchema = exports.FeedTagsSchema = void 0;
3
+ exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
- exports.FeedTagsSchema = zod_openapi_1.z.object({
6
- userId: zod_openapi_1.z.cuid2(),
5
+ /**
6
+ * --------------------------------
7
+ * SHAPE
8
+ * --------------------------------
9
+ */
10
+ const FeedTagsShape = zod_openapi_1.z.object({
7
11
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
8
12
  });
9
- exports.FeedTagsInputSchema = zod_openapi_1.z.object({
10
- tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
13
+ /**
14
+ * --------------------------------
15
+ * BASE ENTITY
16
+ * --------------------------------
17
+ */
18
+ exports.FeedTagsEntitySchema = zod_openapi_1.z
19
+ .object({
20
+ userId: zod_openapi_1.z.cuid2(),
21
+ ...FeedTagsShape.shape,
22
+ })
23
+ .openapi("FeedTags");
24
+ /**
25
+ * --------------------------------
26
+ * DERIVED ENTITIES
27
+ * --------------------------------
28
+ */
29
+ exports.TrendingUserSchema = zod_openapi_1.z.object({
30
+ creatorId: zod_openapi_1.z.cuid2(),
31
+ creatorUsername: zod_openapi_1.z.string(),
32
+ creatorName: zod_openapi_1.z.string(),
33
+ creatorImageUrl: zod_openapi_1.z.url(),
34
+ isFollowing: zod_openapi_1.z.boolean().optional(),
35
+ followsYou: zod_openapi_1.z.boolean().optional(),
11
36
  });
37
+ /**
38
+ * --------------------------------
39
+ * INPUTS
40
+ * --------------------------------
41
+ */
42
+ exports.UpdateFeedTagsInputSchema = FeedTagsShape.extend({});
43
+ /**
44
+ * --------------------------------
45
+ * OUTPUTS
46
+ * --------------------------------
47
+ */
48
+ exports.FeedTagsOutputSchema = exports.FeedTagsEntitySchema;
12
49
  exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
13
- creators: zod_openapi_1.z.array(zod_openapi_1.z.object({
14
- creatorUsername: zod_openapi_1.z.string(),
15
- creatorName: zod_openapi_1.z.string(),
16
- creatorId: zod_openapi_1.z.cuid2(),
17
- creatorImageUrl: zod_openapi_1.z.url(),
18
- isFollowing: zod_openapi_1.z.boolean().optional(),
19
- followsYou: zod_openapi_1.z.boolean().optional(),
20
- })),
50
+ creators: zod_openapi_1.z.array(exports.TrendingUserSchema),
21
51
  });
@@ -1,9 +1,40 @@
1
1
  import { z } from "@hono/zod-openapi";
2
+ /**
3
+ * --------------------------------
4
+ * SHAPE
5
+ * --------------------------------
6
+ */
7
+ declare const FileShape: z.ZodObject<{
8
+ key: z.ZodString;
9
+ mimeType: z.ZodString;
10
+ parentId: z.ZodNullable<z.ZodCUID2>;
11
+ parentType: z.ZodNullable<z.ZodEnum<{
12
+ readonly PROJECT: "PROJECT";
13
+ readonly USER: "USER";
14
+ readonly JOB: "JOB";
15
+ readonly POST: "POST";
16
+ readonly PRODUCT: "PRODUCT";
17
+ readonly SIGNAL: "SIGNAL";
18
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
19
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
20
+ readonly COMMENT: "COMMENT";
21
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
22
+ }>>;
23
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
24
+ order: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ export type FileShapeType = z.infer<typeof FileShape>;
27
+ /**
28
+ * --------------------------------
29
+ * BASE ENTITY
30
+ * --------------------------------
31
+ */
2
32
  export declare const FileEntitySchema: z.ZodObject<{
3
- id: z.ZodCUID2;
33
+ createdAt: z.ZodISODateTime;
34
+ updatedAt: z.ZodISODateTime;
35
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
4
36
  key: z.ZodString;
5
37
  mimeType: z.ZodString;
6
- url: z.ZodURL;
7
38
  parentId: z.ZodNullable<z.ZodCUID2>;
8
39
  parentType: z.ZodNullable<z.ZodEnum<{
9
40
  readonly PROJECT: "PROJECT";
@@ -19,11 +50,15 @@ export declare const FileEntitySchema: z.ZodObject<{
19
50
  }>>;
20
51
  isThumbnail: z.ZodNullable<z.ZodBoolean>;
21
52
  order: z.ZodNumber;
22
- createdAt: z.ZodCoercedDate<unknown>;
23
- updatedAt: z.ZodCoercedDate<unknown>;
24
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
53
+ id: z.ZodCUID2;
54
+ url: z.ZodURL;
25
55
  }, z.core.$strip>;
26
56
  export type FileEntity = z.infer<typeof FileEntitySchema>;
57
+ /**
58
+ * --------------------------------
59
+ * INPUTS
60
+ * --------------------------------
61
+ */
27
62
  export declare const CreateFileInputSchema: z.ZodObject<{
28
63
  key: z.ZodString;
29
64
  mimeType: z.ZodString;
@@ -41,11 +76,11 @@ export declare const CreateFileInputSchema: z.ZodObject<{
41
76
  readonly JOB_APPLICATION: "JOB_APPLICATION";
42
77
  }>>;
43
78
  isThumbnail: z.ZodOptional<z.ZodBoolean>;
44
- order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
79
+ order: z.ZodDefault<z.ZodNumber>;
45
80
  }, z.core.$strip>;
46
81
  export type CreateFileInput = z.infer<typeof CreateFileInputSchema>;
47
- export declare const FileUpdateInputSchema: z.ZodObject<{
48
- id: z.ZodCUID2;
82
+ export declare const UpdateFileInputSchema: z.ZodObject<{
83
+ fileId: z.ZodCUID2;
49
84
  parentId: z.ZodOptional<z.ZodCUID2>;
50
85
  parentType: z.ZodOptional<z.ZodEnum<{
51
86
  readonly PROJECT: "PROJECT";
@@ -62,21 +97,35 @@ export declare const FileUpdateInputSchema: z.ZodObject<{
62
97
  isThumbnail: z.ZodOptional<z.ZodBoolean>;
63
98
  order: z.ZodOptional<z.ZodNumber>;
64
99
  }, z.core.$strip>;
65
- export type FileUpdateEntity = z.infer<typeof FileUpdateInputSchema>;
100
+ export type UpdateFileInput = z.infer<typeof UpdateFileInputSchema>;
66
101
  export declare const DeleteFileInputSchema: z.ZodObject<{
67
102
  fileId: z.ZodOptional<z.ZodCUID2>;
68
103
  key: z.ZodOptional<z.ZodString>;
69
104
  }, z.core.$strip>;
70
105
  export type DeleteFileInput = z.infer<typeof DeleteFileInputSchema>;
71
- export declare const FileKeySchema: z.ZodObject<{
106
+ export declare const FileKeyInputSchema: z.ZodObject<{
107
+ key: z.ZodString;
108
+ }, z.core.$strip>;
109
+ export type FileKeyInput = z.infer<typeof FileKeyInputSchema>;
110
+ export declare const GetPresignedUploadUrlInputSchema: z.ZodObject<{
72
111
  key: z.ZodString;
73
112
  }, z.core.$strip>;
74
- export type FileKeyInput = z.infer<typeof FileKeySchema>;
113
+ export type GetPresignedUploadUrlInput = z.infer<typeof GetPresignedUploadUrlInputSchema>;
114
+ export declare const GetPresignedDownloadUrlInputSchema: z.ZodObject<{
115
+ fileId: z.ZodCUID2;
116
+ }, z.core.$strip>;
117
+ export type GetPresignedDownloadUrlInput = z.infer<typeof GetPresignedDownloadUrlInputSchema>;
118
+ /**
119
+ * --------------------------------
120
+ * OUTPUTS
121
+ * --------------------------------
122
+ */
75
123
  export declare const CreateFileOutputSchema: z.ZodObject<{
76
- id: z.ZodCUID2;
124
+ createdAt: z.ZodISODateTime;
125
+ updatedAt: z.ZodISODateTime;
126
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
77
127
  key: z.ZodString;
78
128
  mimeType: z.ZodString;
79
- url: z.ZodURL;
80
129
  parentId: z.ZodNullable<z.ZodCUID2>;
81
130
  parentType: z.ZodNullable<z.ZodEnum<{
82
131
  readonly PROJECT: "PROJECT";
@@ -92,28 +141,20 @@ export declare const CreateFileOutputSchema: z.ZodObject<{
92
141
  }>>;
93
142
  isThumbnail: z.ZodNullable<z.ZodBoolean>;
94
143
  order: z.ZodNumber;
95
- createdAt: z.ZodCoercedDate<unknown>;
96
- updatedAt: z.ZodCoercedDate<unknown>;
97
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
144
+ id: z.ZodCUID2;
145
+ url: z.ZodURL;
98
146
  }, z.core.$strip>;
99
147
  export type CreateFileOutput = z.infer<typeof CreateFileOutputSchema>;
100
148
  export declare const DeleteFileOutputSchema: z.ZodObject<{
101
149
  id: z.ZodCUID2;
102
150
  }, z.core.$strip>;
103
151
  export type DeleteFileOutput = z.infer<typeof DeleteFileOutputSchema>;
104
- export declare const GetPresignedUploadUrlInputSchema: z.ZodObject<{
105
- key: z.ZodString;
106
- }, z.core.$strip>;
107
- export type GetPresignedUploadUrlInput = z.infer<typeof GetPresignedUploadUrlInputSchema>;
108
152
  export declare const GetPresignedUploadUrlOutputSchema: z.ZodObject<{
109
153
  url: z.ZodURL;
110
154
  }, z.core.$strip>;
111
155
  export type GetPresignedUploadUrlOutput = z.infer<typeof GetPresignedUploadUrlOutputSchema>;
112
- export declare const GetPresignedDownloadUrlInputSchema: z.ZodObject<{
113
- fileId: z.ZodCUID2;
114
- }, z.core.$strip>;
115
- export type GetPresignedDownloadUrlInput = z.infer<typeof GetPresignedDownloadUrlInputSchema>;
116
156
  export declare const GetPresignedDownloadUrlOutputSchema: z.ZodObject<{
117
157
  url: z.ZodURL;
118
158
  }, z.core.$strip>;
119
159
  export type GetPresignedDownloadUrlOutput = z.infer<typeof GetPresignedDownloadUrlOutputSchema>;
160
+ export {};
@@ -1,68 +1,79 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPresignedDownloadUrlOutputSchema = exports.GetPresignedDownloadUrlInputSchema = exports.GetPresignedUploadUrlOutputSchema = exports.GetPresignedUploadUrlInputSchema = exports.DeleteFileOutputSchema = exports.CreateFileOutputSchema = exports.FileKeySchema = exports.DeleteFileInputSchema = exports.FileUpdateInputSchema = exports.CreateFileInputSchema = exports.FileEntitySchema = void 0;
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;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
+ /**
7
+ * --------------------------------
8
+ * SHAPE
9
+ * --------------------------------
10
+ */
11
+ const FileShape = zod_openapi_1.z.object({
12
+ key: zod_openapi_1.z.string(),
13
+ mimeType: zod_openapi_1.z.string(),
14
+ parentId: zod_openapi_1.z.cuid2().nullable(),
15
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).nullable(),
16
+ isThumbnail: zod_openapi_1.z.boolean().nullable(),
17
+ order: zod_openapi_1.z.number().int(),
18
+ });
19
+ /**
20
+ * --------------------------------
21
+ * BASE ENTITY
22
+ * --------------------------------
23
+ */
6
24
  exports.FileEntitySchema = zod_openapi_1.z
7
25
  .object({
8
- id: zod_openapi_1.z.cuid2().openapi({ example: "f123e4567-e89b-12d3-a456-426614174000" }),
9
- key: zod_openapi_1.z.string().openapi({ example: "profile-pic-12345" }),
10
- mimeType: zod_openapi_1.z.string().openapi({ example: "image/jpeg" }),
11
- url: zod_openapi_1.z.url().openapi({ example: "https://example.com/file.jpg" }),
12
- parentId: zod_openapi_1.z.cuid2().nullable().openapi({ example: "ckj1a2b3c0000xyz" }),
13
- parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).nullable(),
14
- isThumbnail: zod_openapi_1.z.boolean().nullable().openapi({ example: false }),
15
- order: zod_openapi_1.z.number().int().openapi({ example: 0 }),
16
- createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-14T08:00:00.000Z" }),
17
- updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-14T09:00:00.000Z" }),
18
- deletedAt: zod_openapi_1.z.coerce.date().nullable().openapi({ example: null }),
26
+ id: zod_openapi_1.z.cuid2(),
27
+ url: zod_openapi_1.z.url(),
28
+ ...FileShape.shape,
29
+ createdAt: zod_openapi_1.z.iso.datetime(),
30
+ updatedAt: zod_openapi_1.z.iso.datetime(),
31
+ deletedAt: zod_openapi_1.z.iso.datetime().nullable(),
19
32
  })
20
- .openapi({ title: "FileEntity" });
21
- // ─── Inputs ───────────────────────────────────────────────────────────────────
33
+ .openapi("File");
34
+ /**
35
+ * --------------------------------
36
+ * INPUTS
37
+ * --------------------------------
38
+ */
22
39
  exports.CreateFileInputSchema = zod_openapi_1.z.object({
23
- key: zod_openapi_1.z.string().openapi({ example: "uploads/audio/podcast789.mp3" }),
24
- mimeType: zod_openapi_1.z.string().openapi({ example: "audio/mpeg" }),
25
- parentId: zod_openapi_1.z.cuid2().optional().openapi({ example: "ckj1a2b3c0000xyz" }),
26
- parentType: zod_openapi_1.z
27
- .enum(constants_1.ACTIVITY_PARENT_TYPES)
28
- .optional()
29
- .openapi({ example: "POST" }),
30
- isThumbnail: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
31
- order: zod_openapi_1.z.number().int().optional().default(0).openapi({ example: 0 }),
40
+ key: zod_openapi_1.z.string(),
41
+ mimeType: zod_openapi_1.z.string(),
42
+ parentId: zod_openapi_1.z.cuid2().optional(),
43
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).optional(),
44
+ isThumbnail: zod_openapi_1.z.boolean().optional(),
45
+ order: zod_openapi_1.z.number().int().default(0),
46
+ });
47
+ exports.UpdateFileInputSchema = zod_openapi_1.z.object({
48
+ fileId: zod_openapi_1.z.cuid2(),
49
+ parentId: zod_openapi_1.z.cuid2().optional(),
50
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).optional(),
51
+ isThumbnail: zod_openapi_1.z.boolean().optional(),
52
+ order: zod_openapi_1.z.number().int().optional(),
32
53
  });
33
- exports.FileUpdateInputSchema = zod_openapi_1.z
34
- .object({
35
- id: zod_openapi_1.z.cuid2().openapi({ example: "f123e4567-e89b-12d3-a456-426614174000" }),
36
- parentId: zod_openapi_1.z.cuid2().optional().openapi({ example: "ckj1a2b3c0000xyz" }),
37
- parentType: zod_openapi_1.z
38
- .enum(constants_1.ACTIVITY_PARENT_TYPES)
39
- .optional()
40
- .openapi({ example: "POST" }),
41
- isThumbnail: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
42
- order: zod_openapi_1.z.number().int().optional().openapi({ example: 1 }),
43
- })
44
- .openapi({ title: "FileUpdateInput" });
45
54
  exports.DeleteFileInputSchema = zod_openapi_1.z.object({
46
- fileId: zod_openapi_1.z.cuid2().optional().openapi({ example: "0irjif0qur09481u90r1u" }),
55
+ fileId: zod_openapi_1.z.cuid2().optional(),
47
56
  key: zod_openapi_1.z.string().optional(),
48
57
  });
49
- exports.FileKeySchema = zod_openapi_1.z.object({
50
- key: zod_openapi_1.z
51
- .string()
52
- .max(400, { error: "Key should not be longer than 400 characters" }),
58
+ exports.FileKeyInputSchema = zod_openapi_1.z.object({
59
+ key: zod_openapi_1.z.string().max(400),
60
+ });
61
+ exports.GetPresignedUploadUrlInputSchema = zod_openapi_1.z.object({
62
+ key: zod_openapi_1.z.string(),
63
+ });
64
+ exports.GetPresignedDownloadUrlInputSchema = zod_openapi_1.z.object({
65
+ fileId: zod_openapi_1.z.cuid2(),
53
66
  });
54
- // ─── Outputs ──────────────────────────────────────────────────────────────────
67
+ /**
68
+ * --------------------------------
69
+ * OUTPUTS
70
+ * --------------------------------
71
+ */
55
72
  exports.CreateFileOutputSchema = exports.FileEntitySchema;
56
73
  exports.DeleteFileOutputSchema = zod_openapi_1.z.object({
57
- id: zod_openapi_1.z.cuid2().openapi({ example: "r90rjnaneifijhi31" }),
58
- });
59
- exports.GetPresignedUploadUrlInputSchema = zod_openapi_1.z.object({
60
- key: zod_openapi_1.z.string().openapi({ example: "/users/123/pfp" }),
74
+ id: zod_openapi_1.z.cuid2(),
61
75
  });
62
76
  exports.GetPresignedUploadUrlOutputSchema = zod_openapi_1.z.object({
63
- url: zod_openapi_1.z.url().openapi({ example: "https://www.cloudflare.img" }),
64
- });
65
- exports.GetPresignedDownloadUrlInputSchema = zod_openapi_1.z.object({
66
- fileId: zod_openapi_1.z.cuid2().openapi({ example: "0irjif0qur09481u90r1u" }),
77
+ url: zod_openapi_1.z.url(),
67
78
  });
68
79
  exports.GetPresignedDownloadUrlOutputSchema = exports.GetPresignedUploadUrlOutputSchema;
@@ -1,6 +1,7 @@
1
1
  export * from "./auth";
2
2
  export * from "./brand";
3
3
  export * from "./common";
4
+ export * from "./comment";
4
5
  export * from "./creative";
5
6
  export * from "./user";
6
7
  export * from "./project";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./brand"), exports);
19
19
  __exportStar(require("./common"), exports);
20
+ __exportStar(require("./comment"), exports);
20
21
  __exportStar(require("./creative"), exports);
21
22
  __exportStar(require("./user"), exports);
22
23
  __exportStar(require("./project"), exports);
@@ -1,7 +1,49 @@
1
- import z from "zod";
1
+ import { z } from "@hono/zod-openapi";
2
+ /**
3
+ * --------------------------------
4
+ * SHAPE
5
+ * --------------------------------
6
+ */
7
+ declare const InvestorShortlistShape: z.ZodObject<{
8
+ projectId: z.ZodCUID2;
9
+ projectImage: z.ZodURL;
10
+ projectCreatorImage: z.ZodOptional<z.ZodURL>;
11
+ projectCreatorName: z.ZodString;
12
+ projectName: z.ZodString;
13
+ projectTotalRaising: z.ZodString;
14
+ projectTotalRaisingCurrency: z.ZodEnum<{
15
+ readonly USD: "USD (United States Dollar)";
16
+ readonly EUR: "EUR (Euro)";
17
+ readonly GBP: "GBP (British Pound Sterling)";
18
+ readonly NGN: "NGN (Nigerian Naira)";
19
+ readonly CAD: "CAD (Canadian Dollar)";
20
+ readonly AUD: "AUD (Australian Dollar)";
21
+ readonly JPY: "JPY (Japanese Yen)";
22
+ readonly CHF: "CHF (Swiss Franc)";
23
+ readonly INR: "INR (Indian Rupee)";
24
+ readonly ZAR: "ZAR (South African Rand)";
25
+ }>;
26
+ projectVentureStage: z.ZodOptional<z.ZodEnum<{
27
+ readonly IDEA: "Idea";
28
+ readonly PRE_SEED: "Pre Seed";
29
+ readonly MVP: "MVP";
30
+ readonly SEED: "Seed";
31
+ readonly SERIES_A: "Series A";
32
+ readonly SERIES_B: "Series B";
33
+ readonly SERIES_C: "Series C";
34
+ readonly GROWTH: "Growth";
35
+ readonly EXIT: "Exit";
36
+ }>>;
37
+ }, z.core.$strip>;
38
+ export type InvestorShortlistShapeType = z.infer<typeof InvestorShortlistShape>;
39
+ /**
40
+ * --------------------------------
41
+ * BASE ENTITY
42
+ * --------------------------------
43
+ */
2
44
  export declare const InvestorShortlistEntitySchema: z.ZodObject<{
3
- id: z.ZodCUID2;
4
- userId: z.ZodCUID2;
45
+ createdAt: z.ZodISODateTime;
46
+ updatedAt: z.ZodISODateTime;
5
47
  projectId: z.ZodCUID2;
6
48
  projectImage: z.ZodURL;
7
49
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
@@ -31,20 +73,33 @@ export declare const InvestorShortlistEntitySchema: z.ZodObject<{
31
73
  readonly GROWTH: "Growth";
32
74
  readonly EXIT: "Exit";
33
75
  }>>;
34
- createdAt: z.ZodCoercedDate<unknown>;
35
- updatedAt: z.ZodCoercedDate<unknown>;
76
+ id: z.ZodCUID2;
77
+ userId: z.ZodCUID2;
36
78
  }, z.core.$strip>;
79
+ export type InvestorShortlistEntity = z.infer<typeof InvestorShortlistEntitySchema>;
80
+ /**
81
+ * --------------------------------
82
+ * INPUTS
83
+ * --------------------------------
84
+ */
37
85
  export declare const CreateInvestorShortlistInputSchema: z.ZodObject<{
38
86
  projectId: z.ZodCUID2;
39
87
  }, z.core.$strip>;
88
+ export type CreateInvestorShortlistInput = z.infer<typeof CreateInvestorShortlistInputSchema>;
40
89
  export declare const GetInvestorShortlistInputSchema: z.ZodObject<{
41
- cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
+ cursor: z.ZodOptional<z.ZodString>;
42
91
  }, z.core.$strip>;
92
+ export type GetInvestorShortlistInput = z.infer<typeof GetInvestorShortlistInputSchema>;
93
+ /**
94
+ * --------------------------------
95
+ * OUTPUTS
96
+ * --------------------------------
97
+ */
43
98
  export declare const GetInvestorShortlistOutputSchema: z.ZodObject<{
44
- nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
99
+ nextCursor: z.ZodOptional<z.ZodString>;
45
100
  shortlistItems: z.ZodArray<z.ZodObject<{
46
- id: z.ZodCUID2;
47
- userId: z.ZodCUID2;
101
+ createdAt: z.ZodISODateTime;
102
+ updatedAt: z.ZodISODateTime;
48
103
  projectId: z.ZodCUID2;
49
104
  projectImage: z.ZodURL;
50
105
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
@@ -74,7 +129,9 @@ export declare const GetInvestorShortlistOutputSchema: z.ZodObject<{
74
129
  readonly GROWTH: "Growth";
75
130
  readonly EXIT: "Exit";
76
131
  }>>;
77
- createdAt: z.ZodCoercedDate<unknown>;
78
- updatedAt: z.ZodCoercedDate<unknown>;
132
+ id: z.ZodCUID2;
133
+ userId: z.ZodCUID2;
79
134
  }, z.core.$strip>>;
80
135
  }, z.core.$strip>;
136
+ export type GetInvestorShortlistOutput = z.infer<typeof GetInvestorShortlistOutputSchema>;
137
+ export {};
@@ -1,32 +1,54 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.GetInvestorShortlistOutputSchema = exports.GetInvestorShortlistInputSchema = exports.CreateInvestorShortlistInputSchema = exports.InvestorShortlistEntitySchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
4
+ const zod_openapi_1 = require("@hono/zod-openapi");
8
5
  const constants_1 = require("../constants");
9
- exports.InvestorShortlistEntitySchema = zod_1.default.object({
10
- id: zod_1.default.cuid2(),
11
- userId: zod_1.default.cuid2(),
12
- projectId: zod_1.default.cuid2(),
13
- projectImage: zod_1.default.url(),
14
- projectCreatorImage: zod_1.default.url().optional(),
15
- projectCreatorName: zod_1.default.string(),
16
- projectName: zod_1.default.string(),
17
- projectTotalRaising: zod_1.default.string(),
18
- projectTotalRaisingCurrency: zod_1.default.enum(constants_1.WAGES_CURRENCY),
19
- projectVentureStage: zod_1.default.enum(constants_1.VENTURE_STAGES).optional(),
20
- createdAt: zod_1.default.coerce.date(),
21
- updatedAt: zod_1.default.coerce.date(),
6
+ /**
7
+ * --------------------------------
8
+ * SHAPE
9
+ * --------------------------------
10
+ */
11
+ const InvestorShortlistShape = zod_openapi_1.z.object({
12
+ projectId: zod_openapi_1.z.cuid2(),
13
+ projectImage: zod_openapi_1.z.url(),
14
+ projectCreatorImage: zod_openapi_1.z.url().optional(),
15
+ projectCreatorName: zod_openapi_1.z.string(),
16
+ projectName: zod_openapi_1.z.string(),
17
+ projectTotalRaising: zod_openapi_1.z.string(),
18
+ projectTotalRaisingCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY),
19
+ projectVentureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
22
20
  });
23
- exports.CreateInvestorShortlistInputSchema = zod_1.default.object({
24
- projectId: zod_1.default.cuid2(),
21
+ /**
22
+ * --------------------------------
23
+ * BASE ENTITY
24
+ * --------------------------------
25
+ */
26
+ exports.InvestorShortlistEntitySchema = zod_openapi_1.z
27
+ .object({
28
+ id: zod_openapi_1.z.cuid2(),
29
+ userId: zod_openapi_1.z.cuid2(),
30
+ ...InvestorShortlistShape.shape,
31
+ createdAt: zod_openapi_1.z.iso.datetime(),
32
+ updatedAt: zod_openapi_1.z.iso.datetime(),
33
+ })
34
+ .openapi("InvestorShortlist");
35
+ /**
36
+ * --------------------------------
37
+ * INPUTS
38
+ * --------------------------------
39
+ */
40
+ exports.CreateInvestorShortlistInputSchema = zod_openapi_1.z.object({
41
+ projectId: zod_openapi_1.z.cuid2(),
25
42
  });
26
- exports.GetInvestorShortlistInputSchema = zod_1.default.object({
27
- cursor: zod_1.default.string().optional().nullable(),
43
+ exports.GetInvestorShortlistInputSchema = zod_openapi_1.z.object({
44
+ cursor: zod_openapi_1.z.string().optional(),
28
45
  });
29
- exports.GetInvestorShortlistOutputSchema = zod_1.default.object({
30
- nextCursor: zod_1.default.string().optional().nullable(),
31
- shortlistItems: zod_1.default.array(exports.InvestorShortlistEntitySchema),
46
+ /**
47
+ * --------------------------------
48
+ * OUTPUTS
49
+ * --------------------------------
50
+ */
51
+ exports.GetInvestorShortlistOutputSchema = zod_openapi_1.z.object({
52
+ nextCursor: zod_openapi_1.z.string().optional(),
53
+ shortlistItems: zod_openapi_1.z.array(exports.InvestorShortlistEntitySchema),
32
54
  });