exnet-routing 1.2.30 → 1.2.32

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.
@@ -80,6 +80,26 @@ export declare class EventsRouter {
80
80
  * Unsubscribe from a chat
81
81
  */
82
82
  unsubscribeFromChat(chatId: number): void;
83
+ /**
84
+ * Subscribe to a support ticket for real-time updates
85
+ */
86
+ subscribeToSupportTicket(ticketId: number): void;
87
+ /**
88
+ * Unsubscribe from a support ticket
89
+ */
90
+ unsubscribeFromSupportTicket(ticketId: number): void;
91
+ /**
92
+ * Subscribe to all support ticket notifications (for ops users)
93
+ */
94
+ subscribeToSupportNotifications(): void;
95
+ /**
96
+ * Unsubscribe from support ticket notifications
97
+ */
98
+ unsubscribeFromSupportNotifications(): void;
99
+ /**
100
+ * Send typing indicator for support chat
101
+ */
102
+ sendSupportTyping(ticketId: number, isTyping: boolean): void;
83
103
  /**
84
104
  * List all available event names (for debugging)
85
105
  */
@@ -146,6 +146,42 @@ class EventsRouter {
146
146
  unsubscribeFromChat(chatId) {
147
147
  this.leaveRoom(`chat:${chatId}`);
148
148
  }
149
+ /**
150
+ * Subscribe to a support ticket for real-time updates
151
+ */
152
+ subscribeToSupportTicket(ticketId) {
153
+ if (this.socket) {
154
+ this.socket.emit("support:join", ticketId);
155
+ }
156
+ }
157
+ /**
158
+ * Unsubscribe from a support ticket
159
+ */
160
+ unsubscribeFromSupportTicket(ticketId) {
161
+ if (this.socket) {
162
+ this.socket.emit("support:leave", ticketId);
163
+ }
164
+ }
165
+ /**
166
+ * Subscribe to all support ticket notifications (for ops users)
167
+ */
168
+ subscribeToSupportNotifications() {
169
+ this.joinRoom("support:ops");
170
+ }
171
+ /**
172
+ * Unsubscribe from support ticket notifications
173
+ */
174
+ unsubscribeFromSupportNotifications() {
175
+ this.leaveRoom("support:ops");
176
+ }
177
+ /**
178
+ * Send typing indicator for support chat
179
+ */
180
+ sendSupportTyping(ticketId, isTyping) {
181
+ if (this.socket) {
182
+ this.socket.emit("support:typing", { ticketId, isTyping });
183
+ }
184
+ }
149
185
  /**
150
186
  * List all available event names (for debugging)
151
187
  */