@zyacreatives/shared 2.0.21 → 2.0.22

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.
@@ -102,7 +102,16 @@ export declare const CreatePostInputSchema: z.ZodObject<{
102
102
  order: z.ZodDefault<z.ZodInt>;
103
103
  }, z.core.$strip>>>;
104
104
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
- badge: z.ZodOptional<z.ZodString>;
105
+ badge: z.ZodOptional<z.ZodEnum<{
106
+ readonly NETWORKING: "Networking";
107
+ readonly FUNDING: "Funding";
108
+ readonly COLLABORATION: "Collaboration";
109
+ readonly OPPORTUNITIES: "Opportunities";
110
+ readonly SHOWCASE: "Showcase";
111
+ readonly LEARNING: "Learning";
112
+ readonly DISCUSSION: "Discussion";
113
+ readonly MENTORSHIP: "Mentorship";
114
+ }>>;
106
115
  }, z.core.$strip>;
107
116
  export declare const CreatePostOutputSchema: z.ZodObject<{
108
117
  id: z.ZodCUID2;
@@ -103,7 +103,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
103
103
  }))
104
104
  .optional(),
105
105
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
106
- badge: zod_openapi_1.z.string().optional(),
106
+ badge: zod_openapi_1.z.enum(constants_1.POST_BADGE_TYPES).optional(),
107
107
  });
108
108
  exports.CreatePostOutputSchema = exports.PostEntitySchema;
109
109
  exports.GetPostOutputSchema = exports.PostWithFilesEntitySchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -115,7 +115,7 @@ export const CreatePostInputSchema = z.object({
115
115
  )
116
116
  .optional(),
117
117
  tags: z.array(z.string()).optional(),
118
- badge: z.string().optional(),
118
+ badge: z.enum(POST_BADGE_TYPES).optional(),
119
119
  });
120
120
 
121
121
  export const CreatePostOutputSchema = PostEntitySchema;