@kl1/contracts 1.0.77 → 1.0.79
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/index.js +2391 -2040
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2390 -2040
- package/dist/index.mjs.map +1 -1
- package/dist/src/call-log/schema.d.ts +6 -6
- package/dist/src/call-log/validation.d.ts +4 -4
- package/dist/src/channel/index.d.ts +92 -88
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/schema.d.ts +4 -4
- package/dist/src/channel/schema.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +3 -3
- package/dist/src/chat/index.d.ts +7108 -3826
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +3391 -1087
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +1945 -304
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/comment/index.d.ts +584 -584
- package/dist/src/comment/schema.d.ts +144 -144
- package/dist/src/contact/index.d.ts +4 -1
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/schema.d.ts +156 -0
- package/dist/src/contact/schema.d.ts.map +1 -1
- package/dist/src/contract.d.ts +25050 -10486
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +948 -205
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +920 -263
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/dashboard/index.d.ts +4 -4
- package/dist/src/dashboard/schema.d.ts +2 -2
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +2162 -343
- package/dist/src/instagram/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +1912 -271
- package/dist/src/line/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +130 -130
- package/dist/src/mail/message-contract.d.ts +6 -6
- package/dist/src/mail/room-contract.d.ts +124 -124
- package/dist/src/mail/schemas/message.schema.d.ts +4 -4
- package/dist/src/mail/schemas/room-validation.schema.d.ts +40 -40
- package/dist/src/mail/schemas/room.schema.d.ts +30 -30
- package/dist/src/messenger/index.d.ts +2520 -520
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/messenger/validation.d.ts +1523 -0
- package/dist/src/messenger/validation.d.ts.map +1 -1
- package/dist/src/notification/index.d.ts +742 -0
- package/dist/src/notification/index.d.ts.map +1 -0
- package/dist/src/notification/schema.d.ts +48 -0
- package/dist/src/notification/schema.d.ts.map +1 -0
- package/dist/src/notification/validation.d.ts +148 -0
- package/dist/src/notification/validation.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +2376 -404
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +839 -63
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +4 -4
- package/dist/src/ticket/index.d.ts +1106 -1106
- package/dist/src/ticket/schema.d.ts +72 -72
- package/dist/src/ticket/validation.d.ts +12 -12
- package/dist/src/viber/index.d.ts +3614 -1248
- package/dist/src/viber/index.d.ts.map +1 -1
- package/dist/src/wrap-up-form/index.d.ts +19 -19
- package/dist/src/wrap-up-form/schema.d.ts +2 -2
- package/dist/src/wrap-up-form/validation.d.ts +3 -3
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -0,0 +1,742 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
import { GetNotificationsRequestSchema, ResetNotificationRequestSchema } from './validation';
|
3
|
+
export type GetNotificationsRequest = z.infer<typeof GetNotificationsRequestSchema>;
|
4
|
+
export type ResetNotificationsRequest = z.infer<typeof ResetNotificationRequestSchema>;
|
5
|
+
export declare const userNotificationContract: {
|
6
|
+
getNotifications: {
|
7
|
+
summary: "Get user's notification";
|
8
|
+
method: "GET";
|
9
|
+
query: z.ZodObject<{
|
10
|
+
page: z.ZodDefault<z.ZodNumber>;
|
11
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
page: number;
|
14
|
+
pageSize: number;
|
15
|
+
}, {
|
16
|
+
page?: number | undefined;
|
17
|
+
pageSize?: number | undefined;
|
18
|
+
}>;
|
19
|
+
responses: {
|
20
|
+
201: z.ZodObject<{
|
21
|
+
requestId: z.ZodString;
|
22
|
+
GetNotificationsResponseSchema: z.ZodObject<{
|
23
|
+
notificationCount: z.ZodNumber;
|
24
|
+
notifications: z.ZodObject<{
|
25
|
+
data: z.ZodArray<z.ZodObject<{
|
26
|
+
notificationObjectId: z.ZodString;
|
27
|
+
notifierId: z.ZodString;
|
28
|
+
notificationObject: z.ZodObject<{
|
29
|
+
data: z.ZodString;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
data: string;
|
32
|
+
}, {
|
33
|
+
data: string;
|
34
|
+
}>;
|
35
|
+
readAt: z.ZodDate;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
readAt: Date;
|
38
|
+
notificationObjectId: string;
|
39
|
+
notifierId: string;
|
40
|
+
notificationObject: {
|
41
|
+
data: string;
|
42
|
+
};
|
43
|
+
}, {
|
44
|
+
readAt: Date;
|
45
|
+
notificationObjectId: string;
|
46
|
+
notifierId: string;
|
47
|
+
notificationObject: {
|
48
|
+
data: string;
|
49
|
+
};
|
50
|
+
}>, "many">;
|
51
|
+
total: z.ZodNumber;
|
52
|
+
page: z.ZodNumber;
|
53
|
+
pageSize: z.ZodNumber;
|
54
|
+
lastPage: z.ZodNumber;
|
55
|
+
totalUnreadCount: z.ZodOptional<z.ZodNumber>;
|
56
|
+
unreadRoomCount: z.ZodOptional<z.ZodNumber>;
|
57
|
+
unreadCountsByAssigneeList: z.ZodArray<z.ZodObject<{
|
58
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
59
|
+
totalUnreadCount: z.ZodOptional<z.ZodString>;
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
61
|
+
assigneeId?: string | undefined;
|
62
|
+
totalUnreadCount?: string | undefined;
|
63
|
+
}, {
|
64
|
+
assigneeId?: string | undefined;
|
65
|
+
totalUnreadCount?: string | undefined;
|
66
|
+
}>, "many">;
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
68
|
+
data: {
|
69
|
+
readAt: Date;
|
70
|
+
notificationObjectId: string;
|
71
|
+
notifierId: string;
|
72
|
+
notificationObject: {
|
73
|
+
data: string;
|
74
|
+
};
|
75
|
+
}[];
|
76
|
+
total: number;
|
77
|
+
page: number;
|
78
|
+
pageSize: number;
|
79
|
+
lastPage: number;
|
80
|
+
unreadCountsByAssigneeList: {
|
81
|
+
assigneeId?: string | undefined;
|
82
|
+
totalUnreadCount?: string | undefined;
|
83
|
+
}[];
|
84
|
+
totalUnreadCount?: number | undefined;
|
85
|
+
unreadRoomCount?: number | undefined;
|
86
|
+
}, {
|
87
|
+
data: {
|
88
|
+
readAt: Date;
|
89
|
+
notificationObjectId: string;
|
90
|
+
notifierId: string;
|
91
|
+
notificationObject: {
|
92
|
+
data: string;
|
93
|
+
};
|
94
|
+
}[];
|
95
|
+
total: number;
|
96
|
+
page: number;
|
97
|
+
pageSize: number;
|
98
|
+
lastPage: number;
|
99
|
+
unreadCountsByAssigneeList: {
|
100
|
+
assigneeId?: string | undefined;
|
101
|
+
totalUnreadCount?: string | undefined;
|
102
|
+
}[];
|
103
|
+
totalUnreadCount?: number | undefined;
|
104
|
+
unreadRoomCount?: number | undefined;
|
105
|
+
}>;
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
107
|
+
notifications: {
|
108
|
+
data: {
|
109
|
+
readAt: Date;
|
110
|
+
notificationObjectId: string;
|
111
|
+
notifierId: string;
|
112
|
+
notificationObject: {
|
113
|
+
data: string;
|
114
|
+
};
|
115
|
+
}[];
|
116
|
+
total: number;
|
117
|
+
page: number;
|
118
|
+
pageSize: number;
|
119
|
+
lastPage: number;
|
120
|
+
unreadCountsByAssigneeList: {
|
121
|
+
assigneeId?: string | undefined;
|
122
|
+
totalUnreadCount?: string | undefined;
|
123
|
+
}[];
|
124
|
+
totalUnreadCount?: number | undefined;
|
125
|
+
unreadRoomCount?: number | undefined;
|
126
|
+
};
|
127
|
+
notificationCount: number;
|
128
|
+
}, {
|
129
|
+
notifications: {
|
130
|
+
data: {
|
131
|
+
readAt: Date;
|
132
|
+
notificationObjectId: string;
|
133
|
+
notifierId: string;
|
134
|
+
notificationObject: {
|
135
|
+
data: string;
|
136
|
+
};
|
137
|
+
}[];
|
138
|
+
total: number;
|
139
|
+
page: number;
|
140
|
+
pageSize: number;
|
141
|
+
lastPage: number;
|
142
|
+
unreadCountsByAssigneeList: {
|
143
|
+
assigneeId?: string | undefined;
|
144
|
+
totalUnreadCount?: string | undefined;
|
145
|
+
}[];
|
146
|
+
totalUnreadCount?: number | undefined;
|
147
|
+
unreadRoomCount?: number | undefined;
|
148
|
+
};
|
149
|
+
notificationCount: number;
|
150
|
+
}>;
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
152
|
+
requestId: string;
|
153
|
+
GetNotificationsResponseSchema: {
|
154
|
+
notifications: {
|
155
|
+
data: {
|
156
|
+
readAt: Date;
|
157
|
+
notificationObjectId: string;
|
158
|
+
notifierId: string;
|
159
|
+
notificationObject: {
|
160
|
+
data: string;
|
161
|
+
};
|
162
|
+
}[];
|
163
|
+
total: number;
|
164
|
+
page: number;
|
165
|
+
pageSize: number;
|
166
|
+
lastPage: number;
|
167
|
+
unreadCountsByAssigneeList: {
|
168
|
+
assigneeId?: string | undefined;
|
169
|
+
totalUnreadCount?: string | undefined;
|
170
|
+
}[];
|
171
|
+
totalUnreadCount?: number | undefined;
|
172
|
+
unreadRoomCount?: number | undefined;
|
173
|
+
};
|
174
|
+
notificationCount: number;
|
175
|
+
};
|
176
|
+
}, {
|
177
|
+
requestId: string;
|
178
|
+
GetNotificationsResponseSchema: {
|
179
|
+
notifications: {
|
180
|
+
data: {
|
181
|
+
readAt: Date;
|
182
|
+
notificationObjectId: string;
|
183
|
+
notifierId: string;
|
184
|
+
notificationObject: {
|
185
|
+
data: string;
|
186
|
+
};
|
187
|
+
}[];
|
188
|
+
total: number;
|
189
|
+
page: number;
|
190
|
+
pageSize: number;
|
191
|
+
lastPage: number;
|
192
|
+
unreadCountsByAssigneeList: {
|
193
|
+
assigneeId?: string | undefined;
|
194
|
+
totalUnreadCount?: string | undefined;
|
195
|
+
}[];
|
196
|
+
totalUnreadCount?: number | undefined;
|
197
|
+
unreadRoomCount?: number | undefined;
|
198
|
+
};
|
199
|
+
notificationCount: number;
|
200
|
+
};
|
201
|
+
}>;
|
202
|
+
400: z.ZodObject<{
|
203
|
+
message: z.ZodString;
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
205
|
+
message: string;
|
206
|
+
}, {
|
207
|
+
message: string;
|
208
|
+
}>;
|
209
|
+
409: z.ZodObject<{
|
210
|
+
message: z.ZodString;
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
212
|
+
message: string;
|
213
|
+
}, {
|
214
|
+
message: string;
|
215
|
+
}>;
|
216
|
+
500: z.ZodObject<{
|
217
|
+
message: z.ZodString;
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
219
|
+
message: string;
|
220
|
+
}, {
|
221
|
+
message: string;
|
222
|
+
}>;
|
223
|
+
401: z.ZodObject<{
|
224
|
+
message: z.ZodString;
|
225
|
+
error: z.ZodAny;
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
227
|
+
message: string;
|
228
|
+
error?: any;
|
229
|
+
}, {
|
230
|
+
message: string;
|
231
|
+
error?: any;
|
232
|
+
}>;
|
233
|
+
404: z.ZodObject<{
|
234
|
+
message: z.ZodString;
|
235
|
+
error: z.ZodAny;
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
237
|
+
message: string;
|
238
|
+
error?: any;
|
239
|
+
}, {
|
240
|
+
message: string;
|
241
|
+
error?: any;
|
242
|
+
}>;
|
243
|
+
422: z.ZodObject<{
|
244
|
+
message: z.ZodString;
|
245
|
+
error: z.ZodAny;
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
247
|
+
message: string;
|
248
|
+
error?: any;
|
249
|
+
}, {
|
250
|
+
message: string;
|
251
|
+
error?: any;
|
252
|
+
}>;
|
253
|
+
};
|
254
|
+
path: "notification";
|
255
|
+
};
|
256
|
+
resetNotifications: {
|
257
|
+
body: z.ZodObject<{
|
258
|
+
userId: z.ZodString;
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
260
|
+
userId: string;
|
261
|
+
}, {
|
262
|
+
userId: string;
|
263
|
+
}>;
|
264
|
+
summary: "Reset notification count to zero";
|
265
|
+
method: "POST";
|
266
|
+
responses: {
|
267
|
+
201: z.ZodObject<{
|
268
|
+
requestId: z.ZodString;
|
269
|
+
data: z.ZodObject<{
|
270
|
+
id: z.ZodString;
|
271
|
+
createdAt: z.ZodDate;
|
272
|
+
updatedAt: z.ZodDate;
|
273
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
274
|
+
name: z.ZodString;
|
275
|
+
email: z.ZodString;
|
276
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
277
|
+
password: z.ZodString;
|
278
|
+
address: z.ZodNullable<z.ZodString>;
|
279
|
+
phone: z.ZodNullable<z.ZodString>;
|
280
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
281
|
+
roles: z.ZodArray<z.ZodObject<{
|
282
|
+
id: z.ZodString;
|
283
|
+
createdAt: z.ZodDate;
|
284
|
+
updatedAt: z.ZodDate;
|
285
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
286
|
+
systemName: z.ZodString;
|
287
|
+
displayName: z.ZodString;
|
288
|
+
description: z.ZodNullable<z.ZodString>;
|
289
|
+
permissions: z.ZodArray<z.ZodObject<{
|
290
|
+
id: z.ZodString;
|
291
|
+
createdAt: z.ZodDate;
|
292
|
+
updatedAt: z.ZodDate;
|
293
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
294
|
+
systemName: z.ZodString;
|
295
|
+
displayName: z.ZodString;
|
296
|
+
description: z.ZodNullable<z.ZodString>;
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
298
|
+
id: string;
|
299
|
+
description: string | null;
|
300
|
+
createdAt: Date;
|
301
|
+
updatedAt: Date;
|
302
|
+
deletedAt: Date | null;
|
303
|
+
systemName: string;
|
304
|
+
displayName: string;
|
305
|
+
}, {
|
306
|
+
id: string;
|
307
|
+
description: string | null;
|
308
|
+
createdAt: Date;
|
309
|
+
updatedAt: Date;
|
310
|
+
deletedAt: Date | null;
|
311
|
+
systemName: string;
|
312
|
+
displayName: string;
|
313
|
+
}>, "many">;
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
315
|
+
id: string;
|
316
|
+
description: string | null;
|
317
|
+
createdAt: Date;
|
318
|
+
updatedAt: Date;
|
319
|
+
deletedAt: Date | null;
|
320
|
+
systemName: string;
|
321
|
+
displayName: string;
|
322
|
+
permissions: {
|
323
|
+
id: string;
|
324
|
+
description: string | null;
|
325
|
+
createdAt: Date;
|
326
|
+
updatedAt: Date;
|
327
|
+
deletedAt: Date | null;
|
328
|
+
systemName: string;
|
329
|
+
displayName: string;
|
330
|
+
}[];
|
331
|
+
}, {
|
332
|
+
id: string;
|
333
|
+
description: string | null;
|
334
|
+
createdAt: Date;
|
335
|
+
updatedAt: Date;
|
336
|
+
deletedAt: Date | null;
|
337
|
+
systemName: string;
|
338
|
+
displayName: string;
|
339
|
+
permissions: {
|
340
|
+
id: string;
|
341
|
+
description: string | null;
|
342
|
+
createdAt: Date;
|
343
|
+
updatedAt: Date;
|
344
|
+
deletedAt: Date | null;
|
345
|
+
systemName: string;
|
346
|
+
displayName: string;
|
347
|
+
}[];
|
348
|
+
}>, "many">;
|
349
|
+
extension: z.ZodObject<{
|
350
|
+
id: z.ZodString;
|
351
|
+
createdAt: z.ZodDate;
|
352
|
+
updatedAt: z.ZodDate;
|
353
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
354
|
+
userId: z.ZodNullable<z.ZodString>;
|
355
|
+
sipServerUrl: z.ZodString;
|
356
|
+
sipUserName: z.ZodString;
|
357
|
+
webphoneLoginUser: z.ZodString;
|
358
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
359
|
+
extensionName: z.ZodString;
|
360
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
362
|
+
id: string;
|
363
|
+
createdAt: Date;
|
364
|
+
updatedAt: Date;
|
365
|
+
deletedAt: Date | null;
|
366
|
+
userId: string | null;
|
367
|
+
sipServerUrl: string;
|
368
|
+
sipUserName: string;
|
369
|
+
webphoneLoginUser: string;
|
370
|
+
extensionId: string | null;
|
371
|
+
extensionName: string;
|
372
|
+
telephonySignature: string | null;
|
373
|
+
}, {
|
374
|
+
id: string;
|
375
|
+
createdAt: Date;
|
376
|
+
updatedAt: Date;
|
377
|
+
deletedAt: Date | null;
|
378
|
+
userId: string | null;
|
379
|
+
sipServerUrl: string;
|
380
|
+
sipUserName: string;
|
381
|
+
webphoneLoginUser: string;
|
382
|
+
extensionId: string | null;
|
383
|
+
extensionName: string;
|
384
|
+
telephonySignature: string | null;
|
385
|
+
}>;
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
387
|
+
id: string;
|
388
|
+
address: string | null;
|
389
|
+
name: string;
|
390
|
+
email: string;
|
391
|
+
createdAt: Date;
|
392
|
+
updatedAt: Date;
|
393
|
+
deletedAt: Date | null;
|
394
|
+
emailVerifiedAt: Date | null;
|
395
|
+
password: string;
|
396
|
+
phone: string | null;
|
397
|
+
notificationCount: number | null;
|
398
|
+
roles: {
|
399
|
+
id: string;
|
400
|
+
description: string | null;
|
401
|
+
createdAt: Date;
|
402
|
+
updatedAt: Date;
|
403
|
+
deletedAt: Date | null;
|
404
|
+
systemName: string;
|
405
|
+
displayName: string;
|
406
|
+
permissions: {
|
407
|
+
id: string;
|
408
|
+
description: string | null;
|
409
|
+
createdAt: Date;
|
410
|
+
updatedAt: Date;
|
411
|
+
deletedAt: Date | null;
|
412
|
+
systemName: string;
|
413
|
+
displayName: string;
|
414
|
+
}[];
|
415
|
+
}[];
|
416
|
+
extension: {
|
417
|
+
id: string;
|
418
|
+
createdAt: Date;
|
419
|
+
updatedAt: Date;
|
420
|
+
deletedAt: Date | null;
|
421
|
+
userId: string | null;
|
422
|
+
sipServerUrl: string;
|
423
|
+
sipUserName: string;
|
424
|
+
webphoneLoginUser: string;
|
425
|
+
extensionId: string | null;
|
426
|
+
extensionName: string;
|
427
|
+
telephonySignature: string | null;
|
428
|
+
};
|
429
|
+
}, {
|
430
|
+
id: string;
|
431
|
+
address: string | null;
|
432
|
+
name: string;
|
433
|
+
email: string;
|
434
|
+
createdAt: Date;
|
435
|
+
updatedAt: Date;
|
436
|
+
deletedAt: Date | null;
|
437
|
+
emailVerifiedAt: Date | null;
|
438
|
+
password: string;
|
439
|
+
phone: string | null;
|
440
|
+
notificationCount: number | null;
|
441
|
+
roles: {
|
442
|
+
id: string;
|
443
|
+
description: string | null;
|
444
|
+
createdAt: Date;
|
445
|
+
updatedAt: Date;
|
446
|
+
deletedAt: Date | null;
|
447
|
+
systemName: string;
|
448
|
+
displayName: string;
|
449
|
+
permissions: {
|
450
|
+
id: string;
|
451
|
+
description: string | null;
|
452
|
+
createdAt: Date;
|
453
|
+
updatedAt: Date;
|
454
|
+
deletedAt: Date | null;
|
455
|
+
systemName: string;
|
456
|
+
displayName: string;
|
457
|
+
}[];
|
458
|
+
}[];
|
459
|
+
extension: {
|
460
|
+
id: string;
|
461
|
+
createdAt: Date;
|
462
|
+
updatedAt: Date;
|
463
|
+
deletedAt: Date | null;
|
464
|
+
userId: string | null;
|
465
|
+
sipServerUrl: string;
|
466
|
+
sipUserName: string;
|
467
|
+
webphoneLoginUser: string;
|
468
|
+
extensionId: string | null;
|
469
|
+
extensionName: string;
|
470
|
+
telephonySignature: string | null;
|
471
|
+
};
|
472
|
+
}>;
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
474
|
+
data: {
|
475
|
+
id: string;
|
476
|
+
address: string | null;
|
477
|
+
name: string;
|
478
|
+
email: string;
|
479
|
+
createdAt: Date;
|
480
|
+
updatedAt: Date;
|
481
|
+
deletedAt: Date | null;
|
482
|
+
emailVerifiedAt: Date | null;
|
483
|
+
password: string;
|
484
|
+
phone: string | null;
|
485
|
+
notificationCount: number | null;
|
486
|
+
roles: {
|
487
|
+
id: string;
|
488
|
+
description: string | null;
|
489
|
+
createdAt: Date;
|
490
|
+
updatedAt: Date;
|
491
|
+
deletedAt: Date | null;
|
492
|
+
systemName: string;
|
493
|
+
displayName: string;
|
494
|
+
permissions: {
|
495
|
+
id: string;
|
496
|
+
description: string | null;
|
497
|
+
createdAt: Date;
|
498
|
+
updatedAt: Date;
|
499
|
+
deletedAt: Date | null;
|
500
|
+
systemName: string;
|
501
|
+
displayName: string;
|
502
|
+
}[];
|
503
|
+
}[];
|
504
|
+
extension: {
|
505
|
+
id: string;
|
506
|
+
createdAt: Date;
|
507
|
+
updatedAt: Date;
|
508
|
+
deletedAt: Date | null;
|
509
|
+
userId: string | null;
|
510
|
+
sipServerUrl: string;
|
511
|
+
sipUserName: string;
|
512
|
+
webphoneLoginUser: string;
|
513
|
+
extensionId: string | null;
|
514
|
+
extensionName: string;
|
515
|
+
telephonySignature: string | null;
|
516
|
+
};
|
517
|
+
};
|
518
|
+
requestId: string;
|
519
|
+
}, {
|
520
|
+
data: {
|
521
|
+
id: string;
|
522
|
+
address: string | null;
|
523
|
+
name: string;
|
524
|
+
email: string;
|
525
|
+
createdAt: Date;
|
526
|
+
updatedAt: Date;
|
527
|
+
deletedAt: Date | null;
|
528
|
+
emailVerifiedAt: Date | null;
|
529
|
+
password: string;
|
530
|
+
phone: string | null;
|
531
|
+
notificationCount: number | null;
|
532
|
+
roles: {
|
533
|
+
id: string;
|
534
|
+
description: string | null;
|
535
|
+
createdAt: Date;
|
536
|
+
updatedAt: Date;
|
537
|
+
deletedAt: Date | null;
|
538
|
+
systemName: string;
|
539
|
+
displayName: string;
|
540
|
+
permissions: {
|
541
|
+
id: string;
|
542
|
+
description: string | null;
|
543
|
+
createdAt: Date;
|
544
|
+
updatedAt: Date;
|
545
|
+
deletedAt: Date | null;
|
546
|
+
systemName: string;
|
547
|
+
displayName: string;
|
548
|
+
}[];
|
549
|
+
}[];
|
550
|
+
extension: {
|
551
|
+
id: string;
|
552
|
+
createdAt: Date;
|
553
|
+
updatedAt: Date;
|
554
|
+
deletedAt: Date | null;
|
555
|
+
userId: string | null;
|
556
|
+
sipServerUrl: string;
|
557
|
+
sipUserName: string;
|
558
|
+
webphoneLoginUser: string;
|
559
|
+
extensionId: string | null;
|
560
|
+
extensionName: string;
|
561
|
+
telephonySignature: string | null;
|
562
|
+
};
|
563
|
+
};
|
564
|
+
requestId: string;
|
565
|
+
}>;
|
566
|
+
400: z.ZodObject<{
|
567
|
+
message: z.ZodString;
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
569
|
+
message: string;
|
570
|
+
}, {
|
571
|
+
message: string;
|
572
|
+
}>;
|
573
|
+
409: z.ZodObject<{
|
574
|
+
message: z.ZodString;
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
576
|
+
message: string;
|
577
|
+
}, {
|
578
|
+
message: string;
|
579
|
+
}>;
|
580
|
+
500: z.ZodObject<{
|
581
|
+
message: z.ZodString;
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
583
|
+
message: string;
|
584
|
+
}, {
|
585
|
+
message: string;
|
586
|
+
}>;
|
587
|
+
401: z.ZodObject<{
|
588
|
+
message: z.ZodString;
|
589
|
+
error: z.ZodAny;
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
591
|
+
message: string;
|
592
|
+
error?: any;
|
593
|
+
}, {
|
594
|
+
message: string;
|
595
|
+
error?: any;
|
596
|
+
}>;
|
597
|
+
404: z.ZodObject<{
|
598
|
+
message: z.ZodString;
|
599
|
+
error: z.ZodAny;
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
601
|
+
message: string;
|
602
|
+
error?: any;
|
603
|
+
}, {
|
604
|
+
message: string;
|
605
|
+
error?: any;
|
606
|
+
}>;
|
607
|
+
422: z.ZodObject<{
|
608
|
+
message: z.ZodString;
|
609
|
+
error: z.ZodAny;
|
610
|
+
}, "strip", z.ZodTypeAny, {
|
611
|
+
message: string;
|
612
|
+
error?: any;
|
613
|
+
}, {
|
614
|
+
message: string;
|
615
|
+
error?: any;
|
616
|
+
}>;
|
617
|
+
};
|
618
|
+
path: "notification/reset";
|
619
|
+
};
|
620
|
+
readNotification: {
|
621
|
+
body: z.ZodObject<{
|
622
|
+
userId: z.ZodString;
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
624
|
+
userId: string;
|
625
|
+
}, {
|
626
|
+
userId: string;
|
627
|
+
}>;
|
628
|
+
summary: "Mark a notification as read";
|
629
|
+
method: "POST";
|
630
|
+
pathParams: z.ZodObject<{
|
631
|
+
id: z.ZodString;
|
632
|
+
}, "strip", z.ZodTypeAny, {
|
633
|
+
id: string;
|
634
|
+
}, {
|
635
|
+
id: string;
|
636
|
+
}>;
|
637
|
+
responses: {
|
638
|
+
201: z.ZodObject<{
|
639
|
+
requestId: z.ZodString;
|
640
|
+
data: z.ZodObject<{
|
641
|
+
notificationObjectId: z.ZodString;
|
642
|
+
notifierId: z.ZodString;
|
643
|
+
notificationObject: z.ZodObject<{
|
644
|
+
data: z.ZodString;
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
646
|
+
data: string;
|
647
|
+
}, {
|
648
|
+
data: string;
|
649
|
+
}>;
|
650
|
+
readAt: z.ZodDate;
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
652
|
+
readAt: Date;
|
653
|
+
notificationObjectId: string;
|
654
|
+
notifierId: string;
|
655
|
+
notificationObject: {
|
656
|
+
data: string;
|
657
|
+
};
|
658
|
+
}, {
|
659
|
+
readAt: Date;
|
660
|
+
notificationObjectId: string;
|
661
|
+
notifierId: string;
|
662
|
+
notificationObject: {
|
663
|
+
data: string;
|
664
|
+
};
|
665
|
+
}>;
|
666
|
+
}, "strip", z.ZodTypeAny, {
|
667
|
+
data: {
|
668
|
+
readAt: Date;
|
669
|
+
notificationObjectId: string;
|
670
|
+
notifierId: string;
|
671
|
+
notificationObject: {
|
672
|
+
data: string;
|
673
|
+
};
|
674
|
+
};
|
675
|
+
requestId: string;
|
676
|
+
}, {
|
677
|
+
data: {
|
678
|
+
readAt: Date;
|
679
|
+
notificationObjectId: string;
|
680
|
+
notifierId: string;
|
681
|
+
notificationObject: {
|
682
|
+
data: string;
|
683
|
+
};
|
684
|
+
};
|
685
|
+
requestId: string;
|
686
|
+
}>;
|
687
|
+
400: z.ZodObject<{
|
688
|
+
message: z.ZodString;
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
690
|
+
message: string;
|
691
|
+
}, {
|
692
|
+
message: string;
|
693
|
+
}>;
|
694
|
+
409: z.ZodObject<{
|
695
|
+
message: z.ZodString;
|
696
|
+
}, "strip", z.ZodTypeAny, {
|
697
|
+
message: string;
|
698
|
+
}, {
|
699
|
+
message: string;
|
700
|
+
}>;
|
701
|
+
500: z.ZodObject<{
|
702
|
+
message: z.ZodString;
|
703
|
+
}, "strip", z.ZodTypeAny, {
|
704
|
+
message: string;
|
705
|
+
}, {
|
706
|
+
message: string;
|
707
|
+
}>;
|
708
|
+
401: z.ZodObject<{
|
709
|
+
message: z.ZodString;
|
710
|
+
error: z.ZodAny;
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
712
|
+
message: string;
|
713
|
+
error?: any;
|
714
|
+
}, {
|
715
|
+
message: string;
|
716
|
+
error?: any;
|
717
|
+
}>;
|
718
|
+
404: z.ZodObject<{
|
719
|
+
message: z.ZodString;
|
720
|
+
error: z.ZodAny;
|
721
|
+
}, "strip", z.ZodTypeAny, {
|
722
|
+
message: string;
|
723
|
+
error?: any;
|
724
|
+
}, {
|
725
|
+
message: string;
|
726
|
+
error?: any;
|
727
|
+
}>;
|
728
|
+
422: z.ZodObject<{
|
729
|
+
message: z.ZodString;
|
730
|
+
error: z.ZodAny;
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
732
|
+
message: string;
|
733
|
+
error?: any;
|
734
|
+
}, {
|
735
|
+
message: string;
|
736
|
+
error?: any;
|
737
|
+
}>;
|
738
|
+
};
|
739
|
+
path: "notification/read/:id";
|
740
|
+
};
|
741
|
+
};
|
742
|
+
//# sourceMappingURL=index.d.ts.map
|