@lyxa.ai/core 1.1.29 → 1.1.30

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.
@@ -8,27 +8,51 @@ export declare const REGISTRY: {
8
8
  readonly ctor: typeof ChatroomMessageSendSocketEvent;
9
9
  readonly schemas: {
10
10
  input: import("zod").ZodObject<{
11
- chatroomId: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
11
+ chatroomId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
12
12
  }, "strip", import("zod").ZodTypeAny, {
13
- chatroomId: string;
13
+ chatroomId: import("mongoose").Types.ObjectId;
14
14
  }, {
15
- chatroomId: string;
15
+ chatroomId: string | import("mongoose").Types.ObjectId;
16
16
  }>;
17
17
  output: import("zod").ZodObject<{
18
- chatroomId: import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
19
- messageId: import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
18
+ _id: import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
19
+ senderId: import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
20
+ senderType: import("zod").ZodNativeEnum<typeof import("../../../utilities/enum").UserRef>;
21
+ sender: import("zod").ZodObject<{
22
+ id: import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
23
+ type: import("zod").ZodNativeEnum<typeof import("../../../utilities/enum").UserRef>;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ type: import("../../../utilities/enum").UserRef;
26
+ id: import("mongoose").Types.ObjectId;
27
+ }, {
28
+ type: import("../../../utilities/enum").UserRef;
29
+ id: import("mongoose").Types.ObjectId;
30
+ }>;
20
31
  content: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
32
+ chatroomId: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
21
33
  createdAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDate, Date, Date>, Date, Date>;
22
34
  }, "strip", import("zod").ZodTypeAny, {
23
35
  content: string;
36
+ _id: import("mongoose").Types.ObjectId;
24
37
  createdAt: Date;
25
- chatroomId: import("mongoose").Types.ObjectId;
26
- messageId: import("mongoose").Types.ObjectId;
38
+ sender: {
39
+ type: import("../../../utilities/enum").UserRef;
40
+ id: import("mongoose").Types.ObjectId;
41
+ };
42
+ senderType: import("../../../utilities/enum").UserRef;
43
+ senderId: import("mongoose").Types.ObjectId;
44
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
27
45
  }, {
28
46
  content: string;
47
+ _id: import("mongoose").Types.ObjectId;
29
48
  createdAt: Date;
30
- chatroomId: import("mongoose").Types.ObjectId;
31
- messageId: import("mongoose").Types.ObjectId;
49
+ sender: {
50
+ type: import("../../../utilities/enum").UserRef;
51
+ id: import("mongoose").Types.ObjectId;
52
+ };
53
+ senderType: import("../../../utilities/enum").UserRef;
54
+ senderId: import("mongoose").Types.ObjectId;
55
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
32
56
  }>;
33
57
  };
34
58
  readonly identifier: typeof ChatroomMessageSendSocketEvent.identifier;
@@ -1,56 +1,105 @@
1
1
  import z from 'zod';
2
+ import { UserRef } from '../../../utilities/enum';
2
3
  import { DTO } from '../../../utilities/validation';
3
4
  import { BaseSocketEvent } from '../BaseSocketEvent';
4
5
  import { NotificationSocketEvent } from './notification.socket.event';
5
6
  export declare const ChatroomMessageSendSocketInputSchema: z.ZodObject<{
6
- chatroomId: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
+ chatroomId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
7
8
  }, "strip", z.ZodTypeAny, {
8
- chatroomId: string;
9
+ chatroomId: import("mongoose").Types.ObjectId;
9
10
  }, {
10
- chatroomId: string;
11
+ chatroomId: string | import("mongoose").Types.ObjectId;
11
12
  }>;
12
13
  export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
13
- chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
14
- messageId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
14
+ _id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
15
+ senderId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
16
+ senderType: z.ZodNativeEnum<typeof UserRef>;
17
+ sender: z.ZodObject<{
18
+ id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
19
+ type: z.ZodNativeEnum<typeof UserRef>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: UserRef;
22
+ id: import("mongoose").Types.ObjectId;
23
+ }, {
24
+ type: UserRef;
25
+ id: import("mongoose").Types.ObjectId;
26
+ }>;
15
27
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
28
+ chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
16
29
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
17
30
  }, "strip", z.ZodTypeAny, {
18
31
  content: string;
32
+ _id: import("mongoose").Types.ObjectId;
19
33
  createdAt: Date;
20
- chatroomId: import("mongoose").Types.ObjectId;
21
- messageId: import("mongoose").Types.ObjectId;
34
+ sender: {
35
+ type: UserRef;
36
+ id: import("mongoose").Types.ObjectId;
37
+ };
38
+ senderType: UserRef;
39
+ senderId: import("mongoose").Types.ObjectId;
40
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
22
41
  }, {
23
42
  content: string;
43
+ _id: import("mongoose").Types.ObjectId;
24
44
  createdAt: Date;
25
- chatroomId: import("mongoose").Types.ObjectId;
26
- messageId: import("mongoose").Types.ObjectId;
45
+ sender: {
46
+ type: UserRef;
47
+ id: import("mongoose").Types.ObjectId;
48
+ };
49
+ senderType: UserRef;
50
+ senderId: import("mongoose").Types.ObjectId;
51
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
27
52
  }>;
28
53
  export type ChatroomMessageSendSocketOutputDTO = DTO<typeof ChatroomMessageSendOutputSchema>;
29
54
  export type ChatroomMessageSendSocketInputDTO = DTO<typeof ChatroomMessageSendSocketInputSchema>;
30
55
  export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<typeof ChatroomMessageSendSocketInputSchema, typeof ChatroomMessageSendOutputSchema> {
31
56
  static readonly schemas: {
32
57
  input: z.ZodObject<{
33
- chatroomId: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
58
+ chatroomId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
34
59
  }, "strip", z.ZodTypeAny, {
35
- chatroomId: string;
60
+ chatroomId: import("mongoose").Types.ObjectId;
36
61
  }, {
37
- chatroomId: string;
62
+ chatroomId: string | import("mongoose").Types.ObjectId;
38
63
  }>;
39
64
  output: z.ZodObject<{
40
- chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
41
- messageId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
65
+ _id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
66
+ senderId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
67
+ senderType: z.ZodNativeEnum<typeof UserRef>;
68
+ sender: z.ZodObject<{
69
+ id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
70
+ type: z.ZodNativeEnum<typeof UserRef>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: UserRef;
73
+ id: import("mongoose").Types.ObjectId;
74
+ }, {
75
+ type: UserRef;
76
+ id: import("mongoose").Types.ObjectId;
77
+ }>;
42
78
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
79
+ chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
43
80
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
44
81
  }, "strip", z.ZodTypeAny, {
45
82
  content: string;
83
+ _id: import("mongoose").Types.ObjectId;
46
84
  createdAt: Date;
47
- chatroomId: import("mongoose").Types.ObjectId;
48
- messageId: import("mongoose").Types.ObjectId;
85
+ sender: {
86
+ type: UserRef;
87
+ id: import("mongoose").Types.ObjectId;
88
+ };
89
+ senderType: UserRef;
90
+ senderId: import("mongoose").Types.ObjectId;
91
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
49
92
  }, {
50
93
  content: string;
94
+ _id: import("mongoose").Types.ObjectId;
51
95
  createdAt: Date;
52
- chatroomId: import("mongoose").Types.ObjectId;
53
- messageId: import("mongoose").Types.ObjectId;
96
+ sender: {
97
+ type: UserRef;
98
+ id: import("mongoose").Types.ObjectId;
99
+ };
100
+ senderType: UserRef;
101
+ senderId: import("mongoose").Types.ObjectId;
102
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
54
103
  }>;
55
104
  };
56
105
  notification(): NotificationSocketEvent | null;
@@ -10,12 +10,18 @@ const validation_1 = require("../../../utilities/validation");
10
10
  const BaseSocketEvent_1 = require("../BaseSocketEvent");
11
11
  const notification_socket_event_1 = require("./notification.socket.event");
12
12
  exports.ChatroomMessageSendSocketInputSchema = zod_1.default.object({
13
- chatroomId: validation_1.ZodValidation.string(),
13
+ chatroomId: validation_1.IdSchema,
14
14
  });
15
15
  exports.ChatroomMessageSendOutputSchema = zod_1.default.object({
16
- chatroomId: validation_1.ZodValidation.coerce.objectId(),
17
- messageId: validation_1.ZodValidation.coerce.objectId(),
18
- content: validation_1.ZodValidation.string(),
16
+ _id: validation_1.ZodValidation.coerce.objectId('_id'),
17
+ senderId: validation_1.ZodValidation.coerce.objectId('senderId'),
18
+ senderType: validation_1.ZodValidation.enumType(enum_1.UserRef, 'senderType'),
19
+ sender: zod_1.default.object({
20
+ id: validation_1.ZodValidation.coerce.objectId('sender.id'),
21
+ type: validation_1.ZodValidation.enumType(enum_1.UserRef, 'sender.type'),
22
+ }),
23
+ content: validation_1.ZodValidation.string('content', { minLength: 1, maxLength: 1000 }),
24
+ chatroomId: validation_1.ZodValidation.coerce.objectId('chatroomId').optional(),
19
25
  createdAt: validation_1.ZodValidation.coerce.date(),
20
26
  });
21
27
  class ChatroomMessageSendSocketEvent extends BaseSocketEvent_1.BaseSocketEvent {
@@ -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,kDAAqF;AACrF,8DAAmE;AACnE,wDAAqD;AACrD,2EAAsE;AAEzD,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5D,UAAU,EAAE,0BAAa,CAAC,MAAM,EAAE;CAClC,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,UAAU,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC3C,SAAS,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,0BAAa,CAAC,MAAM,EAAE;IAC/B,SAAS,EAAE,0BAAa,CAAC,MAAM,CAAC,IAAI,EAAE;CACtC,CAAC,CAAC;AAKH,MAAa,8BAA+B,SAAQ,iCAGnD;IACA,MAAM,CAAU,OAAO,GAAG;QACzB,KAAK,EAAE,4CAAoC;QAC3C,MAAM,EAAE,uCAA+B;KACvC,CAAC;IAEK,YAAY;QAClB,OAAO,IAAI,mDAAuB,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;IAChE,CAAC;IAEM,gBAAgB;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,YAAY,OAA2C;QACtD,KAAK,CAAC,sBAAe,CAAC,qBAAqB,EAAE,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAA2D;QAC5E,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;;AAvBF,wEAwBC","sourcesContent":["import z from 'zod';\nimport { PushNotificationEventType, SocketEventType } from '../../../utilities/enum';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { NotificationSocketEvent } from './notification.socket.event';\n\nexport const ChatroomMessageSendSocketInputSchema = z.object({\n\tchatroomId: ZodValidation.string(),\n});\n\nexport const ChatroomMessageSendOutputSchema = z.object({\n\tchatroomId: ZodValidation.coerce.objectId(),\n\tmessageId: ZodValidation.coerce.objectId(),\n\tcontent: ZodValidation.string(),\n\tcreatedAt: ZodValidation.coerce.date(),\n});\n\nexport type ChatroomMessageSendSocketOutputDTO = DTO<typeof ChatroomMessageSendOutputSchema>;\nexport type ChatroomMessageSendSocketInputDTO = DTO<typeof ChatroomMessageSendSocketInputSchema>;\n\nexport class ChatroomMessageSendSocketEvent extends BaseSocketEvent<\n\ttypeof ChatroomMessageSendSocketInputSchema,\n\ttypeof ChatroomMessageSendOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: ChatroomMessageSendSocketInputSchema,\n\t\toutput: ChatroomMessageSendOutputSchema,\n\t};\n\n\tpublic notification(): NotificationSocketEvent | null {\n\t\treturn new NotificationSocketEvent({ message: `New message` });\n\t}\n\n\tpublic pushNotification(): NotificationSocketEvent | null {\n\t\treturn null;\n\t}\n\n\tconstructor(payload: ChatroomMessageSendSocketOutputDTO) {\n\t\tsuper(SocketEventType.CHATROOM_MESSAGE_SEND, ChatroomMessageSendSocketEvent.schemas, payload);\n\t}\n\n\tstatic identifier(input: z.infer<typeof ChatroomMessageSendSocketInputSchema>): string {\n\t\treturn input.chatroomId.toString();\n\t}\n}\n"]}
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,kDAAmE;AACnE,8DAA6E;AAC7E,wDAAqD;AACrD,2EAAsE;AAEzD,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5D,UAAU,EAAE,qBAAQ;CACpB,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;IACzC,QAAQ,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC;IACnD,UAAU,EAAE,0BAAa,CAAC,QAAQ,CAAC,cAAO,EAAE,YAAY,CAAC;IACzD,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;QAChB,EAAE,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC;QAC9C,IAAI,EAAE,0BAAa,CAAC,QAAQ,CAAC,cAAO,EAAE,aAAa,CAAC;KACpD,CAAC;IACF,OAAO,EAAE,0BAAa,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC3E,UAAU,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IAClE,SAAS,EAAE,0BAAa,CAAC,MAAM,CAAC,IAAI,EAAE;CACtC,CAAC,CAAC;AAKH,MAAa,8BAA+B,SAAQ,iCAGnD;IACA,MAAM,CAAU,OAAO,GAAG;QACzB,KAAK,EAAE,4CAAoC;QAC3C,MAAM,EAAE,uCAA+B;KACvC,CAAC;IAEK,YAAY;QAClB,OAAO,IAAI,mDAAuB,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;IAChE,CAAC;IAEM,gBAAgB;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,YAAY,OAA2C;QACtD,KAAK,CAAC,sBAAe,CAAC,qBAAqB,EAAE,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAA2D;QAC5E,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;;AAvBF,wEAwBC","sourcesContent":["import z from 'zod';\nimport { SocketEventType, UserRef } from '../../../utilities/enum';\nimport { DTO, IdSchema, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { NotificationSocketEvent } from './notification.socket.event';\n\nexport const ChatroomMessageSendSocketInputSchema = z.object({\n\tchatroomId: IdSchema,\n});\n\nexport const ChatroomMessageSendOutputSchema = z.object({\n\t_id: ZodValidation.coerce.objectId('_id'),\n\tsenderId: ZodValidation.coerce.objectId('senderId'), // DEPRECATED\n\tsenderType: ZodValidation.enumType(UserRef, 'senderType'), // DEPRECATED\n\tsender: z.object({\n\t\tid: ZodValidation.coerce.objectId('sender.id'),\n\t\ttype: ZodValidation.enumType(UserRef, 'sender.type'),\n\t}),\n\tcontent: ZodValidation.string('content', { minLength: 1, maxLength: 1000 }),\n\tchatroomId: ZodValidation.coerce.objectId('chatroomId').optional(),\n\tcreatedAt: ZodValidation.coerce.date(),\n});\n\nexport type ChatroomMessageSendSocketOutputDTO = DTO<typeof ChatroomMessageSendOutputSchema>;\nexport type ChatroomMessageSendSocketInputDTO = DTO<typeof ChatroomMessageSendSocketInputSchema>;\n\nexport class ChatroomMessageSendSocketEvent extends BaseSocketEvent<\n\ttypeof ChatroomMessageSendSocketInputSchema,\n\ttypeof ChatroomMessageSendOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: ChatroomMessageSendSocketInputSchema,\n\t\toutput: ChatroomMessageSendOutputSchema,\n\t};\n\n\tpublic notification(): NotificationSocketEvent | null {\n\t\treturn new NotificationSocketEvent({ message: `New message` });\n\t}\n\n\tpublic pushNotification(): NotificationSocketEvent | null {\n\t\treturn null;\n\t}\n\n\tconstructor(payload: ChatroomMessageSendSocketOutputDTO) {\n\t\tsuper(SocketEventType.CHATROOM_MESSAGE_SEND, ChatroomMessageSendSocketEvent.schemas, payload);\n\t}\n\n\tstatic identifier(input: z.infer<typeof ChatroomMessageSendSocketInputSchema>): string {\n\t\treturn input.chatroomId.toString();\n\t}\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.1.29
25
+ Version: 1.1.30
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",