@lyxa.ai/core 1.4.45 → 1.4.47
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/libraries/socket/events/chatlist-message-send.socket.event.d.ts +13 -0
- package/dist/libraries/socket/events/chatlist-message-send.socket.event.js +1 -0
- package/dist/libraries/socket/events/chatlist-message-send.socket.event.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { TicketStatus } from '../../../utilities/enum';
|
|
2
3
|
import { DTO } from '../../../utilities/validation';
|
|
3
4
|
import { BaseSocketEvent } from '../BaseSocketEvent';
|
|
4
5
|
import { NotificationSettings } from '../PushNotificationEvent';
|
|
@@ -17,9 +18,11 @@ export declare const ChatlistMessageSendSocketOutputSchema: z.ZodObject<{
|
|
|
17
18
|
createdAt: Date;
|
|
18
19
|
}>>;
|
|
19
20
|
unreadCount: z.ZodNumber;
|
|
21
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
20
22
|
}, "strip", z.ZodTypeAny, {
|
|
21
23
|
unreadCount: number;
|
|
22
24
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
25
|
+
status?: TicketStatus | undefined;
|
|
23
26
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
24
27
|
lastMessage?: {
|
|
25
28
|
content: string;
|
|
@@ -28,6 +31,7 @@ export declare const ChatlistMessageSendSocketOutputSchema: z.ZodObject<{
|
|
|
28
31
|
}, {
|
|
29
32
|
unreadCount: number;
|
|
30
33
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
34
|
+
status?: TicketStatus | undefined;
|
|
31
35
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
32
36
|
lastMessage?: {
|
|
33
37
|
content: string;
|
|
@@ -48,9 +52,11 @@ export declare const ChatlistMessageSendPushOutputSchema: z.ZodObject<{
|
|
|
48
52
|
createdAt: Date;
|
|
49
53
|
}>>;
|
|
50
54
|
unreadCount: z.ZodNumber;
|
|
55
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
51
56
|
}, "strip", z.ZodTypeAny, {
|
|
52
57
|
unreadCount: number;
|
|
53
58
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
|
+
status?: TicketStatus | undefined;
|
|
54
60
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
55
61
|
lastMessage?: {
|
|
56
62
|
content: string;
|
|
@@ -59,6 +65,7 @@ export declare const ChatlistMessageSendPushOutputSchema: z.ZodObject<{
|
|
|
59
65
|
}, {
|
|
60
66
|
unreadCount: number;
|
|
61
67
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
68
|
+
status?: TicketStatus | undefined;
|
|
62
69
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
63
70
|
lastMessage?: {
|
|
64
71
|
content: string;
|
|
@@ -85,9 +92,11 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
85
92
|
createdAt: Date;
|
|
86
93
|
}>>;
|
|
87
94
|
unreadCount: z.ZodNumber;
|
|
95
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
88
96
|
}, "strip", z.ZodTypeAny, {
|
|
89
97
|
unreadCount: number;
|
|
90
98
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
99
|
+
status?: TicketStatus | undefined;
|
|
91
100
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
92
101
|
lastMessage?: {
|
|
93
102
|
content: string;
|
|
@@ -96,6 +105,7 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
96
105
|
}, {
|
|
97
106
|
unreadCount: number;
|
|
98
107
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
108
|
+
status?: TicketStatus | undefined;
|
|
99
109
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
100
110
|
lastMessage?: {
|
|
101
111
|
content: string;
|
|
@@ -116,9 +126,11 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
116
126
|
createdAt: Date;
|
|
117
127
|
}>>;
|
|
118
128
|
unreadCount: z.ZodNumber;
|
|
129
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
119
130
|
}, "strip", z.ZodTypeAny, {
|
|
120
131
|
unreadCount: number;
|
|
121
132
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
133
|
+
status?: TicketStatus | undefined;
|
|
122
134
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
123
135
|
lastMessage?: {
|
|
124
136
|
content: string;
|
|
@@ -127,6 +139,7 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
127
139
|
}, {
|
|
128
140
|
unreadCount: number;
|
|
129
141
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
142
|
+
status?: TicketStatus | undefined;
|
|
130
143
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
131
144
|
lastMessage?: {
|
|
132
145
|
content: string;
|
|
@@ -19,6 +19,7 @@ exports.ChatlistMessageSendSocketOutputSchema = zod_1.default.object({
|
|
|
19
19
|
})
|
|
20
20
|
.optional(),
|
|
21
21
|
unreadCount: validation_1.ZodValidation.number(),
|
|
22
|
+
status: validation_1.ZodValidation.enumType(enum_1.TicketStatus).optional(),
|
|
22
23
|
});
|
|
23
24
|
exports.ChatlistMessageSendPushOutputSchema = exports.ChatlistMessageSendSocketOutputSchema;
|
|
24
25
|
class ChatlistMessageSendSocketEvent extends BaseSocketEvent_1.BaseSocketEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatlist-message-send.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/chatlist-message-send.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,
|
|
1
|
+
{"version":3,"file":"chatlist-message-send.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/chatlist-message-send.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,kDAAmF;AACnF,8DAAmE;AACnE,wDAAqD;AAIxC,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACpD,QAAA,qCAAqC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7D,UAAU,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,WAAW,EAAE,aAAC;SACZ,MAAM,CAAC;QACP,OAAO,EAAE,0BAAa,CAAC,MAAM,EAAE;QAC/B,SAAS,EAAE,0BAAa,CAAC,MAAM,CAAC,IAAI,EAAE;KACtC,CAAC;SACD,QAAQ,EAAE;IACZ,WAAW,EAAE,0BAAa,CAAC,MAAM,EAAE;IACnC,MAAM,EAAE,0BAAa,CAAC,QAAQ,CAAC,mBAAY,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AAEU,QAAA,mCAAmC,GAAG,6CAAqC,CAAC;AAMzF,MAAa,8BAA+B,SAAQ,iCAInD;IACA,MAAM,CAAU,OAAO,GAAG;QACzB,KAAK,EAAE,4CAAoC;QAC3C,MAAM,EAAE,6CAAqC;QAC7C,sBAAsB,EAAE,2CAAmC;KAC3D,CAAC;IAEF,IAAW,oBAAoB;QAC9B,OAAO;YACN,kBAAkB,EAAE,IAAI;YACxB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,gBAAS,CAAC,iBAAiB;SACtC,CAAC;IACH,CAAC;IAED,YAAY,OAA2C;QACtD,KAAK,CACJ,sBAAe,CAAC,yBAAyB,EACzC,8BAA8B,CAAC,OAAO,EACtC,OAAO,EACP,OAAO,CACP,CAAC;IACH,CAAC;IAES,aAAa;QACtB,OAAO,SAAS,CAAC;IAClB,CAAC;;AA9BF,wEA+BC","sourcesContent":["import z from 'zod';\nimport { ClickType, SocketEventType, TicketStatus } from '../../../utilities/enum';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\n\nimport { NotificationSettings } from '../PushNotificationEvent';\n\nexport const ChatlistMessageSendSocketInputSchema = z.object({});\nexport const ChatlistMessageSendSocketOutputSchema = z.object({\n\tchatroomId: ZodValidation.coerce.objectId(),\n\torderId: ZodValidation.coerce.objectId().optional(),\n\tlastMessage: z\n\t\t.object({\n\t\t\tcontent: ZodValidation.string(),\n\t\t\tcreatedAt: ZodValidation.coerce.date(),\n\t\t})\n\t\t.optional(),\n\tunreadCount: ZodValidation.number(),\n\tstatus: ZodValidation.enumType(TicketStatus).optional(),\n});\n\nexport const ChatlistMessageSendPushOutputSchema = ChatlistMessageSendSocketOutputSchema;\n\nexport type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatlistMessageSendPushOutputSchema>;\nexport type ChatlistMessageSendSocketOutputDTO = DTO<typeof ChatlistMessageSendSocketOutputSchema>;\nexport type ChatlistMessageSendSocketInputDTO = DTO<typeof ChatlistMessageSendSocketInputSchema>;\n\nexport class ChatlistMessageSendSocketEvent extends BaseSocketEvent<\n\ttypeof ChatlistMessageSendSocketInputSchema,\n\ttypeof ChatlistMessageSendSocketOutputSchema,\n\ttypeof ChatlistMessageSendPushOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: ChatlistMessageSendSocketInputSchema,\n\t\toutput: ChatlistMessageSendSocketOutputSchema,\n\t\tpushNotificationOutput: ChatlistMessageSendPushOutputSchema,\n\t};\n\n\tpublic get notificationSettings(): NotificationSettings | undefined {\n\t\treturn {\n\t\t\tisPushNotification: true,\n\t\t\tisClickable: true,\n\t\t\tclickType: ClickType.CLICKABLE_MESSAGE,\n\t\t};\n\t}\n\n\tconstructor(payload: ChatlistMessageSendSocketOutputDTO) {\n\t\tsuper(\n\t\t\tSocketEventType.CHATLIST_MESSAGE_RECEIVED,\n\t\t\tChatlistMessageSendSocketEvent.schemas,\n\t\t\tpayload,\n\t\t\tpayload\n\t\t);\n\t}\n\n\tprotected getIdentifier(): string {\n\t\treturn 'default';\n\t}\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED