@lyxa.ai/core 1.4.186 → 1.4.187

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.
@@ -6,6 +6,7 @@ import { NotificationSettings } from '../PushNotificationEvent';
6
6
  export declare const TicketActionsSocketInputSchema: z.ZodUndefined;
7
7
  export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
8
8
  _id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
9
+ chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
9
10
  status: z.ZodNativeEnum<typeof TicketStatus>;
10
11
  type: z.ZodNativeEnum<typeof TicketType>;
11
12
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -14,17 +15,20 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
14
15
  type: TicketType;
15
16
  status: TicketStatus;
16
17
  _id: import("mongoose").Types.ObjectId;
18
+ chatroomId: import("mongoose").Types.ObjectId;
17
19
  content?: string | undefined;
18
20
  title?: string | undefined;
19
21
  }, {
20
22
  type: TicketType;
21
23
  status: TicketStatus;
22
24
  _id: import("mongoose").Types.ObjectId;
25
+ chatroomId: import("mongoose").Types.ObjectId;
23
26
  content?: string | undefined;
24
27
  title?: string | undefined;
25
28
  }>;
26
29
  export declare const TicketActionsPushOutputSchema: z.ZodObject<{
27
30
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
31
+ chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
28
32
  status: z.ZodNativeEnum<typeof TicketStatus>;
29
33
  type: z.ZodNativeEnum<typeof TicketType>;
30
34
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -33,12 +37,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
33
37
  type: TicketType;
34
38
  status: TicketStatus;
35
39
  ticketId: import("mongoose").Types.ObjectId;
40
+ chatroomId: import("mongoose").Types.ObjectId;
36
41
  content?: string | undefined;
37
42
  title?: string | undefined;
38
43
  }, {
39
44
  type: TicketType;
40
45
  status: TicketStatus;
41
46
  ticketId: import("mongoose").Types.ObjectId;
47
+ chatroomId: import("mongoose").Types.ObjectId;
42
48
  content?: string | undefined;
43
49
  title?: string | undefined;
44
50
  }>;
@@ -50,6 +56,7 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
50
56
  input: z.ZodUndefined;
51
57
  output: z.ZodObject<{
52
58
  _id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
59
+ chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
53
60
  status: z.ZodNativeEnum<typeof TicketStatus>;
54
61
  type: z.ZodNativeEnum<typeof TicketType>;
55
62
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -58,17 +65,20 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
58
65
  type: TicketType;
59
66
  status: TicketStatus;
60
67
  _id: import("mongoose").Types.ObjectId;
68
+ chatroomId: import("mongoose").Types.ObjectId;
61
69
  content?: string | undefined;
62
70
  title?: string | undefined;
63
71
  }, {
64
72
  type: TicketType;
65
73
  status: TicketStatus;
66
74
  _id: import("mongoose").Types.ObjectId;
75
+ chatroomId: import("mongoose").Types.ObjectId;
67
76
  content?: string | undefined;
68
77
  title?: string | undefined;
69
78
  }>;
70
79
  pushNotificationOutput: z.ZodObject<{
71
80
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
81
+ chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
72
82
  status: z.ZodNativeEnum<typeof TicketStatus>;
73
83
  type: z.ZodNativeEnum<typeof TicketType>;
74
84
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -77,12 +87,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
77
87
  type: TicketType;
78
88
  status: TicketStatus;
79
89
  ticketId: import("mongoose").Types.ObjectId;
90
+ chatroomId: import("mongoose").Types.ObjectId;
80
91
  content?: string | undefined;
81
92
  title?: string | undefined;
82
93
  }, {
83
94
  type: TicketType;
84
95
  status: TicketStatus;
85
96
  ticketId: import("mongoose").Types.ObjectId;
97
+ chatroomId: import("mongoose").Types.ObjectId;
86
98
  content?: string | undefined;
87
99
  title?: string | undefined;
88
100
  }>;
@@ -93,6 +105,7 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
93
105
  type: TicketType;
94
106
  status: TicketStatus;
95
107
  ticketId: import("mongoose").Types.ObjectId;
108
+ chatroomId: import("mongoose").Types.ObjectId;
96
109
  content?: string | undefined;
97
110
  title?: string | undefined;
98
111
  } | undefined;
@@ -11,6 +11,7 @@ const BaseSocketEvent_1 = require("../BaseSocketEvent");
11
11
  exports.TicketActionsSocketInputSchema = zod_1.default.undefined();
12
12
  exports.TicketActionsSocketOutputSchema = zod_1.default.object({
13
13
  _id: validation_1.ZodValidation.coerce.objectId(),
14
+ chatroomId: validation_1.ZodValidation.coerce.objectId(),
14
15
  status: validation_1.ZodValidation.enumType(enum_1.TicketStatus, 'status'),
15
16
  type: validation_1.ZodValidation.enumType(enum_1.TicketType, 'type'),
16
17
  content: validation_1.ZodValidation.string('content').optional(),
@@ -18,6 +19,7 @@ exports.TicketActionsSocketOutputSchema = zod_1.default.object({
18
19
  });
19
20
  exports.TicketActionsPushOutputSchema = zod_1.default.object({
20
21
  ticketId: validation_1.ZodValidation.coerce.objectId(),
22
+ chatroomId: validation_1.ZodValidation.coerce.objectId(),
21
23
  status: validation_1.ZodValidation.enumType(enum_1.TicketStatus, 'status'),
22
24
  type: validation_1.ZodValidation.enumType(enum_1.TicketType, 'type'),
23
25
  content: validation_1.ZodValidation.string('content').optional(),
@@ -40,6 +42,7 @@ class TicketActionsSocketEvent extends BaseSocketEvent_1.BaseSocketEvent {
40
42
  constructor(payload) {
41
43
  const pushPayload = {
42
44
  ticketId: payload._id,
45
+ chatroomId: payload.chatroomId,
43
46
  status: payload.status,
44
47
  type: payload.type,
45
48
  content: payload.content,
@@ -1 +1 @@
1
- {"version":3,"file":"ticket-actions.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/ticket-actions.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,kDAA+F;AAC/F,8DAAmE;AACnE,wDAAqD;AAGxC,QAAA,8BAA8B,GAAG,aAAC,CAAC,SAAS,EAAE,CAAC;AAC/C,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,0BAAa,CAAC,QAAQ,CAAC,mBAAY,EAAE,QAAQ,CAAC;IACtD,IAAI,EAAE,0BAAa,CAAC,QAAQ,CA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AK,CAAC,sBAAe,CAAC,cAAc,EAAE,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC/F,CAAC;IAEM,0BAA0B;QAChC,OAAO,IAAI,CAAC,oBAAoB,CAAC;IAClC,CAAC;IAES,aAAa;QACtB,OAAO,SAAS,CAAC;IAClB,CAAC;;AAtCF,4DAuCC","sourcesContent":["import z from 'zod';\nimport { ClickType, SocketEventType, TicketStatus, TicketType } from '../../../utilities/enum';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { NotificationSettings } from '../PushNotificationEvent';\n\nexport const TicketActionsSocketInputSchema = z.undefined();\nexport const TicketActionsSocketOutputSchema = z.object({\n\t_id: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport const TicketActionsPushOutputSchema = z.object({\n\tticketId: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport type TicketActionsSocketOutputDTO = DTO<typeof TicketActionsSocketOutputSchema>;\nexport type TicketActionsPushOutputDTO = DTO<typeof TicketActionsPushOutputSchema>;\nexport type TicketActionsSocketInputDTO = DTO<typeof TicketActionsSocketInputSchema>;\n\nexport class TicketActionsSocketEvent extends BaseSocketEvent<\n\ttypeof TicketActionsSocketInputSchema,\n\ttypeof TicketActionsSocketOutputSchema,\n\ttypeof TicketActionsPushOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: TicketActionsSocketInputSchema,\n\t\toutput: TicketActionsSocketOutputSchema,\n\t\tpushNotificationOutput: TicketActionsPushOutputSchema,\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_TICKET,\n\t\t\ttitle: this.pushNotificationData?.title || 'Customer Support',\n\t\t};\n\t}\n\n\tconstructor(payload: TicketActionsSocketOutputDTO) {\n\t\tconst pushPayload: TicketActionsPushOutputDTO = {\n\t\t\tticketId: payload._id,\n\t\t\tstatus: payload.status,\n\t\t\ttype: payload.type,\n\t\t\tcontent: payload.content,\n\t\t\ttitle: payload.title,\n\t\t};\n\n\t\tsuper(SocketEventType.TICKET_ACTIONS, TicketActionsSocketEvent.schemas, payload, pushPayload);\n\t}\n\n\tpublic getPushNotificationPayload() {\n\t\treturn this.pushNotificationData;\n\t}\n\n\tprotected getIdentifier(): string {\n\t\treturn 'default';\n\t}\n}\n"]}
1
+ {"version":3,"file":"ticket-actions.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/ticket-actions.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,kDAA+F;AAC/F,8DAAmE;AACnE,wDAAqD;AAGxC,QAAA,8BAA8B,GAAG,aAAC,CAAC,SAAS,EAAE,CAAC;AAC/C,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,0BAAa,CAAC,QAAQ,CAAC,mBAAY,EAAE,QAAQ,CAAC;IACtD,IAAI,EAAE,0BAAa,CAAC,QAAQ,CAAC,iBAAU,EAAE,MAAM,CAAC;IAChD,OAAO,EAAE,0BAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,0BAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEU,QAAA,6B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B;QAChC,OAAO,IAAI,CAAC,oBAAoB,CAAC;IAClC,CAAC;IAES,aAAa;QACtB,OAAO,SAAS,CAAC;IAClB,CAAC;;AAvCF,4DAwCC","sourcesContent":["import z from 'zod';\nimport { ClickType, SocketEventType, TicketStatus, TicketType } from '../../../utilities/enum';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { NotificationSettings } from '../PushNotificationEvent';\n\nexport const TicketActionsSocketInputSchema = z.undefined();\nexport const TicketActionsSocketOutputSchema = z.object({\n\t_id: ZodValidation.coerce.objectId(),\n\tchatroomId: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport const TicketActionsPushOutputSchema = z.object({\n\tticketId: ZodValidation.coerce.objectId(),\n\tchatroomId: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport type TicketActionsSocketOutputDTO = DTO<typeof TicketActionsSocketOutputSchema>;\nexport type TicketActionsPushOutputDTO = DTO<typeof TicketActionsPushOutputSchema>;\nexport type TicketActionsSocketInputDTO = DTO<typeof TicketActionsSocketInputSchema>;\n\nexport class TicketActionsSocketEvent extends BaseSocketEvent<\n\ttypeof TicketActionsSocketInputSchema,\n\ttypeof TicketActionsSocketOutputSchema,\n\ttypeof TicketActionsPushOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: TicketActionsSocketInputSchema,\n\t\toutput: TicketActionsSocketOutputSchema,\n\t\tpushNotificationOutput: TicketActionsPushOutputSchema,\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_TICKET,\n\t\t\ttitle: this.pushNotificationData?.title || 'Customer Support',\n\t\t};\n\t}\n\n\tconstructor(payload: TicketActionsSocketOutputDTO) {\n\t\tconst pushPayload: TicketActionsPushOutputDTO = {\n\t\t\tticketId: payload._id,\n\t\t\tchatroomId: payload.chatroomId,\n\t\t\tstatus: payload.status,\n\t\t\ttype: payload.type,\n\t\t\tcontent: payload.content,\n\t\t\ttitle: payload.title,\n\t\t};\n\n\t\tsuper(SocketEventType.TICKET_ACTIONS, TicketActionsSocketEvent.schemas, payload, pushPayload);\n\t}\n\n\tpublic getPushNotificationPayload() {\n\t\treturn this.pushNotificationData;\n\t}\n\n\tprotected getIdentifier(): string {\n\t\treturn 'default';\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.4.186
25
+ Version: 1.4.187
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.186",
3
+ "version": "1.4.187",
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.4.186",
3
+ "version": "1.4.187",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",