@zyacreatives/shared 2.2.26 → 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>;
|
|
@@ -97,6 +99,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
|
|
|
97
99
|
}, z.core.$strip>>>;
|
|
98
100
|
}, z.core.$strip>;
|
|
99
101
|
export declare const CreateMessageInputSchema: z.ZodObject<{
|
|
102
|
+
id: z.ZodCUID2;
|
|
100
103
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
101
104
|
content: z.ZodOptional<z.ZodString>;
|
|
102
105
|
messageType: z.ZodDefault<z.ZodEnum<{
|
|
@@ -137,6 +140,7 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
|
|
|
137
140
|
replyToMessageId: z.ZodOptional<z.ZodCUID2>;
|
|
138
141
|
chatId: z.ZodCUID2;
|
|
139
142
|
senderId: z.ZodCUID2;
|
|
143
|
+
receiverId: z.ZodCUID2;
|
|
140
144
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
141
145
|
url: z.ZodURL;
|
|
142
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(),
|
|
@@ -62,6 +63,7 @@ exports.MessageWithFilesEntitySchema = exports.MessageEntitySchema.extend({
|
|
|
62
63
|
.openapi({ description: "Files associated with the project." }),
|
|
63
64
|
});
|
|
64
65
|
exports.CreateMessageInputSchema = zod_openapi_1.z.object({
|
|
66
|
+
id: zod_openapi_1.z.cuid2(),
|
|
65
67
|
parentId: zod_openapi_1.z
|
|
66
68
|
.cuid2()
|
|
67
69
|
.optional()
|
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({
|
package/src/schemas/message.ts
CHANGED
|
@@ -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(),
|
|
@@ -65,6 +66,7 @@ export const MessageWithFilesEntitySchema = MessageEntitySchema.extend({
|
|
|
65
66
|
});
|
|
66
67
|
|
|
67
68
|
export const CreateMessageInputSchema = z.object({
|
|
69
|
+
id: z.cuid2(),
|
|
68
70
|
parentId: z
|
|
69
71
|
.cuid2()
|
|
70
72
|
.optional()
|