@zyacreatives/shared 2.0.57 → 2.0.59

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.
@@ -100,6 +100,10 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
100
100
  }, z.core.$strip>;
101
101
  export declare const CreatePostInputSchema: z.ZodObject<{
102
102
  parentId: z.ZodOptional<z.ZodCUID2>;
103
+ parentType: z.ZodDefault<z.ZodEnum<{
104
+ readonly PROJECT: "PROJECT";
105
+ readonly POST: "POST";
106
+ }>>;
103
107
  content: z.ZodOptional<z.ZodString>;
104
108
  postType: z.ZodDefault<z.ZodEnum<{
105
109
  readonly MARKETPLACE: "MARKETPLACE";
@@ -88,6 +88,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
88
88
  .cuid2({ message: "Invalid parentId" })
89
89
  .optional()
90
90
  .openapi({ description: "Parent id", example: "ckl1a2b3c0000abc" }),
91
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).default(constants_1.ACTIVITY_PARENT_TYPES.POST),
91
92
  content: zod_openapi_1.z
92
93
  .string()
93
94
  .min(1, { message: "Post content cannot be empty" })
@@ -106,8 +107,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
106
107
  order: zod_openapi_1.z
107
108
  .number()
108
109
  .int({ message: "File order must be an integer" })
109
- .min(1, { message: "File order must be at least 1" })
110
- .max(20, { message: "File order cannot exceed 20" })
110
+ .max(10, { message: "File order cannot exceed 10" })
111
111
  .default(1),
112
112
  }))
113
113
  .max(10, { message: "Cannot attach more than 10 files" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -99,7 +99,7 @@ export const CreatePostInputSchema = z.object({
99
99
  .cuid2({ message: "Invalid parentId" })
100
100
  .optional()
101
101
  .openapi({ description: "Parent id", example: "ckl1a2b3c0000abc" }),
102
-
102
+ parentType: z.enum(ACTIVITY_PARENT_TYPES).default(ACTIVITY_PARENT_TYPES.POST),
103
103
  content: z
104
104
  .string()
105
105
  .min(1, { message: "Post content cannot be empty" })
@@ -121,8 +121,8 @@ export const CreatePostInputSchema = z.object({
121
121
  order: z
122
122
  .number()
123
123
  .int({ message: "File order must be an integer" })
124
- .min(1, { message: "File order must be at least 1" })
125
- .max(20, { message: "File order cannot exceed 20" })
124
+
125
+ .max(10, { message: "File order cannot exceed 10" })
126
126
  .default(1),
127
127
  })
128
128
  )