@kl1/contracts 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1103,6 +1103,7 @@ export declare const ContactContractValidationSchema: {
1103
1103
  page: z.ZodNumber;
1104
1104
  pageSize: z.ZodNumber;
1105
1105
  total: z.ZodNumber;
1106
+ lastPage: z.ZodNumber;
1106
1107
  data: z.ZodArray<z.ZodObject<{
1107
1108
  id: z.ZodString;
1108
1109
  createdAt: z.ZodDate;
@@ -4909,5 +4910,837 @@ export declare const ContactContractValidationSchema: {
4909
4910
  }>;
4910
4911
  response: z.ZodBoolean;
4911
4912
  };
4913
+ filterContacts: {
4914
+ request: z.ZodObject<{
4915
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4916
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4917
+ keyword: z.ZodOptional<z.ZodString>;
4918
+ }, "strip", z.ZodTypeAny, {
4919
+ page?: number | undefined;
4920
+ pageSize?: number | undefined;
4921
+ keyword?: string | undefined;
4922
+ }, {
4923
+ page?: number | undefined;
4924
+ pageSize?: number | undefined;
4925
+ keyword?: string | undefined;
4926
+ }>;
4927
+ response: {
4928
+ page: z.ZodNumber;
4929
+ pageSize: z.ZodNumber;
4930
+ total: z.ZodNumber;
4931
+ lastPage: z.ZodNumber;
4932
+ data: z.ZodArray<z.ZodObject<{
4933
+ id: z.ZodString;
4934
+ createdAt: z.ZodDate;
4935
+ updatedAt: z.ZodDate;
4936
+ deletedAt: z.ZodNullable<z.ZodDate>;
4937
+ name: z.ZodString;
4938
+ address: z.ZodNullable<z.ZodString>;
4939
+ channel: z.ZodNullable<z.ZodString>;
4940
+ notes: z.ZodNullable<z.ZodString>;
4941
+ contactProfile: z.ZodNullable<z.ZodString>;
4942
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4943
+ tags: z.ZodArray<z.ZodObject<{
4944
+ id: z.ZodString;
4945
+ createdAt: z.ZodDate;
4946
+ updatedAt: z.ZodDate;
4947
+ deletedAt: z.ZodNullable<z.ZodDate>;
4948
+ name: z.ZodString;
4949
+ }, "strip", z.ZodTypeAny, {
4950
+ id: string;
4951
+ name: string;
4952
+ createdAt: Date;
4953
+ updatedAt: Date;
4954
+ deletedAt: Date | null;
4955
+ }, {
4956
+ id: string;
4957
+ name: string;
4958
+ createdAt: Date;
4959
+ updatedAt: Date;
4960
+ deletedAt: Date | null;
4961
+ }>, "many">;
4962
+ company: z.ZodNullable<z.ZodObject<Omit<{
4963
+ id: z.ZodString;
4964
+ createdAt: z.ZodDate;
4965
+ updatedAt: z.ZodDate;
4966
+ deletedAt: z.ZodNullable<z.ZodDate>;
4967
+ name: z.ZodOptional<z.ZodString>;
4968
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4969
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4970
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4971
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4972
+ id: z.ZodString;
4973
+ createdAt: z.ZodDate;
4974
+ updatedAt: z.ZodDate;
4975
+ deletedAt: z.ZodNullable<z.ZodDate>;
4976
+ textValue: z.ZodNullable<z.ZodString>;
4977
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4978
+ numberValue: z.ZodNullable<z.ZodNumber>;
4979
+ dateValue: z.ZodNullable<z.ZodString>;
4980
+ attribute: z.ZodObject<Omit<{
4981
+ id: z.ZodString;
4982
+ createdAt: z.ZodDate;
4983
+ updatedAt: z.ZodDate;
4984
+ deletedAt: z.ZodNullable<z.ZodDate>;
4985
+ systemName: z.ZodString;
4986
+ displayName: z.ZodString;
4987
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4988
+ position: z.ZodNumber;
4989
+ isDefault: z.ZodBoolean;
4990
+ isArchived: z.ZodBoolean;
4991
+ isRequired: z.ZodBoolean;
4992
+ isUnique: z.ZodBoolean;
4993
+ options: z.ZodArray<z.ZodObject<{
4994
+ position: z.ZodNumber;
4995
+ value: z.ZodString;
4996
+ label: z.ZodString;
4997
+ isDefault: z.ZodBoolean;
4998
+ id: z.ZodString;
4999
+ }, "strip", z.ZodTypeAny, {
5000
+ id: string;
5001
+ position: number;
5002
+ value: string;
5003
+ label: string;
5004
+ isDefault: boolean;
5005
+ }, {
5006
+ id: string;
5007
+ position: number;
5008
+ value: string;
5009
+ label: string;
5010
+ isDefault: boolean;
5011
+ }>, "many">;
5012
+ group: z.ZodObject<{
5013
+ id: z.ZodString;
5014
+ createdAt: z.ZodDate;
5015
+ updatedAt: z.ZodDate;
5016
+ deletedAt: z.ZodNullable<z.ZodDate>;
5017
+ systemName: z.ZodString;
5018
+ displayName: z.ZodString;
5019
+ }, "strip", z.ZodTypeAny, {
5020
+ id: string;
5021
+ createdAt: Date;
5022
+ updatedAt: Date;
5023
+ deletedAt: Date | null;
5024
+ systemName: string;
5025
+ displayName: string;
5026
+ }, {
5027
+ id: string;
5028
+ createdAt: Date;
5029
+ updatedAt: Date;
5030
+ deletedAt: Date | null;
5031
+ systemName: string;
5032
+ displayName: string;
5033
+ }>;
5034
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5035
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5036
+ id: string;
5037
+ position: number;
5038
+ createdAt: Date;
5039
+ updatedAt: Date;
5040
+ deletedAt: Date | null;
5041
+ isDefault: boolean;
5042
+ systemName: string;
5043
+ displayName: string;
5044
+ isArchived: boolean;
5045
+ isRequired: boolean;
5046
+ isUnique: boolean;
5047
+ }, {
5048
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5049
+ id: string;
5050
+ position: number;
5051
+ createdAt: Date;
5052
+ updatedAt: Date;
5053
+ deletedAt: Date | null;
5054
+ isDefault: boolean;
5055
+ systemName: string;
5056
+ displayName: string;
5057
+ isArchived: boolean;
5058
+ isRequired: boolean;
5059
+ isUnique: boolean;
5060
+ }>;
5061
+ }, "strip", z.ZodTypeAny, {
5062
+ id: string;
5063
+ createdAt: Date;
5064
+ updatedAt: Date;
5065
+ deletedAt: Date | null;
5066
+ attribute: {
5067
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5068
+ id: string;
5069
+ position: number;
5070
+ createdAt: Date;
5071
+ updatedAt: Date;
5072
+ deletedAt: Date | null;
5073
+ isDefault: boolean;
5074
+ systemName: string;
5075
+ displayName: string;
5076
+ isArchived: boolean;
5077
+ isRequired: boolean;
5078
+ isUnique: boolean;
5079
+ };
5080
+ textValue: string | null;
5081
+ booleanValue: boolean | null;
5082
+ numberValue: number | null;
5083
+ dateValue: string | null;
5084
+ }, {
5085
+ id: string;
5086
+ createdAt: Date;
5087
+ updatedAt: Date;
5088
+ deletedAt: Date | null;
5089
+ attribute: {
5090
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5091
+ id: string;
5092
+ position: number;
5093
+ createdAt: Date;
5094
+ updatedAt: Date;
5095
+ deletedAt: Date | null;
5096
+ isDefault: boolean;
5097
+ systemName: string;
5098
+ displayName: string;
5099
+ isArchived: boolean;
5100
+ isRequired: boolean;
5101
+ isUnique: boolean;
5102
+ };
5103
+ textValue: string | null;
5104
+ booleanValue: boolean | null;
5105
+ numberValue: number | null;
5106
+ dateValue: string | null;
5107
+ }>, "many">>;
5108
+ }, "customFields">, "strip", z.ZodTypeAny, {
5109
+ id: string;
5110
+ createdAt: Date;
5111
+ updatedAt: Date;
5112
+ deletedAt: Date | null;
5113
+ address?: string | null | undefined;
5114
+ name?: string | undefined;
5115
+ phone?: string | null | undefined;
5116
+ industry?: string | null | undefined;
5117
+ }, {
5118
+ id: string;
5119
+ createdAt: Date;
5120
+ updatedAt: Date;
5121
+ deletedAt: Date | null;
5122
+ address?: string | null | undefined;
5123
+ name?: string | undefined;
5124
+ phone?: string | null | undefined;
5125
+ industry?: string | null | undefined;
5126
+ }>>;
5127
+ customFields: z.ZodArray<z.ZodObject<{
5128
+ id: z.ZodString;
5129
+ createdAt: z.ZodDate;
5130
+ updatedAt: z.ZodDate;
5131
+ deletedAt: z.ZodNullable<z.ZodDate>;
5132
+ textValue: z.ZodNullable<z.ZodString>;
5133
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5134
+ numberValue: z.ZodNullable<z.ZodNumber>;
5135
+ dateValue: z.ZodNullable<z.ZodDate>;
5136
+ attribute: z.ZodObject<Omit<{
5137
+ id: z.ZodString;
5138
+ createdAt: z.ZodDate;
5139
+ updatedAt: z.ZodDate;
5140
+ deletedAt: z.ZodNullable<z.ZodDate>;
5141
+ systemName: z.ZodString;
5142
+ displayName: z.ZodString;
5143
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5144
+ position: z.ZodNumber;
5145
+ isDefault: z.ZodBoolean;
5146
+ isArchived: z.ZodBoolean;
5147
+ isRequired: z.ZodBoolean;
5148
+ isUnique: z.ZodBoolean;
5149
+ options: z.ZodArray<z.ZodObject<{
5150
+ position: z.ZodNumber;
5151
+ value: z.ZodString;
5152
+ label: z.ZodString;
5153
+ isDefault: z.ZodBoolean;
5154
+ id: z.ZodString;
5155
+ }, "strip", z.ZodTypeAny, {
5156
+ id: string;
5157
+ position: number;
5158
+ value: string;
5159
+ label: string;
5160
+ isDefault: boolean;
5161
+ }, {
5162
+ id: string;
5163
+ position: number;
5164
+ value: string;
5165
+ label: string;
5166
+ isDefault: boolean;
5167
+ }>, "many">;
5168
+ group: z.ZodObject<{
5169
+ id: z.ZodString;
5170
+ createdAt: z.ZodDate;
5171
+ updatedAt: z.ZodDate;
5172
+ deletedAt: z.ZodNullable<z.ZodDate>;
5173
+ systemName: z.ZodString;
5174
+ displayName: z.ZodString;
5175
+ }, "strip", z.ZodTypeAny, {
5176
+ id: string;
5177
+ createdAt: Date;
5178
+ updatedAt: Date;
5179
+ deletedAt: Date | null;
5180
+ systemName: string;
5181
+ displayName: string;
5182
+ }, {
5183
+ id: string;
5184
+ createdAt: Date;
5185
+ updatedAt: Date;
5186
+ deletedAt: Date | null;
5187
+ systemName: string;
5188
+ displayName: string;
5189
+ }>;
5190
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5191
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5192
+ id: string;
5193
+ position: number;
5194
+ createdAt: Date;
5195
+ updatedAt: Date;
5196
+ deletedAt: Date | null;
5197
+ isDefault: boolean;
5198
+ systemName: string;
5199
+ displayName: string;
5200
+ isArchived: boolean;
5201
+ isRequired: boolean;
5202
+ isUnique: boolean;
5203
+ }, {
5204
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5205
+ id: string;
5206
+ position: number;
5207
+ createdAt: Date;
5208
+ updatedAt: Date;
5209
+ deletedAt: Date | null;
5210
+ isDefault: boolean;
5211
+ systemName: string;
5212
+ displayName: string;
5213
+ isArchived: boolean;
5214
+ isRequired: boolean;
5215
+ isUnique: boolean;
5216
+ }>;
5217
+ uploads: z.ZodArray<z.ZodObject<{
5218
+ id: z.ZodString;
5219
+ createdAt: z.ZodDate;
5220
+ updatedAt: z.ZodDate;
5221
+ deletedAt: z.ZodNullable<z.ZodDate>;
5222
+ customFieldId: z.ZodString;
5223
+ upload: z.ZodObject<{
5224
+ id: z.ZodString;
5225
+ createdAt: z.ZodDate;
5226
+ updatedAt: z.ZodDate;
5227
+ deletedAt: z.ZodNullable<z.ZodDate>;
5228
+ bucketName: z.ZodString;
5229
+ fileName: z.ZodString;
5230
+ fileSize: z.ZodNumber;
5231
+ fileKey: z.ZodString;
5232
+ }, "strip", z.ZodTypeAny, {
5233
+ id: string;
5234
+ createdAt: Date;
5235
+ updatedAt: Date;
5236
+ deletedAt: Date | null;
5237
+ fileName: string;
5238
+ fileKey: string;
5239
+ bucketName: string;
5240
+ fileSize: number;
5241
+ }, {
5242
+ id: string;
5243
+ createdAt: Date;
5244
+ updatedAt: Date;
5245
+ deletedAt: Date | null;
5246
+ fileName: string;
5247
+ fileKey: string;
5248
+ bucketName: string;
5249
+ fileSize: number;
5250
+ }>;
5251
+ }, "strip", z.ZodTypeAny, {
5252
+ id: string;
5253
+ createdAt: Date;
5254
+ updatedAt: Date;
5255
+ deletedAt: Date | null;
5256
+ customFieldId: string;
5257
+ upload: {
5258
+ id: string;
5259
+ createdAt: Date;
5260
+ updatedAt: Date;
5261
+ deletedAt: Date | null;
5262
+ fileName: string;
5263
+ fileKey: string;
5264
+ bucketName: string;
5265
+ fileSize: number;
5266
+ };
5267
+ }, {
5268
+ id: string;
5269
+ createdAt: Date;
5270
+ updatedAt: Date;
5271
+ deletedAt: Date | null;
5272
+ customFieldId: string;
5273
+ upload: {
5274
+ id: string;
5275
+ createdAt: Date;
5276
+ updatedAt: Date;
5277
+ deletedAt: Date | null;
5278
+ fileName: string;
5279
+ fileKey: string;
5280
+ bucketName: string;
5281
+ fileSize: number;
5282
+ };
5283
+ }>, "many">;
5284
+ }, "strip", z.ZodTypeAny, {
5285
+ id: string;
5286
+ createdAt: Date;
5287
+ updatedAt: Date;
5288
+ deletedAt: Date | null;
5289
+ attribute: {
5290
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5291
+ id: string;
5292
+ position: number;
5293
+ createdAt: Date;
5294
+ updatedAt: Date;
5295
+ deletedAt: Date | null;
5296
+ isDefault: boolean;
5297
+ systemName: string;
5298
+ displayName: string;
5299
+ isArchived: boolean;
5300
+ isRequired: boolean;
5301
+ isUnique: boolean;
5302
+ };
5303
+ textValue: string | null;
5304
+ booleanValue: boolean | null;
5305
+ numberValue: number | null;
5306
+ dateValue: Date | null;
5307
+ uploads: {
5308
+ id: string;
5309
+ createdAt: Date;
5310
+ updatedAt: Date;
5311
+ deletedAt: Date | null;
5312
+ customFieldId: string;
5313
+ upload: {
5314
+ id: string;
5315
+ createdAt: Date;
5316
+ updatedAt: Date;
5317
+ deletedAt: Date | null;
5318
+ fileName: string;
5319
+ fileKey: string;
5320
+ bucketName: string;
5321
+ fileSize: number;
5322
+ };
5323
+ }[];
5324
+ }, {
5325
+ id: string;
5326
+ createdAt: Date;
5327
+ updatedAt: Date;
5328
+ deletedAt: Date | null;
5329
+ attribute: {
5330
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5331
+ id: string;
5332
+ position: number;
5333
+ createdAt: Date;
5334
+ updatedAt: Date;
5335
+ deletedAt: Date | null;
5336
+ isDefault: boolean;
5337
+ systemName: string;
5338
+ displayName: string;
5339
+ isArchived: boolean;
5340
+ isRequired: boolean;
5341
+ isUnique: boolean;
5342
+ };
5343
+ textValue: string | null;
5344
+ booleanValue: boolean | null;
5345
+ numberValue: number | null;
5346
+ dateValue: Date | null;
5347
+ uploads: {
5348
+ id: string;
5349
+ createdAt: Date;
5350
+ updatedAt: Date;
5351
+ deletedAt: Date | null;
5352
+ customFieldId: string;
5353
+ upload: {
5354
+ id: string;
5355
+ createdAt: Date;
5356
+ updatedAt: Date;
5357
+ deletedAt: Date | null;
5358
+ fileName: string;
5359
+ fileKey: string;
5360
+ bucketName: string;
5361
+ fileSize: number;
5362
+ };
5363
+ }[];
5364
+ }>, "many">;
5365
+ contactEmails: z.ZodArray<z.ZodObject<{
5366
+ id: z.ZodString;
5367
+ createdAt: z.ZodDate;
5368
+ updatedAt: z.ZodDate;
5369
+ deletedAt: z.ZodNullable<z.ZodDate>;
5370
+ email: z.ZodString;
5371
+ isPrimary: z.ZodBoolean;
5372
+ }, "strip", z.ZodTypeAny, {
5373
+ id: string;
5374
+ isPrimary: boolean;
5375
+ email: string;
5376
+ createdAt: Date;
5377
+ updatedAt: Date;
5378
+ deletedAt: Date | null;
5379
+ }, {
5380
+ id: string;
5381
+ isPrimary: boolean;
5382
+ email: string;
5383
+ createdAt: Date;
5384
+ updatedAt: Date;
5385
+ deletedAt: Date | null;
5386
+ }>, "many">;
5387
+ contactPhones: z.ZodArray<z.ZodObject<{
5388
+ id: z.ZodString;
5389
+ createdAt: z.ZodDate;
5390
+ updatedAt: z.ZodDate;
5391
+ deletedAt: z.ZodNullable<z.ZodDate>;
5392
+ phone: z.ZodString;
5393
+ isPrimary: z.ZodBoolean;
5394
+ }, "strip", z.ZodTypeAny, {
5395
+ id: string;
5396
+ isPrimary: boolean;
5397
+ createdAt: Date;
5398
+ updatedAt: Date;
5399
+ deletedAt: Date | null;
5400
+ phone: string;
5401
+ }, {
5402
+ id: string;
5403
+ isPrimary: boolean;
5404
+ createdAt: Date;
5405
+ updatedAt: Date;
5406
+ deletedAt: Date | null;
5407
+ phone: string;
5408
+ }>, "many">;
5409
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5410
+ id: z.ZodString;
5411
+ createdAt: z.ZodDate;
5412
+ updatedAt: z.ZodDate;
5413
+ deletedAt: z.ZodNullable<z.ZodDate>;
5414
+ entityId: z.ZodString;
5415
+ description: z.ZodString;
5416
+ entityType: z.ZodObject<{
5417
+ id: z.ZodString;
5418
+ createdAt: z.ZodDate;
5419
+ updatedAt: z.ZodDate;
5420
+ deletedAt: z.ZodNullable<z.ZodDate>;
5421
+ entity: z.ZodString;
5422
+ description: z.ZodNullable<z.ZodString>;
5423
+ }, "strip", z.ZodTypeAny, {
5424
+ id: string;
5425
+ description: string | null;
5426
+ createdAt: Date;
5427
+ updatedAt: Date;
5428
+ deletedAt: Date | null;
5429
+ entity: string;
5430
+ }, {
5431
+ id: string;
5432
+ description: string | null;
5433
+ createdAt: Date;
5434
+ updatedAt: Date;
5435
+ deletedAt: Date | null;
5436
+ entity: string;
5437
+ }>;
5438
+ }, "strip", z.ZodTypeAny, {
5439
+ id: string;
5440
+ description: string;
5441
+ createdAt: Date;
5442
+ updatedAt: Date;
5443
+ deletedAt: Date | null;
5444
+ entityId: string;
5445
+ entityType: {
5446
+ id: string;
5447
+ description: string | null;
5448
+ createdAt: Date;
5449
+ updatedAt: Date;
5450
+ deletedAt: Date | null;
5451
+ entity: string;
5452
+ };
5453
+ }, {
5454
+ id: string;
5455
+ description: string;
5456
+ createdAt: Date;
5457
+ updatedAt: Date;
5458
+ deletedAt: Date | null;
5459
+ entityId: string;
5460
+ entityType: {
5461
+ id: string;
5462
+ description: string | null;
5463
+ createdAt: Date;
5464
+ updatedAt: Date;
5465
+ deletedAt: Date | null;
5466
+ entity: string;
5467
+ };
5468
+ }>, "many">>;
5469
+ }, "strip", z.ZodTypeAny, {
5470
+ id: string;
5471
+ channel: string | null;
5472
+ address: string | null;
5473
+ name: string;
5474
+ createdAt: Date;
5475
+ updatedAt: Date;
5476
+ deletedAt: Date | null;
5477
+ customFields: {
5478
+ id: string;
5479
+ createdAt: Date;
5480
+ updatedAt: Date;
5481
+ deletedAt: Date | null;
5482
+ attribute: {
5483
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5484
+ id: string;
5485
+ position: number;
5486
+ createdAt: Date;
5487
+ updatedAt: Date;
5488
+ deletedAt: Date | null;
5489
+ isDefault: boolean;
5490
+ systemName: string;
5491
+ displayName: string;
5492
+ isArchived: boolean;
5493
+ isRequired: boolean;
5494
+ isUnique: boolean;
5495
+ };
5496
+ textValue: string | null;
5497
+ booleanValue: boolean | null;
5498
+ numberValue: number | null;
5499
+ dateValue: Date | null;
5500
+ uploads: {
5501
+ id: string;
5502
+ createdAt: Date;
5503
+ updatedAt: Date;
5504
+ deletedAt: Date | null;
5505
+ customFieldId: string;
5506
+ upload: {
5507
+ id: string;
5508
+ createdAt: Date;
5509
+ updatedAt: Date;
5510
+ deletedAt: Date | null;
5511
+ fileName: string;
5512
+ fileKey: string;
5513
+ bucketName: string;
5514
+ fileSize: number;
5515
+ };
5516
+ }[];
5517
+ }[];
5518
+ notes: string | null;
5519
+ contactProfile: string | null;
5520
+ socialProfileUrl: string | null;
5521
+ tags: {
5522
+ id: string;
5523
+ name: string;
5524
+ createdAt: Date;
5525
+ updatedAt: Date;
5526
+ deletedAt: Date | null;
5527
+ }[];
5528
+ company: {
5529
+ id: string;
5530
+ createdAt: Date;
5531
+ updatedAt: Date;
5532
+ deletedAt: Date | null;
5533
+ address?: string | null | undefined;
5534
+ name?: string | undefined;
5535
+ phone?: string | null | undefined;
5536
+ industry?: string | null | undefined;
5537
+ } | null;
5538
+ contactEmails: {
5539
+ id: string;
5540
+ isPrimary: boolean;
5541
+ email: string;
5542
+ createdAt: Date;
5543
+ updatedAt: Date;
5544
+ deletedAt: Date | null;
5545
+ }[];
5546
+ contactPhones: {
5547
+ id: string;
5548
+ isPrimary: boolean;
5549
+ createdAt: Date;
5550
+ updatedAt: Date;
5551
+ deletedAt: Date | null;
5552
+ phone: string;
5553
+ }[];
5554
+ activityLogs?: {
5555
+ id: string;
5556
+ description: string;
5557
+ createdAt: Date;
5558
+ updatedAt: Date;
5559
+ deletedAt: Date | null;
5560
+ entityId: string;
5561
+ entityType: {
5562
+ id: string;
5563
+ description: string | null;
5564
+ createdAt: Date;
5565
+ updatedAt: Date;
5566
+ deletedAt: Date | null;
5567
+ entity: string;
5568
+ };
5569
+ }[] | undefined;
5570
+ }, {
5571
+ id: string;
5572
+ channel: string | null;
5573
+ address: string | null;
5574
+ name: string;
5575
+ createdAt: Date;
5576
+ updatedAt: Date;
5577
+ deletedAt: Date | null;
5578
+ customFields: {
5579
+ id: string;
5580
+ createdAt: Date;
5581
+ updatedAt: Date;
5582
+ deletedAt: Date | null;
5583
+ attribute: {
5584
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5585
+ id: string;
5586
+ position: number;
5587
+ createdAt: Date;
5588
+ updatedAt: Date;
5589
+ deletedAt: Date | null;
5590
+ isDefault: boolean;
5591
+ systemName: string;
5592
+ displayName: string;
5593
+ isArchived: boolean;
5594
+ isRequired: boolean;
5595
+ isUnique: boolean;
5596
+ };
5597
+ textValue: string | null;
5598
+ booleanValue: boolean | null;
5599
+ numberValue: number | null;
5600
+ dateValue: Date | null;
5601
+ uploads: {
5602
+ id: string;
5603
+ createdAt: Date;
5604
+ updatedAt: Date;
5605
+ deletedAt: Date | null;
5606
+ customFieldId: string;
5607
+ upload: {
5608
+ id: string;
5609
+ createdAt: Date;
5610
+ updatedAt: Date;
5611
+ deletedAt: Date | null;
5612
+ fileName: string;
5613
+ fileKey: string;
5614
+ bucketName: string;
5615
+ fileSize: number;
5616
+ };
5617
+ }[];
5618
+ }[];
5619
+ notes: string | null;
5620
+ contactProfile: string | null;
5621
+ socialProfileUrl: string | null;
5622
+ tags: {
5623
+ id: string;
5624
+ name: string;
5625
+ createdAt: Date;
5626
+ updatedAt: Date;
5627
+ deletedAt: Date | null;
5628
+ }[];
5629
+ company: {
5630
+ id: string;
5631
+ createdAt: Date;
5632
+ updatedAt: Date;
5633
+ deletedAt: Date | null;
5634
+ address?: string | null | undefined;
5635
+ name?: string | undefined;
5636
+ phone?: string | null | undefined;
5637
+ industry?: string | null | undefined;
5638
+ } | null;
5639
+ contactEmails: {
5640
+ id: string;
5641
+ isPrimary: boolean;
5642
+ email: string;
5643
+ createdAt: Date;
5644
+ updatedAt: Date;
5645
+ deletedAt: Date | null;
5646
+ }[];
5647
+ contactPhones: {
5648
+ id: string;
5649
+ isPrimary: boolean;
5650
+ createdAt: Date;
5651
+ updatedAt: Date;
5652
+ deletedAt: Date | null;
5653
+ phone: string;
5654
+ }[];
5655
+ activityLogs?: {
5656
+ id: string;
5657
+ description: string;
5658
+ createdAt: Date;
5659
+ updatedAt: Date;
5660
+ deletedAt: Date | null;
5661
+ entityId: string;
5662
+ entityType: {
5663
+ id: string;
5664
+ description: string | null;
5665
+ createdAt: Date;
5666
+ updatedAt: Date;
5667
+ deletedAt: Date | null;
5668
+ entity: string;
5669
+ };
5670
+ }[] | undefined;
5671
+ }>, "many">;
5672
+ };
5673
+ };
5674
+ addAttachments: {
5675
+ request: z.ZodObject<{
5676
+ attributeId: z.ZodString;
5677
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5678
+ bucketName: z.ZodString;
5679
+ fileKey: z.ZodString;
5680
+ fileName: z.ZodString;
5681
+ fileSize: z.ZodNumber;
5682
+ }, "strip", z.ZodTypeAny, {
5683
+ fileName: string;
5684
+ fileKey: string;
5685
+ bucketName: string;
5686
+ fileSize: number;
5687
+ }, {
5688
+ fileName: string;
5689
+ fileKey: string;
5690
+ bucketName: string;
5691
+ fileSize: number;
5692
+ }>, "many">>;
5693
+ }, "strip", z.ZodTypeAny, {
5694
+ attributeId: string;
5695
+ attachments?: {
5696
+ fileName: string;
5697
+ fileKey: string;
5698
+ bucketName: string;
5699
+ fileSize: number;
5700
+ }[] | undefined;
5701
+ }, {
5702
+ attributeId: string;
5703
+ attachments?: {
5704
+ fileName: string;
5705
+ fileKey: string;
5706
+ bucketName: string;
5707
+ fileSize: number;
5708
+ }[] | undefined;
5709
+ }>;
5710
+ response: z.ZodObject<{
5711
+ id: z.ZodString;
5712
+ createdAt: z.ZodDate;
5713
+ updatedAt: z.ZodDate;
5714
+ deletedAt: z.ZodNullable<z.ZodDate>;
5715
+ textValue: z.ZodNullable<z.ZodString>;
5716
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5717
+ numberValue: z.ZodNullable<z.ZodNumber>;
5718
+ dateValue: z.ZodNullable<z.ZodDate>;
5719
+ entityId: z.ZodString;
5720
+ attributeId: z.ZodString;
5721
+ }, "strip", z.ZodTypeAny, {
5722
+ id: string;
5723
+ createdAt: Date;
5724
+ updatedAt: Date;
5725
+ deletedAt: Date | null;
5726
+ attributeId: string;
5727
+ textValue: string | null;
5728
+ booleanValue: boolean | null;
5729
+ numberValue: number | null;
5730
+ dateValue: Date | null;
5731
+ entityId: string;
5732
+ }, {
5733
+ id: string;
5734
+ createdAt: Date;
5735
+ updatedAt: Date;
5736
+ deletedAt: Date | null;
5737
+ attributeId: string;
5738
+ textValue: string | null;
5739
+ booleanValue: boolean | null;
5740
+ numberValue: number | null;
5741
+ dateValue: Date | null;
5742
+ entityId: string;
5743
+ }>;
5744
+ };
4912
5745
  };
4913
5746
  //# sourceMappingURL=validation.d.ts.map