@kl1/contracts 1.0.14 → 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.
@@ -1845,5 +1845,3069 @@ export declare const ContactContractValidationSchema: {
1845
1845
  }>, "many">;
1846
1846
  };
1847
1847
  };
1848
+ createContactByPhone: {
1849
+ request: z.ZodObject<{
1850
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ phoneNumber: string;
1853
+ }, {
1854
+ phoneNumber: string;
1855
+ }>;
1856
+ response: z.ZodObject<{
1857
+ id: z.ZodString;
1858
+ createdAt: z.ZodDate;
1859
+ updatedAt: z.ZodDate;
1860
+ deletedAt: z.ZodNullable<z.ZodDate>;
1861
+ name: z.ZodString;
1862
+ address: z.ZodNullable<z.ZodString>;
1863
+ channel: z.ZodNullable<z.ZodString>;
1864
+ notes: z.ZodNullable<z.ZodString>;
1865
+ contactProfile: z.ZodNullable<z.ZodString>;
1866
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1867
+ tags: z.ZodArray<z.ZodObject<{
1868
+ id: z.ZodString;
1869
+ createdAt: z.ZodDate;
1870
+ updatedAt: z.ZodDate;
1871
+ deletedAt: z.ZodNullable<z.ZodDate>;
1872
+ name: z.ZodString;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ id: string;
1875
+ name: string;
1876
+ createdAt: Date;
1877
+ updatedAt: Date;
1878
+ deletedAt: Date | null;
1879
+ }, {
1880
+ id: string;
1881
+ name: string;
1882
+ createdAt: Date;
1883
+ updatedAt: Date;
1884
+ deletedAt: Date | null;
1885
+ }>, "many">;
1886
+ company: z.ZodNullable<z.ZodObject<Omit<{
1887
+ id: z.ZodString;
1888
+ createdAt: z.ZodDate;
1889
+ updatedAt: z.ZodDate;
1890
+ deletedAt: z.ZodNullable<z.ZodDate>;
1891
+ name: z.ZodOptional<z.ZodString>;
1892
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1893
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1894
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1895
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1896
+ id: z.ZodString;
1897
+ createdAt: z.ZodDate;
1898
+ updatedAt: z.ZodDate;
1899
+ deletedAt: z.ZodNullable<z.ZodDate>;
1900
+ textValue: z.ZodNullable<z.ZodString>;
1901
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1902
+ numberValue: z.ZodNullable<z.ZodNumber>;
1903
+ dateValue: z.ZodNullable<z.ZodString>;
1904
+ attribute: z.ZodObject<Omit<{
1905
+ id: z.ZodString;
1906
+ createdAt: z.ZodDate;
1907
+ updatedAt: z.ZodDate;
1908
+ deletedAt: z.ZodNullable<z.ZodDate>;
1909
+ systemName: z.ZodString;
1910
+ displayName: z.ZodString;
1911
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1912
+ position: z.ZodNumber;
1913
+ isDefault: z.ZodBoolean;
1914
+ isArchived: z.ZodBoolean;
1915
+ isRequired: z.ZodBoolean;
1916
+ isUnique: z.ZodBoolean;
1917
+ options: z.ZodArray<z.ZodObject<{
1918
+ position: z.ZodNumber;
1919
+ value: z.ZodString;
1920
+ label: z.ZodString;
1921
+ isDefault: z.ZodBoolean;
1922
+ id: z.ZodString;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ id: string;
1925
+ position: number;
1926
+ value: string;
1927
+ label: string;
1928
+ isDefault: boolean;
1929
+ }, {
1930
+ id: string;
1931
+ position: number;
1932
+ value: string;
1933
+ label: string;
1934
+ isDefault: boolean;
1935
+ }>, "many">;
1936
+ group: z.ZodObject<{
1937
+ id: z.ZodString;
1938
+ createdAt: z.ZodDate;
1939
+ updatedAt: z.ZodDate;
1940
+ deletedAt: z.ZodNullable<z.ZodDate>;
1941
+ systemName: z.ZodString;
1942
+ displayName: z.ZodString;
1943
+ }, "strip", z.ZodTypeAny, {
1944
+ id: string;
1945
+ createdAt: Date;
1946
+ updatedAt: Date;
1947
+ deletedAt: Date | null;
1948
+ systemName: string;
1949
+ displayName: string;
1950
+ }, {
1951
+ id: string;
1952
+ createdAt: Date;
1953
+ updatedAt: Date;
1954
+ deletedAt: Date | null;
1955
+ systemName: string;
1956
+ displayName: string;
1957
+ }>;
1958
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1959
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1960
+ id: string;
1961
+ position: number;
1962
+ createdAt: Date;
1963
+ updatedAt: Date;
1964
+ deletedAt: Date | null;
1965
+ isDefault: boolean;
1966
+ systemName: string;
1967
+ displayName: string;
1968
+ isArchived: boolean;
1969
+ isRequired: boolean;
1970
+ isUnique: boolean;
1971
+ }, {
1972
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1973
+ id: string;
1974
+ position: number;
1975
+ createdAt: Date;
1976
+ updatedAt: Date;
1977
+ deletedAt: Date | null;
1978
+ isDefault: boolean;
1979
+ systemName: string;
1980
+ displayName: string;
1981
+ isArchived: boolean;
1982
+ isRequired: boolean;
1983
+ isUnique: boolean;
1984
+ }>;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ id: string;
1987
+ createdAt: Date;
1988
+ updatedAt: Date;
1989
+ deletedAt: Date | null;
1990
+ attribute: {
1991
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1992
+ id: string;
1993
+ position: number;
1994
+ createdAt: Date;
1995
+ updatedAt: Date;
1996
+ deletedAt: Date | null;
1997
+ isDefault: boolean;
1998
+ systemName: string;
1999
+ displayName: string;
2000
+ isArchived: boolean;
2001
+ isRequired: boolean;
2002
+ isUnique: boolean;
2003
+ };
2004
+ textValue: string | null;
2005
+ booleanValue: boolean | null;
2006
+ numberValue: number | null;
2007
+ dateValue: string | null;
2008
+ }, {
2009
+ id: string;
2010
+ createdAt: Date;
2011
+ updatedAt: Date;
2012
+ deletedAt: Date | null;
2013
+ attribute: {
2014
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2015
+ id: string;
2016
+ position: number;
2017
+ createdAt: Date;
2018
+ updatedAt: Date;
2019
+ deletedAt: Date | null;
2020
+ isDefault: boolean;
2021
+ systemName: string;
2022
+ displayName: string;
2023
+ isArchived: boolean;
2024
+ isRequired: boolean;
2025
+ isUnique: boolean;
2026
+ };
2027
+ textValue: string | null;
2028
+ booleanValue: boolean | null;
2029
+ numberValue: number | null;
2030
+ dateValue: string | null;
2031
+ }>, "many">>;
2032
+ }, "customFields">, "strip", z.ZodTypeAny, {
2033
+ id: string;
2034
+ createdAt: Date;
2035
+ updatedAt: Date;
2036
+ deletedAt: Date | null;
2037
+ address?: string | null | undefined;
2038
+ name?: string | undefined;
2039
+ phone?: string | null | undefined;
2040
+ industry?: string | null | undefined;
2041
+ }, {
2042
+ id: string;
2043
+ createdAt: Date;
2044
+ updatedAt: Date;
2045
+ deletedAt: Date | null;
2046
+ address?: string | null | undefined;
2047
+ name?: string | undefined;
2048
+ phone?: string | null | undefined;
2049
+ industry?: string | null | undefined;
2050
+ }>>;
2051
+ customFields: z.ZodArray<z.ZodObject<{
2052
+ id: z.ZodString;
2053
+ createdAt: z.ZodDate;
2054
+ updatedAt: z.ZodDate;
2055
+ deletedAt: z.ZodNullable<z.ZodDate>;
2056
+ textValue: z.ZodNullable<z.ZodString>;
2057
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2058
+ numberValue: z.ZodNullable<z.ZodNumber>;
2059
+ dateValue: z.ZodNullable<z.ZodDate>;
2060
+ attribute: z.ZodObject<Omit<{
2061
+ id: z.ZodString;
2062
+ createdAt: z.ZodDate;
2063
+ updatedAt: z.ZodDate;
2064
+ deletedAt: z.ZodNullable<z.ZodDate>;
2065
+ systemName: z.ZodString;
2066
+ displayName: z.ZodString;
2067
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2068
+ position: z.ZodNumber;
2069
+ isDefault: z.ZodBoolean;
2070
+ isArchived: z.ZodBoolean;
2071
+ isRequired: z.ZodBoolean;
2072
+ isUnique: z.ZodBoolean;
2073
+ options: z.ZodArray<z.ZodObject<{
2074
+ position: z.ZodNumber;
2075
+ value: z.ZodString;
2076
+ label: z.ZodString;
2077
+ isDefault: z.ZodBoolean;
2078
+ id: z.ZodString;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ id: string;
2081
+ position: number;
2082
+ value: string;
2083
+ label: string;
2084
+ isDefault: boolean;
2085
+ }, {
2086
+ id: string;
2087
+ position: number;
2088
+ value: string;
2089
+ label: string;
2090
+ isDefault: boolean;
2091
+ }>, "many">;
2092
+ group: z.ZodObject<{
2093
+ id: z.ZodString;
2094
+ createdAt: z.ZodDate;
2095
+ updatedAt: z.ZodDate;
2096
+ deletedAt: z.ZodNullable<z.ZodDate>;
2097
+ systemName: z.ZodString;
2098
+ displayName: z.ZodString;
2099
+ }, "strip", z.ZodTypeAny, {
2100
+ id: string;
2101
+ createdAt: Date;
2102
+ updatedAt: Date;
2103
+ deletedAt: Date | null;
2104
+ systemName: string;
2105
+ displayName: string;
2106
+ }, {
2107
+ id: string;
2108
+ createdAt: Date;
2109
+ updatedAt: Date;
2110
+ deletedAt: Date | null;
2111
+ systemName: string;
2112
+ displayName: string;
2113
+ }>;
2114
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2115
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2116
+ id: string;
2117
+ position: number;
2118
+ createdAt: Date;
2119
+ updatedAt: Date;
2120
+ deletedAt: Date | null;
2121
+ isDefault: boolean;
2122
+ systemName: string;
2123
+ displayName: string;
2124
+ isArchived: boolean;
2125
+ isRequired: boolean;
2126
+ isUnique: boolean;
2127
+ }, {
2128
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2129
+ id: string;
2130
+ position: number;
2131
+ createdAt: Date;
2132
+ updatedAt: Date;
2133
+ deletedAt: Date | null;
2134
+ isDefault: boolean;
2135
+ systemName: string;
2136
+ displayName: string;
2137
+ isArchived: boolean;
2138
+ isRequired: boolean;
2139
+ isUnique: boolean;
2140
+ }>;
2141
+ uploads: z.ZodArray<z.ZodObject<{
2142
+ id: z.ZodString;
2143
+ createdAt: z.ZodDate;
2144
+ updatedAt: z.ZodDate;
2145
+ deletedAt: z.ZodNullable<z.ZodDate>;
2146
+ customFieldId: z.ZodString;
2147
+ upload: z.ZodObject<{
2148
+ id: z.ZodString;
2149
+ createdAt: z.ZodDate;
2150
+ updatedAt: z.ZodDate;
2151
+ deletedAt: z.ZodNullable<z.ZodDate>;
2152
+ bucketName: z.ZodString;
2153
+ fileName: z.ZodString;
2154
+ fileSize: z.ZodNumber;
2155
+ fileKey: z.ZodString;
2156
+ }, "strip", z.ZodTypeAny, {
2157
+ id: string;
2158
+ createdAt: Date;
2159
+ updatedAt: Date;
2160
+ deletedAt: Date | null;
2161
+ fileName: string;
2162
+ fileKey: string;
2163
+ bucketName: string;
2164
+ fileSize: number;
2165
+ }, {
2166
+ id: string;
2167
+ createdAt: Date;
2168
+ updatedAt: Date;
2169
+ deletedAt: Date | null;
2170
+ fileName: string;
2171
+ fileKey: string;
2172
+ bucketName: string;
2173
+ fileSize: number;
2174
+ }>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ id: string;
2177
+ createdAt: Date;
2178
+ updatedAt: Date;
2179
+ deletedAt: Date | null;
2180
+ customFieldId: string;
2181
+ upload: {
2182
+ id: string;
2183
+ createdAt: Date;
2184
+ updatedAt: Date;
2185
+ deletedAt: Date | null;
2186
+ fileName: string;
2187
+ fileKey: string;
2188
+ bucketName: string;
2189
+ fileSize: number;
2190
+ };
2191
+ }, {
2192
+ id: string;
2193
+ createdAt: Date;
2194
+ updatedAt: Date;
2195
+ deletedAt: Date | null;
2196
+ customFieldId: string;
2197
+ upload: {
2198
+ id: string;
2199
+ createdAt: Date;
2200
+ updatedAt: Date;
2201
+ deletedAt: Date | null;
2202
+ fileName: string;
2203
+ fileKey: string;
2204
+ bucketName: string;
2205
+ fileSize: number;
2206
+ };
2207
+ }>, "many">;
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ id: string;
2210
+ createdAt: Date;
2211
+ updatedAt: Date;
2212
+ deletedAt: Date | null;
2213
+ attribute: {
2214
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2215
+ id: string;
2216
+ position: number;
2217
+ createdAt: Date;
2218
+ updatedAt: Date;
2219
+ deletedAt: Date | null;
2220
+ isDefault: boolean;
2221
+ systemName: string;
2222
+ displayName: string;
2223
+ isArchived: boolean;
2224
+ isRequired: boolean;
2225
+ isUnique: boolean;
2226
+ };
2227
+ textValue: string | null;
2228
+ booleanValue: boolean | null;
2229
+ numberValue: number | null;
2230
+ dateValue: Date | null;
2231
+ uploads: {
2232
+ id: string;
2233
+ createdAt: Date;
2234
+ updatedAt: Date;
2235
+ deletedAt: Date | null;
2236
+ customFieldId: string;
2237
+ upload: {
2238
+ id: string;
2239
+ createdAt: Date;
2240
+ updatedAt: Date;
2241
+ deletedAt: Date | null;
2242
+ fileName: string;
2243
+ fileKey: string;
2244
+ bucketName: string;
2245
+ fileSize: number;
2246
+ };
2247
+ }[];
2248
+ }, {
2249
+ id: string;
2250
+ createdAt: Date;
2251
+ updatedAt: Date;
2252
+ deletedAt: Date | null;
2253
+ attribute: {
2254
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2255
+ id: string;
2256
+ position: number;
2257
+ createdAt: Date;
2258
+ updatedAt: Date;
2259
+ deletedAt: Date | null;
2260
+ isDefault: boolean;
2261
+ systemName: string;
2262
+ displayName: string;
2263
+ isArchived: boolean;
2264
+ isRequired: boolean;
2265
+ isUnique: boolean;
2266
+ };
2267
+ textValue: string | null;
2268
+ booleanValue: boolean | null;
2269
+ numberValue: number | null;
2270
+ dateValue: Date | null;
2271
+ uploads: {
2272
+ id: string;
2273
+ createdAt: Date;
2274
+ updatedAt: Date;
2275
+ deletedAt: Date | null;
2276
+ customFieldId: string;
2277
+ upload: {
2278
+ id: string;
2279
+ createdAt: Date;
2280
+ updatedAt: Date;
2281
+ deletedAt: Date | null;
2282
+ fileName: string;
2283
+ fileKey: string;
2284
+ bucketName: string;
2285
+ fileSize: number;
2286
+ };
2287
+ }[];
2288
+ }>, "many">;
2289
+ contactEmails: z.ZodArray<z.ZodObject<{
2290
+ id: z.ZodString;
2291
+ createdAt: z.ZodDate;
2292
+ updatedAt: z.ZodDate;
2293
+ deletedAt: z.ZodNullable<z.ZodDate>;
2294
+ email: z.ZodString;
2295
+ isPrimary: z.ZodBoolean;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ id: string;
2298
+ isPrimary: boolean;
2299
+ email: string;
2300
+ createdAt: Date;
2301
+ updatedAt: Date;
2302
+ deletedAt: Date | null;
2303
+ }, {
2304
+ id: string;
2305
+ isPrimary: boolean;
2306
+ email: string;
2307
+ createdAt: Date;
2308
+ updatedAt: Date;
2309
+ deletedAt: Date | null;
2310
+ }>, "many">;
2311
+ contactPhones: z.ZodArray<z.ZodObject<{
2312
+ id: z.ZodString;
2313
+ createdAt: z.ZodDate;
2314
+ updatedAt: z.ZodDate;
2315
+ deletedAt: z.ZodNullable<z.ZodDate>;
2316
+ phone: z.ZodString;
2317
+ isPrimary: z.ZodBoolean;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ id: string;
2320
+ isPrimary: boolean;
2321
+ createdAt: Date;
2322
+ updatedAt: Date;
2323
+ deletedAt: Date | null;
2324
+ phone: string;
2325
+ }, {
2326
+ id: string;
2327
+ isPrimary: boolean;
2328
+ createdAt: Date;
2329
+ updatedAt: Date;
2330
+ deletedAt: Date | null;
2331
+ phone: string;
2332
+ }>, "many">;
2333
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ createdAt: z.ZodDate;
2336
+ updatedAt: z.ZodDate;
2337
+ deletedAt: z.ZodNullable<z.ZodDate>;
2338
+ entityId: z.ZodString;
2339
+ description: z.ZodString;
2340
+ entityType: z.ZodObject<{
2341
+ id: z.ZodString;
2342
+ createdAt: z.ZodDate;
2343
+ updatedAt: z.ZodDate;
2344
+ deletedAt: z.ZodNullable<z.ZodDate>;
2345
+ entity: z.ZodString;
2346
+ description: z.ZodNullable<z.ZodString>;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ id: string;
2349
+ description: string | null;
2350
+ createdAt: Date;
2351
+ updatedAt: Date;
2352
+ deletedAt: Date | null;
2353
+ entity: string;
2354
+ }, {
2355
+ id: string;
2356
+ description: string | null;
2357
+ createdAt: Date;
2358
+ updatedAt: Date;
2359
+ deletedAt: Date | null;
2360
+ entity: string;
2361
+ }>;
2362
+ }, "strip", z.ZodTypeAny, {
2363
+ id: string;
2364
+ description: string;
2365
+ createdAt: Date;
2366
+ updatedAt: Date;
2367
+ deletedAt: Date | null;
2368
+ entityId: string;
2369
+ entityType: {
2370
+ id: string;
2371
+ description: string | null;
2372
+ createdAt: Date;
2373
+ updatedAt: Date;
2374
+ deletedAt: Date | null;
2375
+ entity: string;
2376
+ };
2377
+ }, {
2378
+ id: string;
2379
+ description: string;
2380
+ createdAt: Date;
2381
+ updatedAt: Date;
2382
+ deletedAt: Date | null;
2383
+ entityId: string;
2384
+ entityType: {
2385
+ id: string;
2386
+ description: string | null;
2387
+ createdAt: Date;
2388
+ updatedAt: Date;
2389
+ deletedAt: Date | null;
2390
+ entity: string;
2391
+ };
2392
+ }>, "many">>;
2393
+ }, "strip", z.ZodTypeAny, {
2394
+ id: string;
2395
+ channel: string | null;
2396
+ address: string | null;
2397
+ name: string;
2398
+ createdAt: Date;
2399
+ updatedAt: Date;
2400
+ deletedAt: Date | null;
2401
+ customFields: {
2402
+ id: string;
2403
+ createdAt: Date;
2404
+ updatedAt: Date;
2405
+ deletedAt: Date | null;
2406
+ attribute: {
2407
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2408
+ id: string;
2409
+ position: number;
2410
+ createdAt: Date;
2411
+ updatedAt: Date;
2412
+ deletedAt: Date | null;
2413
+ isDefault: boolean;
2414
+ systemName: string;
2415
+ displayName: string;
2416
+ isArchived: boolean;
2417
+ isRequired: boolean;
2418
+ isUnique: boolean;
2419
+ };
2420
+ textValue: string | null;
2421
+ booleanValue: boolean | null;
2422
+ numberValue: number | null;
2423
+ dateValue: Date | null;
2424
+ uploads: {
2425
+ id: string;
2426
+ createdAt: Date;
2427
+ updatedAt: Date;
2428
+ deletedAt: Date | null;
2429
+ customFieldId: string;
2430
+ upload: {
2431
+ id: string;
2432
+ createdAt: Date;
2433
+ updatedAt: Date;
2434
+ deletedAt: Date | null;
2435
+ fileName: string;
2436
+ fileKey: string;
2437
+ bucketName: string;
2438
+ fileSize: number;
2439
+ };
2440
+ }[];
2441
+ }[];
2442
+ notes: string | null;
2443
+ contactProfile: string | null;
2444
+ socialProfileUrl: string | null;
2445
+ tags: {
2446
+ id: string;
2447
+ name: string;
2448
+ createdAt: Date;
2449
+ updatedAt: Date;
2450
+ deletedAt: Date | null;
2451
+ }[];
2452
+ company: {
2453
+ id: string;
2454
+ createdAt: Date;
2455
+ updatedAt: Date;
2456
+ deletedAt: Date | null;
2457
+ address?: string | null | undefined;
2458
+ name?: string | undefined;
2459
+ phone?: string | null | undefined;
2460
+ industry?: string | null | undefined;
2461
+ } | null;
2462
+ contactEmails: {
2463
+ id: string;
2464
+ isPrimary: boolean;
2465
+ email: string;
2466
+ createdAt: Date;
2467
+ updatedAt: Date;
2468
+ deletedAt: Date | null;
2469
+ }[];
2470
+ contactPhones: {
2471
+ id: string;
2472
+ isPrimary: boolean;
2473
+ createdAt: Date;
2474
+ updatedAt: Date;
2475
+ deletedAt: Date | null;
2476
+ phone: string;
2477
+ }[];
2478
+ activityLogs?: {
2479
+ id: string;
2480
+ description: string;
2481
+ createdAt: Date;
2482
+ updatedAt: Date;
2483
+ deletedAt: Date | null;
2484
+ entityId: string;
2485
+ entityType: {
2486
+ id: string;
2487
+ description: string | null;
2488
+ createdAt: Date;
2489
+ updatedAt: Date;
2490
+ deletedAt: Date | null;
2491
+ entity: string;
2492
+ };
2493
+ }[] | undefined;
2494
+ }, {
2495
+ id: string;
2496
+ channel: string | null;
2497
+ address: string | null;
2498
+ name: string;
2499
+ createdAt: Date;
2500
+ updatedAt: Date;
2501
+ deletedAt: Date | null;
2502
+ customFields: {
2503
+ id: string;
2504
+ createdAt: Date;
2505
+ updatedAt: Date;
2506
+ deletedAt: Date | null;
2507
+ attribute: {
2508
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2509
+ id: string;
2510
+ position: number;
2511
+ createdAt: Date;
2512
+ updatedAt: Date;
2513
+ deletedAt: Date | null;
2514
+ isDefault: boolean;
2515
+ systemName: string;
2516
+ displayName: string;
2517
+ isArchived: boolean;
2518
+ isRequired: boolean;
2519
+ isUnique: boolean;
2520
+ };
2521
+ textValue: string | null;
2522
+ booleanValue: boolean | null;
2523
+ numberValue: number | null;
2524
+ dateValue: Date | null;
2525
+ uploads: {
2526
+ id: string;
2527
+ createdAt: Date;
2528
+ updatedAt: Date;
2529
+ deletedAt: Date | null;
2530
+ customFieldId: string;
2531
+ upload: {
2532
+ id: string;
2533
+ createdAt: Date;
2534
+ updatedAt: Date;
2535
+ deletedAt: Date | null;
2536
+ fileName: string;
2537
+ fileKey: string;
2538
+ bucketName: string;
2539
+ fileSize: number;
2540
+ };
2541
+ }[];
2542
+ }[];
2543
+ notes: string | null;
2544
+ contactProfile: string | null;
2545
+ socialProfileUrl: string | null;
2546
+ tags: {
2547
+ id: string;
2548
+ name: string;
2549
+ createdAt: Date;
2550
+ updatedAt: Date;
2551
+ deletedAt: Date | null;
2552
+ }[];
2553
+ company: {
2554
+ id: string;
2555
+ createdAt: Date;
2556
+ updatedAt: Date;
2557
+ deletedAt: Date | null;
2558
+ address?: string | null | undefined;
2559
+ name?: string | undefined;
2560
+ phone?: string | null | undefined;
2561
+ industry?: string | null | undefined;
2562
+ } | null;
2563
+ contactEmails: {
2564
+ id: string;
2565
+ isPrimary: boolean;
2566
+ email: string;
2567
+ createdAt: Date;
2568
+ updatedAt: Date;
2569
+ deletedAt: Date | null;
2570
+ }[];
2571
+ contactPhones: {
2572
+ id: string;
2573
+ isPrimary: boolean;
2574
+ createdAt: Date;
2575
+ updatedAt: Date;
2576
+ deletedAt: Date | null;
2577
+ phone: string;
2578
+ }[];
2579
+ activityLogs?: {
2580
+ id: string;
2581
+ description: string;
2582
+ createdAt: Date;
2583
+ updatedAt: Date;
2584
+ deletedAt: Date | null;
2585
+ entityId: string;
2586
+ entityType: {
2587
+ id: string;
2588
+ description: string | null;
2589
+ createdAt: Date;
2590
+ updatedAt: Date;
2591
+ deletedAt: Date | null;
2592
+ entity: string;
2593
+ };
2594
+ }[] | undefined;
2595
+ }>;
2596
+ };
2597
+ updateContactByPhone: {
2598
+ request: z.ZodObject<{
2599
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
2600
+ }, "strip", z.ZodTypeAny, {
2601
+ phoneNumber: string;
2602
+ }, {
2603
+ phoneNumber: string;
2604
+ }>;
2605
+ response: z.ZodObject<{
2606
+ id: z.ZodString;
2607
+ createdAt: z.ZodDate;
2608
+ updatedAt: z.ZodDate;
2609
+ deletedAt: z.ZodNullable<z.ZodDate>;
2610
+ name: z.ZodString;
2611
+ address: z.ZodNullable<z.ZodString>;
2612
+ channel: z.ZodNullable<z.ZodString>;
2613
+ notes: z.ZodNullable<z.ZodString>;
2614
+ contactProfile: z.ZodNullable<z.ZodString>;
2615
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2616
+ tags: z.ZodArray<z.ZodObject<{
2617
+ id: z.ZodString;
2618
+ createdAt: z.ZodDate;
2619
+ updatedAt: z.ZodDate;
2620
+ deletedAt: z.ZodNullable<z.ZodDate>;
2621
+ name: z.ZodString;
2622
+ }, "strip", z.ZodTypeAny, {
2623
+ id: string;
2624
+ name: string;
2625
+ createdAt: Date;
2626
+ updatedAt: Date;
2627
+ deletedAt: Date | null;
2628
+ }, {
2629
+ id: string;
2630
+ name: string;
2631
+ createdAt: Date;
2632
+ updatedAt: Date;
2633
+ deletedAt: Date | null;
2634
+ }>, "many">;
2635
+ company: z.ZodNullable<z.ZodObject<Omit<{
2636
+ id: z.ZodString;
2637
+ createdAt: z.ZodDate;
2638
+ updatedAt: z.ZodDate;
2639
+ deletedAt: z.ZodNullable<z.ZodDate>;
2640
+ name: z.ZodOptional<z.ZodString>;
2641
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2642
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2643
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2644
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2645
+ id: z.ZodString;
2646
+ createdAt: z.ZodDate;
2647
+ updatedAt: z.ZodDate;
2648
+ deletedAt: z.ZodNullable<z.ZodDate>;
2649
+ textValue: z.ZodNullable<z.ZodString>;
2650
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2651
+ numberValue: z.ZodNullable<z.ZodNumber>;
2652
+ dateValue: z.ZodNullable<z.ZodString>;
2653
+ attribute: z.ZodObject<Omit<{
2654
+ id: z.ZodString;
2655
+ createdAt: z.ZodDate;
2656
+ updatedAt: z.ZodDate;
2657
+ deletedAt: z.ZodNullable<z.ZodDate>;
2658
+ systemName: z.ZodString;
2659
+ displayName: z.ZodString;
2660
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2661
+ position: z.ZodNumber;
2662
+ isDefault: z.ZodBoolean;
2663
+ isArchived: z.ZodBoolean;
2664
+ isRequired: z.ZodBoolean;
2665
+ isUnique: z.ZodBoolean;
2666
+ options: z.ZodArray<z.ZodObject<{
2667
+ position: z.ZodNumber;
2668
+ value: z.ZodString;
2669
+ label: z.ZodString;
2670
+ isDefault: z.ZodBoolean;
2671
+ id: z.ZodString;
2672
+ }, "strip", z.ZodTypeAny, {
2673
+ id: string;
2674
+ position: number;
2675
+ value: string;
2676
+ label: string;
2677
+ isDefault: boolean;
2678
+ }, {
2679
+ id: string;
2680
+ position: number;
2681
+ value: string;
2682
+ label: string;
2683
+ isDefault: boolean;
2684
+ }>, "many">;
2685
+ group: z.ZodObject<{
2686
+ id: z.ZodString;
2687
+ createdAt: z.ZodDate;
2688
+ updatedAt: z.ZodDate;
2689
+ deletedAt: z.ZodNullable<z.ZodDate>;
2690
+ systemName: z.ZodString;
2691
+ displayName: z.ZodString;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ id: string;
2694
+ createdAt: Date;
2695
+ updatedAt: Date;
2696
+ deletedAt: Date | null;
2697
+ systemName: string;
2698
+ displayName: string;
2699
+ }, {
2700
+ id: string;
2701
+ createdAt: Date;
2702
+ updatedAt: Date;
2703
+ deletedAt: Date | null;
2704
+ systemName: string;
2705
+ displayName: string;
2706
+ }>;
2707
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2708
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2709
+ id: string;
2710
+ position: number;
2711
+ createdAt: Date;
2712
+ updatedAt: Date;
2713
+ deletedAt: Date | null;
2714
+ isDefault: boolean;
2715
+ systemName: string;
2716
+ displayName: string;
2717
+ isArchived: boolean;
2718
+ isRequired: boolean;
2719
+ isUnique: boolean;
2720
+ }, {
2721
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2722
+ id: string;
2723
+ position: number;
2724
+ createdAt: Date;
2725
+ updatedAt: Date;
2726
+ deletedAt: Date | null;
2727
+ isDefault: boolean;
2728
+ systemName: string;
2729
+ displayName: string;
2730
+ isArchived: boolean;
2731
+ isRequired: boolean;
2732
+ isUnique: boolean;
2733
+ }>;
2734
+ }, "strip", z.ZodTypeAny, {
2735
+ id: string;
2736
+ createdAt: Date;
2737
+ updatedAt: Date;
2738
+ deletedAt: Date | null;
2739
+ attribute: {
2740
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2741
+ id: string;
2742
+ position: number;
2743
+ createdAt: Date;
2744
+ updatedAt: Date;
2745
+ deletedAt: Date | null;
2746
+ isDefault: boolean;
2747
+ systemName: string;
2748
+ displayName: string;
2749
+ isArchived: boolean;
2750
+ isRequired: boolean;
2751
+ isUnique: boolean;
2752
+ };
2753
+ textValue: string | null;
2754
+ booleanValue: boolean | null;
2755
+ numberValue: number | null;
2756
+ dateValue: string | null;
2757
+ }, {
2758
+ id: string;
2759
+ createdAt: Date;
2760
+ updatedAt: Date;
2761
+ deletedAt: Date | null;
2762
+ attribute: {
2763
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2764
+ id: string;
2765
+ position: number;
2766
+ createdAt: Date;
2767
+ updatedAt: Date;
2768
+ deletedAt: Date | null;
2769
+ isDefault: boolean;
2770
+ systemName: string;
2771
+ displayName: string;
2772
+ isArchived: boolean;
2773
+ isRequired: boolean;
2774
+ isUnique: boolean;
2775
+ };
2776
+ textValue: string | null;
2777
+ booleanValue: boolean | null;
2778
+ numberValue: number | null;
2779
+ dateValue: string | null;
2780
+ }>, "many">>;
2781
+ }, "customFields">, "strip", z.ZodTypeAny, {
2782
+ id: string;
2783
+ createdAt: Date;
2784
+ updatedAt: Date;
2785
+ deletedAt: Date | null;
2786
+ address?: string | null | undefined;
2787
+ name?: string | undefined;
2788
+ phone?: string | null | undefined;
2789
+ industry?: string | null | undefined;
2790
+ }, {
2791
+ id: string;
2792
+ createdAt: Date;
2793
+ updatedAt: Date;
2794
+ deletedAt: Date | null;
2795
+ address?: string | null | undefined;
2796
+ name?: string | undefined;
2797
+ phone?: string | null | undefined;
2798
+ industry?: string | null | undefined;
2799
+ }>>;
2800
+ customFields: z.ZodArray<z.ZodObject<{
2801
+ id: z.ZodString;
2802
+ createdAt: z.ZodDate;
2803
+ updatedAt: z.ZodDate;
2804
+ deletedAt: z.ZodNullable<z.ZodDate>;
2805
+ textValue: z.ZodNullable<z.ZodString>;
2806
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2807
+ numberValue: z.ZodNullable<z.ZodNumber>;
2808
+ dateValue: z.ZodNullable<z.ZodDate>;
2809
+ attribute: z.ZodObject<Omit<{
2810
+ id: z.ZodString;
2811
+ createdAt: z.ZodDate;
2812
+ updatedAt: z.ZodDate;
2813
+ deletedAt: z.ZodNullable<z.ZodDate>;
2814
+ systemName: z.ZodString;
2815
+ displayName: z.ZodString;
2816
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2817
+ position: z.ZodNumber;
2818
+ isDefault: z.ZodBoolean;
2819
+ isArchived: z.ZodBoolean;
2820
+ isRequired: z.ZodBoolean;
2821
+ isUnique: z.ZodBoolean;
2822
+ options: z.ZodArray<z.ZodObject<{
2823
+ position: z.ZodNumber;
2824
+ value: z.ZodString;
2825
+ label: z.ZodString;
2826
+ isDefault: z.ZodBoolean;
2827
+ id: z.ZodString;
2828
+ }, "strip", z.ZodTypeAny, {
2829
+ id: string;
2830
+ position: number;
2831
+ value: string;
2832
+ label: string;
2833
+ isDefault: boolean;
2834
+ }, {
2835
+ id: string;
2836
+ position: number;
2837
+ value: string;
2838
+ label: string;
2839
+ isDefault: boolean;
2840
+ }>, "many">;
2841
+ group: z.ZodObject<{
2842
+ id: z.ZodString;
2843
+ createdAt: z.ZodDate;
2844
+ updatedAt: z.ZodDate;
2845
+ deletedAt: z.ZodNullable<z.ZodDate>;
2846
+ systemName: z.ZodString;
2847
+ displayName: z.ZodString;
2848
+ }, "strip", z.ZodTypeAny, {
2849
+ id: string;
2850
+ createdAt: Date;
2851
+ updatedAt: Date;
2852
+ deletedAt: Date | null;
2853
+ systemName: string;
2854
+ displayName: string;
2855
+ }, {
2856
+ id: string;
2857
+ createdAt: Date;
2858
+ updatedAt: Date;
2859
+ deletedAt: Date | null;
2860
+ systemName: string;
2861
+ displayName: string;
2862
+ }>;
2863
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2864
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2865
+ id: string;
2866
+ position: number;
2867
+ createdAt: Date;
2868
+ updatedAt: Date;
2869
+ deletedAt: Date | null;
2870
+ isDefault: boolean;
2871
+ systemName: string;
2872
+ displayName: string;
2873
+ isArchived: boolean;
2874
+ isRequired: boolean;
2875
+ isUnique: boolean;
2876
+ }, {
2877
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2878
+ id: string;
2879
+ position: number;
2880
+ createdAt: Date;
2881
+ updatedAt: Date;
2882
+ deletedAt: Date | null;
2883
+ isDefault: boolean;
2884
+ systemName: string;
2885
+ displayName: string;
2886
+ isArchived: boolean;
2887
+ isRequired: boolean;
2888
+ isUnique: boolean;
2889
+ }>;
2890
+ uploads: z.ZodArray<z.ZodObject<{
2891
+ id: z.ZodString;
2892
+ createdAt: z.ZodDate;
2893
+ updatedAt: z.ZodDate;
2894
+ deletedAt: z.ZodNullable<z.ZodDate>;
2895
+ customFieldId: z.ZodString;
2896
+ upload: z.ZodObject<{
2897
+ id: z.ZodString;
2898
+ createdAt: z.ZodDate;
2899
+ updatedAt: z.ZodDate;
2900
+ deletedAt: z.ZodNullable<z.ZodDate>;
2901
+ bucketName: z.ZodString;
2902
+ fileName: z.ZodString;
2903
+ fileSize: z.ZodNumber;
2904
+ fileKey: z.ZodString;
2905
+ }, "strip", z.ZodTypeAny, {
2906
+ id: string;
2907
+ createdAt: Date;
2908
+ updatedAt: Date;
2909
+ deletedAt: Date | null;
2910
+ fileName: string;
2911
+ fileKey: string;
2912
+ bucketName: string;
2913
+ fileSize: number;
2914
+ }, {
2915
+ id: string;
2916
+ createdAt: Date;
2917
+ updatedAt: Date;
2918
+ deletedAt: Date | null;
2919
+ fileName: string;
2920
+ fileKey: string;
2921
+ bucketName: string;
2922
+ fileSize: number;
2923
+ }>;
2924
+ }, "strip", z.ZodTypeAny, {
2925
+ id: string;
2926
+ createdAt: Date;
2927
+ updatedAt: Date;
2928
+ deletedAt: Date | null;
2929
+ customFieldId: string;
2930
+ upload: {
2931
+ id: string;
2932
+ createdAt: Date;
2933
+ updatedAt: Date;
2934
+ deletedAt: Date | null;
2935
+ fileName: string;
2936
+ fileKey: string;
2937
+ bucketName: string;
2938
+ fileSize: number;
2939
+ };
2940
+ }, {
2941
+ id: string;
2942
+ createdAt: Date;
2943
+ updatedAt: Date;
2944
+ deletedAt: Date | null;
2945
+ customFieldId: string;
2946
+ upload: {
2947
+ id: string;
2948
+ createdAt: Date;
2949
+ updatedAt: Date;
2950
+ deletedAt: Date | null;
2951
+ fileName: string;
2952
+ fileKey: string;
2953
+ bucketName: string;
2954
+ fileSize: number;
2955
+ };
2956
+ }>, "many">;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ id: string;
2959
+ createdAt: Date;
2960
+ updatedAt: Date;
2961
+ deletedAt: Date | null;
2962
+ attribute: {
2963
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2964
+ id: string;
2965
+ position: number;
2966
+ createdAt: Date;
2967
+ updatedAt: Date;
2968
+ deletedAt: Date | null;
2969
+ isDefault: boolean;
2970
+ systemName: string;
2971
+ displayName: string;
2972
+ isArchived: boolean;
2973
+ isRequired: boolean;
2974
+ isUnique: boolean;
2975
+ };
2976
+ textValue: string | null;
2977
+ booleanValue: boolean | null;
2978
+ numberValue: number | null;
2979
+ dateValue: Date | null;
2980
+ uploads: {
2981
+ id: string;
2982
+ createdAt: Date;
2983
+ updatedAt: Date;
2984
+ deletedAt: Date | null;
2985
+ customFieldId: string;
2986
+ upload: {
2987
+ id: string;
2988
+ createdAt: Date;
2989
+ updatedAt: Date;
2990
+ deletedAt: Date | null;
2991
+ fileName: string;
2992
+ fileKey: string;
2993
+ bucketName: string;
2994
+ fileSize: number;
2995
+ };
2996
+ }[];
2997
+ }, {
2998
+ id: string;
2999
+ createdAt: Date;
3000
+ updatedAt: Date;
3001
+ deletedAt: Date | null;
3002
+ attribute: {
3003
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3004
+ id: string;
3005
+ position: number;
3006
+ createdAt: Date;
3007
+ updatedAt: Date;
3008
+ deletedAt: Date | null;
3009
+ isDefault: boolean;
3010
+ systemName: string;
3011
+ displayName: string;
3012
+ isArchived: boolean;
3013
+ isRequired: boolean;
3014
+ isUnique: boolean;
3015
+ };
3016
+ textValue: string | null;
3017
+ booleanValue: boolean | null;
3018
+ numberValue: number | null;
3019
+ dateValue: Date | null;
3020
+ uploads: {
3021
+ id: string;
3022
+ createdAt: Date;
3023
+ updatedAt: Date;
3024
+ deletedAt: Date | null;
3025
+ customFieldId: string;
3026
+ upload: {
3027
+ id: string;
3028
+ createdAt: Date;
3029
+ updatedAt: Date;
3030
+ deletedAt: Date | null;
3031
+ fileName: string;
3032
+ fileKey: string;
3033
+ bucketName: string;
3034
+ fileSize: number;
3035
+ };
3036
+ }[];
3037
+ }>, "many">;
3038
+ contactEmails: z.ZodArray<z.ZodObject<{
3039
+ id: z.ZodString;
3040
+ createdAt: z.ZodDate;
3041
+ updatedAt: z.ZodDate;
3042
+ deletedAt: z.ZodNullable<z.ZodDate>;
3043
+ email: z.ZodString;
3044
+ isPrimary: z.ZodBoolean;
3045
+ }, "strip", z.ZodTypeAny, {
3046
+ id: string;
3047
+ isPrimary: boolean;
3048
+ email: string;
3049
+ createdAt: Date;
3050
+ updatedAt: Date;
3051
+ deletedAt: Date | null;
3052
+ }, {
3053
+ id: string;
3054
+ isPrimary: boolean;
3055
+ email: string;
3056
+ createdAt: Date;
3057
+ updatedAt: Date;
3058
+ deletedAt: Date | null;
3059
+ }>, "many">;
3060
+ contactPhones: z.ZodArray<z.ZodObject<{
3061
+ id: z.ZodString;
3062
+ createdAt: z.ZodDate;
3063
+ updatedAt: z.ZodDate;
3064
+ deletedAt: z.ZodNullable<z.ZodDate>;
3065
+ phone: z.ZodString;
3066
+ isPrimary: z.ZodBoolean;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ id: string;
3069
+ isPrimary: boolean;
3070
+ createdAt: Date;
3071
+ updatedAt: Date;
3072
+ deletedAt: Date | null;
3073
+ phone: string;
3074
+ }, {
3075
+ id: string;
3076
+ isPrimary: boolean;
3077
+ createdAt: Date;
3078
+ updatedAt: Date;
3079
+ deletedAt: Date | null;
3080
+ phone: string;
3081
+ }>, "many">;
3082
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3083
+ id: z.ZodString;
3084
+ createdAt: z.ZodDate;
3085
+ updatedAt: z.ZodDate;
3086
+ deletedAt: z.ZodNullable<z.ZodDate>;
3087
+ entityId: z.ZodString;
3088
+ description: z.ZodString;
3089
+ entityType: z.ZodObject<{
3090
+ id: z.ZodString;
3091
+ createdAt: z.ZodDate;
3092
+ updatedAt: z.ZodDate;
3093
+ deletedAt: z.ZodNullable<z.ZodDate>;
3094
+ entity: z.ZodString;
3095
+ description: z.ZodNullable<z.ZodString>;
3096
+ }, "strip", z.ZodTypeAny, {
3097
+ id: string;
3098
+ description: string | null;
3099
+ createdAt: Date;
3100
+ updatedAt: Date;
3101
+ deletedAt: Date | null;
3102
+ entity: string;
3103
+ }, {
3104
+ id: string;
3105
+ description: string | null;
3106
+ createdAt: Date;
3107
+ updatedAt: Date;
3108
+ deletedAt: Date | null;
3109
+ entity: string;
3110
+ }>;
3111
+ }, "strip", z.ZodTypeAny, {
3112
+ id: string;
3113
+ description: string;
3114
+ createdAt: Date;
3115
+ updatedAt: Date;
3116
+ deletedAt: Date | null;
3117
+ entityId: string;
3118
+ entityType: {
3119
+ id: string;
3120
+ description: string | null;
3121
+ createdAt: Date;
3122
+ updatedAt: Date;
3123
+ deletedAt: Date | null;
3124
+ entity: string;
3125
+ };
3126
+ }, {
3127
+ id: string;
3128
+ description: string;
3129
+ createdAt: Date;
3130
+ updatedAt: Date;
3131
+ deletedAt: Date | null;
3132
+ entityId: string;
3133
+ entityType: {
3134
+ id: string;
3135
+ description: string | null;
3136
+ createdAt: Date;
3137
+ updatedAt: Date;
3138
+ deletedAt: Date | null;
3139
+ entity: string;
3140
+ };
3141
+ }>, "many">>;
3142
+ }, "strip", z.ZodTypeAny, {
3143
+ id: string;
3144
+ channel: string | null;
3145
+ address: string | null;
3146
+ name: string;
3147
+ createdAt: Date;
3148
+ updatedAt: Date;
3149
+ deletedAt: Date | null;
3150
+ customFields: {
3151
+ id: string;
3152
+ createdAt: Date;
3153
+ updatedAt: Date;
3154
+ deletedAt: Date | null;
3155
+ attribute: {
3156
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3157
+ id: string;
3158
+ position: number;
3159
+ createdAt: Date;
3160
+ updatedAt: Date;
3161
+ deletedAt: Date | null;
3162
+ isDefault: boolean;
3163
+ systemName: string;
3164
+ displayName: string;
3165
+ isArchived: boolean;
3166
+ isRequired: boolean;
3167
+ isUnique: boolean;
3168
+ };
3169
+ textValue: string | null;
3170
+ booleanValue: boolean | null;
3171
+ numberValue: number | null;
3172
+ dateValue: Date | null;
3173
+ uploads: {
3174
+ id: string;
3175
+ createdAt: Date;
3176
+ updatedAt: Date;
3177
+ deletedAt: Date | null;
3178
+ customFieldId: string;
3179
+ upload: {
3180
+ id: string;
3181
+ createdAt: Date;
3182
+ updatedAt: Date;
3183
+ deletedAt: Date | null;
3184
+ fileName: string;
3185
+ fileKey: string;
3186
+ bucketName: string;
3187
+ fileSize: number;
3188
+ };
3189
+ }[];
3190
+ }[];
3191
+ notes: string | null;
3192
+ contactProfile: string | null;
3193
+ socialProfileUrl: string | null;
3194
+ tags: {
3195
+ id: string;
3196
+ name: string;
3197
+ createdAt: Date;
3198
+ updatedAt: Date;
3199
+ deletedAt: Date | null;
3200
+ }[];
3201
+ company: {
3202
+ id: string;
3203
+ createdAt: Date;
3204
+ updatedAt: Date;
3205
+ deletedAt: Date | null;
3206
+ address?: string | null | undefined;
3207
+ name?: string | undefined;
3208
+ phone?: string | null | undefined;
3209
+ industry?: string | null | undefined;
3210
+ } | null;
3211
+ contactEmails: {
3212
+ id: string;
3213
+ isPrimary: boolean;
3214
+ email: string;
3215
+ createdAt: Date;
3216
+ updatedAt: Date;
3217
+ deletedAt: Date | null;
3218
+ }[];
3219
+ contactPhones: {
3220
+ id: string;
3221
+ isPrimary: boolean;
3222
+ createdAt: Date;
3223
+ updatedAt: Date;
3224
+ deletedAt: Date | null;
3225
+ phone: string;
3226
+ }[];
3227
+ activityLogs?: {
3228
+ id: string;
3229
+ description: string;
3230
+ createdAt: Date;
3231
+ updatedAt: Date;
3232
+ deletedAt: Date | null;
3233
+ entityId: string;
3234
+ entityType: {
3235
+ id: string;
3236
+ description: string | null;
3237
+ createdAt: Date;
3238
+ updatedAt: Date;
3239
+ deletedAt: Date | null;
3240
+ entity: string;
3241
+ };
3242
+ }[] | undefined;
3243
+ }, {
3244
+ id: string;
3245
+ channel: string | null;
3246
+ address: string | null;
3247
+ name: string;
3248
+ createdAt: Date;
3249
+ updatedAt: Date;
3250
+ deletedAt: Date | null;
3251
+ customFields: {
3252
+ id: string;
3253
+ createdAt: Date;
3254
+ updatedAt: Date;
3255
+ deletedAt: Date | null;
3256
+ attribute: {
3257
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3258
+ id: string;
3259
+ position: number;
3260
+ createdAt: Date;
3261
+ updatedAt: Date;
3262
+ deletedAt: Date | null;
3263
+ isDefault: boolean;
3264
+ systemName: string;
3265
+ displayName: string;
3266
+ isArchived: boolean;
3267
+ isRequired: boolean;
3268
+ isUnique: boolean;
3269
+ };
3270
+ textValue: string | null;
3271
+ booleanValue: boolean | null;
3272
+ numberValue: number | null;
3273
+ dateValue: Date | null;
3274
+ uploads: {
3275
+ id: string;
3276
+ createdAt: Date;
3277
+ updatedAt: Date;
3278
+ deletedAt: Date | null;
3279
+ customFieldId: string;
3280
+ upload: {
3281
+ id: string;
3282
+ createdAt: Date;
3283
+ updatedAt: Date;
3284
+ deletedAt: Date | null;
3285
+ fileName: string;
3286
+ fileKey: string;
3287
+ bucketName: string;
3288
+ fileSize: number;
3289
+ };
3290
+ }[];
3291
+ }[];
3292
+ notes: string | null;
3293
+ contactProfile: string | null;
3294
+ socialProfileUrl: string | null;
3295
+ tags: {
3296
+ id: string;
3297
+ name: string;
3298
+ createdAt: Date;
3299
+ updatedAt: Date;
3300
+ deletedAt: Date | null;
3301
+ }[];
3302
+ company: {
3303
+ id: string;
3304
+ createdAt: Date;
3305
+ updatedAt: Date;
3306
+ deletedAt: Date | null;
3307
+ address?: string | null | undefined;
3308
+ name?: string | undefined;
3309
+ phone?: string | null | undefined;
3310
+ industry?: string | null | undefined;
3311
+ } | null;
3312
+ contactEmails: {
3313
+ id: string;
3314
+ isPrimary: boolean;
3315
+ email: string;
3316
+ createdAt: Date;
3317
+ updatedAt: Date;
3318
+ deletedAt: Date | null;
3319
+ }[];
3320
+ contactPhones: {
3321
+ id: string;
3322
+ isPrimary: boolean;
3323
+ createdAt: Date;
3324
+ updatedAt: Date;
3325
+ deletedAt: Date | null;
3326
+ phone: string;
3327
+ }[];
3328
+ activityLogs?: {
3329
+ id: string;
3330
+ description: string;
3331
+ createdAt: Date;
3332
+ updatedAt: Date;
3333
+ deletedAt: Date | null;
3334
+ entityId: string;
3335
+ entityType: {
3336
+ id: string;
3337
+ description: string | null;
3338
+ createdAt: Date;
3339
+ updatedAt: Date;
3340
+ deletedAt: Date | null;
3341
+ entity: string;
3342
+ };
3343
+ }[] | undefined;
3344
+ }>;
3345
+ };
3346
+ updateFromOngoingCall: {
3347
+ request: z.ZodObject<{
3348
+ name: z.ZodOptional<z.ZodString>;
3349
+ companyId: z.ZodOptional<z.ZodString>;
3350
+ }, "strip", z.ZodTypeAny, {
3351
+ name?: string | undefined;
3352
+ companyId?: string | undefined;
3353
+ }, {
3354
+ name?: string | undefined;
3355
+ companyId?: string | undefined;
3356
+ }>;
3357
+ response: z.ZodObject<{
3358
+ id: z.ZodString;
3359
+ createdAt: z.ZodDate;
3360
+ updatedAt: z.ZodDate;
3361
+ deletedAt: z.ZodNullable<z.ZodDate>;
3362
+ name: z.ZodString;
3363
+ address: z.ZodNullable<z.ZodString>;
3364
+ channel: z.ZodNullable<z.ZodString>;
3365
+ notes: z.ZodNullable<z.ZodString>;
3366
+ contactProfile: z.ZodNullable<z.ZodString>;
3367
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
3368
+ tags: z.ZodArray<z.ZodObject<{
3369
+ id: z.ZodString;
3370
+ createdAt: z.ZodDate;
3371
+ updatedAt: z.ZodDate;
3372
+ deletedAt: z.ZodNullable<z.ZodDate>;
3373
+ name: z.ZodString;
3374
+ }, "strip", z.ZodTypeAny, {
3375
+ id: string;
3376
+ name: string;
3377
+ createdAt: Date;
3378
+ updatedAt: Date;
3379
+ deletedAt: Date | null;
3380
+ }, {
3381
+ id: string;
3382
+ name: string;
3383
+ createdAt: Date;
3384
+ updatedAt: Date;
3385
+ deletedAt: Date | null;
3386
+ }>, "many">;
3387
+ company: z.ZodNullable<z.ZodObject<Omit<{
3388
+ id: z.ZodString;
3389
+ createdAt: z.ZodDate;
3390
+ updatedAt: z.ZodDate;
3391
+ deletedAt: z.ZodNullable<z.ZodDate>;
3392
+ name: z.ZodOptional<z.ZodString>;
3393
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3394
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3395
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3397
+ id: z.ZodString;
3398
+ createdAt: z.ZodDate;
3399
+ updatedAt: z.ZodDate;
3400
+ deletedAt: z.ZodNullable<z.ZodDate>;
3401
+ textValue: z.ZodNullable<z.ZodString>;
3402
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3403
+ numberValue: z.ZodNullable<z.ZodNumber>;
3404
+ dateValue: z.ZodNullable<z.ZodString>;
3405
+ attribute: z.ZodObject<Omit<{
3406
+ id: z.ZodString;
3407
+ createdAt: z.ZodDate;
3408
+ updatedAt: z.ZodDate;
3409
+ deletedAt: z.ZodNullable<z.ZodDate>;
3410
+ systemName: z.ZodString;
3411
+ displayName: z.ZodString;
3412
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3413
+ position: z.ZodNumber;
3414
+ isDefault: z.ZodBoolean;
3415
+ isArchived: z.ZodBoolean;
3416
+ isRequired: z.ZodBoolean;
3417
+ isUnique: z.ZodBoolean;
3418
+ options: z.ZodArray<z.ZodObject<{
3419
+ position: z.ZodNumber;
3420
+ value: z.ZodString;
3421
+ label: z.ZodString;
3422
+ isDefault: z.ZodBoolean;
3423
+ id: z.ZodString;
3424
+ }, "strip", z.ZodTypeAny, {
3425
+ id: string;
3426
+ position: number;
3427
+ value: string;
3428
+ label: string;
3429
+ isDefault: boolean;
3430
+ }, {
3431
+ id: string;
3432
+ position: number;
3433
+ value: string;
3434
+ label: string;
3435
+ isDefault: boolean;
3436
+ }>, "many">;
3437
+ group: z.ZodObject<{
3438
+ id: z.ZodString;
3439
+ createdAt: z.ZodDate;
3440
+ updatedAt: z.ZodDate;
3441
+ deletedAt: z.ZodNullable<z.ZodDate>;
3442
+ systemName: z.ZodString;
3443
+ displayName: z.ZodString;
3444
+ }, "strip", z.ZodTypeAny, {
3445
+ id: string;
3446
+ createdAt: Date;
3447
+ updatedAt: Date;
3448
+ deletedAt: Date | null;
3449
+ systemName: string;
3450
+ displayName: string;
3451
+ }, {
3452
+ id: string;
3453
+ createdAt: Date;
3454
+ updatedAt: Date;
3455
+ deletedAt: Date | null;
3456
+ systemName: string;
3457
+ displayName: string;
3458
+ }>;
3459
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3460
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3461
+ id: string;
3462
+ position: number;
3463
+ createdAt: Date;
3464
+ updatedAt: Date;
3465
+ deletedAt: Date | null;
3466
+ isDefault: boolean;
3467
+ systemName: string;
3468
+ displayName: string;
3469
+ isArchived: boolean;
3470
+ isRequired: boolean;
3471
+ isUnique: boolean;
3472
+ }, {
3473
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3474
+ id: string;
3475
+ position: number;
3476
+ createdAt: Date;
3477
+ updatedAt: Date;
3478
+ deletedAt: Date | null;
3479
+ isDefault: boolean;
3480
+ systemName: string;
3481
+ displayName: string;
3482
+ isArchived: boolean;
3483
+ isRequired: boolean;
3484
+ isUnique: boolean;
3485
+ }>;
3486
+ }, "strip", z.ZodTypeAny, {
3487
+ id: string;
3488
+ createdAt: Date;
3489
+ updatedAt: Date;
3490
+ deletedAt: Date | null;
3491
+ attribute: {
3492
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3493
+ id: string;
3494
+ position: number;
3495
+ createdAt: Date;
3496
+ updatedAt: Date;
3497
+ deletedAt: Date | null;
3498
+ isDefault: boolean;
3499
+ systemName: string;
3500
+ displayName: string;
3501
+ isArchived: boolean;
3502
+ isRequired: boolean;
3503
+ isUnique: boolean;
3504
+ };
3505
+ textValue: string | null;
3506
+ booleanValue: boolean | null;
3507
+ numberValue: number | null;
3508
+ dateValue: string | null;
3509
+ }, {
3510
+ id: string;
3511
+ createdAt: Date;
3512
+ updatedAt: Date;
3513
+ deletedAt: Date | null;
3514
+ attribute: {
3515
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3516
+ id: string;
3517
+ position: number;
3518
+ createdAt: Date;
3519
+ updatedAt: Date;
3520
+ deletedAt: Date | null;
3521
+ isDefault: boolean;
3522
+ systemName: string;
3523
+ displayName: string;
3524
+ isArchived: boolean;
3525
+ isRequired: boolean;
3526
+ isUnique: boolean;
3527
+ };
3528
+ textValue: string | null;
3529
+ booleanValue: boolean | null;
3530
+ numberValue: number | null;
3531
+ dateValue: string | null;
3532
+ }>, "many">>;
3533
+ }, "customFields">, "strip", z.ZodTypeAny, {
3534
+ id: string;
3535
+ createdAt: Date;
3536
+ updatedAt: Date;
3537
+ deletedAt: Date | null;
3538
+ address?: string | null | undefined;
3539
+ name?: string | undefined;
3540
+ phone?: string | null | undefined;
3541
+ industry?: string | null | undefined;
3542
+ }, {
3543
+ id: string;
3544
+ createdAt: Date;
3545
+ updatedAt: Date;
3546
+ deletedAt: Date | null;
3547
+ address?: string | null | undefined;
3548
+ name?: string | undefined;
3549
+ phone?: string | null | undefined;
3550
+ industry?: string | null | undefined;
3551
+ }>>;
3552
+ customFields: z.ZodArray<z.ZodObject<{
3553
+ id: z.ZodString;
3554
+ createdAt: z.ZodDate;
3555
+ updatedAt: z.ZodDate;
3556
+ deletedAt: z.ZodNullable<z.ZodDate>;
3557
+ textValue: z.ZodNullable<z.ZodString>;
3558
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3559
+ numberValue: z.ZodNullable<z.ZodNumber>;
3560
+ dateValue: z.ZodNullable<z.ZodDate>;
3561
+ attribute: z.ZodObject<Omit<{
3562
+ id: z.ZodString;
3563
+ createdAt: z.ZodDate;
3564
+ updatedAt: z.ZodDate;
3565
+ deletedAt: z.ZodNullable<z.ZodDate>;
3566
+ systemName: z.ZodString;
3567
+ displayName: z.ZodString;
3568
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3569
+ position: z.ZodNumber;
3570
+ isDefault: z.ZodBoolean;
3571
+ isArchived: z.ZodBoolean;
3572
+ isRequired: z.ZodBoolean;
3573
+ isUnique: z.ZodBoolean;
3574
+ options: z.ZodArray<z.ZodObject<{
3575
+ position: z.ZodNumber;
3576
+ value: z.ZodString;
3577
+ label: z.ZodString;
3578
+ isDefault: z.ZodBoolean;
3579
+ id: z.ZodString;
3580
+ }, "strip", z.ZodTypeAny, {
3581
+ id: string;
3582
+ position: number;
3583
+ value: string;
3584
+ label: string;
3585
+ isDefault: boolean;
3586
+ }, {
3587
+ id: string;
3588
+ position: number;
3589
+ value: string;
3590
+ label: string;
3591
+ isDefault: boolean;
3592
+ }>, "many">;
3593
+ group: z.ZodObject<{
3594
+ id: z.ZodString;
3595
+ createdAt: z.ZodDate;
3596
+ updatedAt: z.ZodDate;
3597
+ deletedAt: z.ZodNullable<z.ZodDate>;
3598
+ systemName: z.ZodString;
3599
+ displayName: z.ZodString;
3600
+ }, "strip", z.ZodTypeAny, {
3601
+ id: string;
3602
+ createdAt: Date;
3603
+ updatedAt: Date;
3604
+ deletedAt: Date | null;
3605
+ systemName: string;
3606
+ displayName: string;
3607
+ }, {
3608
+ id: string;
3609
+ createdAt: Date;
3610
+ updatedAt: Date;
3611
+ deletedAt: Date | null;
3612
+ systemName: string;
3613
+ displayName: string;
3614
+ }>;
3615
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3616
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3617
+ id: string;
3618
+ position: number;
3619
+ createdAt: Date;
3620
+ updatedAt: Date;
3621
+ deletedAt: Date | null;
3622
+ isDefault: boolean;
3623
+ systemName: string;
3624
+ displayName: string;
3625
+ isArchived: boolean;
3626
+ isRequired: boolean;
3627
+ isUnique: boolean;
3628
+ }, {
3629
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3630
+ id: string;
3631
+ position: number;
3632
+ createdAt: Date;
3633
+ updatedAt: Date;
3634
+ deletedAt: Date | null;
3635
+ isDefault: boolean;
3636
+ systemName: string;
3637
+ displayName: string;
3638
+ isArchived: boolean;
3639
+ isRequired: boolean;
3640
+ isUnique: boolean;
3641
+ }>;
3642
+ uploads: z.ZodArray<z.ZodObject<{
3643
+ id: z.ZodString;
3644
+ createdAt: z.ZodDate;
3645
+ updatedAt: z.ZodDate;
3646
+ deletedAt: z.ZodNullable<z.ZodDate>;
3647
+ customFieldId: z.ZodString;
3648
+ upload: z.ZodObject<{
3649
+ id: z.ZodString;
3650
+ createdAt: z.ZodDate;
3651
+ updatedAt: z.ZodDate;
3652
+ deletedAt: z.ZodNullable<z.ZodDate>;
3653
+ bucketName: z.ZodString;
3654
+ fileName: z.ZodString;
3655
+ fileSize: z.ZodNumber;
3656
+ fileKey: z.ZodString;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ id: string;
3659
+ createdAt: Date;
3660
+ updatedAt: Date;
3661
+ deletedAt: Date | null;
3662
+ fileName: string;
3663
+ fileKey: string;
3664
+ bucketName: string;
3665
+ fileSize: number;
3666
+ }, {
3667
+ id: string;
3668
+ createdAt: Date;
3669
+ updatedAt: Date;
3670
+ deletedAt: Date | null;
3671
+ fileName: string;
3672
+ fileKey: string;
3673
+ bucketName: string;
3674
+ fileSize: number;
3675
+ }>;
3676
+ }, "strip", z.ZodTypeAny, {
3677
+ id: string;
3678
+ createdAt: Date;
3679
+ updatedAt: Date;
3680
+ deletedAt: Date | null;
3681
+ customFieldId: string;
3682
+ upload: {
3683
+ id: string;
3684
+ createdAt: Date;
3685
+ updatedAt: Date;
3686
+ deletedAt: Date | null;
3687
+ fileName: string;
3688
+ fileKey: string;
3689
+ bucketName: string;
3690
+ fileSize: number;
3691
+ };
3692
+ }, {
3693
+ id: string;
3694
+ createdAt: Date;
3695
+ updatedAt: Date;
3696
+ deletedAt: Date | null;
3697
+ customFieldId: string;
3698
+ upload: {
3699
+ id: string;
3700
+ createdAt: Date;
3701
+ updatedAt: Date;
3702
+ deletedAt: Date | null;
3703
+ fileName: string;
3704
+ fileKey: string;
3705
+ bucketName: string;
3706
+ fileSize: number;
3707
+ };
3708
+ }>, "many">;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ id: string;
3711
+ createdAt: Date;
3712
+ updatedAt: Date;
3713
+ deletedAt: Date | null;
3714
+ attribute: {
3715
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3716
+ id: string;
3717
+ position: number;
3718
+ createdAt: Date;
3719
+ updatedAt: Date;
3720
+ deletedAt: Date | null;
3721
+ isDefault: boolean;
3722
+ systemName: string;
3723
+ displayName: string;
3724
+ isArchived: boolean;
3725
+ isRequired: boolean;
3726
+ isUnique: boolean;
3727
+ };
3728
+ textValue: string | null;
3729
+ booleanValue: boolean | null;
3730
+ numberValue: number | null;
3731
+ dateValue: Date | null;
3732
+ uploads: {
3733
+ id: string;
3734
+ createdAt: Date;
3735
+ updatedAt: Date;
3736
+ deletedAt: Date | null;
3737
+ customFieldId: string;
3738
+ upload: {
3739
+ id: string;
3740
+ createdAt: Date;
3741
+ updatedAt: Date;
3742
+ deletedAt: Date | null;
3743
+ fileName: string;
3744
+ fileKey: string;
3745
+ bucketName: string;
3746
+ fileSize: number;
3747
+ };
3748
+ }[];
3749
+ }, {
3750
+ id: string;
3751
+ createdAt: Date;
3752
+ updatedAt: Date;
3753
+ deletedAt: Date | null;
3754
+ attribute: {
3755
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3756
+ id: string;
3757
+ position: number;
3758
+ createdAt: Date;
3759
+ updatedAt: Date;
3760
+ deletedAt: Date | null;
3761
+ isDefault: boolean;
3762
+ systemName: string;
3763
+ displayName: string;
3764
+ isArchived: boolean;
3765
+ isRequired: boolean;
3766
+ isUnique: boolean;
3767
+ };
3768
+ textValue: string | null;
3769
+ booleanValue: boolean | null;
3770
+ numberValue: number | null;
3771
+ dateValue: Date | null;
3772
+ uploads: {
3773
+ id: string;
3774
+ createdAt: Date;
3775
+ updatedAt: Date;
3776
+ deletedAt: Date | null;
3777
+ customFieldId: string;
3778
+ upload: {
3779
+ id: string;
3780
+ createdAt: Date;
3781
+ updatedAt: Date;
3782
+ deletedAt: Date | null;
3783
+ fileName: string;
3784
+ fileKey: string;
3785
+ bucketName: string;
3786
+ fileSize: number;
3787
+ };
3788
+ }[];
3789
+ }>, "many">;
3790
+ contactEmails: z.ZodArray<z.ZodObject<{
3791
+ id: z.ZodString;
3792
+ createdAt: z.ZodDate;
3793
+ updatedAt: z.ZodDate;
3794
+ deletedAt: z.ZodNullable<z.ZodDate>;
3795
+ email: z.ZodString;
3796
+ isPrimary: z.ZodBoolean;
3797
+ }, "strip", z.ZodTypeAny, {
3798
+ id: string;
3799
+ isPrimary: boolean;
3800
+ email: string;
3801
+ createdAt: Date;
3802
+ updatedAt: Date;
3803
+ deletedAt: Date | null;
3804
+ }, {
3805
+ id: string;
3806
+ isPrimary: boolean;
3807
+ email: string;
3808
+ createdAt: Date;
3809
+ updatedAt: Date;
3810
+ deletedAt: Date | null;
3811
+ }>, "many">;
3812
+ contactPhones: z.ZodArray<z.ZodObject<{
3813
+ id: z.ZodString;
3814
+ createdAt: z.ZodDate;
3815
+ updatedAt: z.ZodDate;
3816
+ deletedAt: z.ZodNullable<z.ZodDate>;
3817
+ phone: z.ZodString;
3818
+ isPrimary: z.ZodBoolean;
3819
+ }, "strip", z.ZodTypeAny, {
3820
+ id: string;
3821
+ isPrimary: boolean;
3822
+ createdAt: Date;
3823
+ updatedAt: Date;
3824
+ deletedAt: Date | null;
3825
+ phone: string;
3826
+ }, {
3827
+ id: string;
3828
+ isPrimary: boolean;
3829
+ createdAt: Date;
3830
+ updatedAt: Date;
3831
+ deletedAt: Date | null;
3832
+ phone: string;
3833
+ }>, "many">;
3834
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3835
+ id: z.ZodString;
3836
+ createdAt: z.ZodDate;
3837
+ updatedAt: z.ZodDate;
3838
+ deletedAt: z.ZodNullable<z.ZodDate>;
3839
+ entityId: z.ZodString;
3840
+ description: z.ZodString;
3841
+ entityType: z.ZodObject<{
3842
+ id: z.ZodString;
3843
+ createdAt: z.ZodDate;
3844
+ updatedAt: z.ZodDate;
3845
+ deletedAt: z.ZodNullable<z.ZodDate>;
3846
+ entity: z.ZodString;
3847
+ description: z.ZodNullable<z.ZodString>;
3848
+ }, "strip", z.ZodTypeAny, {
3849
+ id: string;
3850
+ description: string | null;
3851
+ createdAt: Date;
3852
+ updatedAt: Date;
3853
+ deletedAt: Date | null;
3854
+ entity: string;
3855
+ }, {
3856
+ id: string;
3857
+ description: string | null;
3858
+ createdAt: Date;
3859
+ updatedAt: Date;
3860
+ deletedAt: Date | null;
3861
+ entity: string;
3862
+ }>;
3863
+ }, "strip", z.ZodTypeAny, {
3864
+ id: string;
3865
+ description: string;
3866
+ createdAt: Date;
3867
+ updatedAt: Date;
3868
+ deletedAt: Date | null;
3869
+ entityId: string;
3870
+ entityType: {
3871
+ id: string;
3872
+ description: string | null;
3873
+ createdAt: Date;
3874
+ updatedAt: Date;
3875
+ deletedAt: Date | null;
3876
+ entity: string;
3877
+ };
3878
+ }, {
3879
+ id: string;
3880
+ description: string;
3881
+ createdAt: Date;
3882
+ updatedAt: Date;
3883
+ deletedAt: Date | null;
3884
+ entityId: string;
3885
+ entityType: {
3886
+ id: string;
3887
+ description: string | null;
3888
+ createdAt: Date;
3889
+ updatedAt: Date;
3890
+ deletedAt: Date | null;
3891
+ entity: string;
3892
+ };
3893
+ }>, "many">>;
3894
+ }, "strip", z.ZodTypeAny, {
3895
+ id: string;
3896
+ channel: string | null;
3897
+ address: string | null;
3898
+ name: string;
3899
+ createdAt: Date;
3900
+ updatedAt: Date;
3901
+ deletedAt: Date | null;
3902
+ customFields: {
3903
+ id: string;
3904
+ createdAt: Date;
3905
+ updatedAt: Date;
3906
+ deletedAt: Date | null;
3907
+ attribute: {
3908
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3909
+ id: string;
3910
+ position: number;
3911
+ createdAt: Date;
3912
+ updatedAt: Date;
3913
+ deletedAt: Date | null;
3914
+ isDefault: boolean;
3915
+ systemName: string;
3916
+ displayName: string;
3917
+ isArchived: boolean;
3918
+ isRequired: boolean;
3919
+ isUnique: boolean;
3920
+ };
3921
+ textValue: string | null;
3922
+ booleanValue: boolean | null;
3923
+ numberValue: number | null;
3924
+ dateValue: Date | null;
3925
+ uploads: {
3926
+ id: string;
3927
+ createdAt: Date;
3928
+ updatedAt: Date;
3929
+ deletedAt: Date | null;
3930
+ customFieldId: string;
3931
+ upload: {
3932
+ id: string;
3933
+ createdAt: Date;
3934
+ updatedAt: Date;
3935
+ deletedAt: Date | null;
3936
+ fileName: string;
3937
+ fileKey: string;
3938
+ bucketName: string;
3939
+ fileSize: number;
3940
+ };
3941
+ }[];
3942
+ }[];
3943
+ notes: string | null;
3944
+ contactProfile: string | null;
3945
+ socialProfileUrl: string | null;
3946
+ tags: {
3947
+ id: string;
3948
+ name: string;
3949
+ createdAt: Date;
3950
+ updatedAt: Date;
3951
+ deletedAt: Date | null;
3952
+ }[];
3953
+ company: {
3954
+ id: string;
3955
+ createdAt: Date;
3956
+ updatedAt: Date;
3957
+ deletedAt: Date | null;
3958
+ address?: string | null | undefined;
3959
+ name?: string | undefined;
3960
+ phone?: string | null | undefined;
3961
+ industry?: string | null | undefined;
3962
+ } | null;
3963
+ contactEmails: {
3964
+ id: string;
3965
+ isPrimary: boolean;
3966
+ email: string;
3967
+ createdAt: Date;
3968
+ updatedAt: Date;
3969
+ deletedAt: Date | null;
3970
+ }[];
3971
+ contactPhones: {
3972
+ id: string;
3973
+ isPrimary: boolean;
3974
+ createdAt: Date;
3975
+ updatedAt: Date;
3976
+ deletedAt: Date | null;
3977
+ phone: string;
3978
+ }[];
3979
+ activityLogs?: {
3980
+ id: string;
3981
+ description: string;
3982
+ createdAt: Date;
3983
+ updatedAt: Date;
3984
+ deletedAt: Date | null;
3985
+ entityId: string;
3986
+ entityType: {
3987
+ id: string;
3988
+ description: string | null;
3989
+ createdAt: Date;
3990
+ updatedAt: Date;
3991
+ deletedAt: Date | null;
3992
+ entity: string;
3993
+ };
3994
+ }[] | undefined;
3995
+ }, {
3996
+ id: string;
3997
+ channel: string | null;
3998
+ address: string | null;
3999
+ name: string;
4000
+ createdAt: Date;
4001
+ updatedAt: Date;
4002
+ deletedAt: Date | null;
4003
+ customFields: {
4004
+ id: string;
4005
+ createdAt: Date;
4006
+ updatedAt: Date;
4007
+ deletedAt: Date | null;
4008
+ attribute: {
4009
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4010
+ id: string;
4011
+ position: number;
4012
+ createdAt: Date;
4013
+ updatedAt: Date;
4014
+ deletedAt: Date | null;
4015
+ isDefault: boolean;
4016
+ systemName: string;
4017
+ displayName: string;
4018
+ isArchived: boolean;
4019
+ isRequired: boolean;
4020
+ isUnique: boolean;
4021
+ };
4022
+ textValue: string | null;
4023
+ booleanValue: boolean | null;
4024
+ numberValue: number | null;
4025
+ dateValue: Date | null;
4026
+ uploads: {
4027
+ id: string;
4028
+ createdAt: Date;
4029
+ updatedAt: Date;
4030
+ deletedAt: Date | null;
4031
+ customFieldId: string;
4032
+ upload: {
4033
+ id: string;
4034
+ createdAt: Date;
4035
+ updatedAt: Date;
4036
+ deletedAt: Date | null;
4037
+ fileName: string;
4038
+ fileKey: string;
4039
+ bucketName: string;
4040
+ fileSize: number;
4041
+ };
4042
+ }[];
4043
+ }[];
4044
+ notes: string | null;
4045
+ contactProfile: string | null;
4046
+ socialProfileUrl: string | null;
4047
+ tags: {
4048
+ id: string;
4049
+ name: string;
4050
+ createdAt: Date;
4051
+ updatedAt: Date;
4052
+ deletedAt: Date | null;
4053
+ }[];
4054
+ company: {
4055
+ id: string;
4056
+ createdAt: Date;
4057
+ updatedAt: Date;
4058
+ deletedAt: Date | null;
4059
+ address?: string | null | undefined;
4060
+ name?: string | undefined;
4061
+ phone?: string | null | undefined;
4062
+ industry?: string | null | undefined;
4063
+ } | null;
4064
+ contactEmails: {
4065
+ id: string;
4066
+ isPrimary: boolean;
4067
+ email: string;
4068
+ createdAt: Date;
4069
+ updatedAt: Date;
4070
+ deletedAt: Date | null;
4071
+ }[];
4072
+ contactPhones: {
4073
+ id: string;
4074
+ isPrimary: boolean;
4075
+ createdAt: Date;
4076
+ updatedAt: Date;
4077
+ deletedAt: Date | null;
4078
+ phone: string;
4079
+ }[];
4080
+ activityLogs?: {
4081
+ id: string;
4082
+ description: string;
4083
+ createdAt: Date;
4084
+ updatedAt: Date;
4085
+ deletedAt: Date | null;
4086
+ entityId: string;
4087
+ entityType: {
4088
+ id: string;
4089
+ description: string | null;
4090
+ createdAt: Date;
4091
+ updatedAt: Date;
4092
+ deletedAt: Date | null;
4093
+ entity: string;
4094
+ };
4095
+ }[] | undefined;
4096
+ }>;
4097
+ };
4098
+ merge: {
4099
+ request: z.ZodObject<{
4100
+ primaryContactId: z.ZodString;
4101
+ emails: z.ZodArray<z.ZodObject<{
4102
+ email: z.ZodString;
4103
+ isPrimary: z.ZodBoolean;
4104
+ }, "strip", z.ZodTypeAny, {
4105
+ isPrimary: boolean;
4106
+ email: string;
4107
+ }, {
4108
+ isPrimary: boolean;
4109
+ email: string;
4110
+ }>, "many">;
4111
+ phones: z.ZodArray<z.ZodObject<{
4112
+ phone: z.ZodString;
4113
+ isPrimary: z.ZodBoolean;
4114
+ }, "strip", z.ZodTypeAny, {
4115
+ isPrimary: boolean;
4116
+ phone: string;
4117
+ }, {
4118
+ isPrimary: boolean;
4119
+ phone: string;
4120
+ }>, "many">;
4121
+ otherContacts: z.ZodArray<z.ZodString, "many">;
4122
+ }, "strip", z.ZodTypeAny, {
4123
+ primaryContactId: string;
4124
+ emails: {
4125
+ isPrimary: boolean;
4126
+ email: string;
4127
+ }[];
4128
+ phones: {
4129
+ isPrimary: boolean;
4130
+ phone: string;
4131
+ }[];
4132
+ otherContacts: string[];
4133
+ }, {
4134
+ primaryContactId: string;
4135
+ emails: {
4136
+ isPrimary: boolean;
4137
+ email: string;
4138
+ }[];
4139
+ phones: {
4140
+ isPrimary: boolean;
4141
+ phone: string;
4142
+ }[];
4143
+ otherContacts: string[];
4144
+ }>;
4145
+ response: z.ZodObject<{
4146
+ id: z.ZodString;
4147
+ createdAt: z.ZodDate;
4148
+ updatedAt: z.ZodDate;
4149
+ deletedAt: z.ZodNullable<z.ZodDate>;
4150
+ name: z.ZodString;
4151
+ address: z.ZodNullable<z.ZodString>;
4152
+ channel: z.ZodNullable<z.ZodString>;
4153
+ notes: z.ZodNullable<z.ZodString>;
4154
+ contactProfile: z.ZodNullable<z.ZodString>;
4155
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4156
+ tags: z.ZodArray<z.ZodObject<{
4157
+ id: z.ZodString;
4158
+ createdAt: z.ZodDate;
4159
+ updatedAt: z.ZodDate;
4160
+ deletedAt: z.ZodNullable<z.ZodDate>;
4161
+ name: z.ZodString;
4162
+ }, "strip", z.ZodTypeAny, {
4163
+ id: string;
4164
+ name: string;
4165
+ createdAt: Date;
4166
+ updatedAt: Date;
4167
+ deletedAt: Date | null;
4168
+ }, {
4169
+ id: string;
4170
+ name: string;
4171
+ createdAt: Date;
4172
+ updatedAt: Date;
4173
+ deletedAt: Date | null;
4174
+ }>, "many">;
4175
+ company: z.ZodNullable<z.ZodObject<Omit<{
4176
+ id: z.ZodString;
4177
+ createdAt: z.ZodDate;
4178
+ updatedAt: z.ZodDate;
4179
+ deletedAt: z.ZodNullable<z.ZodDate>;
4180
+ name: z.ZodOptional<z.ZodString>;
4181
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4182
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4183
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4184
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4185
+ id: z.ZodString;
4186
+ createdAt: z.ZodDate;
4187
+ updatedAt: z.ZodDate;
4188
+ deletedAt: z.ZodNullable<z.ZodDate>;
4189
+ textValue: z.ZodNullable<z.ZodString>;
4190
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4191
+ numberValue: z.ZodNullable<z.ZodNumber>;
4192
+ dateValue: z.ZodNullable<z.ZodString>;
4193
+ attribute: z.ZodObject<Omit<{
4194
+ id: z.ZodString;
4195
+ createdAt: z.ZodDate;
4196
+ updatedAt: z.ZodDate;
4197
+ deletedAt: z.ZodNullable<z.ZodDate>;
4198
+ systemName: z.ZodString;
4199
+ displayName: z.ZodString;
4200
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4201
+ position: z.ZodNumber;
4202
+ isDefault: z.ZodBoolean;
4203
+ isArchived: z.ZodBoolean;
4204
+ isRequired: z.ZodBoolean;
4205
+ isUnique: z.ZodBoolean;
4206
+ options: z.ZodArray<z.ZodObject<{
4207
+ position: z.ZodNumber;
4208
+ value: z.ZodString;
4209
+ label: z.ZodString;
4210
+ isDefault: z.ZodBoolean;
4211
+ id: z.ZodString;
4212
+ }, "strip", z.ZodTypeAny, {
4213
+ id: string;
4214
+ position: number;
4215
+ value: string;
4216
+ label: string;
4217
+ isDefault: boolean;
4218
+ }, {
4219
+ id: string;
4220
+ position: number;
4221
+ value: string;
4222
+ label: string;
4223
+ isDefault: boolean;
4224
+ }>, "many">;
4225
+ group: z.ZodObject<{
4226
+ id: z.ZodString;
4227
+ createdAt: z.ZodDate;
4228
+ updatedAt: z.ZodDate;
4229
+ deletedAt: z.ZodNullable<z.ZodDate>;
4230
+ systemName: z.ZodString;
4231
+ displayName: z.ZodString;
4232
+ }, "strip", z.ZodTypeAny, {
4233
+ id: string;
4234
+ createdAt: Date;
4235
+ updatedAt: Date;
4236
+ deletedAt: Date | null;
4237
+ systemName: string;
4238
+ displayName: string;
4239
+ }, {
4240
+ id: string;
4241
+ createdAt: Date;
4242
+ updatedAt: Date;
4243
+ deletedAt: Date | null;
4244
+ systemName: string;
4245
+ displayName: string;
4246
+ }>;
4247
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4248
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4249
+ id: string;
4250
+ position: number;
4251
+ createdAt: Date;
4252
+ updatedAt: Date;
4253
+ deletedAt: Date | null;
4254
+ isDefault: boolean;
4255
+ systemName: string;
4256
+ displayName: string;
4257
+ isArchived: boolean;
4258
+ isRequired: boolean;
4259
+ isUnique: boolean;
4260
+ }, {
4261
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4262
+ id: string;
4263
+ position: number;
4264
+ createdAt: Date;
4265
+ updatedAt: Date;
4266
+ deletedAt: Date | null;
4267
+ isDefault: boolean;
4268
+ systemName: string;
4269
+ displayName: string;
4270
+ isArchived: boolean;
4271
+ isRequired: boolean;
4272
+ isUnique: boolean;
4273
+ }>;
4274
+ }, "strip", z.ZodTypeAny, {
4275
+ id: string;
4276
+ createdAt: Date;
4277
+ updatedAt: Date;
4278
+ deletedAt: Date | null;
4279
+ attribute: {
4280
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4281
+ id: string;
4282
+ position: number;
4283
+ createdAt: Date;
4284
+ updatedAt: Date;
4285
+ deletedAt: Date | null;
4286
+ isDefault: boolean;
4287
+ systemName: string;
4288
+ displayName: string;
4289
+ isArchived: boolean;
4290
+ isRequired: boolean;
4291
+ isUnique: boolean;
4292
+ };
4293
+ textValue: string | null;
4294
+ booleanValue: boolean | null;
4295
+ numberValue: number | null;
4296
+ dateValue: string | null;
4297
+ }, {
4298
+ id: string;
4299
+ createdAt: Date;
4300
+ updatedAt: Date;
4301
+ deletedAt: Date | null;
4302
+ attribute: {
4303
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4304
+ id: string;
4305
+ position: number;
4306
+ createdAt: Date;
4307
+ updatedAt: Date;
4308
+ deletedAt: Date | null;
4309
+ isDefault: boolean;
4310
+ systemName: string;
4311
+ displayName: string;
4312
+ isArchived: boolean;
4313
+ isRequired: boolean;
4314
+ isUnique: boolean;
4315
+ };
4316
+ textValue: string | null;
4317
+ booleanValue: boolean | null;
4318
+ numberValue: number | null;
4319
+ dateValue: string | null;
4320
+ }>, "many">>;
4321
+ }, "customFields">, "strip", z.ZodTypeAny, {
4322
+ id: string;
4323
+ createdAt: Date;
4324
+ updatedAt: Date;
4325
+ deletedAt: Date | null;
4326
+ address?: string | null | undefined;
4327
+ name?: string | undefined;
4328
+ phone?: string | null | undefined;
4329
+ industry?: string | null | undefined;
4330
+ }, {
4331
+ id: string;
4332
+ createdAt: Date;
4333
+ updatedAt: Date;
4334
+ deletedAt: Date | null;
4335
+ address?: string | null | undefined;
4336
+ name?: string | undefined;
4337
+ phone?: string | null | undefined;
4338
+ industry?: string | null | undefined;
4339
+ }>>;
4340
+ customFields: z.ZodArray<z.ZodObject<{
4341
+ id: z.ZodString;
4342
+ createdAt: z.ZodDate;
4343
+ updatedAt: z.ZodDate;
4344
+ deletedAt: z.ZodNullable<z.ZodDate>;
4345
+ textValue: z.ZodNullable<z.ZodString>;
4346
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4347
+ numberValue: z.ZodNullable<z.ZodNumber>;
4348
+ dateValue: z.ZodNullable<z.ZodDate>;
4349
+ attribute: z.ZodObject<Omit<{
4350
+ id: z.ZodString;
4351
+ createdAt: z.ZodDate;
4352
+ updatedAt: z.ZodDate;
4353
+ deletedAt: z.ZodNullable<z.ZodDate>;
4354
+ systemName: z.ZodString;
4355
+ displayName: z.ZodString;
4356
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4357
+ position: z.ZodNumber;
4358
+ isDefault: z.ZodBoolean;
4359
+ isArchived: z.ZodBoolean;
4360
+ isRequired: z.ZodBoolean;
4361
+ isUnique: z.ZodBoolean;
4362
+ options: z.ZodArray<z.ZodObject<{
4363
+ position: z.ZodNumber;
4364
+ value: z.ZodString;
4365
+ label: z.ZodString;
4366
+ isDefault: z.ZodBoolean;
4367
+ id: z.ZodString;
4368
+ }, "strip", z.ZodTypeAny, {
4369
+ id: string;
4370
+ position: number;
4371
+ value: string;
4372
+ label: string;
4373
+ isDefault: boolean;
4374
+ }, {
4375
+ id: string;
4376
+ position: number;
4377
+ value: string;
4378
+ label: string;
4379
+ isDefault: boolean;
4380
+ }>, "many">;
4381
+ group: z.ZodObject<{
4382
+ id: z.ZodString;
4383
+ createdAt: z.ZodDate;
4384
+ updatedAt: z.ZodDate;
4385
+ deletedAt: z.ZodNullable<z.ZodDate>;
4386
+ systemName: z.ZodString;
4387
+ displayName: z.ZodString;
4388
+ }, "strip", z.ZodTypeAny, {
4389
+ id: string;
4390
+ createdAt: Date;
4391
+ updatedAt: Date;
4392
+ deletedAt: Date | null;
4393
+ systemName: string;
4394
+ displayName: string;
4395
+ }, {
4396
+ id: string;
4397
+ createdAt: Date;
4398
+ updatedAt: Date;
4399
+ deletedAt: Date | null;
4400
+ systemName: string;
4401
+ displayName: string;
4402
+ }>;
4403
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4404
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4405
+ id: string;
4406
+ position: number;
4407
+ createdAt: Date;
4408
+ updatedAt: Date;
4409
+ deletedAt: Date | null;
4410
+ isDefault: boolean;
4411
+ systemName: string;
4412
+ displayName: string;
4413
+ isArchived: boolean;
4414
+ isRequired: boolean;
4415
+ isUnique: boolean;
4416
+ }, {
4417
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4418
+ id: string;
4419
+ position: number;
4420
+ createdAt: Date;
4421
+ updatedAt: Date;
4422
+ deletedAt: Date | null;
4423
+ isDefault: boolean;
4424
+ systemName: string;
4425
+ displayName: string;
4426
+ isArchived: boolean;
4427
+ isRequired: boolean;
4428
+ isUnique: boolean;
4429
+ }>;
4430
+ uploads: z.ZodArray<z.ZodObject<{
4431
+ id: z.ZodString;
4432
+ createdAt: z.ZodDate;
4433
+ updatedAt: z.ZodDate;
4434
+ deletedAt: z.ZodNullable<z.ZodDate>;
4435
+ customFieldId: z.ZodString;
4436
+ upload: z.ZodObject<{
4437
+ id: z.ZodString;
4438
+ createdAt: z.ZodDate;
4439
+ updatedAt: z.ZodDate;
4440
+ deletedAt: z.ZodNullable<z.ZodDate>;
4441
+ bucketName: z.ZodString;
4442
+ fileName: z.ZodString;
4443
+ fileSize: z.ZodNumber;
4444
+ fileKey: z.ZodString;
4445
+ }, "strip", z.ZodTypeAny, {
4446
+ id: string;
4447
+ createdAt: Date;
4448
+ updatedAt: Date;
4449
+ deletedAt: Date | null;
4450
+ fileName: string;
4451
+ fileKey: string;
4452
+ bucketName: string;
4453
+ fileSize: number;
4454
+ }, {
4455
+ id: string;
4456
+ createdAt: Date;
4457
+ updatedAt: Date;
4458
+ deletedAt: Date | null;
4459
+ fileName: string;
4460
+ fileKey: string;
4461
+ bucketName: string;
4462
+ fileSize: number;
4463
+ }>;
4464
+ }, "strip", z.ZodTypeAny, {
4465
+ id: string;
4466
+ createdAt: Date;
4467
+ updatedAt: Date;
4468
+ deletedAt: Date | null;
4469
+ customFieldId: string;
4470
+ upload: {
4471
+ id: string;
4472
+ createdAt: Date;
4473
+ updatedAt: Date;
4474
+ deletedAt: Date | null;
4475
+ fileName: string;
4476
+ fileKey: string;
4477
+ bucketName: string;
4478
+ fileSize: number;
4479
+ };
4480
+ }, {
4481
+ id: string;
4482
+ createdAt: Date;
4483
+ updatedAt: Date;
4484
+ deletedAt: Date | null;
4485
+ customFieldId: string;
4486
+ upload: {
4487
+ id: string;
4488
+ createdAt: Date;
4489
+ updatedAt: Date;
4490
+ deletedAt: Date | null;
4491
+ fileName: string;
4492
+ fileKey: string;
4493
+ bucketName: string;
4494
+ fileSize: number;
4495
+ };
4496
+ }>, "many">;
4497
+ }, "strip", z.ZodTypeAny, {
4498
+ id: string;
4499
+ createdAt: Date;
4500
+ updatedAt: Date;
4501
+ deletedAt: Date | null;
4502
+ attribute: {
4503
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4504
+ id: string;
4505
+ position: number;
4506
+ createdAt: Date;
4507
+ updatedAt: Date;
4508
+ deletedAt: Date | null;
4509
+ isDefault: boolean;
4510
+ systemName: string;
4511
+ displayName: string;
4512
+ isArchived: boolean;
4513
+ isRequired: boolean;
4514
+ isUnique: boolean;
4515
+ };
4516
+ textValue: string | null;
4517
+ booleanValue: boolean | null;
4518
+ numberValue: number | null;
4519
+ dateValue: Date | null;
4520
+ uploads: {
4521
+ id: string;
4522
+ createdAt: Date;
4523
+ updatedAt: Date;
4524
+ deletedAt: Date | null;
4525
+ customFieldId: string;
4526
+ upload: {
4527
+ id: string;
4528
+ createdAt: Date;
4529
+ updatedAt: Date;
4530
+ deletedAt: Date | null;
4531
+ fileName: string;
4532
+ fileKey: string;
4533
+ bucketName: string;
4534
+ fileSize: number;
4535
+ };
4536
+ }[];
4537
+ }, {
4538
+ id: string;
4539
+ createdAt: Date;
4540
+ updatedAt: Date;
4541
+ deletedAt: Date | null;
4542
+ attribute: {
4543
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4544
+ id: string;
4545
+ position: number;
4546
+ createdAt: Date;
4547
+ updatedAt: Date;
4548
+ deletedAt: Date | null;
4549
+ isDefault: boolean;
4550
+ systemName: string;
4551
+ displayName: string;
4552
+ isArchived: boolean;
4553
+ isRequired: boolean;
4554
+ isUnique: boolean;
4555
+ };
4556
+ textValue: string | null;
4557
+ booleanValue: boolean | null;
4558
+ numberValue: number | null;
4559
+ dateValue: Date | null;
4560
+ uploads: {
4561
+ id: string;
4562
+ createdAt: Date;
4563
+ updatedAt: Date;
4564
+ deletedAt: Date | null;
4565
+ customFieldId: string;
4566
+ upload: {
4567
+ id: string;
4568
+ createdAt: Date;
4569
+ updatedAt: Date;
4570
+ deletedAt: Date | null;
4571
+ fileName: string;
4572
+ fileKey: string;
4573
+ bucketName: string;
4574
+ fileSize: number;
4575
+ };
4576
+ }[];
4577
+ }>, "many">;
4578
+ contactEmails: z.ZodArray<z.ZodObject<{
4579
+ id: z.ZodString;
4580
+ createdAt: z.ZodDate;
4581
+ updatedAt: z.ZodDate;
4582
+ deletedAt: z.ZodNullable<z.ZodDate>;
4583
+ email: z.ZodString;
4584
+ isPrimary: z.ZodBoolean;
4585
+ }, "strip", z.ZodTypeAny, {
4586
+ id: string;
4587
+ isPrimary: boolean;
4588
+ email: string;
4589
+ createdAt: Date;
4590
+ updatedAt: Date;
4591
+ deletedAt: Date | null;
4592
+ }, {
4593
+ id: string;
4594
+ isPrimary: boolean;
4595
+ email: string;
4596
+ createdAt: Date;
4597
+ updatedAt: Date;
4598
+ deletedAt: Date | null;
4599
+ }>, "many">;
4600
+ contactPhones: z.ZodArray<z.ZodObject<{
4601
+ id: z.ZodString;
4602
+ createdAt: z.ZodDate;
4603
+ updatedAt: z.ZodDate;
4604
+ deletedAt: z.ZodNullable<z.ZodDate>;
4605
+ phone: z.ZodString;
4606
+ isPrimary: z.ZodBoolean;
4607
+ }, "strip", z.ZodTypeAny, {
4608
+ id: string;
4609
+ isPrimary: boolean;
4610
+ createdAt: Date;
4611
+ updatedAt: Date;
4612
+ deletedAt: Date | null;
4613
+ phone: string;
4614
+ }, {
4615
+ id: string;
4616
+ isPrimary: boolean;
4617
+ createdAt: Date;
4618
+ updatedAt: Date;
4619
+ deletedAt: Date | null;
4620
+ phone: string;
4621
+ }>, "many">;
4622
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4623
+ id: z.ZodString;
4624
+ createdAt: z.ZodDate;
4625
+ updatedAt: z.ZodDate;
4626
+ deletedAt: z.ZodNullable<z.ZodDate>;
4627
+ entityId: z.ZodString;
4628
+ description: z.ZodString;
4629
+ entityType: z.ZodObject<{
4630
+ id: z.ZodString;
4631
+ createdAt: z.ZodDate;
4632
+ updatedAt: z.ZodDate;
4633
+ deletedAt: z.ZodNullable<z.ZodDate>;
4634
+ entity: z.ZodString;
4635
+ description: z.ZodNullable<z.ZodString>;
4636
+ }, "strip", z.ZodTypeAny, {
4637
+ id: string;
4638
+ description: string | null;
4639
+ createdAt: Date;
4640
+ updatedAt: Date;
4641
+ deletedAt: Date | null;
4642
+ entity: string;
4643
+ }, {
4644
+ id: string;
4645
+ description: string | null;
4646
+ createdAt: Date;
4647
+ updatedAt: Date;
4648
+ deletedAt: Date | null;
4649
+ entity: string;
4650
+ }>;
4651
+ }, "strip", z.ZodTypeAny, {
4652
+ id: string;
4653
+ description: string;
4654
+ createdAt: Date;
4655
+ updatedAt: Date;
4656
+ deletedAt: Date | null;
4657
+ entityId: string;
4658
+ entityType: {
4659
+ id: string;
4660
+ description: string | null;
4661
+ createdAt: Date;
4662
+ updatedAt: Date;
4663
+ deletedAt: Date | null;
4664
+ entity: string;
4665
+ };
4666
+ }, {
4667
+ id: string;
4668
+ description: string;
4669
+ createdAt: Date;
4670
+ updatedAt: Date;
4671
+ deletedAt: Date | null;
4672
+ entityId: string;
4673
+ entityType: {
4674
+ id: string;
4675
+ description: string | null;
4676
+ createdAt: Date;
4677
+ updatedAt: Date;
4678
+ deletedAt: Date | null;
4679
+ entity: string;
4680
+ };
4681
+ }>, "many">>;
4682
+ }, "strip", z.ZodTypeAny, {
4683
+ id: string;
4684
+ channel: string | null;
4685
+ address: string | null;
4686
+ name: string;
4687
+ createdAt: Date;
4688
+ updatedAt: Date;
4689
+ deletedAt: Date | null;
4690
+ customFields: {
4691
+ id: string;
4692
+ createdAt: Date;
4693
+ updatedAt: Date;
4694
+ deletedAt: Date | null;
4695
+ attribute: {
4696
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4697
+ id: string;
4698
+ position: number;
4699
+ createdAt: Date;
4700
+ updatedAt: Date;
4701
+ deletedAt: Date | null;
4702
+ isDefault: boolean;
4703
+ systemName: string;
4704
+ displayName: string;
4705
+ isArchived: boolean;
4706
+ isRequired: boolean;
4707
+ isUnique: boolean;
4708
+ };
4709
+ textValue: string | null;
4710
+ booleanValue: boolean | null;
4711
+ numberValue: number | null;
4712
+ dateValue: Date | null;
4713
+ uploads: {
4714
+ id: string;
4715
+ createdAt: Date;
4716
+ updatedAt: Date;
4717
+ deletedAt: Date | null;
4718
+ customFieldId: string;
4719
+ upload: {
4720
+ id: string;
4721
+ createdAt: Date;
4722
+ updatedAt: Date;
4723
+ deletedAt: Date | null;
4724
+ fileName: string;
4725
+ fileKey: string;
4726
+ bucketName: string;
4727
+ fileSize: number;
4728
+ };
4729
+ }[];
4730
+ }[];
4731
+ notes: string | null;
4732
+ contactProfile: string | null;
4733
+ socialProfileUrl: string | null;
4734
+ tags: {
4735
+ id: string;
4736
+ name: string;
4737
+ createdAt: Date;
4738
+ updatedAt: Date;
4739
+ deletedAt: Date | null;
4740
+ }[];
4741
+ company: {
4742
+ id: string;
4743
+ createdAt: Date;
4744
+ updatedAt: Date;
4745
+ deletedAt: Date | null;
4746
+ address?: string | null | undefined;
4747
+ name?: string | undefined;
4748
+ phone?: string | null | undefined;
4749
+ industry?: string | null | undefined;
4750
+ } | null;
4751
+ contactEmails: {
4752
+ id: string;
4753
+ isPrimary: boolean;
4754
+ email: string;
4755
+ createdAt: Date;
4756
+ updatedAt: Date;
4757
+ deletedAt: Date | null;
4758
+ }[];
4759
+ contactPhones: {
4760
+ id: string;
4761
+ isPrimary: boolean;
4762
+ createdAt: Date;
4763
+ updatedAt: Date;
4764
+ deletedAt: Date | null;
4765
+ phone: string;
4766
+ }[];
4767
+ activityLogs?: {
4768
+ id: string;
4769
+ description: string;
4770
+ createdAt: Date;
4771
+ updatedAt: Date;
4772
+ deletedAt: Date | null;
4773
+ entityId: string;
4774
+ entityType: {
4775
+ id: string;
4776
+ description: string | null;
4777
+ createdAt: Date;
4778
+ updatedAt: Date;
4779
+ deletedAt: Date | null;
4780
+ entity: string;
4781
+ };
4782
+ }[] | undefined;
4783
+ }, {
4784
+ id: string;
4785
+ channel: string | null;
4786
+ address: string | null;
4787
+ name: string;
4788
+ createdAt: Date;
4789
+ updatedAt: Date;
4790
+ deletedAt: Date | null;
4791
+ customFields: {
4792
+ id: string;
4793
+ createdAt: Date;
4794
+ updatedAt: Date;
4795
+ deletedAt: Date | null;
4796
+ attribute: {
4797
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4798
+ id: string;
4799
+ position: number;
4800
+ createdAt: Date;
4801
+ updatedAt: Date;
4802
+ deletedAt: Date | null;
4803
+ isDefault: boolean;
4804
+ systemName: string;
4805
+ displayName: string;
4806
+ isArchived: boolean;
4807
+ isRequired: boolean;
4808
+ isUnique: boolean;
4809
+ };
4810
+ textValue: string | null;
4811
+ booleanValue: boolean | null;
4812
+ numberValue: number | null;
4813
+ dateValue: Date | null;
4814
+ uploads: {
4815
+ id: string;
4816
+ createdAt: Date;
4817
+ updatedAt: Date;
4818
+ deletedAt: Date | null;
4819
+ customFieldId: string;
4820
+ upload: {
4821
+ id: string;
4822
+ createdAt: Date;
4823
+ updatedAt: Date;
4824
+ deletedAt: Date | null;
4825
+ fileName: string;
4826
+ fileKey: string;
4827
+ bucketName: string;
4828
+ fileSize: number;
4829
+ };
4830
+ }[];
4831
+ }[];
4832
+ notes: string | null;
4833
+ contactProfile: string | null;
4834
+ socialProfileUrl: string | null;
4835
+ tags: {
4836
+ id: string;
4837
+ name: string;
4838
+ createdAt: Date;
4839
+ updatedAt: Date;
4840
+ deletedAt: Date | null;
4841
+ }[];
4842
+ company: {
4843
+ id: string;
4844
+ createdAt: Date;
4845
+ updatedAt: Date;
4846
+ deletedAt: Date | null;
4847
+ address?: string | null | undefined;
4848
+ name?: string | undefined;
4849
+ phone?: string | null | undefined;
4850
+ industry?: string | null | undefined;
4851
+ } | null;
4852
+ contactEmails: {
4853
+ id: string;
4854
+ isPrimary: boolean;
4855
+ email: string;
4856
+ createdAt: Date;
4857
+ updatedAt: Date;
4858
+ deletedAt: Date | null;
4859
+ }[];
4860
+ contactPhones: {
4861
+ id: string;
4862
+ isPrimary: boolean;
4863
+ createdAt: Date;
4864
+ updatedAt: Date;
4865
+ deletedAt: Date | null;
4866
+ phone: string;
4867
+ }[];
4868
+ activityLogs?: {
4869
+ id: string;
4870
+ description: string;
4871
+ createdAt: Date;
4872
+ updatedAt: Date;
4873
+ deletedAt: Date | null;
4874
+ entityId: string;
4875
+ entityType: {
4876
+ id: string;
4877
+ description: string | null;
4878
+ createdAt: Date;
4879
+ updatedAt: Date;
4880
+ deletedAt: Date | null;
4881
+ entity: string;
4882
+ };
4883
+ }[] | undefined;
4884
+ }>;
4885
+ };
4886
+ checkContactPhone: {
4887
+ request: z.ZodObject<{
4888
+ contactId: z.ZodOptional<z.ZodString>;
4889
+ phoneNumber: z.ZodString;
4890
+ }, "strip", z.ZodTypeAny, {
4891
+ phoneNumber: string;
4892
+ contactId?: string | undefined;
4893
+ }, {
4894
+ phoneNumber: string;
4895
+ contactId?: string | undefined;
4896
+ }>;
4897
+ response: z.ZodBoolean;
4898
+ };
4899
+ checkContactEmail: {
4900
+ request: z.ZodObject<{
4901
+ contactId: z.ZodOptional<z.ZodString>;
4902
+ email: z.ZodString;
4903
+ }, "strip", z.ZodTypeAny, {
4904
+ email: string;
4905
+ contactId?: string | undefined;
4906
+ }, {
4907
+ email: string;
4908
+ contactId?: string | undefined;
4909
+ }>;
4910
+ response: z.ZodBoolean;
4911
+ };
1848
4912
  };
1849
4913
  //# sourceMappingURL=validation.d.ts.map