@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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/schemas/activity.d.ts +1 -0
- package/dist/schemas/auth.d.ts +2 -0
- package/dist/schemas/bookmark.d.ts +62 -7
- package/dist/schemas/bookmark.js +32 -30
- package/dist/schemas/brand.d.ts +3 -3
- package/dist/schemas/chat.d.ts +96 -52
- package/dist/schemas/chat.js +44 -18
- package/dist/schemas/comment.d.ts +65 -21
- package/dist/schemas/comment.js +48 -54
- package/dist/schemas/common.d.ts +15 -11
- package/dist/schemas/creative.d.ts +3 -3
- package/dist/schemas/discipline.d.ts +63 -12
- package/dist/schemas/discipline.js +62 -65
- package/dist/schemas/entity-stats.d.ts +35 -3
- package/dist/schemas/entity-stats.js +24 -38
- package/dist/schemas/feed.d.ts +50 -3
- package/dist/schemas/feed.js +43 -13
- package/dist/schemas/file.d.ts +65 -24
- package/dist/schemas/file.js +60 -49
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/investor-shortlist.d.ts +68 -11
- package/dist/schemas/investor-shortlist.js +46 -24
- package/dist/schemas/investor-signal.d.ts +52 -12
- package/dist/schemas/investor-signal.js +59 -39
- package/dist/schemas/investor.d.ts +3 -3
- package/dist/schemas/job-application.d.ts +291 -279
- package/dist/schemas/job-application.js +59 -95
- package/dist/schemas/job.d.ts +200 -659
- package/dist/schemas/job.js +98 -231
- package/dist/schemas/like.d.ts +3 -0
- package/dist/schemas/message.d.ts +125 -94
- package/dist/schemas/message.js +54 -55
- package/dist/schemas/notification.d.ts +99 -32
- package/dist/schemas/notification.js +46 -42
- package/dist/schemas/payout-method.d.ts +51 -31
- package/dist/schemas/payout-method.js +48 -58
- package/dist/schemas/post.d.ts +295 -204
- package/dist/schemas/post.js +148 -272
- package/dist/schemas/product.d.ts +308 -229
- package/dist/schemas/product.js +111 -94
- package/dist/schemas/project.d.ts +75 -107
- package/dist/schemas/project.js +1 -5
- package/dist/schemas/seller.d.ts +10 -10
- package/dist/schemas/user-strike.d.ts +3 -0
- package/dist/schemas/user.d.ts +114 -123
- package/dist/schemas/username.d.ts +1 -0
- package/dist/schemas/view.d.ts +1 -0
- package/dist/types/activity.d.ts +1 -3
- package/dist/types/auth.d.ts +1 -4
- package/dist/types/bookmark.d.ts +1 -3
- package/dist/types/chat.d.ts +1 -11
- package/dist/types/comment.d.ts +1 -5
- package/dist/types/common.d.ts +2 -8
- package/dist/types/discipline.d.ts +1 -11
- package/dist/types/entity-stats.d.ts +1 -3
- package/dist/types/feed.d.ts +1 -5
- package/dist/types/investor-shortlist.d.ts +1 -6
- package/dist/types/investor-signal.d.ts +1 -7
- package/dist/types/like.d.ts +1 -3
- package/dist/types/message.d.ts +1 -9
- package/dist/types/notification.d.ts +1 -9
- package/dist/types/user-strike.d.ts +1 -5
- package/dist/types/username.d.ts +1 -3
- package/package.json +1 -1
- package/src/index.ts +4 -5
- package/src/schemas/activity.ts +5 -4
- package/src/schemas/auth.ts +14 -10
- package/src/schemas/bookmark.ts +48 -29
- package/src/schemas/chat.ts +79 -18
- package/src/schemas/comment.ts +63 -49
- package/src/schemas/common.ts +8 -3
- package/src/schemas/discipline.ts +103 -71
- package/src/schemas/entity-stats.ts +32 -38
- package/src/schemas/feed.ts +62 -15
- package/src/schemas/file.ts +85 -58
- package/src/schemas/index.ts +1 -0
- package/src/schemas/investor-shortlist.ts +57 -8
- package/src/schemas/investor-signal.ts +79 -27
- package/src/schemas/job-application.ts +81 -115
- package/src/schemas/job.ts +160 -301
- package/src/schemas/like.ts +5 -1
- package/src/schemas/message.ts +71 -64
- package/src/schemas/notification.ts +63 -51
- package/src/schemas/payout-method.ts +47 -63
- package/src/schemas/post.ts +211 -272
- package/src/schemas/product.ts +202 -139
- package/src/schemas/project.ts +7 -10
- package/src/schemas/user-strike.ts +7 -1
- package/src/schemas/user.ts +2 -6
- package/src/schemas/username.ts +5 -3
- package/src/schemas/view.ts +0 -50
- package/src/types/activity.ts +0 -4
- package/src/types/auth.ts +0 -5
- package/src/types/bookmark.ts +0 -4
- package/src/types/chat.ts +0 -31
- package/src/types/comment.ts +0 -12
- package/src/types/common.ts +0 -14
- package/src/types/discipline.ts +0 -32
- package/src/types/entity-stats.ts +0 -4
- package/src/types/feed.ts +0 -10
- package/src/types/index.ts +0 -16
- package/src/types/investor-shortlist.ts +0 -18
- package/src/types/investor-signal.ts +0 -26
- package/src/types/like.ts +0 -4
- package/src/types/message.ts +0 -26
- package/src/types/notification.ts +0 -34
- package/src/types/user-strike.ts +0 -10
- package/src/types/username.ts +0 -4
package/dist/schemas/feed.d.ts
CHANGED
|
@@ -1,18 +1,65 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
|
|
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
|
|
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 {};
|
package/dist/schemas/feed.js
CHANGED
|
@@ -1,21 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TrendingUsersOutputSchema = exports.
|
|
3
|
+
exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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(
|
|
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
|
});
|
package/dist/schemas/file.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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.
|
|
79
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
45
80
|
}, z.core.$strip>;
|
|
46
81
|
export type CreateFileInput = z.infer<typeof CreateFileInputSchema>;
|
|
47
|
-
export declare const
|
|
48
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
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 {};
|
package/dist/schemas/file.js
CHANGED
|
@@ -1,68 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPresignedDownloadUrlOutputSchema = exports.
|
|
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()
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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(
|
|
21
|
-
|
|
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()
|
|
24
|
-
mimeType: zod_openapi_1.z.string()
|
|
25
|
-
parentId: zod_openapi_1.z.cuid2().optional()
|
|
26
|
-
parentType: zod_openapi_1.z
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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()
|
|
55
|
+
fileId: zod_openapi_1.z.cuid2().optional(),
|
|
47
56
|
key: zod_openapi_1.z.string().optional(),
|
|
48
57
|
});
|
|
49
|
-
exports.
|
|
50
|
-
key: zod_openapi_1.z
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
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()
|
|
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()
|
|
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;
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED
|
@@ -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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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.
|
|
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.
|
|
99
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
45
100
|
shortlistItems: z.ZodArray<z.ZodObject<{
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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
|
|
4
|
+
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
8
5
|
const constants_1 = require("../constants");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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 =
|
|
27
|
-
cursor:
|
|
43
|
+
exports.GetInvestorShortlistInputSchema = zod_openapi_1.z.object({
|
|
44
|
+
cursor: zod_openapi_1.z.string().optional(),
|
|
28
45
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
});
|