@zyacreatives/shared 2.1.57 → 2.1.58
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.
|
@@ -17,6 +17,7 @@ export declare const CommentEntitySchema: z.ZodObject<{
|
|
|
17
17
|
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
18
18
|
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
19
19
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
20
|
+
isLiked: z.ZodBoolean;
|
|
20
21
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
21
22
|
}, z.core.$strip>;
|
|
22
23
|
export declare const CommentInputSchema: z.ZodObject<{
|
|
@@ -45,5 +46,6 @@ export declare const CommentOutputSchema: z.ZodObject<{
|
|
|
45
46
|
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
46
47
|
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
47
48
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
|
+
isLiked: z.ZodBoolean;
|
|
48
50
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
51
|
}, z.core.$strip>;
|
package/dist/schemas/comment.js
CHANGED
|
@@ -39,6 +39,7 @@ exports.CommentEntitySchema = zod_1.default.object({
|
|
|
39
39
|
example: "2023-10-27T10:00:00.000Z",
|
|
40
40
|
format: "date-time",
|
|
41
41
|
}),
|
|
42
|
+
isLiked: zod_1.default.boolean(),
|
|
42
43
|
updatedAt: zod_1.default.coerce.date().optional().openapi({
|
|
43
44
|
description: "The date and time the comment was last updated.",
|
|
44
45
|
example: "2023-10-27T10:05:00.000Z",
|
|
@@ -382,6 +382,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
|
|
|
382
382
|
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
383
383
|
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
384
384
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
385
|
+
isLiked: z.ZodBoolean;
|
|
385
386
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
386
387
|
}, z.core.$strip>>;
|
|
387
388
|
}, z.core.$strip>;
|
package/package.json
CHANGED
package/src/schemas/comment.ts
CHANGED
|
@@ -36,6 +36,7 @@ export const CommentEntitySchema = z.object({
|
|
|
36
36
|
example: "2023-10-27T10:00:00.000Z",
|
|
37
37
|
format: "date-time",
|
|
38
38
|
}),
|
|
39
|
+
isLiked: z.boolean(),
|
|
39
40
|
updatedAt: z.coerce.date().optional().openapi({
|
|
40
41
|
description: "The date and time the comment was last updated.",
|
|
41
42
|
example: "2023-10-27T10:05:00.000Z",
|