@zyacreatives/shared 1.8.5 → 1.8.7
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 -18
- package/dist/schemas/post.js +3 -1
- package/package.json +1 -1
- package/src/schemas/post.ts +3 -1
package/dist/schemas/post.d.ts
CHANGED
|
@@ -43,15 +43,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
43
43
|
postId: z.ZodString;
|
|
44
44
|
fileId: z.ZodString;
|
|
45
45
|
order: z.ZodNumber;
|
|
46
|
-
|
|
47
|
-
id: z.ZodCUID2;
|
|
48
|
-
key: z.ZodString;
|
|
49
|
-
mimeType: z.ZodString;
|
|
50
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
51
|
-
userId: z.ZodCUID2;
|
|
52
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
53
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
54
|
-
}, z.core.$strip>;
|
|
46
|
+
url: z.ZodURL;
|
|
55
47
|
}, z.core.$strip>>>;
|
|
56
48
|
}, z.core.$strip>;
|
|
57
49
|
export declare const CreatePostInputSchema: z.ZodObject<{
|
|
@@ -70,6 +62,8 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
70
62
|
mimeType: z.ZodString;
|
|
71
63
|
order: z.ZodDefault<z.ZodInt>;
|
|
72
64
|
}, z.core.$strip>>>;
|
|
65
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
73
67
|
}, z.core.$strip>;
|
|
74
68
|
export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
75
69
|
id: z.ZodCUID2;
|
|
@@ -109,15 +103,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
109
103
|
postId: z.ZodString;
|
|
110
104
|
fileId: z.ZodString;
|
|
111
105
|
order: z.ZodNumber;
|
|
112
|
-
|
|
113
|
-
id: z.ZodCUID2;
|
|
114
|
-
key: z.ZodString;
|
|
115
|
-
mimeType: z.ZodString;
|
|
116
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
117
|
-
userId: z.ZodCUID2;
|
|
118
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
119
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
120
|
-
}, z.core.$strip>;
|
|
106
|
+
url: z.ZodURL;
|
|
121
107
|
}, z.core.$strip>>>;
|
|
122
108
|
}, z.core.$strip>;
|
|
123
109
|
export declare const PostIdSchema: z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -54,7 +54,7 @@ exports.PostFileEntitySchema = zod_openapi_1.z
|
|
|
54
54
|
exports.PostWithFilesEntitySchema = exports.PostEntitySchema.extend({
|
|
55
55
|
postFiles: zod_openapi_1.z
|
|
56
56
|
.array(exports.PostFileEntitySchema.extend({
|
|
57
|
-
|
|
57
|
+
url: zod_openapi_1.z.url(),
|
|
58
58
|
}))
|
|
59
59
|
.optional()
|
|
60
60
|
.openapi({ description: "Files associated with the project." }),
|
|
@@ -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;
|
package/package.json
CHANGED
package/src/schemas/post.ts
CHANGED
|
@@ -55,7 +55,7 @@ export const PostWithFilesEntitySchema = PostEntitySchema.extend({
|
|
|
55
55
|
postFiles: z
|
|
56
56
|
.array(
|
|
57
57
|
PostFileEntitySchema.extend({
|
|
58
|
-
|
|
58
|
+
url: z.url(),
|
|
59
59
|
})
|
|
60
60
|
)
|
|
61
61
|
.optional()
|
|
@@ -87,6 +87,8 @@ export const CreatePostInputSchema = z.object({
|
|
|
87
87
|
})
|
|
88
88
|
)
|
|
89
89
|
.optional(),
|
|
90
|
+
tags: z.array(z.string()).optional(),
|
|
91
|
+
badge: z.string().optional(),
|
|
90
92
|
});
|
|
91
93
|
|
|
92
94
|
export const CreatePostOutputSchema = PostEntitySchema;
|