@zyacreatives/shared 1.8.4 → 1.8.5

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.
@@ -8,8 +8,8 @@ export declare const CommentEntitySchema: z.ZodObject<{
8
8
  readonly POST: "POST";
9
9
  }>;
10
10
  content: z.ZodString;
11
- commenterUsername: z.ZodString;
12
- commenterName: z.ZodString;
11
+ commenterUsername: z.ZodOptional<z.ZodString>;
12
+ commenterName: z.ZodOptional<z.ZodString>;
13
13
  commenterImageUrl: z.ZodOptional<z.ZodString>;
14
14
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
15
15
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -32,8 +32,8 @@ export declare const CommentOutputSchema: z.ZodObject<{
32
32
  readonly POST: "POST";
33
33
  }>;
34
34
  content: z.ZodString;
35
- commenterUsername: z.ZodString;
36
- commenterName: z.ZodString;
35
+ commenterUsername: z.ZodOptional<z.ZodString>;
36
+ commenterName: z.ZodOptional<z.ZodString>;
37
37
  commenterImageUrl: z.ZodOptional<z.ZodString>;
38
38
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
39
39
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -27,8 +27,8 @@ exports.CommentEntitySchema = zod_1.default.object({
27
27
  description: "The text content of the comment. May contain Markdown.",
28
28
  example: "This is a great point! I hadn't considered that perspective.",
29
29
  }),
30
- commenterUsername: zod_1.default.string(),
31
- commenterName: zod_1.default.string(),
30
+ commenterUsername: zod_1.default.string().optional(),
31
+ commenterName: zod_1.default.string().optional(),
32
32
  commenterImageUrl: zod_1.default.string().optional(),
33
33
  replyToId: zod_1.default.cuid2().optional().nullable().openapi({
34
34
  description: "The ID of the parent comment if this is a reply. Null for top-level comments.",
@@ -159,8 +159,8 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
159
159
  readonly POST: "POST";
160
160
  }>;
161
161
  content: z.ZodString;
162
- commenterUsername: z.ZodString;
163
- commenterName: z.ZodString;
162
+ commenterUsername: z.ZodOptional<z.ZodString>;
163
+ commenterName: z.ZodOptional<z.ZodString>;
164
164
  commenterImageUrl: z.ZodOptional<z.ZodString>;
165
165
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
166
166
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -347,8 +347,8 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
347
347
  readonly POST: "POST";
348
348
  }>;
349
349
  content: z.ZodString;
350
- commenterUsername: z.ZodString;
351
- commenterName: z.ZodString;
350
+ commenterUsername: z.ZodOptional<z.ZodString>;
351
+ commenterName: z.ZodOptional<z.ZodString>;
352
352
  commenterImageUrl: z.ZodOptional<z.ZodString>;
353
353
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
354
354
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,8 +23,8 @@ export const CommentEntitySchema = z.object({
23
23
  description: "The text content of the comment. May contain Markdown.",
24
24
  example: "This is a great point! I hadn't considered that perspective.",
25
25
  }),
26
- commenterUsername: z.string(),
27
- commenterName: z.string(),
26
+ commenterUsername: z.string().optional(),
27
+ commenterName: z.string().optional(),
28
28
  commenterImageUrl: z.string().optional(),
29
29
  replyToId: z.cuid2().optional().nullable().openapi({
30
30
  description: