@zyacreatives/shared 2.2.38 → 2.2.39
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 +4 -4
- package/dist/schemas/chat.js +1 -1
- package/package.json +1 -1
- package/src/schemas/chat.ts +1 -1
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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>;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -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.
|
|
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({
|
package/package.json
CHANGED
package/src/schemas/chat.ts
CHANGED
|
@@ -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.
|
|
28
|
+
isUnread: z.boolean().default(false),
|
|
29
29
|
isOnline: z.boolean().default(false),
|
|
30
30
|
});
|
|
31
31
|
|