@kl1/contracts 1.0.7 → 1.0.8
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 +279 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +279 -66
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +13804 -1345
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +11 -11
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +425 -83
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +19265 -20283
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +4 -4
- package/dist/src/cx-log/schema.d.ts +2 -2
- package/dist/src/extension/index.d.ts +1 -1
- package/dist/src/line/index.d.ts +2 -2
- package/dist/src/line/validation.d.ts +2 -2
- package/dist/src/mail/index.d.ts +13 -0
- package/dist/src/mail/index.d.ts.map +1 -0
- package/dist/src/mail/mail-contract.d.ts +114 -114
- package/dist/src/mail/message-contract.d.ts +6 -6
- package/dist/src/mail/room-contract.d.ts +108 -108
- package/dist/src/mail/schemas/message.schema.d.ts +4 -4
- package/dist/src/mail/schemas/room-validation.schema.d.ts +3426 -0
- package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -0
- package/dist/src/mail/schemas/room.schema.d.ts +26 -26
- package/dist/src/telephony-extension/index.d.ts +193 -3
- package/dist/src/telephony-extension/index.d.ts.map +1 -1
- package/dist/src/telephony-extension/schema.d.ts +193 -3
- package/dist/src/telephony-extension/schema.d.ts.map +1 -1
- package/package.json +47 -46
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const ConnectChannelSchema: z.
|
|
3
|
-
name: z.
|
|
4
|
-
type: z.
|
|
5
|
-
metadata: z.
|
|
2
|
+
export declare const ConnectChannelSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
type: z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>;
|
|
5
|
+
metadata: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
accessToken: z.ZodString;
|
|
@@ -17,11 +17,11 @@ export declare const ConnectChannelSchema: z.ZodOptional<z.ZodObject<{
|
|
|
17
17
|
name: string;
|
|
18
18
|
accessToken: string;
|
|
19
19
|
additionalCredentials?: any;
|
|
20
|
-
}
|
|
21
|
-
brandName: z.
|
|
22
|
-
connectedUserName: z.
|
|
23
|
-
connectedUserId: z.
|
|
24
|
-
actor: z.
|
|
20
|
+
}>;
|
|
21
|
+
brandName: z.ZodString;
|
|
22
|
+
connectedUserName: z.ZodString;
|
|
23
|
+
connectedUserId: z.ZodString;
|
|
24
|
+
actor: z.ZodObject<{
|
|
25
25
|
id: z.ZodString;
|
|
26
26
|
createdAt: z.ZodDate;
|
|
27
27
|
updatedAt: z.ZodDate;
|
|
@@ -155,20 +155,20 @@ export declare const ConnectChannelSchema: z.ZodOptional<z.ZodObject<{
|
|
|
155
155
|
displayName: string;
|
|
156
156
|
}[];
|
|
157
157
|
}[];
|
|
158
|
-
}
|
|
158
|
+
}>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
metadata
|
|
160
|
+
type: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
|
|
161
|
+
name: string;
|
|
162
|
+
metadata: {
|
|
163
163
|
id: string;
|
|
164
164
|
name: string;
|
|
165
165
|
accessToken: string;
|
|
166
166
|
additionalCredentials?: any;
|
|
167
|
-
}
|
|
168
|
-
brandName
|
|
169
|
-
connectedUserName
|
|
170
|
-
connectedUserId
|
|
171
|
-
actor
|
|
167
|
+
};
|
|
168
|
+
brandName: string;
|
|
169
|
+
connectedUserName: string;
|
|
170
|
+
connectedUserId: string;
|
|
171
|
+
actor: {
|
|
172
172
|
id: string;
|
|
173
173
|
address: string | null;
|
|
174
174
|
name: string;
|
|
@@ -196,20 +196,20 @@ export declare const ConnectChannelSchema: z.ZodOptional<z.ZodObject<{
|
|
|
196
196
|
displayName: string;
|
|
197
197
|
}[];
|
|
198
198
|
}[];
|
|
199
|
-
}
|
|
199
|
+
};
|
|
200
200
|
}, {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
metadata
|
|
201
|
+
type: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
|
|
202
|
+
name: string;
|
|
203
|
+
metadata: {
|
|
204
204
|
id: string;
|
|
205
205
|
name: string;
|
|
206
206
|
accessToken: string;
|
|
207
207
|
additionalCredentials?: any;
|
|
208
|
-
}
|
|
209
|
-
brandName
|
|
210
|
-
connectedUserName
|
|
211
|
-
connectedUserId
|
|
212
|
-
actor
|
|
208
|
+
};
|
|
209
|
+
brandName: string;
|
|
210
|
+
connectedUserName: string;
|
|
211
|
+
connectedUserId: string;
|
|
212
|
+
actor: {
|
|
213
213
|
id: string;
|
|
214
214
|
address: string | null;
|
|
215
215
|
name: string;
|
|
@@ -237,22 +237,23 @@ export declare const ConnectChannelSchema: z.ZodOptional<z.ZodObject<{
|
|
|
237
237
|
displayName: string;
|
|
238
238
|
}[];
|
|
239
239
|
}[];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
export declare const GetRoomsSchema: z.
|
|
243
|
-
page: z.
|
|
244
|
-
pageSize: z.
|
|
245
|
-
contactTagIds: z.ZodOptional<z.
|
|
246
|
-
contactIds: z.ZodOptional<z.
|
|
247
|
-
agentIds: z.ZodOptional<z.
|
|
248
|
-
|
|
249
|
-
keyword: z.ZodOptional<z.
|
|
250
|
-
company: z.ZodOptional<z.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
};
|
|
241
|
+
}>;
|
|
242
|
+
export declare const GetRoomsSchema: z.ZodObject<{
|
|
243
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
244
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
245
|
+
contactTagIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
246
|
+
contactIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
|
+
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
+
roomTagIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
249
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
250
|
+
company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
+
channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
252
|
+
name: z.ZodOptional<z.ZodString>;
|
|
253
|
+
address: z.ZodOptional<z.ZodString>;
|
|
254
|
+
contactGroups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
255
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
|
256
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
257
|
id: z.ZodString;
|
|
257
258
|
createdAt: z.ZodDate;
|
|
258
259
|
updatedAt: z.ZodDate;
|
|
@@ -285,25 +286,26 @@ export declare const GetRoomsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
285
286
|
numberValue: number | null;
|
|
286
287
|
dateValue: Date | null;
|
|
287
288
|
entityId: string;
|
|
288
|
-
}>>;
|
|
289
|
-
tags: z.ZodOptional<z.
|
|
290
|
-
phone: z.ZodOptional<z.
|
|
291
|
-
email: z.ZodOptional<z.
|
|
292
|
-
notes: z.ZodOptional<z.
|
|
293
|
-
tab: z.ZodOptional<z.
|
|
289
|
+
}>, "many">>;
|
|
290
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
291
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
292
|
+
email: z.ZodOptional<z.ZodString>;
|
|
293
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
294
|
+
tab: z.ZodOptional<z.ZodString>;
|
|
294
295
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
page
|
|
296
|
-
pageSize
|
|
297
|
-
contactTagIds?: string[] |
|
|
298
|
-
contactIds?: string[] |
|
|
299
|
-
agentIds?: string[] |
|
|
300
|
-
|
|
301
|
-
keyword?: string |
|
|
302
|
-
company?: string[] |
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
296
|
+
page: number;
|
|
297
|
+
pageSize: number;
|
|
298
|
+
contactTagIds?: string[] | undefined;
|
|
299
|
+
contactIds?: string[] | undefined;
|
|
300
|
+
agentIds?: string[] | undefined;
|
|
301
|
+
roomTagIds?: string[] | undefined;
|
|
302
|
+
keyword?: string | undefined;
|
|
303
|
+
company?: string[] | undefined;
|
|
304
|
+
channel?: string[] | undefined;
|
|
305
|
+
name?: string | undefined;
|
|
306
|
+
address?: string | undefined;
|
|
307
|
+
contactGroups?: string[] | undefined;
|
|
308
|
+
selectedDate?: string | undefined;
|
|
307
309
|
customFields?: {
|
|
308
310
|
id: string;
|
|
309
311
|
createdAt: Date;
|
|
@@ -315,25 +317,26 @@ export declare const GetRoomsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
315
317
|
numberValue: number | null;
|
|
316
318
|
dateValue: Date | null;
|
|
317
319
|
entityId: string;
|
|
318
|
-
} | undefined;
|
|
319
|
-
tags?: string[] |
|
|
320
|
-
phone?: string |
|
|
321
|
-
email?: string |
|
|
322
|
-
notes?: string |
|
|
323
|
-
tab?: string |
|
|
320
|
+
}[] | undefined;
|
|
321
|
+
tags?: string[] | undefined;
|
|
322
|
+
phone?: string | undefined;
|
|
323
|
+
email?: string | undefined;
|
|
324
|
+
notes?: string | undefined;
|
|
325
|
+
tab?: string | undefined;
|
|
324
326
|
}, {
|
|
325
327
|
page?: number | undefined;
|
|
326
328
|
pageSize?: number | undefined;
|
|
327
|
-
contactTagIds?: string[] |
|
|
328
|
-
contactIds?: string[] |
|
|
329
|
-
agentIds?: string[] |
|
|
330
|
-
|
|
331
|
-
keyword?: string |
|
|
332
|
-
company?: string[] |
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
329
|
+
contactTagIds?: string[] | undefined;
|
|
330
|
+
contactIds?: string[] | undefined;
|
|
331
|
+
agentIds?: string[] | undefined;
|
|
332
|
+
roomTagIds?: string[] | undefined;
|
|
333
|
+
keyword?: string | undefined;
|
|
334
|
+
company?: string[] | undefined;
|
|
335
|
+
channel?: string[] | undefined;
|
|
336
|
+
name?: string | undefined;
|
|
337
|
+
address?: string | undefined;
|
|
338
|
+
contactGroups?: string[] | undefined;
|
|
339
|
+
selectedDate?: string | undefined;
|
|
337
340
|
customFields?: {
|
|
338
341
|
id: string;
|
|
339
342
|
createdAt: Date;
|
|
@@ -345,11 +348,350 @@ export declare const GetRoomsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
345
348
|
numberValue: number | null;
|
|
346
349
|
dateValue: Date | null;
|
|
347
350
|
entityId: string;
|
|
351
|
+
}[] | undefined;
|
|
352
|
+
tags?: string[] | undefined;
|
|
353
|
+
phone?: string | undefined;
|
|
354
|
+
email?: string | undefined;
|
|
355
|
+
notes?: string | undefined;
|
|
356
|
+
tab?: string | undefined;
|
|
357
|
+
}>;
|
|
358
|
+
export declare const UpdateRoomTagsAndNotesSchema: z.ZodObject<{
|
|
359
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
360
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
notes?: string | undefined;
|
|
363
|
+
tags?: string[] | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
notes?: string | undefined;
|
|
366
|
+
tags?: string[] | undefined;
|
|
367
|
+
}>;
|
|
368
|
+
export declare const UpdateRoomAttributesSchema: z.ZodObject<{
|
|
369
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
370
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
371
|
+
roomId: z.ZodString;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
roomId: string;
|
|
374
|
+
notes?: string | undefined;
|
|
375
|
+
tags?: string[] | undefined;
|
|
376
|
+
}, {
|
|
377
|
+
roomId: string;
|
|
378
|
+
notes?: string | undefined;
|
|
379
|
+
tags?: string[] | undefined;
|
|
380
|
+
}>;
|
|
381
|
+
export declare const MessageAttachmentSchema: z.ZodObject<{
|
|
382
|
+
bucketName: z.ZodString;
|
|
383
|
+
fileKey: z.ZodString;
|
|
384
|
+
fileName: z.ZodString;
|
|
385
|
+
fileSize: z.ZodString;
|
|
386
|
+
url: z.ZodString;
|
|
387
|
+
fileType: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"video">, z.ZodLiteral<"audio">, z.ZodLiteral<"file">, z.ZodLiteral<"fallback">, z.ZodLiteral<"location">, z.ZodLiteral<"attachment">, z.ZodLiteral<"assign">, z.ZodLiteral<"solve">, z.ZodLiteral<"reopen">, z.ZodLiteral<"open">, z.ZodLiteral<"sticker">, z.ZodLiteral<"closed">, z.ZodLiteral<"handed_over">, z.ZodLiteral<"updated">, z.ZodLiteral<"started">]>;
|
|
388
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
url: string;
|
|
391
|
+
bucketName: string;
|
|
392
|
+
fileName: string;
|
|
393
|
+
fileSize: string;
|
|
394
|
+
fileKey: string;
|
|
395
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
396
|
+
thumbnailUrl?: string | undefined;
|
|
397
|
+
}, {
|
|
398
|
+
url: string;
|
|
399
|
+
bucketName: string;
|
|
400
|
+
fileName: string;
|
|
401
|
+
fileSize: string;
|
|
402
|
+
fileKey: string;
|
|
403
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
404
|
+
thumbnailUrl?: string | undefined;
|
|
405
|
+
}>;
|
|
406
|
+
export declare const SendMessageSchema: z.ZodObject<{
|
|
407
|
+
platform: z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>;
|
|
408
|
+
room: z.ZodString;
|
|
409
|
+
messageType: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"video">, z.ZodLiteral<"audio">, z.ZodLiteral<"file">, z.ZodLiteral<"fallback">, z.ZodLiteral<"location">, z.ZodLiteral<"attachment">, z.ZodLiteral<"assign">, z.ZodLiteral<"solve">, z.ZodLiteral<"reopen">, z.ZodLiteral<"open">, z.ZodLiteral<"sticker">, z.ZodLiteral<"closed">, z.ZodLiteral<"handed_over">, z.ZodLiteral<"updated">, z.ZodLiteral<"started">]>;
|
|
410
|
+
message: z.ZodOptional<z.ZodString>;
|
|
411
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
|
412
|
+
messageAttachments: z.ZodObject<{
|
|
413
|
+
bucketName: z.ZodString;
|
|
414
|
+
fileKey: z.ZodString;
|
|
415
|
+
fileName: z.ZodString;
|
|
416
|
+
fileSize: z.ZodString;
|
|
417
|
+
url: z.ZodString;
|
|
418
|
+
fileType: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"video">, z.ZodLiteral<"audio">, z.ZodLiteral<"file">, z.ZodLiteral<"fallback">, z.ZodLiteral<"location">, z.ZodLiteral<"attachment">, z.ZodLiteral<"assign">, z.ZodLiteral<"solve">, z.ZodLiteral<"reopen">, z.ZodLiteral<"open">, z.ZodLiteral<"sticker">, z.ZodLiteral<"closed">, z.ZodLiteral<"handed_over">, z.ZodLiteral<"updated">, z.ZodLiteral<"started">]>;
|
|
419
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
url: string;
|
|
422
|
+
bucketName: string;
|
|
423
|
+
fileName: string;
|
|
424
|
+
fileSize: string;
|
|
425
|
+
fileKey: string;
|
|
426
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
427
|
+
thumbnailUrl?: string | undefined;
|
|
428
|
+
}, {
|
|
429
|
+
url: string;
|
|
430
|
+
bucketName: string;
|
|
431
|
+
fileName: string;
|
|
432
|
+
fileSize: string;
|
|
433
|
+
fileKey: string;
|
|
434
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
435
|
+
thumbnailUrl?: string | undefined;
|
|
436
|
+
}>;
|
|
437
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
id: z.ZodString;
|
|
439
|
+
createdAt: z.ZodDate;
|
|
440
|
+
updatedAt: z.ZodDate;
|
|
441
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
442
|
+
name: z.ZodString;
|
|
443
|
+
email: z.ZodString;
|
|
444
|
+
address: z.ZodNullable<z.ZodString>;
|
|
445
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
446
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
|
447
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
createdAt: z.ZodDate;
|
|
450
|
+
updatedAt: z.ZodDate;
|
|
451
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
452
|
+
systemName: z.ZodString;
|
|
453
|
+
displayName: z.ZodString;
|
|
454
|
+
description: z.ZodNullable<z.ZodString>;
|
|
455
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
createdAt: z.ZodDate;
|
|
458
|
+
updatedAt: z.ZodDate;
|
|
459
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
460
|
+
systemName: z.ZodString;
|
|
461
|
+
displayName: z.ZodString;
|
|
462
|
+
description: z.ZodNullable<z.ZodString>;
|
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
|
464
|
+
id: string;
|
|
465
|
+
description: string | null;
|
|
466
|
+
createdAt: Date;
|
|
467
|
+
updatedAt: Date;
|
|
468
|
+
deletedAt: Date | null;
|
|
469
|
+
systemName: string;
|
|
470
|
+
displayName: string;
|
|
471
|
+
}, {
|
|
472
|
+
id: string;
|
|
473
|
+
description: string | null;
|
|
474
|
+
createdAt: Date;
|
|
475
|
+
updatedAt: Date;
|
|
476
|
+
deletedAt: Date | null;
|
|
477
|
+
systemName: string;
|
|
478
|
+
displayName: string;
|
|
479
|
+
}>, "many">;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
id: string;
|
|
482
|
+
description: string | null;
|
|
483
|
+
createdAt: Date;
|
|
484
|
+
updatedAt: Date;
|
|
485
|
+
deletedAt: Date | null;
|
|
486
|
+
systemName: string;
|
|
487
|
+
displayName: string;
|
|
488
|
+
permissions: {
|
|
489
|
+
id: string;
|
|
490
|
+
description: string | null;
|
|
491
|
+
createdAt: Date;
|
|
492
|
+
updatedAt: Date;
|
|
493
|
+
deletedAt: Date | null;
|
|
494
|
+
systemName: string;
|
|
495
|
+
displayName: string;
|
|
496
|
+
}[];
|
|
497
|
+
}, {
|
|
498
|
+
id: string;
|
|
499
|
+
description: string | null;
|
|
500
|
+
createdAt: Date;
|
|
501
|
+
updatedAt: Date;
|
|
502
|
+
deletedAt: Date | null;
|
|
503
|
+
systemName: string;
|
|
504
|
+
displayName: string;
|
|
505
|
+
permissions: {
|
|
506
|
+
id: string;
|
|
507
|
+
description: string | null;
|
|
508
|
+
createdAt: Date;
|
|
509
|
+
updatedAt: Date;
|
|
510
|
+
deletedAt: Date | null;
|
|
511
|
+
systemName: string;
|
|
512
|
+
displayName: string;
|
|
513
|
+
}[];
|
|
514
|
+
}>, "many">;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
id: string;
|
|
517
|
+
address: string | null;
|
|
518
|
+
name: string;
|
|
519
|
+
email: string;
|
|
520
|
+
createdAt: Date;
|
|
521
|
+
updatedAt: Date;
|
|
522
|
+
deletedAt: Date | null;
|
|
523
|
+
phone: string | null;
|
|
524
|
+
notificationCount: number | null;
|
|
525
|
+
roles: {
|
|
526
|
+
id: string;
|
|
527
|
+
description: string | null;
|
|
528
|
+
createdAt: Date;
|
|
529
|
+
updatedAt: Date;
|
|
530
|
+
deletedAt: Date | null;
|
|
531
|
+
systemName: string;
|
|
532
|
+
displayName: string;
|
|
533
|
+
permissions: {
|
|
534
|
+
id: string;
|
|
535
|
+
description: string | null;
|
|
536
|
+
createdAt: Date;
|
|
537
|
+
updatedAt: Date;
|
|
538
|
+
deletedAt: Date | null;
|
|
539
|
+
systemName: string;
|
|
540
|
+
displayName: string;
|
|
541
|
+
}[];
|
|
542
|
+
}[];
|
|
543
|
+
}, {
|
|
544
|
+
id: string;
|
|
545
|
+
address: string | null;
|
|
546
|
+
name: string;
|
|
547
|
+
email: string;
|
|
548
|
+
createdAt: Date;
|
|
549
|
+
updatedAt: Date;
|
|
550
|
+
deletedAt: Date | null;
|
|
551
|
+
phone: string | null;
|
|
552
|
+
notificationCount: number | null;
|
|
553
|
+
roles: {
|
|
554
|
+
id: string;
|
|
555
|
+
description: string | null;
|
|
556
|
+
createdAt: Date;
|
|
557
|
+
updatedAt: Date;
|
|
558
|
+
deletedAt: Date | null;
|
|
559
|
+
systemName: string;
|
|
560
|
+
displayName: string;
|
|
561
|
+
permissions: {
|
|
562
|
+
id: string;
|
|
563
|
+
description: string | null;
|
|
564
|
+
createdAt: Date;
|
|
565
|
+
updatedAt: Date;
|
|
566
|
+
deletedAt: Date | null;
|
|
567
|
+
systemName: string;
|
|
568
|
+
displayName: string;
|
|
569
|
+
}[];
|
|
570
|
+
}[];
|
|
571
|
+
}>>;
|
|
572
|
+
packageId: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
stickerId: z.ZodOptional<z.ZodNumber>;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
|
|
576
|
+
messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
577
|
+
direction: "incoming" | "outgoing" | "system";
|
|
578
|
+
room: string;
|
|
579
|
+
messageAttachments: {
|
|
580
|
+
url: string;
|
|
581
|
+
bucketName: string;
|
|
582
|
+
fileName: string;
|
|
583
|
+
fileSize: string;
|
|
584
|
+
fileKey: string;
|
|
585
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
586
|
+
thumbnailUrl?: string | undefined;
|
|
587
|
+
};
|
|
588
|
+
message?: string | undefined;
|
|
589
|
+
user?: {
|
|
590
|
+
id: string;
|
|
591
|
+
address: string | null;
|
|
592
|
+
name: string;
|
|
593
|
+
email: string;
|
|
594
|
+
createdAt: Date;
|
|
595
|
+
updatedAt: Date;
|
|
596
|
+
deletedAt: Date | null;
|
|
597
|
+
phone: string | null;
|
|
598
|
+
notificationCount: number | null;
|
|
599
|
+
roles: {
|
|
600
|
+
id: string;
|
|
601
|
+
description: string | null;
|
|
602
|
+
createdAt: Date;
|
|
603
|
+
updatedAt: Date;
|
|
604
|
+
deletedAt: Date | null;
|
|
605
|
+
systemName: string;
|
|
606
|
+
displayName: string;
|
|
607
|
+
permissions: {
|
|
608
|
+
id: string;
|
|
609
|
+
description: string | null;
|
|
610
|
+
createdAt: Date;
|
|
611
|
+
updatedAt: Date;
|
|
612
|
+
deletedAt: Date | null;
|
|
613
|
+
systemName: string;
|
|
614
|
+
displayName: string;
|
|
615
|
+
}[];
|
|
616
|
+
}[];
|
|
348
617
|
} | undefined;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
618
|
+
packageId?: number | undefined;
|
|
619
|
+
stickerId?: number | undefined;
|
|
620
|
+
}, {
|
|
621
|
+
platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
|
|
622
|
+
messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
623
|
+
direction: "incoming" | "outgoing" | "system";
|
|
624
|
+
room: string;
|
|
625
|
+
messageAttachments: {
|
|
626
|
+
url: string;
|
|
627
|
+
bucketName: string;
|
|
628
|
+
fileName: string;
|
|
629
|
+
fileSize: string;
|
|
630
|
+
fileKey: string;
|
|
631
|
+
fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
|
|
632
|
+
thumbnailUrl?: string | undefined;
|
|
633
|
+
};
|
|
634
|
+
message?: string | undefined;
|
|
635
|
+
user?: {
|
|
636
|
+
id: string;
|
|
637
|
+
address: string | null;
|
|
638
|
+
name: string;
|
|
639
|
+
email: string;
|
|
640
|
+
createdAt: Date;
|
|
641
|
+
updatedAt: Date;
|
|
642
|
+
deletedAt: Date | null;
|
|
643
|
+
phone: string | null;
|
|
644
|
+
notificationCount: number | null;
|
|
645
|
+
roles: {
|
|
646
|
+
id: string;
|
|
647
|
+
description: string | null;
|
|
648
|
+
createdAt: Date;
|
|
649
|
+
updatedAt: Date;
|
|
650
|
+
deletedAt: Date | null;
|
|
651
|
+
systemName: string;
|
|
652
|
+
displayName: string;
|
|
653
|
+
permissions: {
|
|
654
|
+
id: string;
|
|
655
|
+
description: string | null;
|
|
656
|
+
createdAt: Date;
|
|
657
|
+
updatedAt: Date;
|
|
658
|
+
deletedAt: Date | null;
|
|
659
|
+
systemName: string;
|
|
660
|
+
displayName: string;
|
|
661
|
+
}[];
|
|
662
|
+
}[];
|
|
663
|
+
} | undefined;
|
|
664
|
+
packageId?: number | undefined;
|
|
665
|
+
stickerId?: number | undefined;
|
|
666
|
+
}>;
|
|
667
|
+
export declare const SolveRoomSchema: z.ZodObject<{
|
|
668
|
+
roomId: z.ZodString;
|
|
669
|
+
}, "strip", z.ZodTypeAny, {
|
|
670
|
+
roomId: string;
|
|
671
|
+
}, {
|
|
672
|
+
roomId: string;
|
|
673
|
+
}>;
|
|
674
|
+
export declare const UpdateAssigneeSchema: z.ZodObject<{
|
|
675
|
+
roomId: z.ZodString;
|
|
676
|
+
assigneeId: z.ZodString;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
assigneeId: string;
|
|
679
|
+
roomId: string;
|
|
680
|
+
}, {
|
|
681
|
+
assigneeId: string;
|
|
682
|
+
roomId: string;
|
|
683
|
+
}>;
|
|
684
|
+
export declare const SearchRoomsSchema: z.ZodObject<{
|
|
685
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
686
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
687
|
+
query: z.ZodString;
|
|
688
|
+
}, "strip", z.ZodTypeAny, {
|
|
689
|
+
page: number;
|
|
690
|
+
pageSize: number;
|
|
691
|
+
query: string;
|
|
692
|
+
}, {
|
|
693
|
+
query: string;
|
|
694
|
+
page?: number | undefined;
|
|
695
|
+
pageSize?: number | undefined;
|
|
696
|
+
}>;
|
|
355
697
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/chat/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/chat/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAWpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBzB,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAErC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAE5B,CAAC"}
|