@zyacreatives/shared 2.2.33 → 2.2.34
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 +8 -8
- package/dist/schemas/chat.js +4 -4
- package/package.json +1 -1
- package/src/schemas/chat.ts +4 -4
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -32,12 +32,12 @@ export declare const ChatEntitySchema: z.ZodObject<{
|
|
|
32
32
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
33
33
|
senderName: z.ZodString;
|
|
34
34
|
senderUsername: z.ZodString;
|
|
35
|
-
senderImgUrl: z.
|
|
35
|
+
senderImgUrl: z.ZodNullable<z.ZodString>;
|
|
36
36
|
receiverName: z.ZodString;
|
|
37
37
|
receiverUsername: z.ZodString;
|
|
38
|
-
receiverImgUrl: z.
|
|
39
|
-
lastMessageSent: z.
|
|
40
|
-
lastMessageAt: z.
|
|
38
|
+
receiverImgUrl: z.ZodNullable<z.ZodString>;
|
|
39
|
+
lastMessageSent: z.ZodNullable<z.ZodString>;
|
|
40
|
+
lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
41
41
|
unreadCount: z.ZodDefault<z.ZodNumber>;
|
|
42
42
|
isOnline: z.ZodDefault<z.ZodBoolean>;
|
|
43
43
|
}, z.core.$strip>;
|
|
@@ -81,12 +81,12 @@ export declare const GetChatsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
81
81
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
82
82
|
senderName: z.ZodString;
|
|
83
83
|
senderUsername: z.ZodString;
|
|
84
|
-
senderImgUrl: z.
|
|
84
|
+
senderImgUrl: z.ZodNullable<z.ZodString>;
|
|
85
85
|
receiverName: z.ZodString;
|
|
86
86
|
receiverUsername: z.ZodString;
|
|
87
|
-
receiverImgUrl: z.
|
|
88
|
-
lastMessageSent: z.
|
|
89
|
-
lastMessageAt: z.
|
|
87
|
+
receiverImgUrl: z.ZodNullable<z.ZodString>;
|
|
88
|
+
lastMessageSent: z.ZodNullable<z.ZodString>;
|
|
89
|
+
lastMessageAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
90
90
|
unreadCount: z.ZodDefault<z.ZodNumber>;
|
|
91
91
|
isOnline: z.ZodDefault<z.ZodBoolean>;
|
|
92
92
|
}, z.core.$strip>>;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -21,13 +21,13 @@ exports.ChatEntitySchema = exports.BaseChatEntitySchema.extend({
|
|
|
21
21
|
// User Details (Joined)
|
|
22
22
|
senderName: zod_openapi_1.z.string(),
|
|
23
23
|
senderUsername: zod_openapi_1.z.string(),
|
|
24
|
-
senderImgUrl: zod_openapi_1.z.string().
|
|
24
|
+
senderImgUrl: zod_openapi_1.z.string().nullable(),
|
|
25
25
|
receiverName: zod_openapi_1.z.string(),
|
|
26
26
|
receiverUsername: zod_openapi_1.z.string(),
|
|
27
|
-
receiverImgUrl: zod_openapi_1.z.string().
|
|
27
|
+
receiverImgUrl: zod_openapi_1.z.string().nullable(),
|
|
28
28
|
// Ephemeral/Cached Data
|
|
29
|
-
lastMessageSent: zod_openapi_1.z.string().
|
|
30
|
-
lastMessageAt: zod_openapi_1.z.coerce.date().
|
|
29
|
+
lastMessageSent: zod_openapi_1.z.string().nullable(),
|
|
30
|
+
lastMessageAt: zod_openapi_1.z.coerce.date().nullable(), // Important for UI sorting
|
|
31
31
|
unreadCount: zod_openapi_1.z.number().int().default(0),
|
|
32
32
|
isOnline: zod_openapi_1.z.boolean().default(false),
|
|
33
33
|
});
|
package/package.json
CHANGED
package/src/schemas/chat.ts
CHANGED
|
@@ -20,15 +20,15 @@ export const ChatEntitySchema = BaseChatEntitySchema.extend({
|
|
|
20
20
|
// User Details (Joined)
|
|
21
21
|
senderName: z.string(),
|
|
22
22
|
senderUsername: z.string(),
|
|
23
|
-
senderImgUrl: z.string().
|
|
23
|
+
senderImgUrl: z.string().nullable(),
|
|
24
24
|
|
|
25
25
|
receiverName: z.string(),
|
|
26
26
|
receiverUsername: z.string(),
|
|
27
|
-
receiverImgUrl: z.string().
|
|
27
|
+
receiverImgUrl: z.string().nullable(),
|
|
28
28
|
|
|
29
29
|
// Ephemeral/Cached Data
|
|
30
|
-
lastMessageSent: z.string().
|
|
31
|
-
lastMessageAt: z.coerce.date().
|
|
30
|
+
lastMessageSent: z.string().nullable(),
|
|
31
|
+
lastMessageAt: z.coerce.date().nullable(), // Important for UI sorting
|
|
32
32
|
unreadCount: z.number().int().default(0),
|
|
33
33
|
isOnline: z.boolean().default(false),
|
|
34
34
|
});
|