@zyacreatives/shared 1.9.0 → 1.9.1
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 +8 -8
- 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
|
@@ -9,7 +9,7 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
9
9
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
10
10
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
11
11
|
content: z.ZodString;
|
|
12
|
-
title: z.
|
|
12
|
+
title: z.ZodOptional<z.ZodString>;
|
|
13
13
|
postType: z.ZodEnum<{
|
|
14
14
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
15
15
|
readonly PROJECT: "PROJECT";
|
|
@@ -42,7 +42,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
42
42
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
43
43
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
44
44
|
content: z.ZodString;
|
|
45
|
-
title: z.
|
|
45
|
+
title: z.ZodOptional<z.ZodString>;
|
|
46
46
|
postType: z.ZodEnum<{
|
|
47
47
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
48
48
|
readonly PROJECT: "PROJECT";
|
|
@@ -96,7 +96,7 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
96
96
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
97
97
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
98
98
|
content: z.ZodString;
|
|
99
|
-
title: z.
|
|
99
|
+
title: z.ZodOptional<z.ZodString>;
|
|
100
100
|
postType: z.ZodEnum<{
|
|
101
101
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
102
102
|
readonly PROJECT: "PROJECT";
|
|
@@ -123,7 +123,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
123
123
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
124
124
|
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
125
125
|
content: z.ZodString;
|
|
126
|
-
title: z.
|
|
126
|
+
title: z.ZodOptional<z.ZodString>;
|
|
127
127
|
postType: z.ZodEnum<{
|
|
128
128
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
129
129
|
readonly PROJECT: "PROJECT";
|
|
@@ -152,13 +152,13 @@ export declare const PostIdSchema: z.ZodObject<{
|
|
|
152
152
|
}, z.core.$strip>;
|
|
153
153
|
export declare const MinimalPostSchema: z.ZodObject<{
|
|
154
154
|
id: z.ZodCUID2;
|
|
155
|
-
title: z.
|
|
155
|
+
title: z.ZodOptional<z.ZodString>;
|
|
156
156
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
157
157
|
content: z.ZodString;
|
|
158
158
|
}, z.core.$strip>;
|
|
159
159
|
export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
160
160
|
id: z.ZodCUID2;
|
|
161
|
-
title: z.
|
|
161
|
+
title: z.ZodOptional<z.ZodString>;
|
|
162
162
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
163
163
|
content: z.ZodString;
|
|
164
164
|
likes: z.ZodArray<z.ZodObject<{
|
|
@@ -174,7 +174,7 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
|
174
174
|
}, z.core.$strip>;
|
|
175
175
|
export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
176
176
|
id: z.ZodCUID2;
|
|
177
|
-
title: z.
|
|
177
|
+
title: z.ZodOptional<z.ZodString>;
|
|
178
178
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
179
179
|
content: z.ZodString;
|
|
180
180
|
comments: z.ZodArray<z.ZodObject<{
|
|
@@ -196,7 +196,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
|
196
196
|
}, z.core.$strip>;
|
|
197
197
|
export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
198
198
|
id: z.ZodCUID2;
|
|
199
|
-
title: z.
|
|
199
|
+
title: z.ZodOptional<z.ZodString>;
|
|
200
200
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
201
201
|
content: z.ZodString;
|
|
202
202
|
bookmarks: z.ZodArray<z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.PostEntitySchema = zod_openapi_1.z.object({
|
|
|
28
28
|
.openapi({ description: "Post content", example: "Hello world" }),
|
|
29
29
|
title: zod_openapi_1.z
|
|
30
30
|
.string()
|
|
31
|
-
.
|
|
31
|
+
.optional()
|
|
32
32
|
.openapi({ description: "Optional title", example: "My first post" }),
|
|
33
33
|
postType: zod_openapi_1.z.enum(constants_1.POST_TYPES).openapi({
|
|
34
34
|
description: "Type of the post entity this statistic belongs to.",
|
package/package.json
CHANGED