@kl1/contracts 1.0.13 → 1.0.15

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.
@@ -3,6 +3,8 @@ import { ContactContractValidationSchema } from './validation';
3
3
  import { ContactSchema } from './schema';
4
4
  export type CreateContactRequest = z.infer<typeof ContactContractValidationSchema.create.request>;
5
5
  export type CreateContactResponse = z.infer<typeof ContactContractValidationSchema.create.response>;
6
+ export type CreateContactByPhoneRequest = z.infer<typeof ContactContractValidationSchema.createContactByPhone.request>;
7
+ export type CreateContactByPhoneResponse = z.infer<typeof ContactContractValidationSchema.createContactByPhone.response>;
6
8
  export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
7
9
  export type UpdateContactRequest = Partial<CreateContactRequest>;
8
10
  export type UpdateContactResponse = CreateContactResponse;
@@ -3841,5 +3843,1031 @@ export declare const contactContract: {
3841
3843
  authorization: string;
3842
3844
  }>>>;
3843
3845
  };
3846
+ createContactByPhone: {
3847
+ body: z.ZodObject<{
3848
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
3849
+ }, "strip", z.ZodTypeAny, {
3850
+ phoneNumber: string;
3851
+ }, {
3852
+ phoneNumber: string;
3853
+ }>;
3854
+ summary: "Create a new contact using phone number";
3855
+ method: "POST";
3856
+ responses: {
3857
+ 201: z.ZodObject<{
3858
+ requestId: z.ZodString;
3859
+ data: z.ZodObject<{
3860
+ id: z.ZodString;
3861
+ createdAt: z.ZodDate;
3862
+ updatedAt: z.ZodDate;
3863
+ deletedAt: z.ZodNullable<z.ZodDate>;
3864
+ name: z.ZodString;
3865
+ address: z.ZodNullable<z.ZodString>;
3866
+ channel: z.ZodNullable<z.ZodString>;
3867
+ notes: z.ZodNullable<z.ZodString>;
3868
+ contactProfile: z.ZodNullable<z.ZodString>;
3869
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
3870
+ tags: z.ZodArray<z.ZodObject<{
3871
+ id: z.ZodString;
3872
+ createdAt: z.ZodDate;
3873
+ updatedAt: z.ZodDate;
3874
+ deletedAt: z.ZodNullable<z.ZodDate>;
3875
+ name: z.ZodString;
3876
+ }, "strip", z.ZodTypeAny, {
3877
+ id: string;
3878
+ name: string;
3879
+ createdAt: Date;
3880
+ updatedAt: Date;
3881
+ deletedAt: Date | null;
3882
+ }, {
3883
+ id: string;
3884
+ name: string;
3885
+ createdAt: Date;
3886
+ updatedAt: Date;
3887
+ deletedAt: Date | null;
3888
+ }>, "many">;
3889
+ company: z.ZodNullable<z.ZodObject<Omit<{
3890
+ id: z.ZodString;
3891
+ createdAt: z.ZodDate;
3892
+ updatedAt: z.ZodDate;
3893
+ deletedAt: z.ZodNullable<z.ZodDate>;
3894
+ name: z.ZodOptional<z.ZodString>;
3895
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3896
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3897
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3898
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3899
+ id: z.ZodString;
3900
+ createdAt: z.ZodDate;
3901
+ updatedAt: z.ZodDate;
3902
+ deletedAt: z.ZodNullable<z.ZodDate>;
3903
+ textValue: z.ZodNullable<z.ZodString>;
3904
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3905
+ numberValue: z.ZodNullable<z.ZodNumber>;
3906
+ dateValue: z.ZodNullable<z.ZodString>;
3907
+ attribute: z.ZodObject<Omit<{
3908
+ id: z.ZodString;
3909
+ createdAt: z.ZodDate;
3910
+ updatedAt: z.ZodDate;
3911
+ deletedAt: z.ZodNullable<z.ZodDate>;
3912
+ systemName: z.ZodString;
3913
+ displayName: z.ZodString;
3914
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3915
+ position: z.ZodNumber;
3916
+ isDefault: z.ZodBoolean;
3917
+ isArchived: z.ZodBoolean;
3918
+ isRequired: z.ZodBoolean;
3919
+ isUnique: z.ZodBoolean;
3920
+ options: z.ZodArray<z.ZodObject<{
3921
+ position: z.ZodNumber;
3922
+ value: z.ZodString;
3923
+ label: z.ZodString;
3924
+ isDefault: z.ZodBoolean;
3925
+ id: z.ZodString;
3926
+ }, "strip", z.ZodTypeAny, {
3927
+ id: string;
3928
+ position: number;
3929
+ value: string;
3930
+ label: string;
3931
+ isDefault: boolean;
3932
+ }, {
3933
+ id: string;
3934
+ position: number;
3935
+ value: string;
3936
+ label: string;
3937
+ isDefault: boolean;
3938
+ }>, "many">;
3939
+ group: z.ZodObject<{
3940
+ id: z.ZodString;
3941
+ createdAt: z.ZodDate;
3942
+ updatedAt: z.ZodDate;
3943
+ deletedAt: z.ZodNullable<z.ZodDate>;
3944
+ systemName: z.ZodString;
3945
+ displayName: z.ZodString;
3946
+ }, "strip", z.ZodTypeAny, {
3947
+ id: string;
3948
+ createdAt: Date;
3949
+ updatedAt: Date;
3950
+ deletedAt: Date | null;
3951
+ systemName: string;
3952
+ displayName: string;
3953
+ }, {
3954
+ id: string;
3955
+ createdAt: Date;
3956
+ updatedAt: Date;
3957
+ deletedAt: Date | null;
3958
+ systemName: string;
3959
+ displayName: string;
3960
+ }>;
3961
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3962
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3963
+ id: string;
3964
+ position: number;
3965
+ createdAt: Date;
3966
+ updatedAt: Date;
3967
+ deletedAt: Date | null;
3968
+ isDefault: boolean;
3969
+ systemName: string;
3970
+ displayName: string;
3971
+ isArchived: boolean;
3972
+ isRequired: boolean;
3973
+ isUnique: boolean;
3974
+ }, {
3975
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3976
+ id: string;
3977
+ position: number;
3978
+ createdAt: Date;
3979
+ updatedAt: Date;
3980
+ deletedAt: Date | null;
3981
+ isDefault: boolean;
3982
+ systemName: string;
3983
+ displayName: string;
3984
+ isArchived: boolean;
3985
+ isRequired: boolean;
3986
+ isUnique: boolean;
3987
+ }>;
3988
+ }, "strip", z.ZodTypeAny, {
3989
+ id: string;
3990
+ createdAt: Date;
3991
+ updatedAt: Date;
3992
+ deletedAt: Date | null;
3993
+ attribute: {
3994
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3995
+ id: string;
3996
+ position: number;
3997
+ createdAt: Date;
3998
+ updatedAt: Date;
3999
+ deletedAt: Date | null;
4000
+ isDefault: boolean;
4001
+ systemName: string;
4002
+ displayName: string;
4003
+ isArchived: boolean;
4004
+ isRequired: boolean;
4005
+ isUnique: boolean;
4006
+ };
4007
+ textValue: string | null;
4008
+ booleanValue: boolean | null;
4009
+ numberValue: number | null;
4010
+ dateValue: string | null;
4011
+ }, {
4012
+ id: string;
4013
+ createdAt: Date;
4014
+ updatedAt: Date;
4015
+ deletedAt: Date | null;
4016
+ attribute: {
4017
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4018
+ id: string;
4019
+ position: number;
4020
+ createdAt: Date;
4021
+ updatedAt: Date;
4022
+ deletedAt: Date | null;
4023
+ isDefault: boolean;
4024
+ systemName: string;
4025
+ displayName: string;
4026
+ isArchived: boolean;
4027
+ isRequired: boolean;
4028
+ isUnique: boolean;
4029
+ };
4030
+ textValue: string | null;
4031
+ booleanValue: boolean | null;
4032
+ numberValue: number | null;
4033
+ dateValue: string | null;
4034
+ }>, "many">>;
4035
+ }, "customFields">, "strip", z.ZodTypeAny, {
4036
+ id: string;
4037
+ createdAt: Date;
4038
+ updatedAt: Date;
4039
+ deletedAt: Date | null;
4040
+ address?: string | null | undefined;
4041
+ name?: string | undefined;
4042
+ phone?: string | null | undefined;
4043
+ industry?: string | null | undefined;
4044
+ }, {
4045
+ id: string;
4046
+ createdAt: Date;
4047
+ updatedAt: Date;
4048
+ deletedAt: Date | null;
4049
+ address?: string | null | undefined;
4050
+ name?: string | undefined;
4051
+ phone?: string | null | undefined;
4052
+ industry?: string | null | undefined;
4053
+ }>>;
4054
+ customFields: z.ZodArray<z.ZodObject<{
4055
+ id: z.ZodString;
4056
+ createdAt: z.ZodDate;
4057
+ updatedAt: z.ZodDate;
4058
+ deletedAt: z.ZodNullable<z.ZodDate>;
4059
+ textValue: z.ZodNullable<z.ZodString>;
4060
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4061
+ numberValue: z.ZodNullable<z.ZodNumber>;
4062
+ dateValue: z.ZodNullable<z.ZodDate>;
4063
+ attribute: z.ZodObject<Omit<{
4064
+ id: z.ZodString;
4065
+ createdAt: z.ZodDate;
4066
+ updatedAt: z.ZodDate;
4067
+ deletedAt: z.ZodNullable<z.ZodDate>;
4068
+ systemName: z.ZodString;
4069
+ displayName: z.ZodString;
4070
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4071
+ position: z.ZodNumber;
4072
+ isDefault: z.ZodBoolean;
4073
+ isArchived: z.ZodBoolean;
4074
+ isRequired: z.ZodBoolean;
4075
+ isUnique: z.ZodBoolean;
4076
+ options: z.ZodArray<z.ZodObject<{
4077
+ position: z.ZodNumber;
4078
+ value: z.ZodString;
4079
+ label: z.ZodString;
4080
+ isDefault: z.ZodBoolean;
4081
+ id: z.ZodString;
4082
+ }, "strip", z.ZodTypeAny, {
4083
+ id: string;
4084
+ position: number;
4085
+ value: string;
4086
+ label: string;
4087
+ isDefault: boolean;
4088
+ }, {
4089
+ id: string;
4090
+ position: number;
4091
+ value: string;
4092
+ label: string;
4093
+ isDefault: boolean;
4094
+ }>, "many">;
4095
+ group: z.ZodObject<{
4096
+ id: z.ZodString;
4097
+ createdAt: z.ZodDate;
4098
+ updatedAt: z.ZodDate;
4099
+ deletedAt: z.ZodNullable<z.ZodDate>;
4100
+ systemName: z.ZodString;
4101
+ displayName: z.ZodString;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ id: string;
4104
+ createdAt: Date;
4105
+ updatedAt: Date;
4106
+ deletedAt: Date | null;
4107
+ systemName: string;
4108
+ displayName: string;
4109
+ }, {
4110
+ id: string;
4111
+ createdAt: Date;
4112
+ updatedAt: Date;
4113
+ deletedAt: Date | null;
4114
+ systemName: string;
4115
+ displayName: string;
4116
+ }>;
4117
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4118
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4119
+ id: string;
4120
+ position: number;
4121
+ createdAt: Date;
4122
+ updatedAt: Date;
4123
+ deletedAt: Date | null;
4124
+ isDefault: boolean;
4125
+ systemName: string;
4126
+ displayName: string;
4127
+ isArchived: boolean;
4128
+ isRequired: boolean;
4129
+ isUnique: boolean;
4130
+ }, {
4131
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4132
+ id: string;
4133
+ position: number;
4134
+ createdAt: Date;
4135
+ updatedAt: Date;
4136
+ deletedAt: Date | null;
4137
+ isDefault: boolean;
4138
+ systemName: string;
4139
+ displayName: string;
4140
+ isArchived: boolean;
4141
+ isRequired: boolean;
4142
+ isUnique: boolean;
4143
+ }>;
4144
+ uploads: z.ZodArray<z.ZodObject<{
4145
+ id: z.ZodString;
4146
+ createdAt: z.ZodDate;
4147
+ updatedAt: z.ZodDate;
4148
+ deletedAt: z.ZodNullable<z.ZodDate>;
4149
+ customFieldId: z.ZodString;
4150
+ upload: z.ZodObject<{
4151
+ id: z.ZodString;
4152
+ createdAt: z.ZodDate;
4153
+ updatedAt: z.ZodDate;
4154
+ deletedAt: z.ZodNullable<z.ZodDate>;
4155
+ bucketName: z.ZodString;
4156
+ fileName: z.ZodString;
4157
+ fileSize: z.ZodNumber;
4158
+ fileKey: z.ZodString;
4159
+ }, "strip", z.ZodTypeAny, {
4160
+ id: string;
4161
+ createdAt: Date;
4162
+ updatedAt: Date;
4163
+ deletedAt: Date | null;
4164
+ fileName: string;
4165
+ fileKey: string;
4166
+ bucketName: string;
4167
+ fileSize: number;
4168
+ }, {
4169
+ id: string;
4170
+ createdAt: Date;
4171
+ updatedAt: Date;
4172
+ deletedAt: Date | null;
4173
+ fileName: string;
4174
+ fileKey: string;
4175
+ bucketName: string;
4176
+ fileSize: number;
4177
+ }>;
4178
+ }, "strip", z.ZodTypeAny, {
4179
+ id: string;
4180
+ createdAt: Date;
4181
+ updatedAt: Date;
4182
+ deletedAt: Date | null;
4183
+ customFieldId: string;
4184
+ upload: {
4185
+ id: string;
4186
+ createdAt: Date;
4187
+ updatedAt: Date;
4188
+ deletedAt: Date | null;
4189
+ fileName: string;
4190
+ fileKey: string;
4191
+ bucketName: string;
4192
+ fileSize: number;
4193
+ };
4194
+ }, {
4195
+ id: string;
4196
+ createdAt: Date;
4197
+ updatedAt: Date;
4198
+ deletedAt: Date | null;
4199
+ customFieldId: string;
4200
+ upload: {
4201
+ id: string;
4202
+ createdAt: Date;
4203
+ updatedAt: Date;
4204
+ deletedAt: Date | null;
4205
+ fileName: string;
4206
+ fileKey: string;
4207
+ bucketName: string;
4208
+ fileSize: number;
4209
+ };
4210
+ }>, "many">;
4211
+ }, "strip", z.ZodTypeAny, {
4212
+ id: string;
4213
+ createdAt: Date;
4214
+ updatedAt: Date;
4215
+ deletedAt: Date | null;
4216
+ attribute: {
4217
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4218
+ id: string;
4219
+ position: number;
4220
+ createdAt: Date;
4221
+ updatedAt: Date;
4222
+ deletedAt: Date | null;
4223
+ isDefault: boolean;
4224
+ systemName: string;
4225
+ displayName: string;
4226
+ isArchived: boolean;
4227
+ isRequired: boolean;
4228
+ isUnique: boolean;
4229
+ };
4230
+ textValue: string | null;
4231
+ booleanValue: boolean | null;
4232
+ numberValue: number | null;
4233
+ dateValue: Date | null;
4234
+ uploads: {
4235
+ id: string;
4236
+ createdAt: Date;
4237
+ updatedAt: Date;
4238
+ deletedAt: Date | null;
4239
+ customFieldId: string;
4240
+ upload: {
4241
+ id: string;
4242
+ createdAt: Date;
4243
+ updatedAt: Date;
4244
+ deletedAt: Date | null;
4245
+ fileName: string;
4246
+ fileKey: string;
4247
+ bucketName: string;
4248
+ fileSize: number;
4249
+ };
4250
+ }[];
4251
+ }, {
4252
+ id: string;
4253
+ createdAt: Date;
4254
+ updatedAt: Date;
4255
+ deletedAt: Date | null;
4256
+ attribute: {
4257
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4258
+ id: string;
4259
+ position: number;
4260
+ createdAt: Date;
4261
+ updatedAt: Date;
4262
+ deletedAt: Date | null;
4263
+ isDefault: boolean;
4264
+ systemName: string;
4265
+ displayName: string;
4266
+ isArchived: boolean;
4267
+ isRequired: boolean;
4268
+ isUnique: boolean;
4269
+ };
4270
+ textValue: string | null;
4271
+ booleanValue: boolean | null;
4272
+ numberValue: number | null;
4273
+ dateValue: Date | null;
4274
+ uploads: {
4275
+ id: string;
4276
+ createdAt: Date;
4277
+ updatedAt: Date;
4278
+ deletedAt: Date | null;
4279
+ customFieldId: string;
4280
+ upload: {
4281
+ id: string;
4282
+ createdAt: Date;
4283
+ updatedAt: Date;
4284
+ deletedAt: Date | null;
4285
+ fileName: string;
4286
+ fileKey: string;
4287
+ bucketName: string;
4288
+ fileSize: number;
4289
+ };
4290
+ }[];
4291
+ }>, "many">;
4292
+ contactEmails: z.ZodArray<z.ZodObject<{
4293
+ id: z.ZodString;
4294
+ createdAt: z.ZodDate;
4295
+ updatedAt: z.ZodDate;
4296
+ deletedAt: z.ZodNullable<z.ZodDate>;
4297
+ email: z.ZodString;
4298
+ isPrimary: z.ZodBoolean;
4299
+ }, "strip", z.ZodTypeAny, {
4300
+ id: string;
4301
+ isPrimary: boolean;
4302
+ email: string;
4303
+ createdAt: Date;
4304
+ updatedAt: Date;
4305
+ deletedAt: Date | null;
4306
+ }, {
4307
+ id: string;
4308
+ isPrimary: boolean;
4309
+ email: string;
4310
+ createdAt: Date;
4311
+ updatedAt: Date;
4312
+ deletedAt: Date | null;
4313
+ }>, "many">;
4314
+ contactPhones: z.ZodArray<z.ZodObject<{
4315
+ id: z.ZodString;
4316
+ createdAt: z.ZodDate;
4317
+ updatedAt: z.ZodDate;
4318
+ deletedAt: z.ZodNullable<z.ZodDate>;
4319
+ phone: z.ZodString;
4320
+ isPrimary: z.ZodBoolean;
4321
+ }, "strip", z.ZodTypeAny, {
4322
+ id: string;
4323
+ isPrimary: boolean;
4324
+ createdAt: Date;
4325
+ updatedAt: Date;
4326
+ deletedAt: Date | null;
4327
+ phone: string;
4328
+ }, {
4329
+ id: string;
4330
+ isPrimary: boolean;
4331
+ createdAt: Date;
4332
+ updatedAt: Date;
4333
+ deletedAt: Date | null;
4334
+ phone: string;
4335
+ }>, "many">;
4336
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4337
+ id: z.ZodString;
4338
+ createdAt: z.ZodDate;
4339
+ updatedAt: z.ZodDate;
4340
+ deletedAt: z.ZodNullable<z.ZodDate>;
4341
+ entityId: z.ZodString;
4342
+ description: z.ZodString;
4343
+ entityType: z.ZodObject<{
4344
+ id: z.ZodString;
4345
+ createdAt: z.ZodDate;
4346
+ updatedAt: z.ZodDate;
4347
+ deletedAt: z.ZodNullable<z.ZodDate>;
4348
+ entity: z.ZodString;
4349
+ description: z.ZodNullable<z.ZodString>;
4350
+ }, "strip", z.ZodTypeAny, {
4351
+ id: string;
4352
+ description: string | null;
4353
+ createdAt: Date;
4354
+ updatedAt: Date;
4355
+ deletedAt: Date | null;
4356
+ entity: string;
4357
+ }, {
4358
+ id: string;
4359
+ description: string | null;
4360
+ createdAt: Date;
4361
+ updatedAt: Date;
4362
+ deletedAt: Date | null;
4363
+ entity: string;
4364
+ }>;
4365
+ }, "strip", z.ZodTypeAny, {
4366
+ id: string;
4367
+ description: string;
4368
+ createdAt: Date;
4369
+ updatedAt: Date;
4370
+ deletedAt: Date | null;
4371
+ entityId: string;
4372
+ entityType: {
4373
+ id: string;
4374
+ description: string | null;
4375
+ createdAt: Date;
4376
+ updatedAt: Date;
4377
+ deletedAt: Date | null;
4378
+ entity: string;
4379
+ };
4380
+ }, {
4381
+ id: string;
4382
+ description: string;
4383
+ createdAt: Date;
4384
+ updatedAt: Date;
4385
+ deletedAt: Date | null;
4386
+ entityId: string;
4387
+ entityType: {
4388
+ id: string;
4389
+ description: string | null;
4390
+ createdAt: Date;
4391
+ updatedAt: Date;
4392
+ deletedAt: Date | null;
4393
+ entity: string;
4394
+ };
4395
+ }>, "many">>;
4396
+ }, "strip", z.ZodTypeAny, {
4397
+ id: string;
4398
+ channel: string | null;
4399
+ address: string | null;
4400
+ name: string;
4401
+ createdAt: Date;
4402
+ updatedAt: Date;
4403
+ deletedAt: Date | null;
4404
+ customFields: {
4405
+ id: string;
4406
+ createdAt: Date;
4407
+ updatedAt: Date;
4408
+ deletedAt: Date | null;
4409
+ attribute: {
4410
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4411
+ id: string;
4412
+ position: number;
4413
+ createdAt: Date;
4414
+ updatedAt: Date;
4415
+ deletedAt: Date | null;
4416
+ isDefault: boolean;
4417
+ systemName: string;
4418
+ displayName: string;
4419
+ isArchived: boolean;
4420
+ isRequired: boolean;
4421
+ isUnique: boolean;
4422
+ };
4423
+ textValue: string | null;
4424
+ booleanValue: boolean | null;
4425
+ numberValue: number | null;
4426
+ dateValue: Date | null;
4427
+ uploads: {
4428
+ id: string;
4429
+ createdAt: Date;
4430
+ updatedAt: Date;
4431
+ deletedAt: Date | null;
4432
+ customFieldId: string;
4433
+ upload: {
4434
+ id: string;
4435
+ createdAt: Date;
4436
+ updatedAt: Date;
4437
+ deletedAt: Date | null;
4438
+ fileName: string;
4439
+ fileKey: string;
4440
+ bucketName: string;
4441
+ fileSize: number;
4442
+ };
4443
+ }[];
4444
+ }[];
4445
+ notes: string | null;
4446
+ contactProfile: string | null;
4447
+ socialProfileUrl: string | null;
4448
+ tags: {
4449
+ id: string;
4450
+ name: string;
4451
+ createdAt: Date;
4452
+ updatedAt: Date;
4453
+ deletedAt: Date | null;
4454
+ }[];
4455
+ company: {
4456
+ id: string;
4457
+ createdAt: Date;
4458
+ updatedAt: Date;
4459
+ deletedAt: Date | null;
4460
+ address?: string | null | undefined;
4461
+ name?: string | undefined;
4462
+ phone?: string | null | undefined;
4463
+ industry?: string | null | undefined;
4464
+ } | null;
4465
+ contactEmails: {
4466
+ id: string;
4467
+ isPrimary: boolean;
4468
+ email: string;
4469
+ createdAt: Date;
4470
+ updatedAt: Date;
4471
+ deletedAt: Date | null;
4472
+ }[];
4473
+ contactPhones: {
4474
+ id: string;
4475
+ isPrimary: boolean;
4476
+ createdAt: Date;
4477
+ updatedAt: Date;
4478
+ deletedAt: Date | null;
4479
+ phone: string;
4480
+ }[];
4481
+ activityLogs?: {
4482
+ id: string;
4483
+ description: string;
4484
+ createdAt: Date;
4485
+ updatedAt: Date;
4486
+ deletedAt: Date | null;
4487
+ entityId: string;
4488
+ entityType: {
4489
+ id: string;
4490
+ description: string | null;
4491
+ createdAt: Date;
4492
+ updatedAt: Date;
4493
+ deletedAt: Date | null;
4494
+ entity: string;
4495
+ };
4496
+ }[] | undefined;
4497
+ }, {
4498
+ id: string;
4499
+ channel: string | null;
4500
+ address: string | null;
4501
+ name: string;
4502
+ createdAt: Date;
4503
+ updatedAt: Date;
4504
+ deletedAt: Date | null;
4505
+ customFields: {
4506
+ id: string;
4507
+ createdAt: Date;
4508
+ updatedAt: Date;
4509
+ deletedAt: Date | null;
4510
+ attribute: {
4511
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4512
+ id: string;
4513
+ position: number;
4514
+ createdAt: Date;
4515
+ updatedAt: Date;
4516
+ deletedAt: Date | null;
4517
+ isDefault: boolean;
4518
+ systemName: string;
4519
+ displayName: string;
4520
+ isArchived: boolean;
4521
+ isRequired: boolean;
4522
+ isUnique: boolean;
4523
+ };
4524
+ textValue: string | null;
4525
+ booleanValue: boolean | null;
4526
+ numberValue: number | null;
4527
+ dateValue: Date | null;
4528
+ uploads: {
4529
+ id: string;
4530
+ createdAt: Date;
4531
+ updatedAt: Date;
4532
+ deletedAt: Date | null;
4533
+ customFieldId: string;
4534
+ upload: {
4535
+ id: string;
4536
+ createdAt: Date;
4537
+ updatedAt: Date;
4538
+ deletedAt: Date | null;
4539
+ fileName: string;
4540
+ fileKey: string;
4541
+ bucketName: string;
4542
+ fileSize: number;
4543
+ };
4544
+ }[];
4545
+ }[];
4546
+ notes: string | null;
4547
+ contactProfile: string | null;
4548
+ socialProfileUrl: string | null;
4549
+ tags: {
4550
+ id: string;
4551
+ name: string;
4552
+ createdAt: Date;
4553
+ updatedAt: Date;
4554
+ deletedAt: Date | null;
4555
+ }[];
4556
+ company: {
4557
+ id: string;
4558
+ createdAt: Date;
4559
+ updatedAt: Date;
4560
+ deletedAt: Date | null;
4561
+ address?: string | null | undefined;
4562
+ name?: string | undefined;
4563
+ phone?: string | null | undefined;
4564
+ industry?: string | null | undefined;
4565
+ } | null;
4566
+ contactEmails: {
4567
+ id: string;
4568
+ isPrimary: boolean;
4569
+ email: string;
4570
+ createdAt: Date;
4571
+ updatedAt: Date;
4572
+ deletedAt: Date | null;
4573
+ }[];
4574
+ contactPhones: {
4575
+ id: string;
4576
+ isPrimary: boolean;
4577
+ createdAt: Date;
4578
+ updatedAt: Date;
4579
+ deletedAt: Date | null;
4580
+ phone: string;
4581
+ }[];
4582
+ activityLogs?: {
4583
+ id: string;
4584
+ description: string;
4585
+ createdAt: Date;
4586
+ updatedAt: Date;
4587
+ deletedAt: Date | null;
4588
+ entityId: string;
4589
+ entityType: {
4590
+ id: string;
4591
+ description: string | null;
4592
+ createdAt: Date;
4593
+ updatedAt: Date;
4594
+ deletedAt: Date | null;
4595
+ entity: string;
4596
+ };
4597
+ }[] | undefined;
4598
+ }>;
4599
+ }, "strip", z.ZodTypeAny, {
4600
+ data: {
4601
+ id: string;
4602
+ channel: string | null;
4603
+ address: string | null;
4604
+ name: string;
4605
+ createdAt: Date;
4606
+ updatedAt: Date;
4607
+ deletedAt: Date | null;
4608
+ customFields: {
4609
+ id: string;
4610
+ createdAt: Date;
4611
+ updatedAt: Date;
4612
+ deletedAt: Date | null;
4613
+ attribute: {
4614
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4615
+ id: string;
4616
+ position: number;
4617
+ createdAt: Date;
4618
+ updatedAt: Date;
4619
+ deletedAt: Date | null;
4620
+ isDefault: boolean;
4621
+ systemName: string;
4622
+ displayName: string;
4623
+ isArchived: boolean;
4624
+ isRequired: boolean;
4625
+ isUnique: boolean;
4626
+ };
4627
+ textValue: string | null;
4628
+ booleanValue: boolean | null;
4629
+ numberValue: number | null;
4630
+ dateValue: Date | null;
4631
+ uploads: {
4632
+ id: string;
4633
+ createdAt: Date;
4634
+ updatedAt: Date;
4635
+ deletedAt: Date | null;
4636
+ customFieldId: string;
4637
+ upload: {
4638
+ id: string;
4639
+ createdAt: Date;
4640
+ updatedAt: Date;
4641
+ deletedAt: Date | null;
4642
+ fileName: string;
4643
+ fileKey: string;
4644
+ bucketName: string;
4645
+ fileSize: number;
4646
+ };
4647
+ }[];
4648
+ }[];
4649
+ notes: string | null;
4650
+ contactProfile: string | null;
4651
+ socialProfileUrl: string | null;
4652
+ tags: {
4653
+ id: string;
4654
+ name: string;
4655
+ createdAt: Date;
4656
+ updatedAt: Date;
4657
+ deletedAt: Date | null;
4658
+ }[];
4659
+ company: {
4660
+ id: string;
4661
+ createdAt: Date;
4662
+ updatedAt: Date;
4663
+ deletedAt: Date | null;
4664
+ address?: string | null | undefined;
4665
+ name?: string | undefined;
4666
+ phone?: string | null | undefined;
4667
+ industry?: string | null | undefined;
4668
+ } | null;
4669
+ contactEmails: {
4670
+ id: string;
4671
+ isPrimary: boolean;
4672
+ email: string;
4673
+ createdAt: Date;
4674
+ updatedAt: Date;
4675
+ deletedAt: Date | null;
4676
+ }[];
4677
+ contactPhones: {
4678
+ id: string;
4679
+ isPrimary: boolean;
4680
+ createdAt: Date;
4681
+ updatedAt: Date;
4682
+ deletedAt: Date | null;
4683
+ phone: string;
4684
+ }[];
4685
+ activityLogs?: {
4686
+ id: string;
4687
+ description: string;
4688
+ createdAt: Date;
4689
+ updatedAt: Date;
4690
+ deletedAt: Date | null;
4691
+ entityId: string;
4692
+ entityType: {
4693
+ id: string;
4694
+ description: string | null;
4695
+ createdAt: Date;
4696
+ updatedAt: Date;
4697
+ deletedAt: Date | null;
4698
+ entity: string;
4699
+ };
4700
+ }[] | undefined;
4701
+ };
4702
+ requestId: string;
4703
+ }, {
4704
+ data: {
4705
+ id: string;
4706
+ channel: string | null;
4707
+ address: string | null;
4708
+ name: string;
4709
+ createdAt: Date;
4710
+ updatedAt: Date;
4711
+ deletedAt: Date | null;
4712
+ customFields: {
4713
+ id: string;
4714
+ createdAt: Date;
4715
+ updatedAt: Date;
4716
+ deletedAt: Date | null;
4717
+ attribute: {
4718
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4719
+ id: string;
4720
+ position: number;
4721
+ createdAt: Date;
4722
+ updatedAt: Date;
4723
+ deletedAt: Date | null;
4724
+ isDefault: boolean;
4725
+ systemName: string;
4726
+ displayName: string;
4727
+ isArchived: boolean;
4728
+ isRequired: boolean;
4729
+ isUnique: boolean;
4730
+ };
4731
+ textValue: string | null;
4732
+ booleanValue: boolean | null;
4733
+ numberValue: number | null;
4734
+ dateValue: Date | null;
4735
+ uploads: {
4736
+ id: string;
4737
+ createdAt: Date;
4738
+ updatedAt: Date;
4739
+ deletedAt: Date | null;
4740
+ customFieldId: string;
4741
+ upload: {
4742
+ id: string;
4743
+ createdAt: Date;
4744
+ updatedAt: Date;
4745
+ deletedAt: Date | null;
4746
+ fileName: string;
4747
+ fileKey: string;
4748
+ bucketName: string;
4749
+ fileSize: number;
4750
+ };
4751
+ }[];
4752
+ }[];
4753
+ notes: string | null;
4754
+ contactProfile: string | null;
4755
+ socialProfileUrl: string | null;
4756
+ tags: {
4757
+ id: string;
4758
+ name: string;
4759
+ createdAt: Date;
4760
+ updatedAt: Date;
4761
+ deletedAt: Date | null;
4762
+ }[];
4763
+ company: {
4764
+ id: string;
4765
+ createdAt: Date;
4766
+ updatedAt: Date;
4767
+ deletedAt: Date | null;
4768
+ address?: string | null | undefined;
4769
+ name?: string | undefined;
4770
+ phone?: string | null | undefined;
4771
+ industry?: string | null | undefined;
4772
+ } | null;
4773
+ contactEmails: {
4774
+ id: string;
4775
+ isPrimary: boolean;
4776
+ email: string;
4777
+ createdAt: Date;
4778
+ updatedAt: Date;
4779
+ deletedAt: Date | null;
4780
+ }[];
4781
+ contactPhones: {
4782
+ id: string;
4783
+ isPrimary: boolean;
4784
+ createdAt: Date;
4785
+ updatedAt: Date;
4786
+ deletedAt: Date | null;
4787
+ phone: string;
4788
+ }[];
4789
+ activityLogs?: {
4790
+ id: string;
4791
+ description: string;
4792
+ createdAt: Date;
4793
+ updatedAt: Date;
4794
+ deletedAt: Date | null;
4795
+ entityId: string;
4796
+ entityType: {
4797
+ id: string;
4798
+ description: string | null;
4799
+ createdAt: Date;
4800
+ updatedAt: Date;
4801
+ deletedAt: Date | null;
4802
+ entity: string;
4803
+ };
4804
+ }[] | undefined;
4805
+ };
4806
+ requestId: string;
4807
+ }>;
4808
+ 400: z.ZodObject<{
4809
+ message: z.ZodString;
4810
+ }, "strip", z.ZodTypeAny, {
4811
+ message: string;
4812
+ }, {
4813
+ message: string;
4814
+ }>;
4815
+ 409: z.ZodObject<{
4816
+ message: z.ZodString;
4817
+ }, "strip", z.ZodTypeAny, {
4818
+ message: string;
4819
+ }, {
4820
+ message: string;
4821
+ }>;
4822
+ 500: z.ZodObject<{
4823
+ message: z.ZodString;
4824
+ }, "strip", z.ZodTypeAny, {
4825
+ message: string;
4826
+ }, {
4827
+ message: string;
4828
+ }>;
4829
+ 401: z.ZodObject<{
4830
+ message: z.ZodString;
4831
+ error: z.ZodAny;
4832
+ }, "strip", z.ZodTypeAny, {
4833
+ message: string;
4834
+ error?: any;
4835
+ }, {
4836
+ message: string;
4837
+ error?: any;
4838
+ }>;
4839
+ 404: z.ZodObject<{
4840
+ message: z.ZodString;
4841
+ error: z.ZodAny;
4842
+ }, "strip", z.ZodTypeAny, {
4843
+ message: string;
4844
+ error?: any;
4845
+ }, {
4846
+ message: string;
4847
+ error?: any;
4848
+ }>;
4849
+ 422: z.ZodObject<{
4850
+ message: z.ZodString;
4851
+ error: z.ZodAny;
4852
+ }, "strip", z.ZodTypeAny, {
4853
+ message: string;
4854
+ error?: any;
4855
+ }, {
4856
+ message: string;
4857
+ error?: any;
4858
+ }>;
4859
+ };
4860
+ path: "contact/phone";
4861
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4862
+ 'x-tenant': z.ZodString;
4863
+ authorization: z.ZodString;
4864
+ }, "strip", z.ZodTypeAny, {
4865
+ 'x-tenant': string;
4866
+ authorization: string;
4867
+ }, {
4868
+ 'x-tenant': string;
4869
+ authorization: string;
4870
+ }>>>;
4871
+ };
3844
4872
  };
3845
4873
  //# sourceMappingURL=index.d.ts.map