@zyacreatives/shared 2.1.56 → 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",
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -321,6 +321,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
|
321
321
|
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
322
322
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
323
323
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
324
|
+
isLiked: z.ZodDefault<z.ZodBoolean>;
|
|
324
325
|
}, z.core.$strip>>;
|
|
325
326
|
}, z.core.$strip>;
|
|
326
327
|
export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -158,7 +158,9 @@ exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend(
|
|
|
158
158
|
totalNo: zod_openapi_1.z.number().int(),
|
|
159
159
|
});
|
|
160
160
|
exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
|
|
161
|
-
comments: zod_openapi_1.z.array(comment_1.CommentEntitySchema
|
|
161
|
+
comments: zod_openapi_1.z.array(comment_1.CommentEntitySchema.extend({
|
|
162
|
+
isLiked: zod_openapi_1.z.boolean().default(false),
|
|
163
|
+
})),
|
|
162
164
|
}).openapi({
|
|
163
165
|
title: "PostWithPostCommentsEntity",
|
|
164
166
|
});
|
|
@@ -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",
|
package/src/schemas/post.ts
CHANGED
|
@@ -181,7 +181,11 @@ export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
|
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
export const PostWithCommentsEntitySchema = MinimalPostSchema.extend({
|
|
184
|
-
comments: z.array(
|
|
184
|
+
comments: z.array(
|
|
185
|
+
CommentEntitySchema.extend({
|
|
186
|
+
isLiked: z.boolean().default(false),
|
|
187
|
+
})
|
|
188
|
+
),
|
|
185
189
|
}).openapi({
|
|
186
190
|
title: "PostWithPostCommentsEntity",
|
|
187
191
|
});
|