@zyacreatives/shared 2.2.27 → 2.2.29

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.
@@ -37,6 +37,8 @@ export declare const ChatEntitySchema: z.ZodObject<{
37
37
  receiverImgUrl: z.ZodOptional<z.ZodString>;
38
38
  receiverName: z.ZodString;
39
39
  lastMessageSent: z.ZodOptional<z.ZodString>;
40
+ unreadCount: z.ZodOptional<z.ZodInt>;
41
+ isOnline: z.ZodOptional<z.ZodInt>;
40
42
  }, z.core.$strip>;
41
43
  export declare const CreateChatInputSchema: z.ZodObject<{
42
44
  senderId: z.ZodCUID2;
@@ -83,4 +85,6 @@ export declare const GetChatsOutputSchema: z.ZodArray<z.ZodObject<{
83
85
  receiverImgUrl: z.ZodOptional<z.ZodString>;
84
86
  receiverName: z.ZodString;
85
87
  lastMessageSent: z.ZodOptional<z.ZodString>;
88
+ unreadCount: z.ZodOptional<z.ZodInt>;
89
+ isOnline: z.ZodOptional<z.ZodInt>;
86
90
  }, z.core.$strip>>;
@@ -23,6 +23,8 @@ exports.ChatEntitySchema = exports.BaseChatEntitySchema.extend({
23
23
  receiverImgUrl: zod_openapi_1.z.string().optional(),
24
24
  receiverName: zod_openapi_1.z.string(),
25
25
  lastMessageSent: zod_openapi_1.z.string().optional(),
26
+ unreadCount: zod_openapi_1.z.int().optional(),
27
+ isOnline: zod_openapi_1.z.int().optional(),
26
28
  });
27
29
  exports.CreateChatInputSchema = zod_openapi_1.z.object({
28
30
  senderId: zod_openapi_1.z.cuid2(),
@@ -13,6 +13,7 @@ export declare const MessageEntitySchema: z.ZodObject<{
13
13
  replyToMessageId: z.ZodOptional<z.ZodCUID2>;
14
14
  chatId: z.ZodCUID2;
15
15
  senderId: z.ZodCUID2;
16
+ receiverId: z.ZodCUID2;
16
17
  linkMeta: z.ZodOptional<z.ZodObject<{
17
18
  url: z.ZodURL;
18
19
  title: z.ZodOptional<z.ZodString>;
@@ -61,6 +62,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
61
62
  replyToMessageId: z.ZodOptional<z.ZodCUID2>;
62
63
  chatId: z.ZodCUID2;
63
64
  senderId: z.ZodCUID2;
65
+ receiverId: z.ZodCUID2;
64
66
  linkMeta: z.ZodOptional<z.ZodObject<{
65
67
  url: z.ZodURL;
66
68
  title: z.ZodOptional<z.ZodString>;
@@ -116,6 +118,7 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
116
118
  }, z.core.$strip>>>;
117
119
  chatId: z.ZodString;
118
120
  senderId: z.ZodString;
121
+ receiverId: z.ZodString;
119
122
  replyToMessageId: z.ZodOptional<z.ZodCUID2>;
120
123
  linkMeta: z.ZodOptional<z.ZodObject<{
121
124
  url: z.ZodURL;
@@ -138,6 +141,7 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
138
141
  replyToMessageId: z.ZodOptional<z.ZodCUID2>;
139
142
  chatId: z.ZodCUID2;
140
143
  senderId: z.ZodCUID2;
144
+ receiverId: z.ZodCUID2;
141
145
  linkMeta: z.ZodOptional<z.ZodObject<{
142
146
  url: z.ZodURL;
143
147
  title: z.ZodOptional<z.ZodString>;
@@ -11,6 +11,7 @@ exports.MessageEntitySchema = zod_openapi_1.z.object({
11
11
  replyToMessageId: zod_openapi_1.z.cuid2().optional(),
12
12
  chatId: zod_openapi_1.z.cuid2(),
13
13
  senderId: zod_openapi_1.z.cuid2(),
14
+ receiverId: zod_openapi_1.z.cuid2(),
14
15
  linkMeta: zod_openapi_1.z
15
16
  .object({
16
17
  url: zod_openapi_1.z.url(),
@@ -85,6 +86,7 @@ exports.CreateMessageInputSchema = zod_openapi_1.z.object({
85
86
  .optional(),
86
87
  chatId: zod_openapi_1.z.string(),
87
88
  senderId: zod_openapi_1.z.string(),
89
+ receiverId: zod_openapi_1.z.string(),
88
90
  replyToMessageId: zod_openapi_1.z.cuid2().optional(),
89
91
  linkMeta: zod_openapi_1.z
90
92
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.27",
3
+ "version": "2.2.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,6 +22,8 @@ export const ChatEntitySchema = BaseChatEntitySchema.extend({
22
22
  receiverImgUrl: z.string().optional(),
23
23
  receiverName: z.string(),
24
24
  lastMessageSent: z.string().optional(),
25
+ unreadCount: z.int().optional(),
26
+ isOnline: z.int().optional(),
25
27
  });
26
28
 
27
29
  export const CreateChatInputSchema = z.object({
@@ -9,6 +9,7 @@ export const MessageEntitySchema = z.object({
9
9
  replyToMessageId: z.cuid2().optional(),
10
10
  chatId: z.cuid2(),
11
11
  senderId: z.cuid2(),
12
+ receiverId: z.cuid2(),
12
13
  linkMeta: z
13
14
  .object({
14
15
  url: z.url(),
@@ -90,6 +91,7 @@ export const CreateMessageInputSchema = z.object({
90
91
  .optional(),
91
92
  chatId: z.string(),
92
93
  senderId: z.string(),
94
+ receiverId: z.string(),
93
95
  replyToMessageId: z.cuid2().optional(),
94
96
  linkMeta: z
95
97
  .object({