@zyacreatives/shared 1.8.3 → 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>>;
@@ -168,12 +168,6 @@ exports.CreateProjectInputSchema = zod_openapi_1.z
168
168
  message: "Start date cannot be in the future",
169
169
  });
170
170
  if (endDate) {
171
- if (endDate > today)
172
- ctx.addIssue({
173
- path: ["endDate"],
174
- code: "custom",
175
- message: "End date cannot be in the future",
176
- });
177
171
  if (startDate > endDate)
178
172
  ctx.addIssue({
179
173
  path: ["startDate"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.8.3",
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:
@@ -176,12 +176,6 @@ export const CreateProjectInputSchema = z
176
176
  message: "Start date cannot be in the future",
177
177
  });
178
178
  if (endDate) {
179
- if (endDate > today)
180
- ctx.addIssue({
181
- path: ["endDate"],
182
- code: "custom",
183
- message: "End date cannot be in the future",
184
- });
185
179
  if (startDate > endDate)
186
180
  ctx.addIssue({
187
181
  path: ["startDate"],