@kl1/contracts 1.1.66-uat → 1.1.68-uat

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
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>;
@@ -12,6 +12,7 @@ export type RoomResponse = z.infer<typeof RoomSchema>;
12
12
  export type SolveRoomRequest = z.infer<typeof SolveRoomSchema>;
13
13
  export type UpdateAssigneeRequest = z.infer<typeof UpdateAssigneeSchema>;
14
14
  export type UpdateAssigneeByWorkflowRequest = z.infer<typeof UpdateAssigneeByWorkflowSchema>;
15
+ export type UpdateUnAssignRoomsRequest = z.infer<typeof UpdateUnAssignRoomsSchema>;
15
16
  export type SearchRoomsRequest = z.infer<typeof SearchRoomsSchema>;
16
17
  export type SendMessageToPlatformRequest = z.infer<typeof SendMessageToPlatformSchema>;
17
18
  export type DeleteMessageToPlatformRequest = z.infer<typeof DeleteMessageToPlatformSchema>;
@@ -77105,7 +77106,7 @@ export declare const mainChatContract: {
77105
77106
  'x-client-timezone'?: string | undefined;
77106
77107
  }>>>;
77107
77108
  };
77108
- updateAssignee: {
77109
+ updateUnassignRoomsToAssignee: {
77109
77110
  body: z.ZodObject<{
77110
77111
  assigneeId: z.ZodString;
77111
77112
  roomIds: z.ZodArray<z.ZodString, "many">;
@@ -80816,6 +80817,3735 @@ export declare const mainChatContract: {
80816
80817
  error?: any;
80817
80818
  }>;
80818
80819
  };
80820
+ path: "chat/rooms/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
+ };
80838
+ updateAssignee: {
80839
+ body: z.ZodObject<{
80840
+ assigneeId: z.ZodString;
80841
+ roomId: z.ZodString;
80842
+ actionType: z.ZodDefault<z.ZodEnum<["assign_to_me", "hangover_to_me", "assign_other_agent"]>>;
80843
+ }, "strip", z.ZodTypeAny, {
80844
+ assigneeId: string;
80845
+ roomId: string;
80846
+ actionType: "assign_to_me" | "hangover_to_me" | "assign_other_agent";
80847
+ }, {
80848
+ assigneeId: string;
80849
+ roomId: string;
80850
+ actionType?: "assign_to_me" | "hangover_to_me" | "assign_other_agent" | undefined;
80851
+ }>;
80852
+ summary: "Update room assignee";
80853
+ method: "POST";
80854
+ responses: {
80855
+ 200: z.ZodObject<{
80856
+ requestId: z.ZodString;
80857
+ data: z.ZodObject<{
80858
+ id: z.ZodString;
80859
+ createdAt: z.ZodDate;
80860
+ updatedAt: z.ZodDate;
80861
+ deletedAt: z.ZodNullable<z.ZodDate>;
80862
+ lastMessage: z.ZodString;
80863
+ handleTime: z.ZodNumber;
80864
+ closedAt: z.ZodDate;
80865
+ lastMessageAt: z.ZodNullable<z.ZodDate>;
80866
+ status: z.ZodNumber;
80867
+ unreadCount: z.ZodNumber;
80868
+ firstResponseAt: z.ZodDate;
80869
+ firstResponseTime: z.ZodNumber;
80870
+ isLatest: z.ZodBoolean;
80871
+ isBotRoom: z.ZodBoolean;
80872
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
80873
+ platformContact: z.ZodObject<{
80874
+ id: z.ZodString;
80875
+ createdAt: z.ZodDate;
80876
+ updatedAt: z.ZodDate;
80877
+ deletedAt: z.ZodNullable<z.ZodDate>;
80878
+ channelId: z.ZodString;
80879
+ socialPlatformId: z.ZodString;
80880
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
80881
+ metadata: z.ZodObject<{
80882
+ id: z.ZodString;
80883
+ name: z.ZodString;
80884
+ picture: z.ZodOptional<z.ZodString>;
80885
+ additionalCredentials: z.ZodAny;
80886
+ }, "strip", z.ZodTypeAny, {
80887
+ id: string;
80888
+ name: string;
80889
+ picture?: string | undefined;
80890
+ additionalCredentials?: any;
80891
+ }, {
80892
+ id: string;
80893
+ name: string;
80894
+ picture?: string | undefined;
80895
+ additionalCredentials?: any;
80896
+ }>;
80897
+ contact: z.ZodObject<{
80898
+ id: z.ZodString;
80899
+ createdAt: z.ZodDate;
80900
+ updatedAt: z.ZodDate;
80901
+ deletedAt: z.ZodNullable<z.ZodDate>;
80902
+ name: z.ZodString;
80903
+ address: z.ZodNullable<z.ZodString>;
80904
+ channel: z.ZodNullable<z.ZodString>;
80905
+ notes: z.ZodNullable<z.ZodString>;
80906
+ contactProfile: z.ZodNullable<z.ZodString>;
80907
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
80908
+ tags: z.ZodArray<z.ZodObject<{
80909
+ id: z.ZodString;
80910
+ createdAt: z.ZodDate;
80911
+ updatedAt: z.ZodDate;
80912
+ deletedAt: z.ZodNullable<z.ZodDate>;
80913
+ name: z.ZodString;
80914
+ }, "strip", z.ZodTypeAny, {
80915
+ id: string;
80916
+ name: string;
80917
+ createdAt: Date;
80918
+ updatedAt: Date;
80919
+ deletedAt: Date | null;
80920
+ }, {
80921
+ id: string;
80922
+ name: string;
80923
+ createdAt: Date;
80924
+ updatedAt: Date;
80925
+ deletedAt: Date | null;
80926
+ }>, "many">;
80927
+ company: z.ZodNullable<z.ZodObject<Omit<{
80928
+ id: z.ZodString;
80929
+ createdAt: z.ZodDate;
80930
+ updatedAt: z.ZodDate;
80931
+ deletedAt: z.ZodNullable<z.ZodDate>;
80932
+ name: z.ZodOptional<z.ZodString>;
80933
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80934
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80935
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80936
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
80937
+ id: z.ZodString;
80938
+ createdAt: z.ZodDate;
80939
+ updatedAt: z.ZodDate;
80940
+ deletedAt: z.ZodNullable<z.ZodDate>;
80941
+ textValue: z.ZodNullable<z.ZodString>;
80942
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
80943
+ numberValue: z.ZodNullable<z.ZodNumber>;
80944
+ dateValue: z.ZodNullable<z.ZodDate>;
80945
+ attribute: z.ZodObject<Omit<{
80946
+ id: z.ZodString;
80947
+ createdAt: z.ZodDate;
80948
+ updatedAt: z.ZodDate;
80949
+ deletedAt: z.ZodNullable<z.ZodDate>;
80950
+ systemName: z.ZodString;
80951
+ displayName: z.ZodString;
80952
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
80953
+ position: z.ZodNumber;
80954
+ isDefault: z.ZodBoolean;
80955
+ isArchived: z.ZodBoolean;
80956
+ isRequired: z.ZodBoolean;
80957
+ isUnique: z.ZodBoolean;
80958
+ options: z.ZodArray<z.ZodObject<{
80959
+ position: z.ZodNumber;
80960
+ value: z.ZodString;
80961
+ label: z.ZodString;
80962
+ isDefault: z.ZodBoolean;
80963
+ id: z.ZodString;
80964
+ }, "strip", z.ZodTypeAny, {
80965
+ id: string;
80966
+ position: number;
80967
+ value: string;
80968
+ label: string;
80969
+ isDefault: boolean;
80970
+ }, {
80971
+ id: string;
80972
+ position: number;
80973
+ value: string;
80974
+ label: string;
80975
+ isDefault: boolean;
80976
+ }>, "many">;
80977
+ group: z.ZodObject<{
80978
+ id: z.ZodString;
80979
+ createdAt: z.ZodDate;
80980
+ updatedAt: z.ZodDate;
80981
+ deletedAt: z.ZodNullable<z.ZodDate>;
80982
+ systemName: z.ZodString;
80983
+ displayName: z.ZodString;
80984
+ }, "strip", z.ZodTypeAny, {
80985
+ id: string;
80986
+ createdAt: Date;
80987
+ updatedAt: Date;
80988
+ deletedAt: Date | null;
80989
+ systemName: string;
80990
+ displayName: string;
80991
+ }, {
80992
+ id: string;
80993
+ createdAt: Date;
80994
+ updatedAt: Date;
80995
+ deletedAt: Date | null;
80996
+ systemName: string;
80997
+ displayName: string;
80998
+ }>;
80999
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
81000
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81001
+ id: string;
81002
+ position: number;
81003
+ createdAt: Date;
81004
+ updatedAt: Date;
81005
+ deletedAt: Date | null;
81006
+ systemName: string;
81007
+ displayName: string;
81008
+ isDefault: boolean;
81009
+ isArchived: boolean;
81010
+ isRequired: boolean;
81011
+ isUnique: boolean;
81012
+ }, {
81013
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81014
+ id: string;
81015
+ position: number;
81016
+ createdAt: Date;
81017
+ updatedAt: Date;
81018
+ deletedAt: Date | null;
81019
+ systemName: string;
81020
+ displayName: string;
81021
+ isDefault: boolean;
81022
+ isArchived: boolean;
81023
+ isRequired: boolean;
81024
+ isUnique: boolean;
81025
+ }>;
81026
+ }, "strip", z.ZodTypeAny, {
81027
+ id: string;
81028
+ createdAt: Date;
81029
+ updatedAt: Date;
81030
+ deletedAt: Date | null;
81031
+ attribute: {
81032
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81033
+ id: string;
81034
+ position: number;
81035
+ createdAt: Date;
81036
+ updatedAt: Date;
81037
+ deletedAt: Date | null;
81038
+ systemName: string;
81039
+ displayName: string;
81040
+ isDefault: boolean;
81041
+ isArchived: boolean;
81042
+ isRequired: boolean;
81043
+ isUnique: boolean;
81044
+ };
81045
+ textValue: string | null;
81046
+ booleanValue: boolean | null;
81047
+ numberValue: number | null;
81048
+ dateValue: Date | null;
81049
+ }, {
81050
+ id: string;
81051
+ createdAt: Date;
81052
+ updatedAt: Date;
81053
+ deletedAt: Date | null;
81054
+ attribute: {
81055
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81056
+ id: string;
81057
+ position: number;
81058
+ createdAt: Date;
81059
+ updatedAt: Date;
81060
+ deletedAt: Date | null;
81061
+ systemName: string;
81062
+ displayName: string;
81063
+ isDefault: boolean;
81064
+ isArchived: boolean;
81065
+ isRequired: boolean;
81066
+ isUnique: boolean;
81067
+ };
81068
+ textValue: string | null;
81069
+ booleanValue: boolean | null;
81070
+ numberValue: number | null;
81071
+ dateValue: Date | null;
81072
+ }>, "many">>;
81073
+ }, "customFields">, "strip", z.ZodTypeAny, {
81074
+ id: string;
81075
+ createdAt: Date;
81076
+ updatedAt: Date;
81077
+ deletedAt: Date | null;
81078
+ address?: string | null | undefined;
81079
+ name?: string | undefined;
81080
+ phone?: string | null | undefined;
81081
+ industry?: string | null | undefined;
81082
+ }, {
81083
+ id: string;
81084
+ createdAt: Date;
81085
+ updatedAt: Date;
81086
+ deletedAt: Date | null;
81087
+ address?: string | null | undefined;
81088
+ name?: string | undefined;
81089
+ phone?: string | null | undefined;
81090
+ industry?: string | null | undefined;
81091
+ }>>;
81092
+ customFields: z.ZodArray<z.ZodObject<{
81093
+ id: z.ZodString;
81094
+ createdAt: z.ZodDate;
81095
+ updatedAt: z.ZodDate;
81096
+ deletedAt: z.ZodNullable<z.ZodDate>;
81097
+ textValue: z.ZodNullable<z.ZodString>;
81098
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
81099
+ numberValue: z.ZodNullable<z.ZodNumber>;
81100
+ dateValue: z.ZodNullable<z.ZodDate>;
81101
+ attribute: z.ZodObject<Omit<{
81102
+ id: z.ZodString;
81103
+ createdAt: z.ZodDate;
81104
+ updatedAt: z.ZodDate;
81105
+ deletedAt: z.ZodNullable<z.ZodDate>;
81106
+ systemName: z.ZodString;
81107
+ displayName: z.ZodString;
81108
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
81109
+ position: z.ZodNumber;
81110
+ isDefault: z.ZodBoolean;
81111
+ isArchived: z.ZodBoolean;
81112
+ isRequired: z.ZodBoolean;
81113
+ isUnique: z.ZodBoolean;
81114
+ options: z.ZodArray<z.ZodObject<{
81115
+ position: z.ZodNumber;
81116
+ value: z.ZodString;
81117
+ label: z.ZodString;
81118
+ isDefault: z.ZodBoolean;
81119
+ id: z.ZodString;
81120
+ }, "strip", z.ZodTypeAny, {
81121
+ id: string;
81122
+ position: number;
81123
+ value: string;
81124
+ label: string;
81125
+ isDefault: boolean;
81126
+ }, {
81127
+ id: string;
81128
+ position: number;
81129
+ value: string;
81130
+ label: string;
81131
+ isDefault: boolean;
81132
+ }>, "many">;
81133
+ group: z.ZodObject<{
81134
+ id: z.ZodString;
81135
+ createdAt: z.ZodDate;
81136
+ updatedAt: z.ZodDate;
81137
+ deletedAt: z.ZodNullable<z.ZodDate>;
81138
+ systemName: z.ZodString;
81139
+ displayName: z.ZodString;
81140
+ }, "strip", z.ZodTypeAny, {
81141
+ id: string;
81142
+ createdAt: Date;
81143
+ updatedAt: Date;
81144
+ deletedAt: Date | null;
81145
+ systemName: string;
81146
+ displayName: string;
81147
+ }, {
81148
+ id: string;
81149
+ createdAt: Date;
81150
+ updatedAt: Date;
81151
+ deletedAt: Date | null;
81152
+ systemName: string;
81153
+ displayName: string;
81154
+ }>;
81155
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
81156
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81157
+ id: string;
81158
+ position: number;
81159
+ createdAt: Date;
81160
+ updatedAt: Date;
81161
+ deletedAt: Date | null;
81162
+ systemName: string;
81163
+ displayName: string;
81164
+ isDefault: boolean;
81165
+ isArchived: boolean;
81166
+ isRequired: boolean;
81167
+ isUnique: boolean;
81168
+ }, {
81169
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81170
+ id: string;
81171
+ position: number;
81172
+ createdAt: Date;
81173
+ updatedAt: Date;
81174
+ deletedAt: Date | null;
81175
+ systemName: string;
81176
+ displayName: string;
81177
+ isDefault: boolean;
81178
+ isArchived: boolean;
81179
+ isRequired: boolean;
81180
+ isUnique: boolean;
81181
+ }>;
81182
+ uploads: z.ZodArray<z.ZodObject<{
81183
+ id: z.ZodString;
81184
+ createdAt: z.ZodDate;
81185
+ updatedAt: z.ZodDate;
81186
+ deletedAt: z.ZodNullable<z.ZodDate>;
81187
+ bucketName: z.ZodString;
81188
+ fileName: z.ZodString;
81189
+ fileSize: z.ZodNumber;
81190
+ fileKey: z.ZodString;
81191
+ fileUrl: z.ZodNullable<z.ZodString>;
81192
+ status: z.ZodNullable<z.ZodString>;
81193
+ }, "strip", z.ZodTypeAny, {
81194
+ id: string;
81195
+ status: string | null;
81196
+ createdAt: Date;
81197
+ updatedAt: Date;
81198
+ deletedAt: Date | null;
81199
+ fileName: string;
81200
+ fileKey: string;
81201
+ bucketName: string;
81202
+ fileSize: number;
81203
+ fileUrl: string | null;
81204
+ }, {
81205
+ id: string;
81206
+ status: string | null;
81207
+ createdAt: Date;
81208
+ updatedAt: Date;
81209
+ deletedAt: Date | null;
81210
+ fileName: string;
81211
+ fileKey: string;
81212
+ bucketName: string;
81213
+ fileSize: number;
81214
+ fileUrl: string | null;
81215
+ }>, "many">;
81216
+ }, "strip", z.ZodTypeAny, {
81217
+ id: string;
81218
+ createdAt: Date;
81219
+ updatedAt: Date;
81220
+ deletedAt: Date | null;
81221
+ attribute: {
81222
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81223
+ id: string;
81224
+ position: number;
81225
+ createdAt: Date;
81226
+ updatedAt: Date;
81227
+ deletedAt: Date | null;
81228
+ systemName: string;
81229
+ displayName: string;
81230
+ isDefault: boolean;
81231
+ isArchived: boolean;
81232
+ isRequired: boolean;
81233
+ isUnique: boolean;
81234
+ };
81235
+ textValue: string | null;
81236
+ booleanValue: boolean | null;
81237
+ numberValue: number | null;
81238
+ dateValue: Date | null;
81239
+ uploads: {
81240
+ id: string;
81241
+ status: string | null;
81242
+ createdAt: Date;
81243
+ updatedAt: Date;
81244
+ deletedAt: Date | null;
81245
+ fileName: string;
81246
+ fileKey: string;
81247
+ bucketName: string;
81248
+ fileSize: number;
81249
+ fileUrl: string | null;
81250
+ }[];
81251
+ }, {
81252
+ id: string;
81253
+ createdAt: Date;
81254
+ updatedAt: Date;
81255
+ deletedAt: Date | null;
81256
+ attribute: {
81257
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81258
+ id: string;
81259
+ position: number;
81260
+ createdAt: Date;
81261
+ updatedAt: Date;
81262
+ deletedAt: Date | null;
81263
+ systemName: string;
81264
+ displayName: string;
81265
+ isDefault: boolean;
81266
+ isArchived: boolean;
81267
+ isRequired: boolean;
81268
+ isUnique: boolean;
81269
+ };
81270
+ textValue: string | null;
81271
+ booleanValue: boolean | null;
81272
+ numberValue: number | null;
81273
+ dateValue: Date | null;
81274
+ uploads: {
81275
+ id: string;
81276
+ status: string | null;
81277
+ createdAt: Date;
81278
+ updatedAt: Date;
81279
+ deletedAt: Date | null;
81280
+ fileName: string;
81281
+ fileKey: string;
81282
+ bucketName: string;
81283
+ fileSize: number;
81284
+ fileUrl: string | null;
81285
+ }[];
81286
+ }>, "many">;
81287
+ contactEmails: z.ZodArray<z.ZodObject<{
81288
+ id: z.ZodString;
81289
+ createdAt: z.ZodDate;
81290
+ updatedAt: z.ZodDate;
81291
+ deletedAt: z.ZodNullable<z.ZodDate>;
81292
+ email: z.ZodString;
81293
+ isPrimary: z.ZodBoolean;
81294
+ }, "strip", z.ZodTypeAny, {
81295
+ id: string;
81296
+ isPrimary: boolean;
81297
+ email: string;
81298
+ createdAt: Date;
81299
+ updatedAt: Date;
81300
+ deletedAt: Date | null;
81301
+ }, {
81302
+ id: string;
81303
+ isPrimary: boolean;
81304
+ email: string;
81305
+ createdAt: Date;
81306
+ updatedAt: Date;
81307
+ deletedAt: Date | null;
81308
+ }>, "many">;
81309
+ contactPhones: z.ZodArray<z.ZodObject<{
81310
+ id: z.ZodString;
81311
+ createdAt: z.ZodDate;
81312
+ updatedAt: z.ZodDate;
81313
+ deletedAt: z.ZodNullable<z.ZodDate>;
81314
+ phone: z.ZodString;
81315
+ isPrimary: z.ZodBoolean;
81316
+ }, "strip", z.ZodTypeAny, {
81317
+ id: string;
81318
+ isPrimary: boolean;
81319
+ createdAt: Date;
81320
+ updatedAt: Date;
81321
+ deletedAt: Date | null;
81322
+ phone: string;
81323
+ }, {
81324
+ id: string;
81325
+ isPrimary: boolean;
81326
+ createdAt: Date;
81327
+ updatedAt: Date;
81328
+ deletedAt: Date | null;
81329
+ phone: string;
81330
+ }>, "many">;
81331
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
81332
+ id: z.ZodString;
81333
+ createdAt: z.ZodDate;
81334
+ updatedAt: z.ZodDate;
81335
+ deletedAt: z.ZodNullable<z.ZodDate>;
81336
+ entityId: z.ZodString;
81337
+ description: z.ZodString;
81338
+ entityType: z.ZodObject<{
81339
+ id: z.ZodString;
81340
+ createdAt: z.ZodDate;
81341
+ updatedAt: z.ZodDate;
81342
+ deletedAt: z.ZodNullable<z.ZodDate>;
81343
+ entity: z.ZodString;
81344
+ description: z.ZodNullable<z.ZodString>;
81345
+ }, "strip", z.ZodTypeAny, {
81346
+ id: string;
81347
+ description: string | null;
81348
+ createdAt: Date;
81349
+ updatedAt: Date;
81350
+ deletedAt: Date | null;
81351
+ entity: string;
81352
+ }, {
81353
+ id: string;
81354
+ description: string | null;
81355
+ createdAt: Date;
81356
+ updatedAt: Date;
81357
+ deletedAt: Date | null;
81358
+ entity: string;
81359
+ }>;
81360
+ }, "strip", z.ZodTypeAny, {
81361
+ id: string;
81362
+ description: string;
81363
+ createdAt: Date;
81364
+ updatedAt: Date;
81365
+ deletedAt: Date | null;
81366
+ entityId: string;
81367
+ entityType: {
81368
+ id: string;
81369
+ description: string | null;
81370
+ createdAt: Date;
81371
+ updatedAt: Date;
81372
+ deletedAt: Date | null;
81373
+ entity: string;
81374
+ };
81375
+ }, {
81376
+ id: string;
81377
+ description: string;
81378
+ createdAt: Date;
81379
+ updatedAt: Date;
81380
+ deletedAt: Date | null;
81381
+ entityId: string;
81382
+ entityType: {
81383
+ id: string;
81384
+ description: string | null;
81385
+ createdAt: Date;
81386
+ updatedAt: Date;
81387
+ deletedAt: Date | null;
81388
+ entity: string;
81389
+ };
81390
+ }>, "many">>;
81391
+ }, "strip", z.ZodTypeAny, {
81392
+ id: string;
81393
+ channel: string | null;
81394
+ address: string | null;
81395
+ name: string;
81396
+ createdAt: Date;
81397
+ updatedAt: Date;
81398
+ deletedAt: Date | null;
81399
+ customFields: {
81400
+ id: string;
81401
+ createdAt: Date;
81402
+ updatedAt: Date;
81403
+ deletedAt: Date | null;
81404
+ attribute: {
81405
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81406
+ id: string;
81407
+ position: number;
81408
+ createdAt: Date;
81409
+ updatedAt: Date;
81410
+ deletedAt: Date | null;
81411
+ systemName: string;
81412
+ displayName: string;
81413
+ isDefault: boolean;
81414
+ isArchived: boolean;
81415
+ isRequired: boolean;
81416
+ isUnique: boolean;
81417
+ };
81418
+ textValue: string | null;
81419
+ booleanValue: boolean | null;
81420
+ numberValue: number | null;
81421
+ dateValue: Date | null;
81422
+ uploads: {
81423
+ id: string;
81424
+ status: string | null;
81425
+ createdAt: Date;
81426
+ updatedAt: Date;
81427
+ deletedAt: Date | null;
81428
+ fileName: string;
81429
+ fileKey: string;
81430
+ bucketName: string;
81431
+ fileSize: number;
81432
+ fileUrl: string | null;
81433
+ }[];
81434
+ }[];
81435
+ company: {
81436
+ id: string;
81437
+ createdAt: Date;
81438
+ updatedAt: Date;
81439
+ deletedAt: Date | null;
81440
+ address?: string | null | undefined;
81441
+ name?: string | undefined;
81442
+ phone?: string | null | undefined;
81443
+ industry?: string | null | undefined;
81444
+ } | null;
81445
+ notes: string | null;
81446
+ contactProfile: string | null;
81447
+ socialProfileUrl: string | null;
81448
+ tags: {
81449
+ id: string;
81450
+ name: string;
81451
+ createdAt: Date;
81452
+ updatedAt: Date;
81453
+ deletedAt: Date | null;
81454
+ }[];
81455
+ contactEmails: {
81456
+ id: string;
81457
+ isPrimary: boolean;
81458
+ email: string;
81459
+ createdAt: Date;
81460
+ updatedAt: Date;
81461
+ deletedAt: Date | null;
81462
+ }[];
81463
+ contactPhones: {
81464
+ id: string;
81465
+ isPrimary: boolean;
81466
+ createdAt: Date;
81467
+ updatedAt: Date;
81468
+ deletedAt: Date | null;
81469
+ phone: string;
81470
+ }[];
81471
+ activityLogs?: {
81472
+ id: string;
81473
+ description: string;
81474
+ createdAt: Date;
81475
+ updatedAt: Date;
81476
+ deletedAt: Date | null;
81477
+ entityId: string;
81478
+ entityType: {
81479
+ id: string;
81480
+ description: string | null;
81481
+ createdAt: Date;
81482
+ updatedAt: Date;
81483
+ deletedAt: Date | null;
81484
+ entity: string;
81485
+ };
81486
+ }[] | undefined;
81487
+ }, {
81488
+ id: string;
81489
+ channel: string | null;
81490
+ address: string | null;
81491
+ name: string;
81492
+ createdAt: Date;
81493
+ updatedAt: Date;
81494
+ deletedAt: Date | null;
81495
+ customFields: {
81496
+ id: string;
81497
+ createdAt: Date;
81498
+ updatedAt: Date;
81499
+ deletedAt: Date | null;
81500
+ attribute: {
81501
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81502
+ id: string;
81503
+ position: number;
81504
+ createdAt: Date;
81505
+ updatedAt: Date;
81506
+ deletedAt: Date | null;
81507
+ systemName: string;
81508
+ displayName: string;
81509
+ isDefault: boolean;
81510
+ isArchived: boolean;
81511
+ isRequired: boolean;
81512
+ isUnique: boolean;
81513
+ };
81514
+ textValue: string | null;
81515
+ booleanValue: boolean | null;
81516
+ numberValue: number | null;
81517
+ dateValue: Date | null;
81518
+ uploads: {
81519
+ id: string;
81520
+ status: string | null;
81521
+ createdAt: Date;
81522
+ updatedAt: Date;
81523
+ deletedAt: Date | null;
81524
+ fileName: string;
81525
+ fileKey: string;
81526
+ bucketName: string;
81527
+ fileSize: number;
81528
+ fileUrl: string | null;
81529
+ }[];
81530
+ }[];
81531
+ company: {
81532
+ id: string;
81533
+ createdAt: Date;
81534
+ updatedAt: Date;
81535
+ deletedAt: Date | null;
81536
+ address?: string | null | undefined;
81537
+ name?: string | undefined;
81538
+ phone?: string | null | undefined;
81539
+ industry?: string | null | undefined;
81540
+ } | null;
81541
+ notes: string | null;
81542
+ contactProfile: string | null;
81543
+ socialProfileUrl: string | null;
81544
+ tags: {
81545
+ id: string;
81546
+ name: string;
81547
+ createdAt: Date;
81548
+ updatedAt: Date;
81549
+ deletedAt: Date | null;
81550
+ }[];
81551
+ contactEmails: {
81552
+ id: string;
81553
+ isPrimary: boolean;
81554
+ email: string;
81555
+ createdAt: Date;
81556
+ updatedAt: Date;
81557
+ deletedAt: Date | null;
81558
+ }[];
81559
+ contactPhones: {
81560
+ id: string;
81561
+ isPrimary: boolean;
81562
+ createdAt: Date;
81563
+ updatedAt: Date;
81564
+ deletedAt: Date | null;
81565
+ phone: string;
81566
+ }[];
81567
+ activityLogs?: {
81568
+ id: string;
81569
+ description: string;
81570
+ createdAt: Date;
81571
+ updatedAt: Date;
81572
+ deletedAt: Date | null;
81573
+ entityId: string;
81574
+ entityType: {
81575
+ id: string;
81576
+ description: string | null;
81577
+ createdAt: Date;
81578
+ updatedAt: Date;
81579
+ deletedAt: Date | null;
81580
+ entity: string;
81581
+ };
81582
+ }[] | undefined;
81583
+ }>;
81584
+ }, "strip", z.ZodTypeAny, {
81585
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
81586
+ id: string;
81587
+ metadata: {
81588
+ id: string;
81589
+ name: string;
81590
+ picture?: string | undefined;
81591
+ additionalCredentials?: any;
81592
+ };
81593
+ createdAt: Date;
81594
+ updatedAt: Date;
81595
+ deletedAt: Date | null;
81596
+ contact: {
81597
+ id: string;
81598
+ channel: string | null;
81599
+ address: string | null;
81600
+ name: string;
81601
+ createdAt: Date;
81602
+ updatedAt: Date;
81603
+ deletedAt: Date | null;
81604
+ customFields: {
81605
+ id: string;
81606
+ createdAt: Date;
81607
+ updatedAt: Date;
81608
+ deletedAt: Date | null;
81609
+ attribute: {
81610
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81611
+ id: string;
81612
+ position: number;
81613
+ createdAt: Date;
81614
+ updatedAt: Date;
81615
+ deletedAt: Date | null;
81616
+ systemName: string;
81617
+ displayName: string;
81618
+ isDefault: boolean;
81619
+ isArchived: boolean;
81620
+ isRequired: boolean;
81621
+ isUnique: boolean;
81622
+ };
81623
+ textValue: string | null;
81624
+ booleanValue: boolean | null;
81625
+ numberValue: number | null;
81626
+ dateValue: Date | null;
81627
+ uploads: {
81628
+ id: string;
81629
+ status: string | null;
81630
+ createdAt: Date;
81631
+ updatedAt: Date;
81632
+ deletedAt: Date | null;
81633
+ fileName: string;
81634
+ fileKey: string;
81635
+ bucketName: string;
81636
+ fileSize: number;
81637
+ fileUrl: string | null;
81638
+ }[];
81639
+ }[];
81640
+ company: {
81641
+ id: string;
81642
+ createdAt: Date;
81643
+ updatedAt: Date;
81644
+ deletedAt: Date | null;
81645
+ address?: string | null | undefined;
81646
+ name?: string | undefined;
81647
+ phone?: string | null | undefined;
81648
+ industry?: string | null | undefined;
81649
+ } | null;
81650
+ notes: string | null;
81651
+ contactProfile: string | null;
81652
+ socialProfileUrl: string | null;
81653
+ tags: {
81654
+ id: string;
81655
+ name: string;
81656
+ createdAt: Date;
81657
+ updatedAt: Date;
81658
+ deletedAt: Date | null;
81659
+ }[];
81660
+ contactEmails: {
81661
+ id: string;
81662
+ isPrimary: boolean;
81663
+ email: string;
81664
+ createdAt: Date;
81665
+ updatedAt: Date;
81666
+ deletedAt: Date | null;
81667
+ }[];
81668
+ contactPhones: {
81669
+ id: string;
81670
+ isPrimary: boolean;
81671
+ createdAt: Date;
81672
+ updatedAt: Date;
81673
+ deletedAt: Date | null;
81674
+ phone: string;
81675
+ }[];
81676
+ activityLogs?: {
81677
+ id: string;
81678
+ description: string;
81679
+ createdAt: Date;
81680
+ updatedAt: Date;
81681
+ deletedAt: Date | null;
81682
+ entityId: string;
81683
+ entityType: {
81684
+ id: string;
81685
+ description: string | null;
81686
+ createdAt: Date;
81687
+ updatedAt: Date;
81688
+ deletedAt: Date | null;
81689
+ entity: string;
81690
+ };
81691
+ }[] | undefined;
81692
+ };
81693
+ channelId: string;
81694
+ socialPlatformId: string;
81695
+ }, {
81696
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
81697
+ id: string;
81698
+ metadata: {
81699
+ id: string;
81700
+ name: string;
81701
+ picture?: string | undefined;
81702
+ additionalCredentials?: any;
81703
+ };
81704
+ createdAt: Date;
81705
+ updatedAt: Date;
81706
+ deletedAt: Date | null;
81707
+ contact: {
81708
+ id: string;
81709
+ channel: string | null;
81710
+ address: string | null;
81711
+ name: string;
81712
+ createdAt: Date;
81713
+ updatedAt: Date;
81714
+ deletedAt: Date | null;
81715
+ customFields: {
81716
+ id: string;
81717
+ createdAt: Date;
81718
+ updatedAt: Date;
81719
+ deletedAt: Date | null;
81720
+ attribute: {
81721
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
81722
+ id: string;
81723
+ position: number;
81724
+ createdAt: Date;
81725
+ updatedAt: Date;
81726
+ deletedAt: Date | null;
81727
+ systemName: string;
81728
+ displayName: string;
81729
+ isDefault: boolean;
81730
+ isArchived: boolean;
81731
+ isRequired: boolean;
81732
+ isUnique: boolean;
81733
+ };
81734
+ textValue: string | null;
81735
+ booleanValue: boolean | null;
81736
+ numberValue: number | null;
81737
+ dateValue: Date | null;
81738
+ uploads: {
81739
+ id: string;
81740
+ status: string | null;
81741
+ createdAt: Date;
81742
+ updatedAt: Date;
81743
+ deletedAt: Date | null;
81744
+ fileName: string;
81745
+ fileKey: string;
81746
+ bucketName: string;
81747
+ fileSize: number;
81748
+ fileUrl: string | null;
81749
+ }[];
81750
+ }[];
81751
+ company: {
81752
+ id: string;
81753
+ createdAt: Date;
81754
+ updatedAt: Date;
81755
+ deletedAt: Date | null;
81756
+ address?: string | null | undefined;
81757
+ name?: string | undefined;
81758
+ phone?: string | null | undefined;
81759
+ industry?: string | null | undefined;
81760
+ } | null;
81761
+ notes: string | null;
81762
+ contactProfile: string | null;
81763
+ socialProfileUrl: string | null;
81764
+ tags: {
81765
+ id: string;
81766
+ name: string;
81767
+ createdAt: Date;
81768
+ updatedAt: Date;
81769
+ deletedAt: Date | null;
81770
+ }[];
81771
+ contactEmails: {
81772
+ id: string;
81773
+ isPrimary: boolean;
81774
+ email: string;
81775
+ createdAt: Date;
81776
+ updatedAt: Date;
81777
+ deletedAt: Date | null;
81778
+ }[];
81779
+ contactPhones: {
81780
+ id: string;
81781
+ isPrimary: boolean;
81782
+ createdAt: Date;
81783
+ updatedAt: Date;
81784
+ deletedAt: Date | null;
81785
+ phone: string;
81786
+ }[];
81787
+ activityLogs?: {
81788
+ id: string;
81789
+ description: string;
81790
+ createdAt: Date;
81791
+ updatedAt: Date;
81792
+ deletedAt: Date | null;
81793
+ entityId: string;
81794
+ entityType: {
81795
+ id: string;
81796
+ description: string | null;
81797
+ createdAt: Date;
81798
+ updatedAt: Date;
81799
+ deletedAt: Date | null;
81800
+ entity: string;
81801
+ };
81802
+ }[] | undefined;
81803
+ };
81804
+ channelId: string;
81805
+ socialPlatformId: string;
81806
+ }>;
81807
+ actor: z.ZodObject<{
81808
+ id: z.ZodString;
81809
+ createdAt: z.ZodDate;
81810
+ updatedAt: z.ZodDate;
81811
+ deletedAt: z.ZodNullable<z.ZodDate>;
81812
+ name: z.ZodString;
81813
+ email: z.ZodString;
81814
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
81815
+ password: z.ZodString;
81816
+ address: z.ZodNullable<z.ZodString>;
81817
+ phone: z.ZodNullable<z.ZodString>;
81818
+ notificationCount: z.ZodNullable<z.ZodNumber>;
81819
+ roles: z.ZodArray<z.ZodObject<{
81820
+ id: z.ZodString;
81821
+ createdAt: z.ZodDate;
81822
+ updatedAt: z.ZodDate;
81823
+ deletedAt: z.ZodNullable<z.ZodDate>;
81824
+ systemName: z.ZodString;
81825
+ displayName: z.ZodString;
81826
+ description: z.ZodNullable<z.ZodString>;
81827
+ permissions: z.ZodArray<z.ZodObject<{
81828
+ id: z.ZodString;
81829
+ createdAt: z.ZodDate;
81830
+ updatedAt: z.ZodDate;
81831
+ deletedAt: z.ZodNullable<z.ZodDate>;
81832
+ systemName: z.ZodString;
81833
+ displayName: z.ZodString;
81834
+ description: z.ZodNullable<z.ZodString>;
81835
+ }, "strip", z.ZodTypeAny, {
81836
+ id: string;
81837
+ description: string | null;
81838
+ createdAt: Date;
81839
+ updatedAt: Date;
81840
+ deletedAt: Date | null;
81841
+ systemName: string;
81842
+ displayName: string;
81843
+ }, {
81844
+ id: string;
81845
+ description: string | null;
81846
+ createdAt: Date;
81847
+ updatedAt: Date;
81848
+ deletedAt: Date | null;
81849
+ systemName: string;
81850
+ displayName: string;
81851
+ }>, "many">;
81852
+ }, "strip", z.ZodTypeAny, {
81853
+ id: string;
81854
+ description: string | null;
81855
+ createdAt: Date;
81856
+ updatedAt: Date;
81857
+ deletedAt: Date | null;
81858
+ systemName: string;
81859
+ displayName: string;
81860
+ permissions: {
81861
+ id: string;
81862
+ description: string | null;
81863
+ createdAt: Date;
81864
+ updatedAt: Date;
81865
+ deletedAt: Date | null;
81866
+ systemName: string;
81867
+ displayName: string;
81868
+ }[];
81869
+ }, {
81870
+ id: string;
81871
+ description: string | null;
81872
+ createdAt: Date;
81873
+ updatedAt: Date;
81874
+ deletedAt: Date | null;
81875
+ systemName: string;
81876
+ displayName: string;
81877
+ permissions: {
81878
+ id: string;
81879
+ description: string | null;
81880
+ createdAt: Date;
81881
+ updatedAt: Date;
81882
+ deletedAt: Date | null;
81883
+ systemName: string;
81884
+ displayName: string;
81885
+ }[];
81886
+ }>, "many">;
81887
+ extension: z.ZodObject<{
81888
+ id: z.ZodString;
81889
+ createdAt: z.ZodDate;
81890
+ updatedAt: z.ZodDate;
81891
+ deletedAt: z.ZodNullable<z.ZodDate>;
81892
+ userId: z.ZodNullable<z.ZodString>;
81893
+ sipServerUrl: z.ZodString;
81894
+ sipUserName: z.ZodString;
81895
+ webphoneLoginUser: z.ZodString;
81896
+ extensionId: z.ZodNullable<z.ZodString>;
81897
+ extensionName: z.ZodString;
81898
+ telephonySignature: z.ZodNullable<z.ZodString>;
81899
+ }, "strip", z.ZodTypeAny, {
81900
+ id: string;
81901
+ createdAt: Date;
81902
+ updatedAt: Date;
81903
+ deletedAt: Date | null;
81904
+ userId: string | null;
81905
+ sipServerUrl: string;
81906
+ sipUserName: string;
81907
+ webphoneLoginUser: string;
81908
+ extensionId: string | null;
81909
+ extensionName: string;
81910
+ telephonySignature: string | null;
81911
+ }, {
81912
+ id: string;
81913
+ createdAt: Date;
81914
+ updatedAt: Date;
81915
+ deletedAt: Date | null;
81916
+ userId: string | null;
81917
+ sipServerUrl: string;
81918
+ sipUserName: string;
81919
+ webphoneLoginUser: string;
81920
+ extensionId: string | null;
81921
+ extensionName: string;
81922
+ telephonySignature: string | null;
81923
+ }>;
81924
+ }, "strip", z.ZodTypeAny, {
81925
+ id: string;
81926
+ address: string | null;
81927
+ name: string;
81928
+ email: string;
81929
+ createdAt: Date;
81930
+ updatedAt: Date;
81931
+ deletedAt: Date | null;
81932
+ emailVerifiedAt: Date | null;
81933
+ password: string;
81934
+ phone: string | null;
81935
+ notificationCount: number | null;
81936
+ roles: {
81937
+ id: string;
81938
+ description: string | null;
81939
+ createdAt: Date;
81940
+ updatedAt: Date;
81941
+ deletedAt: Date | null;
81942
+ systemName: string;
81943
+ displayName: string;
81944
+ permissions: {
81945
+ id: string;
81946
+ description: string | null;
81947
+ createdAt: Date;
81948
+ updatedAt: Date;
81949
+ deletedAt: Date | null;
81950
+ systemName: string;
81951
+ displayName: string;
81952
+ }[];
81953
+ }[];
81954
+ extension: {
81955
+ id: string;
81956
+ createdAt: Date;
81957
+ updatedAt: Date;
81958
+ deletedAt: Date | null;
81959
+ userId: string | null;
81960
+ sipServerUrl: string;
81961
+ sipUserName: string;
81962
+ webphoneLoginUser: string;
81963
+ extensionId: string | null;
81964
+ extensionName: string;
81965
+ telephonySignature: string | null;
81966
+ };
81967
+ }, {
81968
+ id: string;
81969
+ address: string | null;
81970
+ name: string;
81971
+ email: string;
81972
+ createdAt: Date;
81973
+ updatedAt: Date;
81974
+ deletedAt: Date | null;
81975
+ emailVerifiedAt: Date | null;
81976
+ password: string;
81977
+ phone: string | null;
81978
+ notificationCount: number | null;
81979
+ roles: {
81980
+ id: string;
81981
+ description: string | null;
81982
+ createdAt: Date;
81983
+ updatedAt: Date;
81984
+ deletedAt: Date | null;
81985
+ systemName: string;
81986
+ displayName: string;
81987
+ permissions: {
81988
+ id: string;
81989
+ description: string | null;
81990
+ createdAt: Date;
81991
+ updatedAt: Date;
81992
+ deletedAt: Date | null;
81993
+ systemName: string;
81994
+ displayName: string;
81995
+ }[];
81996
+ }[];
81997
+ extension: {
81998
+ id: string;
81999
+ createdAt: Date;
82000
+ updatedAt: Date;
82001
+ deletedAt: Date | null;
82002
+ userId: string | null;
82003
+ sipServerUrl: string;
82004
+ sipUserName: string;
82005
+ webphoneLoginUser: string;
82006
+ extensionId: string | null;
82007
+ extensionName: string;
82008
+ telephonySignature: string | null;
82009
+ };
82010
+ }>;
82011
+ assignee: z.ZodObject<{
82012
+ id: z.ZodString;
82013
+ createdAt: z.ZodDate;
82014
+ updatedAt: z.ZodDate;
82015
+ deletedAt: z.ZodNullable<z.ZodDate>;
82016
+ name: z.ZodString;
82017
+ email: z.ZodString;
82018
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
82019
+ password: z.ZodString;
82020
+ address: z.ZodNullable<z.ZodString>;
82021
+ phone: z.ZodNullable<z.ZodString>;
82022
+ notificationCount: z.ZodNullable<z.ZodNumber>;
82023
+ roles: z.ZodArray<z.ZodObject<{
82024
+ id: z.ZodString;
82025
+ createdAt: z.ZodDate;
82026
+ updatedAt: z.ZodDate;
82027
+ deletedAt: z.ZodNullable<z.ZodDate>;
82028
+ systemName: z.ZodString;
82029
+ displayName: z.ZodString;
82030
+ description: z.ZodNullable<z.ZodString>;
82031
+ permissions: z.ZodArray<z.ZodObject<{
82032
+ id: z.ZodString;
82033
+ createdAt: z.ZodDate;
82034
+ updatedAt: z.ZodDate;
82035
+ deletedAt: z.ZodNullable<z.ZodDate>;
82036
+ systemName: z.ZodString;
82037
+ displayName: z.ZodString;
82038
+ description: z.ZodNullable<z.ZodString>;
82039
+ }, "strip", z.ZodTypeAny, {
82040
+ id: string;
82041
+ description: string | null;
82042
+ createdAt: Date;
82043
+ updatedAt: Date;
82044
+ deletedAt: Date | null;
82045
+ systemName: string;
82046
+ displayName: string;
82047
+ }, {
82048
+ id: string;
82049
+ description: string | null;
82050
+ createdAt: Date;
82051
+ updatedAt: Date;
82052
+ deletedAt: Date | null;
82053
+ systemName: string;
82054
+ displayName: string;
82055
+ }>, "many">;
82056
+ }, "strip", z.ZodTypeAny, {
82057
+ id: string;
82058
+ description: string | null;
82059
+ createdAt: Date;
82060
+ updatedAt: Date;
82061
+ deletedAt: Date | null;
82062
+ systemName: string;
82063
+ displayName: string;
82064
+ permissions: {
82065
+ id: string;
82066
+ description: string | null;
82067
+ createdAt: Date;
82068
+ updatedAt: Date;
82069
+ deletedAt: Date | null;
82070
+ systemName: string;
82071
+ displayName: string;
82072
+ }[];
82073
+ }, {
82074
+ id: string;
82075
+ description: string | null;
82076
+ createdAt: Date;
82077
+ updatedAt: Date;
82078
+ deletedAt: Date | null;
82079
+ systemName: string;
82080
+ displayName: string;
82081
+ permissions: {
82082
+ id: string;
82083
+ description: string | null;
82084
+ createdAt: Date;
82085
+ updatedAt: Date;
82086
+ deletedAt: Date | null;
82087
+ systemName: string;
82088
+ displayName: string;
82089
+ }[];
82090
+ }>, "many">;
82091
+ extension: z.ZodObject<{
82092
+ id: z.ZodString;
82093
+ createdAt: z.ZodDate;
82094
+ updatedAt: z.ZodDate;
82095
+ deletedAt: z.ZodNullable<z.ZodDate>;
82096
+ userId: z.ZodNullable<z.ZodString>;
82097
+ sipServerUrl: z.ZodString;
82098
+ sipUserName: z.ZodString;
82099
+ webphoneLoginUser: z.ZodString;
82100
+ extensionId: z.ZodNullable<z.ZodString>;
82101
+ extensionName: z.ZodString;
82102
+ telephonySignature: z.ZodNullable<z.ZodString>;
82103
+ }, "strip", z.ZodTypeAny, {
82104
+ id: string;
82105
+ createdAt: Date;
82106
+ updatedAt: Date;
82107
+ deletedAt: Date | null;
82108
+ userId: string | null;
82109
+ sipServerUrl: string;
82110
+ sipUserName: string;
82111
+ webphoneLoginUser: string;
82112
+ extensionId: string | null;
82113
+ extensionName: string;
82114
+ telephonySignature: string | null;
82115
+ }, {
82116
+ id: string;
82117
+ createdAt: Date;
82118
+ updatedAt: Date;
82119
+ deletedAt: Date | null;
82120
+ userId: string | null;
82121
+ sipServerUrl: string;
82122
+ sipUserName: string;
82123
+ webphoneLoginUser: string;
82124
+ extensionId: string | null;
82125
+ extensionName: string;
82126
+ telephonySignature: string | null;
82127
+ }>;
82128
+ }, "strip", z.ZodTypeAny, {
82129
+ id: string;
82130
+ address: string | null;
82131
+ name: string;
82132
+ email: string;
82133
+ createdAt: Date;
82134
+ updatedAt: Date;
82135
+ deletedAt: Date | null;
82136
+ emailVerifiedAt: Date | null;
82137
+ password: string;
82138
+ phone: string | null;
82139
+ notificationCount: number | null;
82140
+ roles: {
82141
+ id: string;
82142
+ description: string | null;
82143
+ createdAt: Date;
82144
+ updatedAt: Date;
82145
+ deletedAt: Date | null;
82146
+ systemName: string;
82147
+ displayName: string;
82148
+ permissions: {
82149
+ id: string;
82150
+ description: string | null;
82151
+ createdAt: Date;
82152
+ updatedAt: Date;
82153
+ deletedAt: Date | null;
82154
+ systemName: string;
82155
+ displayName: string;
82156
+ }[];
82157
+ }[];
82158
+ extension: {
82159
+ id: string;
82160
+ createdAt: Date;
82161
+ updatedAt: Date;
82162
+ deletedAt: Date | null;
82163
+ userId: string | null;
82164
+ sipServerUrl: string;
82165
+ sipUserName: string;
82166
+ webphoneLoginUser: string;
82167
+ extensionId: string | null;
82168
+ extensionName: string;
82169
+ telephonySignature: string | null;
82170
+ };
82171
+ }, {
82172
+ id: string;
82173
+ address: string | null;
82174
+ name: string;
82175
+ email: string;
82176
+ createdAt: Date;
82177
+ updatedAt: Date;
82178
+ deletedAt: Date | null;
82179
+ emailVerifiedAt: Date | null;
82180
+ password: string;
82181
+ phone: string | null;
82182
+ notificationCount: number | null;
82183
+ roles: {
82184
+ id: string;
82185
+ description: string | null;
82186
+ createdAt: Date;
82187
+ updatedAt: Date;
82188
+ deletedAt: Date | null;
82189
+ systemName: string;
82190
+ displayName: string;
82191
+ permissions: {
82192
+ id: string;
82193
+ description: string | null;
82194
+ createdAt: Date;
82195
+ updatedAt: Date;
82196
+ deletedAt: Date | null;
82197
+ systemName: string;
82198
+ displayName: string;
82199
+ }[];
82200
+ }[];
82201
+ extension: {
82202
+ id: string;
82203
+ createdAt: Date;
82204
+ updatedAt: Date;
82205
+ deletedAt: Date | null;
82206
+ userId: string | null;
82207
+ sipServerUrl: string;
82208
+ sipUserName: string;
82209
+ webphoneLoginUser: string;
82210
+ extensionId: string | null;
82211
+ extensionName: string;
82212
+ telephonySignature: string | null;
82213
+ };
82214
+ }>;
82215
+ channel: z.ZodObject<{
82216
+ id: z.ZodString;
82217
+ createdAt: z.ZodDate;
82218
+ updatedAt: z.ZodDate;
82219
+ deletedAt: z.ZodNullable<z.ZodDate>;
82220
+ name: z.ZodString;
82221
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
82222
+ metadata: z.ZodObject<{
82223
+ id: z.ZodString;
82224
+ name: z.ZodString;
82225
+ accessToken: z.ZodOptional<z.ZodString>;
82226
+ channelSecret: z.ZodOptional<z.ZodString>;
82227
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
82228
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82229
+ }, "strip", z.ZodTypeAny, {
82230
+ id: string;
82231
+ name: string;
82232
+ accessToken?: string | undefined;
82233
+ channelSecret?: string | undefined;
82234
+ additionalCredentials?: any;
82235
+ lineRichMenuId?: string | null | undefined;
82236
+ }, {
82237
+ id: string;
82238
+ name: string;
82239
+ accessToken?: string | undefined;
82240
+ channelSecret?: string | undefined;
82241
+ additionalCredentials?: any;
82242
+ lineRichMenuId?: string | null | undefined;
82243
+ }>;
82244
+ brandName: z.ZodString;
82245
+ platformId: z.ZodString;
82246
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
82247
+ isReloginRequired: z.ZodBoolean;
82248
+ connectedUserName: z.ZodString;
82249
+ connectedUserId: z.ZodString;
82250
+ botpressBot: z.ZodNullable<z.ZodObject<{
82251
+ id: z.ZodString;
82252
+ name: z.ZodString;
82253
+ botId: z.ZodString;
82254
+ integrationId: z.ZodString;
82255
+ accessToken: z.ZodString;
82256
+ }, "strip", z.ZodTypeAny, {
82257
+ id: string;
82258
+ name: string;
82259
+ accessToken: string;
82260
+ botId: string;
82261
+ integrationId: string;
82262
+ }, {
82263
+ id: string;
82264
+ name: string;
82265
+ accessToken: string;
82266
+ botId: string;
82267
+ integrationId: string;
82268
+ }>>;
82269
+ actor: z.ZodObject<{
82270
+ id: z.ZodString;
82271
+ createdAt: z.ZodDate;
82272
+ updatedAt: z.ZodDate;
82273
+ deletedAt: z.ZodNullable<z.ZodDate>;
82274
+ name: z.ZodString;
82275
+ email: z.ZodString;
82276
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
82277
+ password: z.ZodString;
82278
+ address: z.ZodNullable<z.ZodString>;
82279
+ phone: z.ZodNullable<z.ZodString>;
82280
+ notificationCount: z.ZodNullable<z.ZodNumber>;
82281
+ roles: z.ZodArray<z.ZodObject<{
82282
+ id: z.ZodString;
82283
+ createdAt: z.ZodDate;
82284
+ updatedAt: z.ZodDate;
82285
+ deletedAt: z.ZodNullable<z.ZodDate>;
82286
+ systemName: z.ZodString;
82287
+ displayName: z.ZodString;
82288
+ description: z.ZodNullable<z.ZodString>;
82289
+ permissions: z.ZodArray<z.ZodObject<{
82290
+ id: z.ZodString;
82291
+ createdAt: z.ZodDate;
82292
+ updatedAt: z.ZodDate;
82293
+ deletedAt: z.ZodNullable<z.ZodDate>;
82294
+ systemName: z.ZodString;
82295
+ displayName: z.ZodString;
82296
+ description: z.ZodNullable<z.ZodString>;
82297
+ }, "strip", z.ZodTypeAny, {
82298
+ id: string;
82299
+ description: string | null;
82300
+ createdAt: Date;
82301
+ updatedAt: Date;
82302
+ deletedAt: Date | null;
82303
+ systemName: string;
82304
+ displayName: string;
82305
+ }, {
82306
+ id: string;
82307
+ description: string | null;
82308
+ createdAt: Date;
82309
+ updatedAt: Date;
82310
+ deletedAt: Date | null;
82311
+ systemName: string;
82312
+ displayName: string;
82313
+ }>, "many">;
82314
+ }, "strip", z.ZodTypeAny, {
82315
+ id: string;
82316
+ description: string | null;
82317
+ createdAt: Date;
82318
+ updatedAt: Date;
82319
+ deletedAt: Date | null;
82320
+ systemName: string;
82321
+ displayName: string;
82322
+ permissions: {
82323
+ id: string;
82324
+ description: string | null;
82325
+ createdAt: Date;
82326
+ updatedAt: Date;
82327
+ deletedAt: Date | null;
82328
+ systemName: string;
82329
+ displayName: string;
82330
+ }[];
82331
+ }, {
82332
+ id: string;
82333
+ description: string | null;
82334
+ createdAt: Date;
82335
+ updatedAt: Date;
82336
+ deletedAt: Date | null;
82337
+ systemName: string;
82338
+ displayName: string;
82339
+ permissions: {
82340
+ id: string;
82341
+ description: string | null;
82342
+ createdAt: Date;
82343
+ updatedAt: Date;
82344
+ deletedAt: Date | null;
82345
+ systemName: string;
82346
+ displayName: string;
82347
+ }[];
82348
+ }>, "many">;
82349
+ extension: z.ZodObject<{
82350
+ id: z.ZodString;
82351
+ createdAt: z.ZodDate;
82352
+ updatedAt: z.ZodDate;
82353
+ deletedAt: z.ZodNullable<z.ZodDate>;
82354
+ userId: z.ZodNullable<z.ZodString>;
82355
+ sipServerUrl: z.ZodString;
82356
+ sipUserName: z.ZodString;
82357
+ webphoneLoginUser: z.ZodString;
82358
+ extensionId: z.ZodNullable<z.ZodString>;
82359
+ extensionName: z.ZodString;
82360
+ telephonySignature: z.ZodNullable<z.ZodString>;
82361
+ }, "strip", z.ZodTypeAny, {
82362
+ id: string;
82363
+ createdAt: Date;
82364
+ updatedAt: Date;
82365
+ deletedAt: Date | null;
82366
+ userId: string | null;
82367
+ sipServerUrl: string;
82368
+ sipUserName: string;
82369
+ webphoneLoginUser: string;
82370
+ extensionId: string | null;
82371
+ extensionName: string;
82372
+ telephonySignature: string | null;
82373
+ }, {
82374
+ id: string;
82375
+ createdAt: Date;
82376
+ updatedAt: Date;
82377
+ deletedAt: Date | null;
82378
+ userId: string | null;
82379
+ sipServerUrl: string;
82380
+ sipUserName: string;
82381
+ webphoneLoginUser: string;
82382
+ extensionId: string | null;
82383
+ extensionName: string;
82384
+ telephonySignature: string | null;
82385
+ }>;
82386
+ }, "strip", z.ZodTypeAny, {
82387
+ id: string;
82388
+ address: string | null;
82389
+ name: string;
82390
+ email: string;
82391
+ createdAt: Date;
82392
+ updatedAt: Date;
82393
+ deletedAt: Date | null;
82394
+ emailVerifiedAt: Date | null;
82395
+ password: string;
82396
+ phone: string | null;
82397
+ notificationCount: number | null;
82398
+ roles: {
82399
+ id: string;
82400
+ description: string | null;
82401
+ createdAt: Date;
82402
+ updatedAt: Date;
82403
+ deletedAt: Date | null;
82404
+ systemName: string;
82405
+ displayName: string;
82406
+ permissions: {
82407
+ id: string;
82408
+ description: string | null;
82409
+ createdAt: Date;
82410
+ updatedAt: Date;
82411
+ deletedAt: Date | null;
82412
+ systemName: string;
82413
+ displayName: string;
82414
+ }[];
82415
+ }[];
82416
+ extension: {
82417
+ id: string;
82418
+ createdAt: Date;
82419
+ updatedAt: Date;
82420
+ deletedAt: Date | null;
82421
+ userId: string | null;
82422
+ sipServerUrl: string;
82423
+ sipUserName: string;
82424
+ webphoneLoginUser: string;
82425
+ extensionId: string | null;
82426
+ extensionName: string;
82427
+ telephonySignature: string | null;
82428
+ };
82429
+ }, {
82430
+ id: string;
82431
+ address: string | null;
82432
+ name: string;
82433
+ email: string;
82434
+ createdAt: Date;
82435
+ updatedAt: Date;
82436
+ deletedAt: Date | null;
82437
+ emailVerifiedAt: Date | null;
82438
+ password: string;
82439
+ phone: string | null;
82440
+ notificationCount: number | null;
82441
+ roles: {
82442
+ id: string;
82443
+ description: string | null;
82444
+ createdAt: Date;
82445
+ updatedAt: Date;
82446
+ deletedAt: Date | null;
82447
+ systemName: string;
82448
+ displayName: string;
82449
+ permissions: {
82450
+ id: string;
82451
+ description: string | null;
82452
+ createdAt: Date;
82453
+ updatedAt: Date;
82454
+ deletedAt: Date | null;
82455
+ systemName: string;
82456
+ displayName: string;
82457
+ }[];
82458
+ }[];
82459
+ extension: {
82460
+ id: string;
82461
+ createdAt: Date;
82462
+ updatedAt: Date;
82463
+ deletedAt: Date | null;
82464
+ userId: string | null;
82465
+ sipServerUrl: string;
82466
+ sipUserName: string;
82467
+ webphoneLoginUser: string;
82468
+ extensionId: string | null;
82469
+ extensionName: string;
82470
+ telephonySignature: string | null;
82471
+ };
82472
+ }>;
82473
+ }, "strip", z.ZodTypeAny, {
82474
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
82475
+ id: string;
82476
+ name: string;
82477
+ metadata: {
82478
+ id: string;
82479
+ name: string;
82480
+ accessToken?: string | undefined;
82481
+ channelSecret?: string | undefined;
82482
+ additionalCredentials?: any;
82483
+ lineRichMenuId?: string | null | undefined;
82484
+ };
82485
+ status: boolean;
82486
+ createdAt: Date;
82487
+ updatedAt: Date;
82488
+ deletedAt: Date | null;
82489
+ actor: {
82490
+ id: string;
82491
+ address: string | null;
82492
+ name: string;
82493
+ email: string;
82494
+ createdAt: Date;
82495
+ updatedAt: Date;
82496
+ deletedAt: Date | null;
82497
+ emailVerifiedAt: Date | null;
82498
+ password: string;
82499
+ phone: string | null;
82500
+ notificationCount: number | null;
82501
+ roles: {
82502
+ id: string;
82503
+ description: string | null;
82504
+ createdAt: Date;
82505
+ updatedAt: Date;
82506
+ deletedAt: Date | null;
82507
+ systemName: string;
82508
+ displayName: string;
82509
+ permissions: {
82510
+ id: string;
82511
+ description: string | null;
82512
+ createdAt: Date;
82513
+ updatedAt: Date;
82514
+ deletedAt: Date | null;
82515
+ systemName: string;
82516
+ displayName: string;
82517
+ }[];
82518
+ }[];
82519
+ extension: {
82520
+ id: string;
82521
+ createdAt: Date;
82522
+ updatedAt: Date;
82523
+ deletedAt: Date | null;
82524
+ userId: string | null;
82525
+ sipServerUrl: string;
82526
+ sipUserName: string;
82527
+ webphoneLoginUser: string;
82528
+ extensionId: string | null;
82529
+ extensionName: string;
82530
+ telephonySignature: string | null;
82531
+ };
82532
+ };
82533
+ brandName: string;
82534
+ platformId: string;
82535
+ isReloginRequired: boolean;
82536
+ connectedUserName: string;
82537
+ connectedUserId: string;
82538
+ botpressBot: {
82539
+ id: string;
82540
+ name: string;
82541
+ accessToken: string;
82542
+ botId: string;
82543
+ integrationId: string;
82544
+ } | null;
82545
+ }, {
82546
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
82547
+ id: string;
82548
+ name: string;
82549
+ metadata: {
82550
+ id: string;
82551
+ name: string;
82552
+ accessToken?: string | undefined;
82553
+ channelSecret?: string | undefined;
82554
+ additionalCredentials?: any;
82555
+ lineRichMenuId?: string | null | undefined;
82556
+ };
82557
+ status: boolean;
82558
+ createdAt: Date;
82559
+ updatedAt: Date;
82560
+ deletedAt: Date | null;
82561
+ actor: {
82562
+ id: string;
82563
+ address: string | null;
82564
+ name: string;
82565
+ email: string;
82566
+ createdAt: Date;
82567
+ updatedAt: Date;
82568
+ deletedAt: Date | null;
82569
+ emailVerifiedAt: Date | null;
82570
+ password: string;
82571
+ phone: string | null;
82572
+ notificationCount: number | null;
82573
+ roles: {
82574
+ id: string;
82575
+ description: string | null;
82576
+ createdAt: Date;
82577
+ updatedAt: Date;
82578
+ deletedAt: Date | null;
82579
+ systemName: string;
82580
+ displayName: string;
82581
+ permissions: {
82582
+ id: string;
82583
+ description: string | null;
82584
+ createdAt: Date;
82585
+ updatedAt: Date;
82586
+ deletedAt: Date | null;
82587
+ systemName: string;
82588
+ displayName: string;
82589
+ }[];
82590
+ }[];
82591
+ extension: {
82592
+ id: string;
82593
+ createdAt: Date;
82594
+ updatedAt: Date;
82595
+ deletedAt: Date | null;
82596
+ userId: string | null;
82597
+ sipServerUrl: string;
82598
+ sipUserName: string;
82599
+ webphoneLoginUser: string;
82600
+ extensionId: string | null;
82601
+ extensionName: string;
82602
+ telephonySignature: string | null;
82603
+ };
82604
+ };
82605
+ brandName: string;
82606
+ platformId: string;
82607
+ isReloginRequired: boolean;
82608
+ connectedUserName: string;
82609
+ connectedUserId: string;
82610
+ botpressBot: {
82611
+ id: string;
82612
+ name: string;
82613
+ accessToken: string;
82614
+ botId: string;
82615
+ integrationId: string;
82616
+ } | null;
82617
+ }>;
82618
+ cxlog: z.ZodObject<{
82619
+ id: z.ZodString;
82620
+ createdAt: z.ZodDate;
82621
+ updatedAt: z.ZodDate;
82622
+ deletedAt: z.ZodNullable<z.ZodDate>;
82623
+ caseId: z.ZodNumber;
82624
+ entityId: z.ZodString;
82625
+ entityName: z.ZodString;
82626
+ contactId: z.ZodNullable<z.ZodString>;
82627
+ channel: z.ZodNullable<z.ZodString>;
82628
+ queueId: z.ZodNullable<z.ZodString>;
82629
+ agentId: z.ZodNullable<z.ZodString>;
82630
+ direction: z.ZodNullable<z.ZodString>;
82631
+ startedDate: z.ZodNullable<z.ZodDate>;
82632
+ handledTime: z.ZodNullable<z.ZodNumber>;
82633
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
82634
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
82635
+ id: z.ZodString;
82636
+ createdAt: z.ZodDate;
82637
+ updatedAt: z.ZodDate;
82638
+ deletedAt: z.ZodNullable<z.ZodDate>;
82639
+ note: z.ZodNullable<z.ZodString>;
82640
+ disposition: z.ZodNullable<z.ZodString>;
82641
+ type: z.ZodString;
82642
+ tags: z.ZodArray<z.ZodObject<{
82643
+ id: z.ZodString;
82644
+ createdAt: z.ZodDate;
82645
+ updatedAt: z.ZodDate;
82646
+ deletedAt: z.ZodNullable<z.ZodDate>;
82647
+ name: z.ZodString;
82648
+ }, "strip", z.ZodTypeAny, {
82649
+ id: string;
82650
+ name: string;
82651
+ createdAt: Date;
82652
+ updatedAt: Date;
82653
+ deletedAt: Date | null;
82654
+ }, {
82655
+ id: string;
82656
+ name: string;
82657
+ createdAt: Date;
82658
+ updatedAt: Date;
82659
+ deletedAt: Date | null;
82660
+ }>, "many">;
82661
+ categories: z.ZodArray<z.ZodObject<{
82662
+ id: z.ZodString;
82663
+ createdAt: z.ZodDate;
82664
+ updatedAt: z.ZodDate;
82665
+ deletedAt: z.ZodNullable<z.ZodDate>;
82666
+ value: z.ZodString;
82667
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
82668
+ parentId: z.ZodNullable<z.ZodString>;
82669
+ childCategoryList: z.ZodArray<z.ZodObject<{
82670
+ id: z.ZodString;
82671
+ value: z.ZodString;
82672
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
82673
+ parentId: z.ZodNullable<z.ZodString>;
82674
+ childCategoryList: z.ZodArray<z.ZodObject<{
82675
+ id: z.ZodString;
82676
+ value: z.ZodString;
82677
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
82678
+ parentId: z.ZodNullable<z.ZodString>;
82679
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
82680
+ }, "strip", z.ZodTypeAny, {
82681
+ id: string;
82682
+ value: string;
82683
+ level: 2 | 1 | 3;
82684
+ parentId: string | null;
82685
+ childCategoryList: any[];
82686
+ }, {
82687
+ id: string;
82688
+ value: string;
82689
+ level: 2 | 1 | 3;
82690
+ parentId: string | null;
82691
+ childCategoryList: any[];
82692
+ }>, "many">;
82693
+ }, "strip", z.ZodTypeAny, {
82694
+ id: string;
82695
+ value: string;
82696
+ level: 2 | 1 | 3;
82697
+ parentId: string | null;
82698
+ childCategoryList: {
82699
+ id: string;
82700
+ value: string;
82701
+ level: 2 | 1 | 3;
82702
+ parentId: string | null;
82703
+ childCategoryList: any[];
82704
+ }[];
82705
+ }, {
82706
+ id: string;
82707
+ value: string;
82708
+ level: 2 | 1 | 3;
82709
+ parentId: string | null;
82710
+ childCategoryList: {
82711
+ id: string;
82712
+ value: string;
82713
+ level: 2 | 1 | 3;
82714
+ parentId: string | null;
82715
+ childCategoryList: any[];
82716
+ }[];
82717
+ }>, "many">;
82718
+ }, "strip", z.ZodTypeAny, {
82719
+ id: string;
82720
+ value: string;
82721
+ createdAt: Date;
82722
+ updatedAt: Date;
82723
+ deletedAt: Date | null;
82724
+ level: 2 | 1 | 3;
82725
+ parentId: string | null;
82726
+ childCategoryList: {
82727
+ id: string;
82728
+ value: string;
82729
+ level: 2 | 1 | 3;
82730
+ parentId: string | null;
82731
+ childCategoryList: {
82732
+ id: string;
82733
+ value: string;
82734
+ level: 2 | 1 | 3;
82735
+ parentId: string | null;
82736
+ childCategoryList: any[];
82737
+ }[];
82738
+ }[];
82739
+ }, {
82740
+ id: string;
82741
+ value: string;
82742
+ createdAt: Date;
82743
+ updatedAt: Date;
82744
+ deletedAt: Date | null;
82745
+ level: 2 | 1 | 3;
82746
+ parentId: string | null;
82747
+ childCategoryList: {
82748
+ id: string;
82749
+ value: string;
82750
+ level: 2 | 1 | 3;
82751
+ parentId: string | null;
82752
+ childCategoryList: {
82753
+ id: string;
82754
+ value: string;
82755
+ level: 2 | 1 | 3;
82756
+ parentId: string | null;
82757
+ childCategoryList: any[];
82758
+ }[];
82759
+ }[];
82760
+ }>, "many">;
82761
+ callFrom: z.ZodNullable<z.ZodString>;
82762
+ callTo: z.ZodNullable<z.ZodString>;
82763
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
82764
+ id: z.ZodString;
82765
+ createdAt: z.ZodDate;
82766
+ updatedAt: z.ZodDate;
82767
+ deletedAt: z.ZodNullable<z.ZodDate>;
82768
+ textValue: z.ZodNullable<z.ZodString>;
82769
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
82770
+ numberValue: z.ZodNullable<z.ZodNumber>;
82771
+ dateValue: z.ZodNullable<z.ZodDate>;
82772
+ entityId: z.ZodString;
82773
+ attributeId: z.ZodString;
82774
+ }, "strip", z.ZodTypeAny, {
82775
+ id: string;
82776
+ createdAt: Date;
82777
+ updatedAt: Date;
82778
+ deletedAt: Date | null;
82779
+ entityId: string;
82780
+ attributeId: string;
82781
+ textValue: string | null;
82782
+ booleanValue: boolean | null;
82783
+ numberValue: number | null;
82784
+ dateValue: Date | null;
82785
+ }, {
82786
+ id: string;
82787
+ createdAt: Date;
82788
+ updatedAt: Date;
82789
+ deletedAt: Date | null;
82790
+ entityId: string;
82791
+ attributeId: string;
82792
+ textValue: string | null;
82793
+ booleanValue: boolean | null;
82794
+ numberValue: number | null;
82795
+ dateValue: Date | null;
82796
+ }>, "many">>>;
82797
+ }, "strip", z.ZodTypeAny, {
82798
+ type: string;
82799
+ id: string;
82800
+ disposition: string | null;
82801
+ createdAt: Date;
82802
+ updatedAt: Date;
82803
+ deletedAt: Date | null;
82804
+ categories: {
82805
+ id: string;
82806
+ value: string;
82807
+ createdAt: Date;
82808
+ updatedAt: Date;
82809
+ deletedAt: Date | null;
82810
+ level: 2 | 1 | 3;
82811
+ parentId: string | null;
82812
+ childCategoryList: {
82813
+ id: string;
82814
+ value: string;
82815
+ level: 2 | 1 | 3;
82816
+ parentId: string | null;
82817
+ childCategoryList: {
82818
+ id: string;
82819
+ value: string;
82820
+ level: 2 | 1 | 3;
82821
+ parentId: string | null;
82822
+ childCategoryList: any[];
82823
+ }[];
82824
+ }[];
82825
+ }[];
82826
+ tags: {
82827
+ id: string;
82828
+ name: string;
82829
+ createdAt: Date;
82830
+ updatedAt: Date;
82831
+ deletedAt: Date | null;
82832
+ }[];
82833
+ callFrom: string | null;
82834
+ callTo: string | null;
82835
+ note: string | null;
82836
+ customFields?: {
82837
+ id: string;
82838
+ createdAt: Date;
82839
+ updatedAt: Date;
82840
+ deletedAt: Date | null;
82841
+ entityId: string;
82842
+ attributeId: string;
82843
+ textValue: string | null;
82844
+ booleanValue: boolean | null;
82845
+ numberValue: number | null;
82846
+ dateValue: Date | null;
82847
+ }[] | null | undefined;
82848
+ }, {
82849
+ type: string;
82850
+ id: string;
82851
+ disposition: string | null;
82852
+ createdAt: Date;
82853
+ updatedAt: Date;
82854
+ deletedAt: Date | null;
82855
+ categories: {
82856
+ id: string;
82857
+ value: string;
82858
+ createdAt: Date;
82859
+ updatedAt: Date;
82860
+ deletedAt: Date | null;
82861
+ level: 2 | 1 | 3;
82862
+ parentId: string | null;
82863
+ childCategoryList: {
82864
+ id: string;
82865
+ value: string;
82866
+ level: 2 | 1 | 3;
82867
+ parentId: string | null;
82868
+ childCategoryList: {
82869
+ id: string;
82870
+ value: string;
82871
+ level: 2 | 1 | 3;
82872
+ parentId: string | null;
82873
+ childCategoryList: any[];
82874
+ }[];
82875
+ }[];
82876
+ }[];
82877
+ tags: {
82878
+ id: string;
82879
+ name: string;
82880
+ createdAt: Date;
82881
+ updatedAt: Date;
82882
+ deletedAt: Date | null;
82883
+ }[];
82884
+ callFrom: string | null;
82885
+ callTo: string | null;
82886
+ note: string | null;
82887
+ customFields?: {
82888
+ id: string;
82889
+ createdAt: Date;
82890
+ updatedAt: Date;
82891
+ deletedAt: Date | null;
82892
+ entityId: string;
82893
+ attributeId: string;
82894
+ textValue: string | null;
82895
+ booleanValue: boolean | null;
82896
+ numberValue: number | null;
82897
+ dateValue: Date | null;
82898
+ }[] | null | undefined;
82899
+ }>>;
82900
+ }, "strip", z.ZodTypeAny, {
82901
+ id: string;
82902
+ channel: string | null;
82903
+ direction: string | null;
82904
+ createdAt: Date;
82905
+ updatedAt: Date;
82906
+ deletedAt: Date | null;
82907
+ entityId: string;
82908
+ queueId: string | null;
82909
+ contactId: string | null;
82910
+ caseId: number;
82911
+ entityName: string;
82912
+ agentId: string | null;
82913
+ startedDate: Date | null;
82914
+ handledTime: number | null;
82915
+ firstResponseTime: number | null;
82916
+ wrapUpForm: {
82917
+ type: string;
82918
+ id: string;
82919
+ disposition: string | null;
82920
+ createdAt: Date;
82921
+ updatedAt: Date;
82922
+ deletedAt: Date | null;
82923
+ categories: {
82924
+ id: string;
82925
+ value: string;
82926
+ createdAt: Date;
82927
+ updatedAt: Date;
82928
+ deletedAt: Date | null;
82929
+ level: 2 | 1 | 3;
82930
+ parentId: string | null;
82931
+ childCategoryList: {
82932
+ id: string;
82933
+ value: string;
82934
+ level: 2 | 1 | 3;
82935
+ parentId: string | null;
82936
+ childCategoryList: {
82937
+ id: string;
82938
+ value: string;
82939
+ level: 2 | 1 | 3;
82940
+ parentId: string | null;
82941
+ childCategoryList: any[];
82942
+ }[];
82943
+ }[];
82944
+ }[];
82945
+ tags: {
82946
+ id: string;
82947
+ name: string;
82948
+ createdAt: Date;
82949
+ updatedAt: Date;
82950
+ deletedAt: Date | null;
82951
+ }[];
82952
+ callFrom: string | null;
82953
+ callTo: string | null;
82954
+ note: string | null;
82955
+ customFields?: {
82956
+ id: string;
82957
+ createdAt: Date;
82958
+ updatedAt: Date;
82959
+ deletedAt: Date | null;
82960
+ entityId: string;
82961
+ attributeId: string;
82962
+ textValue: string | null;
82963
+ booleanValue: boolean | null;
82964
+ numberValue: number | null;
82965
+ dateValue: Date | null;
82966
+ }[] | null | undefined;
82967
+ } | null;
82968
+ }, {
82969
+ id: string;
82970
+ channel: string | null;
82971
+ direction: string | null;
82972
+ createdAt: Date;
82973
+ updatedAt: Date;
82974
+ deletedAt: Date | null;
82975
+ entityId: string;
82976
+ queueId: string | null;
82977
+ contactId: string | null;
82978
+ caseId: number;
82979
+ entityName: string;
82980
+ agentId: string | null;
82981
+ startedDate: Date | null;
82982
+ handledTime: number | null;
82983
+ firstResponseTime: number | null;
82984
+ wrapUpForm: {
82985
+ type: string;
82986
+ id: string;
82987
+ disposition: string | null;
82988
+ createdAt: Date;
82989
+ updatedAt: Date;
82990
+ deletedAt: Date | null;
82991
+ categories: {
82992
+ id: string;
82993
+ value: string;
82994
+ createdAt: Date;
82995
+ updatedAt: Date;
82996
+ deletedAt: Date | null;
82997
+ level: 2 | 1 | 3;
82998
+ parentId: string | null;
82999
+ childCategoryList: {
83000
+ id: string;
83001
+ value: string;
83002
+ level: 2 | 1 | 3;
83003
+ parentId: string | null;
83004
+ childCategoryList: {
83005
+ id: string;
83006
+ value: string;
83007
+ level: 2 | 1 | 3;
83008
+ parentId: string | null;
83009
+ childCategoryList: any[];
83010
+ }[];
83011
+ }[];
83012
+ }[];
83013
+ tags: {
83014
+ id: string;
83015
+ name: string;
83016
+ createdAt: Date;
83017
+ updatedAt: Date;
83018
+ deletedAt: Date | null;
83019
+ }[];
83020
+ callFrom: string | null;
83021
+ callTo: string | null;
83022
+ note: string | null;
83023
+ customFields?: {
83024
+ id: string;
83025
+ createdAt: Date;
83026
+ updatedAt: Date;
83027
+ deletedAt: Date | null;
83028
+ entityId: string;
83029
+ attributeId: string;
83030
+ textValue: string | null;
83031
+ booleanValue: boolean | null;
83032
+ numberValue: number | null;
83033
+ dateValue: Date | null;
83034
+ }[] | null | undefined;
83035
+ } | null;
83036
+ }>;
83037
+ workflowRule: z.ZodObject<{
83038
+ id: z.ZodString;
83039
+ createdAt: z.ZodDate;
83040
+ updatedAt: z.ZodDate;
83041
+ deletedAt: z.ZodNullable<z.ZodDate>;
83042
+ name: z.ZodString;
83043
+ isActive: z.ZodBoolean;
83044
+ type: z.ZodString;
83045
+ }, "strip", z.ZodTypeAny, {
83046
+ type: string;
83047
+ id: string;
83048
+ name: string;
83049
+ createdAt: Date;
83050
+ updatedAt: Date;
83051
+ deletedAt: Date | null;
83052
+ isActive: boolean;
83053
+ }, {
83054
+ type: string;
83055
+ id: string;
83056
+ name: string;
83057
+ createdAt: Date;
83058
+ updatedAt: Date;
83059
+ deletedAt: Date | null;
83060
+ isActive: boolean;
83061
+ }>;
83062
+ }, "strip", z.ZodTypeAny, {
83063
+ id: string;
83064
+ channel: {
83065
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83066
+ id: string;
83067
+ name: string;
83068
+ metadata: {
83069
+ id: string;
83070
+ name: string;
83071
+ accessToken?: string | undefined;
83072
+ channelSecret?: string | undefined;
83073
+ additionalCredentials?: any;
83074
+ lineRichMenuId?: string | null | undefined;
83075
+ };
83076
+ status: boolean;
83077
+ createdAt: Date;
83078
+ updatedAt: Date;
83079
+ deletedAt: Date | null;
83080
+ actor: {
83081
+ id: string;
83082
+ address: string | null;
83083
+ name: string;
83084
+ email: string;
83085
+ createdAt: Date;
83086
+ updatedAt: Date;
83087
+ deletedAt: Date | null;
83088
+ emailVerifiedAt: Date | null;
83089
+ password: string;
83090
+ phone: string | null;
83091
+ notificationCount: number | null;
83092
+ roles: {
83093
+ id: string;
83094
+ description: string | null;
83095
+ createdAt: Date;
83096
+ updatedAt: Date;
83097
+ deletedAt: Date | null;
83098
+ systemName: string;
83099
+ displayName: string;
83100
+ permissions: {
83101
+ id: string;
83102
+ description: string | null;
83103
+ createdAt: Date;
83104
+ updatedAt: Date;
83105
+ deletedAt: Date | null;
83106
+ systemName: string;
83107
+ displayName: string;
83108
+ }[];
83109
+ }[];
83110
+ extension: {
83111
+ id: string;
83112
+ createdAt: Date;
83113
+ updatedAt: Date;
83114
+ deletedAt: Date | null;
83115
+ userId: string | null;
83116
+ sipServerUrl: string;
83117
+ sipUserName: string;
83118
+ webphoneLoginUser: string;
83119
+ extensionId: string | null;
83120
+ extensionName: string;
83121
+ telephonySignature: string | null;
83122
+ };
83123
+ };
83124
+ brandName: string;
83125
+ platformId: string;
83126
+ isReloginRequired: boolean;
83127
+ connectedUserName: string;
83128
+ connectedUserId: string;
83129
+ botpressBot: {
83130
+ id: string;
83131
+ name: string;
83132
+ accessToken: string;
83133
+ botId: string;
83134
+ integrationId: string;
83135
+ } | null;
83136
+ };
83137
+ direction: "incoming" | "outgoing" | "system";
83138
+ status: number;
83139
+ createdAt: Date;
83140
+ updatedAt: Date;
83141
+ deletedAt: Date | null;
83142
+ actor: {
83143
+ id: string;
83144
+ address: string | null;
83145
+ name: string;
83146
+ email: string;
83147
+ createdAt: Date;
83148
+ updatedAt: Date;
83149
+ deletedAt: Date | null;
83150
+ emailVerifiedAt: Date | null;
83151
+ password: string;
83152
+ phone: string | null;
83153
+ notificationCount: number | null;
83154
+ roles: {
83155
+ id: string;
83156
+ description: string | null;
83157
+ createdAt: Date;
83158
+ updatedAt: Date;
83159
+ deletedAt: Date | null;
83160
+ systemName: string;
83161
+ displayName: string;
83162
+ permissions: {
83163
+ id: string;
83164
+ description: string | null;
83165
+ createdAt: Date;
83166
+ updatedAt: Date;
83167
+ deletedAt: Date | null;
83168
+ systemName: string;
83169
+ displayName: string;
83170
+ }[];
83171
+ }[];
83172
+ extension: {
83173
+ id: string;
83174
+ createdAt: Date;
83175
+ updatedAt: Date;
83176
+ deletedAt: Date | null;
83177
+ userId: string | null;
83178
+ sipServerUrl: string;
83179
+ sipUserName: string;
83180
+ webphoneLoginUser: string;
83181
+ extensionId: string | null;
83182
+ extensionName: string;
83183
+ telephonySignature: string | null;
83184
+ };
83185
+ };
83186
+ firstResponseTime: number;
83187
+ lastMessage: string;
83188
+ handleTime: number;
83189
+ unreadCount: number;
83190
+ firstResponseAt: Date;
83191
+ isLatest: boolean;
83192
+ platformContact: {
83193
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83194
+ id: string;
83195
+ metadata: {
83196
+ id: string;
83197
+ name: string;
83198
+ picture?: string | undefined;
83199
+ additionalCredentials?: any;
83200
+ };
83201
+ createdAt: Date;
83202
+ updatedAt: Date;
83203
+ deletedAt: Date | null;
83204
+ contact: {
83205
+ id: string;
83206
+ channel: string | null;
83207
+ address: string | null;
83208
+ name: string;
83209
+ createdAt: Date;
83210
+ updatedAt: Date;
83211
+ deletedAt: Date | null;
83212
+ customFields: {
83213
+ id: string;
83214
+ createdAt: Date;
83215
+ updatedAt: Date;
83216
+ deletedAt: Date | null;
83217
+ attribute: {
83218
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
83219
+ id: string;
83220
+ position: number;
83221
+ createdAt: Date;
83222
+ updatedAt: Date;
83223
+ deletedAt: Date | null;
83224
+ systemName: string;
83225
+ displayName: string;
83226
+ isDefault: boolean;
83227
+ isArchived: boolean;
83228
+ isRequired: boolean;
83229
+ isUnique: boolean;
83230
+ };
83231
+ textValue: string | null;
83232
+ booleanValue: boolean | null;
83233
+ numberValue: number | null;
83234
+ dateValue: Date | null;
83235
+ uploads: {
83236
+ id: string;
83237
+ status: string | null;
83238
+ createdAt: Date;
83239
+ updatedAt: Date;
83240
+ deletedAt: Date | null;
83241
+ fileName: string;
83242
+ fileKey: string;
83243
+ bucketName: string;
83244
+ fileSize: number;
83245
+ fileUrl: string | null;
83246
+ }[];
83247
+ }[];
83248
+ company: {
83249
+ id: string;
83250
+ createdAt: Date;
83251
+ updatedAt: Date;
83252
+ deletedAt: Date | null;
83253
+ address?: string | null | undefined;
83254
+ name?: string | undefined;
83255
+ phone?: string | null | undefined;
83256
+ industry?: string | null | undefined;
83257
+ } | null;
83258
+ notes: string | null;
83259
+ contactProfile: string | null;
83260
+ socialProfileUrl: string | null;
83261
+ tags: {
83262
+ id: string;
83263
+ name: string;
83264
+ createdAt: Date;
83265
+ updatedAt: Date;
83266
+ deletedAt: Date | null;
83267
+ }[];
83268
+ contactEmails: {
83269
+ id: string;
83270
+ isPrimary: boolean;
83271
+ email: string;
83272
+ createdAt: Date;
83273
+ updatedAt: Date;
83274
+ deletedAt: Date | null;
83275
+ }[];
83276
+ contactPhones: {
83277
+ id: string;
83278
+ isPrimary: boolean;
83279
+ createdAt: Date;
83280
+ updatedAt: Date;
83281
+ deletedAt: Date | null;
83282
+ phone: string;
83283
+ }[];
83284
+ activityLogs?: {
83285
+ id: string;
83286
+ description: string;
83287
+ createdAt: Date;
83288
+ updatedAt: Date;
83289
+ deletedAt: Date | null;
83290
+ entityId: string;
83291
+ entityType: {
83292
+ id: string;
83293
+ description: string | null;
83294
+ createdAt: Date;
83295
+ updatedAt: Date;
83296
+ deletedAt: Date | null;
83297
+ entity: string;
83298
+ };
83299
+ }[] | undefined;
83300
+ };
83301
+ channelId: string;
83302
+ socialPlatformId: string;
83303
+ };
83304
+ assignee: {
83305
+ id: string;
83306
+ address: string | null;
83307
+ name: string;
83308
+ email: string;
83309
+ createdAt: Date;
83310
+ updatedAt: Date;
83311
+ deletedAt: Date | null;
83312
+ emailVerifiedAt: Date | null;
83313
+ password: string;
83314
+ phone: string | null;
83315
+ notificationCount: number | null;
83316
+ roles: {
83317
+ id: string;
83318
+ description: string | null;
83319
+ createdAt: Date;
83320
+ updatedAt: Date;
83321
+ deletedAt: Date | null;
83322
+ systemName: string;
83323
+ displayName: string;
83324
+ permissions: {
83325
+ id: string;
83326
+ description: string | null;
83327
+ createdAt: Date;
83328
+ updatedAt: Date;
83329
+ deletedAt: Date | null;
83330
+ systemName: string;
83331
+ displayName: string;
83332
+ }[];
83333
+ }[];
83334
+ extension: {
83335
+ id: string;
83336
+ createdAt: Date;
83337
+ updatedAt: Date;
83338
+ deletedAt: Date | null;
83339
+ userId: string | null;
83340
+ sipServerUrl: string;
83341
+ sipUserName: string;
83342
+ webphoneLoginUser: string;
83343
+ extensionId: string | null;
83344
+ extensionName: string;
83345
+ telephonySignature: string | null;
83346
+ };
83347
+ };
83348
+ closedAt: Date;
83349
+ lastMessageAt: Date | null;
83350
+ isBotRoom: boolean;
83351
+ cxlog: {
83352
+ id: string;
83353
+ channel: string | null;
83354
+ direction: string | null;
83355
+ createdAt: Date;
83356
+ updatedAt: Date;
83357
+ deletedAt: Date | null;
83358
+ entityId: string;
83359
+ queueId: string | null;
83360
+ contactId: string | null;
83361
+ caseId: number;
83362
+ entityName: string;
83363
+ agentId: string | null;
83364
+ startedDate: Date | null;
83365
+ handledTime: number | null;
83366
+ firstResponseTime: number | null;
83367
+ wrapUpForm: {
83368
+ type: string;
83369
+ id: string;
83370
+ disposition: string | null;
83371
+ createdAt: Date;
83372
+ updatedAt: Date;
83373
+ deletedAt: Date | null;
83374
+ categories: {
83375
+ id: string;
83376
+ value: string;
83377
+ createdAt: Date;
83378
+ updatedAt: Date;
83379
+ deletedAt: Date | null;
83380
+ level: 2 | 1 | 3;
83381
+ parentId: string | null;
83382
+ childCategoryList: {
83383
+ id: string;
83384
+ value: string;
83385
+ level: 2 | 1 | 3;
83386
+ parentId: string | null;
83387
+ childCategoryList: {
83388
+ id: string;
83389
+ value: string;
83390
+ level: 2 | 1 | 3;
83391
+ parentId: string | null;
83392
+ childCategoryList: any[];
83393
+ }[];
83394
+ }[];
83395
+ }[];
83396
+ tags: {
83397
+ id: string;
83398
+ name: string;
83399
+ createdAt: Date;
83400
+ updatedAt: Date;
83401
+ deletedAt: Date | null;
83402
+ }[];
83403
+ callFrom: string | null;
83404
+ callTo: string | null;
83405
+ note: string | null;
83406
+ customFields?: {
83407
+ id: string;
83408
+ createdAt: Date;
83409
+ updatedAt: Date;
83410
+ deletedAt: Date | null;
83411
+ entityId: string;
83412
+ attributeId: string;
83413
+ textValue: string | null;
83414
+ booleanValue: boolean | null;
83415
+ numberValue: number | null;
83416
+ dateValue: Date | null;
83417
+ }[] | null | undefined;
83418
+ } | null;
83419
+ };
83420
+ workflowRule: {
83421
+ type: string;
83422
+ id: string;
83423
+ name: string;
83424
+ createdAt: Date;
83425
+ updatedAt: Date;
83426
+ deletedAt: Date | null;
83427
+ isActive: boolean;
83428
+ };
83429
+ }, {
83430
+ id: string;
83431
+ channel: {
83432
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83433
+ id: string;
83434
+ name: string;
83435
+ metadata: {
83436
+ id: string;
83437
+ name: string;
83438
+ accessToken?: string | undefined;
83439
+ channelSecret?: string | undefined;
83440
+ additionalCredentials?: any;
83441
+ lineRichMenuId?: string | null | undefined;
83442
+ };
83443
+ status: boolean;
83444
+ createdAt: Date;
83445
+ updatedAt: Date;
83446
+ deletedAt: Date | null;
83447
+ actor: {
83448
+ id: string;
83449
+ address: string | null;
83450
+ name: string;
83451
+ email: string;
83452
+ createdAt: Date;
83453
+ updatedAt: Date;
83454
+ deletedAt: Date | null;
83455
+ emailVerifiedAt: Date | null;
83456
+ password: string;
83457
+ phone: string | null;
83458
+ notificationCount: number | null;
83459
+ roles: {
83460
+ id: string;
83461
+ description: string | null;
83462
+ createdAt: Date;
83463
+ updatedAt: Date;
83464
+ deletedAt: Date | null;
83465
+ systemName: string;
83466
+ displayName: string;
83467
+ permissions: {
83468
+ id: string;
83469
+ description: string | null;
83470
+ createdAt: Date;
83471
+ updatedAt: Date;
83472
+ deletedAt: Date | null;
83473
+ systemName: string;
83474
+ displayName: string;
83475
+ }[];
83476
+ }[];
83477
+ extension: {
83478
+ id: string;
83479
+ createdAt: Date;
83480
+ updatedAt: Date;
83481
+ deletedAt: Date | null;
83482
+ userId: string | null;
83483
+ sipServerUrl: string;
83484
+ sipUserName: string;
83485
+ webphoneLoginUser: string;
83486
+ extensionId: string | null;
83487
+ extensionName: string;
83488
+ telephonySignature: string | null;
83489
+ };
83490
+ };
83491
+ brandName: string;
83492
+ platformId: string;
83493
+ isReloginRequired: boolean;
83494
+ connectedUserName: string;
83495
+ connectedUserId: string;
83496
+ botpressBot: {
83497
+ id: string;
83498
+ name: string;
83499
+ accessToken: string;
83500
+ botId: string;
83501
+ integrationId: string;
83502
+ } | null;
83503
+ };
83504
+ direction: "incoming" | "outgoing" | "system";
83505
+ status: number;
83506
+ createdAt: Date;
83507
+ updatedAt: Date;
83508
+ deletedAt: Date | null;
83509
+ actor: {
83510
+ id: string;
83511
+ address: string | null;
83512
+ name: string;
83513
+ email: string;
83514
+ createdAt: Date;
83515
+ updatedAt: Date;
83516
+ deletedAt: Date | null;
83517
+ emailVerifiedAt: Date | null;
83518
+ password: string;
83519
+ phone: string | null;
83520
+ notificationCount: number | null;
83521
+ roles: {
83522
+ id: string;
83523
+ description: string | null;
83524
+ createdAt: Date;
83525
+ updatedAt: Date;
83526
+ deletedAt: Date | null;
83527
+ systemName: string;
83528
+ displayName: string;
83529
+ permissions: {
83530
+ id: string;
83531
+ description: string | null;
83532
+ createdAt: Date;
83533
+ updatedAt: Date;
83534
+ deletedAt: Date | null;
83535
+ systemName: string;
83536
+ displayName: string;
83537
+ }[];
83538
+ }[];
83539
+ extension: {
83540
+ id: string;
83541
+ createdAt: Date;
83542
+ updatedAt: Date;
83543
+ deletedAt: Date | null;
83544
+ userId: string | null;
83545
+ sipServerUrl: string;
83546
+ sipUserName: string;
83547
+ webphoneLoginUser: string;
83548
+ extensionId: string | null;
83549
+ extensionName: string;
83550
+ telephonySignature: string | null;
83551
+ };
83552
+ };
83553
+ firstResponseTime: number;
83554
+ lastMessage: string;
83555
+ handleTime: number;
83556
+ unreadCount: number;
83557
+ firstResponseAt: Date;
83558
+ isLatest: boolean;
83559
+ platformContact: {
83560
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83561
+ id: string;
83562
+ metadata: {
83563
+ id: string;
83564
+ name: string;
83565
+ picture?: string | undefined;
83566
+ additionalCredentials?: any;
83567
+ };
83568
+ createdAt: Date;
83569
+ updatedAt: Date;
83570
+ deletedAt: Date | null;
83571
+ contact: {
83572
+ id: string;
83573
+ channel: string | null;
83574
+ address: string | null;
83575
+ name: string;
83576
+ createdAt: Date;
83577
+ updatedAt: Date;
83578
+ deletedAt: Date | null;
83579
+ customFields: {
83580
+ id: string;
83581
+ createdAt: Date;
83582
+ updatedAt: Date;
83583
+ deletedAt: Date | null;
83584
+ attribute: {
83585
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
83586
+ id: string;
83587
+ position: number;
83588
+ createdAt: Date;
83589
+ updatedAt: Date;
83590
+ deletedAt: Date | null;
83591
+ systemName: string;
83592
+ displayName: string;
83593
+ isDefault: boolean;
83594
+ isArchived: boolean;
83595
+ isRequired: boolean;
83596
+ isUnique: boolean;
83597
+ };
83598
+ textValue: string | null;
83599
+ booleanValue: boolean | null;
83600
+ numberValue: number | null;
83601
+ dateValue: Date | null;
83602
+ uploads: {
83603
+ id: string;
83604
+ status: string | null;
83605
+ createdAt: Date;
83606
+ updatedAt: Date;
83607
+ deletedAt: Date | null;
83608
+ fileName: string;
83609
+ fileKey: string;
83610
+ bucketName: string;
83611
+ fileSize: number;
83612
+ fileUrl: string | null;
83613
+ }[];
83614
+ }[];
83615
+ company: {
83616
+ id: string;
83617
+ createdAt: Date;
83618
+ updatedAt: Date;
83619
+ deletedAt: Date | null;
83620
+ address?: string | null | undefined;
83621
+ name?: string | undefined;
83622
+ phone?: string | null | undefined;
83623
+ industry?: string | null | undefined;
83624
+ } | null;
83625
+ notes: string | null;
83626
+ contactProfile: string | null;
83627
+ socialProfileUrl: string | null;
83628
+ tags: {
83629
+ id: string;
83630
+ name: string;
83631
+ createdAt: Date;
83632
+ updatedAt: Date;
83633
+ deletedAt: Date | null;
83634
+ }[];
83635
+ contactEmails: {
83636
+ id: string;
83637
+ isPrimary: boolean;
83638
+ email: string;
83639
+ createdAt: Date;
83640
+ updatedAt: Date;
83641
+ deletedAt: Date | null;
83642
+ }[];
83643
+ contactPhones: {
83644
+ id: string;
83645
+ isPrimary: boolean;
83646
+ createdAt: Date;
83647
+ updatedAt: Date;
83648
+ deletedAt: Date | null;
83649
+ phone: string;
83650
+ }[];
83651
+ activityLogs?: {
83652
+ id: string;
83653
+ description: string;
83654
+ createdAt: Date;
83655
+ updatedAt: Date;
83656
+ deletedAt: Date | null;
83657
+ entityId: string;
83658
+ entityType: {
83659
+ id: string;
83660
+ description: string | null;
83661
+ createdAt: Date;
83662
+ updatedAt: Date;
83663
+ deletedAt: Date | null;
83664
+ entity: string;
83665
+ };
83666
+ }[] | undefined;
83667
+ };
83668
+ channelId: string;
83669
+ socialPlatformId: string;
83670
+ };
83671
+ assignee: {
83672
+ id: string;
83673
+ address: string | null;
83674
+ name: string;
83675
+ email: string;
83676
+ createdAt: Date;
83677
+ updatedAt: Date;
83678
+ deletedAt: Date | null;
83679
+ emailVerifiedAt: Date | null;
83680
+ password: string;
83681
+ phone: string | null;
83682
+ notificationCount: number | null;
83683
+ roles: {
83684
+ id: string;
83685
+ description: string | null;
83686
+ createdAt: Date;
83687
+ updatedAt: Date;
83688
+ deletedAt: Date | null;
83689
+ systemName: string;
83690
+ displayName: string;
83691
+ permissions: {
83692
+ id: string;
83693
+ description: string | null;
83694
+ createdAt: Date;
83695
+ updatedAt: Date;
83696
+ deletedAt: Date | null;
83697
+ systemName: string;
83698
+ displayName: string;
83699
+ }[];
83700
+ }[];
83701
+ extension: {
83702
+ id: string;
83703
+ createdAt: Date;
83704
+ updatedAt: Date;
83705
+ deletedAt: Date | null;
83706
+ userId: string | null;
83707
+ sipServerUrl: string;
83708
+ sipUserName: string;
83709
+ webphoneLoginUser: string;
83710
+ extensionId: string | null;
83711
+ extensionName: string;
83712
+ telephonySignature: string | null;
83713
+ };
83714
+ };
83715
+ closedAt: Date;
83716
+ lastMessageAt: Date | null;
83717
+ isBotRoom: boolean;
83718
+ cxlog: {
83719
+ id: string;
83720
+ channel: string | null;
83721
+ direction: string | null;
83722
+ createdAt: Date;
83723
+ updatedAt: Date;
83724
+ deletedAt: Date | null;
83725
+ entityId: string;
83726
+ queueId: string | null;
83727
+ contactId: string | null;
83728
+ caseId: number;
83729
+ entityName: string;
83730
+ agentId: string | null;
83731
+ startedDate: Date | null;
83732
+ handledTime: number | null;
83733
+ firstResponseTime: number | null;
83734
+ wrapUpForm: {
83735
+ type: string;
83736
+ id: string;
83737
+ disposition: string | null;
83738
+ createdAt: Date;
83739
+ updatedAt: Date;
83740
+ deletedAt: Date | null;
83741
+ categories: {
83742
+ id: string;
83743
+ value: string;
83744
+ createdAt: Date;
83745
+ updatedAt: Date;
83746
+ deletedAt: Date | null;
83747
+ level: 2 | 1 | 3;
83748
+ parentId: string | null;
83749
+ childCategoryList: {
83750
+ id: string;
83751
+ value: string;
83752
+ level: 2 | 1 | 3;
83753
+ parentId: string | null;
83754
+ childCategoryList: {
83755
+ id: string;
83756
+ value: string;
83757
+ level: 2 | 1 | 3;
83758
+ parentId: string | null;
83759
+ childCategoryList: any[];
83760
+ }[];
83761
+ }[];
83762
+ }[];
83763
+ tags: {
83764
+ id: string;
83765
+ name: string;
83766
+ createdAt: Date;
83767
+ updatedAt: Date;
83768
+ deletedAt: Date | null;
83769
+ }[];
83770
+ callFrom: string | null;
83771
+ callTo: string | null;
83772
+ note: string | null;
83773
+ customFields?: {
83774
+ id: string;
83775
+ createdAt: Date;
83776
+ updatedAt: Date;
83777
+ deletedAt: Date | null;
83778
+ entityId: string;
83779
+ attributeId: string;
83780
+ textValue: string | null;
83781
+ booleanValue: boolean | null;
83782
+ numberValue: number | null;
83783
+ dateValue: Date | null;
83784
+ }[] | null | undefined;
83785
+ } | null;
83786
+ };
83787
+ workflowRule: {
83788
+ type: string;
83789
+ id: string;
83790
+ name: string;
83791
+ createdAt: Date;
83792
+ updatedAt: Date;
83793
+ deletedAt: Date | null;
83794
+ isActive: boolean;
83795
+ };
83796
+ }>;
83797
+ }, "strip", z.ZodTypeAny, {
83798
+ data: {
83799
+ id: string;
83800
+ channel: {
83801
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83802
+ id: string;
83803
+ name: string;
83804
+ metadata: {
83805
+ id: string;
83806
+ name: string;
83807
+ accessToken?: string | undefined;
83808
+ channelSecret?: string | undefined;
83809
+ additionalCredentials?: any;
83810
+ lineRichMenuId?: string | null | undefined;
83811
+ };
83812
+ status: boolean;
83813
+ createdAt: Date;
83814
+ updatedAt: Date;
83815
+ deletedAt: Date | null;
83816
+ actor: {
83817
+ id: string;
83818
+ address: string | null;
83819
+ name: string;
83820
+ email: string;
83821
+ createdAt: Date;
83822
+ updatedAt: Date;
83823
+ deletedAt: Date | null;
83824
+ emailVerifiedAt: Date | null;
83825
+ password: string;
83826
+ phone: string | null;
83827
+ notificationCount: number | null;
83828
+ roles: {
83829
+ id: string;
83830
+ description: string | null;
83831
+ createdAt: Date;
83832
+ updatedAt: Date;
83833
+ deletedAt: Date | null;
83834
+ systemName: string;
83835
+ displayName: string;
83836
+ permissions: {
83837
+ id: string;
83838
+ description: string | null;
83839
+ createdAt: Date;
83840
+ updatedAt: Date;
83841
+ deletedAt: Date | null;
83842
+ systemName: string;
83843
+ displayName: string;
83844
+ }[];
83845
+ }[];
83846
+ extension: {
83847
+ id: string;
83848
+ createdAt: Date;
83849
+ updatedAt: Date;
83850
+ deletedAt: Date | null;
83851
+ userId: string | null;
83852
+ sipServerUrl: string;
83853
+ sipUserName: string;
83854
+ webphoneLoginUser: string;
83855
+ extensionId: string | null;
83856
+ extensionName: string;
83857
+ telephonySignature: string | null;
83858
+ };
83859
+ };
83860
+ brandName: string;
83861
+ platformId: string;
83862
+ isReloginRequired: boolean;
83863
+ connectedUserName: string;
83864
+ connectedUserId: string;
83865
+ botpressBot: {
83866
+ id: string;
83867
+ name: string;
83868
+ accessToken: string;
83869
+ botId: string;
83870
+ integrationId: string;
83871
+ } | null;
83872
+ };
83873
+ direction: "incoming" | "outgoing" | "system";
83874
+ status: number;
83875
+ createdAt: Date;
83876
+ updatedAt: Date;
83877
+ deletedAt: Date | null;
83878
+ actor: {
83879
+ id: string;
83880
+ address: string | null;
83881
+ name: string;
83882
+ email: string;
83883
+ createdAt: Date;
83884
+ updatedAt: Date;
83885
+ deletedAt: Date | null;
83886
+ emailVerifiedAt: Date | null;
83887
+ password: string;
83888
+ phone: string | null;
83889
+ notificationCount: number | null;
83890
+ roles: {
83891
+ id: string;
83892
+ description: string | null;
83893
+ createdAt: Date;
83894
+ updatedAt: Date;
83895
+ deletedAt: Date | null;
83896
+ systemName: string;
83897
+ displayName: string;
83898
+ permissions: {
83899
+ id: string;
83900
+ description: string | null;
83901
+ createdAt: Date;
83902
+ updatedAt: Date;
83903
+ deletedAt: Date | null;
83904
+ systemName: string;
83905
+ displayName: string;
83906
+ }[];
83907
+ }[];
83908
+ extension: {
83909
+ id: string;
83910
+ createdAt: Date;
83911
+ updatedAt: Date;
83912
+ deletedAt: Date | null;
83913
+ userId: string | null;
83914
+ sipServerUrl: string;
83915
+ sipUserName: string;
83916
+ webphoneLoginUser: string;
83917
+ extensionId: string | null;
83918
+ extensionName: string;
83919
+ telephonySignature: string | null;
83920
+ };
83921
+ };
83922
+ firstResponseTime: number;
83923
+ lastMessage: string;
83924
+ handleTime: number;
83925
+ unreadCount: number;
83926
+ firstResponseAt: Date;
83927
+ isLatest: boolean;
83928
+ platformContact: {
83929
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
83930
+ id: string;
83931
+ metadata: {
83932
+ id: string;
83933
+ name: string;
83934
+ picture?: string | undefined;
83935
+ additionalCredentials?: any;
83936
+ };
83937
+ createdAt: Date;
83938
+ updatedAt: Date;
83939
+ deletedAt: Date | null;
83940
+ contact: {
83941
+ id: string;
83942
+ channel: string | null;
83943
+ address: string | null;
83944
+ name: string;
83945
+ createdAt: Date;
83946
+ updatedAt: Date;
83947
+ deletedAt: Date | null;
83948
+ customFields: {
83949
+ id: string;
83950
+ createdAt: Date;
83951
+ updatedAt: Date;
83952
+ deletedAt: Date | null;
83953
+ attribute: {
83954
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
83955
+ id: string;
83956
+ position: number;
83957
+ createdAt: Date;
83958
+ updatedAt: Date;
83959
+ deletedAt: Date | null;
83960
+ systemName: string;
83961
+ displayName: string;
83962
+ isDefault: boolean;
83963
+ isArchived: boolean;
83964
+ isRequired: boolean;
83965
+ isUnique: boolean;
83966
+ };
83967
+ textValue: string | null;
83968
+ booleanValue: boolean | null;
83969
+ numberValue: number | null;
83970
+ dateValue: Date | null;
83971
+ uploads: {
83972
+ id: string;
83973
+ status: string | null;
83974
+ createdAt: Date;
83975
+ updatedAt: Date;
83976
+ deletedAt: Date | null;
83977
+ fileName: string;
83978
+ fileKey: string;
83979
+ bucketName: string;
83980
+ fileSize: number;
83981
+ fileUrl: string | null;
83982
+ }[];
83983
+ }[];
83984
+ company: {
83985
+ id: string;
83986
+ createdAt: Date;
83987
+ updatedAt: Date;
83988
+ deletedAt: Date | null;
83989
+ address?: string | null | undefined;
83990
+ name?: string | undefined;
83991
+ phone?: string | null | undefined;
83992
+ industry?: string | null | undefined;
83993
+ } | null;
83994
+ notes: string | null;
83995
+ contactProfile: string | null;
83996
+ socialProfileUrl: string | null;
83997
+ tags: {
83998
+ id: string;
83999
+ name: string;
84000
+ createdAt: Date;
84001
+ updatedAt: Date;
84002
+ deletedAt: Date | null;
84003
+ }[];
84004
+ contactEmails: {
84005
+ id: string;
84006
+ isPrimary: boolean;
84007
+ email: string;
84008
+ createdAt: Date;
84009
+ updatedAt: Date;
84010
+ deletedAt: Date | null;
84011
+ }[];
84012
+ contactPhones: {
84013
+ id: string;
84014
+ isPrimary: boolean;
84015
+ createdAt: Date;
84016
+ updatedAt: Date;
84017
+ deletedAt: Date | null;
84018
+ phone: string;
84019
+ }[];
84020
+ activityLogs?: {
84021
+ id: string;
84022
+ description: string;
84023
+ createdAt: Date;
84024
+ updatedAt: Date;
84025
+ deletedAt: Date | null;
84026
+ entityId: string;
84027
+ entityType: {
84028
+ id: string;
84029
+ description: string | null;
84030
+ createdAt: Date;
84031
+ updatedAt: Date;
84032
+ deletedAt: Date | null;
84033
+ entity: string;
84034
+ };
84035
+ }[] | undefined;
84036
+ };
84037
+ channelId: string;
84038
+ socialPlatformId: string;
84039
+ };
84040
+ assignee: {
84041
+ id: string;
84042
+ address: string | null;
84043
+ name: string;
84044
+ email: string;
84045
+ createdAt: Date;
84046
+ updatedAt: Date;
84047
+ deletedAt: Date | null;
84048
+ emailVerifiedAt: Date | null;
84049
+ password: string;
84050
+ phone: string | null;
84051
+ notificationCount: number | null;
84052
+ roles: {
84053
+ id: string;
84054
+ description: string | null;
84055
+ createdAt: Date;
84056
+ updatedAt: Date;
84057
+ deletedAt: Date | null;
84058
+ systemName: string;
84059
+ displayName: string;
84060
+ permissions: {
84061
+ id: string;
84062
+ description: string | null;
84063
+ createdAt: Date;
84064
+ updatedAt: Date;
84065
+ deletedAt: Date | null;
84066
+ systemName: string;
84067
+ displayName: string;
84068
+ }[];
84069
+ }[];
84070
+ extension: {
84071
+ id: string;
84072
+ createdAt: Date;
84073
+ updatedAt: Date;
84074
+ deletedAt: Date | null;
84075
+ userId: string | null;
84076
+ sipServerUrl: string;
84077
+ sipUserName: string;
84078
+ webphoneLoginUser: string;
84079
+ extensionId: string | null;
84080
+ extensionName: string;
84081
+ telephonySignature: string | null;
84082
+ };
84083
+ };
84084
+ closedAt: Date;
84085
+ lastMessageAt: Date | null;
84086
+ isBotRoom: boolean;
84087
+ cxlog: {
84088
+ id: string;
84089
+ channel: string | null;
84090
+ direction: string | null;
84091
+ createdAt: Date;
84092
+ updatedAt: Date;
84093
+ deletedAt: Date | null;
84094
+ entityId: string;
84095
+ queueId: string | null;
84096
+ contactId: string | null;
84097
+ caseId: number;
84098
+ entityName: string;
84099
+ agentId: string | null;
84100
+ startedDate: Date | null;
84101
+ handledTime: number | null;
84102
+ firstResponseTime: number | null;
84103
+ wrapUpForm: {
84104
+ type: string;
84105
+ id: string;
84106
+ disposition: string | null;
84107
+ createdAt: Date;
84108
+ updatedAt: Date;
84109
+ deletedAt: Date | null;
84110
+ categories: {
84111
+ id: string;
84112
+ value: string;
84113
+ createdAt: Date;
84114
+ updatedAt: Date;
84115
+ deletedAt: Date | null;
84116
+ level: 2 | 1 | 3;
84117
+ parentId: string | null;
84118
+ childCategoryList: {
84119
+ id: string;
84120
+ value: string;
84121
+ level: 2 | 1 | 3;
84122
+ parentId: string | null;
84123
+ childCategoryList: {
84124
+ id: string;
84125
+ value: string;
84126
+ level: 2 | 1 | 3;
84127
+ parentId: string | null;
84128
+ childCategoryList: any[];
84129
+ }[];
84130
+ }[];
84131
+ }[];
84132
+ tags: {
84133
+ id: string;
84134
+ name: string;
84135
+ createdAt: Date;
84136
+ updatedAt: Date;
84137
+ deletedAt: Date | null;
84138
+ }[];
84139
+ callFrom: string | null;
84140
+ callTo: string | null;
84141
+ note: string | null;
84142
+ customFields?: {
84143
+ id: string;
84144
+ createdAt: Date;
84145
+ updatedAt: Date;
84146
+ deletedAt: Date | null;
84147
+ entityId: string;
84148
+ attributeId: string;
84149
+ textValue: string | null;
84150
+ booleanValue: boolean | null;
84151
+ numberValue: number | null;
84152
+ dateValue: Date | null;
84153
+ }[] | null | undefined;
84154
+ } | null;
84155
+ };
84156
+ workflowRule: {
84157
+ type: string;
84158
+ id: string;
84159
+ name: string;
84160
+ createdAt: Date;
84161
+ updatedAt: Date;
84162
+ deletedAt: Date | null;
84163
+ isActive: boolean;
84164
+ };
84165
+ };
84166
+ requestId: string;
84167
+ }, {
84168
+ data: {
84169
+ id: string;
84170
+ channel: {
84171
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
84172
+ id: string;
84173
+ name: string;
84174
+ metadata: {
84175
+ id: string;
84176
+ name: string;
84177
+ accessToken?: string | undefined;
84178
+ channelSecret?: string | undefined;
84179
+ additionalCredentials?: any;
84180
+ lineRichMenuId?: string | null | undefined;
84181
+ };
84182
+ status: boolean;
84183
+ createdAt: Date;
84184
+ updatedAt: Date;
84185
+ deletedAt: Date | null;
84186
+ actor: {
84187
+ id: string;
84188
+ address: string | null;
84189
+ name: string;
84190
+ email: string;
84191
+ createdAt: Date;
84192
+ updatedAt: Date;
84193
+ deletedAt: Date | null;
84194
+ emailVerifiedAt: Date | null;
84195
+ password: string;
84196
+ phone: string | null;
84197
+ notificationCount: number | null;
84198
+ roles: {
84199
+ id: string;
84200
+ description: string | null;
84201
+ createdAt: Date;
84202
+ updatedAt: Date;
84203
+ deletedAt: Date | null;
84204
+ systemName: string;
84205
+ displayName: string;
84206
+ permissions: {
84207
+ id: string;
84208
+ description: string | null;
84209
+ createdAt: Date;
84210
+ updatedAt: Date;
84211
+ deletedAt: Date | null;
84212
+ systemName: string;
84213
+ displayName: string;
84214
+ }[];
84215
+ }[];
84216
+ extension: {
84217
+ id: string;
84218
+ createdAt: Date;
84219
+ updatedAt: Date;
84220
+ deletedAt: Date | null;
84221
+ userId: string | null;
84222
+ sipServerUrl: string;
84223
+ sipUserName: string;
84224
+ webphoneLoginUser: string;
84225
+ extensionId: string | null;
84226
+ extensionName: string;
84227
+ telephonySignature: string | null;
84228
+ };
84229
+ };
84230
+ brandName: string;
84231
+ platformId: string;
84232
+ isReloginRequired: boolean;
84233
+ connectedUserName: string;
84234
+ connectedUserId: string;
84235
+ botpressBot: {
84236
+ id: string;
84237
+ name: string;
84238
+ accessToken: string;
84239
+ botId: string;
84240
+ integrationId: string;
84241
+ } | null;
84242
+ };
84243
+ direction: "incoming" | "outgoing" | "system";
84244
+ status: number;
84245
+ createdAt: Date;
84246
+ updatedAt: Date;
84247
+ deletedAt: Date | null;
84248
+ actor: {
84249
+ id: string;
84250
+ address: string | null;
84251
+ name: string;
84252
+ email: string;
84253
+ createdAt: Date;
84254
+ updatedAt: Date;
84255
+ deletedAt: Date | null;
84256
+ emailVerifiedAt: Date | null;
84257
+ password: string;
84258
+ phone: string | null;
84259
+ notificationCount: number | null;
84260
+ roles: {
84261
+ id: string;
84262
+ description: string | null;
84263
+ createdAt: Date;
84264
+ updatedAt: Date;
84265
+ deletedAt: Date | null;
84266
+ systemName: string;
84267
+ displayName: string;
84268
+ permissions: {
84269
+ id: string;
84270
+ description: string | null;
84271
+ createdAt: Date;
84272
+ updatedAt: Date;
84273
+ deletedAt: Date | null;
84274
+ systemName: string;
84275
+ displayName: string;
84276
+ }[];
84277
+ }[];
84278
+ extension: {
84279
+ id: string;
84280
+ createdAt: Date;
84281
+ updatedAt: Date;
84282
+ deletedAt: Date | null;
84283
+ userId: string | null;
84284
+ sipServerUrl: string;
84285
+ sipUserName: string;
84286
+ webphoneLoginUser: string;
84287
+ extensionId: string | null;
84288
+ extensionName: string;
84289
+ telephonySignature: string | null;
84290
+ };
84291
+ };
84292
+ firstResponseTime: number;
84293
+ lastMessage: string;
84294
+ handleTime: number;
84295
+ unreadCount: number;
84296
+ firstResponseAt: Date;
84297
+ isLatest: boolean;
84298
+ platformContact: {
84299
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
84300
+ id: string;
84301
+ metadata: {
84302
+ id: string;
84303
+ name: string;
84304
+ picture?: string | undefined;
84305
+ additionalCredentials?: any;
84306
+ };
84307
+ createdAt: Date;
84308
+ updatedAt: Date;
84309
+ deletedAt: Date | null;
84310
+ contact: {
84311
+ id: string;
84312
+ channel: string | null;
84313
+ address: string | null;
84314
+ name: string;
84315
+ createdAt: Date;
84316
+ updatedAt: Date;
84317
+ deletedAt: Date | null;
84318
+ customFields: {
84319
+ id: string;
84320
+ createdAt: Date;
84321
+ updatedAt: Date;
84322
+ deletedAt: Date | null;
84323
+ attribute: {
84324
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
84325
+ id: string;
84326
+ position: number;
84327
+ createdAt: Date;
84328
+ updatedAt: Date;
84329
+ deletedAt: Date | null;
84330
+ systemName: string;
84331
+ displayName: string;
84332
+ isDefault: boolean;
84333
+ isArchived: boolean;
84334
+ isRequired: boolean;
84335
+ isUnique: boolean;
84336
+ };
84337
+ textValue: string | null;
84338
+ booleanValue: boolean | null;
84339
+ numberValue: number | null;
84340
+ dateValue: Date | null;
84341
+ uploads: {
84342
+ id: string;
84343
+ status: string | null;
84344
+ createdAt: Date;
84345
+ updatedAt: Date;
84346
+ deletedAt: Date | null;
84347
+ fileName: string;
84348
+ fileKey: string;
84349
+ bucketName: string;
84350
+ fileSize: number;
84351
+ fileUrl: string | null;
84352
+ }[];
84353
+ }[];
84354
+ company: {
84355
+ id: string;
84356
+ createdAt: Date;
84357
+ updatedAt: Date;
84358
+ deletedAt: Date | null;
84359
+ address?: string | null | undefined;
84360
+ name?: string | undefined;
84361
+ phone?: string | null | undefined;
84362
+ industry?: string | null | undefined;
84363
+ } | null;
84364
+ notes: string | null;
84365
+ contactProfile: string | null;
84366
+ socialProfileUrl: string | null;
84367
+ tags: {
84368
+ id: string;
84369
+ name: string;
84370
+ createdAt: Date;
84371
+ updatedAt: Date;
84372
+ deletedAt: Date | null;
84373
+ }[];
84374
+ contactEmails: {
84375
+ id: string;
84376
+ isPrimary: boolean;
84377
+ email: string;
84378
+ createdAt: Date;
84379
+ updatedAt: Date;
84380
+ deletedAt: Date | null;
84381
+ }[];
84382
+ contactPhones: {
84383
+ id: string;
84384
+ isPrimary: boolean;
84385
+ createdAt: Date;
84386
+ updatedAt: Date;
84387
+ deletedAt: Date | null;
84388
+ phone: string;
84389
+ }[];
84390
+ activityLogs?: {
84391
+ id: string;
84392
+ description: string;
84393
+ createdAt: Date;
84394
+ updatedAt: Date;
84395
+ deletedAt: Date | null;
84396
+ entityId: string;
84397
+ entityType: {
84398
+ id: string;
84399
+ description: string | null;
84400
+ createdAt: Date;
84401
+ updatedAt: Date;
84402
+ deletedAt: Date | null;
84403
+ entity: string;
84404
+ };
84405
+ }[] | undefined;
84406
+ };
84407
+ channelId: string;
84408
+ socialPlatformId: string;
84409
+ };
84410
+ assignee: {
84411
+ id: string;
84412
+ address: string | null;
84413
+ name: string;
84414
+ email: string;
84415
+ createdAt: Date;
84416
+ updatedAt: Date;
84417
+ deletedAt: Date | null;
84418
+ emailVerifiedAt: Date | null;
84419
+ password: string;
84420
+ phone: string | null;
84421
+ notificationCount: number | null;
84422
+ roles: {
84423
+ id: string;
84424
+ description: string | null;
84425
+ createdAt: Date;
84426
+ updatedAt: Date;
84427
+ deletedAt: Date | null;
84428
+ systemName: string;
84429
+ displayName: string;
84430
+ permissions: {
84431
+ id: string;
84432
+ description: string | null;
84433
+ createdAt: Date;
84434
+ updatedAt: Date;
84435
+ deletedAt: Date | null;
84436
+ systemName: string;
84437
+ displayName: string;
84438
+ }[];
84439
+ }[];
84440
+ extension: {
84441
+ id: string;
84442
+ createdAt: Date;
84443
+ updatedAt: Date;
84444
+ deletedAt: Date | null;
84445
+ userId: string | null;
84446
+ sipServerUrl: string;
84447
+ sipUserName: string;
84448
+ webphoneLoginUser: string;
84449
+ extensionId: string | null;
84450
+ extensionName: string;
84451
+ telephonySignature: string | null;
84452
+ };
84453
+ };
84454
+ closedAt: Date;
84455
+ lastMessageAt: Date | null;
84456
+ isBotRoom: boolean;
84457
+ cxlog: {
84458
+ id: string;
84459
+ channel: string | null;
84460
+ direction: string | null;
84461
+ createdAt: Date;
84462
+ updatedAt: Date;
84463
+ deletedAt: Date | null;
84464
+ entityId: string;
84465
+ queueId: string | null;
84466
+ contactId: string | null;
84467
+ caseId: number;
84468
+ entityName: string;
84469
+ agentId: string | null;
84470
+ startedDate: Date | null;
84471
+ handledTime: number | null;
84472
+ firstResponseTime: number | null;
84473
+ wrapUpForm: {
84474
+ type: string;
84475
+ id: string;
84476
+ disposition: string | null;
84477
+ createdAt: Date;
84478
+ updatedAt: Date;
84479
+ deletedAt: Date | null;
84480
+ categories: {
84481
+ id: string;
84482
+ value: string;
84483
+ createdAt: Date;
84484
+ updatedAt: Date;
84485
+ deletedAt: Date | null;
84486
+ level: 2 | 1 | 3;
84487
+ parentId: string | null;
84488
+ childCategoryList: {
84489
+ id: string;
84490
+ value: string;
84491
+ level: 2 | 1 | 3;
84492
+ parentId: string | null;
84493
+ childCategoryList: {
84494
+ id: string;
84495
+ value: string;
84496
+ level: 2 | 1 | 3;
84497
+ parentId: string | null;
84498
+ childCategoryList: any[];
84499
+ }[];
84500
+ }[];
84501
+ }[];
84502
+ tags: {
84503
+ id: string;
84504
+ name: string;
84505
+ createdAt: Date;
84506
+ updatedAt: Date;
84507
+ deletedAt: Date | null;
84508
+ }[];
84509
+ callFrom: string | null;
84510
+ callTo: string | null;
84511
+ note: string | null;
84512
+ customFields?: {
84513
+ id: string;
84514
+ createdAt: Date;
84515
+ updatedAt: Date;
84516
+ deletedAt: Date | null;
84517
+ entityId: string;
84518
+ attributeId: string;
84519
+ textValue: string | null;
84520
+ booleanValue: boolean | null;
84521
+ numberValue: number | null;
84522
+ dateValue: Date | null;
84523
+ }[] | null | undefined;
84524
+ } | null;
84525
+ };
84526
+ workflowRule: {
84527
+ type: string;
84528
+ id: string;
84529
+ name: string;
84530
+ createdAt: Date;
84531
+ updatedAt: Date;
84532
+ deletedAt: Date | null;
84533
+ isActive: boolean;
84534
+ };
84535
+ };
84536
+ requestId: string;
84537
+ }>;
84538
+ 409: z.ZodObject<{
84539
+ message: z.ZodString;
84540
+ error: z.ZodAny;
84541
+ }, "strip", z.ZodTypeAny, {
84542
+ message: string;
84543
+ error?: any;
84544
+ }, {
84545
+ message: string;
84546
+ error?: any;
84547
+ }>;
84548
+ };
80819
84549
  path: "chat/room/assignee/update";
80820
84550
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
80821
84551
  'x-tenant': z.ZodString;