@kl1/contracts 1.1.65-uat → 1.1.67-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +3732 -4
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +12 -2
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/chat/index.d.ts
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
import { DefaultQueryParamsSchema } from '../base-contract';
|
3
3
|
import { MessageRelevanceSchema, MessageSchema, MessageWithFeedPostSchema, OrderQueryParamSchema, RoomSchema } from './schema';
|
4
|
-
import { ChannelSchema, GetRoomsSchema, LineStickerSchema, ReceiveMessageSchema, ReloginChanelSchema, SearchRoomsSchema, SendMessageResponseSchema, DeleteMessageToPlatformSchema, SendMessageSchema, ActionMessageSchema, SendMessageToPlatformSchema, SendMessageWithActionTypeSchema, SolveRoomSchema, UpdateAssigneeByWorkflowSchema, UpdateAssigneeSchema, UpdateRoomAttributesSchema, UpdateRoomTagsAndNotesSchema } from './validation';
|
4
|
+
import { ChannelSchema, GetRoomsSchema, LineStickerSchema, ReceiveMessageSchema, ReloginChanelSchema, SearchRoomsSchema, SendMessageResponseSchema, DeleteMessageToPlatformSchema, SendMessageSchema, ActionMessageSchema, SendMessageToPlatformSchema, SendMessageWithActionTypeSchema, SolveRoomSchema, UpdateAssigneeByWorkflowSchema, UpdateAssigneeSchema, UpdateRoomAttributesSchema, UpdateRoomTagsAndNotesSchema, UpdateUnAssignRoomsSchema } from './validation';
|
5
5
|
import { FeedPostSchema } from '../facebook-feed/schema';
|
6
6
|
export type GetRoomRequest = z.infer<typeof GetRoomsSchema>;
|
7
7
|
export type UpdateRoomAttributesRequest = z.infer<typeof UpdateRoomAttributesSchema>;
|
8
8
|
export type UpdateRoomTagsAndNotesRequest = z.infer<typeof UpdateRoomTagsAndNotesSchema>;
|
9
9
|
export type SendMessageRequest = z.infer<typeof SendMessageSchema>;
|
10
10
|
export type ActionMessageRequest = z.infer<typeof ActionMessageSchema>;
|
11
|
+
export type RoomResponse = z.infer<typeof RoomSchema>;
|
11
12
|
export type SolveRoomRequest = z.infer<typeof SolveRoomSchema>;
|
12
13
|
export type UpdateAssigneeRequest = z.infer<typeof UpdateAssigneeSchema>;
|
13
14
|
export type UpdateAssigneeByWorkflowRequest = z.infer<typeof UpdateAssigneeByWorkflowSchema>;
|
15
|
+
export type UpdateUnAssignRoomsRequest = z.infer<typeof UpdateUnAssignRoomsSchema>;
|
14
16
|
export type SearchRoomsRequest = z.infer<typeof SearchRoomsSchema>;
|
15
17
|
export type SendMessageToPlatformRequest = z.infer<typeof SendMessageToPlatformSchema>;
|
16
18
|
export type DeleteMessageToPlatformRequest = z.infer<typeof DeleteMessageToPlatformSchema>;
|
@@ -77104,19 +77106,3745 @@ export declare const mainChatContract: {
|
|
77104
77106
|
'x-client-timezone'?: string | undefined;
|
77105
77107
|
}>>>;
|
77106
77108
|
};
|
77109
|
+
updateUnassignRoomsToAssignee: {
|
77110
|
+
body: z.ZodObject<{
|
77111
|
+
assigneeId: z.ZodString;
|
77112
|
+
roomIds: z.ZodArray<z.ZodString, "many">;
|
77113
|
+
actionType: z.ZodDefault<z.ZodEnum<["assign_to_me", "hangover_to_me", "assign_other_agent"]>>;
|
77114
|
+
}, "strip", z.ZodTypeAny, {
|
77115
|
+
assigneeId: string;
|
77116
|
+
actionType: "assign_to_me" | "hangover_to_me" | "assign_other_agent";
|
77117
|
+
roomIds: string[];
|
77118
|
+
}, {
|
77119
|
+
assigneeId: string;
|
77120
|
+
roomIds: string[];
|
77121
|
+
actionType?: "assign_to_me" | "hangover_to_me" | "assign_other_agent" | undefined;
|
77122
|
+
}>;
|
77123
|
+
summary: "Update room assignee";
|
77124
|
+
method: "POST";
|
77125
|
+
responses: {
|
77126
|
+
200: z.ZodObject<{
|
77127
|
+
requestId: z.ZodString;
|
77128
|
+
data: z.ZodArray<z.ZodObject<{
|
77129
|
+
id: z.ZodString;
|
77130
|
+
createdAt: z.ZodDate;
|
77131
|
+
updatedAt: z.ZodDate;
|
77132
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77133
|
+
lastMessage: z.ZodString;
|
77134
|
+
handleTime: z.ZodNumber;
|
77135
|
+
closedAt: z.ZodDate;
|
77136
|
+
lastMessageAt: z.ZodNullable<z.ZodDate>;
|
77137
|
+
status: z.ZodNumber;
|
77138
|
+
unreadCount: z.ZodNumber;
|
77139
|
+
firstResponseAt: z.ZodDate;
|
77140
|
+
firstResponseTime: z.ZodNumber;
|
77141
|
+
isLatest: z.ZodBoolean;
|
77142
|
+
isBotRoom: z.ZodBoolean;
|
77143
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
77144
|
+
platformContact: z.ZodObject<{
|
77145
|
+
id: z.ZodString;
|
77146
|
+
createdAt: z.ZodDate;
|
77147
|
+
updatedAt: z.ZodDate;
|
77148
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77149
|
+
channelId: z.ZodString;
|
77150
|
+
socialPlatformId: z.ZodString;
|
77151
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
|
77152
|
+
metadata: z.ZodObject<{
|
77153
|
+
id: z.ZodString;
|
77154
|
+
name: z.ZodString;
|
77155
|
+
picture: z.ZodOptional<z.ZodString>;
|
77156
|
+
additionalCredentials: z.ZodAny;
|
77157
|
+
}, "strip", z.ZodTypeAny, {
|
77158
|
+
id: string;
|
77159
|
+
name: string;
|
77160
|
+
picture?: string | undefined;
|
77161
|
+
additionalCredentials?: any;
|
77162
|
+
}, {
|
77163
|
+
id: string;
|
77164
|
+
name: string;
|
77165
|
+
picture?: string | undefined;
|
77166
|
+
additionalCredentials?: any;
|
77167
|
+
}>;
|
77168
|
+
contact: z.ZodObject<{
|
77169
|
+
id: z.ZodString;
|
77170
|
+
createdAt: z.ZodDate;
|
77171
|
+
updatedAt: z.ZodDate;
|
77172
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77173
|
+
name: z.ZodString;
|
77174
|
+
address: z.ZodNullable<z.ZodString>;
|
77175
|
+
channel: z.ZodNullable<z.ZodString>;
|
77176
|
+
notes: z.ZodNullable<z.ZodString>;
|
77177
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
77178
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
77179
|
+
tags: z.ZodArray<z.ZodObject<{
|
77180
|
+
id: z.ZodString;
|
77181
|
+
createdAt: z.ZodDate;
|
77182
|
+
updatedAt: z.ZodDate;
|
77183
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77184
|
+
name: z.ZodString;
|
77185
|
+
}, "strip", z.ZodTypeAny, {
|
77186
|
+
id: string;
|
77187
|
+
name: string;
|
77188
|
+
createdAt: Date;
|
77189
|
+
updatedAt: Date;
|
77190
|
+
deletedAt: Date | null;
|
77191
|
+
}, {
|
77192
|
+
id: string;
|
77193
|
+
name: string;
|
77194
|
+
createdAt: Date;
|
77195
|
+
updatedAt: Date;
|
77196
|
+
deletedAt: Date | null;
|
77197
|
+
}>, "many">;
|
77198
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
77199
|
+
id: z.ZodString;
|
77200
|
+
createdAt: z.ZodDate;
|
77201
|
+
updatedAt: z.ZodDate;
|
77202
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77203
|
+
name: z.ZodOptional<z.ZodString>;
|
77204
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
77205
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
77206
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
77207
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
77208
|
+
id: z.ZodString;
|
77209
|
+
createdAt: z.ZodDate;
|
77210
|
+
updatedAt: z.ZodDate;
|
77211
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77212
|
+
textValue: z.ZodNullable<z.ZodString>;
|
77213
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
77214
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
77215
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
77216
|
+
attribute: z.ZodObject<Omit<{
|
77217
|
+
id: z.ZodString;
|
77218
|
+
createdAt: z.ZodDate;
|
77219
|
+
updatedAt: z.ZodDate;
|
77220
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77221
|
+
systemName: z.ZodString;
|
77222
|
+
displayName: z.ZodString;
|
77223
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
77224
|
+
position: z.ZodNumber;
|
77225
|
+
isDefault: z.ZodBoolean;
|
77226
|
+
isArchived: z.ZodBoolean;
|
77227
|
+
isRequired: z.ZodBoolean;
|
77228
|
+
isUnique: z.ZodBoolean;
|
77229
|
+
options: z.ZodArray<z.ZodObject<{
|
77230
|
+
position: z.ZodNumber;
|
77231
|
+
value: z.ZodString;
|
77232
|
+
label: z.ZodString;
|
77233
|
+
isDefault: z.ZodBoolean;
|
77234
|
+
id: z.ZodString;
|
77235
|
+
}, "strip", z.ZodTypeAny, {
|
77236
|
+
id: string;
|
77237
|
+
position: number;
|
77238
|
+
value: string;
|
77239
|
+
label: string;
|
77240
|
+
isDefault: boolean;
|
77241
|
+
}, {
|
77242
|
+
id: string;
|
77243
|
+
position: number;
|
77244
|
+
value: string;
|
77245
|
+
label: string;
|
77246
|
+
isDefault: boolean;
|
77247
|
+
}>, "many">;
|
77248
|
+
group: z.ZodObject<{
|
77249
|
+
id: z.ZodString;
|
77250
|
+
createdAt: z.ZodDate;
|
77251
|
+
updatedAt: z.ZodDate;
|
77252
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77253
|
+
systemName: z.ZodString;
|
77254
|
+
displayName: z.ZodString;
|
77255
|
+
}, "strip", z.ZodTypeAny, {
|
77256
|
+
id: string;
|
77257
|
+
createdAt: Date;
|
77258
|
+
updatedAt: Date;
|
77259
|
+
deletedAt: Date | null;
|
77260
|
+
systemName: string;
|
77261
|
+
displayName: string;
|
77262
|
+
}, {
|
77263
|
+
id: string;
|
77264
|
+
createdAt: Date;
|
77265
|
+
updatedAt: Date;
|
77266
|
+
deletedAt: Date | null;
|
77267
|
+
systemName: string;
|
77268
|
+
displayName: string;
|
77269
|
+
}>;
|
77270
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
77271
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77272
|
+
id: string;
|
77273
|
+
position: number;
|
77274
|
+
createdAt: Date;
|
77275
|
+
updatedAt: Date;
|
77276
|
+
deletedAt: Date | null;
|
77277
|
+
systemName: string;
|
77278
|
+
displayName: string;
|
77279
|
+
isDefault: boolean;
|
77280
|
+
isArchived: boolean;
|
77281
|
+
isRequired: boolean;
|
77282
|
+
isUnique: boolean;
|
77283
|
+
}, {
|
77284
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77285
|
+
id: string;
|
77286
|
+
position: number;
|
77287
|
+
createdAt: Date;
|
77288
|
+
updatedAt: Date;
|
77289
|
+
deletedAt: Date | null;
|
77290
|
+
systemName: string;
|
77291
|
+
displayName: string;
|
77292
|
+
isDefault: boolean;
|
77293
|
+
isArchived: boolean;
|
77294
|
+
isRequired: boolean;
|
77295
|
+
isUnique: boolean;
|
77296
|
+
}>;
|
77297
|
+
}, "strip", z.ZodTypeAny, {
|
77298
|
+
id: string;
|
77299
|
+
createdAt: Date;
|
77300
|
+
updatedAt: Date;
|
77301
|
+
deletedAt: Date | null;
|
77302
|
+
attribute: {
|
77303
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77304
|
+
id: string;
|
77305
|
+
position: number;
|
77306
|
+
createdAt: Date;
|
77307
|
+
updatedAt: Date;
|
77308
|
+
deletedAt: Date | null;
|
77309
|
+
systemName: string;
|
77310
|
+
displayName: string;
|
77311
|
+
isDefault: boolean;
|
77312
|
+
isArchived: boolean;
|
77313
|
+
isRequired: boolean;
|
77314
|
+
isUnique: boolean;
|
77315
|
+
};
|
77316
|
+
textValue: string | null;
|
77317
|
+
booleanValue: boolean | null;
|
77318
|
+
numberValue: number | null;
|
77319
|
+
dateValue: Date | null;
|
77320
|
+
}, {
|
77321
|
+
id: string;
|
77322
|
+
createdAt: Date;
|
77323
|
+
updatedAt: Date;
|
77324
|
+
deletedAt: Date | null;
|
77325
|
+
attribute: {
|
77326
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77327
|
+
id: string;
|
77328
|
+
position: number;
|
77329
|
+
createdAt: Date;
|
77330
|
+
updatedAt: Date;
|
77331
|
+
deletedAt: Date | null;
|
77332
|
+
systemName: string;
|
77333
|
+
displayName: string;
|
77334
|
+
isDefault: boolean;
|
77335
|
+
isArchived: boolean;
|
77336
|
+
isRequired: boolean;
|
77337
|
+
isUnique: boolean;
|
77338
|
+
};
|
77339
|
+
textValue: string | null;
|
77340
|
+
booleanValue: boolean | null;
|
77341
|
+
numberValue: number | null;
|
77342
|
+
dateValue: Date | null;
|
77343
|
+
}>, "many">>;
|
77344
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
77345
|
+
id: string;
|
77346
|
+
createdAt: Date;
|
77347
|
+
updatedAt: Date;
|
77348
|
+
deletedAt: Date | null;
|
77349
|
+
address?: string | null | undefined;
|
77350
|
+
name?: string | undefined;
|
77351
|
+
phone?: string | null | undefined;
|
77352
|
+
industry?: string | null | undefined;
|
77353
|
+
}, {
|
77354
|
+
id: string;
|
77355
|
+
createdAt: Date;
|
77356
|
+
updatedAt: Date;
|
77357
|
+
deletedAt: Date | null;
|
77358
|
+
address?: string | null | undefined;
|
77359
|
+
name?: string | undefined;
|
77360
|
+
phone?: string | null | undefined;
|
77361
|
+
industry?: string | null | undefined;
|
77362
|
+
}>>;
|
77363
|
+
customFields: z.ZodArray<z.ZodObject<{
|
77364
|
+
id: z.ZodString;
|
77365
|
+
createdAt: z.ZodDate;
|
77366
|
+
updatedAt: z.ZodDate;
|
77367
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77368
|
+
textValue: z.ZodNullable<z.ZodString>;
|
77369
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
77370
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
77371
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
77372
|
+
attribute: z.ZodObject<Omit<{
|
77373
|
+
id: z.ZodString;
|
77374
|
+
createdAt: z.ZodDate;
|
77375
|
+
updatedAt: z.ZodDate;
|
77376
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77377
|
+
systemName: z.ZodString;
|
77378
|
+
displayName: z.ZodString;
|
77379
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
77380
|
+
position: z.ZodNumber;
|
77381
|
+
isDefault: z.ZodBoolean;
|
77382
|
+
isArchived: z.ZodBoolean;
|
77383
|
+
isRequired: z.ZodBoolean;
|
77384
|
+
isUnique: z.ZodBoolean;
|
77385
|
+
options: z.ZodArray<z.ZodObject<{
|
77386
|
+
position: z.ZodNumber;
|
77387
|
+
value: z.ZodString;
|
77388
|
+
label: z.ZodString;
|
77389
|
+
isDefault: z.ZodBoolean;
|
77390
|
+
id: z.ZodString;
|
77391
|
+
}, "strip", z.ZodTypeAny, {
|
77392
|
+
id: string;
|
77393
|
+
position: number;
|
77394
|
+
value: string;
|
77395
|
+
label: string;
|
77396
|
+
isDefault: boolean;
|
77397
|
+
}, {
|
77398
|
+
id: string;
|
77399
|
+
position: number;
|
77400
|
+
value: string;
|
77401
|
+
label: string;
|
77402
|
+
isDefault: boolean;
|
77403
|
+
}>, "many">;
|
77404
|
+
group: z.ZodObject<{
|
77405
|
+
id: z.ZodString;
|
77406
|
+
createdAt: z.ZodDate;
|
77407
|
+
updatedAt: z.ZodDate;
|
77408
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77409
|
+
systemName: z.ZodString;
|
77410
|
+
displayName: z.ZodString;
|
77411
|
+
}, "strip", z.ZodTypeAny, {
|
77412
|
+
id: string;
|
77413
|
+
createdAt: Date;
|
77414
|
+
updatedAt: Date;
|
77415
|
+
deletedAt: Date | null;
|
77416
|
+
systemName: string;
|
77417
|
+
displayName: string;
|
77418
|
+
}, {
|
77419
|
+
id: string;
|
77420
|
+
createdAt: Date;
|
77421
|
+
updatedAt: Date;
|
77422
|
+
deletedAt: Date | null;
|
77423
|
+
systemName: string;
|
77424
|
+
displayName: string;
|
77425
|
+
}>;
|
77426
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
77427
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77428
|
+
id: string;
|
77429
|
+
position: number;
|
77430
|
+
createdAt: Date;
|
77431
|
+
updatedAt: Date;
|
77432
|
+
deletedAt: Date | null;
|
77433
|
+
systemName: string;
|
77434
|
+
displayName: string;
|
77435
|
+
isDefault: boolean;
|
77436
|
+
isArchived: boolean;
|
77437
|
+
isRequired: boolean;
|
77438
|
+
isUnique: boolean;
|
77439
|
+
}, {
|
77440
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77441
|
+
id: string;
|
77442
|
+
position: number;
|
77443
|
+
createdAt: Date;
|
77444
|
+
updatedAt: Date;
|
77445
|
+
deletedAt: Date | null;
|
77446
|
+
systemName: string;
|
77447
|
+
displayName: string;
|
77448
|
+
isDefault: boolean;
|
77449
|
+
isArchived: boolean;
|
77450
|
+
isRequired: boolean;
|
77451
|
+
isUnique: boolean;
|
77452
|
+
}>;
|
77453
|
+
uploads: z.ZodArray<z.ZodObject<{
|
77454
|
+
id: z.ZodString;
|
77455
|
+
createdAt: z.ZodDate;
|
77456
|
+
updatedAt: z.ZodDate;
|
77457
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77458
|
+
bucketName: z.ZodString;
|
77459
|
+
fileName: z.ZodString;
|
77460
|
+
fileSize: z.ZodNumber;
|
77461
|
+
fileKey: z.ZodString;
|
77462
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
77463
|
+
status: z.ZodNullable<z.ZodString>;
|
77464
|
+
}, "strip", z.ZodTypeAny, {
|
77465
|
+
id: string;
|
77466
|
+
status: string | null;
|
77467
|
+
createdAt: Date;
|
77468
|
+
updatedAt: Date;
|
77469
|
+
deletedAt: Date | null;
|
77470
|
+
fileName: string;
|
77471
|
+
fileKey: string;
|
77472
|
+
bucketName: string;
|
77473
|
+
fileSize: number;
|
77474
|
+
fileUrl: string | null;
|
77475
|
+
}, {
|
77476
|
+
id: string;
|
77477
|
+
status: string | null;
|
77478
|
+
createdAt: Date;
|
77479
|
+
updatedAt: Date;
|
77480
|
+
deletedAt: Date | null;
|
77481
|
+
fileName: string;
|
77482
|
+
fileKey: string;
|
77483
|
+
bucketName: string;
|
77484
|
+
fileSize: number;
|
77485
|
+
fileUrl: string | null;
|
77486
|
+
}>, "many">;
|
77487
|
+
}, "strip", z.ZodTypeAny, {
|
77488
|
+
id: string;
|
77489
|
+
createdAt: Date;
|
77490
|
+
updatedAt: Date;
|
77491
|
+
deletedAt: Date | null;
|
77492
|
+
attribute: {
|
77493
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77494
|
+
id: string;
|
77495
|
+
position: number;
|
77496
|
+
createdAt: Date;
|
77497
|
+
updatedAt: Date;
|
77498
|
+
deletedAt: Date | null;
|
77499
|
+
systemName: string;
|
77500
|
+
displayName: string;
|
77501
|
+
isDefault: boolean;
|
77502
|
+
isArchived: boolean;
|
77503
|
+
isRequired: boolean;
|
77504
|
+
isUnique: boolean;
|
77505
|
+
};
|
77506
|
+
textValue: string | null;
|
77507
|
+
booleanValue: boolean | null;
|
77508
|
+
numberValue: number | null;
|
77509
|
+
dateValue: Date | null;
|
77510
|
+
uploads: {
|
77511
|
+
id: string;
|
77512
|
+
status: string | null;
|
77513
|
+
createdAt: Date;
|
77514
|
+
updatedAt: Date;
|
77515
|
+
deletedAt: Date | null;
|
77516
|
+
fileName: string;
|
77517
|
+
fileKey: string;
|
77518
|
+
bucketName: string;
|
77519
|
+
fileSize: number;
|
77520
|
+
fileUrl: string | null;
|
77521
|
+
}[];
|
77522
|
+
}, {
|
77523
|
+
id: string;
|
77524
|
+
createdAt: Date;
|
77525
|
+
updatedAt: Date;
|
77526
|
+
deletedAt: Date | null;
|
77527
|
+
attribute: {
|
77528
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77529
|
+
id: string;
|
77530
|
+
position: number;
|
77531
|
+
createdAt: Date;
|
77532
|
+
updatedAt: Date;
|
77533
|
+
deletedAt: Date | null;
|
77534
|
+
systemName: string;
|
77535
|
+
displayName: string;
|
77536
|
+
isDefault: boolean;
|
77537
|
+
isArchived: boolean;
|
77538
|
+
isRequired: boolean;
|
77539
|
+
isUnique: boolean;
|
77540
|
+
};
|
77541
|
+
textValue: string | null;
|
77542
|
+
booleanValue: boolean | null;
|
77543
|
+
numberValue: number | null;
|
77544
|
+
dateValue: Date | null;
|
77545
|
+
uploads: {
|
77546
|
+
id: string;
|
77547
|
+
status: string | null;
|
77548
|
+
createdAt: Date;
|
77549
|
+
updatedAt: Date;
|
77550
|
+
deletedAt: Date | null;
|
77551
|
+
fileName: string;
|
77552
|
+
fileKey: string;
|
77553
|
+
bucketName: string;
|
77554
|
+
fileSize: number;
|
77555
|
+
fileUrl: string | null;
|
77556
|
+
}[];
|
77557
|
+
}>, "many">;
|
77558
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
77559
|
+
id: z.ZodString;
|
77560
|
+
createdAt: z.ZodDate;
|
77561
|
+
updatedAt: z.ZodDate;
|
77562
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77563
|
+
email: z.ZodString;
|
77564
|
+
isPrimary: z.ZodBoolean;
|
77565
|
+
}, "strip", z.ZodTypeAny, {
|
77566
|
+
id: string;
|
77567
|
+
isPrimary: boolean;
|
77568
|
+
email: string;
|
77569
|
+
createdAt: Date;
|
77570
|
+
updatedAt: Date;
|
77571
|
+
deletedAt: Date | null;
|
77572
|
+
}, {
|
77573
|
+
id: string;
|
77574
|
+
isPrimary: boolean;
|
77575
|
+
email: string;
|
77576
|
+
createdAt: Date;
|
77577
|
+
updatedAt: Date;
|
77578
|
+
deletedAt: Date | null;
|
77579
|
+
}>, "many">;
|
77580
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
77581
|
+
id: z.ZodString;
|
77582
|
+
createdAt: z.ZodDate;
|
77583
|
+
updatedAt: z.ZodDate;
|
77584
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77585
|
+
phone: z.ZodString;
|
77586
|
+
isPrimary: z.ZodBoolean;
|
77587
|
+
}, "strip", z.ZodTypeAny, {
|
77588
|
+
id: string;
|
77589
|
+
isPrimary: boolean;
|
77590
|
+
createdAt: Date;
|
77591
|
+
updatedAt: Date;
|
77592
|
+
deletedAt: Date | null;
|
77593
|
+
phone: string;
|
77594
|
+
}, {
|
77595
|
+
id: string;
|
77596
|
+
isPrimary: boolean;
|
77597
|
+
createdAt: Date;
|
77598
|
+
updatedAt: Date;
|
77599
|
+
deletedAt: Date | null;
|
77600
|
+
phone: string;
|
77601
|
+
}>, "many">;
|
77602
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
77603
|
+
id: z.ZodString;
|
77604
|
+
createdAt: z.ZodDate;
|
77605
|
+
updatedAt: z.ZodDate;
|
77606
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77607
|
+
entityId: z.ZodString;
|
77608
|
+
description: z.ZodString;
|
77609
|
+
entityType: z.ZodObject<{
|
77610
|
+
id: z.ZodString;
|
77611
|
+
createdAt: z.ZodDate;
|
77612
|
+
updatedAt: z.ZodDate;
|
77613
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
77614
|
+
entity: z.ZodString;
|
77615
|
+
description: z.ZodNullable<z.ZodString>;
|
77616
|
+
}, "strip", z.ZodTypeAny, {
|
77617
|
+
id: string;
|
77618
|
+
description: string | null;
|
77619
|
+
createdAt: Date;
|
77620
|
+
updatedAt: Date;
|
77621
|
+
deletedAt: Date | null;
|
77622
|
+
entity: string;
|
77623
|
+
}, {
|
77624
|
+
id: string;
|
77625
|
+
description: string | null;
|
77626
|
+
createdAt: Date;
|
77627
|
+
updatedAt: Date;
|
77628
|
+
deletedAt: Date | null;
|
77629
|
+
entity: string;
|
77630
|
+
}>;
|
77631
|
+
}, "strip", z.ZodTypeAny, {
|
77632
|
+
id: string;
|
77633
|
+
description: string;
|
77634
|
+
createdAt: Date;
|
77635
|
+
updatedAt: Date;
|
77636
|
+
deletedAt: Date | null;
|
77637
|
+
entityId: string;
|
77638
|
+
entityType: {
|
77639
|
+
id: string;
|
77640
|
+
description: string | null;
|
77641
|
+
createdAt: Date;
|
77642
|
+
updatedAt: Date;
|
77643
|
+
deletedAt: Date | null;
|
77644
|
+
entity: string;
|
77645
|
+
};
|
77646
|
+
}, {
|
77647
|
+
id: string;
|
77648
|
+
description: string;
|
77649
|
+
createdAt: Date;
|
77650
|
+
updatedAt: Date;
|
77651
|
+
deletedAt: Date | null;
|
77652
|
+
entityId: string;
|
77653
|
+
entityType: {
|
77654
|
+
id: string;
|
77655
|
+
description: string | null;
|
77656
|
+
createdAt: Date;
|
77657
|
+
updatedAt: Date;
|
77658
|
+
deletedAt: Date | null;
|
77659
|
+
entity: string;
|
77660
|
+
};
|
77661
|
+
}>, "many">>;
|
77662
|
+
}, "strip", z.ZodTypeAny, {
|
77663
|
+
id: string;
|
77664
|
+
channel: string | null;
|
77665
|
+
address: string | null;
|
77666
|
+
name: string;
|
77667
|
+
createdAt: Date;
|
77668
|
+
updatedAt: Date;
|
77669
|
+
deletedAt: Date | null;
|
77670
|
+
customFields: {
|
77671
|
+
id: string;
|
77672
|
+
createdAt: Date;
|
77673
|
+
updatedAt: Date;
|
77674
|
+
deletedAt: Date | null;
|
77675
|
+
attribute: {
|
77676
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77677
|
+
id: string;
|
77678
|
+
position: number;
|
77679
|
+
createdAt: Date;
|
77680
|
+
updatedAt: Date;
|
77681
|
+
deletedAt: Date | null;
|
77682
|
+
systemName: string;
|
77683
|
+
displayName: string;
|
77684
|
+
isDefault: boolean;
|
77685
|
+
isArchived: boolean;
|
77686
|
+
isRequired: boolean;
|
77687
|
+
isUnique: boolean;
|
77688
|
+
};
|
77689
|
+
textValue: string | null;
|
77690
|
+
booleanValue: boolean | null;
|
77691
|
+
numberValue: number | null;
|
77692
|
+
dateValue: Date | null;
|
77693
|
+
uploads: {
|
77694
|
+
id: string;
|
77695
|
+
status: string | null;
|
77696
|
+
createdAt: Date;
|
77697
|
+
updatedAt: Date;
|
77698
|
+
deletedAt: Date | null;
|
77699
|
+
fileName: string;
|
77700
|
+
fileKey: string;
|
77701
|
+
bucketName: string;
|
77702
|
+
fileSize: number;
|
77703
|
+
fileUrl: string | null;
|
77704
|
+
}[];
|
77705
|
+
}[];
|
77706
|
+
company: {
|
77707
|
+
id: string;
|
77708
|
+
createdAt: Date;
|
77709
|
+
updatedAt: Date;
|
77710
|
+
deletedAt: Date | null;
|
77711
|
+
address?: string | null | undefined;
|
77712
|
+
name?: string | undefined;
|
77713
|
+
phone?: string | null | undefined;
|
77714
|
+
industry?: string | null | undefined;
|
77715
|
+
} | null;
|
77716
|
+
notes: string | null;
|
77717
|
+
contactProfile: string | null;
|
77718
|
+
socialProfileUrl: string | null;
|
77719
|
+
tags: {
|
77720
|
+
id: string;
|
77721
|
+
name: string;
|
77722
|
+
createdAt: Date;
|
77723
|
+
updatedAt: Date;
|
77724
|
+
deletedAt: Date | null;
|
77725
|
+
}[];
|
77726
|
+
contactEmails: {
|
77727
|
+
id: string;
|
77728
|
+
isPrimary: boolean;
|
77729
|
+
email: string;
|
77730
|
+
createdAt: Date;
|
77731
|
+
updatedAt: Date;
|
77732
|
+
deletedAt: Date | null;
|
77733
|
+
}[];
|
77734
|
+
contactPhones: {
|
77735
|
+
id: string;
|
77736
|
+
isPrimary: boolean;
|
77737
|
+
createdAt: Date;
|
77738
|
+
updatedAt: Date;
|
77739
|
+
deletedAt: Date | null;
|
77740
|
+
phone: string;
|
77741
|
+
}[];
|
77742
|
+
activityLogs?: {
|
77743
|
+
id: string;
|
77744
|
+
description: string;
|
77745
|
+
createdAt: Date;
|
77746
|
+
updatedAt: Date;
|
77747
|
+
deletedAt: Date | null;
|
77748
|
+
entityId: string;
|
77749
|
+
entityType: {
|
77750
|
+
id: string;
|
77751
|
+
description: string | null;
|
77752
|
+
createdAt: Date;
|
77753
|
+
updatedAt: Date;
|
77754
|
+
deletedAt: Date | null;
|
77755
|
+
entity: string;
|
77756
|
+
};
|
77757
|
+
}[] | undefined;
|
77758
|
+
}, {
|
77759
|
+
id: string;
|
77760
|
+
channel: string | null;
|
77761
|
+
address: string | null;
|
77762
|
+
name: string;
|
77763
|
+
createdAt: Date;
|
77764
|
+
updatedAt: Date;
|
77765
|
+
deletedAt: Date | null;
|
77766
|
+
customFields: {
|
77767
|
+
id: string;
|
77768
|
+
createdAt: Date;
|
77769
|
+
updatedAt: Date;
|
77770
|
+
deletedAt: Date | null;
|
77771
|
+
attribute: {
|
77772
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77773
|
+
id: string;
|
77774
|
+
position: number;
|
77775
|
+
createdAt: Date;
|
77776
|
+
updatedAt: Date;
|
77777
|
+
deletedAt: Date | null;
|
77778
|
+
systemName: string;
|
77779
|
+
displayName: string;
|
77780
|
+
isDefault: boolean;
|
77781
|
+
isArchived: boolean;
|
77782
|
+
isRequired: boolean;
|
77783
|
+
isUnique: boolean;
|
77784
|
+
};
|
77785
|
+
textValue: string | null;
|
77786
|
+
booleanValue: boolean | null;
|
77787
|
+
numberValue: number | null;
|
77788
|
+
dateValue: Date | null;
|
77789
|
+
uploads: {
|
77790
|
+
id: string;
|
77791
|
+
status: string | null;
|
77792
|
+
createdAt: Date;
|
77793
|
+
updatedAt: Date;
|
77794
|
+
deletedAt: Date | null;
|
77795
|
+
fileName: string;
|
77796
|
+
fileKey: string;
|
77797
|
+
bucketName: string;
|
77798
|
+
fileSize: number;
|
77799
|
+
fileUrl: string | null;
|
77800
|
+
}[];
|
77801
|
+
}[];
|
77802
|
+
company: {
|
77803
|
+
id: string;
|
77804
|
+
createdAt: Date;
|
77805
|
+
updatedAt: Date;
|
77806
|
+
deletedAt: Date | null;
|
77807
|
+
address?: string | null | undefined;
|
77808
|
+
name?: string | undefined;
|
77809
|
+
phone?: string | null | undefined;
|
77810
|
+
industry?: string | null | undefined;
|
77811
|
+
} | null;
|
77812
|
+
notes: string | null;
|
77813
|
+
contactProfile: string | null;
|
77814
|
+
socialProfileUrl: string | null;
|
77815
|
+
tags: {
|
77816
|
+
id: string;
|
77817
|
+
name: string;
|
77818
|
+
createdAt: Date;
|
77819
|
+
updatedAt: Date;
|
77820
|
+
deletedAt: Date | null;
|
77821
|
+
}[];
|
77822
|
+
contactEmails: {
|
77823
|
+
id: string;
|
77824
|
+
isPrimary: boolean;
|
77825
|
+
email: string;
|
77826
|
+
createdAt: Date;
|
77827
|
+
updatedAt: Date;
|
77828
|
+
deletedAt: Date | null;
|
77829
|
+
}[];
|
77830
|
+
contactPhones: {
|
77831
|
+
id: string;
|
77832
|
+
isPrimary: boolean;
|
77833
|
+
createdAt: Date;
|
77834
|
+
updatedAt: Date;
|
77835
|
+
deletedAt: Date | null;
|
77836
|
+
phone: string;
|
77837
|
+
}[];
|
77838
|
+
activityLogs?: {
|
77839
|
+
id: string;
|
77840
|
+
description: string;
|
77841
|
+
createdAt: Date;
|
77842
|
+
updatedAt: Date;
|
77843
|
+
deletedAt: Date | null;
|
77844
|
+
entityId: string;
|
77845
|
+
entityType: {
|
77846
|
+
id: string;
|
77847
|
+
description: string | null;
|
77848
|
+
createdAt: Date;
|
77849
|
+
updatedAt: Date;
|
77850
|
+
deletedAt: Date | null;
|
77851
|
+
entity: string;
|
77852
|
+
};
|
77853
|
+
}[] | undefined;
|
77854
|
+
}>;
|
77855
|
+
}, "strip", z.ZodTypeAny, {
|
77856
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
77857
|
+
id: string;
|
77858
|
+
metadata: {
|
77859
|
+
id: string;
|
77860
|
+
name: string;
|
77861
|
+
picture?: string | undefined;
|
77862
|
+
additionalCredentials?: any;
|
77863
|
+
};
|
77864
|
+
createdAt: Date;
|
77865
|
+
updatedAt: Date;
|
77866
|
+
deletedAt: Date | null;
|
77867
|
+
contact: {
|
77868
|
+
id: string;
|
77869
|
+
channel: string | null;
|
77870
|
+
address: string | null;
|
77871
|
+
name: string;
|
77872
|
+
createdAt: Date;
|
77873
|
+
updatedAt: Date;
|
77874
|
+
deletedAt: Date | null;
|
77875
|
+
customFields: {
|
77876
|
+
id: string;
|
77877
|
+
createdAt: Date;
|
77878
|
+
updatedAt: Date;
|
77879
|
+
deletedAt: Date | null;
|
77880
|
+
attribute: {
|
77881
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77882
|
+
id: string;
|
77883
|
+
position: number;
|
77884
|
+
createdAt: Date;
|
77885
|
+
updatedAt: Date;
|
77886
|
+
deletedAt: Date | null;
|
77887
|
+
systemName: string;
|
77888
|
+
displayName: string;
|
77889
|
+
isDefault: boolean;
|
77890
|
+
isArchived: boolean;
|
77891
|
+
isRequired: boolean;
|
77892
|
+
isUnique: boolean;
|
77893
|
+
};
|
77894
|
+
textValue: string | null;
|
77895
|
+
booleanValue: boolean | null;
|
77896
|
+
numberValue: number | null;
|
77897
|
+
dateValue: Date | null;
|
77898
|
+
uploads: {
|
77899
|
+
id: string;
|
77900
|
+
status: string | null;
|
77901
|
+
createdAt: Date;
|
77902
|
+
updatedAt: Date;
|
77903
|
+
deletedAt: Date | null;
|
77904
|
+
fileName: string;
|
77905
|
+
fileKey: string;
|
77906
|
+
bucketName: string;
|
77907
|
+
fileSize: number;
|
77908
|
+
fileUrl: string | null;
|
77909
|
+
}[];
|
77910
|
+
}[];
|
77911
|
+
company: {
|
77912
|
+
id: string;
|
77913
|
+
createdAt: Date;
|
77914
|
+
updatedAt: Date;
|
77915
|
+
deletedAt: Date | null;
|
77916
|
+
address?: string | null | undefined;
|
77917
|
+
name?: string | undefined;
|
77918
|
+
phone?: string | null | undefined;
|
77919
|
+
industry?: string | null | undefined;
|
77920
|
+
} | null;
|
77921
|
+
notes: string | null;
|
77922
|
+
contactProfile: string | null;
|
77923
|
+
socialProfileUrl: string | null;
|
77924
|
+
tags: {
|
77925
|
+
id: string;
|
77926
|
+
name: string;
|
77927
|
+
createdAt: Date;
|
77928
|
+
updatedAt: Date;
|
77929
|
+
deletedAt: Date | null;
|
77930
|
+
}[];
|
77931
|
+
contactEmails: {
|
77932
|
+
id: string;
|
77933
|
+
isPrimary: boolean;
|
77934
|
+
email: string;
|
77935
|
+
createdAt: Date;
|
77936
|
+
updatedAt: Date;
|
77937
|
+
deletedAt: Date | null;
|
77938
|
+
}[];
|
77939
|
+
contactPhones: {
|
77940
|
+
id: string;
|
77941
|
+
isPrimary: boolean;
|
77942
|
+
createdAt: Date;
|
77943
|
+
updatedAt: Date;
|
77944
|
+
deletedAt: Date | null;
|
77945
|
+
phone: string;
|
77946
|
+
}[];
|
77947
|
+
activityLogs?: {
|
77948
|
+
id: string;
|
77949
|
+
description: string;
|
77950
|
+
createdAt: Date;
|
77951
|
+
updatedAt: Date;
|
77952
|
+
deletedAt: Date | null;
|
77953
|
+
entityId: string;
|
77954
|
+
entityType: {
|
77955
|
+
id: string;
|
77956
|
+
description: string | null;
|
77957
|
+
createdAt: Date;
|
77958
|
+
updatedAt: Date;
|
77959
|
+
deletedAt: Date | null;
|
77960
|
+
entity: string;
|
77961
|
+
};
|
77962
|
+
}[] | undefined;
|
77963
|
+
};
|
77964
|
+
channelId: string;
|
77965
|
+
socialPlatformId: string;
|
77966
|
+
}, {
|
77967
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
77968
|
+
id: string;
|
77969
|
+
metadata: {
|
77970
|
+
id: string;
|
77971
|
+
name: string;
|
77972
|
+
picture?: string | undefined;
|
77973
|
+
additionalCredentials?: any;
|
77974
|
+
};
|
77975
|
+
createdAt: Date;
|
77976
|
+
updatedAt: Date;
|
77977
|
+
deletedAt: Date | null;
|
77978
|
+
contact: {
|
77979
|
+
id: string;
|
77980
|
+
channel: string | null;
|
77981
|
+
address: string | null;
|
77982
|
+
name: string;
|
77983
|
+
createdAt: Date;
|
77984
|
+
updatedAt: Date;
|
77985
|
+
deletedAt: Date | null;
|
77986
|
+
customFields: {
|
77987
|
+
id: string;
|
77988
|
+
createdAt: Date;
|
77989
|
+
updatedAt: Date;
|
77990
|
+
deletedAt: Date | null;
|
77991
|
+
attribute: {
|
77992
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
77993
|
+
id: string;
|
77994
|
+
position: number;
|
77995
|
+
createdAt: Date;
|
77996
|
+
updatedAt: Date;
|
77997
|
+
deletedAt: Date | null;
|
77998
|
+
systemName: string;
|
77999
|
+
displayName: string;
|
78000
|
+
isDefault: boolean;
|
78001
|
+
isArchived: boolean;
|
78002
|
+
isRequired: boolean;
|
78003
|
+
isUnique: boolean;
|
78004
|
+
};
|
78005
|
+
textValue: string | null;
|
78006
|
+
booleanValue: boolean | null;
|
78007
|
+
numberValue: number | null;
|
78008
|
+
dateValue: Date | null;
|
78009
|
+
uploads: {
|
78010
|
+
id: string;
|
78011
|
+
status: string | null;
|
78012
|
+
createdAt: Date;
|
78013
|
+
updatedAt: Date;
|
78014
|
+
deletedAt: Date | null;
|
78015
|
+
fileName: string;
|
78016
|
+
fileKey: string;
|
78017
|
+
bucketName: string;
|
78018
|
+
fileSize: number;
|
78019
|
+
fileUrl: string | null;
|
78020
|
+
}[];
|
78021
|
+
}[];
|
78022
|
+
company: {
|
78023
|
+
id: string;
|
78024
|
+
createdAt: Date;
|
78025
|
+
updatedAt: Date;
|
78026
|
+
deletedAt: Date | null;
|
78027
|
+
address?: string | null | undefined;
|
78028
|
+
name?: string | undefined;
|
78029
|
+
phone?: string | null | undefined;
|
78030
|
+
industry?: string | null | undefined;
|
78031
|
+
} | null;
|
78032
|
+
notes: string | null;
|
78033
|
+
contactProfile: string | null;
|
78034
|
+
socialProfileUrl: string | null;
|
78035
|
+
tags: {
|
78036
|
+
id: string;
|
78037
|
+
name: string;
|
78038
|
+
createdAt: Date;
|
78039
|
+
updatedAt: Date;
|
78040
|
+
deletedAt: Date | null;
|
78041
|
+
}[];
|
78042
|
+
contactEmails: {
|
78043
|
+
id: string;
|
78044
|
+
isPrimary: boolean;
|
78045
|
+
email: string;
|
78046
|
+
createdAt: Date;
|
78047
|
+
updatedAt: Date;
|
78048
|
+
deletedAt: Date | null;
|
78049
|
+
}[];
|
78050
|
+
contactPhones: {
|
78051
|
+
id: string;
|
78052
|
+
isPrimary: boolean;
|
78053
|
+
createdAt: Date;
|
78054
|
+
updatedAt: Date;
|
78055
|
+
deletedAt: Date | null;
|
78056
|
+
phone: string;
|
78057
|
+
}[];
|
78058
|
+
activityLogs?: {
|
78059
|
+
id: string;
|
78060
|
+
description: string;
|
78061
|
+
createdAt: Date;
|
78062
|
+
updatedAt: Date;
|
78063
|
+
deletedAt: Date | null;
|
78064
|
+
entityId: string;
|
78065
|
+
entityType: {
|
78066
|
+
id: string;
|
78067
|
+
description: string | null;
|
78068
|
+
createdAt: Date;
|
78069
|
+
updatedAt: Date;
|
78070
|
+
deletedAt: Date | null;
|
78071
|
+
entity: string;
|
78072
|
+
};
|
78073
|
+
}[] | undefined;
|
78074
|
+
};
|
78075
|
+
channelId: string;
|
78076
|
+
socialPlatformId: string;
|
78077
|
+
}>;
|
78078
|
+
actor: z.ZodObject<{
|
78079
|
+
id: z.ZodString;
|
78080
|
+
createdAt: z.ZodDate;
|
78081
|
+
updatedAt: z.ZodDate;
|
78082
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78083
|
+
name: z.ZodString;
|
78084
|
+
email: z.ZodString;
|
78085
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
78086
|
+
password: z.ZodString;
|
78087
|
+
address: z.ZodNullable<z.ZodString>;
|
78088
|
+
phone: z.ZodNullable<z.ZodString>;
|
78089
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
78090
|
+
roles: z.ZodArray<z.ZodObject<{
|
78091
|
+
id: z.ZodString;
|
78092
|
+
createdAt: z.ZodDate;
|
78093
|
+
updatedAt: z.ZodDate;
|
78094
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78095
|
+
systemName: z.ZodString;
|
78096
|
+
displayName: z.ZodString;
|
78097
|
+
description: z.ZodNullable<z.ZodString>;
|
78098
|
+
permissions: z.ZodArray<z.ZodObject<{
|
78099
|
+
id: z.ZodString;
|
78100
|
+
createdAt: z.ZodDate;
|
78101
|
+
updatedAt: z.ZodDate;
|
78102
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78103
|
+
systemName: z.ZodString;
|
78104
|
+
displayName: z.ZodString;
|
78105
|
+
description: z.ZodNullable<z.ZodString>;
|
78106
|
+
}, "strip", z.ZodTypeAny, {
|
78107
|
+
id: string;
|
78108
|
+
description: string | null;
|
78109
|
+
createdAt: Date;
|
78110
|
+
updatedAt: Date;
|
78111
|
+
deletedAt: Date | null;
|
78112
|
+
systemName: string;
|
78113
|
+
displayName: string;
|
78114
|
+
}, {
|
78115
|
+
id: string;
|
78116
|
+
description: string | null;
|
78117
|
+
createdAt: Date;
|
78118
|
+
updatedAt: Date;
|
78119
|
+
deletedAt: Date | null;
|
78120
|
+
systemName: string;
|
78121
|
+
displayName: string;
|
78122
|
+
}>, "many">;
|
78123
|
+
}, "strip", z.ZodTypeAny, {
|
78124
|
+
id: string;
|
78125
|
+
description: string | null;
|
78126
|
+
createdAt: Date;
|
78127
|
+
updatedAt: Date;
|
78128
|
+
deletedAt: Date | null;
|
78129
|
+
systemName: string;
|
78130
|
+
displayName: string;
|
78131
|
+
permissions: {
|
78132
|
+
id: string;
|
78133
|
+
description: string | null;
|
78134
|
+
createdAt: Date;
|
78135
|
+
updatedAt: Date;
|
78136
|
+
deletedAt: Date | null;
|
78137
|
+
systemName: string;
|
78138
|
+
displayName: string;
|
78139
|
+
}[];
|
78140
|
+
}, {
|
78141
|
+
id: string;
|
78142
|
+
description: string | null;
|
78143
|
+
createdAt: Date;
|
78144
|
+
updatedAt: Date;
|
78145
|
+
deletedAt: Date | null;
|
78146
|
+
systemName: string;
|
78147
|
+
displayName: string;
|
78148
|
+
permissions: {
|
78149
|
+
id: string;
|
78150
|
+
description: string | null;
|
78151
|
+
createdAt: Date;
|
78152
|
+
updatedAt: Date;
|
78153
|
+
deletedAt: Date | null;
|
78154
|
+
systemName: string;
|
78155
|
+
displayName: string;
|
78156
|
+
}[];
|
78157
|
+
}>, "many">;
|
78158
|
+
extension: z.ZodObject<{
|
78159
|
+
id: z.ZodString;
|
78160
|
+
createdAt: z.ZodDate;
|
78161
|
+
updatedAt: z.ZodDate;
|
78162
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78163
|
+
userId: z.ZodNullable<z.ZodString>;
|
78164
|
+
sipServerUrl: z.ZodString;
|
78165
|
+
sipUserName: z.ZodString;
|
78166
|
+
webphoneLoginUser: z.ZodString;
|
78167
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
78168
|
+
extensionName: z.ZodString;
|
78169
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
78170
|
+
}, "strip", z.ZodTypeAny, {
|
78171
|
+
id: string;
|
78172
|
+
createdAt: Date;
|
78173
|
+
updatedAt: Date;
|
78174
|
+
deletedAt: Date | null;
|
78175
|
+
userId: string | null;
|
78176
|
+
sipServerUrl: string;
|
78177
|
+
sipUserName: string;
|
78178
|
+
webphoneLoginUser: string;
|
78179
|
+
extensionId: string | null;
|
78180
|
+
extensionName: string;
|
78181
|
+
telephonySignature: string | null;
|
78182
|
+
}, {
|
78183
|
+
id: string;
|
78184
|
+
createdAt: Date;
|
78185
|
+
updatedAt: Date;
|
78186
|
+
deletedAt: Date | null;
|
78187
|
+
userId: string | null;
|
78188
|
+
sipServerUrl: string;
|
78189
|
+
sipUserName: string;
|
78190
|
+
webphoneLoginUser: string;
|
78191
|
+
extensionId: string | null;
|
78192
|
+
extensionName: string;
|
78193
|
+
telephonySignature: string | null;
|
78194
|
+
}>;
|
78195
|
+
}, "strip", z.ZodTypeAny, {
|
78196
|
+
id: string;
|
78197
|
+
address: string | null;
|
78198
|
+
name: string;
|
78199
|
+
email: string;
|
78200
|
+
createdAt: Date;
|
78201
|
+
updatedAt: Date;
|
78202
|
+
deletedAt: Date | null;
|
78203
|
+
emailVerifiedAt: Date | null;
|
78204
|
+
password: string;
|
78205
|
+
phone: string | null;
|
78206
|
+
notificationCount: number | null;
|
78207
|
+
roles: {
|
78208
|
+
id: string;
|
78209
|
+
description: string | null;
|
78210
|
+
createdAt: Date;
|
78211
|
+
updatedAt: Date;
|
78212
|
+
deletedAt: Date | null;
|
78213
|
+
systemName: string;
|
78214
|
+
displayName: string;
|
78215
|
+
permissions: {
|
78216
|
+
id: string;
|
78217
|
+
description: string | null;
|
78218
|
+
createdAt: Date;
|
78219
|
+
updatedAt: Date;
|
78220
|
+
deletedAt: Date | null;
|
78221
|
+
systemName: string;
|
78222
|
+
displayName: string;
|
78223
|
+
}[];
|
78224
|
+
}[];
|
78225
|
+
extension: {
|
78226
|
+
id: string;
|
78227
|
+
createdAt: Date;
|
78228
|
+
updatedAt: Date;
|
78229
|
+
deletedAt: Date | null;
|
78230
|
+
userId: string | null;
|
78231
|
+
sipServerUrl: string;
|
78232
|
+
sipUserName: string;
|
78233
|
+
webphoneLoginUser: string;
|
78234
|
+
extensionId: string | null;
|
78235
|
+
extensionName: string;
|
78236
|
+
telephonySignature: string | null;
|
78237
|
+
};
|
78238
|
+
}, {
|
78239
|
+
id: string;
|
78240
|
+
address: string | null;
|
78241
|
+
name: string;
|
78242
|
+
email: string;
|
78243
|
+
createdAt: Date;
|
78244
|
+
updatedAt: Date;
|
78245
|
+
deletedAt: Date | null;
|
78246
|
+
emailVerifiedAt: Date | null;
|
78247
|
+
password: string;
|
78248
|
+
phone: string | null;
|
78249
|
+
notificationCount: number | null;
|
78250
|
+
roles: {
|
78251
|
+
id: string;
|
78252
|
+
description: string | null;
|
78253
|
+
createdAt: Date;
|
78254
|
+
updatedAt: Date;
|
78255
|
+
deletedAt: Date | null;
|
78256
|
+
systemName: string;
|
78257
|
+
displayName: string;
|
78258
|
+
permissions: {
|
78259
|
+
id: string;
|
78260
|
+
description: string | null;
|
78261
|
+
createdAt: Date;
|
78262
|
+
updatedAt: Date;
|
78263
|
+
deletedAt: Date | null;
|
78264
|
+
systemName: string;
|
78265
|
+
displayName: string;
|
78266
|
+
}[];
|
78267
|
+
}[];
|
78268
|
+
extension: {
|
78269
|
+
id: string;
|
78270
|
+
createdAt: Date;
|
78271
|
+
updatedAt: Date;
|
78272
|
+
deletedAt: Date | null;
|
78273
|
+
userId: string | null;
|
78274
|
+
sipServerUrl: string;
|
78275
|
+
sipUserName: string;
|
78276
|
+
webphoneLoginUser: string;
|
78277
|
+
extensionId: string | null;
|
78278
|
+
extensionName: string;
|
78279
|
+
telephonySignature: string | null;
|
78280
|
+
};
|
78281
|
+
}>;
|
78282
|
+
assignee: z.ZodObject<{
|
78283
|
+
id: z.ZodString;
|
78284
|
+
createdAt: z.ZodDate;
|
78285
|
+
updatedAt: z.ZodDate;
|
78286
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78287
|
+
name: z.ZodString;
|
78288
|
+
email: z.ZodString;
|
78289
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
78290
|
+
password: z.ZodString;
|
78291
|
+
address: z.ZodNullable<z.ZodString>;
|
78292
|
+
phone: z.ZodNullable<z.ZodString>;
|
78293
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
78294
|
+
roles: z.ZodArray<z.ZodObject<{
|
78295
|
+
id: z.ZodString;
|
78296
|
+
createdAt: z.ZodDate;
|
78297
|
+
updatedAt: z.ZodDate;
|
78298
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78299
|
+
systemName: z.ZodString;
|
78300
|
+
displayName: z.ZodString;
|
78301
|
+
description: z.ZodNullable<z.ZodString>;
|
78302
|
+
permissions: z.ZodArray<z.ZodObject<{
|
78303
|
+
id: z.ZodString;
|
78304
|
+
createdAt: z.ZodDate;
|
78305
|
+
updatedAt: z.ZodDate;
|
78306
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78307
|
+
systemName: z.ZodString;
|
78308
|
+
displayName: z.ZodString;
|
78309
|
+
description: z.ZodNullable<z.ZodString>;
|
78310
|
+
}, "strip", z.ZodTypeAny, {
|
78311
|
+
id: string;
|
78312
|
+
description: string | null;
|
78313
|
+
createdAt: Date;
|
78314
|
+
updatedAt: Date;
|
78315
|
+
deletedAt: Date | null;
|
78316
|
+
systemName: string;
|
78317
|
+
displayName: string;
|
78318
|
+
}, {
|
78319
|
+
id: string;
|
78320
|
+
description: string | null;
|
78321
|
+
createdAt: Date;
|
78322
|
+
updatedAt: Date;
|
78323
|
+
deletedAt: Date | null;
|
78324
|
+
systemName: string;
|
78325
|
+
displayName: string;
|
78326
|
+
}>, "many">;
|
78327
|
+
}, "strip", z.ZodTypeAny, {
|
78328
|
+
id: string;
|
78329
|
+
description: string | null;
|
78330
|
+
createdAt: Date;
|
78331
|
+
updatedAt: Date;
|
78332
|
+
deletedAt: Date | null;
|
78333
|
+
systemName: string;
|
78334
|
+
displayName: string;
|
78335
|
+
permissions: {
|
78336
|
+
id: string;
|
78337
|
+
description: string | null;
|
78338
|
+
createdAt: Date;
|
78339
|
+
updatedAt: Date;
|
78340
|
+
deletedAt: Date | null;
|
78341
|
+
systemName: string;
|
78342
|
+
displayName: string;
|
78343
|
+
}[];
|
78344
|
+
}, {
|
78345
|
+
id: string;
|
78346
|
+
description: string | null;
|
78347
|
+
createdAt: Date;
|
78348
|
+
updatedAt: Date;
|
78349
|
+
deletedAt: Date | null;
|
78350
|
+
systemName: string;
|
78351
|
+
displayName: string;
|
78352
|
+
permissions: {
|
78353
|
+
id: string;
|
78354
|
+
description: string | null;
|
78355
|
+
createdAt: Date;
|
78356
|
+
updatedAt: Date;
|
78357
|
+
deletedAt: Date | null;
|
78358
|
+
systemName: string;
|
78359
|
+
displayName: string;
|
78360
|
+
}[];
|
78361
|
+
}>, "many">;
|
78362
|
+
extension: z.ZodObject<{
|
78363
|
+
id: z.ZodString;
|
78364
|
+
createdAt: z.ZodDate;
|
78365
|
+
updatedAt: z.ZodDate;
|
78366
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78367
|
+
userId: z.ZodNullable<z.ZodString>;
|
78368
|
+
sipServerUrl: z.ZodString;
|
78369
|
+
sipUserName: z.ZodString;
|
78370
|
+
webphoneLoginUser: z.ZodString;
|
78371
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
78372
|
+
extensionName: z.ZodString;
|
78373
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
78374
|
+
}, "strip", z.ZodTypeAny, {
|
78375
|
+
id: string;
|
78376
|
+
createdAt: Date;
|
78377
|
+
updatedAt: Date;
|
78378
|
+
deletedAt: Date | null;
|
78379
|
+
userId: string | null;
|
78380
|
+
sipServerUrl: string;
|
78381
|
+
sipUserName: string;
|
78382
|
+
webphoneLoginUser: string;
|
78383
|
+
extensionId: string | null;
|
78384
|
+
extensionName: string;
|
78385
|
+
telephonySignature: string | null;
|
78386
|
+
}, {
|
78387
|
+
id: string;
|
78388
|
+
createdAt: Date;
|
78389
|
+
updatedAt: Date;
|
78390
|
+
deletedAt: Date | null;
|
78391
|
+
userId: string | null;
|
78392
|
+
sipServerUrl: string;
|
78393
|
+
sipUserName: string;
|
78394
|
+
webphoneLoginUser: string;
|
78395
|
+
extensionId: string | null;
|
78396
|
+
extensionName: string;
|
78397
|
+
telephonySignature: string | null;
|
78398
|
+
}>;
|
78399
|
+
}, "strip", z.ZodTypeAny, {
|
78400
|
+
id: string;
|
78401
|
+
address: string | null;
|
78402
|
+
name: string;
|
78403
|
+
email: string;
|
78404
|
+
createdAt: Date;
|
78405
|
+
updatedAt: Date;
|
78406
|
+
deletedAt: Date | null;
|
78407
|
+
emailVerifiedAt: Date | null;
|
78408
|
+
password: string;
|
78409
|
+
phone: string | null;
|
78410
|
+
notificationCount: number | null;
|
78411
|
+
roles: {
|
78412
|
+
id: string;
|
78413
|
+
description: string | null;
|
78414
|
+
createdAt: Date;
|
78415
|
+
updatedAt: Date;
|
78416
|
+
deletedAt: Date | null;
|
78417
|
+
systemName: string;
|
78418
|
+
displayName: string;
|
78419
|
+
permissions: {
|
78420
|
+
id: string;
|
78421
|
+
description: string | null;
|
78422
|
+
createdAt: Date;
|
78423
|
+
updatedAt: Date;
|
78424
|
+
deletedAt: Date | null;
|
78425
|
+
systemName: string;
|
78426
|
+
displayName: string;
|
78427
|
+
}[];
|
78428
|
+
}[];
|
78429
|
+
extension: {
|
78430
|
+
id: string;
|
78431
|
+
createdAt: Date;
|
78432
|
+
updatedAt: Date;
|
78433
|
+
deletedAt: Date | null;
|
78434
|
+
userId: string | null;
|
78435
|
+
sipServerUrl: string;
|
78436
|
+
sipUserName: string;
|
78437
|
+
webphoneLoginUser: string;
|
78438
|
+
extensionId: string | null;
|
78439
|
+
extensionName: string;
|
78440
|
+
telephonySignature: string | null;
|
78441
|
+
};
|
78442
|
+
}, {
|
78443
|
+
id: string;
|
78444
|
+
address: string | null;
|
78445
|
+
name: string;
|
78446
|
+
email: string;
|
78447
|
+
createdAt: Date;
|
78448
|
+
updatedAt: Date;
|
78449
|
+
deletedAt: Date | null;
|
78450
|
+
emailVerifiedAt: Date | null;
|
78451
|
+
password: string;
|
78452
|
+
phone: string | null;
|
78453
|
+
notificationCount: number | null;
|
78454
|
+
roles: {
|
78455
|
+
id: string;
|
78456
|
+
description: string | null;
|
78457
|
+
createdAt: Date;
|
78458
|
+
updatedAt: Date;
|
78459
|
+
deletedAt: Date | null;
|
78460
|
+
systemName: string;
|
78461
|
+
displayName: string;
|
78462
|
+
permissions: {
|
78463
|
+
id: string;
|
78464
|
+
description: string | null;
|
78465
|
+
createdAt: Date;
|
78466
|
+
updatedAt: Date;
|
78467
|
+
deletedAt: Date | null;
|
78468
|
+
systemName: string;
|
78469
|
+
displayName: string;
|
78470
|
+
}[];
|
78471
|
+
}[];
|
78472
|
+
extension: {
|
78473
|
+
id: string;
|
78474
|
+
createdAt: Date;
|
78475
|
+
updatedAt: Date;
|
78476
|
+
deletedAt: Date | null;
|
78477
|
+
userId: string | null;
|
78478
|
+
sipServerUrl: string;
|
78479
|
+
sipUserName: string;
|
78480
|
+
webphoneLoginUser: string;
|
78481
|
+
extensionId: string | null;
|
78482
|
+
extensionName: string;
|
78483
|
+
telephonySignature: string | null;
|
78484
|
+
};
|
78485
|
+
}>;
|
78486
|
+
channel: z.ZodObject<{
|
78487
|
+
id: z.ZodString;
|
78488
|
+
createdAt: z.ZodDate;
|
78489
|
+
updatedAt: z.ZodDate;
|
78490
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78491
|
+
name: z.ZodString;
|
78492
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
|
78493
|
+
metadata: z.ZodObject<{
|
78494
|
+
id: z.ZodString;
|
78495
|
+
name: z.ZodString;
|
78496
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
78497
|
+
channelSecret: z.ZodOptional<z.ZodString>;
|
78498
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
78499
|
+
lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
78500
|
+
}, "strip", z.ZodTypeAny, {
|
78501
|
+
id: string;
|
78502
|
+
name: string;
|
78503
|
+
accessToken?: string | undefined;
|
78504
|
+
channelSecret?: string | undefined;
|
78505
|
+
additionalCredentials?: any;
|
78506
|
+
lineRichMenuId?: string | null | undefined;
|
78507
|
+
}, {
|
78508
|
+
id: string;
|
78509
|
+
name: string;
|
78510
|
+
accessToken?: string | undefined;
|
78511
|
+
channelSecret?: string | undefined;
|
78512
|
+
additionalCredentials?: any;
|
78513
|
+
lineRichMenuId?: string | null | undefined;
|
78514
|
+
}>;
|
78515
|
+
brandName: z.ZodString;
|
78516
|
+
platformId: z.ZodString;
|
78517
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
78518
|
+
isReloginRequired: z.ZodBoolean;
|
78519
|
+
connectedUserName: z.ZodString;
|
78520
|
+
connectedUserId: z.ZodString;
|
78521
|
+
botpressBot: z.ZodNullable<z.ZodObject<{
|
78522
|
+
id: z.ZodString;
|
78523
|
+
name: z.ZodString;
|
78524
|
+
botId: z.ZodString;
|
78525
|
+
integrationId: z.ZodString;
|
78526
|
+
accessToken: z.ZodString;
|
78527
|
+
}, "strip", z.ZodTypeAny, {
|
78528
|
+
id: string;
|
78529
|
+
name: string;
|
78530
|
+
accessToken: string;
|
78531
|
+
botId: string;
|
78532
|
+
integrationId: string;
|
78533
|
+
}, {
|
78534
|
+
id: string;
|
78535
|
+
name: string;
|
78536
|
+
accessToken: string;
|
78537
|
+
botId: string;
|
78538
|
+
integrationId: string;
|
78539
|
+
}>>;
|
78540
|
+
actor: z.ZodObject<{
|
78541
|
+
id: z.ZodString;
|
78542
|
+
createdAt: z.ZodDate;
|
78543
|
+
updatedAt: z.ZodDate;
|
78544
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78545
|
+
name: z.ZodString;
|
78546
|
+
email: z.ZodString;
|
78547
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
78548
|
+
password: z.ZodString;
|
78549
|
+
address: z.ZodNullable<z.ZodString>;
|
78550
|
+
phone: z.ZodNullable<z.ZodString>;
|
78551
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
78552
|
+
roles: z.ZodArray<z.ZodObject<{
|
78553
|
+
id: z.ZodString;
|
78554
|
+
createdAt: z.ZodDate;
|
78555
|
+
updatedAt: z.ZodDate;
|
78556
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78557
|
+
systemName: z.ZodString;
|
78558
|
+
displayName: z.ZodString;
|
78559
|
+
description: z.ZodNullable<z.ZodString>;
|
78560
|
+
permissions: z.ZodArray<z.ZodObject<{
|
78561
|
+
id: z.ZodString;
|
78562
|
+
createdAt: z.ZodDate;
|
78563
|
+
updatedAt: z.ZodDate;
|
78564
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78565
|
+
systemName: z.ZodString;
|
78566
|
+
displayName: z.ZodString;
|
78567
|
+
description: z.ZodNullable<z.ZodString>;
|
78568
|
+
}, "strip", z.ZodTypeAny, {
|
78569
|
+
id: string;
|
78570
|
+
description: string | null;
|
78571
|
+
createdAt: Date;
|
78572
|
+
updatedAt: Date;
|
78573
|
+
deletedAt: Date | null;
|
78574
|
+
systemName: string;
|
78575
|
+
displayName: string;
|
78576
|
+
}, {
|
78577
|
+
id: string;
|
78578
|
+
description: string | null;
|
78579
|
+
createdAt: Date;
|
78580
|
+
updatedAt: Date;
|
78581
|
+
deletedAt: Date | null;
|
78582
|
+
systemName: string;
|
78583
|
+
displayName: string;
|
78584
|
+
}>, "many">;
|
78585
|
+
}, "strip", z.ZodTypeAny, {
|
78586
|
+
id: string;
|
78587
|
+
description: string | null;
|
78588
|
+
createdAt: Date;
|
78589
|
+
updatedAt: Date;
|
78590
|
+
deletedAt: Date | null;
|
78591
|
+
systemName: string;
|
78592
|
+
displayName: string;
|
78593
|
+
permissions: {
|
78594
|
+
id: string;
|
78595
|
+
description: string | null;
|
78596
|
+
createdAt: Date;
|
78597
|
+
updatedAt: Date;
|
78598
|
+
deletedAt: Date | null;
|
78599
|
+
systemName: string;
|
78600
|
+
displayName: string;
|
78601
|
+
}[];
|
78602
|
+
}, {
|
78603
|
+
id: string;
|
78604
|
+
description: string | null;
|
78605
|
+
createdAt: Date;
|
78606
|
+
updatedAt: Date;
|
78607
|
+
deletedAt: Date | null;
|
78608
|
+
systemName: string;
|
78609
|
+
displayName: string;
|
78610
|
+
permissions: {
|
78611
|
+
id: string;
|
78612
|
+
description: string | null;
|
78613
|
+
createdAt: Date;
|
78614
|
+
updatedAt: Date;
|
78615
|
+
deletedAt: Date | null;
|
78616
|
+
systemName: string;
|
78617
|
+
displayName: string;
|
78618
|
+
}[];
|
78619
|
+
}>, "many">;
|
78620
|
+
extension: z.ZodObject<{
|
78621
|
+
id: z.ZodString;
|
78622
|
+
createdAt: z.ZodDate;
|
78623
|
+
updatedAt: z.ZodDate;
|
78624
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78625
|
+
userId: z.ZodNullable<z.ZodString>;
|
78626
|
+
sipServerUrl: z.ZodString;
|
78627
|
+
sipUserName: z.ZodString;
|
78628
|
+
webphoneLoginUser: z.ZodString;
|
78629
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
78630
|
+
extensionName: z.ZodString;
|
78631
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
78632
|
+
}, "strip", z.ZodTypeAny, {
|
78633
|
+
id: string;
|
78634
|
+
createdAt: Date;
|
78635
|
+
updatedAt: Date;
|
78636
|
+
deletedAt: Date | null;
|
78637
|
+
userId: string | null;
|
78638
|
+
sipServerUrl: string;
|
78639
|
+
sipUserName: string;
|
78640
|
+
webphoneLoginUser: string;
|
78641
|
+
extensionId: string | null;
|
78642
|
+
extensionName: string;
|
78643
|
+
telephonySignature: string | null;
|
78644
|
+
}, {
|
78645
|
+
id: string;
|
78646
|
+
createdAt: Date;
|
78647
|
+
updatedAt: Date;
|
78648
|
+
deletedAt: Date | null;
|
78649
|
+
userId: string | null;
|
78650
|
+
sipServerUrl: string;
|
78651
|
+
sipUserName: string;
|
78652
|
+
webphoneLoginUser: string;
|
78653
|
+
extensionId: string | null;
|
78654
|
+
extensionName: string;
|
78655
|
+
telephonySignature: string | null;
|
78656
|
+
}>;
|
78657
|
+
}, "strip", z.ZodTypeAny, {
|
78658
|
+
id: string;
|
78659
|
+
address: string | null;
|
78660
|
+
name: string;
|
78661
|
+
email: string;
|
78662
|
+
createdAt: Date;
|
78663
|
+
updatedAt: Date;
|
78664
|
+
deletedAt: Date | null;
|
78665
|
+
emailVerifiedAt: Date | null;
|
78666
|
+
password: string;
|
78667
|
+
phone: string | null;
|
78668
|
+
notificationCount: number | null;
|
78669
|
+
roles: {
|
78670
|
+
id: string;
|
78671
|
+
description: string | null;
|
78672
|
+
createdAt: Date;
|
78673
|
+
updatedAt: Date;
|
78674
|
+
deletedAt: Date | null;
|
78675
|
+
systemName: string;
|
78676
|
+
displayName: string;
|
78677
|
+
permissions: {
|
78678
|
+
id: string;
|
78679
|
+
description: string | null;
|
78680
|
+
createdAt: Date;
|
78681
|
+
updatedAt: Date;
|
78682
|
+
deletedAt: Date | null;
|
78683
|
+
systemName: string;
|
78684
|
+
displayName: string;
|
78685
|
+
}[];
|
78686
|
+
}[];
|
78687
|
+
extension: {
|
78688
|
+
id: string;
|
78689
|
+
createdAt: Date;
|
78690
|
+
updatedAt: Date;
|
78691
|
+
deletedAt: Date | null;
|
78692
|
+
userId: string | null;
|
78693
|
+
sipServerUrl: string;
|
78694
|
+
sipUserName: string;
|
78695
|
+
webphoneLoginUser: string;
|
78696
|
+
extensionId: string | null;
|
78697
|
+
extensionName: string;
|
78698
|
+
telephonySignature: string | null;
|
78699
|
+
};
|
78700
|
+
}, {
|
78701
|
+
id: string;
|
78702
|
+
address: string | null;
|
78703
|
+
name: string;
|
78704
|
+
email: string;
|
78705
|
+
createdAt: Date;
|
78706
|
+
updatedAt: Date;
|
78707
|
+
deletedAt: Date | null;
|
78708
|
+
emailVerifiedAt: Date | null;
|
78709
|
+
password: string;
|
78710
|
+
phone: string | null;
|
78711
|
+
notificationCount: number | null;
|
78712
|
+
roles: {
|
78713
|
+
id: string;
|
78714
|
+
description: string | null;
|
78715
|
+
createdAt: Date;
|
78716
|
+
updatedAt: Date;
|
78717
|
+
deletedAt: Date | null;
|
78718
|
+
systemName: string;
|
78719
|
+
displayName: string;
|
78720
|
+
permissions: {
|
78721
|
+
id: string;
|
78722
|
+
description: string | null;
|
78723
|
+
createdAt: Date;
|
78724
|
+
updatedAt: Date;
|
78725
|
+
deletedAt: Date | null;
|
78726
|
+
systemName: string;
|
78727
|
+
displayName: string;
|
78728
|
+
}[];
|
78729
|
+
}[];
|
78730
|
+
extension: {
|
78731
|
+
id: string;
|
78732
|
+
createdAt: Date;
|
78733
|
+
updatedAt: Date;
|
78734
|
+
deletedAt: Date | null;
|
78735
|
+
userId: string | null;
|
78736
|
+
sipServerUrl: string;
|
78737
|
+
sipUserName: string;
|
78738
|
+
webphoneLoginUser: string;
|
78739
|
+
extensionId: string | null;
|
78740
|
+
extensionName: string;
|
78741
|
+
telephonySignature: string | null;
|
78742
|
+
};
|
78743
|
+
}>;
|
78744
|
+
}, "strip", z.ZodTypeAny, {
|
78745
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
78746
|
+
id: string;
|
78747
|
+
name: string;
|
78748
|
+
metadata: {
|
78749
|
+
id: string;
|
78750
|
+
name: string;
|
78751
|
+
accessToken?: string | undefined;
|
78752
|
+
channelSecret?: string | undefined;
|
78753
|
+
additionalCredentials?: any;
|
78754
|
+
lineRichMenuId?: string | null | undefined;
|
78755
|
+
};
|
78756
|
+
status: boolean;
|
78757
|
+
createdAt: Date;
|
78758
|
+
updatedAt: Date;
|
78759
|
+
deletedAt: Date | null;
|
78760
|
+
actor: {
|
78761
|
+
id: string;
|
78762
|
+
address: string | null;
|
78763
|
+
name: string;
|
78764
|
+
email: string;
|
78765
|
+
createdAt: Date;
|
78766
|
+
updatedAt: Date;
|
78767
|
+
deletedAt: Date | null;
|
78768
|
+
emailVerifiedAt: Date | null;
|
78769
|
+
password: string;
|
78770
|
+
phone: string | null;
|
78771
|
+
notificationCount: number | null;
|
78772
|
+
roles: {
|
78773
|
+
id: string;
|
78774
|
+
description: string | null;
|
78775
|
+
createdAt: Date;
|
78776
|
+
updatedAt: Date;
|
78777
|
+
deletedAt: Date | null;
|
78778
|
+
systemName: string;
|
78779
|
+
displayName: string;
|
78780
|
+
permissions: {
|
78781
|
+
id: string;
|
78782
|
+
description: string | null;
|
78783
|
+
createdAt: Date;
|
78784
|
+
updatedAt: Date;
|
78785
|
+
deletedAt: Date | null;
|
78786
|
+
systemName: string;
|
78787
|
+
displayName: string;
|
78788
|
+
}[];
|
78789
|
+
}[];
|
78790
|
+
extension: {
|
78791
|
+
id: string;
|
78792
|
+
createdAt: Date;
|
78793
|
+
updatedAt: Date;
|
78794
|
+
deletedAt: Date | null;
|
78795
|
+
userId: string | null;
|
78796
|
+
sipServerUrl: string;
|
78797
|
+
sipUserName: string;
|
78798
|
+
webphoneLoginUser: string;
|
78799
|
+
extensionId: string | null;
|
78800
|
+
extensionName: string;
|
78801
|
+
telephonySignature: string | null;
|
78802
|
+
};
|
78803
|
+
};
|
78804
|
+
brandName: string;
|
78805
|
+
platformId: string;
|
78806
|
+
isReloginRequired: boolean;
|
78807
|
+
connectedUserName: string;
|
78808
|
+
connectedUserId: string;
|
78809
|
+
botpressBot: {
|
78810
|
+
id: string;
|
78811
|
+
name: string;
|
78812
|
+
accessToken: string;
|
78813
|
+
botId: string;
|
78814
|
+
integrationId: string;
|
78815
|
+
} | null;
|
78816
|
+
}, {
|
78817
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
78818
|
+
id: string;
|
78819
|
+
name: string;
|
78820
|
+
metadata: {
|
78821
|
+
id: string;
|
78822
|
+
name: string;
|
78823
|
+
accessToken?: string | undefined;
|
78824
|
+
channelSecret?: string | undefined;
|
78825
|
+
additionalCredentials?: any;
|
78826
|
+
lineRichMenuId?: string | null | undefined;
|
78827
|
+
};
|
78828
|
+
status: boolean;
|
78829
|
+
createdAt: Date;
|
78830
|
+
updatedAt: Date;
|
78831
|
+
deletedAt: Date | null;
|
78832
|
+
actor: {
|
78833
|
+
id: string;
|
78834
|
+
address: string | null;
|
78835
|
+
name: string;
|
78836
|
+
email: string;
|
78837
|
+
createdAt: Date;
|
78838
|
+
updatedAt: Date;
|
78839
|
+
deletedAt: Date | null;
|
78840
|
+
emailVerifiedAt: Date | null;
|
78841
|
+
password: string;
|
78842
|
+
phone: string | null;
|
78843
|
+
notificationCount: number | null;
|
78844
|
+
roles: {
|
78845
|
+
id: string;
|
78846
|
+
description: string | null;
|
78847
|
+
createdAt: Date;
|
78848
|
+
updatedAt: Date;
|
78849
|
+
deletedAt: Date | null;
|
78850
|
+
systemName: string;
|
78851
|
+
displayName: string;
|
78852
|
+
permissions: {
|
78853
|
+
id: string;
|
78854
|
+
description: string | null;
|
78855
|
+
createdAt: Date;
|
78856
|
+
updatedAt: Date;
|
78857
|
+
deletedAt: Date | null;
|
78858
|
+
systemName: string;
|
78859
|
+
displayName: string;
|
78860
|
+
}[];
|
78861
|
+
}[];
|
78862
|
+
extension: {
|
78863
|
+
id: string;
|
78864
|
+
createdAt: Date;
|
78865
|
+
updatedAt: Date;
|
78866
|
+
deletedAt: Date | null;
|
78867
|
+
userId: string | null;
|
78868
|
+
sipServerUrl: string;
|
78869
|
+
sipUserName: string;
|
78870
|
+
webphoneLoginUser: string;
|
78871
|
+
extensionId: string | null;
|
78872
|
+
extensionName: string;
|
78873
|
+
telephonySignature: string | null;
|
78874
|
+
};
|
78875
|
+
};
|
78876
|
+
brandName: string;
|
78877
|
+
platformId: string;
|
78878
|
+
isReloginRequired: boolean;
|
78879
|
+
connectedUserName: string;
|
78880
|
+
connectedUserId: string;
|
78881
|
+
botpressBot: {
|
78882
|
+
id: string;
|
78883
|
+
name: string;
|
78884
|
+
accessToken: string;
|
78885
|
+
botId: string;
|
78886
|
+
integrationId: string;
|
78887
|
+
} | null;
|
78888
|
+
}>;
|
78889
|
+
cxlog: z.ZodObject<{
|
78890
|
+
id: z.ZodString;
|
78891
|
+
createdAt: z.ZodDate;
|
78892
|
+
updatedAt: z.ZodDate;
|
78893
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78894
|
+
caseId: z.ZodNumber;
|
78895
|
+
entityId: z.ZodString;
|
78896
|
+
entityName: z.ZodString;
|
78897
|
+
contactId: z.ZodNullable<z.ZodString>;
|
78898
|
+
channel: z.ZodNullable<z.ZodString>;
|
78899
|
+
queueId: z.ZodNullable<z.ZodString>;
|
78900
|
+
agentId: z.ZodNullable<z.ZodString>;
|
78901
|
+
direction: z.ZodNullable<z.ZodString>;
|
78902
|
+
startedDate: z.ZodNullable<z.ZodDate>;
|
78903
|
+
handledTime: z.ZodNullable<z.ZodNumber>;
|
78904
|
+
firstResponseTime: z.ZodNullable<z.ZodNumber>;
|
78905
|
+
wrapUpForm: z.ZodNullable<z.ZodObject<{
|
78906
|
+
id: z.ZodString;
|
78907
|
+
createdAt: z.ZodDate;
|
78908
|
+
updatedAt: z.ZodDate;
|
78909
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78910
|
+
note: z.ZodNullable<z.ZodString>;
|
78911
|
+
disposition: z.ZodNullable<z.ZodString>;
|
78912
|
+
type: z.ZodString;
|
78913
|
+
tags: z.ZodArray<z.ZodObject<{
|
78914
|
+
id: z.ZodString;
|
78915
|
+
createdAt: z.ZodDate;
|
78916
|
+
updatedAt: z.ZodDate;
|
78917
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78918
|
+
name: z.ZodString;
|
78919
|
+
}, "strip", z.ZodTypeAny, {
|
78920
|
+
id: string;
|
78921
|
+
name: string;
|
78922
|
+
createdAt: Date;
|
78923
|
+
updatedAt: Date;
|
78924
|
+
deletedAt: Date | null;
|
78925
|
+
}, {
|
78926
|
+
id: string;
|
78927
|
+
name: string;
|
78928
|
+
createdAt: Date;
|
78929
|
+
updatedAt: Date;
|
78930
|
+
deletedAt: Date | null;
|
78931
|
+
}>, "many">;
|
78932
|
+
categories: z.ZodArray<z.ZodObject<{
|
78933
|
+
id: z.ZodString;
|
78934
|
+
createdAt: z.ZodDate;
|
78935
|
+
updatedAt: z.ZodDate;
|
78936
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
78937
|
+
value: z.ZodString;
|
78938
|
+
level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
78939
|
+
parentId: z.ZodNullable<z.ZodString>;
|
78940
|
+
childCategoryList: z.ZodArray<z.ZodObject<{
|
78941
|
+
id: z.ZodString;
|
78942
|
+
value: z.ZodString;
|
78943
|
+
level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
78944
|
+
parentId: z.ZodNullable<z.ZodString>;
|
78945
|
+
childCategoryList: z.ZodArray<z.ZodObject<{
|
78946
|
+
id: z.ZodString;
|
78947
|
+
value: z.ZodString;
|
78948
|
+
level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
78949
|
+
parentId: z.ZodNullable<z.ZodString>;
|
78950
|
+
childCategoryList: z.ZodArray<z.ZodAny, "many">;
|
78951
|
+
}, "strip", z.ZodTypeAny, {
|
78952
|
+
id: string;
|
78953
|
+
value: string;
|
78954
|
+
level: 2 | 1 | 3;
|
78955
|
+
parentId: string | null;
|
78956
|
+
childCategoryList: any[];
|
78957
|
+
}, {
|
78958
|
+
id: string;
|
78959
|
+
value: string;
|
78960
|
+
level: 2 | 1 | 3;
|
78961
|
+
parentId: string | null;
|
78962
|
+
childCategoryList: any[];
|
78963
|
+
}>, "many">;
|
78964
|
+
}, "strip", z.ZodTypeAny, {
|
78965
|
+
id: string;
|
78966
|
+
value: string;
|
78967
|
+
level: 2 | 1 | 3;
|
78968
|
+
parentId: string | null;
|
78969
|
+
childCategoryList: {
|
78970
|
+
id: string;
|
78971
|
+
value: string;
|
78972
|
+
level: 2 | 1 | 3;
|
78973
|
+
parentId: string | null;
|
78974
|
+
childCategoryList: any[];
|
78975
|
+
}[];
|
78976
|
+
}, {
|
78977
|
+
id: string;
|
78978
|
+
value: string;
|
78979
|
+
level: 2 | 1 | 3;
|
78980
|
+
parentId: string | null;
|
78981
|
+
childCategoryList: {
|
78982
|
+
id: string;
|
78983
|
+
value: string;
|
78984
|
+
level: 2 | 1 | 3;
|
78985
|
+
parentId: string | null;
|
78986
|
+
childCategoryList: any[];
|
78987
|
+
}[];
|
78988
|
+
}>, "many">;
|
78989
|
+
}, "strip", z.ZodTypeAny, {
|
78990
|
+
id: string;
|
78991
|
+
value: string;
|
78992
|
+
createdAt: Date;
|
78993
|
+
updatedAt: Date;
|
78994
|
+
deletedAt: Date | null;
|
78995
|
+
level: 2 | 1 | 3;
|
78996
|
+
parentId: string | null;
|
78997
|
+
childCategoryList: {
|
78998
|
+
id: string;
|
78999
|
+
value: string;
|
79000
|
+
level: 2 | 1 | 3;
|
79001
|
+
parentId: string | null;
|
79002
|
+
childCategoryList: {
|
79003
|
+
id: string;
|
79004
|
+
value: string;
|
79005
|
+
level: 2 | 1 | 3;
|
79006
|
+
parentId: string | null;
|
79007
|
+
childCategoryList: any[];
|
79008
|
+
}[];
|
79009
|
+
}[];
|
79010
|
+
}, {
|
79011
|
+
id: string;
|
79012
|
+
value: string;
|
79013
|
+
createdAt: Date;
|
79014
|
+
updatedAt: Date;
|
79015
|
+
deletedAt: Date | null;
|
79016
|
+
level: 2 | 1 | 3;
|
79017
|
+
parentId: string | null;
|
79018
|
+
childCategoryList: {
|
79019
|
+
id: string;
|
79020
|
+
value: string;
|
79021
|
+
level: 2 | 1 | 3;
|
79022
|
+
parentId: string | null;
|
79023
|
+
childCategoryList: {
|
79024
|
+
id: string;
|
79025
|
+
value: string;
|
79026
|
+
level: 2 | 1 | 3;
|
79027
|
+
parentId: string | null;
|
79028
|
+
childCategoryList: any[];
|
79029
|
+
}[];
|
79030
|
+
}[];
|
79031
|
+
}>, "many">;
|
79032
|
+
callFrom: z.ZodNullable<z.ZodString>;
|
79033
|
+
callTo: z.ZodNullable<z.ZodString>;
|
79034
|
+
customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
79035
|
+
id: z.ZodString;
|
79036
|
+
createdAt: z.ZodDate;
|
79037
|
+
updatedAt: z.ZodDate;
|
79038
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
79039
|
+
textValue: z.ZodNullable<z.ZodString>;
|
79040
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
79041
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
79042
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
79043
|
+
entityId: z.ZodString;
|
79044
|
+
attributeId: z.ZodString;
|
79045
|
+
}, "strip", z.ZodTypeAny, {
|
79046
|
+
id: string;
|
79047
|
+
createdAt: Date;
|
79048
|
+
updatedAt: Date;
|
79049
|
+
deletedAt: Date | null;
|
79050
|
+
entityId: string;
|
79051
|
+
attributeId: string;
|
79052
|
+
textValue: string | null;
|
79053
|
+
booleanValue: boolean | null;
|
79054
|
+
numberValue: number | null;
|
79055
|
+
dateValue: Date | null;
|
79056
|
+
}, {
|
79057
|
+
id: string;
|
79058
|
+
createdAt: Date;
|
79059
|
+
updatedAt: Date;
|
79060
|
+
deletedAt: Date | null;
|
79061
|
+
entityId: string;
|
79062
|
+
attributeId: string;
|
79063
|
+
textValue: string | null;
|
79064
|
+
booleanValue: boolean | null;
|
79065
|
+
numberValue: number | null;
|
79066
|
+
dateValue: Date | null;
|
79067
|
+
}>, "many">>>;
|
79068
|
+
}, "strip", z.ZodTypeAny, {
|
79069
|
+
type: string;
|
79070
|
+
id: string;
|
79071
|
+
disposition: string | null;
|
79072
|
+
createdAt: Date;
|
79073
|
+
updatedAt: Date;
|
79074
|
+
deletedAt: Date | null;
|
79075
|
+
categories: {
|
79076
|
+
id: string;
|
79077
|
+
value: string;
|
79078
|
+
createdAt: Date;
|
79079
|
+
updatedAt: Date;
|
79080
|
+
deletedAt: Date | null;
|
79081
|
+
level: 2 | 1 | 3;
|
79082
|
+
parentId: string | null;
|
79083
|
+
childCategoryList: {
|
79084
|
+
id: string;
|
79085
|
+
value: string;
|
79086
|
+
level: 2 | 1 | 3;
|
79087
|
+
parentId: string | null;
|
79088
|
+
childCategoryList: {
|
79089
|
+
id: string;
|
79090
|
+
value: string;
|
79091
|
+
level: 2 | 1 | 3;
|
79092
|
+
parentId: string | null;
|
79093
|
+
childCategoryList: any[];
|
79094
|
+
}[];
|
79095
|
+
}[];
|
79096
|
+
}[];
|
79097
|
+
tags: {
|
79098
|
+
id: string;
|
79099
|
+
name: string;
|
79100
|
+
createdAt: Date;
|
79101
|
+
updatedAt: Date;
|
79102
|
+
deletedAt: Date | null;
|
79103
|
+
}[];
|
79104
|
+
callFrom: string | null;
|
79105
|
+
callTo: string | null;
|
79106
|
+
note: string | null;
|
79107
|
+
customFields?: {
|
79108
|
+
id: string;
|
79109
|
+
createdAt: Date;
|
79110
|
+
updatedAt: Date;
|
79111
|
+
deletedAt: Date | null;
|
79112
|
+
entityId: string;
|
79113
|
+
attributeId: string;
|
79114
|
+
textValue: string | null;
|
79115
|
+
booleanValue: boolean | null;
|
79116
|
+
numberValue: number | null;
|
79117
|
+
dateValue: Date | null;
|
79118
|
+
}[] | null | undefined;
|
79119
|
+
}, {
|
79120
|
+
type: string;
|
79121
|
+
id: string;
|
79122
|
+
disposition: string | null;
|
79123
|
+
createdAt: Date;
|
79124
|
+
updatedAt: Date;
|
79125
|
+
deletedAt: Date | null;
|
79126
|
+
categories: {
|
79127
|
+
id: string;
|
79128
|
+
value: string;
|
79129
|
+
createdAt: Date;
|
79130
|
+
updatedAt: Date;
|
79131
|
+
deletedAt: Date | null;
|
79132
|
+
level: 2 | 1 | 3;
|
79133
|
+
parentId: string | null;
|
79134
|
+
childCategoryList: {
|
79135
|
+
id: string;
|
79136
|
+
value: string;
|
79137
|
+
level: 2 | 1 | 3;
|
79138
|
+
parentId: string | null;
|
79139
|
+
childCategoryList: {
|
79140
|
+
id: string;
|
79141
|
+
value: string;
|
79142
|
+
level: 2 | 1 | 3;
|
79143
|
+
parentId: string | null;
|
79144
|
+
childCategoryList: any[];
|
79145
|
+
}[];
|
79146
|
+
}[];
|
79147
|
+
}[];
|
79148
|
+
tags: {
|
79149
|
+
id: string;
|
79150
|
+
name: string;
|
79151
|
+
createdAt: Date;
|
79152
|
+
updatedAt: Date;
|
79153
|
+
deletedAt: Date | null;
|
79154
|
+
}[];
|
79155
|
+
callFrom: string | null;
|
79156
|
+
callTo: string | null;
|
79157
|
+
note: string | null;
|
79158
|
+
customFields?: {
|
79159
|
+
id: string;
|
79160
|
+
createdAt: Date;
|
79161
|
+
updatedAt: Date;
|
79162
|
+
deletedAt: Date | null;
|
79163
|
+
entityId: string;
|
79164
|
+
attributeId: string;
|
79165
|
+
textValue: string | null;
|
79166
|
+
booleanValue: boolean | null;
|
79167
|
+
numberValue: number | null;
|
79168
|
+
dateValue: Date | null;
|
79169
|
+
}[] | null | undefined;
|
79170
|
+
}>>;
|
79171
|
+
}, "strip", z.ZodTypeAny, {
|
79172
|
+
id: string;
|
79173
|
+
channel: string | null;
|
79174
|
+
direction: string | null;
|
79175
|
+
createdAt: Date;
|
79176
|
+
updatedAt: Date;
|
79177
|
+
deletedAt: Date | null;
|
79178
|
+
entityId: string;
|
79179
|
+
queueId: string | null;
|
79180
|
+
contactId: string | null;
|
79181
|
+
caseId: number;
|
79182
|
+
entityName: string;
|
79183
|
+
agentId: string | null;
|
79184
|
+
startedDate: Date | null;
|
79185
|
+
handledTime: number | null;
|
79186
|
+
firstResponseTime: number | null;
|
79187
|
+
wrapUpForm: {
|
79188
|
+
type: string;
|
79189
|
+
id: string;
|
79190
|
+
disposition: string | null;
|
79191
|
+
createdAt: Date;
|
79192
|
+
updatedAt: Date;
|
79193
|
+
deletedAt: Date | null;
|
79194
|
+
categories: {
|
79195
|
+
id: string;
|
79196
|
+
value: string;
|
79197
|
+
createdAt: Date;
|
79198
|
+
updatedAt: Date;
|
79199
|
+
deletedAt: Date | null;
|
79200
|
+
level: 2 | 1 | 3;
|
79201
|
+
parentId: string | null;
|
79202
|
+
childCategoryList: {
|
79203
|
+
id: string;
|
79204
|
+
value: string;
|
79205
|
+
level: 2 | 1 | 3;
|
79206
|
+
parentId: string | null;
|
79207
|
+
childCategoryList: {
|
79208
|
+
id: string;
|
79209
|
+
value: string;
|
79210
|
+
level: 2 | 1 | 3;
|
79211
|
+
parentId: string | null;
|
79212
|
+
childCategoryList: any[];
|
79213
|
+
}[];
|
79214
|
+
}[];
|
79215
|
+
}[];
|
79216
|
+
tags: {
|
79217
|
+
id: string;
|
79218
|
+
name: string;
|
79219
|
+
createdAt: Date;
|
79220
|
+
updatedAt: Date;
|
79221
|
+
deletedAt: Date | null;
|
79222
|
+
}[];
|
79223
|
+
callFrom: string | null;
|
79224
|
+
callTo: string | null;
|
79225
|
+
note: string | null;
|
79226
|
+
customFields?: {
|
79227
|
+
id: string;
|
79228
|
+
createdAt: Date;
|
79229
|
+
updatedAt: Date;
|
79230
|
+
deletedAt: Date | null;
|
79231
|
+
entityId: string;
|
79232
|
+
attributeId: string;
|
79233
|
+
textValue: string | null;
|
79234
|
+
booleanValue: boolean | null;
|
79235
|
+
numberValue: number | null;
|
79236
|
+
dateValue: Date | null;
|
79237
|
+
}[] | null | undefined;
|
79238
|
+
} | null;
|
79239
|
+
}, {
|
79240
|
+
id: string;
|
79241
|
+
channel: string | null;
|
79242
|
+
direction: string | null;
|
79243
|
+
createdAt: Date;
|
79244
|
+
updatedAt: Date;
|
79245
|
+
deletedAt: Date | null;
|
79246
|
+
entityId: string;
|
79247
|
+
queueId: string | null;
|
79248
|
+
contactId: string | null;
|
79249
|
+
caseId: number;
|
79250
|
+
entityName: string;
|
79251
|
+
agentId: string | null;
|
79252
|
+
startedDate: Date | null;
|
79253
|
+
handledTime: number | null;
|
79254
|
+
firstResponseTime: number | null;
|
79255
|
+
wrapUpForm: {
|
79256
|
+
type: string;
|
79257
|
+
id: string;
|
79258
|
+
disposition: string | null;
|
79259
|
+
createdAt: Date;
|
79260
|
+
updatedAt: Date;
|
79261
|
+
deletedAt: Date | null;
|
79262
|
+
categories: {
|
79263
|
+
id: string;
|
79264
|
+
value: string;
|
79265
|
+
createdAt: Date;
|
79266
|
+
updatedAt: Date;
|
79267
|
+
deletedAt: Date | null;
|
79268
|
+
level: 2 | 1 | 3;
|
79269
|
+
parentId: string | null;
|
79270
|
+
childCategoryList: {
|
79271
|
+
id: string;
|
79272
|
+
value: string;
|
79273
|
+
level: 2 | 1 | 3;
|
79274
|
+
parentId: string | null;
|
79275
|
+
childCategoryList: {
|
79276
|
+
id: string;
|
79277
|
+
value: string;
|
79278
|
+
level: 2 | 1 | 3;
|
79279
|
+
parentId: string | null;
|
79280
|
+
childCategoryList: any[];
|
79281
|
+
}[];
|
79282
|
+
}[];
|
79283
|
+
}[];
|
79284
|
+
tags: {
|
79285
|
+
id: string;
|
79286
|
+
name: string;
|
79287
|
+
createdAt: Date;
|
79288
|
+
updatedAt: Date;
|
79289
|
+
deletedAt: Date | null;
|
79290
|
+
}[];
|
79291
|
+
callFrom: string | null;
|
79292
|
+
callTo: string | null;
|
79293
|
+
note: string | null;
|
79294
|
+
customFields?: {
|
79295
|
+
id: string;
|
79296
|
+
createdAt: Date;
|
79297
|
+
updatedAt: Date;
|
79298
|
+
deletedAt: Date | null;
|
79299
|
+
entityId: string;
|
79300
|
+
attributeId: string;
|
79301
|
+
textValue: string | null;
|
79302
|
+
booleanValue: boolean | null;
|
79303
|
+
numberValue: number | null;
|
79304
|
+
dateValue: Date | null;
|
79305
|
+
}[] | null | undefined;
|
79306
|
+
} | null;
|
79307
|
+
}>;
|
79308
|
+
workflowRule: z.ZodObject<{
|
79309
|
+
id: z.ZodString;
|
79310
|
+
createdAt: z.ZodDate;
|
79311
|
+
updatedAt: z.ZodDate;
|
79312
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
79313
|
+
name: z.ZodString;
|
79314
|
+
isActive: z.ZodBoolean;
|
79315
|
+
type: z.ZodString;
|
79316
|
+
}, "strip", z.ZodTypeAny, {
|
79317
|
+
type: string;
|
79318
|
+
id: string;
|
79319
|
+
name: string;
|
79320
|
+
createdAt: Date;
|
79321
|
+
updatedAt: Date;
|
79322
|
+
deletedAt: Date | null;
|
79323
|
+
isActive: boolean;
|
79324
|
+
}, {
|
79325
|
+
type: string;
|
79326
|
+
id: string;
|
79327
|
+
name: string;
|
79328
|
+
createdAt: Date;
|
79329
|
+
updatedAt: Date;
|
79330
|
+
deletedAt: Date | null;
|
79331
|
+
isActive: boolean;
|
79332
|
+
}>;
|
79333
|
+
}, "strip", z.ZodTypeAny, {
|
79334
|
+
id: string;
|
79335
|
+
channel: {
|
79336
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
79337
|
+
id: string;
|
79338
|
+
name: string;
|
79339
|
+
metadata: {
|
79340
|
+
id: string;
|
79341
|
+
name: string;
|
79342
|
+
accessToken?: string | undefined;
|
79343
|
+
channelSecret?: string | undefined;
|
79344
|
+
additionalCredentials?: any;
|
79345
|
+
lineRichMenuId?: string | null | undefined;
|
79346
|
+
};
|
79347
|
+
status: boolean;
|
79348
|
+
createdAt: Date;
|
79349
|
+
updatedAt: Date;
|
79350
|
+
deletedAt: Date | null;
|
79351
|
+
actor: {
|
79352
|
+
id: string;
|
79353
|
+
address: string | null;
|
79354
|
+
name: string;
|
79355
|
+
email: string;
|
79356
|
+
createdAt: Date;
|
79357
|
+
updatedAt: Date;
|
79358
|
+
deletedAt: Date | null;
|
79359
|
+
emailVerifiedAt: Date | null;
|
79360
|
+
password: string;
|
79361
|
+
phone: string | null;
|
79362
|
+
notificationCount: number | null;
|
79363
|
+
roles: {
|
79364
|
+
id: string;
|
79365
|
+
description: string | null;
|
79366
|
+
createdAt: Date;
|
79367
|
+
updatedAt: Date;
|
79368
|
+
deletedAt: Date | null;
|
79369
|
+
systemName: string;
|
79370
|
+
displayName: string;
|
79371
|
+
permissions: {
|
79372
|
+
id: string;
|
79373
|
+
description: string | null;
|
79374
|
+
createdAt: Date;
|
79375
|
+
updatedAt: Date;
|
79376
|
+
deletedAt: Date | null;
|
79377
|
+
systemName: string;
|
79378
|
+
displayName: string;
|
79379
|
+
}[];
|
79380
|
+
}[];
|
79381
|
+
extension: {
|
79382
|
+
id: string;
|
79383
|
+
createdAt: Date;
|
79384
|
+
updatedAt: Date;
|
79385
|
+
deletedAt: Date | null;
|
79386
|
+
userId: string | null;
|
79387
|
+
sipServerUrl: string;
|
79388
|
+
sipUserName: string;
|
79389
|
+
webphoneLoginUser: string;
|
79390
|
+
extensionId: string | null;
|
79391
|
+
extensionName: string;
|
79392
|
+
telephonySignature: string | null;
|
79393
|
+
};
|
79394
|
+
};
|
79395
|
+
brandName: string;
|
79396
|
+
platformId: string;
|
79397
|
+
isReloginRequired: boolean;
|
79398
|
+
connectedUserName: string;
|
79399
|
+
connectedUserId: string;
|
79400
|
+
botpressBot: {
|
79401
|
+
id: string;
|
79402
|
+
name: string;
|
79403
|
+
accessToken: string;
|
79404
|
+
botId: string;
|
79405
|
+
integrationId: string;
|
79406
|
+
} | null;
|
79407
|
+
};
|
79408
|
+
direction: "incoming" | "outgoing" | "system";
|
79409
|
+
status: number;
|
79410
|
+
createdAt: Date;
|
79411
|
+
updatedAt: Date;
|
79412
|
+
deletedAt: Date | null;
|
79413
|
+
actor: {
|
79414
|
+
id: string;
|
79415
|
+
address: string | null;
|
79416
|
+
name: string;
|
79417
|
+
email: string;
|
79418
|
+
createdAt: Date;
|
79419
|
+
updatedAt: Date;
|
79420
|
+
deletedAt: Date | null;
|
79421
|
+
emailVerifiedAt: Date | null;
|
79422
|
+
password: string;
|
79423
|
+
phone: string | null;
|
79424
|
+
notificationCount: number | null;
|
79425
|
+
roles: {
|
79426
|
+
id: string;
|
79427
|
+
description: string | null;
|
79428
|
+
createdAt: Date;
|
79429
|
+
updatedAt: Date;
|
79430
|
+
deletedAt: Date | null;
|
79431
|
+
systemName: string;
|
79432
|
+
displayName: string;
|
79433
|
+
permissions: {
|
79434
|
+
id: string;
|
79435
|
+
description: string | null;
|
79436
|
+
createdAt: Date;
|
79437
|
+
updatedAt: Date;
|
79438
|
+
deletedAt: Date | null;
|
79439
|
+
systemName: string;
|
79440
|
+
displayName: string;
|
79441
|
+
}[];
|
79442
|
+
}[];
|
79443
|
+
extension: {
|
79444
|
+
id: string;
|
79445
|
+
createdAt: Date;
|
79446
|
+
updatedAt: Date;
|
79447
|
+
deletedAt: Date | null;
|
79448
|
+
userId: string | null;
|
79449
|
+
sipServerUrl: string;
|
79450
|
+
sipUserName: string;
|
79451
|
+
webphoneLoginUser: string;
|
79452
|
+
extensionId: string | null;
|
79453
|
+
extensionName: string;
|
79454
|
+
telephonySignature: string | null;
|
79455
|
+
};
|
79456
|
+
};
|
79457
|
+
firstResponseTime: number;
|
79458
|
+
lastMessage: string;
|
79459
|
+
handleTime: number;
|
79460
|
+
unreadCount: number;
|
79461
|
+
firstResponseAt: Date;
|
79462
|
+
isLatest: boolean;
|
79463
|
+
platformContact: {
|
79464
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
79465
|
+
id: string;
|
79466
|
+
metadata: {
|
79467
|
+
id: string;
|
79468
|
+
name: string;
|
79469
|
+
picture?: string | undefined;
|
79470
|
+
additionalCredentials?: any;
|
79471
|
+
};
|
79472
|
+
createdAt: Date;
|
79473
|
+
updatedAt: Date;
|
79474
|
+
deletedAt: Date | null;
|
79475
|
+
contact: {
|
79476
|
+
id: string;
|
79477
|
+
channel: string | null;
|
79478
|
+
address: string | null;
|
79479
|
+
name: string;
|
79480
|
+
createdAt: Date;
|
79481
|
+
updatedAt: Date;
|
79482
|
+
deletedAt: Date | null;
|
79483
|
+
customFields: {
|
79484
|
+
id: string;
|
79485
|
+
createdAt: Date;
|
79486
|
+
updatedAt: Date;
|
79487
|
+
deletedAt: Date | null;
|
79488
|
+
attribute: {
|
79489
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
79490
|
+
id: string;
|
79491
|
+
position: number;
|
79492
|
+
createdAt: Date;
|
79493
|
+
updatedAt: Date;
|
79494
|
+
deletedAt: Date | null;
|
79495
|
+
systemName: string;
|
79496
|
+
displayName: string;
|
79497
|
+
isDefault: boolean;
|
79498
|
+
isArchived: boolean;
|
79499
|
+
isRequired: boolean;
|
79500
|
+
isUnique: boolean;
|
79501
|
+
};
|
79502
|
+
textValue: string | null;
|
79503
|
+
booleanValue: boolean | null;
|
79504
|
+
numberValue: number | null;
|
79505
|
+
dateValue: Date | null;
|
79506
|
+
uploads: {
|
79507
|
+
id: string;
|
79508
|
+
status: string | null;
|
79509
|
+
createdAt: Date;
|
79510
|
+
updatedAt: Date;
|
79511
|
+
deletedAt: Date | null;
|
79512
|
+
fileName: string;
|
79513
|
+
fileKey: string;
|
79514
|
+
bucketName: string;
|
79515
|
+
fileSize: number;
|
79516
|
+
fileUrl: string | null;
|
79517
|
+
}[];
|
79518
|
+
}[];
|
79519
|
+
company: {
|
79520
|
+
id: string;
|
79521
|
+
createdAt: Date;
|
79522
|
+
updatedAt: Date;
|
79523
|
+
deletedAt: Date | null;
|
79524
|
+
address?: string | null | undefined;
|
79525
|
+
name?: string | undefined;
|
79526
|
+
phone?: string | null | undefined;
|
79527
|
+
industry?: string | null | undefined;
|
79528
|
+
} | null;
|
79529
|
+
notes: string | null;
|
79530
|
+
contactProfile: string | null;
|
79531
|
+
socialProfileUrl: string | null;
|
79532
|
+
tags: {
|
79533
|
+
id: string;
|
79534
|
+
name: string;
|
79535
|
+
createdAt: Date;
|
79536
|
+
updatedAt: Date;
|
79537
|
+
deletedAt: Date | null;
|
79538
|
+
}[];
|
79539
|
+
contactEmails: {
|
79540
|
+
id: string;
|
79541
|
+
isPrimary: boolean;
|
79542
|
+
email: string;
|
79543
|
+
createdAt: Date;
|
79544
|
+
updatedAt: Date;
|
79545
|
+
deletedAt: Date | null;
|
79546
|
+
}[];
|
79547
|
+
contactPhones: {
|
79548
|
+
id: string;
|
79549
|
+
isPrimary: boolean;
|
79550
|
+
createdAt: Date;
|
79551
|
+
updatedAt: Date;
|
79552
|
+
deletedAt: Date | null;
|
79553
|
+
phone: string;
|
79554
|
+
}[];
|
79555
|
+
activityLogs?: {
|
79556
|
+
id: string;
|
79557
|
+
description: string;
|
79558
|
+
createdAt: Date;
|
79559
|
+
updatedAt: Date;
|
79560
|
+
deletedAt: Date | null;
|
79561
|
+
entityId: string;
|
79562
|
+
entityType: {
|
79563
|
+
id: string;
|
79564
|
+
description: string | null;
|
79565
|
+
createdAt: Date;
|
79566
|
+
updatedAt: Date;
|
79567
|
+
deletedAt: Date | null;
|
79568
|
+
entity: string;
|
79569
|
+
};
|
79570
|
+
}[] | undefined;
|
79571
|
+
};
|
79572
|
+
channelId: string;
|
79573
|
+
socialPlatformId: string;
|
79574
|
+
};
|
79575
|
+
assignee: {
|
79576
|
+
id: string;
|
79577
|
+
address: string | null;
|
79578
|
+
name: string;
|
79579
|
+
email: string;
|
79580
|
+
createdAt: Date;
|
79581
|
+
updatedAt: Date;
|
79582
|
+
deletedAt: Date | null;
|
79583
|
+
emailVerifiedAt: Date | null;
|
79584
|
+
password: string;
|
79585
|
+
phone: string | null;
|
79586
|
+
notificationCount: number | null;
|
79587
|
+
roles: {
|
79588
|
+
id: string;
|
79589
|
+
description: string | null;
|
79590
|
+
createdAt: Date;
|
79591
|
+
updatedAt: Date;
|
79592
|
+
deletedAt: Date | null;
|
79593
|
+
systemName: string;
|
79594
|
+
displayName: string;
|
79595
|
+
permissions: {
|
79596
|
+
id: string;
|
79597
|
+
description: string | null;
|
79598
|
+
createdAt: Date;
|
79599
|
+
updatedAt: Date;
|
79600
|
+
deletedAt: Date | null;
|
79601
|
+
systemName: string;
|
79602
|
+
displayName: string;
|
79603
|
+
}[];
|
79604
|
+
}[];
|
79605
|
+
extension: {
|
79606
|
+
id: string;
|
79607
|
+
createdAt: Date;
|
79608
|
+
updatedAt: Date;
|
79609
|
+
deletedAt: Date | null;
|
79610
|
+
userId: string | null;
|
79611
|
+
sipServerUrl: string;
|
79612
|
+
sipUserName: string;
|
79613
|
+
webphoneLoginUser: string;
|
79614
|
+
extensionId: string | null;
|
79615
|
+
extensionName: string;
|
79616
|
+
telephonySignature: string | null;
|
79617
|
+
};
|
79618
|
+
};
|
79619
|
+
closedAt: Date;
|
79620
|
+
lastMessageAt: Date | null;
|
79621
|
+
isBotRoom: boolean;
|
79622
|
+
cxlog: {
|
79623
|
+
id: string;
|
79624
|
+
channel: string | null;
|
79625
|
+
direction: string | null;
|
79626
|
+
createdAt: Date;
|
79627
|
+
updatedAt: Date;
|
79628
|
+
deletedAt: Date | null;
|
79629
|
+
entityId: string;
|
79630
|
+
queueId: string | null;
|
79631
|
+
contactId: string | null;
|
79632
|
+
caseId: number;
|
79633
|
+
entityName: string;
|
79634
|
+
agentId: string | null;
|
79635
|
+
startedDate: Date | null;
|
79636
|
+
handledTime: number | null;
|
79637
|
+
firstResponseTime: number | null;
|
79638
|
+
wrapUpForm: {
|
79639
|
+
type: string;
|
79640
|
+
id: string;
|
79641
|
+
disposition: string | null;
|
79642
|
+
createdAt: Date;
|
79643
|
+
updatedAt: Date;
|
79644
|
+
deletedAt: Date | null;
|
79645
|
+
categories: {
|
79646
|
+
id: string;
|
79647
|
+
value: string;
|
79648
|
+
createdAt: Date;
|
79649
|
+
updatedAt: Date;
|
79650
|
+
deletedAt: Date | null;
|
79651
|
+
level: 2 | 1 | 3;
|
79652
|
+
parentId: string | null;
|
79653
|
+
childCategoryList: {
|
79654
|
+
id: string;
|
79655
|
+
value: string;
|
79656
|
+
level: 2 | 1 | 3;
|
79657
|
+
parentId: string | null;
|
79658
|
+
childCategoryList: {
|
79659
|
+
id: string;
|
79660
|
+
value: string;
|
79661
|
+
level: 2 | 1 | 3;
|
79662
|
+
parentId: string | null;
|
79663
|
+
childCategoryList: any[];
|
79664
|
+
}[];
|
79665
|
+
}[];
|
79666
|
+
}[];
|
79667
|
+
tags: {
|
79668
|
+
id: string;
|
79669
|
+
name: string;
|
79670
|
+
createdAt: Date;
|
79671
|
+
updatedAt: Date;
|
79672
|
+
deletedAt: Date | null;
|
79673
|
+
}[];
|
79674
|
+
callFrom: string | null;
|
79675
|
+
callTo: string | null;
|
79676
|
+
note: string | null;
|
79677
|
+
customFields?: {
|
79678
|
+
id: string;
|
79679
|
+
createdAt: Date;
|
79680
|
+
updatedAt: Date;
|
79681
|
+
deletedAt: Date | null;
|
79682
|
+
entityId: string;
|
79683
|
+
attributeId: string;
|
79684
|
+
textValue: string | null;
|
79685
|
+
booleanValue: boolean | null;
|
79686
|
+
numberValue: number | null;
|
79687
|
+
dateValue: Date | null;
|
79688
|
+
}[] | null | undefined;
|
79689
|
+
} | null;
|
79690
|
+
};
|
79691
|
+
workflowRule: {
|
79692
|
+
type: string;
|
79693
|
+
id: string;
|
79694
|
+
name: string;
|
79695
|
+
createdAt: Date;
|
79696
|
+
updatedAt: Date;
|
79697
|
+
deletedAt: Date | null;
|
79698
|
+
isActive: boolean;
|
79699
|
+
};
|
79700
|
+
}, {
|
79701
|
+
id: string;
|
79702
|
+
channel: {
|
79703
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
79704
|
+
id: string;
|
79705
|
+
name: string;
|
79706
|
+
metadata: {
|
79707
|
+
id: string;
|
79708
|
+
name: string;
|
79709
|
+
accessToken?: string | undefined;
|
79710
|
+
channelSecret?: string | undefined;
|
79711
|
+
additionalCredentials?: any;
|
79712
|
+
lineRichMenuId?: string | null | undefined;
|
79713
|
+
};
|
79714
|
+
status: boolean;
|
79715
|
+
createdAt: Date;
|
79716
|
+
updatedAt: Date;
|
79717
|
+
deletedAt: Date | null;
|
79718
|
+
actor: {
|
79719
|
+
id: string;
|
79720
|
+
address: string | null;
|
79721
|
+
name: string;
|
79722
|
+
email: string;
|
79723
|
+
createdAt: Date;
|
79724
|
+
updatedAt: Date;
|
79725
|
+
deletedAt: Date | null;
|
79726
|
+
emailVerifiedAt: Date | null;
|
79727
|
+
password: string;
|
79728
|
+
phone: string | null;
|
79729
|
+
notificationCount: number | null;
|
79730
|
+
roles: {
|
79731
|
+
id: string;
|
79732
|
+
description: string | null;
|
79733
|
+
createdAt: Date;
|
79734
|
+
updatedAt: Date;
|
79735
|
+
deletedAt: Date | null;
|
79736
|
+
systemName: string;
|
79737
|
+
displayName: string;
|
79738
|
+
permissions: {
|
79739
|
+
id: string;
|
79740
|
+
description: string | null;
|
79741
|
+
createdAt: Date;
|
79742
|
+
updatedAt: Date;
|
79743
|
+
deletedAt: Date | null;
|
79744
|
+
systemName: string;
|
79745
|
+
displayName: string;
|
79746
|
+
}[];
|
79747
|
+
}[];
|
79748
|
+
extension: {
|
79749
|
+
id: string;
|
79750
|
+
createdAt: Date;
|
79751
|
+
updatedAt: Date;
|
79752
|
+
deletedAt: Date | null;
|
79753
|
+
userId: string | null;
|
79754
|
+
sipServerUrl: string;
|
79755
|
+
sipUserName: string;
|
79756
|
+
webphoneLoginUser: string;
|
79757
|
+
extensionId: string | null;
|
79758
|
+
extensionName: string;
|
79759
|
+
telephonySignature: string | null;
|
79760
|
+
};
|
79761
|
+
};
|
79762
|
+
brandName: string;
|
79763
|
+
platformId: string;
|
79764
|
+
isReloginRequired: boolean;
|
79765
|
+
connectedUserName: string;
|
79766
|
+
connectedUserId: string;
|
79767
|
+
botpressBot: {
|
79768
|
+
id: string;
|
79769
|
+
name: string;
|
79770
|
+
accessToken: string;
|
79771
|
+
botId: string;
|
79772
|
+
integrationId: string;
|
79773
|
+
} | null;
|
79774
|
+
};
|
79775
|
+
direction: "incoming" | "outgoing" | "system";
|
79776
|
+
status: number;
|
79777
|
+
createdAt: Date;
|
79778
|
+
updatedAt: Date;
|
79779
|
+
deletedAt: Date | null;
|
79780
|
+
actor: {
|
79781
|
+
id: string;
|
79782
|
+
address: string | null;
|
79783
|
+
name: string;
|
79784
|
+
email: string;
|
79785
|
+
createdAt: Date;
|
79786
|
+
updatedAt: Date;
|
79787
|
+
deletedAt: Date | null;
|
79788
|
+
emailVerifiedAt: Date | null;
|
79789
|
+
password: string;
|
79790
|
+
phone: string | null;
|
79791
|
+
notificationCount: number | null;
|
79792
|
+
roles: {
|
79793
|
+
id: string;
|
79794
|
+
description: string | null;
|
79795
|
+
createdAt: Date;
|
79796
|
+
updatedAt: Date;
|
79797
|
+
deletedAt: Date | null;
|
79798
|
+
systemName: string;
|
79799
|
+
displayName: string;
|
79800
|
+
permissions: {
|
79801
|
+
id: string;
|
79802
|
+
description: string | null;
|
79803
|
+
createdAt: Date;
|
79804
|
+
updatedAt: Date;
|
79805
|
+
deletedAt: Date | null;
|
79806
|
+
systemName: string;
|
79807
|
+
displayName: string;
|
79808
|
+
}[];
|
79809
|
+
}[];
|
79810
|
+
extension: {
|
79811
|
+
id: string;
|
79812
|
+
createdAt: Date;
|
79813
|
+
updatedAt: Date;
|
79814
|
+
deletedAt: Date | null;
|
79815
|
+
userId: string | null;
|
79816
|
+
sipServerUrl: string;
|
79817
|
+
sipUserName: string;
|
79818
|
+
webphoneLoginUser: string;
|
79819
|
+
extensionId: string | null;
|
79820
|
+
extensionName: string;
|
79821
|
+
telephonySignature: string | null;
|
79822
|
+
};
|
79823
|
+
};
|
79824
|
+
firstResponseTime: number;
|
79825
|
+
lastMessage: string;
|
79826
|
+
handleTime: number;
|
79827
|
+
unreadCount: number;
|
79828
|
+
firstResponseAt: Date;
|
79829
|
+
isLatest: boolean;
|
79830
|
+
platformContact: {
|
79831
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
79832
|
+
id: string;
|
79833
|
+
metadata: {
|
79834
|
+
id: string;
|
79835
|
+
name: string;
|
79836
|
+
picture?: string | undefined;
|
79837
|
+
additionalCredentials?: any;
|
79838
|
+
};
|
79839
|
+
createdAt: Date;
|
79840
|
+
updatedAt: Date;
|
79841
|
+
deletedAt: Date | null;
|
79842
|
+
contact: {
|
79843
|
+
id: string;
|
79844
|
+
channel: string | null;
|
79845
|
+
address: string | null;
|
79846
|
+
name: string;
|
79847
|
+
createdAt: Date;
|
79848
|
+
updatedAt: Date;
|
79849
|
+
deletedAt: Date | null;
|
79850
|
+
customFields: {
|
79851
|
+
id: string;
|
79852
|
+
createdAt: Date;
|
79853
|
+
updatedAt: Date;
|
79854
|
+
deletedAt: Date | null;
|
79855
|
+
attribute: {
|
79856
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
79857
|
+
id: string;
|
79858
|
+
position: number;
|
79859
|
+
createdAt: Date;
|
79860
|
+
updatedAt: Date;
|
79861
|
+
deletedAt: Date | null;
|
79862
|
+
systemName: string;
|
79863
|
+
displayName: string;
|
79864
|
+
isDefault: boolean;
|
79865
|
+
isArchived: boolean;
|
79866
|
+
isRequired: boolean;
|
79867
|
+
isUnique: boolean;
|
79868
|
+
};
|
79869
|
+
textValue: string | null;
|
79870
|
+
booleanValue: boolean | null;
|
79871
|
+
numberValue: number | null;
|
79872
|
+
dateValue: Date | null;
|
79873
|
+
uploads: {
|
79874
|
+
id: string;
|
79875
|
+
status: string | null;
|
79876
|
+
createdAt: Date;
|
79877
|
+
updatedAt: Date;
|
79878
|
+
deletedAt: Date | null;
|
79879
|
+
fileName: string;
|
79880
|
+
fileKey: string;
|
79881
|
+
bucketName: string;
|
79882
|
+
fileSize: number;
|
79883
|
+
fileUrl: string | null;
|
79884
|
+
}[];
|
79885
|
+
}[];
|
79886
|
+
company: {
|
79887
|
+
id: string;
|
79888
|
+
createdAt: Date;
|
79889
|
+
updatedAt: Date;
|
79890
|
+
deletedAt: Date | null;
|
79891
|
+
address?: string | null | undefined;
|
79892
|
+
name?: string | undefined;
|
79893
|
+
phone?: string | null | undefined;
|
79894
|
+
industry?: string | null | undefined;
|
79895
|
+
} | null;
|
79896
|
+
notes: string | null;
|
79897
|
+
contactProfile: string | null;
|
79898
|
+
socialProfileUrl: string | null;
|
79899
|
+
tags: {
|
79900
|
+
id: string;
|
79901
|
+
name: string;
|
79902
|
+
createdAt: Date;
|
79903
|
+
updatedAt: Date;
|
79904
|
+
deletedAt: Date | null;
|
79905
|
+
}[];
|
79906
|
+
contactEmails: {
|
79907
|
+
id: string;
|
79908
|
+
isPrimary: boolean;
|
79909
|
+
email: string;
|
79910
|
+
createdAt: Date;
|
79911
|
+
updatedAt: Date;
|
79912
|
+
deletedAt: Date | null;
|
79913
|
+
}[];
|
79914
|
+
contactPhones: {
|
79915
|
+
id: string;
|
79916
|
+
isPrimary: boolean;
|
79917
|
+
createdAt: Date;
|
79918
|
+
updatedAt: Date;
|
79919
|
+
deletedAt: Date | null;
|
79920
|
+
phone: string;
|
79921
|
+
}[];
|
79922
|
+
activityLogs?: {
|
79923
|
+
id: string;
|
79924
|
+
description: string;
|
79925
|
+
createdAt: Date;
|
79926
|
+
updatedAt: Date;
|
79927
|
+
deletedAt: Date | null;
|
79928
|
+
entityId: string;
|
79929
|
+
entityType: {
|
79930
|
+
id: string;
|
79931
|
+
description: string | null;
|
79932
|
+
createdAt: Date;
|
79933
|
+
updatedAt: Date;
|
79934
|
+
deletedAt: Date | null;
|
79935
|
+
entity: string;
|
79936
|
+
};
|
79937
|
+
}[] | undefined;
|
79938
|
+
};
|
79939
|
+
channelId: string;
|
79940
|
+
socialPlatformId: string;
|
79941
|
+
};
|
79942
|
+
assignee: {
|
79943
|
+
id: string;
|
79944
|
+
address: string | null;
|
79945
|
+
name: string;
|
79946
|
+
email: string;
|
79947
|
+
createdAt: Date;
|
79948
|
+
updatedAt: Date;
|
79949
|
+
deletedAt: Date | null;
|
79950
|
+
emailVerifiedAt: Date | null;
|
79951
|
+
password: string;
|
79952
|
+
phone: string | null;
|
79953
|
+
notificationCount: number | null;
|
79954
|
+
roles: {
|
79955
|
+
id: string;
|
79956
|
+
description: string | null;
|
79957
|
+
createdAt: Date;
|
79958
|
+
updatedAt: Date;
|
79959
|
+
deletedAt: Date | null;
|
79960
|
+
systemName: string;
|
79961
|
+
displayName: string;
|
79962
|
+
permissions: {
|
79963
|
+
id: string;
|
79964
|
+
description: string | null;
|
79965
|
+
createdAt: Date;
|
79966
|
+
updatedAt: Date;
|
79967
|
+
deletedAt: Date | null;
|
79968
|
+
systemName: string;
|
79969
|
+
displayName: string;
|
79970
|
+
}[];
|
79971
|
+
}[];
|
79972
|
+
extension: {
|
79973
|
+
id: string;
|
79974
|
+
createdAt: Date;
|
79975
|
+
updatedAt: Date;
|
79976
|
+
deletedAt: Date | null;
|
79977
|
+
userId: string | null;
|
79978
|
+
sipServerUrl: string;
|
79979
|
+
sipUserName: string;
|
79980
|
+
webphoneLoginUser: string;
|
79981
|
+
extensionId: string | null;
|
79982
|
+
extensionName: string;
|
79983
|
+
telephonySignature: string | null;
|
79984
|
+
};
|
79985
|
+
};
|
79986
|
+
closedAt: Date;
|
79987
|
+
lastMessageAt: Date | null;
|
79988
|
+
isBotRoom: boolean;
|
79989
|
+
cxlog: {
|
79990
|
+
id: string;
|
79991
|
+
channel: string | null;
|
79992
|
+
direction: string | null;
|
79993
|
+
createdAt: Date;
|
79994
|
+
updatedAt: Date;
|
79995
|
+
deletedAt: Date | null;
|
79996
|
+
entityId: string;
|
79997
|
+
queueId: string | null;
|
79998
|
+
contactId: string | null;
|
79999
|
+
caseId: number;
|
80000
|
+
entityName: string;
|
80001
|
+
agentId: string | null;
|
80002
|
+
startedDate: Date | null;
|
80003
|
+
handledTime: number | null;
|
80004
|
+
firstResponseTime: number | null;
|
80005
|
+
wrapUpForm: {
|
80006
|
+
type: string;
|
80007
|
+
id: string;
|
80008
|
+
disposition: string | null;
|
80009
|
+
createdAt: Date;
|
80010
|
+
updatedAt: Date;
|
80011
|
+
deletedAt: Date | null;
|
80012
|
+
categories: {
|
80013
|
+
id: string;
|
80014
|
+
value: string;
|
80015
|
+
createdAt: Date;
|
80016
|
+
updatedAt: Date;
|
80017
|
+
deletedAt: Date | null;
|
80018
|
+
level: 2 | 1 | 3;
|
80019
|
+
parentId: string | null;
|
80020
|
+
childCategoryList: {
|
80021
|
+
id: string;
|
80022
|
+
value: string;
|
80023
|
+
level: 2 | 1 | 3;
|
80024
|
+
parentId: string | null;
|
80025
|
+
childCategoryList: {
|
80026
|
+
id: string;
|
80027
|
+
value: string;
|
80028
|
+
level: 2 | 1 | 3;
|
80029
|
+
parentId: string | null;
|
80030
|
+
childCategoryList: any[];
|
80031
|
+
}[];
|
80032
|
+
}[];
|
80033
|
+
}[];
|
80034
|
+
tags: {
|
80035
|
+
id: string;
|
80036
|
+
name: string;
|
80037
|
+
createdAt: Date;
|
80038
|
+
updatedAt: Date;
|
80039
|
+
deletedAt: Date | null;
|
80040
|
+
}[];
|
80041
|
+
callFrom: string | null;
|
80042
|
+
callTo: string | null;
|
80043
|
+
note: string | null;
|
80044
|
+
customFields?: {
|
80045
|
+
id: string;
|
80046
|
+
createdAt: Date;
|
80047
|
+
updatedAt: Date;
|
80048
|
+
deletedAt: Date | null;
|
80049
|
+
entityId: string;
|
80050
|
+
attributeId: string;
|
80051
|
+
textValue: string | null;
|
80052
|
+
booleanValue: boolean | null;
|
80053
|
+
numberValue: number | null;
|
80054
|
+
dateValue: Date | null;
|
80055
|
+
}[] | null | undefined;
|
80056
|
+
} | null;
|
80057
|
+
};
|
80058
|
+
workflowRule: {
|
80059
|
+
type: string;
|
80060
|
+
id: string;
|
80061
|
+
name: string;
|
80062
|
+
createdAt: Date;
|
80063
|
+
updatedAt: Date;
|
80064
|
+
deletedAt: Date | null;
|
80065
|
+
isActive: boolean;
|
80066
|
+
};
|
80067
|
+
}>, "many">;
|
80068
|
+
}, "strip", z.ZodTypeAny, {
|
80069
|
+
data: {
|
80070
|
+
id: string;
|
80071
|
+
channel: {
|
80072
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
80073
|
+
id: string;
|
80074
|
+
name: string;
|
80075
|
+
metadata: {
|
80076
|
+
id: string;
|
80077
|
+
name: string;
|
80078
|
+
accessToken?: string | undefined;
|
80079
|
+
channelSecret?: string | undefined;
|
80080
|
+
additionalCredentials?: any;
|
80081
|
+
lineRichMenuId?: string | null | undefined;
|
80082
|
+
};
|
80083
|
+
status: boolean;
|
80084
|
+
createdAt: Date;
|
80085
|
+
updatedAt: Date;
|
80086
|
+
deletedAt: Date | null;
|
80087
|
+
actor: {
|
80088
|
+
id: string;
|
80089
|
+
address: string | null;
|
80090
|
+
name: string;
|
80091
|
+
email: string;
|
80092
|
+
createdAt: Date;
|
80093
|
+
updatedAt: Date;
|
80094
|
+
deletedAt: Date | null;
|
80095
|
+
emailVerifiedAt: Date | null;
|
80096
|
+
password: string;
|
80097
|
+
phone: string | null;
|
80098
|
+
notificationCount: number | null;
|
80099
|
+
roles: {
|
80100
|
+
id: string;
|
80101
|
+
description: string | null;
|
80102
|
+
createdAt: Date;
|
80103
|
+
updatedAt: Date;
|
80104
|
+
deletedAt: Date | null;
|
80105
|
+
systemName: string;
|
80106
|
+
displayName: string;
|
80107
|
+
permissions: {
|
80108
|
+
id: string;
|
80109
|
+
description: string | null;
|
80110
|
+
createdAt: Date;
|
80111
|
+
updatedAt: Date;
|
80112
|
+
deletedAt: Date | null;
|
80113
|
+
systemName: string;
|
80114
|
+
displayName: string;
|
80115
|
+
}[];
|
80116
|
+
}[];
|
80117
|
+
extension: {
|
80118
|
+
id: string;
|
80119
|
+
createdAt: Date;
|
80120
|
+
updatedAt: Date;
|
80121
|
+
deletedAt: Date | null;
|
80122
|
+
userId: string | null;
|
80123
|
+
sipServerUrl: string;
|
80124
|
+
sipUserName: string;
|
80125
|
+
webphoneLoginUser: string;
|
80126
|
+
extensionId: string | null;
|
80127
|
+
extensionName: string;
|
80128
|
+
telephonySignature: string | null;
|
80129
|
+
};
|
80130
|
+
};
|
80131
|
+
brandName: string;
|
80132
|
+
platformId: string;
|
80133
|
+
isReloginRequired: boolean;
|
80134
|
+
connectedUserName: string;
|
80135
|
+
connectedUserId: string;
|
80136
|
+
botpressBot: {
|
80137
|
+
id: string;
|
80138
|
+
name: string;
|
80139
|
+
accessToken: string;
|
80140
|
+
botId: string;
|
80141
|
+
integrationId: string;
|
80142
|
+
} | null;
|
80143
|
+
};
|
80144
|
+
direction: "incoming" | "outgoing" | "system";
|
80145
|
+
status: number;
|
80146
|
+
createdAt: Date;
|
80147
|
+
updatedAt: Date;
|
80148
|
+
deletedAt: Date | null;
|
80149
|
+
actor: {
|
80150
|
+
id: string;
|
80151
|
+
address: string | null;
|
80152
|
+
name: string;
|
80153
|
+
email: string;
|
80154
|
+
createdAt: Date;
|
80155
|
+
updatedAt: Date;
|
80156
|
+
deletedAt: Date | null;
|
80157
|
+
emailVerifiedAt: Date | null;
|
80158
|
+
password: string;
|
80159
|
+
phone: string | null;
|
80160
|
+
notificationCount: number | null;
|
80161
|
+
roles: {
|
80162
|
+
id: string;
|
80163
|
+
description: string | null;
|
80164
|
+
createdAt: Date;
|
80165
|
+
updatedAt: Date;
|
80166
|
+
deletedAt: Date | null;
|
80167
|
+
systemName: string;
|
80168
|
+
displayName: string;
|
80169
|
+
permissions: {
|
80170
|
+
id: string;
|
80171
|
+
description: string | null;
|
80172
|
+
createdAt: Date;
|
80173
|
+
updatedAt: Date;
|
80174
|
+
deletedAt: Date | null;
|
80175
|
+
systemName: string;
|
80176
|
+
displayName: string;
|
80177
|
+
}[];
|
80178
|
+
}[];
|
80179
|
+
extension: {
|
80180
|
+
id: string;
|
80181
|
+
createdAt: Date;
|
80182
|
+
updatedAt: Date;
|
80183
|
+
deletedAt: Date | null;
|
80184
|
+
userId: string | null;
|
80185
|
+
sipServerUrl: string;
|
80186
|
+
sipUserName: string;
|
80187
|
+
webphoneLoginUser: string;
|
80188
|
+
extensionId: string | null;
|
80189
|
+
extensionName: string;
|
80190
|
+
telephonySignature: string | null;
|
80191
|
+
};
|
80192
|
+
};
|
80193
|
+
firstResponseTime: number;
|
80194
|
+
lastMessage: string;
|
80195
|
+
handleTime: number;
|
80196
|
+
unreadCount: number;
|
80197
|
+
firstResponseAt: Date;
|
80198
|
+
isLatest: boolean;
|
80199
|
+
platformContact: {
|
80200
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
80201
|
+
id: string;
|
80202
|
+
metadata: {
|
80203
|
+
id: string;
|
80204
|
+
name: string;
|
80205
|
+
picture?: string | undefined;
|
80206
|
+
additionalCredentials?: any;
|
80207
|
+
};
|
80208
|
+
createdAt: Date;
|
80209
|
+
updatedAt: Date;
|
80210
|
+
deletedAt: Date | null;
|
80211
|
+
contact: {
|
80212
|
+
id: string;
|
80213
|
+
channel: string | null;
|
80214
|
+
address: string | null;
|
80215
|
+
name: string;
|
80216
|
+
createdAt: Date;
|
80217
|
+
updatedAt: Date;
|
80218
|
+
deletedAt: Date | null;
|
80219
|
+
customFields: {
|
80220
|
+
id: string;
|
80221
|
+
createdAt: Date;
|
80222
|
+
updatedAt: Date;
|
80223
|
+
deletedAt: Date | null;
|
80224
|
+
attribute: {
|
80225
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
80226
|
+
id: string;
|
80227
|
+
position: number;
|
80228
|
+
createdAt: Date;
|
80229
|
+
updatedAt: Date;
|
80230
|
+
deletedAt: Date | null;
|
80231
|
+
systemName: string;
|
80232
|
+
displayName: string;
|
80233
|
+
isDefault: boolean;
|
80234
|
+
isArchived: boolean;
|
80235
|
+
isRequired: boolean;
|
80236
|
+
isUnique: boolean;
|
80237
|
+
};
|
80238
|
+
textValue: string | null;
|
80239
|
+
booleanValue: boolean | null;
|
80240
|
+
numberValue: number | null;
|
80241
|
+
dateValue: Date | null;
|
80242
|
+
uploads: {
|
80243
|
+
id: string;
|
80244
|
+
status: string | null;
|
80245
|
+
createdAt: Date;
|
80246
|
+
updatedAt: Date;
|
80247
|
+
deletedAt: Date | null;
|
80248
|
+
fileName: string;
|
80249
|
+
fileKey: string;
|
80250
|
+
bucketName: string;
|
80251
|
+
fileSize: number;
|
80252
|
+
fileUrl: string | null;
|
80253
|
+
}[];
|
80254
|
+
}[];
|
80255
|
+
company: {
|
80256
|
+
id: string;
|
80257
|
+
createdAt: Date;
|
80258
|
+
updatedAt: Date;
|
80259
|
+
deletedAt: Date | null;
|
80260
|
+
address?: string | null | undefined;
|
80261
|
+
name?: string | undefined;
|
80262
|
+
phone?: string | null | undefined;
|
80263
|
+
industry?: string | null | undefined;
|
80264
|
+
} | null;
|
80265
|
+
notes: string | null;
|
80266
|
+
contactProfile: string | null;
|
80267
|
+
socialProfileUrl: string | null;
|
80268
|
+
tags: {
|
80269
|
+
id: string;
|
80270
|
+
name: string;
|
80271
|
+
createdAt: Date;
|
80272
|
+
updatedAt: Date;
|
80273
|
+
deletedAt: Date | null;
|
80274
|
+
}[];
|
80275
|
+
contactEmails: {
|
80276
|
+
id: string;
|
80277
|
+
isPrimary: boolean;
|
80278
|
+
email: string;
|
80279
|
+
createdAt: Date;
|
80280
|
+
updatedAt: Date;
|
80281
|
+
deletedAt: Date | null;
|
80282
|
+
}[];
|
80283
|
+
contactPhones: {
|
80284
|
+
id: string;
|
80285
|
+
isPrimary: boolean;
|
80286
|
+
createdAt: Date;
|
80287
|
+
updatedAt: Date;
|
80288
|
+
deletedAt: Date | null;
|
80289
|
+
phone: string;
|
80290
|
+
}[];
|
80291
|
+
activityLogs?: {
|
80292
|
+
id: string;
|
80293
|
+
description: string;
|
80294
|
+
createdAt: Date;
|
80295
|
+
updatedAt: Date;
|
80296
|
+
deletedAt: Date | null;
|
80297
|
+
entityId: string;
|
80298
|
+
entityType: {
|
80299
|
+
id: string;
|
80300
|
+
description: string | null;
|
80301
|
+
createdAt: Date;
|
80302
|
+
updatedAt: Date;
|
80303
|
+
deletedAt: Date | null;
|
80304
|
+
entity: string;
|
80305
|
+
};
|
80306
|
+
}[] | undefined;
|
80307
|
+
};
|
80308
|
+
channelId: string;
|
80309
|
+
socialPlatformId: string;
|
80310
|
+
};
|
80311
|
+
assignee: {
|
80312
|
+
id: string;
|
80313
|
+
address: string | null;
|
80314
|
+
name: string;
|
80315
|
+
email: string;
|
80316
|
+
createdAt: Date;
|
80317
|
+
updatedAt: Date;
|
80318
|
+
deletedAt: Date | null;
|
80319
|
+
emailVerifiedAt: Date | null;
|
80320
|
+
password: string;
|
80321
|
+
phone: string | null;
|
80322
|
+
notificationCount: number | null;
|
80323
|
+
roles: {
|
80324
|
+
id: string;
|
80325
|
+
description: string | null;
|
80326
|
+
createdAt: Date;
|
80327
|
+
updatedAt: Date;
|
80328
|
+
deletedAt: Date | null;
|
80329
|
+
systemName: string;
|
80330
|
+
displayName: string;
|
80331
|
+
permissions: {
|
80332
|
+
id: string;
|
80333
|
+
description: string | null;
|
80334
|
+
createdAt: Date;
|
80335
|
+
updatedAt: Date;
|
80336
|
+
deletedAt: Date | null;
|
80337
|
+
systemName: string;
|
80338
|
+
displayName: string;
|
80339
|
+
}[];
|
80340
|
+
}[];
|
80341
|
+
extension: {
|
80342
|
+
id: string;
|
80343
|
+
createdAt: Date;
|
80344
|
+
updatedAt: Date;
|
80345
|
+
deletedAt: Date | null;
|
80346
|
+
userId: string | null;
|
80347
|
+
sipServerUrl: string;
|
80348
|
+
sipUserName: string;
|
80349
|
+
webphoneLoginUser: string;
|
80350
|
+
extensionId: string | null;
|
80351
|
+
extensionName: string;
|
80352
|
+
telephonySignature: string | null;
|
80353
|
+
};
|
80354
|
+
};
|
80355
|
+
closedAt: Date;
|
80356
|
+
lastMessageAt: Date | null;
|
80357
|
+
isBotRoom: boolean;
|
80358
|
+
cxlog: {
|
80359
|
+
id: string;
|
80360
|
+
channel: string | null;
|
80361
|
+
direction: string | null;
|
80362
|
+
createdAt: Date;
|
80363
|
+
updatedAt: Date;
|
80364
|
+
deletedAt: Date | null;
|
80365
|
+
entityId: string;
|
80366
|
+
queueId: string | null;
|
80367
|
+
contactId: string | null;
|
80368
|
+
caseId: number;
|
80369
|
+
entityName: string;
|
80370
|
+
agentId: string | null;
|
80371
|
+
startedDate: Date | null;
|
80372
|
+
handledTime: number | null;
|
80373
|
+
firstResponseTime: number | null;
|
80374
|
+
wrapUpForm: {
|
80375
|
+
type: string;
|
80376
|
+
id: string;
|
80377
|
+
disposition: string | null;
|
80378
|
+
createdAt: Date;
|
80379
|
+
updatedAt: Date;
|
80380
|
+
deletedAt: Date | null;
|
80381
|
+
categories: {
|
80382
|
+
id: string;
|
80383
|
+
value: string;
|
80384
|
+
createdAt: Date;
|
80385
|
+
updatedAt: Date;
|
80386
|
+
deletedAt: Date | null;
|
80387
|
+
level: 2 | 1 | 3;
|
80388
|
+
parentId: string | null;
|
80389
|
+
childCategoryList: {
|
80390
|
+
id: string;
|
80391
|
+
value: string;
|
80392
|
+
level: 2 | 1 | 3;
|
80393
|
+
parentId: string | null;
|
80394
|
+
childCategoryList: {
|
80395
|
+
id: string;
|
80396
|
+
value: string;
|
80397
|
+
level: 2 | 1 | 3;
|
80398
|
+
parentId: string | null;
|
80399
|
+
childCategoryList: any[];
|
80400
|
+
}[];
|
80401
|
+
}[];
|
80402
|
+
}[];
|
80403
|
+
tags: {
|
80404
|
+
id: string;
|
80405
|
+
name: string;
|
80406
|
+
createdAt: Date;
|
80407
|
+
updatedAt: Date;
|
80408
|
+
deletedAt: Date | null;
|
80409
|
+
}[];
|
80410
|
+
callFrom: string | null;
|
80411
|
+
callTo: string | null;
|
80412
|
+
note: string | null;
|
80413
|
+
customFields?: {
|
80414
|
+
id: string;
|
80415
|
+
createdAt: Date;
|
80416
|
+
updatedAt: Date;
|
80417
|
+
deletedAt: Date | null;
|
80418
|
+
entityId: string;
|
80419
|
+
attributeId: string;
|
80420
|
+
textValue: string | null;
|
80421
|
+
booleanValue: boolean | null;
|
80422
|
+
numberValue: number | null;
|
80423
|
+
dateValue: Date | null;
|
80424
|
+
}[] | null | undefined;
|
80425
|
+
} | null;
|
80426
|
+
};
|
80427
|
+
workflowRule: {
|
80428
|
+
type: string;
|
80429
|
+
id: string;
|
80430
|
+
name: string;
|
80431
|
+
createdAt: Date;
|
80432
|
+
updatedAt: Date;
|
80433
|
+
deletedAt: Date | null;
|
80434
|
+
isActive: boolean;
|
80435
|
+
};
|
80436
|
+
}[];
|
80437
|
+
requestId: string;
|
80438
|
+
}, {
|
80439
|
+
data: {
|
80440
|
+
id: string;
|
80441
|
+
channel: {
|
80442
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
80443
|
+
id: string;
|
80444
|
+
name: string;
|
80445
|
+
metadata: {
|
80446
|
+
id: string;
|
80447
|
+
name: string;
|
80448
|
+
accessToken?: string | undefined;
|
80449
|
+
channelSecret?: string | undefined;
|
80450
|
+
additionalCredentials?: any;
|
80451
|
+
lineRichMenuId?: string | null | undefined;
|
80452
|
+
};
|
80453
|
+
status: boolean;
|
80454
|
+
createdAt: Date;
|
80455
|
+
updatedAt: Date;
|
80456
|
+
deletedAt: Date | null;
|
80457
|
+
actor: {
|
80458
|
+
id: string;
|
80459
|
+
address: string | null;
|
80460
|
+
name: string;
|
80461
|
+
email: string;
|
80462
|
+
createdAt: Date;
|
80463
|
+
updatedAt: Date;
|
80464
|
+
deletedAt: Date | null;
|
80465
|
+
emailVerifiedAt: Date | null;
|
80466
|
+
password: string;
|
80467
|
+
phone: string | null;
|
80468
|
+
notificationCount: number | null;
|
80469
|
+
roles: {
|
80470
|
+
id: string;
|
80471
|
+
description: string | null;
|
80472
|
+
createdAt: Date;
|
80473
|
+
updatedAt: Date;
|
80474
|
+
deletedAt: Date | null;
|
80475
|
+
systemName: string;
|
80476
|
+
displayName: string;
|
80477
|
+
permissions: {
|
80478
|
+
id: string;
|
80479
|
+
description: string | null;
|
80480
|
+
createdAt: Date;
|
80481
|
+
updatedAt: Date;
|
80482
|
+
deletedAt: Date | null;
|
80483
|
+
systemName: string;
|
80484
|
+
displayName: string;
|
80485
|
+
}[];
|
80486
|
+
}[];
|
80487
|
+
extension: {
|
80488
|
+
id: string;
|
80489
|
+
createdAt: Date;
|
80490
|
+
updatedAt: Date;
|
80491
|
+
deletedAt: Date | null;
|
80492
|
+
userId: string | null;
|
80493
|
+
sipServerUrl: string;
|
80494
|
+
sipUserName: string;
|
80495
|
+
webphoneLoginUser: string;
|
80496
|
+
extensionId: string | null;
|
80497
|
+
extensionName: string;
|
80498
|
+
telephonySignature: string | null;
|
80499
|
+
};
|
80500
|
+
};
|
80501
|
+
brandName: string;
|
80502
|
+
platformId: string;
|
80503
|
+
isReloginRequired: boolean;
|
80504
|
+
connectedUserName: string;
|
80505
|
+
connectedUserId: string;
|
80506
|
+
botpressBot: {
|
80507
|
+
id: string;
|
80508
|
+
name: string;
|
80509
|
+
accessToken: string;
|
80510
|
+
botId: string;
|
80511
|
+
integrationId: string;
|
80512
|
+
} | null;
|
80513
|
+
};
|
80514
|
+
direction: "incoming" | "outgoing" | "system";
|
80515
|
+
status: number;
|
80516
|
+
createdAt: Date;
|
80517
|
+
updatedAt: Date;
|
80518
|
+
deletedAt: Date | null;
|
80519
|
+
actor: {
|
80520
|
+
id: string;
|
80521
|
+
address: string | null;
|
80522
|
+
name: string;
|
80523
|
+
email: string;
|
80524
|
+
createdAt: Date;
|
80525
|
+
updatedAt: Date;
|
80526
|
+
deletedAt: Date | null;
|
80527
|
+
emailVerifiedAt: Date | null;
|
80528
|
+
password: string;
|
80529
|
+
phone: string | null;
|
80530
|
+
notificationCount: number | null;
|
80531
|
+
roles: {
|
80532
|
+
id: string;
|
80533
|
+
description: string | null;
|
80534
|
+
createdAt: Date;
|
80535
|
+
updatedAt: Date;
|
80536
|
+
deletedAt: Date | null;
|
80537
|
+
systemName: string;
|
80538
|
+
displayName: string;
|
80539
|
+
permissions: {
|
80540
|
+
id: string;
|
80541
|
+
description: string | null;
|
80542
|
+
createdAt: Date;
|
80543
|
+
updatedAt: Date;
|
80544
|
+
deletedAt: Date | null;
|
80545
|
+
systemName: string;
|
80546
|
+
displayName: string;
|
80547
|
+
}[];
|
80548
|
+
}[];
|
80549
|
+
extension: {
|
80550
|
+
id: string;
|
80551
|
+
createdAt: Date;
|
80552
|
+
updatedAt: Date;
|
80553
|
+
deletedAt: Date | null;
|
80554
|
+
userId: string | null;
|
80555
|
+
sipServerUrl: string;
|
80556
|
+
sipUserName: string;
|
80557
|
+
webphoneLoginUser: string;
|
80558
|
+
extensionId: string | null;
|
80559
|
+
extensionName: string;
|
80560
|
+
telephonySignature: string | null;
|
80561
|
+
};
|
80562
|
+
};
|
80563
|
+
firstResponseTime: number;
|
80564
|
+
lastMessage: string;
|
80565
|
+
handleTime: number;
|
80566
|
+
unreadCount: number;
|
80567
|
+
firstResponseAt: Date;
|
80568
|
+
isLatest: boolean;
|
80569
|
+
platformContact: {
|
80570
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
|
80571
|
+
id: string;
|
80572
|
+
metadata: {
|
80573
|
+
id: string;
|
80574
|
+
name: string;
|
80575
|
+
picture?: string | undefined;
|
80576
|
+
additionalCredentials?: any;
|
80577
|
+
};
|
80578
|
+
createdAt: Date;
|
80579
|
+
updatedAt: Date;
|
80580
|
+
deletedAt: Date | null;
|
80581
|
+
contact: {
|
80582
|
+
id: string;
|
80583
|
+
channel: string | null;
|
80584
|
+
address: string | null;
|
80585
|
+
name: string;
|
80586
|
+
createdAt: Date;
|
80587
|
+
updatedAt: Date;
|
80588
|
+
deletedAt: Date | null;
|
80589
|
+
customFields: {
|
80590
|
+
id: string;
|
80591
|
+
createdAt: Date;
|
80592
|
+
updatedAt: Date;
|
80593
|
+
deletedAt: Date | null;
|
80594
|
+
attribute: {
|
80595
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
80596
|
+
id: string;
|
80597
|
+
position: number;
|
80598
|
+
createdAt: Date;
|
80599
|
+
updatedAt: Date;
|
80600
|
+
deletedAt: Date | null;
|
80601
|
+
systemName: string;
|
80602
|
+
displayName: string;
|
80603
|
+
isDefault: boolean;
|
80604
|
+
isArchived: boolean;
|
80605
|
+
isRequired: boolean;
|
80606
|
+
isUnique: boolean;
|
80607
|
+
};
|
80608
|
+
textValue: string | null;
|
80609
|
+
booleanValue: boolean | null;
|
80610
|
+
numberValue: number | null;
|
80611
|
+
dateValue: Date | null;
|
80612
|
+
uploads: {
|
80613
|
+
id: string;
|
80614
|
+
status: string | null;
|
80615
|
+
createdAt: Date;
|
80616
|
+
updatedAt: Date;
|
80617
|
+
deletedAt: Date | null;
|
80618
|
+
fileName: string;
|
80619
|
+
fileKey: string;
|
80620
|
+
bucketName: string;
|
80621
|
+
fileSize: number;
|
80622
|
+
fileUrl: string | null;
|
80623
|
+
}[];
|
80624
|
+
}[];
|
80625
|
+
company: {
|
80626
|
+
id: string;
|
80627
|
+
createdAt: Date;
|
80628
|
+
updatedAt: Date;
|
80629
|
+
deletedAt: Date | null;
|
80630
|
+
address?: string | null | undefined;
|
80631
|
+
name?: string | undefined;
|
80632
|
+
phone?: string | null | undefined;
|
80633
|
+
industry?: string | null | undefined;
|
80634
|
+
} | null;
|
80635
|
+
notes: string | null;
|
80636
|
+
contactProfile: string | null;
|
80637
|
+
socialProfileUrl: string | null;
|
80638
|
+
tags: {
|
80639
|
+
id: string;
|
80640
|
+
name: string;
|
80641
|
+
createdAt: Date;
|
80642
|
+
updatedAt: Date;
|
80643
|
+
deletedAt: Date | null;
|
80644
|
+
}[];
|
80645
|
+
contactEmails: {
|
80646
|
+
id: string;
|
80647
|
+
isPrimary: boolean;
|
80648
|
+
email: string;
|
80649
|
+
createdAt: Date;
|
80650
|
+
updatedAt: Date;
|
80651
|
+
deletedAt: Date | null;
|
80652
|
+
}[];
|
80653
|
+
contactPhones: {
|
80654
|
+
id: string;
|
80655
|
+
isPrimary: boolean;
|
80656
|
+
createdAt: Date;
|
80657
|
+
updatedAt: Date;
|
80658
|
+
deletedAt: Date | null;
|
80659
|
+
phone: string;
|
80660
|
+
}[];
|
80661
|
+
activityLogs?: {
|
80662
|
+
id: string;
|
80663
|
+
description: string;
|
80664
|
+
createdAt: Date;
|
80665
|
+
updatedAt: Date;
|
80666
|
+
deletedAt: Date | null;
|
80667
|
+
entityId: string;
|
80668
|
+
entityType: {
|
80669
|
+
id: string;
|
80670
|
+
description: string | null;
|
80671
|
+
createdAt: Date;
|
80672
|
+
updatedAt: Date;
|
80673
|
+
deletedAt: Date | null;
|
80674
|
+
entity: string;
|
80675
|
+
};
|
80676
|
+
}[] | undefined;
|
80677
|
+
};
|
80678
|
+
channelId: string;
|
80679
|
+
socialPlatformId: string;
|
80680
|
+
};
|
80681
|
+
assignee: {
|
80682
|
+
id: string;
|
80683
|
+
address: string | null;
|
80684
|
+
name: string;
|
80685
|
+
email: string;
|
80686
|
+
createdAt: Date;
|
80687
|
+
updatedAt: Date;
|
80688
|
+
deletedAt: Date | null;
|
80689
|
+
emailVerifiedAt: Date | null;
|
80690
|
+
password: string;
|
80691
|
+
phone: string | null;
|
80692
|
+
notificationCount: number | null;
|
80693
|
+
roles: {
|
80694
|
+
id: string;
|
80695
|
+
description: string | null;
|
80696
|
+
createdAt: Date;
|
80697
|
+
updatedAt: Date;
|
80698
|
+
deletedAt: Date | null;
|
80699
|
+
systemName: string;
|
80700
|
+
displayName: string;
|
80701
|
+
permissions: {
|
80702
|
+
id: string;
|
80703
|
+
description: string | null;
|
80704
|
+
createdAt: Date;
|
80705
|
+
updatedAt: Date;
|
80706
|
+
deletedAt: Date | null;
|
80707
|
+
systemName: string;
|
80708
|
+
displayName: string;
|
80709
|
+
}[];
|
80710
|
+
}[];
|
80711
|
+
extension: {
|
80712
|
+
id: string;
|
80713
|
+
createdAt: Date;
|
80714
|
+
updatedAt: Date;
|
80715
|
+
deletedAt: Date | null;
|
80716
|
+
userId: string | null;
|
80717
|
+
sipServerUrl: string;
|
80718
|
+
sipUserName: string;
|
80719
|
+
webphoneLoginUser: string;
|
80720
|
+
extensionId: string | null;
|
80721
|
+
extensionName: string;
|
80722
|
+
telephonySignature: string | null;
|
80723
|
+
};
|
80724
|
+
};
|
80725
|
+
closedAt: Date;
|
80726
|
+
lastMessageAt: Date | null;
|
80727
|
+
isBotRoom: boolean;
|
80728
|
+
cxlog: {
|
80729
|
+
id: string;
|
80730
|
+
channel: string | null;
|
80731
|
+
direction: string | null;
|
80732
|
+
createdAt: Date;
|
80733
|
+
updatedAt: Date;
|
80734
|
+
deletedAt: Date | null;
|
80735
|
+
entityId: string;
|
80736
|
+
queueId: string | null;
|
80737
|
+
contactId: string | null;
|
80738
|
+
caseId: number;
|
80739
|
+
entityName: string;
|
80740
|
+
agentId: string | null;
|
80741
|
+
startedDate: Date | null;
|
80742
|
+
handledTime: number | null;
|
80743
|
+
firstResponseTime: number | null;
|
80744
|
+
wrapUpForm: {
|
80745
|
+
type: string;
|
80746
|
+
id: string;
|
80747
|
+
disposition: string | null;
|
80748
|
+
createdAt: Date;
|
80749
|
+
updatedAt: Date;
|
80750
|
+
deletedAt: Date | null;
|
80751
|
+
categories: {
|
80752
|
+
id: string;
|
80753
|
+
value: string;
|
80754
|
+
createdAt: Date;
|
80755
|
+
updatedAt: Date;
|
80756
|
+
deletedAt: Date | null;
|
80757
|
+
level: 2 | 1 | 3;
|
80758
|
+
parentId: string | null;
|
80759
|
+
childCategoryList: {
|
80760
|
+
id: string;
|
80761
|
+
value: string;
|
80762
|
+
level: 2 | 1 | 3;
|
80763
|
+
parentId: string | null;
|
80764
|
+
childCategoryList: {
|
80765
|
+
id: string;
|
80766
|
+
value: string;
|
80767
|
+
level: 2 | 1 | 3;
|
80768
|
+
parentId: string | null;
|
80769
|
+
childCategoryList: any[];
|
80770
|
+
}[];
|
80771
|
+
}[];
|
80772
|
+
}[];
|
80773
|
+
tags: {
|
80774
|
+
id: string;
|
80775
|
+
name: string;
|
80776
|
+
createdAt: Date;
|
80777
|
+
updatedAt: Date;
|
80778
|
+
deletedAt: Date | null;
|
80779
|
+
}[];
|
80780
|
+
callFrom: string | null;
|
80781
|
+
callTo: string | null;
|
80782
|
+
note: string | null;
|
80783
|
+
customFields?: {
|
80784
|
+
id: string;
|
80785
|
+
createdAt: Date;
|
80786
|
+
updatedAt: Date;
|
80787
|
+
deletedAt: Date | null;
|
80788
|
+
entityId: string;
|
80789
|
+
attributeId: string;
|
80790
|
+
textValue: string | null;
|
80791
|
+
booleanValue: boolean | null;
|
80792
|
+
numberValue: number | null;
|
80793
|
+
dateValue: Date | null;
|
80794
|
+
}[] | null | undefined;
|
80795
|
+
} | null;
|
80796
|
+
};
|
80797
|
+
workflowRule: {
|
80798
|
+
type: string;
|
80799
|
+
id: string;
|
80800
|
+
name: string;
|
80801
|
+
createdAt: Date;
|
80802
|
+
updatedAt: Date;
|
80803
|
+
deletedAt: Date | null;
|
80804
|
+
isActive: boolean;
|
80805
|
+
};
|
80806
|
+
}[];
|
80807
|
+
requestId: string;
|
80808
|
+
}>;
|
80809
|
+
409: z.ZodObject<{
|
80810
|
+
message: z.ZodString;
|
80811
|
+
error: z.ZodAny;
|
80812
|
+
}, "strip", z.ZodTypeAny, {
|
80813
|
+
message: string;
|
80814
|
+
error?: any;
|
80815
|
+
}, {
|
80816
|
+
message: string;
|
80817
|
+
error?: any;
|
80818
|
+
}>;
|
80819
|
+
};
|
80820
|
+
path: "chat/room/assignee/update_rooms";
|
80821
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
80822
|
+
'x-tenant': z.ZodString;
|
80823
|
+
authorization: z.ZodString;
|
80824
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
80825
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
80826
|
+
}, "strip", z.ZodTypeAny, {
|
80827
|
+
'x-tenant': string;
|
80828
|
+
authorization: string;
|
80829
|
+
'x-client-timezone': string;
|
80830
|
+
'x-code'?: string | undefined;
|
80831
|
+
}, {
|
80832
|
+
'x-tenant': string;
|
80833
|
+
authorization: string;
|
80834
|
+
'x-code'?: string | undefined;
|
80835
|
+
'x-client-timezone'?: string | undefined;
|
80836
|
+
}>>>;
|
80837
|
+
};
|
77107
80838
|
updateAssignee: {
|
77108
80839
|
body: z.ZodObject<{
|
77109
80840
|
assigneeId: z.ZodString;
|
77110
80841
|
roomId: z.ZodString;
|
77111
|
-
actionType: z.ZodDefault<z.ZodEnum<["assign_to_me", "hangover_to_me", "assign_other_agent"]>>;
|
77112
80842
|
}, "strip", z.ZodTypeAny, {
|
77113
80843
|
assigneeId: string;
|
77114
80844
|
roomId: string;
|
77115
|
-
actionType: "assign_to_me" | "hangover_to_me" | "assign_other_agent";
|
77116
80845
|
}, {
|
77117
80846
|
assigneeId: string;
|
77118
80847
|
roomId: string;
|
77119
|
-
actionType?: "assign_to_me" | "hangover_to_me" | "assign_other_agent" | undefined;
|
77120
80848
|
}>;
|
77121
80849
|
summary: "Update room assignee";
|
77122
80850
|
method: "POST";
|