@zyacreatives/shared 1.8.6 → 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.
@@ -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
- file: z.ZodObject<{
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<{
@@ -111,15 +103,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
111
103
  postId: z.ZodString;
112
104
  fileId: z.ZodString;
113
105
  order: z.ZodNumber;
114
- file: z.ZodObject<{
115
- id: z.ZodCUID2;
116
- key: z.ZodString;
117
- mimeType: z.ZodString;
118
- url: z.ZodOptional<z.ZodURL>;
119
- userId: z.ZodCUID2;
120
- createdAt: z.ZodCoercedDate<unknown>;
121
- updatedAt: z.ZodCoercedDate<unknown>;
122
- }, z.core.$strip>;
106
+ url: z.ZodURL;
123
107
  }, z.core.$strip>>>;
124
108
  }, z.core.$strip>;
125
109
  export declare const PostIdSchema: z.ZodObject<{
@@ -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
- file: file_1.FileEntitySchema,
57
+ url: zod_openapi_1.z.url(),
58
58
  }))
59
59
  .optional()
60
60
  .openapi({ description: "Files associated with the project." }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,7 +55,7 @@ export const PostWithFilesEntitySchema = PostEntitySchema.extend({
55
55
  postFiles: z
56
56
  .array(
57
57
  PostFileEntitySchema.extend({
58
- file: FileEntitySchema,
58
+ url: z.url(),
59
59
  })
60
60
  )
61
61
  .optional()