@zyacreatives/shared 2.2.27 → 2.2.28
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.
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -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>>;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -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>;
|
|
@@ -138,6 +140,7 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
|
|
|
138
140
|
replyToMessageId: z.ZodOptional<z.ZodCUID2>;
|
|
139
141
|
chatId: z.ZodCUID2;
|
|
140
142
|
senderId: z.ZodCUID2;
|
|
143
|
+
receiverId: z.ZodCUID2;
|
|
141
144
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
142
145
|
url: z.ZodURL;
|
|
143
146
|
title: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/message.js
CHANGED
|
@@ -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(),
|
package/package.json
CHANGED
package/src/schemas/chat.ts
CHANGED
|
@@ -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({
|