@zyacreatives/shared 2.1.96 → 2.1.97
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.
|
@@ -3,6 +3,7 @@ export declare const CommentEntitySchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodCUID2;
|
|
4
4
|
userId: z.ZodCUID2;
|
|
5
5
|
parentId: z.ZodCUID2;
|
|
6
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
6
7
|
parentType: z.ZodEnum<{
|
|
7
8
|
readonly PROJECT: "PROJECT";
|
|
8
9
|
readonly USER: "USER";
|
|
@@ -34,6 +35,7 @@ export declare const CommentOutputSchema: z.ZodObject<{
|
|
|
34
35
|
id: z.ZodCUID2;
|
|
35
36
|
userId: z.ZodCUID2;
|
|
36
37
|
parentId: z.ZodCUID2;
|
|
38
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
37
39
|
parentType: z.ZodEnum<{
|
|
38
40
|
readonly PROJECT: "PROJECT";
|
|
39
41
|
readonly USER: "USER";
|
package/dist/schemas/comment.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.CommentEntitySchema = zod_1.default.object({
|
|
|
19
19
|
description: "The CUID2 of the parent entity (e.g., a post or project) this comment belongs to.",
|
|
20
20
|
example: "clq9p8f2z0000c762s7k4g1b",
|
|
21
21
|
}),
|
|
22
|
+
parentCommentId: zod_1.default.cuid2().optional(),
|
|
22
23
|
parentType: zod_1.default.enum(constants_1.ACTIVITY_PARENT_TYPES).openapi({
|
|
23
24
|
description: "The type of the parent entity this comment is attached to.",
|
|
24
25
|
example: "POST", // Assuming 'POST' is a value in ACTIVITY_PARENT_TYPES
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -310,6 +310,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
|
310
310
|
id: z.ZodCUID2;
|
|
311
311
|
userId: z.ZodCUID2;
|
|
312
312
|
parentId: z.ZodCUID2;
|
|
313
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
313
314
|
parentType: z.ZodEnum<{
|
|
314
315
|
readonly PROJECT: "PROJECT";
|
|
315
316
|
readonly USER: "USER";
|
|
@@ -338,6 +339,7 @@ export declare const GetPostWithCommentsOutputSchema: z.ZodObject<{
|
|
|
338
339
|
id: z.ZodCUID2;
|
|
339
340
|
userId: z.ZodCUID2;
|
|
340
341
|
parentId: z.ZodCUID2;
|
|
342
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
341
343
|
parentType: z.ZodEnum<{
|
|
342
344
|
readonly PROJECT: "PROJECT";
|
|
343
345
|
readonly USER: "USER";
|
|
@@ -375,6 +375,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
|
|
|
375
375
|
id: z.ZodCUID2;
|
|
376
376
|
userId: z.ZodCUID2;
|
|
377
377
|
parentId: z.ZodCUID2;
|
|
378
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
378
379
|
parentType: z.ZodEnum<{
|
|
379
380
|
readonly PROJECT: "PROJECT";
|
|
380
381
|
readonly USER: "USER";
|
|
@@ -455,6 +456,7 @@ export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
|
|
|
455
456
|
id: z.ZodCUID2;
|
|
456
457
|
userId: z.ZodCUID2;
|
|
457
458
|
parentId: z.ZodCUID2;
|
|
459
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
458
460
|
parentType: z.ZodEnum<{
|
|
459
461
|
readonly PROJECT: "PROJECT";
|
|
460
462
|
readonly USER: "USER";
|
package/package.json
CHANGED
package/src/schemas/comment.ts
CHANGED
|
@@ -15,6 +15,7 @@ export const CommentEntitySchema = z.object({
|
|
|
15
15
|
"The CUID2 of the parent entity (e.g., a post or project) this comment belongs to.",
|
|
16
16
|
example: "clq9p8f2z0000c762s7k4g1b",
|
|
17
17
|
}),
|
|
18
|
+
parentCommentId: z.cuid2().optional(),
|
|
18
19
|
parentType: z.enum(ACTIVITY_PARENT_TYPES).openapi({
|
|
19
20
|
description: "The type of the parent entity this comment is attached to.",
|
|
20
21
|
example: "POST", // Assuming 'POST' is a value in ACTIVITY_PARENT_TYPES
|