@zyacreatives/shared 2.2.28 → 2.2.30

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
  receiverName: z.ZodString;
39
39
  lastMessageSent: z.ZodOptional<z.ZodString>;
40
40
  unreadCount: z.ZodOptional<z.ZodInt>;
41
- isOnline: z.ZodOptional<z.ZodInt>;
41
+ isOnline: z.ZodOptional<z.ZodBoolean>;
42
42
  }, z.core.$strip>;
43
43
  export declare const CreateChatInputSchema: z.ZodObject<{
44
44
  senderId: z.ZodCUID2;
@@ -86,5 +86,5 @@ export declare const GetChatsOutputSchema: z.ZodArray<z.ZodObject<{
86
86
  receiverName: z.ZodString;
87
87
  lastMessageSent: z.ZodOptional<z.ZodString>;
88
88
  unreadCount: z.ZodOptional<z.ZodInt>;
89
- isOnline: z.ZodOptional<z.ZodInt>;
89
+ isOnline: z.ZodOptional<z.ZodBoolean>;
90
90
  }, z.core.$strip>>;
@@ -24,7 +24,7 @@ exports.ChatEntitySchema = exports.BaseChatEntitySchema.extend({
24
24
  receiverName: zod_openapi_1.z.string(),
25
25
  lastMessageSent: zod_openapi_1.z.string().optional(),
26
26
  unreadCount: zod_openapi_1.z.int().optional(),
27
- isOnline: zod_openapi_1.z.int().optional(),
27
+ isOnline: zod_openapi_1.z.boolean().optional(),
28
28
  });
29
29
  exports.CreateChatInputSchema = zod_openapi_1.z.object({
30
30
  senderId: zod_openapi_1.z.cuid2(),
@@ -118,6 +118,7 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
118
118
  }, z.core.$strip>>>;
119
119
  chatId: z.ZodString;
120
120
  senderId: z.ZodString;
121
+ receiverId: z.ZodString;
121
122
  replyToMessageId: z.ZodOptional<z.ZodCUID2>;
122
123
  linkMeta: z.ZodOptional<z.ZodObject<{
123
124
  url: z.ZodURL;
@@ -86,6 +86,7 @@ exports.CreateMessageInputSchema = zod_openapi_1.z.object({
86
86
  .optional(),
87
87
  chatId: zod_openapi_1.z.string(),
88
88
  senderId: zod_openapi_1.z.string(),
89
+ receiverId: zod_openapi_1.z.string(),
89
90
  replyToMessageId: zod_openapi_1.z.cuid2().optional(),
90
91
  linkMeta: zod_openapi_1.z
91
92
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.28",
3
+ "version": "2.2.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@ export const ChatEntitySchema = BaseChatEntitySchema.extend({
23
23
  receiverName: z.string(),
24
24
  lastMessageSent: z.string().optional(),
25
25
  unreadCount: z.int().optional(),
26
- isOnline: z.int().optional(),
26
+ isOnline: z.boolean().optional(),
27
27
  });
28
28
 
29
29
  export const CreateChatInputSchema = z.object({
@@ -91,6 +91,7 @@ export const CreateMessageInputSchema = z.object({
91
91
  .optional(),
92
92
  chatId: z.string(),
93
93
  senderId: z.string(),
94
+ receiverId: z.string(),
94
95
  replyToMessageId: z.cuid2().optional(),
95
96
  linkMeta: z
96
97
  .object({