@lyxa.ai/core 1.0.379 → 1.0.380
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.
|
@@ -14,7 +14,7 @@ exports.ChatroomMessageSendOutput = zod_1.default.object({
|
|
|
14
14
|
chatId: zod_1.default.string(),
|
|
15
15
|
messageId: zod_1.default.string(),
|
|
16
16
|
contents: zod_1.default.string(),
|
|
17
|
-
createdAt: zod_1.default.date(),
|
|
17
|
+
createdAt: zod_1.default.coerce.date(),
|
|
18
18
|
});
|
|
19
19
|
class ChatroomMessageSendEvent extends BaseSocketEvent_1.BaseSocketEvent {
|
|
20
20
|
static schemas = { input: exports.ChatroomMessageSendInput, output: exports.ChatroomMessageSendOutput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatroom-message-send-socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/chatroom-message-send-socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAqD;AACrD,kDAA0D;AAG7C,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,aAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,aAAC,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"chatroom-message-send-socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/chatroom-message-send-socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAqD;AACrD,kDAA0D;AAG7C,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,aAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAa,wBAAyB,SAAQ,iCAG7C;IACA,MAAM,CAAU,OAAO,GAAG,EAAE,KAAK,EAAE,gCAAwB,EAAE,MAAM,EAAE,iCAAyB,EAAE,CAAC;IAEjG,YAAY,OAA8C;QACzD,KAAK,CAAC,sBAAe,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAEM,aAAa;QACnB,OAAO,sBAAe,CAAC,qBAAqB,GAAG,GAAG,GAAG,wBAAwB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrG,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAA+C;QAChE,OAAO,KAAK,CAAC,MAAM,CAAC;IACrB,CAAC;;AAhBF,4DAiBC","sourcesContent":["import z from 'zod';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { SocketEventType } from '../../../utilities/enum';\nimport { DTO } from '../../../utilities/validation';\n\nexport const ChatroomMessageSendInput = z.object({\n\tchatId: z.string(),\n});\n\nexport const ChatroomMessageSendOutput = z.object({\n\tchatId: z.string(),\n\tmessageId: z.string(),\n\tcontents: z.string(),\n\tcreatedAt: z.coerce.date(),\n});\n\nexport class ChatroomMessageSendEvent extends BaseSocketEvent<\n\ttypeof ChatroomMessageSendInput,\n\ttypeof ChatroomMessageSendOutput\n> {\n\tstatic readonly schemas = { input: ChatroomMessageSendInput, output: ChatroomMessageSendOutput };\n\n\tconstructor(payload: DTO<typeof ChatroomMessageSendOutput>) {\n\t\tsuper(SocketEventType.CHATROOM_MESSAGE_SEND, ChatroomMessageSendEvent.schemas, payload);\n\t}\n\n\tpublic getIdentifier(): string {\n\t\treturn SocketEventType.CHATROOM_MESSAGE_SEND + \":\" + ChatroomMessageSendEvent.identifier(this.data);\n\t}\n\n\tstatic identifier(input: z.infer<typeof ChatroomMessageSendInput>): string {\n\t\treturn input.chatId;\n\t}\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED