@zyacreatives/shared 1.8.4 → 1.8.6
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>>;
|
package/dist/schemas/comment.js
CHANGED
|
@@ -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.",
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
70
70
|
mimeType: z.ZodString;
|
|
71
71
|
order: z.ZodDefault<z.ZodInt>;
|
|
72
72
|
}, z.core.$strip>>>;
|
|
73
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
73
75
|
}, z.core.$strip>;
|
|
74
76
|
export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
75
77
|
id: z.ZodCUID2;
|
|
@@ -159,8 +161,8 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
|
159
161
|
readonly POST: "POST";
|
|
160
162
|
}>;
|
|
161
163
|
content: z.ZodString;
|
|
162
|
-
commenterUsername: z.ZodString
|
|
163
|
-
commenterName: z.ZodString
|
|
164
|
+
commenterUsername: z.ZodOptional<z.ZodString>;
|
|
165
|
+
commenterName: z.ZodOptional<z.ZodString>;
|
|
164
166
|
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
165
167
|
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
166
168
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
package/dist/schemas/post.js
CHANGED
|
@@ -82,6 +82,8 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
|
|
|
82
82
|
order: zod_openapi_1.z.int().default(1),
|
|
83
83
|
}))
|
|
84
84
|
.optional(),
|
|
85
|
+
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
86
|
+
badge: zod_openapi_1.z.string().optional(),
|
|
85
87
|
});
|
|
86
88
|
exports.CreatePostOutputSchema = exports.PostEntitySchema;
|
|
87
89
|
exports.GetPostOutputSchema = exports.PostWithFilesEntitySchema;
|
|
@@ -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
package/src/schemas/comment.ts
CHANGED
|
@@ -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:
|