@zyacreatives/shared 1.6.8 → 1.6.9
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/schemas/like.d.ts
CHANGED
package/dist/schemas/like.js
CHANGED
|
@@ -4,6 +4,10 @@ exports.LikeEntitySchema = void 0;
|
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
exports.LikeEntitySchema = zod_openapi_1.z
|
|
6
6
|
.object({
|
|
7
|
+
id: zod_openapi_1.z.cuid2().openapi({
|
|
8
|
+
description: "The unique CUID2 identifier for the comment.",
|
|
9
|
+
example: "tr4q2k7k0000c7625z2k8ggy",
|
|
10
|
+
}),
|
|
7
11
|
createdAt: zod_openapi_1.z.coerce.date().optional().openapi({
|
|
8
12
|
description: "Timestamp when the like was created.",
|
|
9
13
|
title: "Created At",
|
|
@@ -413,6 +413,7 @@ export declare const ProjectWithProjectLikesEntitySchema: z.ZodObject<{
|
|
|
413
413
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
414
414
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
415
415
|
likes: z.ZodArray<z.ZodObject<{
|
|
416
|
+
id: z.ZodCUID2;
|
|
416
417
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
417
418
|
userId: z.ZodCUID2;
|
|
418
419
|
parentId: z.ZodCUID2;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
180
180
|
export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
181
181
|
userId: z.ZodCUID2;
|
|
182
182
|
projectLikes: z.ZodArray<z.ZodObject<{
|
|
183
|
+
id: z.ZodCUID2;
|
|
183
184
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
184
185
|
userId: z.ZodCUID2;
|
|
185
186
|
parentId: z.ZodCUID2;
|
|
@@ -528,6 +529,7 @@ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObj
|
|
|
528
529
|
export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObject<{
|
|
529
530
|
userId: z.ZodCUID2;
|
|
530
531
|
projectLikes: z.ZodArray<z.ZodObject<{
|
|
532
|
+
id: z.ZodCUID2;
|
|
531
533
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
532
534
|
userId: z.ZodCUID2;
|
|
533
535
|
parentId: z.ZodCUID2;
|
package/package.json
CHANGED
package/src/schemas/like.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
|
|
3
3
|
export const LikeEntitySchema = z
|
|
4
4
|
.object({
|
|
5
|
+
id: z.cuid2().openapi({
|
|
6
|
+
description: "The unique CUID2 identifier for the comment.",
|
|
7
|
+
example: "tr4q2k7k0000c7625z2k8ggy",
|
|
8
|
+
}),
|
|
5
9
|
createdAt: z.coerce.date().optional().openapi({
|
|
6
10
|
description: "Timestamp when the like was created.",
|
|
7
11
|
title: "Created At",
|