@lyxa.ai/core 1.4.46 → 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 +12 -12
- package/dist/libraries/socket/events/chatlist-message-send.socket.event.js +1 -1
- 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
|
@@ -18,20 +18,20 @@ export declare const ChatlistMessageSendSocketOutputSchema: z.ZodObject<{
|
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
}>>;
|
|
20
20
|
unreadCount: z.ZodNumber;
|
|
21
|
-
status: z.ZodNativeEnum<typeof TicketStatus
|
|
21
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
status: TicketStatus;
|
|
24
23
|
unreadCount: number;
|
|
25
24
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
25
|
+
status?: TicketStatus | undefined;
|
|
26
26
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
27
27
|
lastMessage?: {
|
|
28
28
|
content: string;
|
|
29
29
|
createdAt: Date;
|
|
30
30
|
} | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
status: TicketStatus;
|
|
33
32
|
unreadCount: number;
|
|
34
33
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
34
|
+
status?: TicketStatus | undefined;
|
|
35
35
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
36
36
|
lastMessage?: {
|
|
37
37
|
content: string;
|
|
@@ -52,20 +52,20 @@ export declare const ChatlistMessageSendPushOutputSchema: z.ZodObject<{
|
|
|
52
52
|
createdAt: Date;
|
|
53
53
|
}>>;
|
|
54
54
|
unreadCount: z.ZodNumber;
|
|
55
|
-
status: z.ZodNativeEnum<typeof TicketStatus
|
|
55
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
status: TicketStatus;
|
|
58
57
|
unreadCount: number;
|
|
59
58
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
|
+
status?: TicketStatus | undefined;
|
|
60
60
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
61
61
|
lastMessage?: {
|
|
62
62
|
content: string;
|
|
63
63
|
createdAt: Date;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, {
|
|
66
|
-
status: TicketStatus;
|
|
67
66
|
unreadCount: number;
|
|
68
67
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
68
|
+
status?: TicketStatus | undefined;
|
|
69
69
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
70
70
|
lastMessage?: {
|
|
71
71
|
content: string;
|
|
@@ -92,20 +92,20 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
92
92
|
createdAt: Date;
|
|
93
93
|
}>>;
|
|
94
94
|
unreadCount: z.ZodNumber;
|
|
95
|
-
status: z.ZodNativeEnum<typeof TicketStatus
|
|
95
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
status: TicketStatus;
|
|
98
97
|
unreadCount: number;
|
|
99
98
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
99
|
+
status?: TicketStatus | undefined;
|
|
100
100
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
101
101
|
lastMessage?: {
|
|
102
102
|
content: string;
|
|
103
103
|
createdAt: Date;
|
|
104
104
|
} | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
status: TicketStatus;
|
|
107
106
|
unreadCount: number;
|
|
108
107
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
108
|
+
status?: TicketStatus | undefined;
|
|
109
109
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
110
110
|
lastMessage?: {
|
|
111
111
|
content: string;
|
|
@@ -126,20 +126,20 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
126
126
|
createdAt: Date;
|
|
127
127
|
}>>;
|
|
128
128
|
unreadCount: z.ZodNumber;
|
|
129
|
-
status: z.ZodNativeEnum<typeof TicketStatus
|
|
129
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
status: TicketStatus;
|
|
132
131
|
unreadCount: number;
|
|
133
132
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
133
|
+
status?: TicketStatus | undefined;
|
|
134
134
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
135
135
|
lastMessage?: {
|
|
136
136
|
content: string;
|
|
137
137
|
createdAt: Date;
|
|
138
138
|
} | undefined;
|
|
139
139
|
}, {
|
|
140
|
-
status: TicketStatus;
|
|
141
140
|
unreadCount: number;
|
|
142
141
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
142
|
+
status?: TicketStatus | undefined;
|
|
143
143
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
144
144
|
lastMessage?: {
|
|
145
145
|
content: string;
|
|
@@ -19,7 +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),
|
|
22
|
+
status: validation_1.ZodValidation.enumType(enum_1.TicketStatus).optional(),
|
|
23
23
|
});
|
|
24
24
|
exports.ChatlistMessageSendPushOutputSchema = exports.ChatlistMessageSendSocketOutputSchema;
|
|
25
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,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;
|
|
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