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