@kl1/contracts 1.0.15 → 1.0.16

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.
@@ -7,6 +7,10 @@ export type CreateContactByPhoneRequest = z.infer<typeof ContactContractValidati
7
7
  export type CreateContactByPhoneResponse = z.infer<typeof ContactContractValidationSchema.createContactByPhone.response>;
8
8
  export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
9
9
  export type UpdateContactRequest = Partial<CreateContactRequest>;
10
+ export type UpdateContactFromOngoingCallRequest = Partial<z.infer<typeof ContactContractValidationSchema.updateFromOngoingCall.request>>;
11
+ export type MergeContactsRequest = z.infer<typeof ContactContractValidationSchema.merge.request>;
12
+ export type CheckContactPhoneRequest = z.infer<typeof ContactContractValidationSchema.checkContactPhone.request>;
13
+ export type CheckContactEmailRequest = z.infer<typeof ContactContractValidationSchema.checkContactEmail.request>;
10
14
  export type UpdateContactResponse = CreateContactResponse;
11
15
  export type Contact = z.infer<typeof ContactSchema>;
12
16
  export declare const contactContract: {
@@ -4869,5 +4873,2275 @@ export declare const contactContract: {
4869
4873
  authorization: string;
4870
4874
  }>>>;
4871
4875
  };
4876
+ updateFromOngoingCall: {
4877
+ body: z.ZodObject<{
4878
+ name: z.ZodOptional<z.ZodString>;
4879
+ companyId: z.ZodOptional<z.ZodString>;
4880
+ }, "strip", z.ZodTypeAny, {
4881
+ name?: string | undefined;
4882
+ companyId?: string | undefined;
4883
+ }, {
4884
+ name?: string | undefined;
4885
+ companyId?: string | undefined;
4886
+ }>;
4887
+ summary: "Update a contact with name and company while making ongoing call";
4888
+ method: "PATCH";
4889
+ responses: {
4890
+ 201: z.ZodObject<{
4891
+ requestId: z.ZodString;
4892
+ data: z.ZodObject<{
4893
+ id: z.ZodString;
4894
+ createdAt: z.ZodDate;
4895
+ updatedAt: z.ZodDate;
4896
+ deletedAt: z.ZodNullable<z.ZodDate>;
4897
+ name: z.ZodString;
4898
+ address: z.ZodNullable<z.ZodString>;
4899
+ channel: z.ZodNullable<z.ZodString>;
4900
+ notes: z.ZodNullable<z.ZodString>;
4901
+ contactProfile: z.ZodNullable<z.ZodString>;
4902
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4903
+ tags: z.ZodArray<z.ZodObject<{
4904
+ id: z.ZodString;
4905
+ createdAt: z.ZodDate;
4906
+ updatedAt: z.ZodDate;
4907
+ deletedAt: z.ZodNullable<z.ZodDate>;
4908
+ name: z.ZodString;
4909
+ }, "strip", z.ZodTypeAny, {
4910
+ id: string;
4911
+ name: string;
4912
+ createdAt: Date;
4913
+ updatedAt: Date;
4914
+ deletedAt: Date | null;
4915
+ }, {
4916
+ id: string;
4917
+ name: string;
4918
+ createdAt: Date;
4919
+ updatedAt: Date;
4920
+ deletedAt: Date | null;
4921
+ }>, "many">;
4922
+ company: z.ZodNullable<z.ZodObject<Omit<{
4923
+ id: z.ZodString;
4924
+ createdAt: z.ZodDate;
4925
+ updatedAt: z.ZodDate;
4926
+ deletedAt: z.ZodNullable<z.ZodDate>;
4927
+ name: z.ZodOptional<z.ZodString>;
4928
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4929
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4930
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4931
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4932
+ id: z.ZodString;
4933
+ createdAt: z.ZodDate;
4934
+ updatedAt: z.ZodDate;
4935
+ deletedAt: z.ZodNullable<z.ZodDate>;
4936
+ textValue: z.ZodNullable<z.ZodString>;
4937
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4938
+ numberValue: z.ZodNullable<z.ZodNumber>;
4939
+ dateValue: z.ZodNullable<z.ZodString>;
4940
+ attribute: z.ZodObject<Omit<{
4941
+ id: z.ZodString;
4942
+ createdAt: z.ZodDate;
4943
+ updatedAt: z.ZodDate;
4944
+ deletedAt: z.ZodNullable<z.ZodDate>;
4945
+ systemName: z.ZodString;
4946
+ displayName: z.ZodString;
4947
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4948
+ position: z.ZodNumber;
4949
+ isDefault: z.ZodBoolean;
4950
+ isArchived: z.ZodBoolean;
4951
+ isRequired: z.ZodBoolean;
4952
+ isUnique: z.ZodBoolean;
4953
+ options: z.ZodArray<z.ZodObject<{
4954
+ position: z.ZodNumber;
4955
+ value: z.ZodString;
4956
+ label: z.ZodString;
4957
+ isDefault: z.ZodBoolean;
4958
+ id: z.ZodString;
4959
+ }, "strip", z.ZodTypeAny, {
4960
+ id: string;
4961
+ position: number;
4962
+ value: string;
4963
+ label: string;
4964
+ isDefault: boolean;
4965
+ }, {
4966
+ id: string;
4967
+ position: number;
4968
+ value: string;
4969
+ label: string;
4970
+ isDefault: boolean;
4971
+ }>, "many">;
4972
+ group: z.ZodObject<{
4973
+ id: z.ZodString;
4974
+ createdAt: z.ZodDate;
4975
+ updatedAt: z.ZodDate;
4976
+ deletedAt: z.ZodNullable<z.ZodDate>;
4977
+ systemName: z.ZodString;
4978
+ displayName: z.ZodString;
4979
+ }, "strip", z.ZodTypeAny, {
4980
+ id: string;
4981
+ createdAt: Date;
4982
+ updatedAt: Date;
4983
+ deletedAt: Date | null;
4984
+ systemName: string;
4985
+ displayName: string;
4986
+ }, {
4987
+ id: string;
4988
+ createdAt: Date;
4989
+ updatedAt: Date;
4990
+ deletedAt: Date | null;
4991
+ systemName: string;
4992
+ displayName: string;
4993
+ }>;
4994
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4995
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4996
+ id: string;
4997
+ position: number;
4998
+ createdAt: Date;
4999
+ updatedAt: Date;
5000
+ deletedAt: Date | null;
5001
+ isDefault: boolean;
5002
+ systemName: string;
5003
+ displayName: string;
5004
+ isArchived: boolean;
5005
+ isRequired: boolean;
5006
+ isUnique: boolean;
5007
+ }, {
5008
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5009
+ id: string;
5010
+ position: number;
5011
+ createdAt: Date;
5012
+ updatedAt: Date;
5013
+ deletedAt: Date | null;
5014
+ isDefault: boolean;
5015
+ systemName: string;
5016
+ displayName: string;
5017
+ isArchived: boolean;
5018
+ isRequired: boolean;
5019
+ isUnique: boolean;
5020
+ }>;
5021
+ }, "strip", z.ZodTypeAny, {
5022
+ id: string;
5023
+ createdAt: Date;
5024
+ updatedAt: Date;
5025
+ deletedAt: Date | null;
5026
+ attribute: {
5027
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5028
+ id: string;
5029
+ position: number;
5030
+ createdAt: Date;
5031
+ updatedAt: Date;
5032
+ deletedAt: Date | null;
5033
+ isDefault: boolean;
5034
+ systemName: string;
5035
+ displayName: string;
5036
+ isArchived: boolean;
5037
+ isRequired: boolean;
5038
+ isUnique: boolean;
5039
+ };
5040
+ textValue: string | null;
5041
+ booleanValue: boolean | null;
5042
+ numberValue: number | null;
5043
+ dateValue: string | null;
5044
+ }, {
5045
+ id: string;
5046
+ createdAt: Date;
5047
+ updatedAt: Date;
5048
+ deletedAt: Date | null;
5049
+ attribute: {
5050
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5051
+ id: string;
5052
+ position: number;
5053
+ createdAt: Date;
5054
+ updatedAt: Date;
5055
+ deletedAt: Date | null;
5056
+ isDefault: boolean;
5057
+ systemName: string;
5058
+ displayName: string;
5059
+ isArchived: boolean;
5060
+ isRequired: boolean;
5061
+ isUnique: boolean;
5062
+ };
5063
+ textValue: string | null;
5064
+ booleanValue: boolean | null;
5065
+ numberValue: number | null;
5066
+ dateValue: string | null;
5067
+ }>, "many">>;
5068
+ }, "customFields">, "strip", z.ZodTypeAny, {
5069
+ id: string;
5070
+ createdAt: Date;
5071
+ updatedAt: Date;
5072
+ deletedAt: Date | null;
5073
+ address?: string | null | undefined;
5074
+ name?: string | undefined;
5075
+ phone?: string | null | undefined;
5076
+ industry?: string | null | undefined;
5077
+ }, {
5078
+ id: string;
5079
+ createdAt: Date;
5080
+ updatedAt: Date;
5081
+ deletedAt: Date | null;
5082
+ address?: string | null | undefined;
5083
+ name?: string | undefined;
5084
+ phone?: string | null | undefined;
5085
+ industry?: string | null | undefined;
5086
+ }>>;
5087
+ customFields: z.ZodArray<z.ZodObject<{
5088
+ id: z.ZodString;
5089
+ createdAt: z.ZodDate;
5090
+ updatedAt: z.ZodDate;
5091
+ deletedAt: z.ZodNullable<z.ZodDate>;
5092
+ textValue: z.ZodNullable<z.ZodString>;
5093
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5094
+ numberValue: z.ZodNullable<z.ZodNumber>;
5095
+ dateValue: z.ZodNullable<z.ZodDate>;
5096
+ attribute: z.ZodObject<Omit<{
5097
+ id: z.ZodString;
5098
+ createdAt: z.ZodDate;
5099
+ updatedAt: z.ZodDate;
5100
+ deletedAt: z.ZodNullable<z.ZodDate>;
5101
+ systemName: z.ZodString;
5102
+ displayName: z.ZodString;
5103
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5104
+ position: z.ZodNumber;
5105
+ isDefault: z.ZodBoolean;
5106
+ isArchived: z.ZodBoolean;
5107
+ isRequired: z.ZodBoolean;
5108
+ isUnique: z.ZodBoolean;
5109
+ options: z.ZodArray<z.ZodObject<{
5110
+ position: z.ZodNumber;
5111
+ value: z.ZodString;
5112
+ label: z.ZodString;
5113
+ isDefault: z.ZodBoolean;
5114
+ id: z.ZodString;
5115
+ }, "strip", z.ZodTypeAny, {
5116
+ id: string;
5117
+ position: number;
5118
+ value: string;
5119
+ label: string;
5120
+ isDefault: boolean;
5121
+ }, {
5122
+ id: string;
5123
+ position: number;
5124
+ value: string;
5125
+ label: string;
5126
+ isDefault: boolean;
5127
+ }>, "many">;
5128
+ group: z.ZodObject<{
5129
+ id: z.ZodString;
5130
+ createdAt: z.ZodDate;
5131
+ updatedAt: z.ZodDate;
5132
+ deletedAt: z.ZodNullable<z.ZodDate>;
5133
+ systemName: z.ZodString;
5134
+ displayName: z.ZodString;
5135
+ }, "strip", z.ZodTypeAny, {
5136
+ id: string;
5137
+ createdAt: Date;
5138
+ updatedAt: Date;
5139
+ deletedAt: Date | null;
5140
+ systemName: string;
5141
+ displayName: string;
5142
+ }, {
5143
+ id: string;
5144
+ createdAt: Date;
5145
+ updatedAt: Date;
5146
+ deletedAt: Date | null;
5147
+ systemName: string;
5148
+ displayName: string;
5149
+ }>;
5150
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5151
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5152
+ id: string;
5153
+ position: number;
5154
+ createdAt: Date;
5155
+ updatedAt: Date;
5156
+ deletedAt: Date | null;
5157
+ isDefault: boolean;
5158
+ systemName: string;
5159
+ displayName: string;
5160
+ isArchived: boolean;
5161
+ isRequired: boolean;
5162
+ isUnique: boolean;
5163
+ }, {
5164
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5165
+ id: string;
5166
+ position: number;
5167
+ createdAt: Date;
5168
+ updatedAt: Date;
5169
+ deletedAt: Date | null;
5170
+ isDefault: boolean;
5171
+ systemName: string;
5172
+ displayName: string;
5173
+ isArchived: boolean;
5174
+ isRequired: boolean;
5175
+ isUnique: boolean;
5176
+ }>;
5177
+ uploads: z.ZodArray<z.ZodObject<{
5178
+ id: z.ZodString;
5179
+ createdAt: z.ZodDate;
5180
+ updatedAt: z.ZodDate;
5181
+ deletedAt: z.ZodNullable<z.ZodDate>;
5182
+ customFieldId: z.ZodString;
5183
+ upload: z.ZodObject<{
5184
+ id: z.ZodString;
5185
+ createdAt: z.ZodDate;
5186
+ updatedAt: z.ZodDate;
5187
+ deletedAt: z.ZodNullable<z.ZodDate>;
5188
+ bucketName: z.ZodString;
5189
+ fileName: z.ZodString;
5190
+ fileSize: z.ZodNumber;
5191
+ fileKey: z.ZodString;
5192
+ }, "strip", z.ZodTypeAny, {
5193
+ id: string;
5194
+ createdAt: Date;
5195
+ updatedAt: Date;
5196
+ deletedAt: Date | null;
5197
+ fileName: string;
5198
+ fileKey: string;
5199
+ bucketName: string;
5200
+ fileSize: number;
5201
+ }, {
5202
+ id: string;
5203
+ createdAt: Date;
5204
+ updatedAt: Date;
5205
+ deletedAt: Date | null;
5206
+ fileName: string;
5207
+ fileKey: string;
5208
+ bucketName: string;
5209
+ fileSize: number;
5210
+ }>;
5211
+ }, "strip", z.ZodTypeAny, {
5212
+ id: string;
5213
+ createdAt: Date;
5214
+ updatedAt: Date;
5215
+ deletedAt: Date | null;
5216
+ customFieldId: string;
5217
+ upload: {
5218
+ id: string;
5219
+ createdAt: Date;
5220
+ updatedAt: Date;
5221
+ deletedAt: Date | null;
5222
+ fileName: string;
5223
+ fileKey: string;
5224
+ bucketName: string;
5225
+ fileSize: number;
5226
+ };
5227
+ }, {
5228
+ id: string;
5229
+ createdAt: Date;
5230
+ updatedAt: Date;
5231
+ deletedAt: Date | null;
5232
+ customFieldId: string;
5233
+ upload: {
5234
+ id: string;
5235
+ createdAt: Date;
5236
+ updatedAt: Date;
5237
+ deletedAt: Date | null;
5238
+ fileName: string;
5239
+ fileKey: string;
5240
+ bucketName: string;
5241
+ fileSize: number;
5242
+ };
5243
+ }>, "many">;
5244
+ }, "strip", z.ZodTypeAny, {
5245
+ id: string;
5246
+ createdAt: Date;
5247
+ updatedAt: Date;
5248
+ deletedAt: Date | null;
5249
+ attribute: {
5250
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5251
+ id: string;
5252
+ position: number;
5253
+ createdAt: Date;
5254
+ updatedAt: Date;
5255
+ deletedAt: Date | null;
5256
+ isDefault: boolean;
5257
+ systemName: string;
5258
+ displayName: string;
5259
+ isArchived: boolean;
5260
+ isRequired: boolean;
5261
+ isUnique: boolean;
5262
+ };
5263
+ textValue: string | null;
5264
+ booleanValue: boolean | null;
5265
+ numberValue: number | null;
5266
+ dateValue: Date | null;
5267
+ uploads: {
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
+ }[];
5284
+ }, {
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
+ }>, "many">;
5325
+ contactEmails: z.ZodArray<z.ZodObject<{
5326
+ id: z.ZodString;
5327
+ createdAt: z.ZodDate;
5328
+ updatedAt: z.ZodDate;
5329
+ deletedAt: z.ZodNullable<z.ZodDate>;
5330
+ email: z.ZodString;
5331
+ isPrimary: z.ZodBoolean;
5332
+ }, "strip", z.ZodTypeAny, {
5333
+ id: string;
5334
+ isPrimary: boolean;
5335
+ email: string;
5336
+ createdAt: Date;
5337
+ updatedAt: Date;
5338
+ deletedAt: Date | null;
5339
+ }, {
5340
+ id: string;
5341
+ isPrimary: boolean;
5342
+ email: string;
5343
+ createdAt: Date;
5344
+ updatedAt: Date;
5345
+ deletedAt: Date | null;
5346
+ }>, "many">;
5347
+ contactPhones: z.ZodArray<z.ZodObject<{
5348
+ id: z.ZodString;
5349
+ createdAt: z.ZodDate;
5350
+ updatedAt: z.ZodDate;
5351
+ deletedAt: z.ZodNullable<z.ZodDate>;
5352
+ phone: z.ZodString;
5353
+ isPrimary: z.ZodBoolean;
5354
+ }, "strip", z.ZodTypeAny, {
5355
+ id: string;
5356
+ isPrimary: boolean;
5357
+ createdAt: Date;
5358
+ updatedAt: Date;
5359
+ deletedAt: Date | null;
5360
+ phone: string;
5361
+ }, {
5362
+ id: string;
5363
+ isPrimary: boolean;
5364
+ createdAt: Date;
5365
+ updatedAt: Date;
5366
+ deletedAt: Date | null;
5367
+ phone: string;
5368
+ }>, "many">;
5369
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5370
+ id: z.ZodString;
5371
+ createdAt: z.ZodDate;
5372
+ updatedAt: z.ZodDate;
5373
+ deletedAt: z.ZodNullable<z.ZodDate>;
5374
+ entityId: z.ZodString;
5375
+ description: z.ZodString;
5376
+ entityType: z.ZodObject<{
5377
+ id: z.ZodString;
5378
+ createdAt: z.ZodDate;
5379
+ updatedAt: z.ZodDate;
5380
+ deletedAt: z.ZodNullable<z.ZodDate>;
5381
+ entity: z.ZodString;
5382
+ description: z.ZodNullable<z.ZodString>;
5383
+ }, "strip", z.ZodTypeAny, {
5384
+ id: string;
5385
+ description: string | null;
5386
+ createdAt: Date;
5387
+ updatedAt: Date;
5388
+ deletedAt: Date | null;
5389
+ entity: string;
5390
+ }, {
5391
+ id: string;
5392
+ description: string | null;
5393
+ createdAt: Date;
5394
+ updatedAt: Date;
5395
+ deletedAt: Date | null;
5396
+ entity: string;
5397
+ }>;
5398
+ }, "strip", z.ZodTypeAny, {
5399
+ id: string;
5400
+ description: string;
5401
+ createdAt: Date;
5402
+ updatedAt: Date;
5403
+ deletedAt: Date | null;
5404
+ entityId: string;
5405
+ entityType: {
5406
+ id: string;
5407
+ description: string | null;
5408
+ createdAt: Date;
5409
+ updatedAt: Date;
5410
+ deletedAt: Date | null;
5411
+ entity: string;
5412
+ };
5413
+ }, {
5414
+ id: string;
5415
+ description: string;
5416
+ createdAt: Date;
5417
+ updatedAt: Date;
5418
+ deletedAt: Date | null;
5419
+ entityId: string;
5420
+ entityType: {
5421
+ id: string;
5422
+ description: string | null;
5423
+ createdAt: Date;
5424
+ updatedAt: Date;
5425
+ deletedAt: Date | null;
5426
+ entity: string;
5427
+ };
5428
+ }>, "many">>;
5429
+ }, "strip", z.ZodTypeAny, {
5430
+ id: string;
5431
+ channel: string | null;
5432
+ address: string | null;
5433
+ name: string;
5434
+ createdAt: Date;
5435
+ updatedAt: Date;
5436
+ deletedAt: Date | null;
5437
+ customFields: {
5438
+ id: string;
5439
+ createdAt: Date;
5440
+ updatedAt: Date;
5441
+ deletedAt: Date | null;
5442
+ attribute: {
5443
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5444
+ id: string;
5445
+ position: number;
5446
+ createdAt: Date;
5447
+ updatedAt: Date;
5448
+ deletedAt: Date | null;
5449
+ isDefault: boolean;
5450
+ systemName: string;
5451
+ displayName: string;
5452
+ isArchived: boolean;
5453
+ isRequired: boolean;
5454
+ isUnique: boolean;
5455
+ };
5456
+ textValue: string | null;
5457
+ booleanValue: boolean | null;
5458
+ numberValue: number | null;
5459
+ dateValue: Date | null;
5460
+ uploads: {
5461
+ id: string;
5462
+ createdAt: Date;
5463
+ updatedAt: Date;
5464
+ deletedAt: Date | null;
5465
+ customFieldId: string;
5466
+ upload: {
5467
+ id: string;
5468
+ createdAt: Date;
5469
+ updatedAt: Date;
5470
+ deletedAt: Date | null;
5471
+ fileName: string;
5472
+ fileKey: string;
5473
+ bucketName: string;
5474
+ fileSize: number;
5475
+ };
5476
+ }[];
5477
+ }[];
5478
+ notes: string | null;
5479
+ contactProfile: string | null;
5480
+ socialProfileUrl: string | null;
5481
+ tags: {
5482
+ id: string;
5483
+ name: string;
5484
+ createdAt: Date;
5485
+ updatedAt: Date;
5486
+ deletedAt: Date | null;
5487
+ }[];
5488
+ company: {
5489
+ id: string;
5490
+ createdAt: Date;
5491
+ updatedAt: Date;
5492
+ deletedAt: Date | null;
5493
+ address?: string | null | undefined;
5494
+ name?: string | undefined;
5495
+ phone?: string | null | undefined;
5496
+ industry?: string | null | undefined;
5497
+ } | null;
5498
+ contactEmails: {
5499
+ id: string;
5500
+ isPrimary: boolean;
5501
+ email: string;
5502
+ createdAt: Date;
5503
+ updatedAt: Date;
5504
+ deletedAt: Date | null;
5505
+ }[];
5506
+ contactPhones: {
5507
+ id: string;
5508
+ isPrimary: boolean;
5509
+ createdAt: Date;
5510
+ updatedAt: Date;
5511
+ deletedAt: Date | null;
5512
+ phone: string;
5513
+ }[];
5514
+ activityLogs?: {
5515
+ id: string;
5516
+ description: string;
5517
+ createdAt: Date;
5518
+ updatedAt: Date;
5519
+ deletedAt: Date | null;
5520
+ entityId: string;
5521
+ entityType: {
5522
+ id: string;
5523
+ description: string | null;
5524
+ createdAt: Date;
5525
+ updatedAt: Date;
5526
+ deletedAt: Date | null;
5527
+ entity: string;
5528
+ };
5529
+ }[] | undefined;
5530
+ }, {
5531
+ id: string;
5532
+ channel: string | null;
5533
+ address: string | null;
5534
+ name: string;
5535
+ createdAt: Date;
5536
+ updatedAt: Date;
5537
+ deletedAt: Date | null;
5538
+ customFields: {
5539
+ id: string;
5540
+ createdAt: Date;
5541
+ updatedAt: Date;
5542
+ deletedAt: Date | null;
5543
+ attribute: {
5544
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5545
+ id: string;
5546
+ position: number;
5547
+ createdAt: Date;
5548
+ updatedAt: Date;
5549
+ deletedAt: Date | null;
5550
+ isDefault: boolean;
5551
+ systemName: string;
5552
+ displayName: string;
5553
+ isArchived: boolean;
5554
+ isRequired: boolean;
5555
+ isUnique: boolean;
5556
+ };
5557
+ textValue: string | null;
5558
+ booleanValue: boolean | null;
5559
+ numberValue: number | null;
5560
+ dateValue: Date | null;
5561
+ uploads: {
5562
+ id: string;
5563
+ createdAt: Date;
5564
+ updatedAt: Date;
5565
+ deletedAt: Date | null;
5566
+ customFieldId: string;
5567
+ upload: {
5568
+ id: string;
5569
+ createdAt: Date;
5570
+ updatedAt: Date;
5571
+ deletedAt: Date | null;
5572
+ fileName: string;
5573
+ fileKey: string;
5574
+ bucketName: string;
5575
+ fileSize: number;
5576
+ };
5577
+ }[];
5578
+ }[];
5579
+ notes: string | null;
5580
+ contactProfile: string | null;
5581
+ socialProfileUrl: string | null;
5582
+ tags: {
5583
+ id: string;
5584
+ name: string;
5585
+ createdAt: Date;
5586
+ updatedAt: Date;
5587
+ deletedAt: Date | null;
5588
+ }[];
5589
+ company: {
5590
+ id: string;
5591
+ createdAt: Date;
5592
+ updatedAt: Date;
5593
+ deletedAt: Date | null;
5594
+ address?: string | null | undefined;
5595
+ name?: string | undefined;
5596
+ phone?: string | null | undefined;
5597
+ industry?: string | null | undefined;
5598
+ } | null;
5599
+ contactEmails: {
5600
+ id: string;
5601
+ isPrimary: boolean;
5602
+ email: string;
5603
+ createdAt: Date;
5604
+ updatedAt: Date;
5605
+ deletedAt: Date | null;
5606
+ }[];
5607
+ contactPhones: {
5608
+ id: string;
5609
+ isPrimary: boolean;
5610
+ createdAt: Date;
5611
+ updatedAt: Date;
5612
+ deletedAt: Date | null;
5613
+ phone: string;
5614
+ }[];
5615
+ activityLogs?: {
5616
+ id: string;
5617
+ description: string;
5618
+ createdAt: Date;
5619
+ updatedAt: Date;
5620
+ deletedAt: Date | null;
5621
+ entityId: string;
5622
+ entityType: {
5623
+ id: string;
5624
+ description: string | null;
5625
+ createdAt: Date;
5626
+ updatedAt: Date;
5627
+ deletedAt: Date | null;
5628
+ entity: string;
5629
+ };
5630
+ }[] | undefined;
5631
+ }>;
5632
+ }, "strip", z.ZodTypeAny, {
5633
+ data: {
5634
+ id: string;
5635
+ channel: string | null;
5636
+ address: string | null;
5637
+ name: string;
5638
+ createdAt: Date;
5639
+ updatedAt: Date;
5640
+ deletedAt: Date | null;
5641
+ customFields: {
5642
+ id: string;
5643
+ createdAt: Date;
5644
+ updatedAt: Date;
5645
+ deletedAt: Date | null;
5646
+ attribute: {
5647
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5648
+ id: string;
5649
+ position: number;
5650
+ createdAt: Date;
5651
+ updatedAt: Date;
5652
+ deletedAt: Date | null;
5653
+ isDefault: boolean;
5654
+ systemName: string;
5655
+ displayName: string;
5656
+ isArchived: boolean;
5657
+ isRequired: boolean;
5658
+ isUnique: boolean;
5659
+ };
5660
+ textValue: string | null;
5661
+ booleanValue: boolean | null;
5662
+ numberValue: number | null;
5663
+ dateValue: Date | null;
5664
+ uploads: {
5665
+ id: string;
5666
+ createdAt: Date;
5667
+ updatedAt: Date;
5668
+ deletedAt: Date | null;
5669
+ customFieldId: string;
5670
+ upload: {
5671
+ id: string;
5672
+ createdAt: Date;
5673
+ updatedAt: Date;
5674
+ deletedAt: Date | null;
5675
+ fileName: string;
5676
+ fileKey: string;
5677
+ bucketName: string;
5678
+ fileSize: number;
5679
+ };
5680
+ }[];
5681
+ }[];
5682
+ notes: string | null;
5683
+ contactProfile: string | null;
5684
+ socialProfileUrl: string | null;
5685
+ tags: {
5686
+ id: string;
5687
+ name: string;
5688
+ createdAt: Date;
5689
+ updatedAt: Date;
5690
+ deletedAt: Date | null;
5691
+ }[];
5692
+ company: {
5693
+ id: string;
5694
+ createdAt: Date;
5695
+ updatedAt: Date;
5696
+ deletedAt: Date | null;
5697
+ address?: string | null | undefined;
5698
+ name?: string | undefined;
5699
+ phone?: string | null | undefined;
5700
+ industry?: string | null | undefined;
5701
+ } | null;
5702
+ contactEmails: {
5703
+ id: string;
5704
+ isPrimary: boolean;
5705
+ email: string;
5706
+ createdAt: Date;
5707
+ updatedAt: Date;
5708
+ deletedAt: Date | null;
5709
+ }[];
5710
+ contactPhones: {
5711
+ id: string;
5712
+ isPrimary: boolean;
5713
+ createdAt: Date;
5714
+ updatedAt: Date;
5715
+ deletedAt: Date | null;
5716
+ phone: string;
5717
+ }[];
5718
+ activityLogs?: {
5719
+ id: string;
5720
+ description: string;
5721
+ createdAt: Date;
5722
+ updatedAt: Date;
5723
+ deletedAt: Date | null;
5724
+ entityId: string;
5725
+ entityType: {
5726
+ id: string;
5727
+ description: string | null;
5728
+ createdAt: Date;
5729
+ updatedAt: Date;
5730
+ deletedAt: Date | null;
5731
+ entity: string;
5732
+ };
5733
+ }[] | undefined;
5734
+ };
5735
+ requestId: string;
5736
+ }, {
5737
+ data: {
5738
+ id: string;
5739
+ channel: string | null;
5740
+ address: string | null;
5741
+ name: string;
5742
+ createdAt: Date;
5743
+ updatedAt: Date;
5744
+ deletedAt: Date | null;
5745
+ customFields: {
5746
+ id: string;
5747
+ createdAt: Date;
5748
+ updatedAt: Date;
5749
+ deletedAt: Date | null;
5750
+ attribute: {
5751
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5752
+ id: string;
5753
+ position: number;
5754
+ createdAt: Date;
5755
+ updatedAt: Date;
5756
+ deletedAt: Date | null;
5757
+ isDefault: boolean;
5758
+ systemName: string;
5759
+ displayName: string;
5760
+ isArchived: boolean;
5761
+ isRequired: boolean;
5762
+ isUnique: boolean;
5763
+ };
5764
+ textValue: string | null;
5765
+ booleanValue: boolean | null;
5766
+ numberValue: number | null;
5767
+ dateValue: Date | null;
5768
+ uploads: {
5769
+ id: string;
5770
+ createdAt: Date;
5771
+ updatedAt: Date;
5772
+ deletedAt: Date | null;
5773
+ customFieldId: string;
5774
+ upload: {
5775
+ id: string;
5776
+ createdAt: Date;
5777
+ updatedAt: Date;
5778
+ deletedAt: Date | null;
5779
+ fileName: string;
5780
+ fileKey: string;
5781
+ bucketName: string;
5782
+ fileSize: number;
5783
+ };
5784
+ }[];
5785
+ }[];
5786
+ notes: string | null;
5787
+ contactProfile: string | null;
5788
+ socialProfileUrl: string | null;
5789
+ tags: {
5790
+ id: string;
5791
+ name: string;
5792
+ createdAt: Date;
5793
+ updatedAt: Date;
5794
+ deletedAt: Date | null;
5795
+ }[];
5796
+ company: {
5797
+ id: string;
5798
+ createdAt: Date;
5799
+ updatedAt: Date;
5800
+ deletedAt: Date | null;
5801
+ address?: string | null | undefined;
5802
+ name?: string | undefined;
5803
+ phone?: string | null | undefined;
5804
+ industry?: string | null | undefined;
5805
+ } | null;
5806
+ contactEmails: {
5807
+ id: string;
5808
+ isPrimary: boolean;
5809
+ email: string;
5810
+ createdAt: Date;
5811
+ updatedAt: Date;
5812
+ deletedAt: Date | null;
5813
+ }[];
5814
+ contactPhones: {
5815
+ id: string;
5816
+ isPrimary: boolean;
5817
+ createdAt: Date;
5818
+ updatedAt: Date;
5819
+ deletedAt: Date | null;
5820
+ phone: string;
5821
+ }[];
5822
+ activityLogs?: {
5823
+ id: string;
5824
+ description: string;
5825
+ createdAt: Date;
5826
+ updatedAt: Date;
5827
+ deletedAt: Date | null;
5828
+ entityId: string;
5829
+ entityType: {
5830
+ id: string;
5831
+ description: string | null;
5832
+ createdAt: Date;
5833
+ updatedAt: Date;
5834
+ deletedAt: Date | null;
5835
+ entity: string;
5836
+ };
5837
+ }[] | undefined;
5838
+ };
5839
+ requestId: string;
5840
+ }>;
5841
+ 400: z.ZodObject<{
5842
+ message: z.ZodString;
5843
+ }, "strip", z.ZodTypeAny, {
5844
+ message: string;
5845
+ }, {
5846
+ message: string;
5847
+ }>;
5848
+ 409: z.ZodObject<{
5849
+ message: z.ZodString;
5850
+ }, "strip", z.ZodTypeAny, {
5851
+ message: string;
5852
+ }, {
5853
+ message: string;
5854
+ }>;
5855
+ 500: z.ZodObject<{
5856
+ message: z.ZodString;
5857
+ }, "strip", z.ZodTypeAny, {
5858
+ message: string;
5859
+ }, {
5860
+ message: string;
5861
+ }>;
5862
+ 401: z.ZodObject<{
5863
+ message: z.ZodString;
5864
+ error: z.ZodAny;
5865
+ }, "strip", z.ZodTypeAny, {
5866
+ message: string;
5867
+ error?: any;
5868
+ }, {
5869
+ message: string;
5870
+ error?: any;
5871
+ }>;
5872
+ 404: z.ZodObject<{
5873
+ message: z.ZodString;
5874
+ error: z.ZodAny;
5875
+ }, "strip", z.ZodTypeAny, {
5876
+ message: string;
5877
+ error?: any;
5878
+ }, {
5879
+ message: string;
5880
+ error?: any;
5881
+ }>;
5882
+ 422: z.ZodObject<{
5883
+ message: z.ZodString;
5884
+ error: z.ZodAny;
5885
+ }, "strip", z.ZodTypeAny, {
5886
+ message: string;
5887
+ error?: any;
5888
+ }, {
5889
+ message: string;
5890
+ error?: any;
5891
+ }>;
5892
+ };
5893
+ path: "contact/:id/ongoing";
5894
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5895
+ 'x-tenant': z.ZodString;
5896
+ authorization: z.ZodString;
5897
+ }, "strip", z.ZodTypeAny, {
5898
+ 'x-tenant': string;
5899
+ authorization: string;
5900
+ }, {
5901
+ 'x-tenant': string;
5902
+ authorization: string;
5903
+ }>>>;
5904
+ };
5905
+ merge: {
5906
+ body: z.ZodObject<{
5907
+ primaryContactId: z.ZodString;
5908
+ emails: z.ZodArray<z.ZodObject<{
5909
+ email: z.ZodString;
5910
+ isPrimary: z.ZodBoolean;
5911
+ }, "strip", z.ZodTypeAny, {
5912
+ isPrimary: boolean;
5913
+ email: string;
5914
+ }, {
5915
+ isPrimary: boolean;
5916
+ email: string;
5917
+ }>, "many">;
5918
+ phones: z.ZodArray<z.ZodObject<{
5919
+ phone: z.ZodString;
5920
+ isPrimary: z.ZodBoolean;
5921
+ }, "strip", z.ZodTypeAny, {
5922
+ isPrimary: boolean;
5923
+ phone: string;
5924
+ }, {
5925
+ isPrimary: boolean;
5926
+ phone: string;
5927
+ }>, "many">;
5928
+ otherContacts: z.ZodArray<z.ZodString, "many">;
5929
+ }, "strip", z.ZodTypeAny, {
5930
+ primaryContactId: string;
5931
+ emails: {
5932
+ isPrimary: boolean;
5933
+ email: string;
5934
+ }[];
5935
+ phones: {
5936
+ isPrimary: boolean;
5937
+ phone: string;
5938
+ }[];
5939
+ otherContacts: string[];
5940
+ }, {
5941
+ primaryContactId: string;
5942
+ emails: {
5943
+ isPrimary: boolean;
5944
+ email: string;
5945
+ }[];
5946
+ phones: {
5947
+ isPrimary: boolean;
5948
+ phone: string;
5949
+ }[];
5950
+ otherContacts: string[];
5951
+ }>;
5952
+ summary: "Merge contacts into a single contact.";
5953
+ method: "POST";
5954
+ responses: {
5955
+ 200: z.ZodObject<{
5956
+ requestId: z.ZodString;
5957
+ data: z.ZodObject<{
5958
+ id: z.ZodString;
5959
+ createdAt: z.ZodDate;
5960
+ updatedAt: z.ZodDate;
5961
+ deletedAt: z.ZodNullable<z.ZodDate>;
5962
+ name: z.ZodString;
5963
+ address: z.ZodNullable<z.ZodString>;
5964
+ channel: z.ZodNullable<z.ZodString>;
5965
+ notes: z.ZodNullable<z.ZodString>;
5966
+ contactProfile: z.ZodNullable<z.ZodString>;
5967
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
5968
+ tags: z.ZodArray<z.ZodObject<{
5969
+ id: z.ZodString;
5970
+ createdAt: z.ZodDate;
5971
+ updatedAt: z.ZodDate;
5972
+ deletedAt: z.ZodNullable<z.ZodDate>;
5973
+ name: z.ZodString;
5974
+ }, "strip", z.ZodTypeAny, {
5975
+ id: string;
5976
+ name: string;
5977
+ createdAt: Date;
5978
+ updatedAt: Date;
5979
+ deletedAt: Date | null;
5980
+ }, {
5981
+ id: string;
5982
+ name: string;
5983
+ createdAt: Date;
5984
+ updatedAt: Date;
5985
+ deletedAt: Date | null;
5986
+ }>, "many">;
5987
+ company: z.ZodNullable<z.ZodObject<Omit<{
5988
+ id: z.ZodString;
5989
+ createdAt: z.ZodDate;
5990
+ updatedAt: z.ZodDate;
5991
+ deletedAt: z.ZodNullable<z.ZodDate>;
5992
+ name: z.ZodOptional<z.ZodString>;
5993
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5994
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5995
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5996
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
5997
+ id: z.ZodString;
5998
+ createdAt: z.ZodDate;
5999
+ updatedAt: z.ZodDate;
6000
+ deletedAt: z.ZodNullable<z.ZodDate>;
6001
+ textValue: z.ZodNullable<z.ZodString>;
6002
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
6003
+ numberValue: z.ZodNullable<z.ZodNumber>;
6004
+ dateValue: z.ZodNullable<z.ZodString>;
6005
+ attribute: z.ZodObject<Omit<{
6006
+ id: z.ZodString;
6007
+ createdAt: z.ZodDate;
6008
+ updatedAt: z.ZodDate;
6009
+ deletedAt: z.ZodNullable<z.ZodDate>;
6010
+ systemName: z.ZodString;
6011
+ displayName: z.ZodString;
6012
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
6013
+ position: z.ZodNumber;
6014
+ isDefault: z.ZodBoolean;
6015
+ isArchived: z.ZodBoolean;
6016
+ isRequired: z.ZodBoolean;
6017
+ isUnique: z.ZodBoolean;
6018
+ options: z.ZodArray<z.ZodObject<{
6019
+ position: z.ZodNumber;
6020
+ value: z.ZodString;
6021
+ label: z.ZodString;
6022
+ isDefault: z.ZodBoolean;
6023
+ id: z.ZodString;
6024
+ }, "strip", z.ZodTypeAny, {
6025
+ id: string;
6026
+ position: number;
6027
+ value: string;
6028
+ label: string;
6029
+ isDefault: boolean;
6030
+ }, {
6031
+ id: string;
6032
+ position: number;
6033
+ value: string;
6034
+ label: string;
6035
+ isDefault: boolean;
6036
+ }>, "many">;
6037
+ group: z.ZodObject<{
6038
+ id: z.ZodString;
6039
+ createdAt: z.ZodDate;
6040
+ updatedAt: z.ZodDate;
6041
+ deletedAt: z.ZodNullable<z.ZodDate>;
6042
+ systemName: z.ZodString;
6043
+ displayName: z.ZodString;
6044
+ }, "strip", z.ZodTypeAny, {
6045
+ id: string;
6046
+ createdAt: Date;
6047
+ updatedAt: Date;
6048
+ deletedAt: Date | null;
6049
+ systemName: string;
6050
+ displayName: string;
6051
+ }, {
6052
+ id: string;
6053
+ createdAt: Date;
6054
+ updatedAt: Date;
6055
+ deletedAt: Date | null;
6056
+ systemName: string;
6057
+ displayName: string;
6058
+ }>;
6059
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
6060
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6061
+ id: string;
6062
+ position: number;
6063
+ createdAt: Date;
6064
+ updatedAt: Date;
6065
+ deletedAt: Date | null;
6066
+ isDefault: boolean;
6067
+ systemName: string;
6068
+ displayName: string;
6069
+ isArchived: boolean;
6070
+ isRequired: boolean;
6071
+ isUnique: boolean;
6072
+ }, {
6073
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6074
+ id: string;
6075
+ position: number;
6076
+ createdAt: Date;
6077
+ updatedAt: Date;
6078
+ deletedAt: Date | null;
6079
+ isDefault: boolean;
6080
+ systemName: string;
6081
+ displayName: string;
6082
+ isArchived: boolean;
6083
+ isRequired: boolean;
6084
+ isUnique: boolean;
6085
+ }>;
6086
+ }, "strip", z.ZodTypeAny, {
6087
+ id: string;
6088
+ createdAt: Date;
6089
+ updatedAt: Date;
6090
+ deletedAt: Date | null;
6091
+ attribute: {
6092
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6093
+ id: string;
6094
+ position: number;
6095
+ createdAt: Date;
6096
+ updatedAt: Date;
6097
+ deletedAt: Date | null;
6098
+ isDefault: boolean;
6099
+ systemName: string;
6100
+ displayName: string;
6101
+ isArchived: boolean;
6102
+ isRequired: boolean;
6103
+ isUnique: boolean;
6104
+ };
6105
+ textValue: string | null;
6106
+ booleanValue: boolean | null;
6107
+ numberValue: number | null;
6108
+ dateValue: string | null;
6109
+ }, {
6110
+ id: string;
6111
+ createdAt: Date;
6112
+ updatedAt: Date;
6113
+ deletedAt: Date | null;
6114
+ attribute: {
6115
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6116
+ id: string;
6117
+ position: number;
6118
+ createdAt: Date;
6119
+ updatedAt: Date;
6120
+ deletedAt: Date | null;
6121
+ isDefault: boolean;
6122
+ systemName: string;
6123
+ displayName: string;
6124
+ isArchived: boolean;
6125
+ isRequired: boolean;
6126
+ isUnique: boolean;
6127
+ };
6128
+ textValue: string | null;
6129
+ booleanValue: boolean | null;
6130
+ numberValue: number | null;
6131
+ dateValue: string | null;
6132
+ }>, "many">>;
6133
+ }, "customFields">, "strip", z.ZodTypeAny, {
6134
+ id: string;
6135
+ createdAt: Date;
6136
+ updatedAt: Date;
6137
+ deletedAt: Date | null;
6138
+ address?: string | null | undefined;
6139
+ name?: string | undefined;
6140
+ phone?: string | null | undefined;
6141
+ industry?: string | null | undefined;
6142
+ }, {
6143
+ id: string;
6144
+ createdAt: Date;
6145
+ updatedAt: Date;
6146
+ deletedAt: Date | null;
6147
+ address?: string | null | undefined;
6148
+ name?: string | undefined;
6149
+ phone?: string | null | undefined;
6150
+ industry?: string | null | undefined;
6151
+ }>>;
6152
+ customFields: z.ZodArray<z.ZodObject<{
6153
+ id: z.ZodString;
6154
+ createdAt: z.ZodDate;
6155
+ updatedAt: z.ZodDate;
6156
+ deletedAt: z.ZodNullable<z.ZodDate>;
6157
+ textValue: z.ZodNullable<z.ZodString>;
6158
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
6159
+ numberValue: z.ZodNullable<z.ZodNumber>;
6160
+ dateValue: z.ZodNullable<z.ZodDate>;
6161
+ attribute: z.ZodObject<Omit<{
6162
+ id: z.ZodString;
6163
+ createdAt: z.ZodDate;
6164
+ updatedAt: z.ZodDate;
6165
+ deletedAt: z.ZodNullable<z.ZodDate>;
6166
+ systemName: z.ZodString;
6167
+ displayName: z.ZodString;
6168
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
6169
+ position: z.ZodNumber;
6170
+ isDefault: z.ZodBoolean;
6171
+ isArchived: z.ZodBoolean;
6172
+ isRequired: z.ZodBoolean;
6173
+ isUnique: z.ZodBoolean;
6174
+ options: z.ZodArray<z.ZodObject<{
6175
+ position: z.ZodNumber;
6176
+ value: z.ZodString;
6177
+ label: z.ZodString;
6178
+ isDefault: z.ZodBoolean;
6179
+ id: z.ZodString;
6180
+ }, "strip", z.ZodTypeAny, {
6181
+ id: string;
6182
+ position: number;
6183
+ value: string;
6184
+ label: string;
6185
+ isDefault: boolean;
6186
+ }, {
6187
+ id: string;
6188
+ position: number;
6189
+ value: string;
6190
+ label: string;
6191
+ isDefault: boolean;
6192
+ }>, "many">;
6193
+ group: z.ZodObject<{
6194
+ id: z.ZodString;
6195
+ createdAt: z.ZodDate;
6196
+ updatedAt: z.ZodDate;
6197
+ deletedAt: z.ZodNullable<z.ZodDate>;
6198
+ systemName: z.ZodString;
6199
+ displayName: z.ZodString;
6200
+ }, "strip", z.ZodTypeAny, {
6201
+ id: string;
6202
+ createdAt: Date;
6203
+ updatedAt: Date;
6204
+ deletedAt: Date | null;
6205
+ systemName: string;
6206
+ displayName: string;
6207
+ }, {
6208
+ id: string;
6209
+ createdAt: Date;
6210
+ updatedAt: Date;
6211
+ deletedAt: Date | null;
6212
+ systemName: string;
6213
+ displayName: string;
6214
+ }>;
6215
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
6216
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6217
+ id: string;
6218
+ position: number;
6219
+ createdAt: Date;
6220
+ updatedAt: Date;
6221
+ deletedAt: Date | null;
6222
+ isDefault: boolean;
6223
+ systemName: string;
6224
+ displayName: string;
6225
+ isArchived: boolean;
6226
+ isRequired: boolean;
6227
+ isUnique: boolean;
6228
+ }, {
6229
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6230
+ id: string;
6231
+ position: number;
6232
+ createdAt: Date;
6233
+ updatedAt: Date;
6234
+ deletedAt: Date | null;
6235
+ isDefault: boolean;
6236
+ systemName: string;
6237
+ displayName: string;
6238
+ isArchived: boolean;
6239
+ isRequired: boolean;
6240
+ isUnique: boolean;
6241
+ }>;
6242
+ uploads: z.ZodArray<z.ZodObject<{
6243
+ id: z.ZodString;
6244
+ createdAt: z.ZodDate;
6245
+ updatedAt: z.ZodDate;
6246
+ deletedAt: z.ZodNullable<z.ZodDate>;
6247
+ customFieldId: z.ZodString;
6248
+ upload: z.ZodObject<{
6249
+ id: z.ZodString;
6250
+ createdAt: z.ZodDate;
6251
+ updatedAt: z.ZodDate;
6252
+ deletedAt: z.ZodNullable<z.ZodDate>;
6253
+ bucketName: z.ZodString;
6254
+ fileName: z.ZodString;
6255
+ fileSize: z.ZodNumber;
6256
+ fileKey: z.ZodString;
6257
+ }, "strip", z.ZodTypeAny, {
6258
+ id: string;
6259
+ createdAt: Date;
6260
+ updatedAt: Date;
6261
+ deletedAt: Date | null;
6262
+ fileName: string;
6263
+ fileKey: string;
6264
+ bucketName: string;
6265
+ fileSize: number;
6266
+ }, {
6267
+ id: string;
6268
+ createdAt: Date;
6269
+ updatedAt: Date;
6270
+ deletedAt: Date | null;
6271
+ fileName: string;
6272
+ fileKey: string;
6273
+ bucketName: string;
6274
+ fileSize: number;
6275
+ }>;
6276
+ }, "strip", z.ZodTypeAny, {
6277
+ id: string;
6278
+ createdAt: Date;
6279
+ updatedAt: Date;
6280
+ deletedAt: Date | null;
6281
+ customFieldId: string;
6282
+ upload: {
6283
+ id: string;
6284
+ createdAt: Date;
6285
+ updatedAt: Date;
6286
+ deletedAt: Date | null;
6287
+ fileName: string;
6288
+ fileKey: string;
6289
+ bucketName: string;
6290
+ fileSize: number;
6291
+ };
6292
+ }, {
6293
+ id: string;
6294
+ createdAt: Date;
6295
+ updatedAt: Date;
6296
+ deletedAt: Date | null;
6297
+ customFieldId: string;
6298
+ upload: {
6299
+ id: string;
6300
+ createdAt: Date;
6301
+ updatedAt: Date;
6302
+ deletedAt: Date | null;
6303
+ fileName: string;
6304
+ fileKey: string;
6305
+ bucketName: string;
6306
+ fileSize: number;
6307
+ };
6308
+ }>, "many">;
6309
+ }, "strip", z.ZodTypeAny, {
6310
+ id: string;
6311
+ createdAt: Date;
6312
+ updatedAt: Date;
6313
+ deletedAt: Date | null;
6314
+ attribute: {
6315
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6316
+ id: string;
6317
+ position: number;
6318
+ createdAt: Date;
6319
+ updatedAt: Date;
6320
+ deletedAt: Date | null;
6321
+ isDefault: boolean;
6322
+ systemName: string;
6323
+ displayName: string;
6324
+ isArchived: boolean;
6325
+ isRequired: boolean;
6326
+ isUnique: boolean;
6327
+ };
6328
+ textValue: string | null;
6329
+ booleanValue: boolean | null;
6330
+ numberValue: number | null;
6331
+ dateValue: Date | null;
6332
+ uploads: {
6333
+ id: string;
6334
+ createdAt: Date;
6335
+ updatedAt: Date;
6336
+ deletedAt: Date | null;
6337
+ customFieldId: string;
6338
+ upload: {
6339
+ id: string;
6340
+ createdAt: Date;
6341
+ updatedAt: Date;
6342
+ deletedAt: Date | null;
6343
+ fileName: string;
6344
+ fileKey: string;
6345
+ bucketName: string;
6346
+ fileSize: number;
6347
+ };
6348
+ }[];
6349
+ }, {
6350
+ id: string;
6351
+ createdAt: Date;
6352
+ updatedAt: Date;
6353
+ deletedAt: Date | null;
6354
+ attribute: {
6355
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6356
+ id: string;
6357
+ position: number;
6358
+ createdAt: Date;
6359
+ updatedAt: Date;
6360
+ deletedAt: Date | null;
6361
+ isDefault: boolean;
6362
+ systemName: string;
6363
+ displayName: string;
6364
+ isArchived: boolean;
6365
+ isRequired: boolean;
6366
+ isUnique: boolean;
6367
+ };
6368
+ textValue: string | null;
6369
+ booleanValue: boolean | null;
6370
+ numberValue: number | null;
6371
+ dateValue: Date | null;
6372
+ uploads: {
6373
+ id: string;
6374
+ createdAt: Date;
6375
+ updatedAt: Date;
6376
+ deletedAt: Date | null;
6377
+ customFieldId: string;
6378
+ upload: {
6379
+ id: string;
6380
+ createdAt: Date;
6381
+ updatedAt: Date;
6382
+ deletedAt: Date | null;
6383
+ fileName: string;
6384
+ fileKey: string;
6385
+ bucketName: string;
6386
+ fileSize: number;
6387
+ };
6388
+ }[];
6389
+ }>, "many">;
6390
+ contactEmails: z.ZodArray<z.ZodObject<{
6391
+ id: z.ZodString;
6392
+ createdAt: z.ZodDate;
6393
+ updatedAt: z.ZodDate;
6394
+ deletedAt: z.ZodNullable<z.ZodDate>;
6395
+ email: z.ZodString;
6396
+ isPrimary: z.ZodBoolean;
6397
+ }, "strip", z.ZodTypeAny, {
6398
+ id: string;
6399
+ isPrimary: boolean;
6400
+ email: string;
6401
+ createdAt: Date;
6402
+ updatedAt: Date;
6403
+ deletedAt: Date | null;
6404
+ }, {
6405
+ id: string;
6406
+ isPrimary: boolean;
6407
+ email: string;
6408
+ createdAt: Date;
6409
+ updatedAt: Date;
6410
+ deletedAt: Date | null;
6411
+ }>, "many">;
6412
+ contactPhones: z.ZodArray<z.ZodObject<{
6413
+ id: z.ZodString;
6414
+ createdAt: z.ZodDate;
6415
+ updatedAt: z.ZodDate;
6416
+ deletedAt: z.ZodNullable<z.ZodDate>;
6417
+ phone: z.ZodString;
6418
+ isPrimary: z.ZodBoolean;
6419
+ }, "strip", z.ZodTypeAny, {
6420
+ id: string;
6421
+ isPrimary: boolean;
6422
+ createdAt: Date;
6423
+ updatedAt: Date;
6424
+ deletedAt: Date | null;
6425
+ phone: string;
6426
+ }, {
6427
+ id: string;
6428
+ isPrimary: boolean;
6429
+ createdAt: Date;
6430
+ updatedAt: Date;
6431
+ deletedAt: Date | null;
6432
+ phone: string;
6433
+ }>, "many">;
6434
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6435
+ id: z.ZodString;
6436
+ createdAt: z.ZodDate;
6437
+ updatedAt: z.ZodDate;
6438
+ deletedAt: z.ZodNullable<z.ZodDate>;
6439
+ entityId: z.ZodString;
6440
+ description: z.ZodString;
6441
+ entityType: z.ZodObject<{
6442
+ id: z.ZodString;
6443
+ createdAt: z.ZodDate;
6444
+ updatedAt: z.ZodDate;
6445
+ deletedAt: z.ZodNullable<z.ZodDate>;
6446
+ entity: z.ZodString;
6447
+ description: z.ZodNullable<z.ZodString>;
6448
+ }, "strip", z.ZodTypeAny, {
6449
+ id: string;
6450
+ description: string | null;
6451
+ createdAt: Date;
6452
+ updatedAt: Date;
6453
+ deletedAt: Date | null;
6454
+ entity: string;
6455
+ }, {
6456
+ id: string;
6457
+ description: string | null;
6458
+ createdAt: Date;
6459
+ updatedAt: Date;
6460
+ deletedAt: Date | null;
6461
+ entity: string;
6462
+ }>;
6463
+ }, "strip", z.ZodTypeAny, {
6464
+ id: string;
6465
+ description: string;
6466
+ createdAt: Date;
6467
+ updatedAt: Date;
6468
+ deletedAt: Date | null;
6469
+ entityId: string;
6470
+ entityType: {
6471
+ id: string;
6472
+ description: string | null;
6473
+ createdAt: Date;
6474
+ updatedAt: Date;
6475
+ deletedAt: Date | null;
6476
+ entity: string;
6477
+ };
6478
+ }, {
6479
+ id: string;
6480
+ description: string;
6481
+ createdAt: Date;
6482
+ updatedAt: Date;
6483
+ deletedAt: Date | null;
6484
+ entityId: string;
6485
+ entityType: {
6486
+ id: string;
6487
+ description: string | null;
6488
+ createdAt: Date;
6489
+ updatedAt: Date;
6490
+ deletedAt: Date | null;
6491
+ entity: string;
6492
+ };
6493
+ }>, "many">>;
6494
+ }, "strip", z.ZodTypeAny, {
6495
+ id: string;
6496
+ channel: string | null;
6497
+ address: string | null;
6498
+ name: string;
6499
+ createdAt: Date;
6500
+ updatedAt: Date;
6501
+ deletedAt: Date | null;
6502
+ customFields: {
6503
+ id: string;
6504
+ createdAt: Date;
6505
+ updatedAt: Date;
6506
+ deletedAt: Date | null;
6507
+ attribute: {
6508
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6509
+ id: string;
6510
+ position: number;
6511
+ createdAt: Date;
6512
+ updatedAt: Date;
6513
+ deletedAt: Date | null;
6514
+ isDefault: boolean;
6515
+ systemName: string;
6516
+ displayName: string;
6517
+ isArchived: boolean;
6518
+ isRequired: boolean;
6519
+ isUnique: boolean;
6520
+ };
6521
+ textValue: string | null;
6522
+ booleanValue: boolean | null;
6523
+ numberValue: number | null;
6524
+ dateValue: Date | null;
6525
+ uploads: {
6526
+ id: string;
6527
+ createdAt: Date;
6528
+ updatedAt: Date;
6529
+ deletedAt: Date | null;
6530
+ customFieldId: string;
6531
+ upload: {
6532
+ id: string;
6533
+ createdAt: Date;
6534
+ updatedAt: Date;
6535
+ deletedAt: Date | null;
6536
+ fileName: string;
6537
+ fileKey: string;
6538
+ bucketName: string;
6539
+ fileSize: number;
6540
+ };
6541
+ }[];
6542
+ }[];
6543
+ notes: string | null;
6544
+ contactProfile: string | null;
6545
+ socialProfileUrl: string | null;
6546
+ tags: {
6547
+ id: string;
6548
+ name: string;
6549
+ createdAt: Date;
6550
+ updatedAt: Date;
6551
+ deletedAt: Date | null;
6552
+ }[];
6553
+ company: {
6554
+ id: string;
6555
+ createdAt: Date;
6556
+ updatedAt: Date;
6557
+ deletedAt: Date | null;
6558
+ address?: string | null | undefined;
6559
+ name?: string | undefined;
6560
+ phone?: string | null | undefined;
6561
+ industry?: string | null | undefined;
6562
+ } | null;
6563
+ contactEmails: {
6564
+ id: string;
6565
+ isPrimary: boolean;
6566
+ email: string;
6567
+ createdAt: Date;
6568
+ updatedAt: Date;
6569
+ deletedAt: Date | null;
6570
+ }[];
6571
+ contactPhones: {
6572
+ id: string;
6573
+ isPrimary: boolean;
6574
+ createdAt: Date;
6575
+ updatedAt: Date;
6576
+ deletedAt: Date | null;
6577
+ phone: string;
6578
+ }[];
6579
+ activityLogs?: {
6580
+ id: string;
6581
+ description: string;
6582
+ createdAt: Date;
6583
+ updatedAt: Date;
6584
+ deletedAt: Date | null;
6585
+ entityId: string;
6586
+ entityType: {
6587
+ id: string;
6588
+ description: string | null;
6589
+ createdAt: Date;
6590
+ updatedAt: Date;
6591
+ deletedAt: Date | null;
6592
+ entity: string;
6593
+ };
6594
+ }[] | undefined;
6595
+ }, {
6596
+ id: string;
6597
+ channel: string | null;
6598
+ address: string | null;
6599
+ name: string;
6600
+ createdAt: Date;
6601
+ updatedAt: Date;
6602
+ deletedAt: Date | null;
6603
+ customFields: {
6604
+ id: string;
6605
+ createdAt: Date;
6606
+ updatedAt: Date;
6607
+ deletedAt: Date | null;
6608
+ attribute: {
6609
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6610
+ id: string;
6611
+ position: number;
6612
+ createdAt: Date;
6613
+ updatedAt: Date;
6614
+ deletedAt: Date | null;
6615
+ isDefault: boolean;
6616
+ systemName: string;
6617
+ displayName: string;
6618
+ isArchived: boolean;
6619
+ isRequired: boolean;
6620
+ isUnique: boolean;
6621
+ };
6622
+ textValue: string | null;
6623
+ booleanValue: boolean | null;
6624
+ numberValue: number | null;
6625
+ dateValue: Date | null;
6626
+ uploads: {
6627
+ id: string;
6628
+ createdAt: Date;
6629
+ updatedAt: Date;
6630
+ deletedAt: Date | null;
6631
+ customFieldId: string;
6632
+ upload: {
6633
+ id: string;
6634
+ createdAt: Date;
6635
+ updatedAt: Date;
6636
+ deletedAt: Date | null;
6637
+ fileName: string;
6638
+ fileKey: string;
6639
+ bucketName: string;
6640
+ fileSize: number;
6641
+ };
6642
+ }[];
6643
+ }[];
6644
+ notes: string | null;
6645
+ contactProfile: string | null;
6646
+ socialProfileUrl: string | null;
6647
+ tags: {
6648
+ id: string;
6649
+ name: string;
6650
+ createdAt: Date;
6651
+ updatedAt: Date;
6652
+ deletedAt: Date | null;
6653
+ }[];
6654
+ company: {
6655
+ id: string;
6656
+ createdAt: Date;
6657
+ updatedAt: Date;
6658
+ deletedAt: Date | null;
6659
+ address?: string | null | undefined;
6660
+ name?: string | undefined;
6661
+ phone?: string | null | undefined;
6662
+ industry?: string | null | undefined;
6663
+ } | null;
6664
+ contactEmails: {
6665
+ id: string;
6666
+ isPrimary: boolean;
6667
+ email: string;
6668
+ createdAt: Date;
6669
+ updatedAt: Date;
6670
+ deletedAt: Date | null;
6671
+ }[];
6672
+ contactPhones: {
6673
+ id: string;
6674
+ isPrimary: boolean;
6675
+ createdAt: Date;
6676
+ updatedAt: Date;
6677
+ deletedAt: Date | null;
6678
+ phone: string;
6679
+ }[];
6680
+ activityLogs?: {
6681
+ id: string;
6682
+ description: string;
6683
+ createdAt: Date;
6684
+ updatedAt: Date;
6685
+ deletedAt: Date | null;
6686
+ entityId: string;
6687
+ entityType: {
6688
+ id: string;
6689
+ description: string | null;
6690
+ createdAt: Date;
6691
+ updatedAt: Date;
6692
+ deletedAt: Date | null;
6693
+ entity: string;
6694
+ };
6695
+ }[] | undefined;
6696
+ }>;
6697
+ }, "strip", z.ZodTypeAny, {
6698
+ data: {
6699
+ id: string;
6700
+ channel: string | null;
6701
+ address: string | null;
6702
+ name: string;
6703
+ createdAt: Date;
6704
+ updatedAt: Date;
6705
+ deletedAt: Date | null;
6706
+ customFields: {
6707
+ id: string;
6708
+ createdAt: Date;
6709
+ updatedAt: Date;
6710
+ deletedAt: Date | null;
6711
+ attribute: {
6712
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6713
+ id: string;
6714
+ position: number;
6715
+ createdAt: Date;
6716
+ updatedAt: Date;
6717
+ deletedAt: Date | null;
6718
+ isDefault: boolean;
6719
+ systemName: string;
6720
+ displayName: string;
6721
+ isArchived: boolean;
6722
+ isRequired: boolean;
6723
+ isUnique: boolean;
6724
+ };
6725
+ textValue: string | null;
6726
+ booleanValue: boolean | null;
6727
+ numberValue: number | null;
6728
+ dateValue: Date | null;
6729
+ uploads: {
6730
+ id: string;
6731
+ createdAt: Date;
6732
+ updatedAt: Date;
6733
+ deletedAt: Date | null;
6734
+ customFieldId: string;
6735
+ upload: {
6736
+ id: string;
6737
+ createdAt: Date;
6738
+ updatedAt: Date;
6739
+ deletedAt: Date | null;
6740
+ fileName: string;
6741
+ fileKey: string;
6742
+ bucketName: string;
6743
+ fileSize: number;
6744
+ };
6745
+ }[];
6746
+ }[];
6747
+ notes: string | null;
6748
+ contactProfile: string | null;
6749
+ socialProfileUrl: string | null;
6750
+ tags: {
6751
+ id: string;
6752
+ name: string;
6753
+ createdAt: Date;
6754
+ updatedAt: Date;
6755
+ deletedAt: Date | null;
6756
+ }[];
6757
+ company: {
6758
+ id: string;
6759
+ createdAt: Date;
6760
+ updatedAt: Date;
6761
+ deletedAt: Date | null;
6762
+ address?: string | null | undefined;
6763
+ name?: string | undefined;
6764
+ phone?: string | null | undefined;
6765
+ industry?: string | null | undefined;
6766
+ } | null;
6767
+ contactEmails: {
6768
+ id: string;
6769
+ isPrimary: boolean;
6770
+ email: string;
6771
+ createdAt: Date;
6772
+ updatedAt: Date;
6773
+ deletedAt: Date | null;
6774
+ }[];
6775
+ contactPhones: {
6776
+ id: string;
6777
+ isPrimary: boolean;
6778
+ createdAt: Date;
6779
+ updatedAt: Date;
6780
+ deletedAt: Date | null;
6781
+ phone: string;
6782
+ }[];
6783
+ activityLogs?: {
6784
+ id: string;
6785
+ description: string;
6786
+ createdAt: Date;
6787
+ updatedAt: Date;
6788
+ deletedAt: Date | null;
6789
+ entityId: string;
6790
+ entityType: {
6791
+ id: string;
6792
+ description: string | null;
6793
+ createdAt: Date;
6794
+ updatedAt: Date;
6795
+ deletedAt: Date | null;
6796
+ entity: string;
6797
+ };
6798
+ }[] | undefined;
6799
+ };
6800
+ requestId: string;
6801
+ }, {
6802
+ data: {
6803
+ id: string;
6804
+ channel: string | null;
6805
+ address: string | null;
6806
+ name: string;
6807
+ createdAt: Date;
6808
+ updatedAt: Date;
6809
+ deletedAt: Date | null;
6810
+ customFields: {
6811
+ id: string;
6812
+ createdAt: Date;
6813
+ updatedAt: Date;
6814
+ deletedAt: Date | null;
6815
+ attribute: {
6816
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6817
+ id: string;
6818
+ position: number;
6819
+ createdAt: Date;
6820
+ updatedAt: Date;
6821
+ deletedAt: Date | null;
6822
+ isDefault: boolean;
6823
+ systemName: string;
6824
+ displayName: string;
6825
+ isArchived: boolean;
6826
+ isRequired: boolean;
6827
+ isUnique: boolean;
6828
+ };
6829
+ textValue: string | null;
6830
+ booleanValue: boolean | null;
6831
+ numberValue: number | null;
6832
+ dateValue: Date | null;
6833
+ uploads: {
6834
+ id: string;
6835
+ createdAt: Date;
6836
+ updatedAt: Date;
6837
+ deletedAt: Date | null;
6838
+ customFieldId: string;
6839
+ upload: {
6840
+ id: string;
6841
+ createdAt: Date;
6842
+ updatedAt: Date;
6843
+ deletedAt: Date | null;
6844
+ fileName: string;
6845
+ fileKey: string;
6846
+ bucketName: string;
6847
+ fileSize: number;
6848
+ };
6849
+ }[];
6850
+ }[];
6851
+ notes: string | null;
6852
+ contactProfile: string | null;
6853
+ socialProfileUrl: string | null;
6854
+ tags: {
6855
+ id: string;
6856
+ name: string;
6857
+ createdAt: Date;
6858
+ updatedAt: Date;
6859
+ deletedAt: Date | null;
6860
+ }[];
6861
+ company: {
6862
+ id: string;
6863
+ createdAt: Date;
6864
+ updatedAt: Date;
6865
+ deletedAt: Date | null;
6866
+ address?: string | null | undefined;
6867
+ name?: string | undefined;
6868
+ phone?: string | null | undefined;
6869
+ industry?: string | null | undefined;
6870
+ } | null;
6871
+ contactEmails: {
6872
+ id: string;
6873
+ isPrimary: boolean;
6874
+ email: string;
6875
+ createdAt: Date;
6876
+ updatedAt: Date;
6877
+ deletedAt: Date | null;
6878
+ }[];
6879
+ contactPhones: {
6880
+ id: string;
6881
+ isPrimary: boolean;
6882
+ createdAt: Date;
6883
+ updatedAt: Date;
6884
+ deletedAt: Date | null;
6885
+ phone: string;
6886
+ }[];
6887
+ activityLogs?: {
6888
+ id: string;
6889
+ description: string;
6890
+ createdAt: Date;
6891
+ updatedAt: Date;
6892
+ deletedAt: Date | null;
6893
+ entityId: string;
6894
+ entityType: {
6895
+ id: string;
6896
+ description: string | null;
6897
+ createdAt: Date;
6898
+ updatedAt: Date;
6899
+ deletedAt: Date | null;
6900
+ entity: string;
6901
+ };
6902
+ }[] | undefined;
6903
+ };
6904
+ requestId: string;
6905
+ }>;
6906
+ 400: z.ZodObject<{
6907
+ message: z.ZodString;
6908
+ }, "strip", z.ZodTypeAny, {
6909
+ message: string;
6910
+ }, {
6911
+ message: string;
6912
+ }>;
6913
+ 409: z.ZodObject<{
6914
+ message: z.ZodString;
6915
+ }, "strip", z.ZodTypeAny, {
6916
+ message: string;
6917
+ }, {
6918
+ message: string;
6919
+ }>;
6920
+ 500: z.ZodObject<{
6921
+ message: z.ZodString;
6922
+ }, "strip", z.ZodTypeAny, {
6923
+ message: string;
6924
+ }, {
6925
+ message: string;
6926
+ }>;
6927
+ 401: z.ZodObject<{
6928
+ message: z.ZodString;
6929
+ error: z.ZodAny;
6930
+ }, "strip", z.ZodTypeAny, {
6931
+ message: string;
6932
+ error?: any;
6933
+ }, {
6934
+ message: string;
6935
+ error?: any;
6936
+ }>;
6937
+ 404: z.ZodObject<{
6938
+ message: z.ZodString;
6939
+ error: z.ZodAny;
6940
+ }, "strip", z.ZodTypeAny, {
6941
+ message: string;
6942
+ error?: any;
6943
+ }, {
6944
+ message: string;
6945
+ error?: any;
6946
+ }>;
6947
+ 422: z.ZodObject<{
6948
+ message: z.ZodString;
6949
+ error: z.ZodAny;
6950
+ }, "strip", z.ZodTypeAny, {
6951
+ message: string;
6952
+ error?: any;
6953
+ }, {
6954
+ message: string;
6955
+ error?: any;
6956
+ }>;
6957
+ };
6958
+ path: "contact/merge";
6959
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6960
+ 'x-tenant': z.ZodString;
6961
+ authorization: z.ZodString;
6962
+ }, "strip", z.ZodTypeAny, {
6963
+ 'x-tenant': string;
6964
+ authorization: string;
6965
+ }, {
6966
+ 'x-tenant': string;
6967
+ authorization: string;
6968
+ }>>>;
6969
+ };
6970
+ checkContactPhone: {
6971
+ body: z.ZodObject<{
6972
+ contactId: z.ZodOptional<z.ZodString>;
6973
+ phoneNumber: z.ZodString;
6974
+ }, "strip", z.ZodTypeAny, {
6975
+ phoneNumber: string;
6976
+ contactId?: string | undefined;
6977
+ }, {
6978
+ phoneNumber: string;
6979
+ contactId?: string | undefined;
6980
+ }>;
6981
+ summary: "Check whether a contact owns a phone number";
6982
+ method: "POST";
6983
+ responses: {
6984
+ 200: z.ZodObject<{
6985
+ requestId: z.ZodString;
6986
+ existed: z.ZodBoolean;
6987
+ }, "strip", z.ZodTypeAny, {
6988
+ requestId: string;
6989
+ existed: boolean;
6990
+ }, {
6991
+ requestId: string;
6992
+ existed: boolean;
6993
+ }>;
6994
+ 400: z.ZodObject<{
6995
+ message: z.ZodString;
6996
+ }, "strip", z.ZodTypeAny, {
6997
+ message: string;
6998
+ }, {
6999
+ message: string;
7000
+ }>;
7001
+ 409: z.ZodObject<{
7002
+ message: z.ZodString;
7003
+ }, "strip", z.ZodTypeAny, {
7004
+ message: string;
7005
+ }, {
7006
+ message: string;
7007
+ }>;
7008
+ 500: z.ZodObject<{
7009
+ message: z.ZodString;
7010
+ }, "strip", z.ZodTypeAny, {
7011
+ message: string;
7012
+ }, {
7013
+ message: string;
7014
+ }>;
7015
+ 401: z.ZodObject<{
7016
+ message: z.ZodString;
7017
+ error: z.ZodAny;
7018
+ }, "strip", z.ZodTypeAny, {
7019
+ message: string;
7020
+ error?: any;
7021
+ }, {
7022
+ message: string;
7023
+ error?: any;
7024
+ }>;
7025
+ 404: z.ZodObject<{
7026
+ message: z.ZodString;
7027
+ error: z.ZodAny;
7028
+ }, "strip", z.ZodTypeAny, {
7029
+ message: string;
7030
+ error?: any;
7031
+ }, {
7032
+ message: string;
7033
+ error?: any;
7034
+ }>;
7035
+ 422: z.ZodObject<{
7036
+ message: z.ZodString;
7037
+ error: z.ZodAny;
7038
+ }, "strip", z.ZodTypeAny, {
7039
+ message: string;
7040
+ error?: any;
7041
+ }, {
7042
+ message: string;
7043
+ error?: any;
7044
+ }>;
7045
+ };
7046
+ path: "contact/check/phone";
7047
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7048
+ 'x-tenant': z.ZodString;
7049
+ authorization: z.ZodString;
7050
+ }, "strip", z.ZodTypeAny, {
7051
+ 'x-tenant': string;
7052
+ authorization: string;
7053
+ }, {
7054
+ 'x-tenant': string;
7055
+ authorization: string;
7056
+ }>>>;
7057
+ };
7058
+ checkContactEmail: {
7059
+ body: z.ZodObject<{
7060
+ contactId: z.ZodOptional<z.ZodString>;
7061
+ email: z.ZodString;
7062
+ }, "strip", z.ZodTypeAny, {
7063
+ email: string;
7064
+ contactId?: string | undefined;
7065
+ }, {
7066
+ email: string;
7067
+ contactId?: string | undefined;
7068
+ }>;
7069
+ summary: "Check whether a contact owns a email";
7070
+ method: "POST";
7071
+ responses: {
7072
+ 200: z.ZodObject<{
7073
+ requestId: z.ZodString;
7074
+ existed: z.ZodBoolean;
7075
+ }, "strip", z.ZodTypeAny, {
7076
+ requestId: string;
7077
+ existed: boolean;
7078
+ }, {
7079
+ requestId: string;
7080
+ existed: boolean;
7081
+ }>;
7082
+ 400: z.ZodObject<{
7083
+ message: z.ZodString;
7084
+ }, "strip", z.ZodTypeAny, {
7085
+ message: string;
7086
+ }, {
7087
+ message: string;
7088
+ }>;
7089
+ 409: z.ZodObject<{
7090
+ message: z.ZodString;
7091
+ }, "strip", z.ZodTypeAny, {
7092
+ message: string;
7093
+ }, {
7094
+ message: string;
7095
+ }>;
7096
+ 500: z.ZodObject<{
7097
+ message: z.ZodString;
7098
+ }, "strip", z.ZodTypeAny, {
7099
+ message: string;
7100
+ }, {
7101
+ message: string;
7102
+ }>;
7103
+ 401: z.ZodObject<{
7104
+ message: z.ZodString;
7105
+ error: z.ZodAny;
7106
+ }, "strip", z.ZodTypeAny, {
7107
+ message: string;
7108
+ error?: any;
7109
+ }, {
7110
+ message: string;
7111
+ error?: any;
7112
+ }>;
7113
+ 404: z.ZodObject<{
7114
+ message: z.ZodString;
7115
+ error: z.ZodAny;
7116
+ }, "strip", z.ZodTypeAny, {
7117
+ message: string;
7118
+ error?: any;
7119
+ }, {
7120
+ message: string;
7121
+ error?: any;
7122
+ }>;
7123
+ 422: z.ZodObject<{
7124
+ message: z.ZodString;
7125
+ error: z.ZodAny;
7126
+ }, "strip", z.ZodTypeAny, {
7127
+ message: string;
7128
+ error?: any;
7129
+ }, {
7130
+ message: string;
7131
+ error?: any;
7132
+ }>;
7133
+ };
7134
+ path: "contact/check/email";
7135
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7136
+ 'x-tenant': z.ZodString;
7137
+ authorization: z.ZodString;
7138
+ }, "strip", z.ZodTypeAny, {
7139
+ 'x-tenant': string;
7140
+ authorization: string;
7141
+ }, {
7142
+ 'x-tenant': string;
7143
+ authorization: string;
7144
+ }>>>;
7145
+ };
4872
7146
  };
4873
7147
  //# sourceMappingURL=index.d.ts.map