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