@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.
@@ -1845,5 +1845,754 @@ 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
+ };
1848
2597
  };
1849
2598
  //# sourceMappingURL=validation.d.ts.map