@zyacreatives/shared 2.1.32 → 2.1.34
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 +8 -0
- package/dist/schemas/notification.js +8 -2
- 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 +38 -32
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>;
|
|
@@ -56,6 +60,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
56
60
|
itemTitle: z.ZodOptional<z.ZodString>;
|
|
57
61
|
itemContent: z.ZodOptional<z.ZodString>;
|
|
58
62
|
itemImgUrl: z.ZodOptional<z.ZodString>;
|
|
63
|
+
itemStatus: z.ZodOptional<z.ZodString>;
|
|
59
64
|
}, z.core.$strip>;
|
|
60
65
|
export declare const ListNotificationsInputSchema: z.ZodObject<{
|
|
61
66
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -93,6 +98,8 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
93
98
|
readonly PROJECT: "PROJECT";
|
|
94
99
|
readonly JOB: "JOB";
|
|
95
100
|
readonly POST: "POST";
|
|
101
|
+
readonly COMMENT: "COMMENT";
|
|
102
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
96
103
|
}>;
|
|
97
104
|
isRead: z.ZodDefault<z.ZodBoolean>;
|
|
98
105
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -100,6 +107,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
100
107
|
itemTitle: z.ZodOptional<z.ZodString>;
|
|
101
108
|
itemContent: z.ZodOptional<z.ZodString>;
|
|
102
109
|
itemImgUrl: z.ZodOptional<z.ZodString>;
|
|
110
|
+
itemStatus: z.ZodOptional<z.ZodString>;
|
|
103
111
|
}, z.core.$strip>>;
|
|
104
112
|
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
113
|
unreadCount: z.ZodNumber;
|
|
@@ -12,7 +12,9 @@ exports.NotificationEntitySchema = zod_openapi_1.z
|
|
|
12
12
|
parentId: zod_openapi_1.z.cuid2().optional(),
|
|
13
13
|
parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES),
|
|
14
14
|
isRead: zod_openapi_1.z.boolean().default(false).openapi({ example: false }),
|
|
15
|
-
createdAt: zod_openapi_1.z.coerce
|
|
15
|
+
createdAt: zod_openapi_1.z.coerce
|
|
16
|
+
.date()
|
|
17
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
16
18
|
deletedAt: zod_openapi_1.z.coerce.date().optional().nullable(),
|
|
17
19
|
})
|
|
18
20
|
.openapi("NotificationEntity");
|
|
@@ -25,10 +27,14 @@ exports.NotificationDetailsEntitySchema = exports.NotificationEntitySchema.exten
|
|
|
25
27
|
itemTitle: zod_openapi_1.z.string().optional(),
|
|
26
28
|
itemContent: zod_openapi_1.z.string().optional(),
|
|
27
29
|
itemImgUrl: zod_openapi_1.z.string().optional(),
|
|
30
|
+
itemStatus: zod_openapi_1.z.string().optional(),
|
|
28
31
|
});
|
|
29
32
|
exports.ListNotificationsInputSchema = zod_openapi_1.z
|
|
30
33
|
.object({
|
|
31
|
-
type: zod_openapi_1.z
|
|
34
|
+
type: zod_openapi_1.z
|
|
35
|
+
.enum(constants_1.NOTIFICATION_TYPES)
|
|
36
|
+
.openapi({ example: "LIKE" })
|
|
37
|
+
.optional(),
|
|
32
38
|
cursor: zod_openapi_1.z.string().optional(),
|
|
33
39
|
unreadOnly: zod_openapi_1.z
|
|
34
40
|
.preprocess((val) => val === "true" || val === true, zod_openapi_1.z.boolean())
|
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>>;
|