@lyxa.ai/core 1.1.12 → 1.1.13

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.
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { SocketEventType } from '../../../utilities/enum';
3
3
  import { BaseSocketEvent } from '../BaseSocketEvent';
4
- import { REGISTRY } from '../socket-event-registry.map';
4
+ import { Registry } from '../socket-event-registry.map';
5
5
  interface EventRegistration<TEvent extends BaseSocketEvent<any, any>> {
6
6
  ctor: new (payload: z.input<TEvent['outputSchema']>) => TEvent;
7
7
  schemas: {
@@ -10,13 +10,12 @@ interface EventRegistration<TEvent extends BaseSocketEvent<any, any>> {
10
10
  };
11
11
  identifier?: (input: z.infer<TEvent['inputSchema']>) => string;
12
12
  }
13
- type Registry = typeof REGISTRY;
14
13
  type InputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['input']>;
15
14
  type OutputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['output']>;
16
15
  type EventFor<T extends SocketEventType> = InstanceType<Registry[T]['ctor']>;
17
16
  export declare class EventFactory {
18
17
  static getRegistration<T extends SocketEventType>(eventType: T): Registry[T];
19
- static getSubscriptionKey<T extends SocketEventType>(eventType: T, input: InputFor<T>, subKey?: string): string;
20
- static createEvent<T extends SocketEventType>(eventType: T, payload: OutputFor<T>): EventFor<T>;
18
+ static getSubscriptionKey<T extends SocketEventType>(SocketEventType: T, input: InputFor<T>): string;
19
+ static createEvent<T extends SocketEventType>(SocketEventType: T, data: OutputFor<T>): EventFor<T>;
21
20
  }
22
21
  export type { Registry, EventFor, InputFor, OutputFor, EventRegistration };
@@ -6,15 +6,15 @@ class EventFactory {
6
6
  static getRegistration(eventType) {
7
7
  return socket_event_registry_map_1.REGISTRY[eventType];
8
8
  }
9
- static getSubscriptionKey(eventType, input, subKey) {
10
- const { identifier, schemas } = this.getRegistration(eventType);
9
+ static getSubscriptionKey(SocketEventType, input) {
10
+ const { identifier, schemas } = this.getRegistration(SocketEventType);
11
11
  const validatedInput = schemas.input.parse(input);
12
- const key = identifier?.(validatedInput) ?? subKey ?? 'default';
13
- return `${eventType}:${key}`;
12
+ const key = identifier?.(validatedInput) ?? 'default';
13
+ return `${SocketEventType}:${key}`;
14
14
  }
15
- static createEvent(eventType, payload) {
16
- const { ctor } = this.getRegistration(eventType);
17
- return new ctor(payload);
15
+ static createEvent(SocketEventType, data) {
16
+ const { ctor } = socket_event_registry_map_1.REGISTRY[SocketEventType];
17
+ return new ctor(data);
18
18
  }
19
19
  }
20
20
  exports.EventFactory = EventFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"socket-event-registry.js","sourceRoot":"/","sources":["libraries/socket/core/socket-event-registry.ts"],"names":[],"mappings":";;;AAGA,4EAAwD;AAaxD,MAAa,YAAY;IACxB,MAAM,CAAC,eAAe,CAA4B,SAAY;QAC7D,OAAO,oCAAQ,CAAC,SAAS,CAAgB,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,kBAAkB,CAA4B,SAAY,EAAE,KAAkB,EAAE,MAAe;QACrG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAChE,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClD,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC,cAAc,CAAC,IAAI,MAAM,IAAI,SAAS,CAAC;QAChE,OAAO,GAAG,SAAS,IAAI,GAAG,EAAE,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,WAAW,CAA4B,SAAY,EAAE,OAAqB;QAChF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACjD,OAAO,IAAI,IAAI,CAAC,OAAO,CAAgB,CAAC;IACzC,CAAC;CACD;AAhBD,oCAgBC","sourcesContent":["import { z } from 'zod';\nimport { SocketEventType } from '../../../utilities/enum';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { REGISTRY } from '../socket-event-registry.map';\n\ninterface EventRegistration<TEvent extends BaseSocketEvent<any, any>> {\n\tctor: new (payload: z.input<TEvent['outputSchema']>) => TEvent;\n\tschemas: { input: TEvent['inputSchema']; output: TEvent['outputSchema'] };\n\tidentifier?: (input: z.infer<TEvent['inputSchema']>) => string;\n}\n\ntype Registry = typeof REGISTRY;\ntype InputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['input']>;\ntype OutputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['output']>;\ntype EventFor<T extends SocketEventType> = InstanceType<Registry[T]['ctor']>;\n\nexport class EventFactory {\n\tstatic getRegistration<T extends SocketEventType>(eventType: T) {\n\t\treturn REGISTRY[eventType] as Registry[T];\n\t}\n\n\tstatic getSubscriptionKey<T extends SocketEventType>(eventType: T, input: InputFor<T>, subKey?: string) {\n\t\tconst { identifier, schemas } = this.getRegistration(eventType);\n\t\tconst validatedInput = schemas.input.parse(input);\n\t\tconst key = identifier?.(validatedInput) ?? subKey ?? 'default';\n\t\treturn `${eventType}:${key}`;\n\t}\n\n\tstatic createEvent<T extends SocketEventType>(eventType: T, payload: OutputFor<T>): EventFor<T> {\n\t\tconst { ctor } = this.getRegistration(eventType);\n\t\treturn new ctor(payload) as EventFor<T>;\n\t}\n}\n\nexport type { Registry, EventFor, InputFor, OutputFor, EventRegistration };\n"]}
1
+ {"version":3,"file":"socket-event-registry.js","sourceRoot":"/","sources":["libraries/socket/core/socket-event-registry.ts"],"names":[],"mappings":";;;AAGA,4EAAkE;AAYlE,MAAa,YAAY;IACxB,MAAM,CAAC,eAAe,CAA4B,SAAY;QAC7D,OAAO,oCAAQ,CAAC,SAAS,CAAgB,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,kBAAkB,CAA4B,eAAkB,EAAE,KAAkB;QAC1F,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;QACtE,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClD,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC,cAAc,CAAC,IAAI,SAAS,CAAC;QACtD,OAAO,GAAG,eAAe,IAAI,GAAG,EAAE,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,WAAW,CAA4B,eAAkB,EAAE,IAAkB;QAC1F,MAAM,EAAE,IAAI,EAAE,GAAG,oCAAQ,CAAC,eAAe,CAAC,CAAC;QAC3C,OAAO,IAAI,IAAI,CAAC,IAAI,CAAgB,CAAC;IACtC,CAAC;CACD;AAhBD,oCAgBC","sourcesContent":["import { z } from 'zod';\nimport { SocketEventType } from '../../../utilities/enum';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { Registry, REGISTRY } from '../socket-event-registry.map';\n\ninterface EventRegistration<TEvent extends BaseSocketEvent<any, any>> {\n\tctor: new (payload: z.input<TEvent['outputSchema']>) => TEvent;\n\tschemas: { input: TEvent['inputSchema']; output: TEvent['outputSchema'] };\n\tidentifier?: (input: z.infer<TEvent['inputSchema']>) => string;\n}\n\ntype InputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['input']>;\ntype OutputFor<T extends SocketEventType> = z.infer<Registry[T]['schemas']['output']>;\ntype EventFor<T extends SocketEventType> = InstanceType<Registry[T]['ctor']>;\n\nexport class EventFactory {\n\tstatic getRegistration<T extends SocketEventType>(eventType: T) {\n\t\treturn REGISTRY[eventType] as Registry[T];\n\t}\n\n\tstatic getSubscriptionKey<T extends SocketEventType>(SocketEventType: T, input: InputFor<T>) {\n\t\tconst { identifier, schemas } = this.getRegistration(SocketEventType);\n\t\tconst validatedInput = schemas.input.parse(input);\n\t\tconst key = identifier?.(validatedInput) ?? 'default';\n\t\treturn `${SocketEventType}:${key}`;\n\t}\n\n\tpublic static createEvent<T extends SocketEventType>(SocketEventType: T, data: OutputFor<T>): EventFor<T> {\n\t\tconst { ctor } = REGISTRY[SocketEventType];\n\t\treturn new ctor(data) as EventFor<T>;\n\t}\n}\n\nexport type { Registry, EventFor, InputFor, OutputFor, EventRegistration };\n"]}
@@ -1,9 +1,166 @@
1
- import { SocketEventType } from '../../utilities/enum';
2
- import { BaseSocketEvent } from './BaseSocketEvent';
3
- import { ZodTypeAny } from 'zod';
1
+ import { ChatlistMessageSendEvent, ChatroomMessageSendEvent } from './events';
2
+ import { TicketAssignEvent } from './events/ticket-assign.socket.event';
3
+ import { TicketUnassignEvent } from './events/ticket-unassign.socket.event';
4
4
  import { EventRegistration } from './core';
5
- type RegistryMap = {
6
- [K in SocketEventType]: EventRegistration<BaseSocketEvent<ZodTypeAny, ZodTypeAny>>;
5
+ export declare const REGISTRY: {
6
+ readonly CHATROOM_MESSAGE_SEND: {
7
+ readonly ctor: typeof ChatroomMessageSendEvent;
8
+ readonly schemas: {
9
+ input: import("zod").ZodObject<{
10
+ 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>;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ chatroomId: import("mongoose").Types.ObjectId;
13
+ }, {
14
+ chatroomId: import("mongoose").Types.ObjectId;
15
+ }>;
16
+ output: import("zod").ZodObject<{
17
+ 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>;
18
+ 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>;
19
+ content: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
20
+ createdAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDate, Date, Date>, Date, Date>;
21
+ }, "strip", import("zod").ZodTypeAny, {
22
+ content: string;
23
+ createdAt: Date;
24
+ chatroomId: import("mongoose").Types.ObjectId;
25
+ messageId: import("mongoose").Types.ObjectId;
26
+ }, {
27
+ content: string;
28
+ createdAt: Date;
29
+ chatroomId: import("mongoose").Types.ObjectId;
30
+ messageId: import("mongoose").Types.ObjectId;
31
+ }>;
32
+ };
33
+ readonly identifier: typeof ChatroomMessageSendEvent.identifier;
34
+ };
35
+ readonly CHATLIST_MESSAGE_RECEIVED: {
36
+ readonly ctor: typeof ChatlistMessageSendEvent;
37
+ readonly schemas: {
38
+ input: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
39
+ output: import("zod").ZodObject<{
40
+ 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>;
41
+ lastMessage: import("zod").ZodObject<{
42
+ content: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
43
+ createdAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodDate, Date, Date>, Date, Date>;
44
+ }, "strip", import("zod").ZodTypeAny, {
45
+ content: string;
46
+ createdAt: Date;
47
+ }, {
48
+ content: string;
49
+ createdAt: Date;
50
+ }>;
51
+ unreadCount: import("zod").ZodNumber;
52
+ }, "strip", import("zod").ZodTypeAny, {
53
+ lastMessage: {
54
+ content: string;
55
+ createdAt: Date;
56
+ };
57
+ unreadCount: number;
58
+ chatroomId: import("mongoose").Types.ObjectId;
59
+ }, {
60
+ lastMessage: {
61
+ content: string;
62
+ createdAt: Date;
63
+ };
64
+ unreadCount: number;
65
+ chatroomId: import("mongoose").Types.ObjectId;
66
+ }>;
67
+ };
68
+ };
69
+ readonly TICKET_ASSIGN: {
70
+ readonly ctor: typeof TicketAssignEvent;
71
+ readonly schemas: {
72
+ input: import("zod").ZodUndefined;
73
+ output: import("zod").ZodObject<{
74
+ _id: 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>]>;
75
+ type: import("zod").ZodNativeEnum<typeof import("../../utilities/enum").TicketType>;
76
+ status: import("zod").ZodNativeEnum<typeof import("../../utilities/enum").TicketStatus>;
77
+ client: import("zod").ZodObject<{
78
+ _id: 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>]>;
79
+ type: import("zod").ZodNativeEnum<typeof import("../../utilities/enum").UserRef>;
80
+ name: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
81
+ profilePhoto: import("zod").ZodNullable<import("zod").ZodString> | import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
82
+ }, "strip", import("zod").ZodTypeAny, {
83
+ name: string;
84
+ type: import("../../utilities/enum").UserRef;
85
+ _id: import("mongoose").Types.ObjectId;
86
+ profilePhoto: string | null;
87
+ }, {
88
+ name: string;
89
+ type: import("../../utilities/enum").UserRef;
90
+ _id: string | import("mongoose").Types.ObjectId;
91
+ profilePhoto: string | null;
92
+ }>;
93
+ createdAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
94
+ updatedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
95
+ orderId: import("zod").ZodOptional<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>]>>;
96
+ 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>]>;
97
+ lastMessage: import("zod").ZodObject<{
98
+ content: import("zod").ZodString | import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
99
+ createdAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
100
+ }, "strip", import("zod").ZodTypeAny, {
101
+ content: string;
102
+ createdAt: Date;
103
+ }, {
104
+ content: string;
105
+ createdAt: string | Date;
106
+ }>;
107
+ unreadCount: import("zod").ZodNumber;
108
+ }, "strip", import("zod").ZodTypeAny, {
109
+ type: import("../../utilities/enum").TicketType;
110
+ client: {
111
+ name: string;
112
+ type: import("../../utilities/enum").UserRef;
113
+ _id: import("mongoose").Types.ObjectId;
114
+ profilePhoto: string | null;
115
+ };
116
+ status: import("../../utilities/enum").TicketStatus;
117
+ _id: import("mongoose").Types.ObjectId;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ lastMessage: {
121
+ content: string;
122
+ createdAt: Date;
123
+ };
124
+ unreadCount: number;
125
+ chatroomId: import("mongoose").Types.ObjectId;
126
+ orderId?: import("mongoose").Types.ObjectId | undefined;
127
+ }, {
128
+ type: import("../../utilities/enum").TicketType;
129
+ client: {
130
+ name: string;
131
+ type: import("../../utilities/enum").UserRef;
132
+ _id: string | import("mongoose").Types.ObjectId;
133
+ profilePhoto: string | null;
134
+ };
135
+ status: import("../../utilities/enum").TicketStatus;
136
+ _id: string | import("mongoose").Types.ObjectId;
137
+ createdAt: string | Date;
138
+ updatedAt: string | Date;
139
+ lastMessage: {
140
+ content: string;
141
+ createdAt: string | Date;
142
+ };
143
+ unreadCount: number;
144
+ chatroomId: string | import("mongoose").Types.ObjectId;
145
+ orderId?: string | import("mongoose").Types.ObjectId | undefined;
146
+ }>;
147
+ };
148
+ };
149
+ readonly TICKET_UNASSIGN: {
150
+ readonly ctor: typeof TicketUnassignEvent;
151
+ readonly schemas: {
152
+ input: import("zod").ZodUndefined;
153
+ output: import("zod").ZodObject<{
154
+ _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>;
155
+ }, "strip", import("zod").ZodTypeAny, {
156
+ _id: import("mongoose").Types.ObjectId;
157
+ }, {
158
+ _id: import("mongoose").Types.ObjectId;
159
+ }>;
160
+ };
161
+ readonly identifier: typeof import("./BaseSocketEvent").BaseSocketEvent.identifier;
162
+ };
163
+ };
164
+ export type Registry = {
165
+ [K in keyof typeof REGISTRY]: (typeof REGISTRY)[K] extends EventRegistration<any> ? (typeof REGISTRY)[K] : never;
7
166
  };
8
- export declare const REGISTRY: RegistryMap;
9
- export {};
@@ -22,6 +22,7 @@ exports.REGISTRY = {
22
22
  [enum_1.SocketEventType.TICKET_UNASSIGN]: {
23
23
  ctor: ticket_unassign_socket_event_1.TicketUnassignEvent,
24
24
  schemas: ticket_unassign_socket_event_1.TicketUnassignEvent.schemas,
25
+ identifier: ticket_unassign_socket_event_1.TicketUnassignEvent.identifier,
25
26
  },
26
27
  };
27
28
  //# sourceMappingURL=socket-event-registry.map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"socket-event-registry.map.js","sourceRoot":"/","sources":["libraries/socket/socket-event-registry.map.ts"],"names":[],"mappings":";;;AAAA,+CAAuD;AACvD,qCAA8E;AAC9E,oFAAwE;AACxE,wFAA4E;AAQ/D,QAAA,QAAQ,GAAgB;IACpC,CAAC,sBAAe,CAAC,qBAAqB,CAAC,EAAE;QACxC,IAAI,EAAE,iCAAwB;QAC9B,OAAO,EAAE,iCAAwB,CAAC,OAAO;QACzC,UAAU,EAAE,iCAAwB,CAAC,UAAU;KAC/C;IACD,CAAC,sBAAe,CAAC,yBAAyB,CAAC,EAAE;QAC5C,IAAI,EAAE,iCAAwB;QAC9B,OAAO,EAAE,iCAAwB,CAAC,OAAO;KACzC;IACD,CAAC,sBAAe,CAAC,aAAa,CAAC,EAAE;QAChC,IAAI,EAAE,8CAAiB;QACvB,OAAO,EAAE,8CAAiB,CAAC,OAAO;KAClC;IACD,CAAC,sBAAe,CAAC,eAAe,CAAC,EAAE;QAClC,IAAI,EAAE,kDAAmB;QACzB,OAAO,EAAE,kDAAmB,CAAC,OAAO;KACpC;CACD,CAAC","sourcesContent":["import { SocketEventType } from '../../utilities/enum';\nimport { ChatlistMessageSendEvent, ChatroomMessageSendEvent } from './events';\nimport { TicketAssignEvent } from './events/ticket-assign.socket.event';\nimport { TicketUnassignEvent } from './events/ticket-unassign.socket.event';\nimport { BaseSocketEvent } from './BaseSocketEvent';\nimport { ZodTypeAny } from 'zod';\nimport { EventRegistration } from './core';\n\ntype RegistryMap = {\n\t[K in SocketEventType]: EventRegistration<BaseSocketEvent<ZodTypeAny, ZodTypeAny>>;\n};\nexport const REGISTRY: RegistryMap = {\n\t[SocketEventType.CHATROOM_MESSAGE_SEND]: {\n\t\tctor: ChatroomMessageSendEvent,\n\t\tschemas: ChatroomMessageSendEvent.schemas,\n\t\tidentifier: ChatroomMessageSendEvent.identifier,\n\t},\n\t[SocketEventType.CHATLIST_MESSAGE_RECEIVED]: {\n\t\tctor: ChatlistMessageSendEvent,\n\t\tschemas: ChatlistMessageSendEvent.schemas,\n\t},\n\t[SocketEventType.TICKET_ASSIGN]: {\n\t\tctor: TicketAssignEvent,\n\t\tschemas: TicketAssignEvent.schemas,\n\t},\n\t[SocketEventType.TICKET_UNASSIGN]: {\n\t\tctor: TicketUnassignEvent,\n\t\tschemas: TicketUnassignEvent.schemas,\n\t},\n};\n"]}
1
+ {"version":3,"file":"socket-event-registry.map.js","sourceRoot":"/","sources":["libraries/socket/socket-event-registry.map.ts"],"names":[],"mappings":";;;AAAA,+CAAuD;AACvD,qCAA8E;AAC9E,oFAAwE;AACxE,wFAA4E;AAG/D,QAAA,QAAQ,GAAG;IACvB,CAAC,sBAAe,CAAC,qBAAqB,CAAC,EAAE;QACxC,IAAI,EAAE,iCAAwB;QAC9B,OAAO,EAAE,iCAAwB,CAAC,OAAO;QACzC,UAAU,EAAE,iCAAwB,CAAC,UAAU;KAC/C;IACD,CAAC,sBAAe,CAAC,yBAAyB,CAAC,EAAE;QAC5C,IAAI,EAAE,iCAAwB;QAC9B,OAAO,EAAE,iCAAwB,CAAC,OAAO;KACzC;IACD,CAAC,sBAAe,CAAC,aAAa,CAAC,EAAE;QAChC,IAAI,EAAE,8CAAiB;QACvB,OAAO,EAAE,8CAAiB,CAAC,OAAO;KAClC;IACD,CAAC,sBAAe,CAAC,eAAe,CAAC,EAAE;QAClC,IAAI,EAAE,kDAAmB;QACzB,OAAO,EAAE,kDAAmB,CAAC,OAAO;QACpC,UAAU,EAAE,kDAAmB,CAAC,UAAU;KAC1C;CACQ,CAAC","sourcesContent":["import { SocketEventType } from '../../utilities/enum';\nimport { ChatlistMessageSendEvent, ChatroomMessageSendEvent } from './events';\nimport { TicketAssignEvent } from './events/ticket-assign.socket.event';\nimport { TicketUnassignEvent } from './events/ticket-unassign.socket.event';\nimport { EventRegistration } from './core';\n\nexport const REGISTRY = {\n\t[SocketEventType.CHATROOM_MESSAGE_SEND]: {\n\t\tctor: ChatroomMessageSendEvent,\n\t\tschemas: ChatroomMessageSendEvent.schemas,\n\t\tidentifier: ChatroomMessageSendEvent.identifier,\n\t},\n\t[SocketEventType.CHATLIST_MESSAGE_RECEIVED]: {\n\t\tctor: ChatlistMessageSendEvent,\n\t\tschemas: ChatlistMessageSendEvent.schemas,\n\t},\n\t[SocketEventType.TICKET_ASSIGN]: {\n\t\tctor: TicketAssignEvent,\n\t\tschemas: TicketAssignEvent.schemas,\n\t},\n\t[SocketEventType.TICKET_UNASSIGN]: {\n\t\tctor: TicketUnassignEvent,\n\t\tschemas: TicketUnassignEvent.schemas,\n\t\tidentifier: TicketUnassignEvent.identifier,\n\t},\n} as const;\n\nexport type Registry = {\n\t[K in keyof typeof REGISTRY]: (typeof REGISTRY)[K] extends EventRegistration<any>\n\t\t? (typeof REGISTRY)[K]\n\t\t: never;\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.12
25
+ Version: 1.1.13
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
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.12",
3
+ "version": "1.1.13",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",