@zyacreatives/shared 2.5.14 → 2.5.15

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.
@@ -181,12 +181,12 @@ export declare const InvestorWithUserEntitySchema: z.ZodObject<{
181
181
  export type InvestorWithUserEntity = z.infer<typeof InvestorWithUserEntitySchema>;
182
182
  export declare const CreateInvestorProfileInputSchema: z.ZodObject<{
183
183
  websiteURL: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
184
- experienceLevel: z.ZodDefault<z.ZodEnum<{
184
+ experienceLevel: z.ZodEnum<{
185
185
  "0-1 year": "0-1 year";
186
186
  "1-3 years": "1-3 years";
187
187
  "3-5 years": "3-5 years";
188
188
  "5+ years": "5+ years";
189
- }>>;
189
+ }>;
190
190
  location: z.ZodString;
191
191
  }, z.core.$strip>;
192
192
  export type CreateInvestorInput = z.infer<typeof CreateInvestorProfileInputSchema>;
@@ -125,7 +125,6 @@ exports.CreateInvestorProfileInputSchema = zod_openapi_1.z
125
125
  websiteURL: WebsiteUrlInputSchema,
126
126
  experienceLevel: zod_openapi_1.z
127
127
  .enum(Object.values(constants_1.EXPERIENCE_LEVELS))
128
- .default(constants_1.EXPERIENCE_LEVELS.YEAR_0_1)
129
128
  .openapi({
130
129
  example: "0-1 year",
131
130
  }),
@@ -288,7 +288,7 @@ export declare const CreatePostInputSchema: z.ZodObject<{
288
288
  url: z.ZodURL;
289
289
  title: z.ZodOptional<z.ZodString>;
290
290
  description: z.ZodOptional<z.ZodString>;
291
- image: z.ZodOptional<z.ZodURL>;
291
+ image: z.ZodOptional<z.ZodString>;
292
292
  }, z.core.$strip>>;
293
293
  }, z.core.$strip>;
294
294
  export type CreatePostInput = z.infer<typeof CreatePostInputSchema>;
@@ -168,7 +168,7 @@ exports.CreatePostInputSchema = zod_openapi_1.z.object({
168
168
  .optional()
169
169
  .openapi({ example: "This is an example link" }),
170
170
  image: zod_openapi_1.z
171
- .url({ message: "Invalid image URL" })
171
+ .string({ message: "" })
172
172
  .optional()
173
173
  .openapi({ example: "https://example.com/preview.jpg" }),
174
174
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.14",
3
+ "version": "2.5.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -178,7 +178,6 @@ export const CreateInvestorProfileInputSchema = z
178
178
  ...ExperienceLevel[],
179
179
  ],
180
180
  )
181
- .default(EXPERIENCE_LEVELS.YEAR_0_1)
182
181
  .openapi({
183
182
  example: "0-1 year",
184
183
  }),
@@ -185,7 +185,7 @@ export const CreatePostInputSchema = z.object({
185
185
  .optional()
186
186
  .openapi({ example: "This is an example link" }),
187
187
  image: z
188
- .url({ message: "Invalid image URL" })
188
+ .string({ message: "" })
189
189
  .optional()
190
190
  .openapi({ example: "https://example.com/preview.jpg" }),
191
191
  })