@zyacreatives/shared 1.8.8 → 1.8.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/post.d.ts +4 -4
- package/dist/schemas/post.js +1 -1
- package/package.json +1 -1
- package/src/schemas/post.ts +1 -1
package/dist/schemas/post.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
5
5
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
6
|
badge: z.ZodOptional<z.ZodString>;
|
|
7
7
|
userId: z.ZodCUID2;
|
|
8
|
-
creatorUsername: z.ZodString
|
|
8
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
9
9
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
10
10
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
11
11
|
content: z.ZodString;
|
|
@@ -31,7 +31,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
31
31
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
32
|
badge: z.ZodOptional<z.ZodString>;
|
|
33
33
|
userId: z.ZodCUID2;
|
|
34
|
-
creatorUsername: z.ZodString
|
|
34
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
35
35
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
36
36
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
37
37
|
content: z.ZodString;
|
|
@@ -77,7 +77,7 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
77
77
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
78
|
badge: z.ZodOptional<z.ZodString>;
|
|
79
79
|
userId: z.ZodCUID2;
|
|
80
|
-
creatorUsername: z.ZodString
|
|
80
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
81
81
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
82
82
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
83
83
|
content: z.ZodString;
|
|
@@ -97,7 +97,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
97
97
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
98
|
badge: z.ZodOptional<z.ZodString>;
|
|
99
99
|
userId: z.ZodCUID2;
|
|
100
|
-
creatorUsername: z.ZodString
|
|
100
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
101
101
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
102
102
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
103
103
|
content: z.ZodString;
|
package/dist/schemas/post.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.PostEntitySchema = zod_openapi_1.z.object({
|
|
|
20
20
|
userId: zod_openapi_1.z
|
|
21
21
|
.cuid2()
|
|
22
22
|
.openapi({ description: "User id", example: "ckj1a2b3c0000def" }),
|
|
23
|
-
creatorUsername: zod_openapi_1.z.string().openapi({ description: "Username" }),
|
|
23
|
+
creatorUsername: zod_openapi_1.z.string().optional().openapi({ description: "Username" }),
|
|
24
24
|
creatorFullName: zod_openapi_1.z.string().optional(),
|
|
25
25
|
creatorImageUrl: zod_openapi_1.z.cuid2().optional().openapi({ description: "Username" }),
|
|
26
26
|
content: zod_openapi_1.z
|
package/package.json
CHANGED
package/src/schemas/post.ts
CHANGED
|
@@ -18,7 +18,7 @@ export const PostEntitySchema = z.object({
|
|
|
18
18
|
userId: z
|
|
19
19
|
.cuid2()
|
|
20
20
|
.openapi({ description: "User id", example: "ckj1a2b3c0000def" }),
|
|
21
|
-
creatorUsername: z.string().openapi({ description: "Username" }),
|
|
21
|
+
creatorUsername: z.string().optional().openapi({ description: "Username" }),
|
|
22
22
|
creatorFullName: z.string().optional(),
|
|
23
23
|
creatorImageUrl: z.cuid2().optional().openapi({ description: "Username" }),
|
|
24
24
|
content: z
|