@zyacreatives/shared 2.2.38 → 2.2.40

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.
@@ -38,7 +38,7 @@ export declare const ChatEntitySchema: z.ZodObject<{
38
38
  receiverImgUrl: z.ZodNullable<z.ZodString>;
39
39
  lastMessageSent: z.ZodNullable<z.ZodString>;
40
40
  lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
41
- isUnread: z.ZodDefault<z.ZodNumber>;
41
+ isUnread: z.ZodDefault<z.ZodBoolean>;
42
42
  isOnline: z.ZodDefault<z.ZodBoolean>;
43
43
  }, z.core.$strip>;
44
44
  export declare const CreateChatInputSchema: z.ZodObject<{
@@ -87,7 +87,7 @@ export declare const GetChatsOutputSchema: z.ZodArray<z.ZodObject<{
87
87
  receiverImgUrl: z.ZodNullable<z.ZodString>;
88
88
  lastMessageSent: z.ZodNullable<z.ZodString>;
89
89
  lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
90
- isUnread: z.ZodDefault<z.ZodNumber>;
90
+ isUnread: z.ZodDefault<z.ZodBoolean>;
91
91
  isOnline: z.ZodDefault<z.ZodBoolean>;
92
92
  }, z.core.$strip>>;
93
93
  export declare const GetChatsForUserOutputSchema: z.ZodObject<{
@@ -114,7 +114,7 @@ export declare const GetChatsForUserOutputSchema: z.ZodObject<{
114
114
  receiverImgUrl: z.ZodNullable<z.ZodString>;
115
115
  lastMessageSent: z.ZodNullable<z.ZodString>;
116
116
  lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
117
- isUnread: z.ZodDefault<z.ZodNumber>;
117
+ isUnread: z.ZodDefault<z.ZodBoolean>;
118
118
  isOnline: z.ZodDefault<z.ZodBoolean>;
119
119
  }, z.core.$strip>>;
120
120
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -143,7 +143,7 @@ export declare const GetMessageRequestsForUserOutputSchema: z.ZodObject<{
143
143
  receiverImgUrl: z.ZodNullable<z.ZodString>;
144
144
  lastMessageSent: z.ZodNullable<z.ZodString>;
145
145
  lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
146
- isUnread: z.ZodDefault<z.ZodNumber>;
146
+ isUnread: z.ZodDefault<z.ZodBoolean>;
147
147
  isOnline: z.ZodDefault<z.ZodBoolean>;
148
148
  }, z.core.$strip>>;
149
149
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -24,7 +24,7 @@ exports.ChatEntitySchema = exports.BaseChatEntitySchema.extend({
24
24
  receiverImgUrl: zod_openapi_1.z.string().nullable(),
25
25
  lastMessageSent: zod_openapi_1.z.string().nullable(),
26
26
  lastMessageAt: zod_openapi_1.z.coerce.date().nullable(),
27
- isUnread: zod_openapi_1.z.number().int().default(0),
27
+ isUnread: zod_openapi_1.z.boolean().default(false),
28
28
  isOnline: zod_openapi_1.z.boolean().default(false),
29
29
  });
30
30
  exports.CreateChatInputSchema = zod_openapi_1.z.object({
@@ -50,7 +50,6 @@ export declare const InvestorEntitySchema: z.ZodObject<{
50
50
  version: z.ZodInt;
51
51
  }, z.core.$strip>;
52
52
  export declare const CreateInvestorProfileInputSchema: z.ZodObject<{
53
- bio: z.ZodOptional<z.ZodString>;
54
53
  websiteURL: z.ZodOptional<z.ZodURL>;
55
54
  experienceLevel: z.ZodDefault<z.ZodEnum<{
56
55
  "0-1 year": "0-1 year";
@@ -50,9 +50,6 @@ exports.InvestorEntitySchema = zod_openapi_1.z
50
50
  .openapi("InvestorEntity");
51
51
  exports.CreateInvestorProfileInputSchema = zod_openapi_1.z
52
52
  .object({
53
- bio: zod_openapi_1.z.string().max(600).optional().openapi({
54
- example: "Angel investor backing early-stage African startups.",
55
- }),
56
53
  websiteURL: zod_openapi_1.z.url("Invalid url").optional().openapi({
57
54
  example: "https://www.investorportfolio.com",
58
55
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.38",
3
+ "version": "2.2.40",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@ export const ChatEntitySchema = BaseChatEntitySchema.extend({
25
25
 
26
26
  lastMessageSent: z.string().nullable(),
27
27
  lastMessageAt: z.coerce.date().nullable(),
28
- isUnread: z.number().int().default(0),
28
+ isUnread: z.boolean().default(false),
29
29
  isOnline: z.boolean().default(false),
30
30
  });
31
31
 
@@ -73,9 +73,6 @@ export const InvestorEntitySchema = z
73
73
 
74
74
  export const CreateInvestorProfileInputSchema = z
75
75
  .object({
76
- bio: z.string().max(600).optional().openapi({
77
- example: "Angel investor backing early-stage African startups.",
78
- }),
79
76
  websiteURL: z.url("Invalid url").optional().openapi({
80
77
  example: "https://www.investorportfolio.com",
81
78
  }),