@kl1/contracts 1.1.86-uat → 1.1.88-uat

Sign up to get free protection for your applications and to get access to all the features.
@@ -3956,6 +3956,2994 @@ export declare const RoomSchema: z.ZodObject<{
3956
3956
  isActive: boolean;
3957
3957
  };
3958
3958
  }>;
3959
+ export declare const QueueRoomSchema: z.ZodObject<{
3960
+ id: z.ZodString;
3961
+ channel: z.ZodObject<{
3962
+ id: z.ZodString;
3963
+ createdAt: z.ZodDate;
3964
+ updatedAt: z.ZodDate;
3965
+ deletedAt: z.ZodNullable<z.ZodDate>;
3966
+ name: z.ZodString;
3967
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
3968
+ metadata: z.ZodObject<{
3969
+ id: z.ZodString;
3970
+ name: z.ZodString;
3971
+ accessToken: z.ZodOptional<z.ZodString>;
3972
+ channelSecret: z.ZodOptional<z.ZodString>;
3973
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
3974
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
3975
+ mobileNumber: z.ZodString;
3976
+ apiKey: z.ZodString;
3977
+ apiSecret: z.ZodString;
3978
+ }, "strip", z.ZodTypeAny, {
3979
+ mobileNumber: string;
3980
+ apiKey: string;
3981
+ apiSecret: string;
3982
+ }, {
3983
+ mobileNumber: string;
3984
+ apiKey: string;
3985
+ apiSecret: string;
3986
+ }>>;
3987
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3988
+ }, "strip", z.ZodTypeAny, {
3989
+ id: string;
3990
+ name: string;
3991
+ accessToken?: string | undefined;
3992
+ channelSecret?: string | undefined;
3993
+ additionalCredentials?: any;
3994
+ vonageCredentials?: {
3995
+ mobileNumber: string;
3996
+ apiKey: string;
3997
+ apiSecret: string;
3998
+ } | undefined;
3999
+ lineRichMenuId?: string | null | undefined;
4000
+ }, {
4001
+ id: string;
4002
+ name: string;
4003
+ accessToken?: string | undefined;
4004
+ channelSecret?: string | undefined;
4005
+ additionalCredentials?: any;
4006
+ vonageCredentials?: {
4007
+ mobileNumber: string;
4008
+ apiKey: string;
4009
+ apiSecret: string;
4010
+ } | undefined;
4011
+ lineRichMenuId?: string | null | undefined;
4012
+ }>;
4013
+ brandName: z.ZodString;
4014
+ platformId: z.ZodString;
4015
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
4016
+ isReloginRequired: z.ZodBoolean;
4017
+ connectedUserName: z.ZodString;
4018
+ connectedUserId: z.ZodString;
4019
+ botpressBot: z.ZodNullable<z.ZodObject<{
4020
+ id: z.ZodString;
4021
+ name: z.ZodString;
4022
+ botId: z.ZodString;
4023
+ integrationId: z.ZodString;
4024
+ accessToken: z.ZodString;
4025
+ }, "strip", z.ZodTypeAny, {
4026
+ id: string;
4027
+ name: string;
4028
+ accessToken: string;
4029
+ botId: string;
4030
+ integrationId: string;
4031
+ }, {
4032
+ id: string;
4033
+ name: string;
4034
+ accessToken: string;
4035
+ botId: string;
4036
+ integrationId: string;
4037
+ }>>;
4038
+ actor: z.ZodObject<{
4039
+ id: z.ZodString;
4040
+ createdAt: z.ZodDate;
4041
+ updatedAt: z.ZodDate;
4042
+ deletedAt: z.ZodNullable<z.ZodDate>;
4043
+ name: z.ZodString;
4044
+ email: z.ZodString; /**
4045
+ * Platform Contact
4046
+ */
4047
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4048
+ password: z.ZodString;
4049
+ address: z.ZodNullable<z.ZodString>;
4050
+ phone: z.ZodNullable<z.ZodString>;
4051
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4052
+ roles: z.ZodArray<z.ZodObject<{
4053
+ id: z.ZodString;
4054
+ createdAt: z.ZodDate;
4055
+ updatedAt: z.ZodDate;
4056
+ deletedAt: z.ZodNullable<z.ZodDate>;
4057
+ systemName: z.ZodString;
4058
+ displayName: z.ZodString;
4059
+ description: z.ZodNullable<z.ZodString>;
4060
+ permissions: z.ZodArray<z.ZodObject<{
4061
+ id: z.ZodString;
4062
+ createdAt: z.ZodDate;
4063
+ updatedAt: z.ZodDate;
4064
+ deletedAt: z.ZodNullable<z.ZodDate>;
4065
+ systemName: z.ZodString;
4066
+ displayName: z.ZodString;
4067
+ description: z.ZodNullable<z.ZodString>;
4068
+ }, "strip", z.ZodTypeAny, {
4069
+ id: string;
4070
+ description: string | null;
4071
+ createdAt: Date;
4072
+ updatedAt: Date;
4073
+ deletedAt: Date | null;
4074
+ systemName: string;
4075
+ displayName: string;
4076
+ }, {
4077
+ id: string;
4078
+ description: string | null;
4079
+ createdAt: Date;
4080
+ updatedAt: Date;
4081
+ deletedAt: Date | null;
4082
+ systemName: string;
4083
+ displayName: string;
4084
+ }>, "many">;
4085
+ }, "strip", z.ZodTypeAny, {
4086
+ id: string;
4087
+ description: string | null;
4088
+ createdAt: Date;
4089
+ updatedAt: Date;
4090
+ deletedAt: Date | null;
4091
+ systemName: string;
4092
+ displayName: string;
4093
+ permissions: {
4094
+ id: string;
4095
+ description: string | null;
4096
+ createdAt: Date;
4097
+ updatedAt: Date;
4098
+ deletedAt: Date | null;
4099
+ systemName: string;
4100
+ displayName: string;
4101
+ }[];
4102
+ }, {
4103
+ id: string;
4104
+ description: string | null;
4105
+ createdAt: Date;
4106
+ updatedAt: Date;
4107
+ deletedAt: Date | null;
4108
+ systemName: string;
4109
+ displayName: string;
4110
+ permissions: {
4111
+ id: string;
4112
+ description: string | null;
4113
+ createdAt: Date;
4114
+ updatedAt: Date;
4115
+ deletedAt: Date | null;
4116
+ systemName: string;
4117
+ displayName: string;
4118
+ }[];
4119
+ }>, "many">;
4120
+ extension: z.ZodObject<{
4121
+ id: z.ZodString;
4122
+ createdAt: z.ZodDate;
4123
+ updatedAt: z.ZodDate;
4124
+ deletedAt: z.ZodNullable<z.ZodDate>;
4125
+ userId: z.ZodNullable<z.ZodString>;
4126
+ sipServerUrl: z.ZodString;
4127
+ sipUserName: z.ZodString;
4128
+ webphoneLoginUser: z.ZodString;
4129
+ extensionId: z.ZodNullable<z.ZodString>;
4130
+ extensionName: z.ZodString;
4131
+ telephonySignature: z.ZodNullable<z.ZodString>;
4132
+ }, "strip", z.ZodTypeAny, {
4133
+ id: string;
4134
+ createdAt: Date;
4135
+ updatedAt: Date;
4136
+ deletedAt: Date | null;
4137
+ userId: string | null;
4138
+ sipServerUrl: string;
4139
+ sipUserName: string;
4140
+ webphoneLoginUser: string;
4141
+ extensionId: string | null;
4142
+ extensionName: string;
4143
+ telephonySignature: string | null;
4144
+ }, {
4145
+ id: string;
4146
+ createdAt: Date;
4147
+ updatedAt: Date;
4148
+ deletedAt: Date | null;
4149
+ userId: string | null;
4150
+ sipServerUrl: string;
4151
+ sipUserName: string;
4152
+ webphoneLoginUser: string;
4153
+ extensionId: string | null;
4154
+ extensionName: string;
4155
+ telephonySignature: string | null;
4156
+ }>;
4157
+ }, "strip", z.ZodTypeAny, {
4158
+ id: string;
4159
+ address: string | null;
4160
+ name: string;
4161
+ email: string;
4162
+ createdAt: Date;
4163
+ updatedAt: Date;
4164
+ deletedAt: Date | null;
4165
+ emailVerifiedAt: Date | null;
4166
+ password: string;
4167
+ phone: string | null;
4168
+ notificationCount: number | null;
4169
+ roles: {
4170
+ id: string;
4171
+ description: string | null;
4172
+ createdAt: Date;
4173
+ updatedAt: Date;
4174
+ deletedAt: Date | null;
4175
+ systemName: string;
4176
+ displayName: string;
4177
+ permissions: {
4178
+ id: string;
4179
+ description: string | null;
4180
+ createdAt: Date;
4181
+ updatedAt: Date;
4182
+ deletedAt: Date | null;
4183
+ systemName: string;
4184
+ displayName: string;
4185
+ }[];
4186
+ }[];
4187
+ extension: {
4188
+ id: string;
4189
+ createdAt: Date;
4190
+ updatedAt: Date;
4191
+ deletedAt: Date | null;
4192
+ userId: string | null;
4193
+ sipServerUrl: string;
4194
+ sipUserName: string;
4195
+ webphoneLoginUser: string;
4196
+ extensionId: string | null;
4197
+ extensionName: string;
4198
+ telephonySignature: string | null;
4199
+ };
4200
+ }, {
4201
+ id: string;
4202
+ address: string | null;
4203
+ name: string;
4204
+ email: string;
4205
+ createdAt: Date;
4206
+ updatedAt: Date;
4207
+ deletedAt: Date | null;
4208
+ emailVerifiedAt: Date | null;
4209
+ password: string;
4210
+ phone: string | null;
4211
+ notificationCount: number | null;
4212
+ roles: {
4213
+ id: string;
4214
+ description: string | null;
4215
+ createdAt: Date;
4216
+ updatedAt: Date;
4217
+ deletedAt: Date | null;
4218
+ systemName: string;
4219
+ displayName: string;
4220
+ permissions: {
4221
+ id: string;
4222
+ description: string | null;
4223
+ createdAt: Date;
4224
+ updatedAt: Date;
4225
+ deletedAt: Date | null;
4226
+ systemName: string;
4227
+ displayName: string;
4228
+ }[];
4229
+ }[];
4230
+ extension: {
4231
+ id: string;
4232
+ createdAt: Date;
4233
+ updatedAt: Date;
4234
+ deletedAt: Date | null;
4235
+ userId: string | null;
4236
+ sipServerUrl: string;
4237
+ sipUserName: string;
4238
+ webphoneLoginUser: string;
4239
+ extensionId: string | null;
4240
+ extensionName: string;
4241
+ telephonySignature: string | null;
4242
+ };
4243
+ }>;
4244
+ }, "strip", z.ZodTypeAny, {
4245
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4246
+ id: string;
4247
+ name: string;
4248
+ metadata: {
4249
+ id: string;
4250
+ name: string;
4251
+ accessToken?: string | undefined;
4252
+ channelSecret?: string | undefined;
4253
+ additionalCredentials?: any;
4254
+ vonageCredentials?: {
4255
+ mobileNumber: string;
4256
+ apiKey: string;
4257
+ apiSecret: string;
4258
+ } | undefined;
4259
+ lineRichMenuId?: string | null | undefined;
4260
+ };
4261
+ status: boolean;
4262
+ createdAt: Date;
4263
+ updatedAt: Date;
4264
+ deletedAt: Date | null;
4265
+ actor: {
4266
+ id: string;
4267
+ address: string | null;
4268
+ name: string;
4269
+ email: string;
4270
+ createdAt: Date;
4271
+ updatedAt: Date;
4272
+ deletedAt: Date | null;
4273
+ emailVerifiedAt: Date | null;
4274
+ password: string;
4275
+ phone: string | null;
4276
+ notificationCount: number | null;
4277
+ roles: {
4278
+ id: string;
4279
+ description: string | null;
4280
+ createdAt: Date;
4281
+ updatedAt: Date;
4282
+ deletedAt: Date | null;
4283
+ systemName: string;
4284
+ displayName: string;
4285
+ permissions: {
4286
+ id: string;
4287
+ description: string | null;
4288
+ createdAt: Date;
4289
+ updatedAt: Date;
4290
+ deletedAt: Date | null;
4291
+ systemName: string;
4292
+ displayName: string;
4293
+ }[];
4294
+ }[];
4295
+ extension: {
4296
+ id: string;
4297
+ createdAt: Date;
4298
+ updatedAt: Date;
4299
+ deletedAt: Date | null;
4300
+ userId: string | null;
4301
+ sipServerUrl: string;
4302
+ sipUserName: string;
4303
+ webphoneLoginUser: string;
4304
+ extensionId: string | null;
4305
+ extensionName: string;
4306
+ telephonySignature: string | null;
4307
+ };
4308
+ };
4309
+ brandName: string;
4310
+ platformId: string;
4311
+ isReloginRequired: boolean;
4312
+ connectedUserName: string;
4313
+ connectedUserId: string;
4314
+ botpressBot: {
4315
+ id: string;
4316
+ name: string;
4317
+ accessToken: string;
4318
+ botId: string;
4319
+ integrationId: string;
4320
+ } | null;
4321
+ }, {
4322
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4323
+ id: string;
4324
+ name: string;
4325
+ metadata: {
4326
+ id: string;
4327
+ name: string;
4328
+ accessToken?: string | undefined;
4329
+ channelSecret?: string | undefined;
4330
+ additionalCredentials?: any;
4331
+ vonageCredentials?: {
4332
+ mobileNumber: string;
4333
+ apiKey: string;
4334
+ apiSecret: string;
4335
+ } | undefined;
4336
+ lineRichMenuId?: string | null | undefined;
4337
+ };
4338
+ status: boolean;
4339
+ createdAt: Date;
4340
+ updatedAt: Date;
4341
+ deletedAt: Date | null;
4342
+ actor: {
4343
+ id: string;
4344
+ address: string | null;
4345
+ name: string;
4346
+ email: string;
4347
+ createdAt: Date;
4348
+ updatedAt: Date;
4349
+ deletedAt: Date | null;
4350
+ emailVerifiedAt: Date | null;
4351
+ password: string;
4352
+ phone: string | null;
4353
+ notificationCount: number | null;
4354
+ roles: {
4355
+ id: string;
4356
+ description: string | null;
4357
+ createdAt: Date;
4358
+ updatedAt: Date;
4359
+ deletedAt: Date | null;
4360
+ systemName: string;
4361
+ displayName: string;
4362
+ permissions: {
4363
+ id: string;
4364
+ description: string | null;
4365
+ createdAt: Date;
4366
+ updatedAt: Date;
4367
+ deletedAt: Date | null;
4368
+ systemName: string;
4369
+ displayName: string;
4370
+ }[];
4371
+ }[];
4372
+ extension: {
4373
+ id: string;
4374
+ createdAt: Date;
4375
+ updatedAt: Date;
4376
+ deletedAt: Date | null;
4377
+ userId: string | null;
4378
+ sipServerUrl: string;
4379
+ sipUserName: string;
4380
+ webphoneLoginUser: string;
4381
+ extensionId: string | null;
4382
+ extensionName: string;
4383
+ telephonySignature: string | null;
4384
+ };
4385
+ };
4386
+ brandName: string;
4387
+ platformId: string;
4388
+ isReloginRequired: boolean;
4389
+ connectedUserName: string;
4390
+ connectedUserId: string;
4391
+ botpressBot: {
4392
+ id: string;
4393
+ name: string;
4394
+ accessToken: string;
4395
+ botId: string;
4396
+ integrationId: string;
4397
+ } | null;
4398
+ }>;
4399
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4400
+ status: z.ZodNumber;
4401
+ createdAt: z.ZodDate;
4402
+ updatedAt: z.ZodDate;
4403
+ deletedAt: z.ZodNullable<z.ZodDate>;
4404
+ actor: z.ZodObject<{
4405
+ id: z.ZodString;
4406
+ createdAt: z.ZodDate;
4407
+ updatedAt: z.ZodDate;
4408
+ deletedAt: z.ZodNullable<z.ZodDate>;
4409
+ name: z.ZodString;
4410
+ email: z.ZodString;
4411
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4412
+ password: z.ZodString;
4413
+ address: z.ZodNullable<z.ZodString>;
4414
+ phone: z.ZodNullable<z.ZodString>;
4415
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4416
+ roles: z.ZodArray<z.ZodObject<{
4417
+ id: z.ZodString;
4418
+ createdAt: z.ZodDate;
4419
+ updatedAt: z.ZodDate;
4420
+ deletedAt: z.ZodNullable<z.ZodDate>;
4421
+ systemName: z.ZodString;
4422
+ displayName: z.ZodString;
4423
+ description: z.ZodNullable<z.ZodString>;
4424
+ permissions: z.ZodArray<z.ZodObject<{
4425
+ id: z.ZodString;
4426
+ createdAt: z.ZodDate;
4427
+ updatedAt: z.ZodDate;
4428
+ deletedAt: z.ZodNullable<z.ZodDate>;
4429
+ systemName: z.ZodString;
4430
+ displayName: z.ZodString;
4431
+ description: z.ZodNullable<z.ZodString>;
4432
+ }, "strip", z.ZodTypeAny, {
4433
+ id: string;
4434
+ description: string | null;
4435
+ createdAt: Date;
4436
+ updatedAt: Date;
4437
+ deletedAt: Date | null;
4438
+ systemName: string;
4439
+ displayName: string;
4440
+ }, {
4441
+ id: string;
4442
+ description: string | null;
4443
+ createdAt: Date;
4444
+ updatedAt: Date;
4445
+ deletedAt: Date | null;
4446
+ systemName: string;
4447
+ displayName: string;
4448
+ }>, "many">;
4449
+ }, "strip", z.ZodTypeAny, {
4450
+ id: string;
4451
+ description: string | null;
4452
+ createdAt: Date;
4453
+ updatedAt: Date;
4454
+ deletedAt: Date | null;
4455
+ systemName: string;
4456
+ displayName: string;
4457
+ permissions: {
4458
+ id: string;
4459
+ description: string | null;
4460
+ createdAt: Date;
4461
+ updatedAt: Date;
4462
+ deletedAt: Date | null;
4463
+ systemName: string;
4464
+ displayName: string;
4465
+ }[];
4466
+ }, {
4467
+ id: string;
4468
+ description: string | null;
4469
+ createdAt: Date;
4470
+ updatedAt: Date;
4471
+ deletedAt: Date | null;
4472
+ systemName: string;
4473
+ displayName: string;
4474
+ permissions: {
4475
+ id: string;
4476
+ description: string | null;
4477
+ createdAt: Date;
4478
+ updatedAt: Date;
4479
+ deletedAt: Date | null;
4480
+ systemName: string;
4481
+ displayName: string;
4482
+ }[];
4483
+ }>, "many">;
4484
+ extension: z.ZodObject<{
4485
+ id: z.ZodString;
4486
+ createdAt: z.ZodDate;
4487
+ updatedAt: z.ZodDate;
4488
+ deletedAt: z.ZodNullable<z.ZodDate>;
4489
+ userId: z.ZodNullable<z.ZodString>;
4490
+ sipServerUrl: z.ZodString;
4491
+ sipUserName: z.ZodString;
4492
+ webphoneLoginUser: z.ZodString;
4493
+ extensionId: z.ZodNullable<z.ZodString>;
4494
+ extensionName: z.ZodString;
4495
+ telephonySignature: z.ZodNullable<z.ZodString>;
4496
+ }, "strip", z.ZodTypeAny, {
4497
+ id: string;
4498
+ createdAt: Date;
4499
+ updatedAt: Date;
4500
+ deletedAt: Date | null;
4501
+ userId: string | null;
4502
+ sipServerUrl: string;
4503
+ sipUserName: string;
4504
+ webphoneLoginUser: string;
4505
+ extensionId: string | null;
4506
+ extensionName: string;
4507
+ telephonySignature: string | null;
4508
+ }, {
4509
+ id: string;
4510
+ createdAt: Date;
4511
+ updatedAt: Date;
4512
+ deletedAt: Date | null;
4513
+ userId: string | null;
4514
+ sipServerUrl: string;
4515
+ sipUserName: string;
4516
+ webphoneLoginUser: string;
4517
+ extensionId: string | null;
4518
+ extensionName: string;
4519
+ telephonySignature: string | null;
4520
+ }>;
4521
+ }, "strip", z.ZodTypeAny, {
4522
+ id: string;
4523
+ address: string | null;
4524
+ name: string;
4525
+ email: string;
4526
+ createdAt: Date;
4527
+ updatedAt: Date;
4528
+ deletedAt: Date | null;
4529
+ emailVerifiedAt: Date | null;
4530
+ password: string;
4531
+ phone: string | null;
4532
+ notificationCount: number | null;
4533
+ roles: {
4534
+ id: string;
4535
+ description: string | null;
4536
+ createdAt: Date;
4537
+ updatedAt: Date;
4538
+ deletedAt: Date | null;
4539
+ systemName: string;
4540
+ displayName: string;
4541
+ permissions: {
4542
+ id: string;
4543
+ description: string | null;
4544
+ createdAt: Date;
4545
+ updatedAt: Date;
4546
+ deletedAt: Date | null;
4547
+ systemName: string;
4548
+ displayName: string;
4549
+ }[];
4550
+ }[];
4551
+ extension: {
4552
+ id: string;
4553
+ createdAt: Date;
4554
+ updatedAt: Date;
4555
+ deletedAt: Date | null;
4556
+ userId: string | null;
4557
+ sipServerUrl: string;
4558
+ sipUserName: string;
4559
+ webphoneLoginUser: string;
4560
+ extensionId: string | null;
4561
+ extensionName: string;
4562
+ telephonySignature: string | null;
4563
+ };
4564
+ }, {
4565
+ id: string;
4566
+ address: string | null;
4567
+ name: string;
4568
+ email: string;
4569
+ createdAt: Date;
4570
+ updatedAt: Date;
4571
+ deletedAt: Date | null;
4572
+ emailVerifiedAt: Date | null;
4573
+ password: string;
4574
+ phone: string | null;
4575
+ notificationCount: number | null;
4576
+ roles: {
4577
+ id: string;
4578
+ description: string | null;
4579
+ createdAt: Date;
4580
+ updatedAt: Date;
4581
+ deletedAt: Date | null;
4582
+ systemName: string;
4583
+ displayName: string;
4584
+ permissions: {
4585
+ id: string;
4586
+ description: string | null;
4587
+ createdAt: Date;
4588
+ updatedAt: Date;
4589
+ deletedAt: Date | null;
4590
+ systemName: string;
4591
+ displayName: string;
4592
+ }[];
4593
+ }[];
4594
+ extension: {
4595
+ id: string;
4596
+ createdAt: Date;
4597
+ updatedAt: Date;
4598
+ deletedAt: Date | null;
4599
+ userId: string | null;
4600
+ sipServerUrl: string;
4601
+ sipUserName: string;
4602
+ webphoneLoginUser: string;
4603
+ extensionId: string | null;
4604
+ extensionName: string;
4605
+ telephonySignature: string | null;
4606
+ };
4607
+ }>;
4608
+ firstResponseTime: z.ZodNumber;
4609
+ lastMessage: z.ZodString;
4610
+ handleTime: z.ZodNumber;
4611
+ unreadCount: z.ZodNumber;
4612
+ firstResponseAt: z.ZodDate;
4613
+ isLatest: z.ZodBoolean;
4614
+ platformContact: z.ZodObject<{
4615
+ id: z.ZodString;
4616
+ createdAt: z.ZodDate;
4617
+ updatedAt: z.ZodDate;
4618
+ deletedAt: z.ZodNullable<z.ZodDate>;
4619
+ channelId: z.ZodString;
4620
+ socialPlatformId: z.ZodString;
4621
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4622
+ metadata: z.ZodObject<{
4623
+ id: z.ZodString;
4624
+ name: z.ZodString;
4625
+ picture: z.ZodOptional<z.ZodString>;
4626
+ additionalCredentials: z.ZodAny;
4627
+ }, "strip", z.ZodTypeAny, {
4628
+ id: string;
4629
+ name: string;
4630
+ picture?: string | undefined;
4631
+ additionalCredentials?: any;
4632
+ }, {
4633
+ id: string;
4634
+ name: string;
4635
+ picture?: string | undefined;
4636
+ additionalCredentials?: any;
4637
+ }>;
4638
+ contact: z.ZodObject<{
4639
+ id: z.ZodString;
4640
+ createdAt: z.ZodDate;
4641
+ updatedAt: z.ZodDate;
4642
+ deletedAt: z.ZodNullable<z.ZodDate>;
4643
+ name: z.ZodString;
4644
+ address: z.ZodNullable<z.ZodString>;
4645
+ channel: z.ZodNullable<z.ZodString>;
4646
+ notes: z.ZodNullable<z.ZodString>;
4647
+ contactProfile: z.ZodNullable<z.ZodString>;
4648
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4649
+ tags: z.ZodArray<z.ZodObject<{
4650
+ id: z.ZodString;
4651
+ createdAt: z.ZodDate;
4652
+ updatedAt: z.ZodDate;
4653
+ deletedAt: z.ZodNullable<z.ZodDate>;
4654
+ name: z.ZodString;
4655
+ }, "strip", z.ZodTypeAny, {
4656
+ id: string;
4657
+ name: string;
4658
+ createdAt: Date;
4659
+ updatedAt: Date;
4660
+ deletedAt: Date | null;
4661
+ }, {
4662
+ id: string;
4663
+ name: string;
4664
+ createdAt: Date;
4665
+ updatedAt: Date;
4666
+ deletedAt: Date | null;
4667
+ }>, "many">;
4668
+ company: z.ZodNullable<z.ZodObject<Omit<{
4669
+ id: z.ZodString;
4670
+ createdAt: z.ZodDate;
4671
+ updatedAt: z.ZodDate;
4672
+ deletedAt: z.ZodNullable<z.ZodDate>;
4673
+ name: z.ZodOptional<z.ZodString>;
4674
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4675
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4676
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4677
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4678
+ id: z.ZodString;
4679
+ createdAt: z.ZodDate;
4680
+ updatedAt: z.ZodDate;
4681
+ deletedAt: z.ZodNullable<z.ZodDate>;
4682
+ textValue: z.ZodNullable<z.ZodString>;
4683
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4684
+ numberValue: z.ZodNullable<z.ZodNumber>;
4685
+ dateValue: z.ZodNullable<z.ZodDate>;
4686
+ attribute: z.ZodObject<Omit<{
4687
+ id: z.ZodString;
4688
+ createdAt: z.ZodDate;
4689
+ updatedAt: z.ZodDate;
4690
+ deletedAt: z.ZodNullable<z.ZodDate>;
4691
+ systemName: z.ZodString;
4692
+ displayName: z.ZodString;
4693
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4694
+ position: z.ZodNumber;
4695
+ isDefault: z.ZodBoolean;
4696
+ isArchived: z.ZodBoolean;
4697
+ isRequired: z.ZodBoolean;
4698
+ isUnique: z.ZodBoolean;
4699
+ options: z.ZodArray<z.ZodObject<{
4700
+ position: z.ZodNumber;
4701
+ value: z.ZodString;
4702
+ label: z.ZodString;
4703
+ isDefault: z.ZodBoolean;
4704
+ id: z.ZodString;
4705
+ }, "strip", z.ZodTypeAny, {
4706
+ id: string;
4707
+ position: number;
4708
+ value: string;
4709
+ label: string;
4710
+ isDefault: boolean;
4711
+ }, {
4712
+ id: string;
4713
+ position: number;
4714
+ value: string;
4715
+ label: string;
4716
+ isDefault: boolean;
4717
+ }>, "many">;
4718
+ group: z.ZodObject<{
4719
+ id: z.ZodString;
4720
+ createdAt: z.ZodDate;
4721
+ updatedAt: z.ZodDate;
4722
+ deletedAt: z.ZodNullable<z.ZodDate>;
4723
+ systemName: z.ZodString;
4724
+ displayName: z.ZodString;
4725
+ }, "strip", z.ZodTypeAny, {
4726
+ id: string;
4727
+ createdAt: Date;
4728
+ updatedAt: Date;
4729
+ deletedAt: Date | null;
4730
+ systemName: string;
4731
+ displayName: string;
4732
+ }, {
4733
+ id: string;
4734
+ createdAt: Date;
4735
+ updatedAt: Date;
4736
+ deletedAt: Date | null;
4737
+ systemName: string;
4738
+ displayName: string;
4739
+ }>;
4740
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4741
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4742
+ id: string;
4743
+ position: number;
4744
+ createdAt: Date;
4745
+ updatedAt: Date;
4746
+ deletedAt: Date | null;
4747
+ systemName: string;
4748
+ displayName: string;
4749
+ isDefault: boolean;
4750
+ isArchived: boolean;
4751
+ isRequired: boolean;
4752
+ isUnique: boolean;
4753
+ }, {
4754
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4755
+ id: string;
4756
+ position: number;
4757
+ createdAt: Date;
4758
+ updatedAt: Date;
4759
+ deletedAt: Date | null;
4760
+ systemName: string;
4761
+ displayName: string;
4762
+ isDefault: boolean;
4763
+ isArchived: boolean;
4764
+ isRequired: boolean;
4765
+ isUnique: boolean;
4766
+ }>;
4767
+ }, "strip", z.ZodTypeAny, {
4768
+ id: string;
4769
+ createdAt: Date;
4770
+ updatedAt: Date;
4771
+ deletedAt: Date | null;
4772
+ attribute: {
4773
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4774
+ id: string;
4775
+ position: number;
4776
+ createdAt: Date;
4777
+ updatedAt: Date;
4778
+ deletedAt: Date | null;
4779
+ systemName: string;
4780
+ displayName: string;
4781
+ isDefault: boolean;
4782
+ isArchived: boolean;
4783
+ isRequired: boolean;
4784
+ isUnique: boolean;
4785
+ };
4786
+ textValue: string | null;
4787
+ booleanValue: boolean | null;
4788
+ numberValue: number | null;
4789
+ dateValue: Date | null;
4790
+ }, {
4791
+ id: string;
4792
+ createdAt: Date;
4793
+ updatedAt: Date;
4794
+ deletedAt: Date | null;
4795
+ attribute: {
4796
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4797
+ id: string;
4798
+ position: number;
4799
+ createdAt: Date;
4800
+ updatedAt: Date;
4801
+ deletedAt: Date | null;
4802
+ systemName: string;
4803
+ displayName: string;
4804
+ isDefault: boolean;
4805
+ isArchived: boolean;
4806
+ isRequired: boolean;
4807
+ isUnique: boolean;
4808
+ };
4809
+ textValue: string | null;
4810
+ booleanValue: boolean | null;
4811
+ numberValue: number | null;
4812
+ dateValue: Date | null;
4813
+ }>, "many">>;
4814
+ }, "customFields">, "strip", z.ZodTypeAny, {
4815
+ id: string;
4816
+ createdAt: Date;
4817
+ updatedAt: Date;
4818
+ deletedAt: Date | null;
4819
+ address?: string | null | undefined;
4820
+ name?: string | undefined;
4821
+ phone?: string | null | undefined;
4822
+ industry?: string | null | undefined;
4823
+ }, {
4824
+ id: string;
4825
+ createdAt: Date;
4826
+ updatedAt: Date;
4827
+ deletedAt: Date | null;
4828
+ address?: string | null | undefined;
4829
+ name?: string | undefined;
4830
+ phone?: string | null | undefined;
4831
+ industry?: string | null | undefined;
4832
+ }>>;
4833
+ customFields: z.ZodArray<z.ZodObject<{
4834
+ id: z.ZodString;
4835
+ createdAt: z.ZodDate;
4836
+ updatedAt: z.ZodDate;
4837
+ deletedAt: z.ZodNullable<z.ZodDate>;
4838
+ textValue: z.ZodNullable<z.ZodString>;
4839
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4840
+ numberValue: z.ZodNullable<z.ZodNumber>;
4841
+ dateValue: z.ZodNullable<z.ZodDate>;
4842
+ attribute: z.ZodObject<Omit<{
4843
+ id: z.ZodString;
4844
+ createdAt: z.ZodDate;
4845
+ updatedAt: z.ZodDate;
4846
+ deletedAt: z.ZodNullable<z.ZodDate>;
4847
+ systemName: z.ZodString;
4848
+ displayName: z.ZodString;
4849
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4850
+ position: z.ZodNumber;
4851
+ isDefault: z.ZodBoolean;
4852
+ isArchived: z.ZodBoolean;
4853
+ isRequired: z.ZodBoolean;
4854
+ isUnique: z.ZodBoolean;
4855
+ options: z.ZodArray<z.ZodObject<{
4856
+ position: z.ZodNumber;
4857
+ value: z.ZodString;
4858
+ label: z.ZodString;
4859
+ isDefault: z.ZodBoolean;
4860
+ id: z.ZodString;
4861
+ }, "strip", z.ZodTypeAny, {
4862
+ id: string;
4863
+ position: number;
4864
+ value: string;
4865
+ label: string;
4866
+ isDefault: boolean;
4867
+ }, {
4868
+ id: string;
4869
+ position: number;
4870
+ value: string;
4871
+ label: string;
4872
+ isDefault: boolean;
4873
+ }>, "many">;
4874
+ group: z.ZodObject<{
4875
+ id: z.ZodString;
4876
+ createdAt: z.ZodDate;
4877
+ updatedAt: z.ZodDate;
4878
+ deletedAt: z.ZodNullable<z.ZodDate>;
4879
+ systemName: z.ZodString;
4880
+ displayName: z.ZodString;
4881
+ }, "strip", z.ZodTypeAny, {
4882
+ id: string;
4883
+ createdAt: Date;
4884
+ updatedAt: Date;
4885
+ deletedAt: Date | null;
4886
+ systemName: string;
4887
+ displayName: string;
4888
+ }, {
4889
+ id: string;
4890
+ createdAt: Date;
4891
+ updatedAt: Date;
4892
+ deletedAt: Date | null;
4893
+ systemName: string;
4894
+ displayName: string;
4895
+ }>;
4896
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4897
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4898
+ id: string;
4899
+ position: number;
4900
+ createdAt: Date;
4901
+ updatedAt: Date;
4902
+ deletedAt: Date | null;
4903
+ systemName: string;
4904
+ displayName: string;
4905
+ isDefault: boolean;
4906
+ isArchived: boolean;
4907
+ isRequired: boolean;
4908
+ isUnique: boolean;
4909
+ }, {
4910
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4911
+ id: string;
4912
+ position: number;
4913
+ createdAt: Date;
4914
+ updatedAt: Date;
4915
+ deletedAt: Date | null;
4916
+ systemName: string;
4917
+ displayName: string;
4918
+ isDefault: boolean;
4919
+ isArchived: boolean;
4920
+ isRequired: boolean;
4921
+ isUnique: boolean;
4922
+ }>;
4923
+ uploads: z.ZodArray<z.ZodObject<{
4924
+ id: z.ZodString;
4925
+ createdAt: z.ZodDate;
4926
+ updatedAt: z.ZodDate;
4927
+ deletedAt: z.ZodNullable<z.ZodDate>;
4928
+ bucketName: z.ZodString;
4929
+ fileName: z.ZodString;
4930
+ fileSize: z.ZodNumber;
4931
+ fileKey: z.ZodString;
4932
+ fileUrl: z.ZodNullable<z.ZodString>;
4933
+ status: z.ZodNullable<z.ZodString>;
4934
+ }, "strip", z.ZodTypeAny, {
4935
+ id: string;
4936
+ status: string | null;
4937
+ createdAt: Date;
4938
+ updatedAt: Date;
4939
+ deletedAt: Date | null;
4940
+ fileName: string;
4941
+ fileKey: string;
4942
+ bucketName: string;
4943
+ fileSize: number;
4944
+ fileUrl: string | null;
4945
+ }, {
4946
+ id: string;
4947
+ status: string | null;
4948
+ createdAt: Date;
4949
+ updatedAt: Date;
4950
+ deletedAt: Date | null;
4951
+ fileName: string;
4952
+ fileKey: string;
4953
+ bucketName: string;
4954
+ fileSize: number;
4955
+ fileUrl: string | null;
4956
+ }>, "many">;
4957
+ }, "strip", z.ZodTypeAny, {
4958
+ id: string;
4959
+ createdAt: Date;
4960
+ updatedAt: Date;
4961
+ deletedAt: Date | null;
4962
+ attribute: {
4963
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4964
+ id: string;
4965
+ position: number;
4966
+ createdAt: Date;
4967
+ updatedAt: Date;
4968
+ deletedAt: Date | null;
4969
+ systemName: string;
4970
+ displayName: string;
4971
+ isDefault: boolean;
4972
+ isArchived: boolean;
4973
+ isRequired: boolean;
4974
+ isUnique: boolean;
4975
+ };
4976
+ textValue: string | null;
4977
+ booleanValue: boolean | null;
4978
+ numberValue: number | null;
4979
+ dateValue: Date | null;
4980
+ uploads: {
4981
+ id: string;
4982
+ status: string | null;
4983
+ createdAt: Date;
4984
+ updatedAt: Date;
4985
+ deletedAt: Date | null;
4986
+ fileName: string;
4987
+ fileKey: string;
4988
+ bucketName: string;
4989
+ fileSize: number;
4990
+ fileUrl: string | null;
4991
+ }[];
4992
+ }, {
4993
+ id: string;
4994
+ createdAt: Date;
4995
+ updatedAt: Date;
4996
+ deletedAt: Date | null;
4997
+ attribute: {
4998
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4999
+ id: string;
5000
+ position: number;
5001
+ createdAt: Date;
5002
+ updatedAt: Date;
5003
+ deletedAt: Date | null;
5004
+ systemName: string;
5005
+ displayName: string;
5006
+ isDefault: boolean;
5007
+ isArchived: boolean;
5008
+ isRequired: boolean;
5009
+ isUnique: boolean;
5010
+ };
5011
+ textValue: string | null;
5012
+ booleanValue: boolean | null;
5013
+ numberValue: number | null;
5014
+ dateValue: Date | null;
5015
+ uploads: {
5016
+ id: string;
5017
+ status: string | null;
5018
+ createdAt: Date;
5019
+ updatedAt: Date;
5020
+ deletedAt: Date | null;
5021
+ fileName: string;
5022
+ fileKey: string;
5023
+ bucketName: string;
5024
+ fileSize: number;
5025
+ fileUrl: string | null;
5026
+ }[];
5027
+ }>, "many">;
5028
+ contactEmails: z.ZodArray<z.ZodObject<{
5029
+ id: z.ZodString;
5030
+ createdAt: z.ZodDate;
5031
+ updatedAt: z.ZodDate;
5032
+ deletedAt: z.ZodNullable<z.ZodDate>;
5033
+ email: z.ZodString;
5034
+ isPrimary: z.ZodBoolean;
5035
+ }, "strip", z.ZodTypeAny, {
5036
+ id: string;
5037
+ isPrimary: boolean;
5038
+ email: string;
5039
+ createdAt: Date;
5040
+ updatedAt: Date;
5041
+ deletedAt: Date | null;
5042
+ }, {
5043
+ id: string;
5044
+ isPrimary: boolean;
5045
+ email: string;
5046
+ createdAt: Date;
5047
+ updatedAt: Date;
5048
+ deletedAt: Date | null;
5049
+ }>, "many">;
5050
+ contactPhones: z.ZodArray<z.ZodObject<{
5051
+ id: z.ZodString;
5052
+ createdAt: z.ZodDate;
5053
+ updatedAt: z.ZodDate;
5054
+ deletedAt: z.ZodNullable<z.ZodDate>;
5055
+ phone: z.ZodString;
5056
+ isPrimary: z.ZodBoolean;
5057
+ }, "strip", z.ZodTypeAny, {
5058
+ id: string;
5059
+ isPrimary: boolean;
5060
+ createdAt: Date;
5061
+ updatedAt: Date;
5062
+ deletedAt: Date | null;
5063
+ phone: string;
5064
+ }, {
5065
+ id: string;
5066
+ isPrimary: boolean;
5067
+ createdAt: Date;
5068
+ updatedAt: Date;
5069
+ deletedAt: Date | null;
5070
+ phone: string;
5071
+ }>, "many">;
5072
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5073
+ id: z.ZodString;
5074
+ createdAt: z.ZodDate;
5075
+ updatedAt: z.ZodDate;
5076
+ deletedAt: z.ZodNullable<z.ZodDate>;
5077
+ entityId: z.ZodString;
5078
+ description: z.ZodString;
5079
+ entityType: z.ZodObject<{
5080
+ id: z.ZodString;
5081
+ createdAt: z.ZodDate;
5082
+ updatedAt: z.ZodDate;
5083
+ deletedAt: z.ZodNullable<z.ZodDate>;
5084
+ entity: z.ZodString;
5085
+ description: z.ZodNullable<z.ZodString>;
5086
+ }, "strip", z.ZodTypeAny, {
5087
+ id: string;
5088
+ description: string | null;
5089
+ createdAt: Date;
5090
+ updatedAt: Date;
5091
+ deletedAt: Date | null;
5092
+ entity: string;
5093
+ }, {
5094
+ id: string;
5095
+ description: string | null;
5096
+ createdAt: Date;
5097
+ updatedAt: Date;
5098
+ deletedAt: Date | null;
5099
+ entity: string;
5100
+ }>;
5101
+ }, "strip", z.ZodTypeAny, {
5102
+ id: string;
5103
+ description: string;
5104
+ createdAt: Date;
5105
+ updatedAt: Date;
5106
+ deletedAt: Date | null;
5107
+ entityId: string;
5108
+ entityType: {
5109
+ id: string;
5110
+ description: string | null;
5111
+ createdAt: Date;
5112
+ updatedAt: Date;
5113
+ deletedAt: Date | null;
5114
+ entity: string;
5115
+ };
5116
+ }, {
5117
+ id: string;
5118
+ description: string;
5119
+ createdAt: Date;
5120
+ updatedAt: Date;
5121
+ deletedAt: Date | null;
5122
+ entityId: string;
5123
+ entityType: {
5124
+ id: string;
5125
+ description: string | null;
5126
+ createdAt: Date;
5127
+ updatedAt: Date;
5128
+ deletedAt: Date | null;
5129
+ entity: string;
5130
+ };
5131
+ }>, "many">>;
5132
+ }, "strip", z.ZodTypeAny, {
5133
+ id: string;
5134
+ channel: string | null;
5135
+ address: string | null;
5136
+ name: string;
5137
+ createdAt: Date;
5138
+ updatedAt: Date;
5139
+ deletedAt: Date | null;
5140
+ customFields: {
5141
+ id: string;
5142
+ createdAt: Date;
5143
+ updatedAt: Date;
5144
+ deletedAt: Date | null;
5145
+ attribute: {
5146
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5147
+ id: string;
5148
+ position: number;
5149
+ createdAt: Date;
5150
+ updatedAt: Date;
5151
+ deletedAt: Date | null;
5152
+ systemName: string;
5153
+ displayName: string;
5154
+ isDefault: boolean;
5155
+ isArchived: boolean;
5156
+ isRequired: boolean;
5157
+ isUnique: boolean;
5158
+ };
5159
+ textValue: string | null;
5160
+ booleanValue: boolean | null;
5161
+ numberValue: number | null;
5162
+ dateValue: Date | null;
5163
+ uploads: {
5164
+ id: string;
5165
+ status: string | null;
5166
+ createdAt: Date;
5167
+ updatedAt: Date;
5168
+ deletedAt: Date | null;
5169
+ fileName: string;
5170
+ fileKey: string;
5171
+ bucketName: string;
5172
+ fileSize: number;
5173
+ fileUrl: string | null;
5174
+ }[];
5175
+ }[];
5176
+ company: {
5177
+ id: string;
5178
+ createdAt: Date;
5179
+ updatedAt: Date;
5180
+ deletedAt: Date | null;
5181
+ address?: string | null | undefined;
5182
+ name?: string | undefined;
5183
+ phone?: string | null | undefined;
5184
+ industry?: string | null | undefined;
5185
+ } | null;
5186
+ notes: string | null;
5187
+ contactProfile: string | null;
5188
+ socialProfileUrl: string | null;
5189
+ tags: {
5190
+ id: string;
5191
+ name: string;
5192
+ createdAt: Date;
5193
+ updatedAt: Date;
5194
+ deletedAt: Date | null;
5195
+ }[];
5196
+ contactEmails: {
5197
+ id: string;
5198
+ isPrimary: boolean;
5199
+ email: string;
5200
+ createdAt: Date;
5201
+ updatedAt: Date;
5202
+ deletedAt: Date | null;
5203
+ }[];
5204
+ contactPhones: {
5205
+ id: string;
5206
+ isPrimary: boolean;
5207
+ createdAt: Date;
5208
+ updatedAt: Date;
5209
+ deletedAt: Date | null;
5210
+ phone: string;
5211
+ }[];
5212
+ activityLogs?: {
5213
+ id: string;
5214
+ description: string;
5215
+ createdAt: Date;
5216
+ updatedAt: Date;
5217
+ deletedAt: Date | null;
5218
+ entityId: string;
5219
+ entityType: {
5220
+ id: string;
5221
+ description: string | null;
5222
+ createdAt: Date;
5223
+ updatedAt: Date;
5224
+ deletedAt: Date | null;
5225
+ entity: string;
5226
+ };
5227
+ }[] | undefined;
5228
+ }, {
5229
+ id: string;
5230
+ channel: string | null;
5231
+ address: string | null;
5232
+ name: string;
5233
+ createdAt: Date;
5234
+ updatedAt: Date;
5235
+ deletedAt: Date | null;
5236
+ customFields: {
5237
+ id: string;
5238
+ createdAt: Date;
5239
+ updatedAt: Date;
5240
+ deletedAt: Date | null;
5241
+ attribute: {
5242
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5243
+ id: string;
5244
+ position: number;
5245
+ createdAt: Date;
5246
+ updatedAt: Date;
5247
+ deletedAt: Date | null;
5248
+ systemName: string;
5249
+ displayName: string;
5250
+ isDefault: boolean;
5251
+ isArchived: boolean;
5252
+ isRequired: boolean;
5253
+ isUnique: boolean;
5254
+ };
5255
+ textValue: string | null;
5256
+ booleanValue: boolean | null;
5257
+ numberValue: number | null;
5258
+ dateValue: Date | null;
5259
+ uploads: {
5260
+ id: string;
5261
+ status: string | null;
5262
+ createdAt: Date;
5263
+ updatedAt: Date;
5264
+ deletedAt: Date | null;
5265
+ fileName: string;
5266
+ fileKey: string;
5267
+ bucketName: string;
5268
+ fileSize: number;
5269
+ fileUrl: string | null;
5270
+ }[];
5271
+ }[];
5272
+ company: {
5273
+ id: string;
5274
+ createdAt: Date;
5275
+ updatedAt: Date;
5276
+ deletedAt: Date | null;
5277
+ address?: string | null | undefined;
5278
+ name?: string | undefined;
5279
+ phone?: string | null | undefined;
5280
+ industry?: string | null | undefined;
5281
+ } | null;
5282
+ notes: string | null;
5283
+ contactProfile: string | null;
5284
+ socialProfileUrl: string | null;
5285
+ tags: {
5286
+ id: string;
5287
+ name: string;
5288
+ createdAt: Date;
5289
+ updatedAt: Date;
5290
+ deletedAt: Date | null;
5291
+ }[];
5292
+ contactEmails: {
5293
+ id: string;
5294
+ isPrimary: boolean;
5295
+ email: string;
5296
+ createdAt: Date;
5297
+ updatedAt: Date;
5298
+ deletedAt: Date | null;
5299
+ }[];
5300
+ contactPhones: {
5301
+ id: string;
5302
+ isPrimary: boolean;
5303
+ createdAt: Date;
5304
+ updatedAt: Date;
5305
+ deletedAt: Date | null;
5306
+ phone: string;
5307
+ }[];
5308
+ activityLogs?: {
5309
+ id: string;
5310
+ description: string;
5311
+ createdAt: Date;
5312
+ updatedAt: Date;
5313
+ deletedAt: Date | null;
5314
+ entityId: string;
5315
+ entityType: {
5316
+ id: string;
5317
+ description: string | null;
5318
+ createdAt: Date;
5319
+ updatedAt: Date;
5320
+ deletedAt: Date | null;
5321
+ entity: string;
5322
+ };
5323
+ }[] | undefined;
5324
+ }>;
5325
+ }, "strip", z.ZodTypeAny, {
5326
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5327
+ id: string;
5328
+ metadata: {
5329
+ id: string;
5330
+ name: string;
5331
+ picture?: string | undefined;
5332
+ additionalCredentials?: any;
5333
+ };
5334
+ createdAt: Date;
5335
+ updatedAt: Date;
5336
+ deletedAt: Date | null;
5337
+ contact: {
5338
+ id: string;
5339
+ channel: string | null;
5340
+ address: string | null;
5341
+ name: string;
5342
+ createdAt: Date;
5343
+ updatedAt: Date;
5344
+ deletedAt: Date | null;
5345
+ customFields: {
5346
+ id: string;
5347
+ createdAt: Date;
5348
+ updatedAt: Date;
5349
+ deletedAt: Date | null;
5350
+ attribute: {
5351
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5352
+ id: string;
5353
+ position: number;
5354
+ createdAt: Date;
5355
+ updatedAt: Date;
5356
+ deletedAt: Date | null;
5357
+ systemName: string;
5358
+ displayName: string;
5359
+ isDefault: boolean;
5360
+ isArchived: boolean;
5361
+ isRequired: boolean;
5362
+ isUnique: boolean;
5363
+ };
5364
+ textValue: string | null;
5365
+ booleanValue: boolean | null;
5366
+ numberValue: number | null;
5367
+ dateValue: Date | null;
5368
+ uploads: {
5369
+ id: string;
5370
+ status: string | null;
5371
+ createdAt: Date;
5372
+ updatedAt: Date;
5373
+ deletedAt: Date | null;
5374
+ fileName: string;
5375
+ fileKey: string;
5376
+ bucketName: string;
5377
+ fileSize: number;
5378
+ fileUrl: string | null;
5379
+ }[];
5380
+ }[];
5381
+ company: {
5382
+ id: string;
5383
+ createdAt: Date;
5384
+ updatedAt: Date;
5385
+ deletedAt: Date | null;
5386
+ address?: string | null | undefined;
5387
+ name?: string | undefined;
5388
+ phone?: string | null | undefined;
5389
+ industry?: string | null | undefined;
5390
+ } | null;
5391
+ notes: string | null;
5392
+ contactProfile: string | null;
5393
+ socialProfileUrl: string | null;
5394
+ tags: {
5395
+ id: string;
5396
+ name: string;
5397
+ createdAt: Date;
5398
+ updatedAt: Date;
5399
+ deletedAt: Date | null;
5400
+ }[];
5401
+ contactEmails: {
5402
+ id: string;
5403
+ isPrimary: boolean;
5404
+ email: string;
5405
+ createdAt: Date;
5406
+ updatedAt: Date;
5407
+ deletedAt: Date | null;
5408
+ }[];
5409
+ contactPhones: {
5410
+ id: string;
5411
+ isPrimary: boolean;
5412
+ createdAt: Date;
5413
+ updatedAt: Date;
5414
+ deletedAt: Date | null;
5415
+ phone: string;
5416
+ }[];
5417
+ activityLogs?: {
5418
+ id: string;
5419
+ description: string;
5420
+ createdAt: Date;
5421
+ updatedAt: Date;
5422
+ deletedAt: Date | null;
5423
+ entityId: string;
5424
+ entityType: {
5425
+ id: string;
5426
+ description: string | null;
5427
+ createdAt: Date;
5428
+ updatedAt: Date;
5429
+ deletedAt: Date | null;
5430
+ entity: string;
5431
+ };
5432
+ }[] | undefined;
5433
+ };
5434
+ channelId: string;
5435
+ socialPlatformId: string;
5436
+ }, {
5437
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5438
+ id: string;
5439
+ metadata: {
5440
+ id: string;
5441
+ name: string;
5442
+ picture?: string | undefined;
5443
+ additionalCredentials?: any;
5444
+ };
5445
+ createdAt: Date;
5446
+ updatedAt: Date;
5447
+ deletedAt: Date | null;
5448
+ contact: {
5449
+ id: string;
5450
+ channel: string | null;
5451
+ address: string | null;
5452
+ name: string;
5453
+ createdAt: Date;
5454
+ updatedAt: Date;
5455
+ deletedAt: Date | null;
5456
+ customFields: {
5457
+ id: string;
5458
+ createdAt: Date;
5459
+ updatedAt: Date;
5460
+ deletedAt: Date | null;
5461
+ attribute: {
5462
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5463
+ id: string;
5464
+ position: number;
5465
+ createdAt: Date;
5466
+ updatedAt: Date;
5467
+ deletedAt: Date | null;
5468
+ systemName: string;
5469
+ displayName: string;
5470
+ isDefault: boolean;
5471
+ isArchived: boolean;
5472
+ isRequired: boolean;
5473
+ isUnique: boolean;
5474
+ };
5475
+ textValue: string | null;
5476
+ booleanValue: boolean | null;
5477
+ numberValue: number | null;
5478
+ dateValue: Date | null;
5479
+ uploads: {
5480
+ id: string;
5481
+ status: string | null;
5482
+ createdAt: Date;
5483
+ updatedAt: Date;
5484
+ deletedAt: Date | null;
5485
+ fileName: string;
5486
+ fileKey: string;
5487
+ bucketName: string;
5488
+ fileSize: number;
5489
+ fileUrl: string | null;
5490
+ }[];
5491
+ }[];
5492
+ company: {
5493
+ id: string;
5494
+ createdAt: Date;
5495
+ updatedAt: Date;
5496
+ deletedAt: Date | null;
5497
+ address?: string | null | undefined;
5498
+ name?: string | undefined;
5499
+ phone?: string | null | undefined;
5500
+ industry?: string | null | undefined;
5501
+ } | null;
5502
+ notes: string | null;
5503
+ contactProfile: string | null;
5504
+ socialProfileUrl: string | null;
5505
+ tags: {
5506
+ id: string;
5507
+ name: string;
5508
+ createdAt: Date;
5509
+ updatedAt: Date;
5510
+ deletedAt: Date | null;
5511
+ }[];
5512
+ contactEmails: {
5513
+ id: string;
5514
+ isPrimary: boolean;
5515
+ email: string;
5516
+ createdAt: Date;
5517
+ updatedAt: Date;
5518
+ deletedAt: Date | null;
5519
+ }[];
5520
+ contactPhones: {
5521
+ id: string;
5522
+ isPrimary: boolean;
5523
+ createdAt: Date;
5524
+ updatedAt: Date;
5525
+ deletedAt: Date | null;
5526
+ phone: string;
5527
+ }[];
5528
+ activityLogs?: {
5529
+ id: string;
5530
+ description: string;
5531
+ createdAt: Date;
5532
+ updatedAt: Date;
5533
+ deletedAt: Date | null;
5534
+ entityId: string;
5535
+ entityType: {
5536
+ id: string;
5537
+ description: string | null;
5538
+ createdAt: Date;
5539
+ updatedAt: Date;
5540
+ deletedAt: Date | null;
5541
+ entity: string;
5542
+ };
5543
+ }[] | undefined;
5544
+ };
5545
+ channelId: string;
5546
+ socialPlatformId: string;
5547
+ }>;
5548
+ assignee: z.ZodObject<{
5549
+ id: z.ZodString;
5550
+ createdAt: z.ZodDate;
5551
+ updatedAt: z.ZodDate;
5552
+ deletedAt: z.ZodNullable<z.ZodDate>;
5553
+ name: z.ZodString;
5554
+ email: z.ZodString;
5555
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
5556
+ password: z.ZodString;
5557
+ address: z.ZodNullable<z.ZodString>;
5558
+ phone: z.ZodNullable<z.ZodString>;
5559
+ notificationCount: z.ZodNullable<z.ZodNumber>;
5560
+ roles: z.ZodArray<z.ZodObject<{
5561
+ id: z.ZodString;
5562
+ createdAt: z.ZodDate;
5563
+ updatedAt: z.ZodDate;
5564
+ deletedAt: z.ZodNullable<z.ZodDate>;
5565
+ systemName: z.ZodString;
5566
+ displayName: z.ZodString;
5567
+ description: z.ZodNullable<z.ZodString>;
5568
+ permissions: z.ZodArray<z.ZodObject<{
5569
+ id: z.ZodString;
5570
+ createdAt: z.ZodDate;
5571
+ updatedAt: z.ZodDate;
5572
+ deletedAt: z.ZodNullable<z.ZodDate>;
5573
+ systemName: z.ZodString;
5574
+ displayName: z.ZodString;
5575
+ description: z.ZodNullable<z.ZodString>;
5576
+ }, "strip", z.ZodTypeAny, {
5577
+ id: string;
5578
+ description: string | null;
5579
+ createdAt: Date;
5580
+ updatedAt: Date;
5581
+ deletedAt: Date | null;
5582
+ systemName: string;
5583
+ displayName: string;
5584
+ }, {
5585
+ id: string;
5586
+ description: string | null;
5587
+ createdAt: Date;
5588
+ updatedAt: Date;
5589
+ deletedAt: Date | null;
5590
+ systemName: string;
5591
+ displayName: string;
5592
+ }>, "many">;
5593
+ }, "strip", z.ZodTypeAny, {
5594
+ id: string;
5595
+ description: string | null;
5596
+ createdAt: Date;
5597
+ updatedAt: Date;
5598
+ deletedAt: Date | null;
5599
+ systemName: string;
5600
+ displayName: string;
5601
+ permissions: {
5602
+ id: string;
5603
+ description: string | null;
5604
+ createdAt: Date;
5605
+ updatedAt: Date;
5606
+ deletedAt: Date | null;
5607
+ systemName: string;
5608
+ displayName: string;
5609
+ }[];
5610
+ }, {
5611
+ id: string;
5612
+ description: string | null;
5613
+ createdAt: Date;
5614
+ updatedAt: Date;
5615
+ deletedAt: Date | null;
5616
+ systemName: string;
5617
+ displayName: string;
5618
+ permissions: {
5619
+ id: string;
5620
+ description: string | null;
5621
+ createdAt: Date;
5622
+ updatedAt: Date;
5623
+ deletedAt: Date | null;
5624
+ systemName: string;
5625
+ displayName: string;
5626
+ }[];
5627
+ }>, "many">;
5628
+ extension: z.ZodObject<{
5629
+ id: z.ZodString;
5630
+ createdAt: z.ZodDate;
5631
+ updatedAt: z.ZodDate;
5632
+ deletedAt: z.ZodNullable<z.ZodDate>;
5633
+ userId: z.ZodNullable<z.ZodString>;
5634
+ sipServerUrl: z.ZodString;
5635
+ sipUserName: z.ZodString;
5636
+ webphoneLoginUser: z.ZodString;
5637
+ extensionId: z.ZodNullable<z.ZodString>;
5638
+ extensionName: z.ZodString;
5639
+ telephonySignature: z.ZodNullable<z.ZodString>;
5640
+ }, "strip", z.ZodTypeAny, {
5641
+ id: string;
5642
+ createdAt: Date;
5643
+ updatedAt: Date;
5644
+ deletedAt: Date | null;
5645
+ userId: string | null;
5646
+ sipServerUrl: string;
5647
+ sipUserName: string;
5648
+ webphoneLoginUser: string;
5649
+ extensionId: string | null;
5650
+ extensionName: string;
5651
+ telephonySignature: string | null;
5652
+ }, {
5653
+ id: string;
5654
+ createdAt: Date;
5655
+ updatedAt: Date;
5656
+ deletedAt: Date | null;
5657
+ userId: string | null;
5658
+ sipServerUrl: string;
5659
+ sipUserName: string;
5660
+ webphoneLoginUser: string;
5661
+ extensionId: string | null;
5662
+ extensionName: string;
5663
+ telephonySignature: string | null;
5664
+ }>;
5665
+ }, "strip", z.ZodTypeAny, {
5666
+ id: string;
5667
+ address: string | null;
5668
+ name: string;
5669
+ email: string;
5670
+ createdAt: Date;
5671
+ updatedAt: Date;
5672
+ deletedAt: Date | null;
5673
+ emailVerifiedAt: Date | null;
5674
+ password: string;
5675
+ phone: string | null;
5676
+ notificationCount: number | null;
5677
+ roles: {
5678
+ id: string;
5679
+ description: string | null;
5680
+ createdAt: Date;
5681
+ updatedAt: Date;
5682
+ deletedAt: Date | null;
5683
+ systemName: string;
5684
+ displayName: string;
5685
+ permissions: {
5686
+ id: string;
5687
+ description: string | null;
5688
+ createdAt: Date;
5689
+ updatedAt: Date;
5690
+ deletedAt: Date | null;
5691
+ systemName: string;
5692
+ displayName: string;
5693
+ }[];
5694
+ }[];
5695
+ extension: {
5696
+ id: string;
5697
+ createdAt: Date;
5698
+ updatedAt: Date;
5699
+ deletedAt: Date | null;
5700
+ userId: string | null;
5701
+ sipServerUrl: string;
5702
+ sipUserName: string;
5703
+ webphoneLoginUser: string;
5704
+ extensionId: string | null;
5705
+ extensionName: string;
5706
+ telephonySignature: string | null;
5707
+ };
5708
+ }, {
5709
+ id: string;
5710
+ address: string | null;
5711
+ name: string;
5712
+ email: string;
5713
+ createdAt: Date;
5714
+ updatedAt: Date;
5715
+ deletedAt: Date | null;
5716
+ emailVerifiedAt: Date | null;
5717
+ password: string;
5718
+ phone: string | null;
5719
+ notificationCount: number | null;
5720
+ roles: {
5721
+ id: string;
5722
+ description: string | null;
5723
+ createdAt: Date;
5724
+ updatedAt: Date;
5725
+ deletedAt: Date | null;
5726
+ systemName: string;
5727
+ displayName: string;
5728
+ permissions: {
5729
+ id: string;
5730
+ description: string | null;
5731
+ createdAt: Date;
5732
+ updatedAt: Date;
5733
+ deletedAt: Date | null;
5734
+ systemName: string;
5735
+ displayName: string;
5736
+ }[];
5737
+ }[];
5738
+ extension: {
5739
+ id: string;
5740
+ createdAt: Date;
5741
+ updatedAt: Date;
5742
+ deletedAt: Date | null;
5743
+ userId: string | null;
5744
+ sipServerUrl: string;
5745
+ sipUserName: string;
5746
+ webphoneLoginUser: string;
5747
+ extensionId: string | null;
5748
+ extensionName: string;
5749
+ telephonySignature: string | null;
5750
+ };
5751
+ }>;
5752
+ closedAt: z.ZodDate;
5753
+ lastMessageAt: z.ZodNullable<z.ZodDate>;
5754
+ isBotRoom: z.ZodBoolean;
5755
+ cxlog: z.ZodObject<{
5756
+ id: z.ZodString;
5757
+ createdAt: z.ZodDate;
5758
+ updatedAt: z.ZodDate;
5759
+ deletedAt: z.ZodNullable<z.ZodDate>;
5760
+ caseId: z.ZodNumber;
5761
+ entityId: z.ZodString;
5762
+ entityName: z.ZodString;
5763
+ contactId: z.ZodNullable<z.ZodString>;
5764
+ channel: z.ZodNullable<z.ZodString>;
5765
+ queueId: z.ZodNullable<z.ZodString>;
5766
+ agentId: z.ZodNullable<z.ZodString>;
5767
+ direction: z.ZodNullable<z.ZodString>;
5768
+ startedDate: z.ZodNullable<z.ZodDate>;
5769
+ handledTime: z.ZodNullable<z.ZodNumber>;
5770
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
5771
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
5772
+ id: z.ZodString;
5773
+ createdAt: z.ZodDate;
5774
+ updatedAt: z.ZodDate;
5775
+ deletedAt: z.ZodNullable<z.ZodDate>;
5776
+ note: z.ZodNullable<z.ZodString>;
5777
+ disposition: z.ZodNullable<z.ZodString>;
5778
+ type: z.ZodString;
5779
+ tags: z.ZodArray<z.ZodObject<{
5780
+ id: z.ZodString;
5781
+ createdAt: z.ZodDate;
5782
+ updatedAt: z.ZodDate;
5783
+ deletedAt: z.ZodNullable<z.ZodDate>;
5784
+ name: z.ZodString;
5785
+ }, "strip", z.ZodTypeAny, {
5786
+ id: string;
5787
+ name: string;
5788
+ createdAt: Date;
5789
+ updatedAt: Date;
5790
+ deletedAt: Date | null;
5791
+ }, {
5792
+ id: string;
5793
+ name: string;
5794
+ createdAt: Date;
5795
+ updatedAt: Date;
5796
+ deletedAt: Date | null;
5797
+ }>, "many">;
5798
+ categories: z.ZodArray<z.ZodObject<{
5799
+ id: z.ZodString;
5800
+ createdAt: z.ZodDate;
5801
+ updatedAt: z.ZodDate;
5802
+ deletedAt: z.ZodNullable<z.ZodDate>;
5803
+ value: z.ZodString;
5804
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5805
+ parentId: z.ZodNullable<z.ZodString>;
5806
+ childCategoryList: z.ZodArray<z.ZodObject<{
5807
+ id: z.ZodString;
5808
+ value: z.ZodString;
5809
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5810
+ parentId: z.ZodNullable<z.ZodString>;
5811
+ childCategoryList: z.ZodArray<z.ZodObject<{
5812
+ id: z.ZodString;
5813
+ value: z.ZodString;
5814
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5815
+ parentId: z.ZodNullable<z.ZodString>;
5816
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
5817
+ }, "strip", z.ZodTypeAny, {
5818
+ id: string;
5819
+ value: string;
5820
+ level: 2 | 1 | 3;
5821
+ parentId: string | null;
5822
+ childCategoryList: any[];
5823
+ }, {
5824
+ id: string;
5825
+ value: string;
5826
+ level: 2 | 1 | 3;
5827
+ parentId: string | null;
5828
+ childCategoryList: any[];
5829
+ }>, "many">;
5830
+ }, "strip", z.ZodTypeAny, {
5831
+ id: string;
5832
+ value: string;
5833
+ level: 2 | 1 | 3;
5834
+ parentId: string | null;
5835
+ childCategoryList: {
5836
+ id: string;
5837
+ value: string;
5838
+ level: 2 | 1 | 3;
5839
+ parentId: string | null;
5840
+ childCategoryList: any[];
5841
+ }[];
5842
+ }, {
5843
+ id: string;
5844
+ value: string;
5845
+ level: 2 | 1 | 3;
5846
+ parentId: string | null;
5847
+ childCategoryList: {
5848
+ id: string;
5849
+ value: string;
5850
+ level: 2 | 1 | 3;
5851
+ parentId: string | null;
5852
+ childCategoryList: any[];
5853
+ }[];
5854
+ }>, "many">;
5855
+ }, "strip", z.ZodTypeAny, {
5856
+ id: string;
5857
+ value: string;
5858
+ createdAt: Date;
5859
+ updatedAt: Date;
5860
+ deletedAt: Date | null;
5861
+ level: 2 | 1 | 3;
5862
+ parentId: string | null;
5863
+ childCategoryList: {
5864
+ id: string;
5865
+ value: string;
5866
+ level: 2 | 1 | 3;
5867
+ parentId: string | null;
5868
+ childCategoryList: {
5869
+ id: string;
5870
+ value: string;
5871
+ level: 2 | 1 | 3;
5872
+ parentId: string | null;
5873
+ childCategoryList: any[];
5874
+ }[];
5875
+ }[];
5876
+ }, {
5877
+ id: string;
5878
+ value: string;
5879
+ createdAt: Date;
5880
+ updatedAt: Date;
5881
+ deletedAt: Date | null;
5882
+ level: 2 | 1 | 3;
5883
+ parentId: string | null;
5884
+ childCategoryList: {
5885
+ id: string;
5886
+ value: string;
5887
+ level: 2 | 1 | 3;
5888
+ parentId: string | null;
5889
+ childCategoryList: {
5890
+ id: string;
5891
+ value: string;
5892
+ level: 2 | 1 | 3;
5893
+ parentId: string | null;
5894
+ childCategoryList: any[];
5895
+ }[];
5896
+ }[];
5897
+ }>, "many">;
5898
+ callFrom: z.ZodNullable<z.ZodString>;
5899
+ callTo: z.ZodNullable<z.ZodString>;
5900
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
5901
+ id: z.ZodString;
5902
+ createdAt: z.ZodDate;
5903
+ updatedAt: z.ZodDate;
5904
+ deletedAt: z.ZodNullable<z.ZodDate>;
5905
+ textValue: z.ZodNullable<z.ZodString>;
5906
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5907
+ numberValue: z.ZodNullable<z.ZodNumber>;
5908
+ dateValue: z.ZodNullable<z.ZodDate>;
5909
+ entityId: z.ZodString;
5910
+ attributeId: z.ZodString;
5911
+ }, "strip", z.ZodTypeAny, {
5912
+ id: string;
5913
+ createdAt: Date;
5914
+ updatedAt: Date;
5915
+ deletedAt: Date | null;
5916
+ entityId: string;
5917
+ attributeId: string;
5918
+ textValue: string | null;
5919
+ booleanValue: boolean | null;
5920
+ numberValue: number | null;
5921
+ dateValue: Date | null;
5922
+ }, {
5923
+ id: string;
5924
+ createdAt: Date;
5925
+ updatedAt: Date;
5926
+ deletedAt: Date | null;
5927
+ entityId: string;
5928
+ attributeId: string;
5929
+ textValue: string | null;
5930
+ booleanValue: boolean | null;
5931
+ numberValue: number | null;
5932
+ dateValue: Date | null;
5933
+ }>, "many">>>;
5934
+ }, "strip", z.ZodTypeAny, {
5935
+ type: string;
5936
+ id: string;
5937
+ disposition: string | null;
5938
+ createdAt: Date;
5939
+ updatedAt: Date;
5940
+ deletedAt: Date | null;
5941
+ categories: {
5942
+ id: string;
5943
+ value: string;
5944
+ createdAt: Date;
5945
+ updatedAt: Date;
5946
+ deletedAt: Date | null;
5947
+ level: 2 | 1 | 3;
5948
+ parentId: string | null;
5949
+ childCategoryList: {
5950
+ id: string;
5951
+ value: string;
5952
+ level: 2 | 1 | 3;
5953
+ parentId: string | null;
5954
+ childCategoryList: {
5955
+ id: string;
5956
+ value: string;
5957
+ level: 2 | 1 | 3;
5958
+ parentId: string | null;
5959
+ childCategoryList: any[];
5960
+ }[];
5961
+ }[];
5962
+ }[];
5963
+ tags: {
5964
+ id: string;
5965
+ name: string;
5966
+ createdAt: Date;
5967
+ updatedAt: Date;
5968
+ deletedAt: Date | null;
5969
+ }[];
5970
+ callFrom: string | null;
5971
+ callTo: string | null;
5972
+ note: string | null;
5973
+ customFields?: {
5974
+ id: string;
5975
+ createdAt: Date;
5976
+ updatedAt: Date;
5977
+ deletedAt: Date | null;
5978
+ entityId: string;
5979
+ attributeId: string;
5980
+ textValue: string | null;
5981
+ booleanValue: boolean | null;
5982
+ numberValue: number | null;
5983
+ dateValue: Date | null;
5984
+ }[] | null | undefined;
5985
+ }, {
5986
+ type: string;
5987
+ id: string;
5988
+ disposition: string | null;
5989
+ createdAt: Date;
5990
+ updatedAt: Date;
5991
+ deletedAt: Date | null;
5992
+ categories: {
5993
+ id: string;
5994
+ value: string;
5995
+ createdAt: Date;
5996
+ updatedAt: Date;
5997
+ deletedAt: Date | null;
5998
+ level: 2 | 1 | 3;
5999
+ parentId: string | null;
6000
+ childCategoryList: {
6001
+ id: string;
6002
+ value: string;
6003
+ level: 2 | 1 | 3;
6004
+ parentId: string | null;
6005
+ childCategoryList: {
6006
+ id: string;
6007
+ value: string;
6008
+ level: 2 | 1 | 3;
6009
+ parentId: string | null;
6010
+ childCategoryList: any[];
6011
+ }[];
6012
+ }[];
6013
+ }[];
6014
+ tags: {
6015
+ id: string;
6016
+ name: string;
6017
+ createdAt: Date;
6018
+ updatedAt: Date;
6019
+ deletedAt: Date | null;
6020
+ }[];
6021
+ callFrom: string | null;
6022
+ callTo: string | null;
6023
+ note: string | null;
6024
+ customFields?: {
6025
+ id: string;
6026
+ createdAt: Date;
6027
+ updatedAt: Date;
6028
+ deletedAt: Date | null;
6029
+ entityId: string;
6030
+ attributeId: string;
6031
+ textValue: string | null;
6032
+ booleanValue: boolean | null;
6033
+ numberValue: number | null;
6034
+ dateValue: Date | null;
6035
+ }[] | null | undefined;
6036
+ }>>;
6037
+ }, "strip", z.ZodTypeAny, {
6038
+ id: string;
6039
+ channel: string | null;
6040
+ direction: string | null;
6041
+ createdAt: Date;
6042
+ updatedAt: Date;
6043
+ deletedAt: Date | null;
6044
+ entityId: string;
6045
+ queueId: string | null;
6046
+ contactId: string | null;
6047
+ caseId: number;
6048
+ entityName: string;
6049
+ agentId: string | null;
6050
+ startedDate: Date | null;
6051
+ handledTime: number | null;
6052
+ firstResponseTime: number | null;
6053
+ wrapUpForm: {
6054
+ type: string;
6055
+ id: string;
6056
+ disposition: string | null;
6057
+ createdAt: Date;
6058
+ updatedAt: Date;
6059
+ deletedAt: Date | null;
6060
+ categories: {
6061
+ id: string;
6062
+ value: string;
6063
+ createdAt: Date;
6064
+ updatedAt: Date;
6065
+ deletedAt: Date | null;
6066
+ level: 2 | 1 | 3;
6067
+ parentId: string | null;
6068
+ childCategoryList: {
6069
+ id: string;
6070
+ value: string;
6071
+ level: 2 | 1 | 3;
6072
+ parentId: string | null;
6073
+ childCategoryList: {
6074
+ id: string;
6075
+ value: string;
6076
+ level: 2 | 1 | 3;
6077
+ parentId: string | null;
6078
+ childCategoryList: any[];
6079
+ }[];
6080
+ }[];
6081
+ }[];
6082
+ tags: {
6083
+ id: string;
6084
+ name: string;
6085
+ createdAt: Date;
6086
+ updatedAt: Date;
6087
+ deletedAt: Date | null;
6088
+ }[];
6089
+ callFrom: string | null;
6090
+ callTo: string | null;
6091
+ note: string | null;
6092
+ customFields?: {
6093
+ id: string;
6094
+ createdAt: Date;
6095
+ updatedAt: Date;
6096
+ deletedAt: Date | null;
6097
+ entityId: string;
6098
+ attributeId: string;
6099
+ textValue: string | null;
6100
+ booleanValue: boolean | null;
6101
+ numberValue: number | null;
6102
+ dateValue: Date | null;
6103
+ }[] | null | undefined;
6104
+ } | null;
6105
+ }, {
6106
+ id: string;
6107
+ channel: string | null;
6108
+ direction: string | null;
6109
+ createdAt: Date;
6110
+ updatedAt: Date;
6111
+ deletedAt: Date | null;
6112
+ entityId: string;
6113
+ queueId: string | null;
6114
+ contactId: string | null;
6115
+ caseId: number;
6116
+ entityName: string;
6117
+ agentId: string | null;
6118
+ startedDate: Date | null;
6119
+ handledTime: number | null;
6120
+ firstResponseTime: number | null;
6121
+ wrapUpForm: {
6122
+ type: string;
6123
+ id: string;
6124
+ disposition: string | null;
6125
+ createdAt: Date;
6126
+ updatedAt: Date;
6127
+ deletedAt: Date | null;
6128
+ categories: {
6129
+ id: string;
6130
+ value: string;
6131
+ createdAt: Date;
6132
+ updatedAt: Date;
6133
+ deletedAt: Date | null;
6134
+ level: 2 | 1 | 3;
6135
+ parentId: string | null;
6136
+ childCategoryList: {
6137
+ id: string;
6138
+ value: string;
6139
+ level: 2 | 1 | 3;
6140
+ parentId: string | null;
6141
+ childCategoryList: {
6142
+ id: string;
6143
+ value: string;
6144
+ level: 2 | 1 | 3;
6145
+ parentId: string | null;
6146
+ childCategoryList: any[];
6147
+ }[];
6148
+ }[];
6149
+ }[];
6150
+ tags: {
6151
+ id: string;
6152
+ name: string;
6153
+ createdAt: Date;
6154
+ updatedAt: Date;
6155
+ deletedAt: Date | null;
6156
+ }[];
6157
+ callFrom: string | null;
6158
+ callTo: string | null;
6159
+ note: string | null;
6160
+ customFields?: {
6161
+ id: string;
6162
+ createdAt: Date;
6163
+ updatedAt: Date;
6164
+ deletedAt: Date | null;
6165
+ entityId: string;
6166
+ attributeId: string;
6167
+ textValue: string | null;
6168
+ booleanValue: boolean | null;
6169
+ numberValue: number | null;
6170
+ dateValue: Date | null;
6171
+ }[] | null | undefined;
6172
+ } | null;
6173
+ }>;
6174
+ workflowRule: z.ZodObject<{
6175
+ id: z.ZodString;
6176
+ createdAt: z.ZodDate;
6177
+ updatedAt: z.ZodDate;
6178
+ deletedAt: z.ZodNullable<z.ZodDate>;
6179
+ name: z.ZodString;
6180
+ isActive: z.ZodBoolean;
6181
+ type: z.ZodString;
6182
+ }, "strip", z.ZodTypeAny, {
6183
+ type: string;
6184
+ id: string;
6185
+ name: string;
6186
+ createdAt: Date;
6187
+ updatedAt: Date;
6188
+ deletedAt: Date | null;
6189
+ isActive: boolean;
6190
+ }, {
6191
+ type: string;
6192
+ id: string;
6193
+ name: string;
6194
+ createdAt: Date;
6195
+ updatedAt: Date;
6196
+ deletedAt: Date | null;
6197
+ isActive: boolean;
6198
+ }>;
6199
+ automationQueueId: z.ZodNullable<z.ZodString>;
6200
+ }, "strip", z.ZodTypeAny, {
6201
+ id: string;
6202
+ channel: {
6203
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6204
+ id: string;
6205
+ name: string;
6206
+ metadata: {
6207
+ id: string;
6208
+ name: string;
6209
+ accessToken?: string | undefined;
6210
+ channelSecret?: string | undefined;
6211
+ additionalCredentials?: any;
6212
+ vonageCredentials?: {
6213
+ mobileNumber: string;
6214
+ apiKey: string;
6215
+ apiSecret: string;
6216
+ } | undefined;
6217
+ lineRichMenuId?: string | null | undefined;
6218
+ };
6219
+ status: boolean;
6220
+ createdAt: Date;
6221
+ updatedAt: Date;
6222
+ deletedAt: Date | null;
6223
+ actor: {
6224
+ id: string;
6225
+ address: string | null;
6226
+ name: string;
6227
+ email: string;
6228
+ createdAt: Date;
6229
+ updatedAt: Date;
6230
+ deletedAt: Date | null;
6231
+ emailVerifiedAt: Date | null;
6232
+ password: string;
6233
+ phone: string | null;
6234
+ notificationCount: number | null;
6235
+ roles: {
6236
+ id: string;
6237
+ description: string | null;
6238
+ createdAt: Date;
6239
+ updatedAt: Date;
6240
+ deletedAt: Date | null;
6241
+ systemName: string;
6242
+ displayName: string;
6243
+ permissions: {
6244
+ id: string;
6245
+ description: string | null;
6246
+ createdAt: Date;
6247
+ updatedAt: Date;
6248
+ deletedAt: Date | null;
6249
+ systemName: string;
6250
+ displayName: string;
6251
+ }[];
6252
+ }[];
6253
+ extension: {
6254
+ id: string;
6255
+ createdAt: Date;
6256
+ updatedAt: Date;
6257
+ deletedAt: Date | null;
6258
+ userId: string | null;
6259
+ sipServerUrl: string;
6260
+ sipUserName: string;
6261
+ webphoneLoginUser: string;
6262
+ extensionId: string | null;
6263
+ extensionName: string;
6264
+ telephonySignature: string | null;
6265
+ };
6266
+ };
6267
+ brandName: string;
6268
+ platformId: string;
6269
+ isReloginRequired: boolean;
6270
+ connectedUserName: string;
6271
+ connectedUserId: string;
6272
+ botpressBot: {
6273
+ id: string;
6274
+ name: string;
6275
+ accessToken: string;
6276
+ botId: string;
6277
+ integrationId: string;
6278
+ } | null;
6279
+ };
6280
+ direction: "incoming" | "outgoing" | "system";
6281
+ status: number;
6282
+ createdAt: Date;
6283
+ updatedAt: Date;
6284
+ deletedAt: Date | null;
6285
+ actor: {
6286
+ id: string;
6287
+ address: string | null;
6288
+ name: string;
6289
+ email: string;
6290
+ createdAt: Date;
6291
+ updatedAt: Date;
6292
+ deletedAt: Date | null;
6293
+ emailVerifiedAt: Date | null;
6294
+ password: string;
6295
+ phone: string | null;
6296
+ notificationCount: number | null;
6297
+ roles: {
6298
+ id: string;
6299
+ description: string | null;
6300
+ createdAt: Date;
6301
+ updatedAt: Date;
6302
+ deletedAt: Date | null;
6303
+ systemName: string;
6304
+ displayName: string;
6305
+ permissions: {
6306
+ id: string;
6307
+ description: string | null;
6308
+ createdAt: Date;
6309
+ updatedAt: Date;
6310
+ deletedAt: Date | null;
6311
+ systemName: string;
6312
+ displayName: string;
6313
+ }[];
6314
+ }[];
6315
+ extension: {
6316
+ id: string;
6317
+ createdAt: Date;
6318
+ updatedAt: Date;
6319
+ deletedAt: Date | null;
6320
+ userId: string | null;
6321
+ sipServerUrl: string;
6322
+ sipUserName: string;
6323
+ webphoneLoginUser: string;
6324
+ extensionId: string | null;
6325
+ extensionName: string;
6326
+ telephonySignature: string | null;
6327
+ };
6328
+ };
6329
+ firstResponseTime: number;
6330
+ lastMessage: string;
6331
+ handleTime: number;
6332
+ unreadCount: number;
6333
+ firstResponseAt: Date;
6334
+ isLatest: boolean;
6335
+ platformContact: {
6336
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6337
+ id: string;
6338
+ metadata: {
6339
+ id: string;
6340
+ name: string;
6341
+ picture?: string | undefined;
6342
+ additionalCredentials?: any;
6343
+ };
6344
+ createdAt: Date;
6345
+ updatedAt: Date;
6346
+ deletedAt: Date | null;
6347
+ contact: {
6348
+ id: string;
6349
+ channel: string | null;
6350
+ address: string | null;
6351
+ name: string;
6352
+ createdAt: Date;
6353
+ updatedAt: Date;
6354
+ deletedAt: Date | null;
6355
+ customFields: {
6356
+ id: string;
6357
+ createdAt: Date;
6358
+ updatedAt: Date;
6359
+ deletedAt: Date | null;
6360
+ attribute: {
6361
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6362
+ id: string;
6363
+ position: number;
6364
+ createdAt: Date;
6365
+ updatedAt: Date;
6366
+ deletedAt: Date | null;
6367
+ systemName: string;
6368
+ displayName: string;
6369
+ isDefault: boolean;
6370
+ isArchived: boolean;
6371
+ isRequired: boolean;
6372
+ isUnique: boolean;
6373
+ };
6374
+ textValue: string | null;
6375
+ booleanValue: boolean | null;
6376
+ numberValue: number | null;
6377
+ dateValue: Date | null;
6378
+ uploads: {
6379
+ id: string;
6380
+ status: string | null;
6381
+ createdAt: Date;
6382
+ updatedAt: Date;
6383
+ deletedAt: Date | null;
6384
+ fileName: string;
6385
+ fileKey: string;
6386
+ bucketName: string;
6387
+ fileSize: number;
6388
+ fileUrl: string | null;
6389
+ }[];
6390
+ }[];
6391
+ company: {
6392
+ id: string;
6393
+ createdAt: Date;
6394
+ updatedAt: Date;
6395
+ deletedAt: Date | null;
6396
+ address?: string | null | undefined;
6397
+ name?: string | undefined;
6398
+ phone?: string | null | undefined;
6399
+ industry?: string | null | undefined;
6400
+ } | null;
6401
+ notes: string | null;
6402
+ contactProfile: string | null;
6403
+ socialProfileUrl: string | null;
6404
+ tags: {
6405
+ id: string;
6406
+ name: string;
6407
+ createdAt: Date;
6408
+ updatedAt: Date;
6409
+ deletedAt: Date | null;
6410
+ }[];
6411
+ contactEmails: {
6412
+ id: string;
6413
+ isPrimary: boolean;
6414
+ email: string;
6415
+ createdAt: Date;
6416
+ updatedAt: Date;
6417
+ deletedAt: Date | null;
6418
+ }[];
6419
+ contactPhones: {
6420
+ id: string;
6421
+ isPrimary: boolean;
6422
+ createdAt: Date;
6423
+ updatedAt: Date;
6424
+ deletedAt: Date | null;
6425
+ phone: string;
6426
+ }[];
6427
+ activityLogs?: {
6428
+ id: string;
6429
+ description: string;
6430
+ createdAt: Date;
6431
+ updatedAt: Date;
6432
+ deletedAt: Date | null;
6433
+ entityId: string;
6434
+ entityType: {
6435
+ id: string;
6436
+ description: string | null;
6437
+ createdAt: Date;
6438
+ updatedAt: Date;
6439
+ deletedAt: Date | null;
6440
+ entity: string;
6441
+ };
6442
+ }[] | undefined;
6443
+ };
6444
+ channelId: string;
6445
+ socialPlatformId: string;
6446
+ };
6447
+ assignee: {
6448
+ id: string;
6449
+ address: string | null;
6450
+ name: string;
6451
+ email: string;
6452
+ createdAt: Date;
6453
+ updatedAt: Date;
6454
+ deletedAt: Date | null;
6455
+ emailVerifiedAt: Date | null;
6456
+ password: string;
6457
+ phone: string | null;
6458
+ notificationCount: number | null;
6459
+ roles: {
6460
+ id: string;
6461
+ description: string | null;
6462
+ createdAt: Date;
6463
+ updatedAt: Date;
6464
+ deletedAt: Date | null;
6465
+ systemName: string;
6466
+ displayName: string;
6467
+ permissions: {
6468
+ id: string;
6469
+ description: string | null;
6470
+ createdAt: Date;
6471
+ updatedAt: Date;
6472
+ deletedAt: Date | null;
6473
+ systemName: string;
6474
+ displayName: string;
6475
+ }[];
6476
+ }[];
6477
+ extension: {
6478
+ id: string;
6479
+ createdAt: Date;
6480
+ updatedAt: Date;
6481
+ deletedAt: Date | null;
6482
+ userId: string | null;
6483
+ sipServerUrl: string;
6484
+ sipUserName: string;
6485
+ webphoneLoginUser: string;
6486
+ extensionId: string | null;
6487
+ extensionName: string;
6488
+ telephonySignature: string | null;
6489
+ };
6490
+ };
6491
+ closedAt: Date;
6492
+ lastMessageAt: Date | null;
6493
+ isBotRoom: boolean;
6494
+ cxlog: {
6495
+ id: string;
6496
+ channel: string | null;
6497
+ direction: string | null;
6498
+ createdAt: Date;
6499
+ updatedAt: Date;
6500
+ deletedAt: Date | null;
6501
+ entityId: string;
6502
+ queueId: string | null;
6503
+ contactId: string | null;
6504
+ caseId: number;
6505
+ entityName: string;
6506
+ agentId: string | null;
6507
+ startedDate: Date | null;
6508
+ handledTime: number | null;
6509
+ firstResponseTime: number | null;
6510
+ wrapUpForm: {
6511
+ type: string;
6512
+ id: string;
6513
+ disposition: string | null;
6514
+ createdAt: Date;
6515
+ updatedAt: Date;
6516
+ deletedAt: Date | null;
6517
+ categories: {
6518
+ id: string;
6519
+ value: string;
6520
+ createdAt: Date;
6521
+ updatedAt: Date;
6522
+ deletedAt: Date | null;
6523
+ level: 2 | 1 | 3;
6524
+ parentId: string | null;
6525
+ childCategoryList: {
6526
+ id: string;
6527
+ value: string;
6528
+ level: 2 | 1 | 3;
6529
+ parentId: string | null;
6530
+ childCategoryList: {
6531
+ id: string;
6532
+ value: string;
6533
+ level: 2 | 1 | 3;
6534
+ parentId: string | null;
6535
+ childCategoryList: any[];
6536
+ }[];
6537
+ }[];
6538
+ }[];
6539
+ tags: {
6540
+ id: string;
6541
+ name: string;
6542
+ createdAt: Date;
6543
+ updatedAt: Date;
6544
+ deletedAt: Date | null;
6545
+ }[];
6546
+ callFrom: string | null;
6547
+ callTo: string | null;
6548
+ note: string | null;
6549
+ customFields?: {
6550
+ id: string;
6551
+ createdAt: Date;
6552
+ updatedAt: Date;
6553
+ deletedAt: Date | null;
6554
+ entityId: string;
6555
+ attributeId: string;
6556
+ textValue: string | null;
6557
+ booleanValue: boolean | null;
6558
+ numberValue: number | null;
6559
+ dateValue: Date | null;
6560
+ }[] | null | undefined;
6561
+ } | null;
6562
+ };
6563
+ workflowRule: {
6564
+ type: string;
6565
+ id: string;
6566
+ name: string;
6567
+ createdAt: Date;
6568
+ updatedAt: Date;
6569
+ deletedAt: Date | null;
6570
+ isActive: boolean;
6571
+ };
6572
+ automationQueueId: string | null;
6573
+ }, {
6574
+ id: string;
6575
+ channel: {
6576
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6577
+ id: string;
6578
+ name: string;
6579
+ metadata: {
6580
+ id: string;
6581
+ name: string;
6582
+ accessToken?: string | undefined;
6583
+ channelSecret?: string | undefined;
6584
+ additionalCredentials?: any;
6585
+ vonageCredentials?: {
6586
+ mobileNumber: string;
6587
+ apiKey: string;
6588
+ apiSecret: string;
6589
+ } | undefined;
6590
+ lineRichMenuId?: string | null | undefined;
6591
+ };
6592
+ status: boolean;
6593
+ createdAt: Date;
6594
+ updatedAt: Date;
6595
+ deletedAt: Date | null;
6596
+ actor: {
6597
+ id: string;
6598
+ address: string | null;
6599
+ name: string;
6600
+ email: string;
6601
+ createdAt: Date;
6602
+ updatedAt: Date;
6603
+ deletedAt: Date | null;
6604
+ emailVerifiedAt: Date | null;
6605
+ password: string;
6606
+ phone: string | null;
6607
+ notificationCount: number | null;
6608
+ roles: {
6609
+ id: string;
6610
+ description: string | null;
6611
+ createdAt: Date;
6612
+ updatedAt: Date;
6613
+ deletedAt: Date | null;
6614
+ systemName: string;
6615
+ displayName: string;
6616
+ permissions: {
6617
+ id: string;
6618
+ description: string | null;
6619
+ createdAt: Date;
6620
+ updatedAt: Date;
6621
+ deletedAt: Date | null;
6622
+ systemName: string;
6623
+ displayName: string;
6624
+ }[];
6625
+ }[];
6626
+ extension: {
6627
+ id: string;
6628
+ createdAt: Date;
6629
+ updatedAt: Date;
6630
+ deletedAt: Date | null;
6631
+ userId: string | null;
6632
+ sipServerUrl: string;
6633
+ sipUserName: string;
6634
+ webphoneLoginUser: string;
6635
+ extensionId: string | null;
6636
+ extensionName: string;
6637
+ telephonySignature: string | null;
6638
+ };
6639
+ };
6640
+ brandName: string;
6641
+ platformId: string;
6642
+ isReloginRequired: boolean;
6643
+ connectedUserName: string;
6644
+ connectedUserId: string;
6645
+ botpressBot: {
6646
+ id: string;
6647
+ name: string;
6648
+ accessToken: string;
6649
+ botId: string;
6650
+ integrationId: string;
6651
+ } | null;
6652
+ };
6653
+ direction: "incoming" | "outgoing" | "system";
6654
+ status: number;
6655
+ createdAt: Date;
6656
+ updatedAt: Date;
6657
+ deletedAt: Date | null;
6658
+ actor: {
6659
+ id: string;
6660
+ address: string | null;
6661
+ name: string;
6662
+ email: string;
6663
+ createdAt: Date;
6664
+ updatedAt: Date;
6665
+ deletedAt: Date | null;
6666
+ emailVerifiedAt: Date | null;
6667
+ password: string;
6668
+ phone: string | null;
6669
+ notificationCount: number | null;
6670
+ roles: {
6671
+ id: string;
6672
+ description: string | null;
6673
+ createdAt: Date;
6674
+ updatedAt: Date;
6675
+ deletedAt: Date | null;
6676
+ systemName: string;
6677
+ displayName: string;
6678
+ permissions: {
6679
+ id: string;
6680
+ description: string | null;
6681
+ createdAt: Date;
6682
+ updatedAt: Date;
6683
+ deletedAt: Date | null;
6684
+ systemName: string;
6685
+ displayName: string;
6686
+ }[];
6687
+ }[];
6688
+ extension: {
6689
+ id: string;
6690
+ createdAt: Date;
6691
+ updatedAt: Date;
6692
+ deletedAt: Date | null;
6693
+ userId: string | null;
6694
+ sipServerUrl: string;
6695
+ sipUserName: string;
6696
+ webphoneLoginUser: string;
6697
+ extensionId: string | null;
6698
+ extensionName: string;
6699
+ telephonySignature: string | null;
6700
+ };
6701
+ };
6702
+ firstResponseTime: number;
6703
+ lastMessage: string;
6704
+ handleTime: number;
6705
+ unreadCount: number;
6706
+ firstResponseAt: Date;
6707
+ isLatest: boolean;
6708
+ platformContact: {
6709
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6710
+ id: string;
6711
+ metadata: {
6712
+ id: string;
6713
+ name: string;
6714
+ picture?: string | undefined;
6715
+ additionalCredentials?: any;
6716
+ };
6717
+ createdAt: Date;
6718
+ updatedAt: Date;
6719
+ deletedAt: Date | null;
6720
+ contact: {
6721
+ id: string;
6722
+ channel: string | null;
6723
+ address: string | null;
6724
+ name: string;
6725
+ createdAt: Date;
6726
+ updatedAt: Date;
6727
+ deletedAt: Date | null;
6728
+ customFields: {
6729
+ id: string;
6730
+ createdAt: Date;
6731
+ updatedAt: Date;
6732
+ deletedAt: Date | null;
6733
+ attribute: {
6734
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6735
+ id: string;
6736
+ position: number;
6737
+ createdAt: Date;
6738
+ updatedAt: Date;
6739
+ deletedAt: Date | null;
6740
+ systemName: string;
6741
+ displayName: string;
6742
+ isDefault: boolean;
6743
+ isArchived: boolean;
6744
+ isRequired: boolean;
6745
+ isUnique: boolean;
6746
+ };
6747
+ textValue: string | null;
6748
+ booleanValue: boolean | null;
6749
+ numberValue: number | null;
6750
+ dateValue: Date | null;
6751
+ uploads: {
6752
+ id: string;
6753
+ status: string | null;
6754
+ createdAt: Date;
6755
+ updatedAt: Date;
6756
+ deletedAt: Date | null;
6757
+ fileName: string;
6758
+ fileKey: string;
6759
+ bucketName: string;
6760
+ fileSize: number;
6761
+ fileUrl: string | null;
6762
+ }[];
6763
+ }[];
6764
+ company: {
6765
+ id: string;
6766
+ createdAt: Date;
6767
+ updatedAt: Date;
6768
+ deletedAt: Date | null;
6769
+ address?: string | null | undefined;
6770
+ name?: string | undefined;
6771
+ phone?: string | null | undefined;
6772
+ industry?: string | null | undefined;
6773
+ } | null;
6774
+ notes: string | null;
6775
+ contactProfile: string | null;
6776
+ socialProfileUrl: string | null;
6777
+ tags: {
6778
+ id: string;
6779
+ name: string;
6780
+ createdAt: Date;
6781
+ updatedAt: Date;
6782
+ deletedAt: Date | null;
6783
+ }[];
6784
+ contactEmails: {
6785
+ id: string;
6786
+ isPrimary: boolean;
6787
+ email: string;
6788
+ createdAt: Date;
6789
+ updatedAt: Date;
6790
+ deletedAt: Date | null;
6791
+ }[];
6792
+ contactPhones: {
6793
+ id: string;
6794
+ isPrimary: boolean;
6795
+ createdAt: Date;
6796
+ updatedAt: Date;
6797
+ deletedAt: Date | null;
6798
+ phone: string;
6799
+ }[];
6800
+ activityLogs?: {
6801
+ id: string;
6802
+ description: string;
6803
+ createdAt: Date;
6804
+ updatedAt: Date;
6805
+ deletedAt: Date | null;
6806
+ entityId: string;
6807
+ entityType: {
6808
+ id: string;
6809
+ description: string | null;
6810
+ createdAt: Date;
6811
+ updatedAt: Date;
6812
+ deletedAt: Date | null;
6813
+ entity: string;
6814
+ };
6815
+ }[] | undefined;
6816
+ };
6817
+ channelId: string;
6818
+ socialPlatformId: string;
6819
+ };
6820
+ assignee: {
6821
+ id: string;
6822
+ address: string | null;
6823
+ name: string;
6824
+ email: string;
6825
+ createdAt: Date;
6826
+ updatedAt: Date;
6827
+ deletedAt: Date | null;
6828
+ emailVerifiedAt: Date | null;
6829
+ password: string;
6830
+ phone: string | null;
6831
+ notificationCount: number | null;
6832
+ roles: {
6833
+ id: string;
6834
+ description: string | null;
6835
+ createdAt: Date;
6836
+ updatedAt: Date;
6837
+ deletedAt: Date | null;
6838
+ systemName: string;
6839
+ displayName: string;
6840
+ permissions: {
6841
+ id: string;
6842
+ description: string | null;
6843
+ createdAt: Date;
6844
+ updatedAt: Date;
6845
+ deletedAt: Date | null;
6846
+ systemName: string;
6847
+ displayName: string;
6848
+ }[];
6849
+ }[];
6850
+ extension: {
6851
+ id: string;
6852
+ createdAt: Date;
6853
+ updatedAt: Date;
6854
+ deletedAt: Date | null;
6855
+ userId: string | null;
6856
+ sipServerUrl: string;
6857
+ sipUserName: string;
6858
+ webphoneLoginUser: string;
6859
+ extensionId: string | null;
6860
+ extensionName: string;
6861
+ telephonySignature: string | null;
6862
+ };
6863
+ };
6864
+ closedAt: Date;
6865
+ lastMessageAt: Date | null;
6866
+ isBotRoom: boolean;
6867
+ cxlog: {
6868
+ id: string;
6869
+ channel: string | null;
6870
+ direction: string | null;
6871
+ createdAt: Date;
6872
+ updatedAt: Date;
6873
+ deletedAt: Date | null;
6874
+ entityId: string;
6875
+ queueId: string | null;
6876
+ contactId: string | null;
6877
+ caseId: number;
6878
+ entityName: string;
6879
+ agentId: string | null;
6880
+ startedDate: Date | null;
6881
+ handledTime: number | null;
6882
+ firstResponseTime: number | null;
6883
+ wrapUpForm: {
6884
+ type: string;
6885
+ id: string;
6886
+ disposition: string | null;
6887
+ createdAt: Date;
6888
+ updatedAt: Date;
6889
+ deletedAt: Date | null;
6890
+ categories: {
6891
+ id: string;
6892
+ value: string;
6893
+ createdAt: Date;
6894
+ updatedAt: Date;
6895
+ deletedAt: Date | null;
6896
+ level: 2 | 1 | 3;
6897
+ parentId: string | null;
6898
+ childCategoryList: {
6899
+ id: string;
6900
+ value: string;
6901
+ level: 2 | 1 | 3;
6902
+ parentId: string | null;
6903
+ childCategoryList: {
6904
+ id: string;
6905
+ value: string;
6906
+ level: 2 | 1 | 3;
6907
+ parentId: string | null;
6908
+ childCategoryList: any[];
6909
+ }[];
6910
+ }[];
6911
+ }[];
6912
+ tags: {
6913
+ id: string;
6914
+ name: string;
6915
+ createdAt: Date;
6916
+ updatedAt: Date;
6917
+ deletedAt: Date | null;
6918
+ }[];
6919
+ callFrom: string | null;
6920
+ callTo: string | null;
6921
+ note: string | null;
6922
+ customFields?: {
6923
+ id: string;
6924
+ createdAt: Date;
6925
+ updatedAt: Date;
6926
+ deletedAt: Date | null;
6927
+ entityId: string;
6928
+ attributeId: string;
6929
+ textValue: string | null;
6930
+ booleanValue: boolean | null;
6931
+ numberValue: number | null;
6932
+ dateValue: Date | null;
6933
+ }[] | null | undefined;
6934
+ } | null;
6935
+ };
6936
+ workflowRule: {
6937
+ type: string;
6938
+ id: string;
6939
+ name: string;
6940
+ createdAt: Date;
6941
+ updatedAt: Date;
6942
+ deletedAt: Date | null;
6943
+ isActive: boolean;
6944
+ };
6945
+ automationQueueId: string | null;
6946
+ }>;
3959
6947
  /**
3960
6948
  * Message
3961
6949
  */