@zyacreatives/shared 2.0.57 → 2.0.58

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" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.57",
3
+ "version": "2.0.58",
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" })