@zyacreatives/shared 1.6.6 → 1.6.7

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.
@@ -1,7 +1,7 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  export declare const BookmarkEntitySchema: z.ZodObject<{
3
3
  id: z.ZodCUID2;
4
- createdAt: z.ZodString;
4
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
5
5
  userId: z.ZodCUID2;
6
6
  parentId: z.ZodCUID2;
7
7
  parentType: z.ZodString;
@@ -8,7 +8,7 @@ exports.BookmarkEntitySchema = zod_openapi_1.z
8
8
  description: "Unique identifier for the bookmark.",
9
9
  title: "Bookmark ID",
10
10
  }),
11
- createdAt: zod_openapi_1.z.string().datetime().openapi({
11
+ createdAt: zod_openapi_1.z.coerce.date().optional().openapi({
12
12
  description: "Timestamp when the bookmark was created.",
13
13
  title: "Created At",
14
14
  }),
@@ -322,7 +322,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
322
322
  }, z.core.$strip>;
323
323
  export declare const BookmarkProjectOutputSchema: z.ZodObject<{
324
324
  id: z.ZodCUID2;
325
- createdAt: z.ZodString;
325
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
326
326
  userId: z.ZodCUID2;
327
327
  parentId: z.ZodCUID2;
328
328
  parentType: z.ZodString;
@@ -369,8 +369,8 @@ export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
369
369
  readonly POST: "POST";
370
370
  }>;
371
371
  sessionId: z.ZodNullable<z.ZodString>;
372
- viewedAt: z.ZodString;
373
- viewDate: z.ZodString;
372
+ viewedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
373
+ viewDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
374
374
  }, z.core.$strip>>;
375
375
  }, z.core.$strip>;
376
376
  export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
@@ -420,7 +420,7 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
420
420
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
421
421
  bookmarks: z.ZodArray<z.ZodObject<{
422
422
  id: z.ZodCUID2;
423
- createdAt: z.ZodString;
423
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
424
424
  userId: z.ZodCUID2;
425
425
  parentId: z.ZodCUID2;
426
426
  parentType: z.ZodString;
@@ -199,7 +199,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
199
199
  userId: z.ZodCUID2;
200
200
  projectBookmarks: z.ZodArray<z.ZodObject<{
201
201
  id: z.ZodCUID2;
202
- createdAt: z.ZodString;
202
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
203
203
  userId: z.ZodCUID2;
204
204
  parentId: z.ZodCUID2;
205
205
  parentType: z.ZodString;
@@ -458,7 +458,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
458
458
  userId: z.ZodCUID2;
459
459
  projectBookmarks: z.ZodArray<z.ZodObject<{
460
460
  id: z.ZodCUID2;
461
- createdAt: z.ZodString;
461
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
462
462
  userId: z.ZodCUID2;
463
463
  parentId: z.ZodCUID2;
464
464
  parentType: z.ZodString;
@@ -10,6 +10,6 @@ export declare const ViewEntitySchema: z.ZodObject<{
10
10
  readonly POST: "POST";
11
11
  }>;
12
12
  sessionId: z.ZodNullable<z.ZodString>;
13
- viewedAt: z.ZodString;
14
- viewDate: z.ZodString;
13
+ viewedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
14
+ viewDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
15
15
  }, z.core.$strip>;
@@ -33,11 +33,11 @@ exports.ViewEntitySchema = zod_openapi_1.z
33
33
  description: "Session identifier associated with the view event, if available.",
34
34
  title: "Session ID",
35
35
  }),
36
- viewedAt: zod_openapi_1.z.string().datetime().openapi({
36
+ viewedAt: zod_openapi_1.z.coerce.date().optional().openapi({
37
37
  description: "Exact timestamp when the view occurred.",
38
38
  title: "Viewed At",
39
39
  }),
40
- viewDate: zod_openapi_1.z.string().date().openapi({
40
+ viewDate: zod_openapi_1.z.coerce.date().optional().openapi({
41
41
  description: "Calendar date corresponding to the view event, used for aggregation.",
42
42
  title: "View Date",
43
43
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,7 +6,7 @@ export const BookmarkEntitySchema = z
6
6
  description: "Unique identifier for the bookmark.",
7
7
  title: "Bookmark ID",
8
8
  }),
9
- createdAt: z.string().datetime().openapi({
9
+ createdAt: z.coerce.date().optional().openapi({
10
10
  description: "Timestamp when the bookmark was created.",
11
11
  title: "Created At",
12
12
  }),
@@ -34,11 +34,11 @@ export const ViewEntitySchema = z
34
34
  "Session identifier associated with the view event, if available.",
35
35
  title: "Session ID",
36
36
  }),
37
- viewedAt: z.string().datetime().openapi({
37
+ viewedAt: z.coerce.date().optional().openapi({
38
38
  description: "Exact timestamp when the view occurred.",
39
39
  title: "Viewed At",
40
40
  }),
41
- viewDate: z.string().date().openapi({
41
+ viewDate: z.coerce.date().optional().openapi({
42
42
  description:
43
43
  "Calendar date corresponding to the view event, used for aggregation.",
44
44
  title: "View Date",