exnet-routing 1.2.29 → 1.2.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.
- package/dist/events/_support.d.ts +310 -0
- package/dist/events/_support.js +135 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const supportEvents: {
|
|
3
|
+
ticketCreated: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
category: z.ZodLiteral<"info">;
|
|
6
|
+
type: z.ZodLiteral<"support_ticket_created">;
|
|
7
|
+
data: z.ZodObject<{
|
|
8
|
+
ticketId: z.ZodNumber;
|
|
9
|
+
ticketNumber: z.ZodString;
|
|
10
|
+
subject: z.ZodString;
|
|
11
|
+
category: z.ZodString;
|
|
12
|
+
priority: z.ZodString;
|
|
13
|
+
userId: z.ZodNumber;
|
|
14
|
+
userName: z.ZodString;
|
|
15
|
+
shippingId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
createdAt: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
createdAt: string;
|
|
19
|
+
userId: number;
|
|
20
|
+
userName: string;
|
|
21
|
+
category: string;
|
|
22
|
+
subject: string;
|
|
23
|
+
priority: string;
|
|
24
|
+
ticketNumber: string;
|
|
25
|
+
ticketId: number;
|
|
26
|
+
shippingId?: number | null | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
createdAt: string;
|
|
29
|
+
userId: number;
|
|
30
|
+
userName: string;
|
|
31
|
+
category: string;
|
|
32
|
+
subject: string;
|
|
33
|
+
priority: string;
|
|
34
|
+
ticketNumber: string;
|
|
35
|
+
ticketId: number;
|
|
36
|
+
shippingId?: number | null | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
message: string;
|
|
40
|
+
type: "support_ticket_created";
|
|
41
|
+
category: "info";
|
|
42
|
+
data: {
|
|
43
|
+
createdAt: string;
|
|
44
|
+
userId: number;
|
|
45
|
+
userName: string;
|
|
46
|
+
category: string;
|
|
47
|
+
subject: string;
|
|
48
|
+
priority: string;
|
|
49
|
+
ticketNumber: string;
|
|
50
|
+
ticketId: number;
|
|
51
|
+
shippingId?: number | null | undefined;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
message: string;
|
|
55
|
+
type: "support_ticket_created";
|
|
56
|
+
category: "info";
|
|
57
|
+
data: {
|
|
58
|
+
createdAt: string;
|
|
59
|
+
userId: number;
|
|
60
|
+
userName: string;
|
|
61
|
+
category: string;
|
|
62
|
+
subject: string;
|
|
63
|
+
priority: string;
|
|
64
|
+
ticketNumber: string;
|
|
65
|
+
ticketId: number;
|
|
66
|
+
shippingId?: number | null | undefined;
|
|
67
|
+
};
|
|
68
|
+
}>>;
|
|
69
|
+
ticketUpdated: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
70
|
+
message: z.ZodString;
|
|
71
|
+
category: z.ZodLiteral<"info">;
|
|
72
|
+
type: z.ZodLiteral<"support_ticket_updated">;
|
|
73
|
+
data: z.ZodObject<{
|
|
74
|
+
ticketId: z.ZodNumber;
|
|
75
|
+
status: z.ZodOptional<z.ZodString>;
|
|
76
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
77
|
+
category: z.ZodOptional<z.ZodString>;
|
|
78
|
+
assignedOpsId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
79
|
+
updatedAt: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
ticketId: number;
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
category?: string | undefined;
|
|
85
|
+
priority?: string | undefined;
|
|
86
|
+
assignedOpsId?: number | null | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
ticketId: number;
|
|
90
|
+
status?: string | undefined;
|
|
91
|
+
category?: string | undefined;
|
|
92
|
+
priority?: string | undefined;
|
|
93
|
+
assignedOpsId?: number | null | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
message: string;
|
|
97
|
+
type: "support_ticket_updated";
|
|
98
|
+
category: "info";
|
|
99
|
+
data: {
|
|
100
|
+
updatedAt: string;
|
|
101
|
+
ticketId: number;
|
|
102
|
+
status?: string | undefined;
|
|
103
|
+
category?: string | undefined;
|
|
104
|
+
priority?: string | undefined;
|
|
105
|
+
assignedOpsId?: number | null | undefined;
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
message: string;
|
|
109
|
+
type: "support_ticket_updated";
|
|
110
|
+
category: "info";
|
|
111
|
+
data: {
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
ticketId: number;
|
|
114
|
+
status?: string | undefined;
|
|
115
|
+
category?: string | undefined;
|
|
116
|
+
priority?: string | undefined;
|
|
117
|
+
assignedOpsId?: number | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
}>>;
|
|
120
|
+
messageCreated: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
121
|
+
message: z.ZodString;
|
|
122
|
+
category: z.ZodLiteral<"info">;
|
|
123
|
+
type: z.ZodLiteral<"support_ticket_message_created">;
|
|
124
|
+
data: z.ZodObject<{
|
|
125
|
+
ticketId: z.ZodNumber;
|
|
126
|
+
chatId: z.ZodNumber;
|
|
127
|
+
messageId: z.ZodNumber;
|
|
128
|
+
content: z.ZodString;
|
|
129
|
+
userId: z.ZodNumber;
|
|
130
|
+
userName: z.ZodString;
|
|
131
|
+
userPhoto: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
isOps: z.ZodBoolean;
|
|
133
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
134
|
+
createdAt: z.ZodString;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
createdAt: string;
|
|
137
|
+
userId: number;
|
|
138
|
+
userName: string;
|
|
139
|
+
isOps: boolean;
|
|
140
|
+
content: string;
|
|
141
|
+
chatId: number;
|
|
142
|
+
messageId: number;
|
|
143
|
+
ticketId: number;
|
|
144
|
+
files?: string[] | null | undefined;
|
|
145
|
+
userPhoto?: string | null | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
createdAt: string;
|
|
148
|
+
userId: number;
|
|
149
|
+
userName: string;
|
|
150
|
+
isOps: boolean;
|
|
151
|
+
content: string;
|
|
152
|
+
chatId: number;
|
|
153
|
+
messageId: number;
|
|
154
|
+
ticketId: number;
|
|
155
|
+
files?: string[] | null | undefined;
|
|
156
|
+
userPhoto?: string | null | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
message: string;
|
|
160
|
+
type: "support_ticket_message_created";
|
|
161
|
+
category: "info";
|
|
162
|
+
data: {
|
|
163
|
+
createdAt: string;
|
|
164
|
+
userId: number;
|
|
165
|
+
userName: string;
|
|
166
|
+
isOps: boolean;
|
|
167
|
+
content: string;
|
|
168
|
+
chatId: number;
|
|
169
|
+
messageId: number;
|
|
170
|
+
ticketId: number;
|
|
171
|
+
files?: string[] | null | undefined;
|
|
172
|
+
userPhoto?: string | null | undefined;
|
|
173
|
+
};
|
|
174
|
+
}, {
|
|
175
|
+
message: string;
|
|
176
|
+
type: "support_ticket_message_created";
|
|
177
|
+
category: "info";
|
|
178
|
+
data: {
|
|
179
|
+
createdAt: string;
|
|
180
|
+
userId: number;
|
|
181
|
+
userName: string;
|
|
182
|
+
isOps: boolean;
|
|
183
|
+
content: string;
|
|
184
|
+
chatId: number;
|
|
185
|
+
messageId: number;
|
|
186
|
+
ticketId: number;
|
|
187
|
+
files?: string[] | null | undefined;
|
|
188
|
+
userPhoto?: string | null | undefined;
|
|
189
|
+
};
|
|
190
|
+
}>>;
|
|
191
|
+
ticketAssigned: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
192
|
+
message: z.ZodString;
|
|
193
|
+
category: z.ZodLiteral<"info">;
|
|
194
|
+
type: z.ZodLiteral<"support_ticket_assigned">;
|
|
195
|
+
data: z.ZodObject<{
|
|
196
|
+
ticketId: z.ZodNumber;
|
|
197
|
+
assignedOpsId: z.ZodNullable<z.ZodNumber>;
|
|
198
|
+
assignedOpsName: z.ZodOptional<z.ZodString>;
|
|
199
|
+
assignedAt: z.ZodString;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
assignedOpsId: number | null;
|
|
202
|
+
assignedAt: string;
|
|
203
|
+
ticketId: number;
|
|
204
|
+
assignedOpsName?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
assignedOpsId: number | null;
|
|
207
|
+
assignedAt: string;
|
|
208
|
+
ticketId: number;
|
|
209
|
+
assignedOpsName?: string | undefined;
|
|
210
|
+
}>;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
message: string;
|
|
213
|
+
type: "support_ticket_assigned";
|
|
214
|
+
category: "info";
|
|
215
|
+
data: {
|
|
216
|
+
assignedOpsId: number | null;
|
|
217
|
+
assignedAt: string;
|
|
218
|
+
ticketId: number;
|
|
219
|
+
assignedOpsName?: string | undefined;
|
|
220
|
+
};
|
|
221
|
+
}, {
|
|
222
|
+
message: string;
|
|
223
|
+
type: "support_ticket_assigned";
|
|
224
|
+
category: "info";
|
|
225
|
+
data: {
|
|
226
|
+
assignedOpsId: number | null;
|
|
227
|
+
assignedAt: string;
|
|
228
|
+
ticketId: number;
|
|
229
|
+
assignedOpsName?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
}>>;
|
|
232
|
+
ticketResolved: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
233
|
+
message: z.ZodString;
|
|
234
|
+
category: z.ZodLiteral<"success">;
|
|
235
|
+
type: z.ZodLiteral<"support_ticket_resolved">;
|
|
236
|
+
data: z.ZodObject<{
|
|
237
|
+
ticketId: z.ZodNumber;
|
|
238
|
+
resolvedByOpsId: z.ZodNumber;
|
|
239
|
+
resolvedByOpsName: z.ZodString;
|
|
240
|
+
resolvedAt: z.ZodString;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
resolvedAt: string;
|
|
243
|
+
ticketId: number;
|
|
244
|
+
resolvedByOpsId: number;
|
|
245
|
+
resolvedByOpsName: string;
|
|
246
|
+
}, {
|
|
247
|
+
resolvedAt: string;
|
|
248
|
+
ticketId: number;
|
|
249
|
+
resolvedByOpsId: number;
|
|
250
|
+
resolvedByOpsName: string;
|
|
251
|
+
}>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
message: string;
|
|
254
|
+
type: "support_ticket_resolved";
|
|
255
|
+
category: "success";
|
|
256
|
+
data: {
|
|
257
|
+
resolvedAt: string;
|
|
258
|
+
ticketId: number;
|
|
259
|
+
resolvedByOpsId: number;
|
|
260
|
+
resolvedByOpsName: string;
|
|
261
|
+
};
|
|
262
|
+
}, {
|
|
263
|
+
message: string;
|
|
264
|
+
type: "support_ticket_resolved";
|
|
265
|
+
category: "success";
|
|
266
|
+
data: {
|
|
267
|
+
resolvedAt: string;
|
|
268
|
+
ticketId: number;
|
|
269
|
+
resolvedByOpsId: number;
|
|
270
|
+
resolvedByOpsName: string;
|
|
271
|
+
};
|
|
272
|
+
}>>;
|
|
273
|
+
ticketClosed: import("../core/events/_type").IWsEvent<z.ZodObject<{
|
|
274
|
+
message: z.ZodString;
|
|
275
|
+
category: z.ZodLiteral<"info">;
|
|
276
|
+
type: z.ZodLiteral<"support_ticket_closed">;
|
|
277
|
+
data: z.ZodObject<{
|
|
278
|
+
ticketId: z.ZodNumber;
|
|
279
|
+
closedByUserId: z.ZodNumber;
|
|
280
|
+
closedAt: z.ZodString;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
closedAt: string;
|
|
283
|
+
ticketId: number;
|
|
284
|
+
closedByUserId: number;
|
|
285
|
+
}, {
|
|
286
|
+
closedAt: string;
|
|
287
|
+
ticketId: number;
|
|
288
|
+
closedByUserId: number;
|
|
289
|
+
}>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
message: string;
|
|
292
|
+
type: "support_ticket_closed";
|
|
293
|
+
category: "info";
|
|
294
|
+
data: {
|
|
295
|
+
closedAt: string;
|
|
296
|
+
ticketId: number;
|
|
297
|
+
closedByUserId: number;
|
|
298
|
+
};
|
|
299
|
+
}, {
|
|
300
|
+
message: string;
|
|
301
|
+
type: "support_ticket_closed";
|
|
302
|
+
category: "info";
|
|
303
|
+
data: {
|
|
304
|
+
closedAt: string;
|
|
305
|
+
ticketId: number;
|
|
306
|
+
closedByUserId: number;
|
|
307
|
+
};
|
|
308
|
+
}>>;
|
|
309
|
+
};
|
|
310
|
+
export type SupportEventsType = typeof supportEvents;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportEvents = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _type_1 = require("../core/events/_type");
|
|
6
|
+
// Support ticket payload schemas
|
|
7
|
+
const SupportTicketCreatedPayload = zod_1.z.object({
|
|
8
|
+
message: zod_1.z.string(),
|
|
9
|
+
category: zod_1.z.literal(_type_1.WsCategory.INFO),
|
|
10
|
+
type: zod_1.z.literal("support_ticket_created"),
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
ticketId: zod_1.z.number(),
|
|
13
|
+
ticketNumber: zod_1.z.string(),
|
|
14
|
+
subject: zod_1.z.string(),
|
|
15
|
+
category: zod_1.z.string(),
|
|
16
|
+
priority: zod_1.z.string(),
|
|
17
|
+
userId: zod_1.z.number(),
|
|
18
|
+
userName: zod_1.z.string(),
|
|
19
|
+
shippingId: zod_1.z.number().nullable().optional(),
|
|
20
|
+
createdAt: zod_1.z.string(),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
const SupportTicketUpdatedPayload = zod_1.z.object({
|
|
24
|
+
message: zod_1.z.string(),
|
|
25
|
+
category: zod_1.z.literal(_type_1.WsCategory.INFO),
|
|
26
|
+
type: zod_1.z.literal("support_ticket_updated"),
|
|
27
|
+
data: zod_1.z.object({
|
|
28
|
+
ticketId: zod_1.z.number(),
|
|
29
|
+
status: zod_1.z.string().optional(),
|
|
30
|
+
priority: zod_1.z.string().optional(),
|
|
31
|
+
category: zod_1.z.string().optional(),
|
|
32
|
+
assignedOpsId: zod_1.z.number().nullable().optional(),
|
|
33
|
+
updatedAt: zod_1.z.string(),
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
const SupportTicketMessageCreatedPayload = zod_1.z.object({
|
|
37
|
+
message: zod_1.z.string(),
|
|
38
|
+
category: zod_1.z.literal(_type_1.WsCategory.INFO),
|
|
39
|
+
type: zod_1.z.literal("support_ticket_message_created"),
|
|
40
|
+
data: zod_1.z.object({
|
|
41
|
+
ticketId: zod_1.z.number(),
|
|
42
|
+
chatId: zod_1.z.number(),
|
|
43
|
+
messageId: zod_1.z.number(),
|
|
44
|
+
content: zod_1.z.string(),
|
|
45
|
+
userId: zod_1.z.number(),
|
|
46
|
+
userName: zod_1.z.string(),
|
|
47
|
+
userPhoto: zod_1.z.string().nullable().optional(),
|
|
48
|
+
isOps: zod_1.z.boolean(),
|
|
49
|
+
files: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
50
|
+
createdAt: zod_1.z.string(),
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
const SupportTicketAssignedPayload = zod_1.z.object({
|
|
54
|
+
message: zod_1.z.string(),
|
|
55
|
+
category: zod_1.z.literal(_type_1.WsCategory.INFO),
|
|
56
|
+
type: zod_1.z.literal("support_ticket_assigned"),
|
|
57
|
+
data: zod_1.z.object({
|
|
58
|
+
ticketId: zod_1.z.number(),
|
|
59
|
+
assignedOpsId: zod_1.z.number().nullable(),
|
|
60
|
+
assignedOpsName: zod_1.z.string().optional(),
|
|
61
|
+
assignedAt: zod_1.z.string(),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
const SupportTicketResolvedPayload = zod_1.z.object({
|
|
65
|
+
message: zod_1.z.string(),
|
|
66
|
+
category: zod_1.z.literal(_type_1.WsCategory.SUCCESS),
|
|
67
|
+
type: zod_1.z.literal("support_ticket_resolved"),
|
|
68
|
+
data: zod_1.z.object({
|
|
69
|
+
ticketId: zod_1.z.number(),
|
|
70
|
+
resolvedByOpsId: zod_1.z.number(),
|
|
71
|
+
resolvedByOpsName: zod_1.z.string(),
|
|
72
|
+
resolvedAt: zod_1.z.string(),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
const SupportTicketClosedPayload = zod_1.z.object({
|
|
76
|
+
message: zod_1.z.string(),
|
|
77
|
+
category: zod_1.z.literal(_type_1.WsCategory.INFO),
|
|
78
|
+
type: zod_1.z.literal("support_ticket_closed"),
|
|
79
|
+
data: zod_1.z.object({
|
|
80
|
+
ticketId: zod_1.z.number(),
|
|
81
|
+
closedByUserId: zod_1.z.number(),
|
|
82
|
+
closedAt: zod_1.z.string(),
|
|
83
|
+
}),
|
|
84
|
+
});
|
|
85
|
+
// Export support events definitions
|
|
86
|
+
exports.supportEvents = (0, _type_1.IWsEventType)({
|
|
87
|
+
ticketCreated: (0, _type_1.defineEvent)({
|
|
88
|
+
event: "support:ticket_created",
|
|
89
|
+
type: "support_ticket_created",
|
|
90
|
+
category: _type_1.WsCategory.INFO,
|
|
91
|
+
payload: SupportTicketCreatedPayload,
|
|
92
|
+
description: "Emitted when a new support ticket is created",
|
|
93
|
+
rooms: ["support:ops", "user:{userId}"],
|
|
94
|
+
}),
|
|
95
|
+
ticketUpdated: (0, _type_1.defineEvent)({
|
|
96
|
+
event: "support:ticket_updated",
|
|
97
|
+
type: "support_ticket_updated",
|
|
98
|
+
category: _type_1.WsCategory.INFO,
|
|
99
|
+
payload: SupportTicketUpdatedPayload,
|
|
100
|
+
description: "Emitted when a support ticket is updated (status, priority, category, assignment)",
|
|
101
|
+
rooms: ["chat:{ticketId}", "user:{userId}"],
|
|
102
|
+
}),
|
|
103
|
+
messageCreated: (0, _type_1.defineEvent)({
|
|
104
|
+
event: "support:message_created",
|
|
105
|
+
type: "support_ticket_message_created",
|
|
106
|
+
category: _type_1.WsCategory.INFO,
|
|
107
|
+
payload: SupportTicketMessageCreatedPayload,
|
|
108
|
+
description: "Emitted when a new message is added to a support ticket",
|
|
109
|
+
rooms: ["chat:{ticketId}", "user:{userId}"],
|
|
110
|
+
}),
|
|
111
|
+
ticketAssigned: (0, _type_1.defineEvent)({
|
|
112
|
+
event: "support:ticket_assigned",
|
|
113
|
+
type: "support_ticket_assigned",
|
|
114
|
+
category: _type_1.WsCategory.INFO,
|
|
115
|
+
payload: SupportTicketAssignedPayload,
|
|
116
|
+
description: "Emitted when a support ticket is assigned to an ops user",
|
|
117
|
+
rooms: ["chat:{ticketId}", "user:{assignedOpsId}"],
|
|
118
|
+
}),
|
|
119
|
+
ticketResolved: (0, _type_1.defineEvent)({
|
|
120
|
+
event: "support:ticket_resolved",
|
|
121
|
+
type: "support_ticket_resolved",
|
|
122
|
+
category: _type_1.WsCategory.SUCCESS,
|
|
123
|
+
payload: SupportTicketResolvedPayload,
|
|
124
|
+
description: "Emitted when a support ticket is marked as resolved",
|
|
125
|
+
rooms: ["chat:{ticketId}", "user:{userId}"],
|
|
126
|
+
}),
|
|
127
|
+
ticketClosed: (0, _type_1.defineEvent)({
|
|
128
|
+
event: "support:ticket_closed",
|
|
129
|
+
type: "support_ticket_closed",
|
|
130
|
+
category: _type_1.WsCategory.INFO,
|
|
131
|
+
payload: SupportTicketClosedPayload,
|
|
132
|
+
description: "Emitted when a support ticket is closed",
|
|
133
|
+
rooms: ["chat:{ticketId}"],
|
|
134
|
+
}),
|
|
135
|
+
});
|
package/dist/events/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ChatEventsType } from "./_chat";
|
|
|
4
4
|
import { FactureEventsType } from "./_facture";
|
|
5
5
|
import { ManifestEventsType } from "./_manifest";
|
|
6
6
|
import { UserEventsType } from "./_user";
|
|
7
|
+
import { SupportEventsType } from "./_support";
|
|
7
8
|
export declare const wsEvents: {
|
|
8
9
|
shipping: ShippingEventsType;
|
|
9
10
|
driver: DriverEventsType;
|
|
@@ -11,6 +12,7 @@ export declare const wsEvents: {
|
|
|
11
12
|
facture: FactureEventsType;
|
|
12
13
|
manifest: ManifestEventsType;
|
|
13
14
|
user: UserEventsType;
|
|
15
|
+
support: SupportEventsType;
|
|
14
16
|
};
|
|
15
17
|
export type WsEventsType = typeof wsEvents;
|
|
16
18
|
export { shippingEvents, ShippingEventsType } from "./_shipping";
|
|
@@ -19,3 +21,4 @@ export { chatEvents, ChatEventsType } from "./_chat";
|
|
|
19
21
|
export { factureEvents, FactureEventsType } from "./_facture";
|
|
20
22
|
export { manifestEvents, ManifestEventsType } from "./_manifest";
|
|
21
23
|
export { userEvents, UserEventsType } from "./_user";
|
|
24
|
+
export { supportEvents, SupportEventsType } from "./_support";
|
package/dist/events/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userEvents = exports.manifestEvents = exports.factureEvents = exports.chatEvents = exports.driverEvents = exports.shippingEvents = exports.wsEvents = void 0;
|
|
3
|
+
exports.supportEvents = exports.userEvents = exports.manifestEvents = exports.factureEvents = exports.chatEvents = exports.driverEvents = exports.shippingEvents = exports.wsEvents = void 0;
|
|
4
4
|
const _type_1 = require("../core/events/_type");
|
|
5
5
|
const _shipping_1 = require("./_shipping");
|
|
6
6
|
const _driver_1 = require("./_driver");
|
|
@@ -8,6 +8,7 @@ const _chat_1 = require("./_chat");
|
|
|
8
8
|
const _facture_1 = require("./_facture");
|
|
9
9
|
const _manifest_1 = require("./_manifest");
|
|
10
10
|
const _user_1 = require("./_user");
|
|
11
|
+
const _support_1 = require("./_support");
|
|
11
12
|
// All events grouped by category
|
|
12
13
|
exports.wsEvents = (0, _type_1.IWsEventType)({
|
|
13
14
|
shipping: _shipping_1.shippingEvents,
|
|
@@ -16,6 +17,7 @@ exports.wsEvents = (0, _type_1.IWsEventType)({
|
|
|
16
17
|
facture: _facture_1.factureEvents,
|
|
17
18
|
manifest: _manifest_1.manifestEvents,
|
|
18
19
|
user: _user_1.userEvents,
|
|
20
|
+
support: _support_1.supportEvents,
|
|
19
21
|
});
|
|
20
22
|
// Re-export individual event types
|
|
21
23
|
var _shipping_2 = require("./_shipping");
|
|
@@ -30,3 +32,5 @@ var _manifest_2 = require("./_manifest");
|
|
|
30
32
|
Object.defineProperty(exports, "manifestEvents", { enumerable: true, get: function () { return _manifest_2.manifestEvents; } });
|
|
31
33
|
var _user_2 = require("./_user");
|
|
32
34
|
Object.defineProperty(exports, "userEvents", { enumerable: true, get: function () { return _user_2.userEvents; } });
|
|
35
|
+
var _support_2 = require("./_support");
|
|
36
|
+
Object.defineProperty(exports, "supportEvents", { enumerable: true, get: function () { return _support_2.supportEvents; } });
|