@zyacreatives/shared 2.0.40 → 2.0.42
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
|
@@ -14,9 +14,11 @@ export declare const ChatEntitySchema: z.ZodObject<{
|
|
|
14
14
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
15
15
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
16
16
|
deletedAt: z.ZodCoercedDate<unknown>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
senderImgUrl: z.ZodOptional<z.ZodString>;
|
|
18
|
+
senderName: z.ZodString;
|
|
19
|
+
receiverImgUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
+
receiverName: z.ZodString;
|
|
21
|
+
lastMessageSent: z.ZodOptional<z.ZodString>;
|
|
20
22
|
}, z.core.$strip>;
|
|
21
23
|
export declare const CreateChatInputSchema: z.ZodObject<{
|
|
22
24
|
senderId: z.ZodCUID2;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -11,9 +11,11 @@ exports.BaseChatEntitySchema = zod_openapi_1.z.object({
|
|
|
11
11
|
deletedAt: zod_openapi_1.z.coerce.date(),
|
|
12
12
|
});
|
|
13
13
|
exports.ChatEntitySchema = exports.BaseChatEntitySchema.extend({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
senderImgUrl: zod_openapi_1.z.string().optional(),
|
|
15
|
+
senderName: zod_openapi_1.z.string(),
|
|
16
|
+
receiverImgUrl: zod_openapi_1.z.string().optional(),
|
|
17
|
+
receiverName: zod_openapi_1.z.string(),
|
|
18
|
+
lastMessageSent: zod_openapi_1.z.string().optional(),
|
|
17
19
|
});
|
|
18
20
|
exports.CreateChatInputSchema = zod_openapi_1.z.object({
|
|
19
21
|
senderId: zod_openapi_1.z.cuid2(),
|
|
@@ -26,6 +26,7 @@ export declare const MessageEntitySchema: z.ZodObject<{
|
|
|
26
26
|
readonly MESSAGE_WITH_MEDIA_AND_LINKS: "MESSAGE_WITH_MEDIA_AND_LINKS";
|
|
27
27
|
}>>;
|
|
28
28
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
29
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
29
30
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
30
31
|
}, z.core.$strip>;
|
|
31
32
|
export declare const MessageFileEntitySchema: z.ZodObject<{
|
|
@@ -61,6 +62,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
|
|
|
61
62
|
readonly MESSAGE_WITH_MEDIA_AND_LINKS: "MESSAGE_WITH_MEDIA_AND_LINKS";
|
|
62
63
|
}>>;
|
|
63
64
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
65
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
64
66
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
65
67
|
messageFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
68
|
id: z.ZodString;
|
|
@@ -123,5 +125,6 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
|
|
|
123
125
|
readonly MESSAGE_WITH_MEDIA_AND_LINKS: "MESSAGE_WITH_MEDIA_AND_LINKS";
|
|
124
126
|
}>>;
|
|
125
127
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
128
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
126
129
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
127
130
|
}, z.core.$strip>;
|
package/dist/schemas/message.js
CHANGED
|
@@ -31,6 +31,7 @@ exports.MessageEntitySchema = zod_openapi_1.z.object({
|
|
|
31
31
|
content: zod_openapi_1.z.string().optional(),
|
|
32
32
|
messageType: zod_openapi_1.z.enum(constants_1.MESSAGE_TYPES).default(constants_1.MESSAGE_TYPES.DEFAULT_MESSAGE),
|
|
33
33
|
createdAt: zod_openapi_1.z.coerce.date().optional(),
|
|
34
|
+
updatedAt: zod_openapi_1.z.coerce.date().optional(),
|
|
34
35
|
deletedAt: zod_openapi_1.z.coerce.date().optional(),
|
|
35
36
|
});
|
|
36
37
|
exports.MessageFileEntitySchema = zod_openapi_1.z
|
package/package.json
CHANGED
package/src/schemas/chat.ts
CHANGED
|
@@ -10,9 +10,11 @@ export const BaseChatEntitySchema = z.object({
|
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
export const ChatEntitySchema = BaseChatEntitySchema.extend({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
senderImgUrl: z.string().optional(),
|
|
14
|
+
senderName: z.string(),
|
|
15
|
+
receiverImgUrl: z.string().optional(),
|
|
16
|
+
receiverName: z.string(),
|
|
17
|
+
lastMessageSent: z.string().optional(),
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
export const CreateChatInputSchema = z.object({
|
package/src/schemas/message.ts
CHANGED
|
@@ -29,6 +29,7 @@ export const MessageEntitySchema = z.object({
|
|
|
29
29
|
content: z.string().optional(),
|
|
30
30
|
messageType: z.enum(MESSAGE_TYPES).default(MESSAGE_TYPES.DEFAULT_MESSAGE),
|
|
31
31
|
createdAt: z.coerce.date().optional(),
|
|
32
|
+
updatedAt: z.coerce.date().optional(),
|
|
32
33
|
deletedAt: z.coerce.date().optional(),
|
|
33
34
|
});
|
|
34
35
|
|