@zyacreatives/shared 2.1.34 → 2.1.36
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/constants.d.ts +2 -0
- package/dist/constants.js +2 -0
- package/dist/schemas/bookmark.d.ts +3 -0
- package/dist/schemas/comment.d.ts +2 -0
- package/dist/schemas/entity-stats.d.ts +1 -0
- package/dist/schemas/like.d.ts +3 -0
- package/dist/schemas/message.d.ts +3 -0
- package/dist/schemas/notification.d.ts +7 -0
- package/dist/schemas/post.d.ts +14 -0
- package/dist/schemas/project.d.ts +4 -0
- package/dist/schemas/user-strike.d.ts +3 -0
- package/dist/schemas/user.d.ts +6 -0
- package/dist/schemas/view.d.ts +1 -0
- package/package.json +1 -1
- package/src/constants.ts +329 -327
package/dist/constants.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export declare const INVESTOR_VERIFICATION_DOCUMENT_TYPES: {
|
|
|
78
78
|
};
|
|
79
79
|
export declare const ACTIVITY_PARENT_TYPES: {
|
|
80
80
|
readonly PROJECT: "PROJECT";
|
|
81
|
+
readonly USER: "USER";
|
|
81
82
|
readonly JOB: "JOB";
|
|
82
83
|
readonly POST: "POST";
|
|
83
84
|
readonly COMMENT: "COMMENT";
|
|
@@ -215,6 +216,7 @@ export declare const NOTIFICATION_TYPES: {
|
|
|
215
216
|
readonly COMMENT: "Comment";
|
|
216
217
|
readonly REPLY: "Reply";
|
|
217
218
|
readonly MESSAGE: "Message";
|
|
219
|
+
readonly BOOKMARK: "Bookmark";
|
|
218
220
|
readonly JOB_APPLICATION: "Job Application";
|
|
219
221
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
220
222
|
readonly SYSTEM_STRIKE: "System Strike";
|
package/dist/constants.js
CHANGED
|
@@ -81,6 +81,7 @@ exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = {
|
|
|
81
81
|
};
|
|
82
82
|
exports.ACTIVITY_PARENT_TYPES = {
|
|
83
83
|
PROJECT: "PROJECT",
|
|
84
|
+
USER: "USER",
|
|
84
85
|
JOB: "JOB",
|
|
85
86
|
POST: "POST",
|
|
86
87
|
COMMENT: "COMMENT",
|
|
@@ -217,6 +218,7 @@ exports.NOTIFICATION_TYPES = {
|
|
|
217
218
|
COMMENT: "Comment",
|
|
218
219
|
REPLY: "Reply",
|
|
219
220
|
MESSAGE: "Message",
|
|
221
|
+
BOOKMARK: "Bookmark",
|
|
220
222
|
JOB_APPLICATION: "Job Application",
|
|
221
223
|
APPLICATION_STATUS_CHANGE: "Application Status Change",
|
|
222
224
|
SYSTEM_STRIKE: "System Strike",
|
|
@@ -6,6 +6,7 @@ export declare const BookmarkEntitySchema: z.ZodObject<{
|
|
|
6
6
|
parentId: z.ZodCUID2;
|
|
7
7
|
parentType: z.ZodEnum<{
|
|
8
8
|
readonly PROJECT: "PROJECT";
|
|
9
|
+
readonly USER: "USER";
|
|
9
10
|
readonly JOB: "JOB";
|
|
10
11
|
readonly POST: "POST";
|
|
11
12
|
readonly COMMENT: "COMMENT";
|
|
@@ -16,6 +17,7 @@ export declare const BookmarkInputSchema: z.ZodObject<{
|
|
|
16
17
|
parentId: z.ZodString;
|
|
17
18
|
parentType: z.ZodEnum<{
|
|
18
19
|
readonly PROJECT: "PROJECT";
|
|
20
|
+
readonly USER: "USER";
|
|
19
21
|
readonly JOB: "JOB";
|
|
20
22
|
readonly POST: "POST";
|
|
21
23
|
readonly COMMENT: "COMMENT";
|
|
@@ -30,6 +32,7 @@ export declare const BookmarkOutputSchema: z.ZodObject<{
|
|
|
30
32
|
parentId: z.ZodCUID2;
|
|
31
33
|
parentType: z.ZodEnum<{
|
|
32
34
|
readonly PROJECT: "PROJECT";
|
|
35
|
+
readonly USER: "USER";
|
|
33
36
|
readonly JOB: "JOB";
|
|
34
37
|
readonly POST: "POST";
|
|
35
38
|
readonly COMMENT: "COMMENT";
|
|
@@ -5,6 +5,7 @@ export declare const CommentEntitySchema: z.ZodObject<{
|
|
|
5
5
|
parentId: z.ZodCUID2;
|
|
6
6
|
parentType: z.ZodEnum<{
|
|
7
7
|
readonly PROJECT: "PROJECT";
|
|
8
|
+
readonly USER: "USER";
|
|
8
9
|
readonly JOB: "JOB";
|
|
9
10
|
readonly POST: "POST";
|
|
10
11
|
readonly COMMENT: "COMMENT";
|
|
@@ -32,6 +33,7 @@ export declare const CommentOutputSchema: z.ZodObject<{
|
|
|
32
33
|
parentId: z.ZodCUID2;
|
|
33
34
|
parentType: z.ZodEnum<{
|
|
34
35
|
readonly PROJECT: "PROJECT";
|
|
36
|
+
readonly USER: "USER";
|
|
35
37
|
readonly JOB: "JOB";
|
|
36
38
|
readonly POST: "POST";
|
|
37
39
|
readonly COMMENT: "COMMENT";
|
package/dist/schemas/like.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const LikeEntitySchema: z.ZodObject<{
|
|
|
6
6
|
parentId: z.ZodCUID2;
|
|
7
7
|
parentType: z.ZodEnum<{
|
|
8
8
|
readonly PROJECT: "PROJECT";
|
|
9
|
+
readonly USER: "USER";
|
|
9
10
|
readonly JOB: "JOB";
|
|
10
11
|
readonly POST: "POST";
|
|
11
12
|
readonly COMMENT: "COMMENT";
|
|
@@ -16,6 +17,7 @@ export declare const LikeInputSchema: z.ZodObject<{
|
|
|
16
17
|
parentId: z.ZodString;
|
|
17
18
|
parentType: z.ZodEnum<{
|
|
18
19
|
readonly PROJECT: "PROJECT";
|
|
20
|
+
readonly USER: "USER";
|
|
19
21
|
readonly JOB: "JOB";
|
|
20
22
|
readonly POST: "POST";
|
|
21
23
|
readonly COMMENT: "COMMENT";
|
|
@@ -30,6 +32,7 @@ export declare const LikeOutputSchema: z.ZodObject<{
|
|
|
30
32
|
parentId: z.ZodCUID2;
|
|
31
33
|
parentType: z.ZodEnum<{
|
|
32
34
|
readonly PROJECT: "PROJECT";
|
|
35
|
+
readonly USER: "USER";
|
|
33
36
|
readonly JOB: "JOB";
|
|
34
37
|
readonly POST: "POST";
|
|
35
38
|
readonly COMMENT: "COMMENT";
|
|
@@ -4,6 +4,7 @@ export declare const MessageEntitySchema: z.ZodObject<{
|
|
|
4
4
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
5
5
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
readonly PROJECT: "PROJECT";
|
|
7
|
+
readonly USER: "USER";
|
|
7
8
|
readonly JOB: "JOB";
|
|
8
9
|
readonly POST: "POST";
|
|
9
10
|
readonly COMMENT: "COMMENT";
|
|
@@ -43,6 +44,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
|
|
|
43
44
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
44
45
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
45
46
|
readonly PROJECT: "PROJECT";
|
|
47
|
+
readonly USER: "USER";
|
|
46
48
|
readonly JOB: "JOB";
|
|
47
49
|
readonly POST: "POST";
|
|
48
50
|
readonly COMMENT: "COMMENT";
|
|
@@ -109,6 +111,7 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
|
|
|
109
111
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
110
112
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
111
113
|
readonly PROJECT: "PROJECT";
|
|
114
|
+
readonly USER: "USER";
|
|
112
115
|
readonly JOB: "JOB";
|
|
113
116
|
readonly POST: "POST";
|
|
114
117
|
readonly COMMENT: "COMMENT";
|
|
@@ -9,6 +9,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
|
|
|
9
9
|
readonly COMMENT: "Comment";
|
|
10
10
|
readonly REPLY: "Reply";
|
|
11
11
|
readonly MESSAGE: "Message";
|
|
12
|
+
readonly BOOKMARK: "Bookmark";
|
|
12
13
|
readonly JOB_APPLICATION: "Job Application";
|
|
13
14
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
14
15
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -17,6 +18,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
|
|
|
17
18
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
18
19
|
parentType: z.ZodEnum<{
|
|
19
20
|
readonly PROJECT: "PROJECT";
|
|
21
|
+
readonly USER: "USER";
|
|
20
22
|
readonly JOB: "JOB";
|
|
21
23
|
readonly POST: "POST";
|
|
22
24
|
readonly COMMENT: "COMMENT";
|
|
@@ -41,6 +43,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
41
43
|
readonly COMMENT: "Comment";
|
|
42
44
|
readonly REPLY: "Reply";
|
|
43
45
|
readonly MESSAGE: "Message";
|
|
46
|
+
readonly BOOKMARK: "Bookmark";
|
|
44
47
|
readonly JOB_APPLICATION: "Job Application";
|
|
45
48
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
46
49
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -49,6 +52,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
49
52
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
50
53
|
parentType: z.ZodEnum<{
|
|
51
54
|
readonly PROJECT: "PROJECT";
|
|
55
|
+
readonly USER: "USER";
|
|
52
56
|
readonly JOB: "JOB";
|
|
53
57
|
readonly POST: "POST";
|
|
54
58
|
readonly COMMENT: "COMMENT";
|
|
@@ -69,6 +73,7 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
|
|
|
69
73
|
readonly COMMENT: "Comment";
|
|
70
74
|
readonly REPLY: "Reply";
|
|
71
75
|
readonly MESSAGE: "Message";
|
|
76
|
+
readonly BOOKMARK: "Bookmark";
|
|
72
77
|
readonly JOB_APPLICATION: "Job Application";
|
|
73
78
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
74
79
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -88,6 +93,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
88
93
|
readonly COMMENT: "Comment";
|
|
89
94
|
readonly REPLY: "Reply";
|
|
90
95
|
readonly MESSAGE: "Message";
|
|
96
|
+
readonly BOOKMARK: "Bookmark";
|
|
91
97
|
readonly JOB_APPLICATION: "Job Application";
|
|
92
98
|
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
93
99
|
readonly SYSTEM_STRIKE: "System Strike";
|
|
@@ -96,6 +102,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
96
102
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
97
103
|
parentType: z.ZodEnum<{
|
|
98
104
|
readonly PROJECT: "PROJECT";
|
|
105
|
+
readonly USER: "USER";
|
|
99
106
|
readonly JOB: "JOB";
|
|
100
107
|
readonly POST: "POST";
|
|
101
108
|
readonly COMMENT: "COMMENT";
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
4
4
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
5
5
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
6
6
|
readonly PROJECT: "PROJECT";
|
|
7
|
+
readonly USER: "USER";
|
|
7
8
|
readonly JOB: "JOB";
|
|
8
9
|
readonly POST: "POST";
|
|
9
10
|
readonly COMMENT: "COMMENT";
|
|
@@ -56,6 +57,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
56
57
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
57
58
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
58
59
|
readonly PROJECT: "PROJECT";
|
|
60
|
+
readonly USER: "USER";
|
|
59
61
|
readonly JOB: "JOB";
|
|
60
62
|
readonly POST: "POST";
|
|
61
63
|
readonly COMMENT: "COMMENT";
|
|
@@ -109,6 +111,7 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
109
111
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
110
112
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
111
113
|
readonly PROJECT: "PROJECT";
|
|
114
|
+
readonly USER: "USER";
|
|
112
115
|
readonly JOB: "JOB";
|
|
113
116
|
readonly POST: "POST";
|
|
114
117
|
readonly COMMENT: "COMMENT";
|
|
@@ -152,6 +155,7 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
152
155
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
153
156
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
154
157
|
readonly PROJECT: "PROJECT";
|
|
158
|
+
readonly USER: "USER";
|
|
155
159
|
readonly JOB: "JOB";
|
|
156
160
|
readonly POST: "POST";
|
|
157
161
|
readonly COMMENT: "COMMENT";
|
|
@@ -198,6 +202,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
198
202
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
199
203
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
200
204
|
readonly PROJECT: "PROJECT";
|
|
205
|
+
readonly USER: "USER";
|
|
201
206
|
readonly JOB: "JOB";
|
|
202
207
|
readonly POST: "POST";
|
|
203
208
|
readonly COMMENT: "COMMENT";
|
|
@@ -265,6 +270,7 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
|
265
270
|
parentId: z.ZodCUID2;
|
|
266
271
|
parentType: z.ZodEnum<{
|
|
267
272
|
readonly PROJECT: "PROJECT";
|
|
273
|
+
readonly USER: "USER";
|
|
268
274
|
readonly JOB: "JOB";
|
|
269
275
|
readonly POST: "POST";
|
|
270
276
|
readonly COMMENT: "COMMENT";
|
|
@@ -282,6 +288,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
|
282
288
|
parentId: z.ZodCUID2;
|
|
283
289
|
parentType: z.ZodEnum<{
|
|
284
290
|
readonly PROJECT: "PROJECT";
|
|
291
|
+
readonly USER: "USER";
|
|
285
292
|
readonly JOB: "JOB";
|
|
286
293
|
readonly POST: "POST";
|
|
287
294
|
readonly COMMENT: "COMMENT";
|
|
@@ -307,6 +314,7 @@ export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
|
307
314
|
parentId: z.ZodCUID2;
|
|
308
315
|
parentType: z.ZodEnum<{
|
|
309
316
|
readonly PROJECT: "PROJECT";
|
|
317
|
+
readonly USER: "USER";
|
|
310
318
|
readonly JOB: "JOB";
|
|
311
319
|
readonly POST: "POST";
|
|
312
320
|
readonly COMMENT: "COMMENT";
|
|
@@ -328,6 +336,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
328
336
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
329
337
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
330
338
|
readonly PROJECT: "PROJECT";
|
|
339
|
+
readonly USER: "USER";
|
|
331
340
|
readonly JOB: "JOB";
|
|
332
341
|
readonly POST: "POST";
|
|
333
342
|
readonly COMMENT: "COMMENT";
|
|
@@ -381,6 +390,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
381
390
|
parentId: z.ZodCUID2;
|
|
382
391
|
parentType: z.ZodEnum<{
|
|
383
392
|
readonly PROJECT: "PROJECT";
|
|
393
|
+
readonly USER: "USER";
|
|
384
394
|
readonly JOB: "JOB";
|
|
385
395
|
readonly POST: "POST";
|
|
386
396
|
readonly COMMENT: "COMMENT";
|
|
@@ -406,6 +416,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
406
416
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
407
417
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
408
418
|
readonly PROJECT: "PROJECT";
|
|
419
|
+
readonly USER: "USER";
|
|
409
420
|
readonly JOB: "JOB";
|
|
410
421
|
readonly POST: "POST";
|
|
411
422
|
readonly COMMENT: "COMMENT";
|
|
@@ -459,6 +470,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
459
470
|
parentId: z.ZodCUID2;
|
|
460
471
|
parentType: z.ZodEnum<{
|
|
461
472
|
readonly PROJECT: "PROJECT";
|
|
473
|
+
readonly USER: "USER";
|
|
462
474
|
readonly JOB: "JOB";
|
|
463
475
|
readonly POST: "POST";
|
|
464
476
|
readonly COMMENT: "COMMENT";
|
|
@@ -486,6 +498,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
486
498
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
487
499
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
488
500
|
readonly PROJECT: "PROJECT";
|
|
501
|
+
readonly USER: "USER";
|
|
489
502
|
readonly JOB: "JOB";
|
|
490
503
|
readonly POST: "POST";
|
|
491
504
|
readonly COMMENT: "COMMENT";
|
|
@@ -539,6 +552,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
539
552
|
parentId: z.ZodCUID2;
|
|
540
553
|
parentType: z.ZodEnum<{
|
|
541
554
|
readonly PROJECT: "PROJECT";
|
|
555
|
+
readonly USER: "USER";
|
|
542
556
|
readonly JOB: "JOB";
|
|
543
557
|
readonly POST: "POST";
|
|
544
558
|
readonly COMMENT: "COMMENT";
|
|
@@ -345,6 +345,7 @@ export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
|
|
|
345
345
|
parentId: z.ZodCUID2;
|
|
346
346
|
parentType: z.ZodEnum<{
|
|
347
347
|
readonly PROJECT: "PROJECT";
|
|
348
|
+
readonly USER: "USER";
|
|
348
349
|
readonly JOB: "JOB";
|
|
349
350
|
readonly POST: "POST";
|
|
350
351
|
readonly COMMENT: "COMMENT";
|
|
@@ -369,6 +370,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
|
|
|
369
370
|
parentId: z.ZodCUID2;
|
|
370
371
|
parentType: z.ZodEnum<{
|
|
371
372
|
readonly PROJECT: "PROJECT";
|
|
373
|
+
readonly USER: "USER";
|
|
372
374
|
readonly JOB: "JOB";
|
|
373
375
|
readonly POST: "POST";
|
|
374
376
|
readonly COMMENT: "COMMENT";
|
|
@@ -398,6 +400,7 @@ export declare const ProjectWithProjectLikesEntitySchema: z.ZodObject<{
|
|
|
398
400
|
parentId: z.ZodCUID2;
|
|
399
401
|
parentType: z.ZodEnum<{
|
|
400
402
|
readonly PROJECT: "PROJECT";
|
|
403
|
+
readonly USER: "USER";
|
|
401
404
|
readonly JOB: "JOB";
|
|
402
405
|
readonly POST: "POST";
|
|
403
406
|
readonly COMMENT: "COMMENT";
|
|
@@ -420,6 +423,7 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
420
423
|
parentId: z.ZodCUID2;
|
|
421
424
|
parentType: z.ZodEnum<{
|
|
422
425
|
readonly PROJECT: "PROJECT";
|
|
426
|
+
readonly USER: "USER";
|
|
423
427
|
readonly JOB: "JOB";
|
|
424
428
|
readonly POST: "POST";
|
|
425
429
|
readonly COMMENT: "COMMENT";
|
|
@@ -7,6 +7,7 @@ export declare const UserStrikeEntitySchema: z.ZodObject<{
|
|
|
7
7
|
parentId: z.ZodCUID2;
|
|
8
8
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
9
9
|
readonly PROJECT: "PROJECT";
|
|
10
|
+
readonly USER: "USER";
|
|
10
11
|
readonly JOB: "JOB";
|
|
11
12
|
readonly POST: "POST";
|
|
12
13
|
readonly COMMENT: "COMMENT";
|
|
@@ -21,6 +22,7 @@ export declare const UpsertUserStrikeInputSchema: z.ZodObject<{
|
|
|
21
22
|
parentId: z.ZodCUID2;
|
|
22
23
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
23
24
|
readonly PROJECT: "PROJECT";
|
|
25
|
+
readonly USER: "USER";
|
|
24
26
|
readonly JOB: "JOB";
|
|
25
27
|
readonly POST: "POST";
|
|
26
28
|
readonly COMMENT: "COMMENT";
|
|
@@ -35,6 +37,7 @@ export declare const UpsertUserStrikeOutputSchema: z.ZodObject<{
|
|
|
35
37
|
parentId: z.ZodCUID2;
|
|
36
38
|
parentType: z.ZodOptional<z.ZodEnum<{
|
|
37
39
|
readonly PROJECT: "PROJECT";
|
|
40
|
+
readonly USER: "USER";
|
|
38
41
|
readonly JOB: "JOB";
|
|
39
42
|
readonly POST: "POST";
|
|
40
43
|
readonly COMMENT: "COMMENT";
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
|
244
244
|
parentId: z.ZodCUID2;
|
|
245
245
|
parentType: z.ZodEnum<{
|
|
246
246
|
readonly PROJECT: "PROJECT";
|
|
247
|
+
readonly USER: "USER";
|
|
247
248
|
readonly JOB: "JOB";
|
|
248
249
|
readonly POST: "POST";
|
|
249
250
|
readonly COMMENT: "COMMENT";
|
|
@@ -269,6 +270,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
269
270
|
parentId: z.ZodCUID2;
|
|
270
271
|
parentType: z.ZodEnum<{
|
|
271
272
|
readonly PROJECT: "PROJECT";
|
|
273
|
+
readonly USER: "USER";
|
|
272
274
|
readonly JOB: "JOB";
|
|
273
275
|
readonly POST: "POST";
|
|
274
276
|
readonly COMMENT: "COMMENT";
|
|
@@ -352,6 +354,7 @@ export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
|
352
354
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
353
355
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
354
356
|
readonly PROJECT: "PROJECT";
|
|
357
|
+
readonly USER: "USER";
|
|
355
358
|
readonly JOB: "JOB";
|
|
356
359
|
readonly POST: "POST";
|
|
357
360
|
readonly COMMENT: "COMMENT";
|
|
@@ -684,6 +687,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
|
|
|
684
687
|
parentId: z.ZodCUID2;
|
|
685
688
|
parentType: z.ZodEnum<{
|
|
686
689
|
readonly PROJECT: "PROJECT";
|
|
690
|
+
readonly USER: "USER";
|
|
687
691
|
readonly JOB: "JOB";
|
|
688
692
|
readonly POST: "POST";
|
|
689
693
|
readonly COMMENT: "COMMENT";
|
|
@@ -761,6 +765,7 @@ export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObje
|
|
|
761
765
|
parentId: z.ZodCUID2;
|
|
762
766
|
parentType: z.ZodEnum<{
|
|
763
767
|
readonly PROJECT: "PROJECT";
|
|
768
|
+
readonly USER: "USER";
|
|
764
769
|
readonly JOB: "JOB";
|
|
765
770
|
readonly POST: "POST";
|
|
766
771
|
readonly COMMENT: "COMMENT";
|
|
@@ -790,6 +795,7 @@ export declare const GetUserActivityOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
790
795
|
parentId: z.ZodString;
|
|
791
796
|
parentType: z.ZodEnum<{
|
|
792
797
|
PROJECT: "PROJECT";
|
|
798
|
+
USER: "USER";
|
|
793
799
|
JOB: "JOB";
|
|
794
800
|
POST: "POST";
|
|
795
801
|
COMMENT: "COMMENT";
|
package/dist/schemas/view.d.ts
CHANGED
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -1,446 +1,448 @@
|
|
|
1
1
|
export const ROLES = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
CREATIVE: "CREATIVE",
|
|
3
|
+
BRAND: "BRAND",
|
|
4
|
+
INVESTOR: "INVESTOR",
|
|
5
|
+
ADMIN: "ADMIN",
|
|
6
6
|
} as const;
|
|
7
7
|
|
|
8
8
|
export const USER_STATUSES = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ACTIVE: "ACTIVE",
|
|
10
|
+
SUSPENDED: "SUSPENDED",
|
|
11
|
+
DELETED: "DELETED",
|
|
12
12
|
} as const;
|
|
13
13
|
|
|
14
14
|
export const CLIENT_TYPES = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
CREATIVE: "CREATIVE",
|
|
16
|
+
BRAND: "BRAND",
|
|
17
|
+
NONE: "NONE",
|
|
18
18
|
} as const;
|
|
19
19
|
|
|
20
20
|
export const EXPERIENCE_LEVELS = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
YEAR_0_1: "0-1 year",
|
|
22
|
+
YEAR_1_3: "1-3 years",
|
|
23
|
+
YEAR_3_5: "3-5 years",
|
|
24
|
+
YEAR_5_PLUS: "5+ years",
|
|
25
25
|
} as const;
|
|
26
26
|
|
|
27
27
|
export const ONBOARDING_PAGES = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
EMAIL_VERIFICATION: "EMAIL_VERIFICATION",
|
|
29
|
+
USERNAME_SELECTION: "USERNAME_SELECTION",
|
|
30
|
+
ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION",
|
|
31
|
+
CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS",
|
|
32
|
+
BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS",
|
|
33
|
+
INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS",
|
|
34
|
+
INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS",
|
|
35
|
+
INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION",
|
|
36
|
+
DONE: "DONE",
|
|
37
37
|
} as const;
|
|
38
38
|
|
|
39
39
|
export const INVESTOR_TYPES = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
ANGEL_INVESTOR: "Angel Investor",
|
|
41
|
+
VENTURE_CAPITALIST: "Venture Capitalist",
|
|
42
|
+
PRIVATE_EQUITY_FIRM: "Private Equity Firm",
|
|
43
|
+
VENTURE_DEBT_PROVIDER: "Venture Debt Provider",
|
|
44
|
+
BANK: "Bank",
|
|
45
|
+
CONVERTIBLE_NOTE_INVESTOR: "Convertible Note Investor",
|
|
46
|
+
REVENUE_BASED_FINANCING_INVESTOR: "Revenue Based Financing Investor",
|
|
47
|
+
CORPORATE_VENTURE_CAPITALIST: "Corporate Venture Capitalist",
|
|
48
|
+
GOVERNMENT: "Government",
|
|
49
|
+
SOCIAL_IMPACT_INVESTOR: "Social Impact Investor",
|
|
50
50
|
} as const;
|
|
51
51
|
|
|
52
52
|
export const INVESTMENT_SIZES = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
UNDER_5K: "Under 5k USD",
|
|
54
|
+
BETWEEN_5K_25K: "5k - 25k USD",
|
|
55
|
+
BETWEEN_25K_100K: "25k - 100k USD",
|
|
56
|
+
BETWEEN_100K_500K: "100k - 500k USD",
|
|
57
|
+
BETWEEN_500K_1M: "500k - 1M USD",
|
|
58
|
+
OVER_1M: "1M+ USD",
|
|
59
59
|
} as const;
|
|
60
60
|
|
|
61
61
|
export const GEOGRAPHIC_FOCUS = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
AFRICA: "Africa",
|
|
63
|
+
ASIA: "Asia",
|
|
64
|
+
EUROPE: "Europe",
|
|
65
|
+
NORTH_AMERICA: "North America",
|
|
66
|
+
SOUTH_AMERICA: "South America",
|
|
67
|
+
MIDDLE_EAST: "Middle East",
|
|
68
|
+
OCEANIA: "Oceania",
|
|
69
|
+
UK: "United Kingdom (UK)",
|
|
70
|
+
US: "United States (US)",
|
|
71
|
+
GLOBAL: "Global",
|
|
72
|
+
OTHER: "Other",
|
|
73
73
|
} as const;
|
|
74
74
|
|
|
75
75
|
export const INVESTOR_VERIFICATION_DOCUMENT_STATUSES = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
PENDING: "PENDING",
|
|
77
|
+
APPROVED: "APPROVED",
|
|
78
|
+
REJECTED: "REJECTED",
|
|
79
79
|
} as const;
|
|
80
80
|
|
|
81
81
|
export const INVESTOR_VERIFICATION_DOCUMENT_TYPES = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
ID_PROOF: "ID_PROOF",
|
|
83
|
+
BANK_STATEMENT: "BANK_STATEMENT",
|
|
84
|
+
TAX_DOCUMENT: "TAX_DOCUMENT",
|
|
85
|
+
BUSINESS_REGISTRATION: "BUSINESS_REGISTRATION",
|
|
86
|
+
OTHER_CERTIFICATE: "OTHER_CERTIFICATE",
|
|
87
87
|
} as const;
|
|
88
88
|
|
|
89
89
|
export const ACTIVITY_PARENT_TYPES = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
PROJECT: "PROJECT",
|
|
91
|
+
USER: "USER",
|
|
92
|
+
JOB: "JOB",
|
|
93
|
+
POST: "POST",
|
|
94
|
+
COMMENT: "COMMENT",
|
|
95
|
+
JOB_APPLICATION: "JOB_APPLICATION",
|
|
95
96
|
} as const;
|
|
96
97
|
|
|
97
98
|
export const POST_TYPES = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
MARKETPLACE: "MARKETPLACE",
|
|
100
|
+
PROJECT: "PROJECT",
|
|
101
|
+
JOB_OPENING: "JOB_OPENING",
|
|
102
|
+
DEFAULT_POST: "DEFAULT_POST",
|
|
103
|
+
POST_WITH_LINKS: "POST_WITH_LINKS",
|
|
104
|
+
POST_WITH_MEDIA: "POST_WITH_MEDIA",
|
|
105
|
+
POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS",
|
|
105
106
|
} as const;
|
|
106
107
|
|
|
107
108
|
export const JOB_TYPE = {
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
GIG: "GIG",
|
|
110
|
+
ROLE: "ROLE",
|
|
110
111
|
} as const;
|
|
111
112
|
|
|
112
113
|
export const WORK_MODE = {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
REMOTE: "Remote",
|
|
115
|
+
HYBRID: "Hybrid",
|
|
116
|
+
ON_SITE: "On Site",
|
|
116
117
|
} as const;
|
|
117
118
|
export const EMPLOYMENT_TYPE = {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
FULL_TIME: "Full Time",
|
|
120
|
+
PART_TIME: "Part Time",
|
|
121
|
+
FREELANCE: "Freelance",
|
|
122
|
+
INTERNSHIP: "Internship",
|
|
122
123
|
} as const;
|
|
123
124
|
|
|
124
125
|
export const JOB_AVAILABILITY_TYPES = {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
IMMEDIATE: "Immediate (Within 1 week)",
|
|
127
|
+
TWO_WEEKS_NOTICE: "2 weeks notice",
|
|
128
|
+
ONE_MONTH_NOTICE: "1 month notice",
|
|
129
|
+
FLEXIBLE: "Flexible",
|
|
129
130
|
} as const;
|
|
130
131
|
|
|
131
132
|
export const WAGE_TYPES = {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
HOURLY: "Hourly",
|
|
134
|
+
DAILY: "Daily",
|
|
135
|
+
WEEKLY: "Weekly",
|
|
136
|
+
MONTHLY: "Monthly",
|
|
137
|
+
PROJECT_BASED: "Project Based",
|
|
137
138
|
} as const;
|
|
138
139
|
|
|
139
140
|
export const JOB_SECTIONS = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
PERSONAL_INFORMATION: "PERSONAL_INFORMATION",
|
|
142
|
+
PHONE_NO: "PHONE_NO",
|
|
143
|
+
PROFESSIONAL_INFORMATION: "PROFESSIONAL_INFORMATION",
|
|
144
|
+
RESUME: "RESUME",
|
|
145
|
+
COVER_LETTER: "COVER_LETTER",
|
|
146
|
+
PORTFOLIO_OR_WORK_SAMPLES: "PORTFOLIO_OR_WORK_SAMPLES",
|
|
147
|
+
AVAILABILITY: "AVAILABILITY",
|
|
148
|
+
WAGES: "WAGES",
|
|
148
149
|
} as const;
|
|
149
150
|
|
|
150
151
|
export const JOB_LOCATIONS = {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
AFRICA: "Africa",
|
|
153
|
+
REMOTE: "Remote",
|
|
154
|
+
EUROPE: "Europe",
|
|
155
|
+
ASIA: "Asia",
|
|
156
|
+
NORTH_AMERICA: "North America",
|
|
157
|
+
SOUTH_AMERICA: "South America",
|
|
158
|
+
MIDDLE_EAST: "Middle East",
|
|
159
|
+
OCEANIA: "Oceania",
|
|
160
|
+
EMEA: "EMEA", // Europe, Middle East, Africa
|
|
161
|
+
ASIA_PACIFIC: "Asia Pacific", // Asia Pacific
|
|
162
|
+
GLOBAL: "Global",
|
|
163
|
+
OTHER: "Other",
|
|
163
164
|
} as const;
|
|
164
165
|
|
|
165
166
|
export const MESSAGE_TYPES = {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
MARKETPLACE: "MARKETPLACE",
|
|
168
|
+
PROJECT: "PROJECT",
|
|
169
|
+
JOB_OPENING: "JOB_OPENING",
|
|
170
|
+
DEFAULT_MESSAGE: "DEFAULT_MESSAGE",
|
|
171
|
+
MESSAGE_WITH_LINKS: "MESSAGE_WITH_LINKS",
|
|
172
|
+
MESSAGE_WITH_MEDIA: "MESSAGE_WITH_MEDIA",
|
|
173
|
+
MESSAGE_WITH_MEDIA_AND_LINKS: "MESSAGE_WITH_MEDIA_AND_LINKS",
|
|
173
174
|
} as const;
|
|
174
175
|
|
|
175
176
|
export type JobLocation = (typeof JOB_LOCATIONS)[keyof typeof JOB_LOCATIONS];
|
|
176
177
|
|
|
177
178
|
export const GIG_TYPE = {
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
ONE_TIME: "One Time",
|
|
180
|
+
RECURRING: "Recurring",
|
|
180
181
|
} as const;
|
|
181
182
|
|
|
182
183
|
export const WAGES_CURRENCY = {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
184
|
+
USD: "USD (United States Dollar)",
|
|
185
|
+
EUR: "EUR (Euro)",
|
|
186
|
+
GBP: "GBP (British Pound Sterling)",
|
|
187
|
+
NGN: "NGN (Nigerian Naira)",
|
|
188
|
+
CAD: "CAD (Canadian Dollar)",
|
|
189
|
+
AUD: "AUD (Australian Dollar)",
|
|
190
|
+
JPY: "JPY (Japanese Yen)",
|
|
191
|
+
CHF: "CHF (Swiss Franc)",
|
|
192
|
+
INR: "INR (Indian Rupee)",
|
|
193
|
+
ZAR: "ZAR (South African Rand)",
|
|
193
194
|
} as const;
|
|
194
195
|
|
|
195
196
|
export const JOB_STATUS = {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
ACTIVE: "ACTIVE",
|
|
198
|
+
DRAFT: "DRAFT",
|
|
199
|
+
ARCHIVED: "ARCHIVED",
|
|
200
|
+
DELETED: "DELETED",
|
|
200
201
|
} as const;
|
|
201
202
|
|
|
202
203
|
export const POST_BADGE_TYPES = {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
NETWORKING: "Networking",
|
|
205
|
+
FUNDING: "Funding",
|
|
206
|
+
COLLABORATION: "Collaboration",
|
|
207
|
+
OPPORTUNITIES: "Opportunities",
|
|
208
|
+
SHOWCASE: "Showcase",
|
|
209
|
+
LEARNING: "Learning",
|
|
210
|
+
DISCUSSION: "Discussion",
|
|
211
|
+
MENTORSHIP: "Mentorship",
|
|
211
212
|
} as const;
|
|
212
213
|
|
|
213
214
|
export const ACTIVITY_TYPES = {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
LIKE: "LIKE",
|
|
216
|
+
UNLIKE: "UNLIKE",
|
|
217
|
+
BOOKMARK: "BOOKMARK",
|
|
218
|
+
UNBOOKMARK: "UNBOOKMARK",
|
|
219
|
+
VIEW: "VIEW",
|
|
219
220
|
} as const;
|
|
220
221
|
|
|
221
222
|
export const LINK_TYPES = {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
INSTAGRAM: "Instagram",
|
|
224
|
+
LINKEDIN: "LinkedIn",
|
|
225
|
+
TWITTER: "Twitter",
|
|
226
|
+
YOUTUBE: "Youtube",
|
|
227
|
+
PORTFOLIO: "Portfolio Website",
|
|
228
|
+
GENERIC_WEBSITE: "Generic Website",
|
|
228
229
|
} as const;
|
|
229
230
|
|
|
230
231
|
export const APPLICATION_STATUS = {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
SENT: "Application Sent",
|
|
233
|
+
OPENED: "Opened",
|
|
234
|
+
REJECTED: "Rejected",
|
|
235
|
+
DECLINED: "Declined",
|
|
236
|
+
OFFERED: "Offered",
|
|
237
|
+
HIRED: "Hired",
|
|
237
238
|
} as const;
|
|
238
239
|
|
|
239
240
|
export const NOTIFICATION_TYPES = {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
241
|
+
FOLLOW: "Follow",
|
|
242
|
+
LIKE: "Like",
|
|
243
|
+
COMMENT: "Comment",
|
|
244
|
+
REPLY: "Reply",
|
|
245
|
+
MESSAGE: "Message",
|
|
246
|
+
BOOKMARK: "Bookmark",
|
|
247
|
+
JOB_APPLICATION: "Job Application",
|
|
248
|
+
APPLICATION_STATUS_CHANGE: "Application Status Change",
|
|
249
|
+
SYSTEM_STRIKE: "System Strike",
|
|
250
|
+
PROJECT_FEATURED: "Project Featured",
|
|
249
251
|
} as const;
|
|
250
252
|
|
|
251
253
|
export type NotificationType =
|
|
252
|
-
|
|
254
|
+
(typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
|
|
253
255
|
|
|
254
256
|
export type ApplicationStatus =
|
|
255
|
-
|
|
257
|
+
(typeof APPLICATION_STATUS)[keyof typeof APPLICATION_STATUS];
|
|
256
258
|
export type ActivityType = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
|
|
257
259
|
export type PostBadgeType =
|
|
258
|
-
|
|
260
|
+
(typeof POST_BADGE_TYPES)[keyof typeof POST_BADGE_TYPES];
|
|
259
261
|
export type JobSections = (typeof JOB_SECTIONS)[keyof typeof JOB_SECTIONS];
|
|
260
262
|
export type WagesCurrency =
|
|
261
|
-
|
|
263
|
+
(typeof WAGES_CURRENCY)[keyof typeof WAGES_CURRENCY];
|
|
262
264
|
export type JobStatus = (typeof JOB_STATUS)[keyof typeof JOB_STATUS];
|
|
263
265
|
export type Role = (typeof ROLES)[keyof typeof ROLES];
|
|
264
266
|
export type JobType = (typeof JOB_TYPE)[keyof typeof JOB_TYPE];
|
|
265
267
|
export type WorkMode = (typeof WORK_MODE)[keyof typeof WORK_MODE];
|
|
266
268
|
export type GigType = (typeof GIG_TYPE)[keyof typeof GIG_TYPE];
|
|
267
269
|
export type EmploymentType =
|
|
268
|
-
|
|
270
|
+
(typeof EMPLOYMENT_TYPE)[keyof typeof EMPLOYMENT_TYPE];
|
|
269
271
|
export type JobAvailabilityTypes =
|
|
270
|
-
|
|
272
|
+
(typeof JOB_AVAILABILITY_TYPES)[keyof typeof JOB_AVAILABILITY_TYPES];
|
|
271
273
|
export type WageTypes = (typeof WAGE_TYPES)[keyof typeof WAGE_TYPES];
|
|
272
274
|
export type PostType = (typeof POST_TYPES)[keyof typeof POST_TYPES];
|
|
273
275
|
export type MessageType = (typeof MESSAGE_TYPES)[keyof typeof MESSAGE_TYPES];
|
|
274
276
|
export type LinkType = (typeof LINK_TYPES)[keyof typeof LINK_TYPES];
|
|
275
277
|
export type ActivityParentType =
|
|
276
|
-
|
|
278
|
+
(typeof ACTIVITY_PARENT_TYPES)[keyof typeof ACTIVITY_PARENT_TYPES];
|
|
277
279
|
export type UserStatus = (typeof USER_STATUSES)[keyof typeof USER_STATUSES];
|
|
278
280
|
export type ClientType = (typeof CLIENT_TYPES)[keyof typeof CLIENT_TYPES];
|
|
279
281
|
export type ExperienceLevel =
|
|
280
|
-
|
|
282
|
+
(typeof EXPERIENCE_LEVELS)[keyof typeof EXPERIENCE_LEVELS];
|
|
281
283
|
export type OnboardingPage =
|
|
282
|
-
|
|
284
|
+
(typeof ONBOARDING_PAGES)[keyof typeof ONBOARDING_PAGES];
|
|
283
285
|
export type InvestorType = (typeof INVESTOR_TYPES)[keyof typeof INVESTOR_TYPES];
|
|
284
286
|
export type InvestmentSize =
|
|
285
|
-
|
|
287
|
+
(typeof INVESTMENT_SIZES)[keyof typeof INVESTMENT_SIZES];
|
|
286
288
|
export type GeographicFocus =
|
|
287
|
-
|
|
289
|
+
(typeof GEOGRAPHIC_FOCUS)[keyof typeof GEOGRAPHIC_FOCUS];
|
|
288
290
|
export type InvestorVerificationDocumentStatus =
|
|
289
|
-
|
|
291
|
+
(typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES];
|
|
290
292
|
export type InvestorVerificationDocumentType =
|
|
291
|
-
|
|
293
|
+
(typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
|
|
292
294
|
|
|
293
295
|
export const API_ROUTES = {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
296
|
+
healthCheck: "/health",
|
|
297
|
+
username: {
|
|
298
|
+
base: "/usernames",
|
|
299
|
+
checkAvailability: "/:username/availability",
|
|
300
|
+
},
|
|
301
|
+
personal: {
|
|
302
|
+
base: "/me",
|
|
303
|
+
getUser: "",
|
|
304
|
+
getProfile: "/profile",
|
|
305
|
+
getProjects: "/projects",
|
|
306
|
+
getProjectBookmarks: "/project-bookmarks",
|
|
307
|
+
getFollowers: "/followers",
|
|
308
|
+
getFollowing: "/following",
|
|
309
|
+
},
|
|
310
|
+
user: {
|
|
311
|
+
base: "/users",
|
|
312
|
+
getUser: "/:value",
|
|
313
|
+
getProfile: "/:value/profile",
|
|
314
|
+
getProjects: "/:value/projects",
|
|
315
|
+
getFollowers: "/:userId/followers",
|
|
316
|
+
getFollowing: "/:userId/following",
|
|
317
|
+
followUser: "/:userId/follow",
|
|
318
|
+
unfollowUser: "/:userId/unfollow",
|
|
319
|
+
reserveUsername: "/reserve-username",
|
|
320
|
+
},
|
|
321
|
+
redirect: {
|
|
322
|
+
base: "/redirect",
|
|
323
|
+
passwordReset: "/password-reset",
|
|
324
|
+
verifiedUser: "/verified-user",
|
|
325
|
+
googleProfile: "/google-profile",
|
|
326
|
+
newGoogleProfile: "/new-google-profile",
|
|
327
|
+
},
|
|
328
|
+
file: {
|
|
329
|
+
base: "/files",
|
|
330
|
+
getPresignedUploadUrl: "/get-upload-url",
|
|
331
|
+
getPresignedDownloadUrl: "/:fileId/download-url",
|
|
332
|
+
getPublicUrl: "/:fileId/public-url",
|
|
333
|
+
createFile: "",
|
|
334
|
+
deleteFile: "/:fileId",
|
|
335
|
+
},
|
|
336
|
+
disciplines: {
|
|
337
|
+
base: "/disciplines",
|
|
338
|
+
getDisciplines: "",
|
|
339
|
+
getSingleDiscipline: "/:slug",
|
|
340
|
+
addDisciplines: "",
|
|
341
|
+
deleteDiscipline: "/:slug",
|
|
342
|
+
},
|
|
343
|
+
creatives: {
|
|
344
|
+
base: "/creatives",
|
|
345
|
+
createCreative: "",
|
|
346
|
+
getCreative: "/:value",
|
|
347
|
+
updateCreative: "",
|
|
348
|
+
},
|
|
349
|
+
brands: {
|
|
350
|
+
base: "/brands",
|
|
351
|
+
createBrand: "",
|
|
352
|
+
getBrand: "/:value",
|
|
353
|
+
updateBrand: "",
|
|
354
|
+
},
|
|
355
|
+
investors: {
|
|
356
|
+
base: "/investors",
|
|
357
|
+
createInvestor: "",
|
|
358
|
+
getInvestor: "/:value",
|
|
359
|
+
updateInvestor: "",
|
|
360
|
+
},
|
|
361
|
+
projects: {
|
|
362
|
+
base: "/projects",
|
|
363
|
+
createProject: "",
|
|
364
|
+
updateProject: "",
|
|
365
|
+
listProjects: "",
|
|
366
|
+
getProject: "/:projectId",
|
|
367
|
+
deleteProject: "/:projectId",
|
|
368
|
+
commentOnProject: "/:projectId/comment",
|
|
369
|
+
deleteCommentOnProject: "/:projectId/comments/:commentId",
|
|
370
|
+
bookmarkProject: "/:projectId/bookmark",
|
|
371
|
+
unbookmarkProject: "/:projectId/unbookmark",
|
|
372
|
+
likeProject: "/:projectId/like",
|
|
373
|
+
unlikeProject: "/:projectId/unlike",
|
|
374
|
+
viewProject: "/:projectId/view",
|
|
375
|
+
getProjectComments: "/:projectId/comments",
|
|
376
|
+
getProjectLikes: "/:projectId/likes",
|
|
377
|
+
getProjectBookmarks: "/:projectId/bookmarks",
|
|
378
|
+
getProjectViews: "/:projectId/views",
|
|
379
|
+
getProjectUser: "/:projectId/user",
|
|
380
|
+
},
|
|
379
381
|
} as const;
|
|
380
382
|
|
|
381
383
|
export const DEFAULT_DISCIPLINES = [
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
384
|
+
{ name: "3D Art", slug: "3d_art" },
|
|
385
|
+
{ name: "Advertising & Marketing", slug: "advertising_marketing" },
|
|
386
|
+
{ name: "AI & Machine Learning Art", slug: "ai_machine_learning_art" },
|
|
387
|
+
{ name: "Animation & Motion", slug: "animation_motion" },
|
|
388
|
+
{ name: "Architecture & Interior", slug: "architecture_interior" },
|
|
389
|
+
{ name: "Art Business", slug: "art_business" },
|
|
390
|
+
{ name: "Art Challenges & Community", slug: "art_challenges_community" },
|
|
391
|
+
{ name: "Art Education", slug: "art_education" },
|
|
392
|
+
{ name: "Book & Editorial Design", slug: "book_editorial_design" },
|
|
393
|
+
{ name: "Brand Strategy", slug: "brand_strategy" },
|
|
394
|
+
{ name: "Business & Consulting", slug: "business_consulting" },
|
|
395
|
+
{ name: "Calligraphy & Penmanship", slug: "calligraphy_penmanship" },
|
|
396
|
+
{
|
|
397
|
+
name: "Character Rigging & Animation Setup",
|
|
398
|
+
slug: "character_rigging_setup",
|
|
399
|
+
},
|
|
400
|
+
{ name: "Comics & Webtoons", slug: "comics_webtoons" },
|
|
401
|
+
{ name: "Concept Art", slug: "concept_art" },
|
|
402
|
+
{ name: "Content Creation", slug: "content_creation" },
|
|
403
|
+
{
|
|
404
|
+
name: "Copywriting & Content Writing",
|
|
405
|
+
slug: "copywriting_content_writing",
|
|
406
|
+
},
|
|
407
|
+
{ name: "Crafts & DIY", slug: "crafts_diy" },
|
|
408
|
+
{ name: "Creative Coding", slug: "creative_coding" },
|
|
409
|
+
{ name: "Data Science & Analysis", slug: "data_science_analysis" },
|
|
410
|
+
{ name: "Data Visualization", slug: "data_visualization" },
|
|
411
|
+
{ name: "Digital Art", slug: "digital_art" },
|
|
412
|
+
{
|
|
413
|
+
name: "Digital Painting & Matte Painting",
|
|
414
|
+
slug: "digital_painting_matte",
|
|
415
|
+
},
|
|
416
|
+
{ name: "E-commerce & Store Design", slug: "ecommerce_store_design" },
|
|
417
|
+
{ name: "Fashion & Style", slug: "fashion_style" },
|
|
418
|
+
{ name: "Food Content", slug: "food_content" },
|
|
419
|
+
{ name: "Game Development", slug: "game_development" },
|
|
420
|
+
{ name: "Graphic Design", slug: "graphic_design" },
|
|
421
|
+
{ name: "Illustration", slug: "illustration" },
|
|
422
|
+
{ name: "Lettering & Typography", slug: "lettering_typography" },
|
|
423
|
+
{ name: "Miniature & Model Making", slug: "miniature_model_making" },
|
|
424
|
+
{ name: "Music Performance", slug: "music_performance" },
|
|
425
|
+
{ name: "Music Production", slug: "music_production" },
|
|
426
|
+
{ name: "Photography", slug: "photography" },
|
|
427
|
+
{ name: "Pixel Art", slug: "pixel_art" },
|
|
428
|
+
{
|
|
429
|
+
name: "Product Strategy & Management",
|
|
430
|
+
slug: "product_strategy_management",
|
|
431
|
+
},
|
|
432
|
+
{ name: "Sculpture & 3D Crafts", slug: "sculpture_3d_crafts" },
|
|
433
|
+
{ name: "Sound Design & Audio", slug: "sound_design_audio" },
|
|
434
|
+
{ name: "Storyboarding & Pre-Vis", slug: "storyboarding_previs" },
|
|
435
|
+
{ name: "Street Art & Murals", slug: "street_art_murals" },
|
|
436
|
+
{ name: "Tattoo Art", slug: "tattoo_art" },
|
|
437
|
+
{ name: "Technical Illustration", slug: "technical_illustration" },
|
|
438
|
+
{ name: "Technical Writing", slug: "technical_writing" },
|
|
439
|
+
{ name: "Traditional Art", slug: "traditional_art" },
|
|
440
|
+
{ name: "Translation & Localization", slug: "translation_localization" },
|
|
441
|
+
{ name: "UI/UX Design", slug: "ui_ux_design" },
|
|
442
|
+
{ name: "Video Content", slug: "video_content" },
|
|
443
|
+
{ name: "Virtual/Augmented Reality", slug: "virtual_augmented_reality" },
|
|
444
|
+
{ name: "Visual Effects (VFX)", slug: "visual_effects_vfx" },
|
|
445
|
+
{ name: "Web Development (Back-End)", slug: "web_development_backend" },
|
|
446
|
+
{ name: "Web Development (Front-End)", slug: "web_development_frontend" },
|
|
447
|
+
{ name: "Writing & Storytelling", slug: "writing_storytelling" },
|
|
446
448
|
];
|