@zyacreatives/shared 2.2.69 → 2.2.71
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.
|
@@ -48,6 +48,7 @@ export declare const MessageEntitySchema: z.ZodObject<{
|
|
|
48
48
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
49
|
deletedBySender: z.ZodDefault<z.ZodBoolean>;
|
|
50
50
|
deletedByReceiver: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
+
isEdited: z.ZodDefault<z.ZodBoolean>;
|
|
51
52
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
52
53
|
}, z.core.$strip>;
|
|
53
54
|
export declare const DeleteMessagesInputSchema: z.ZodObject<{
|
|
@@ -104,6 +105,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
|
|
|
104
105
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
105
106
|
deletedBySender: z.ZodDefault<z.ZodBoolean>;
|
|
106
107
|
deletedByReceiver: z.ZodDefault<z.ZodBoolean>;
|
|
108
|
+
isEdited: z.ZodDefault<z.ZodBoolean>;
|
|
107
109
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
108
110
|
messageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
111
|
id: z.ZodCUID2;
|
|
@@ -130,6 +132,7 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
|
|
|
130
132
|
}>>;
|
|
131
133
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
132
134
|
replyToMessageId: z.ZodOptional<z.ZodCUID2>;
|
|
135
|
+
isEdited: z.ZodDefault<z.ZodBoolean>;
|
|
133
136
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
134
137
|
url: z.ZodURL;
|
|
135
138
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -186,6 +189,7 @@ export declare const GetMessagesOutputSchema: z.ZodObject<{
|
|
|
186
189
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
187
190
|
deletedBySender: z.ZodDefault<z.ZodBoolean>;
|
|
188
191
|
deletedByReceiver: z.ZodDefault<z.ZodBoolean>;
|
|
192
|
+
isEdited: z.ZodDefault<z.ZodBoolean>;
|
|
189
193
|
deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
190
194
|
messageFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
191
195
|
id: z.ZodCUID2;
|
package/dist/schemas/message.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.MessageEntitySchema = zod_openapi_1.z.object({
|
|
|
34
34
|
updatedAt: zod_openapi_1.z.coerce.date().optional(),
|
|
35
35
|
deletedBySender: zod_openapi_1.z.boolean().default(false),
|
|
36
36
|
deletedByReceiver: zod_openapi_1.z.boolean().default(false),
|
|
37
|
+
isEdited: zod_openapi_1.z.boolean().default(false),
|
|
37
38
|
deletedAt: zod_openapi_1.z.coerce.date().optional(),
|
|
38
39
|
});
|
|
39
40
|
exports.DeleteMessagesInputSchema = zod_openapi_1.z.object({
|
|
@@ -60,6 +61,7 @@ exports.CreateMessageInputSchema = zod_openapi_1.z.object({
|
|
|
60
61
|
messageType: zod_openapi_1.z.enum(constants_1.MESSAGE_TYPES).default("DEFAULT_MESSAGE"),
|
|
61
62
|
parentId: zod_openapi_1.z.cuid2().optional(),
|
|
62
63
|
replyToMessageId: zod_openapi_1.z.cuid2().optional(),
|
|
64
|
+
isEdited: zod_openapi_1.z.boolean().default(false),
|
|
63
65
|
linkMeta: exports.LinkMetaSchema.optional(),
|
|
64
66
|
files: zod_openapi_1.z
|
|
65
67
|
.array(file_1.CreateFileInputSchema.extend({ order: zod_openapi_1.z.number().int() }))
|
package/package.json
CHANGED
package/src/schemas/message.ts
CHANGED
|
@@ -37,6 +37,7 @@ export const MessageEntitySchema = z.object({
|
|
|
37
37
|
updatedAt: z.coerce.date().optional(),
|
|
38
38
|
deletedBySender: z.boolean().default(false),
|
|
39
39
|
deletedByReceiver: z.boolean().default(false),
|
|
40
|
+
isEdited: z.boolean().default(false),
|
|
40
41
|
deletedAt: z.coerce.date().optional(),
|
|
41
42
|
});
|
|
42
43
|
|
|
@@ -70,7 +71,7 @@ export const CreateMessageInputSchema = z.object({
|
|
|
70
71
|
|
|
71
72
|
parentId: z.cuid2().optional(),
|
|
72
73
|
replyToMessageId: z.cuid2().optional(),
|
|
73
|
-
|
|
74
|
+
isEdited: z.boolean().default(false),
|
|
74
75
|
linkMeta: LinkMetaSchema.optional(),
|
|
75
76
|
files: z
|
|
76
77
|
.array(CreateFileInputSchema.extend({ order: z.number().int() }))
|