@zyacreatives/shared 2.5.52 → 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 (114) 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 +21 -21
  14. package/dist/schemas/creative.js +3 -3
  15. package/dist/schemas/discipline.d.ts +63 -12
  16. package/dist/schemas/discipline.js +62 -65
  17. package/dist/schemas/entity-stats.d.ts +35 -3
  18. package/dist/schemas/entity-stats.js +24 -38
  19. package/dist/schemas/feed.d.ts +50 -3
  20. package/dist/schemas/feed.js +43 -13
  21. package/dist/schemas/file.d.ts +65 -24
  22. package/dist/schemas/file.js +60 -49
  23. package/dist/schemas/index.d.ts +1 -0
  24. package/dist/schemas/index.js +1 -0
  25. package/dist/schemas/investor-shortlist.d.ts +68 -11
  26. package/dist/schemas/investor-shortlist.js +46 -24
  27. package/dist/schemas/investor-signal.d.ts +52 -12
  28. package/dist/schemas/investor-signal.js +59 -39
  29. package/dist/schemas/investor.d.ts +3 -3
  30. package/dist/schemas/job-application.d.ts +291 -279
  31. package/dist/schemas/job-application.js +59 -95
  32. package/dist/schemas/job.d.ts +200 -659
  33. package/dist/schemas/job.js +98 -231
  34. package/dist/schemas/like.d.ts +3 -0
  35. package/dist/schemas/message.d.ts +125 -94
  36. package/dist/schemas/message.js +54 -55
  37. package/dist/schemas/notification.d.ts +99 -32
  38. package/dist/schemas/notification.js +46 -42
  39. package/dist/schemas/payout-method.d.ts +51 -31
  40. package/dist/schemas/payout-method.js +48 -58
  41. package/dist/schemas/post.d.ts +295 -204
  42. package/dist/schemas/post.js +148 -272
  43. package/dist/schemas/product.d.ts +308 -229
  44. package/dist/schemas/product.js +111 -94
  45. package/dist/schemas/project.d.ts +75 -107
  46. package/dist/schemas/project.js +1 -5
  47. package/dist/schemas/seller.d.ts +10 -10
  48. package/dist/schemas/user-strike.d.ts +3 -0
  49. package/dist/schemas/user.d.ts +128 -126
  50. package/dist/schemas/user.js +10 -1
  51. package/dist/schemas/username.d.ts +1 -0
  52. package/dist/schemas/view.d.ts +1 -0
  53. package/dist/types/activity.d.ts +1 -3
  54. package/dist/types/auth.d.ts +1 -4
  55. package/dist/types/bookmark.d.ts +1 -3
  56. package/dist/types/chat.d.ts +1 -11
  57. package/dist/types/comment.d.ts +1 -5
  58. package/dist/types/common.d.ts +2 -8
  59. package/dist/types/discipline.d.ts +1 -11
  60. package/dist/types/entity-stats.d.ts +1 -3
  61. package/dist/types/feed.d.ts +1 -5
  62. package/dist/types/investor-shortlist.d.ts +1 -6
  63. package/dist/types/investor-signal.d.ts +1 -7
  64. package/dist/types/like.d.ts +1 -3
  65. package/dist/types/message.d.ts +1 -9
  66. package/dist/types/notification.d.ts +1 -9
  67. package/dist/types/user-strike.d.ts +1 -5
  68. package/dist/types/username.d.ts +1 -3
  69. package/package.json +1 -1
  70. package/src/index.ts +4 -5
  71. package/src/schemas/activity.ts +5 -4
  72. package/src/schemas/auth.ts +14 -10
  73. package/src/schemas/bookmark.ts +48 -29
  74. package/src/schemas/chat.ts +79 -18
  75. package/src/schemas/comment.ts +63 -49
  76. package/src/schemas/common.ts +8 -3
  77. package/src/schemas/creative.ts +3 -3
  78. package/src/schemas/discipline.ts +103 -71
  79. package/src/schemas/entity-stats.ts +32 -38
  80. package/src/schemas/feed.ts +62 -15
  81. package/src/schemas/file.ts +85 -58
  82. package/src/schemas/index.ts +1 -0
  83. package/src/schemas/investor-shortlist.ts +57 -8
  84. package/src/schemas/investor-signal.ts +79 -27
  85. package/src/schemas/job-application.ts +81 -115
  86. package/src/schemas/job.ts +160 -301
  87. package/src/schemas/like.ts +5 -1
  88. package/src/schemas/message.ts +71 -64
  89. package/src/schemas/notification.ts +63 -51
  90. package/src/schemas/payout-method.ts +47 -63
  91. package/src/schemas/post.ts +211 -272
  92. package/src/schemas/product.ts +202 -139
  93. package/src/schemas/project.ts +7 -10
  94. package/src/schemas/user-strike.ts +7 -1
  95. package/src/schemas/user.ts +17 -5
  96. package/src/schemas/username.ts +5 -3
  97. package/src/schemas/view.ts +0 -50
  98. package/src/types/activity.ts +0 -4
  99. package/src/types/auth.ts +0 -5
  100. package/src/types/bookmark.ts +0 -4
  101. package/src/types/chat.ts +0 -31
  102. package/src/types/comment.ts +0 -12
  103. package/src/types/common.ts +0 -14
  104. package/src/types/discipline.ts +0 -32
  105. package/src/types/entity-stats.ts +0 -4
  106. package/src/types/feed.ts +0 -10
  107. package/src/types/index.ts +0 -16
  108. package/src/types/investor-shortlist.ts +0 -18
  109. package/src/types/investor-signal.ts +0 -26
  110. package/src/types/like.ts +0 -4
  111. package/src/types/message.ts +0 -26
  112. package/src/types/notification.ts +0 -34
  113. package/src/types/user-strike.ts +0 -10
  114. package/src/types/username.ts +0 -4
@@ -1,7 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const EntityStatsSchema: z.ZodObject<{
3
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2
+ /**
3
+ * --------------------------------
4
+ * SHAPE
5
+ * --------------------------------
6
+ */
7
+ declare const EntityStatsShape: z.ZodObject<{
5
8
  parentId: z.ZodCUID2;
6
9
  parentType: z.ZodEnum<{
7
10
  readonly PROJECT: "PROJECT";
@@ -20,3 +23,32 @@ export declare const EntityStatsSchema: z.ZodObject<{
20
23
  viewsCount: z.ZodNumber;
21
24
  commentsCount: z.ZodNumber;
22
25
  }, z.core.$strip>;
26
+ export type EntityStatsShapeType = z.infer<typeof EntityStatsShape>;
27
+ /**
28
+ * --------------------------------
29
+ * BASE ENTITY
30
+ * --------------------------------
31
+ */
32
+ export declare const EntityStatsEntitySchema: z.ZodObject<{
33
+ createdAt: z.ZodISODateTime;
34
+ updatedAt: z.ZodISODateTime;
35
+ parentId: z.ZodCUID2;
36
+ parentType: z.ZodEnum<{
37
+ readonly PROJECT: "PROJECT";
38
+ readonly USER: "USER";
39
+ readonly JOB: "JOB";
40
+ readonly POST: "POST";
41
+ readonly PRODUCT: "PRODUCT";
42
+ readonly SIGNAL: "SIGNAL";
43
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
44
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
45
+ readonly COMMENT: "COMMENT";
46
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
47
+ }>;
48
+ likesCount: z.ZodNumber;
49
+ bookmarksCount: z.ZodNumber;
50
+ viewsCount: z.ZodNumber;
51
+ commentsCount: z.ZodNumber;
52
+ }, z.core.$strip>;
53
+ export type EntityStatsEntity = z.infer<typeof EntityStatsEntitySchema>;
54
+ export {};
@@ -1,44 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityStatsSchema = void 0;
3
+ exports.EntityStatsEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
- exports.EntityStatsSchema = zod_openapi_1.z
6
+ /**
7
+ * --------------------------------
8
+ * SHAPE
9
+ * --------------------------------
10
+ */
11
+ const EntityStatsShape = zod_openapi_1.z.object({
12
+ parentId: zod_openapi_1.z.cuid2(),
13
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES),
14
+ likesCount: zod_openapi_1.z.number(),
15
+ bookmarksCount: zod_openapi_1.z.number(),
16
+ viewsCount: zod_openapi_1.z.number(),
17
+ commentsCount: zod_openapi_1.z.number(),
18
+ });
19
+ /**
20
+ * --------------------------------
21
+ * BASE ENTITY
22
+ * --------------------------------
23
+ */
24
+ exports.EntityStatsEntitySchema = zod_openapi_1.z
7
25
  .object({
8
- updatedAt: zod_openapi_1.z.coerce.date().optional().openapi({
9
- description: "Timestamp of the last update to the entity statistics.",
10
- title: "Updated At",
11
- }),
12
- createdAt: zod_openapi_1.z.coerce.date().optional().openapi({
13
- description: "Timestamp of the creationn to the entity statistics.",
14
- title: "Updated At",
15
- }),
16
- parentId: zod_openapi_1.z.cuid2().openapi({
17
- description: "Unique identifier of the parent entity (e.g., project, post, etc.).",
18
- title: "Parent ID",
19
- }),
20
- parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).openapi({
21
- description: "Type of the parent entity this statistic belongs to.",
22
- title: "Parent Type",
23
- }),
24
- likesCount: zod_openapi_1.z.number().openapi({
25
- description: "Total number of likes associated with the entity.",
26
- title: "Likes Count",
27
- }),
28
- bookmarksCount: zod_openapi_1.z.number().openapi({
29
- description: "Total number of bookmarks associated with the entity.",
30
- title: "Bookmarks Count",
31
- }),
32
- viewsCount: zod_openapi_1.z.number().openapi({
33
- description: "Total number of views recorded for the entity.",
34
- title: "Views Count",
35
- }),
36
- commentsCount: zod_openapi_1.z.number().openapi({
37
- description: "Total number of comments linked to the entity.",
38
- title: "Comments Count",
39
- }),
26
+ ...EntityStatsShape.shape,
27
+ createdAt: zod_openapi_1.z.iso.datetime(),
28
+ updatedAt: zod_openapi_1.z.iso.datetime(),
40
29
  })
41
- .openapi({
42
- description: "Represents engagement statistics for a specific entity.",
43
- title: "EntityStats",
44
- });
30
+ .openapi("EntityStats");
@@ -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 {};