@kl1/contracts 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ import { ContactContractValidationSchema } from './validation';
3
3
  import { ContactSchema } from './schema';
4
4
  export type CreateContactRequest = z.infer<typeof ContactContractValidationSchema.create.request>;
5
5
  export type CreateContactResponse = z.infer<typeof ContactContractValidationSchema.create.response>;
6
+ export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
6
7
  export type UpdateContactRequest = Partial<CreateContactRequest>;
7
8
  export type UpdateContactResponse = CreateContactResponse;
8
9
  export type Contact = z.infer<typeof ContactSchema>;
@@ -1374,6 +1375,1097 @@ export declare const contactContract: {
1374
1375
  authorization: string;
1375
1376
  }>>>;
1376
1377
  };
1378
+ getAll: {
1379
+ summary: "Get all contacts";
1380
+ method: "GET";
1381
+ query: z.ZodObject<{
1382
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1383
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1384
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1385
+ company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1386
+ name: z.ZodOptional<z.ZodString>;
1387
+ address: z.ZodOptional<z.ZodString>;
1388
+ channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1389
+ selectedDate: z.ZodOptional<z.ZodString>;
1390
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1391
+ attributeId: z.ZodString;
1392
+ type: z.ZodString;
1393
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ type: string;
1396
+ value: (string | string[]) & (string | string[] | undefined);
1397
+ attributeId: string;
1398
+ }, {
1399
+ type: string;
1400
+ value: (string | string[]) & (string | string[] | undefined);
1401
+ attributeId: string;
1402
+ }>, "many">>;
1403
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1404
+ phone: z.ZodOptional<z.ZodString>;
1405
+ email: z.ZodOptional<z.ZodString>;
1406
+ notes: z.ZodOptional<z.ZodString>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ page?: number | undefined;
1409
+ pageSize?: number | undefined;
1410
+ keyword?: string | undefined;
1411
+ company?: string[] | undefined;
1412
+ name?: string | undefined;
1413
+ address?: string | undefined;
1414
+ channel?: string[] | undefined;
1415
+ selectedDate?: string | undefined;
1416
+ customFields?: {
1417
+ type: string;
1418
+ value: (string | string[]) & (string | string[] | undefined);
1419
+ attributeId: string;
1420
+ }[] | undefined;
1421
+ tags?: string[] | undefined;
1422
+ phone?: string | undefined;
1423
+ email?: string | undefined;
1424
+ notes?: string | undefined;
1425
+ }, {
1426
+ page?: number | undefined;
1427
+ pageSize?: number | undefined;
1428
+ keyword?: string | undefined;
1429
+ company?: string[] | undefined;
1430
+ name?: string | undefined;
1431
+ address?: string | undefined;
1432
+ channel?: string[] | undefined;
1433
+ selectedDate?: string | undefined;
1434
+ customFields?: {
1435
+ type: string;
1436
+ value: (string | string[]) & (string | string[] | undefined);
1437
+ attributeId: string;
1438
+ }[] | undefined;
1439
+ tags?: string[] | undefined;
1440
+ phone?: string | undefined;
1441
+ email?: string | undefined;
1442
+ notes?: string | undefined;
1443
+ }>;
1444
+ responses: {
1445
+ 200: z.ZodObject<{
1446
+ requestId: z.ZodString;
1447
+ page: z.ZodNumber;
1448
+ pageSize: z.ZodNumber;
1449
+ total: z.ZodNumber;
1450
+ data: z.ZodArray<z.ZodObject<{
1451
+ id: z.ZodString;
1452
+ createdAt: z.ZodDate;
1453
+ updatedAt: z.ZodDate;
1454
+ deletedAt: z.ZodNullable<z.ZodDate>;
1455
+ name: z.ZodString;
1456
+ address: z.ZodNullable<z.ZodString>;
1457
+ channel: z.ZodNullable<z.ZodString>;
1458
+ notes: z.ZodNullable<z.ZodString>;
1459
+ contactProfile: z.ZodNullable<z.ZodString>;
1460
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1461
+ tags: z.ZodArray<z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ createdAt: z.ZodDate;
1464
+ updatedAt: z.ZodDate;
1465
+ deletedAt: z.ZodNullable<z.ZodDate>;
1466
+ name: z.ZodString;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ id: string;
1469
+ name: string;
1470
+ createdAt: Date;
1471
+ updatedAt: Date;
1472
+ deletedAt: Date | null;
1473
+ }, {
1474
+ id: string;
1475
+ name: string;
1476
+ createdAt: Date;
1477
+ updatedAt: Date;
1478
+ deletedAt: Date | null;
1479
+ }>, "many">;
1480
+ company: z.ZodNullable<z.ZodObject<Omit<{
1481
+ id: z.ZodString;
1482
+ createdAt: z.ZodDate;
1483
+ updatedAt: z.ZodDate;
1484
+ deletedAt: z.ZodNullable<z.ZodDate>;
1485
+ name: z.ZodOptional<z.ZodString>;
1486
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1489
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodString;
1491
+ createdAt: z.ZodDate;
1492
+ updatedAt: z.ZodDate;
1493
+ deletedAt: z.ZodNullable<z.ZodDate>;
1494
+ textValue: z.ZodNullable<z.ZodString>;
1495
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1496
+ numberValue: z.ZodNullable<z.ZodNumber>;
1497
+ dateValue: z.ZodNullable<z.ZodString>;
1498
+ attribute: z.ZodObject<Omit<{
1499
+ id: z.ZodString;
1500
+ createdAt: z.ZodDate;
1501
+ updatedAt: z.ZodDate;
1502
+ deletedAt: z.ZodNullable<z.ZodDate>;
1503
+ systemName: z.ZodString;
1504
+ displayName: z.ZodString;
1505
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1506
+ position: z.ZodNumber;
1507
+ isDefault: z.ZodBoolean;
1508
+ isArchived: z.ZodBoolean;
1509
+ isRequired: z.ZodBoolean;
1510
+ isUnique: z.ZodBoolean;
1511
+ options: z.ZodArray<z.ZodObject<{
1512
+ position: z.ZodNumber;
1513
+ value: z.ZodString;
1514
+ label: z.ZodString;
1515
+ isDefault: z.ZodBoolean;
1516
+ id: z.ZodString;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ id: string;
1519
+ position: number;
1520
+ value: string;
1521
+ label: string;
1522
+ isDefault: boolean;
1523
+ }, {
1524
+ id: string;
1525
+ position: number;
1526
+ value: string;
1527
+ label: string;
1528
+ isDefault: boolean;
1529
+ }>, "many">;
1530
+ group: z.ZodObject<{
1531
+ id: z.ZodString;
1532
+ createdAt: z.ZodDate;
1533
+ updatedAt: z.ZodDate;
1534
+ deletedAt: z.ZodNullable<z.ZodDate>;
1535
+ systemName: z.ZodString;
1536
+ displayName: z.ZodString;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ id: string;
1539
+ createdAt: Date;
1540
+ updatedAt: Date;
1541
+ deletedAt: Date | null;
1542
+ systemName: string;
1543
+ displayName: string;
1544
+ }, {
1545
+ id: string;
1546
+ createdAt: Date;
1547
+ updatedAt: Date;
1548
+ deletedAt: Date | null;
1549
+ systemName: string;
1550
+ displayName: string;
1551
+ }>;
1552
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1553
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1554
+ id: string;
1555
+ position: number;
1556
+ createdAt: Date;
1557
+ updatedAt: Date;
1558
+ deletedAt: Date | null;
1559
+ isDefault: boolean;
1560
+ systemName: string;
1561
+ displayName: string;
1562
+ isArchived: boolean;
1563
+ isRequired: boolean;
1564
+ isUnique: boolean;
1565
+ }, {
1566
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1567
+ id: string;
1568
+ position: number;
1569
+ createdAt: Date;
1570
+ updatedAt: Date;
1571
+ deletedAt: Date | null;
1572
+ isDefault: boolean;
1573
+ systemName: string;
1574
+ displayName: string;
1575
+ isArchived: boolean;
1576
+ isRequired: boolean;
1577
+ isUnique: boolean;
1578
+ }>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ id: string;
1581
+ createdAt: Date;
1582
+ updatedAt: Date;
1583
+ deletedAt: Date | null;
1584
+ attribute: {
1585
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1586
+ id: string;
1587
+ position: number;
1588
+ createdAt: Date;
1589
+ updatedAt: Date;
1590
+ deletedAt: Date | null;
1591
+ isDefault: boolean;
1592
+ systemName: string;
1593
+ displayName: string;
1594
+ isArchived: boolean;
1595
+ isRequired: boolean;
1596
+ isUnique: boolean;
1597
+ };
1598
+ textValue: string | null;
1599
+ booleanValue: boolean | null;
1600
+ numberValue: number | null;
1601
+ dateValue: string | null;
1602
+ }, {
1603
+ id: string;
1604
+ createdAt: Date;
1605
+ updatedAt: Date;
1606
+ deletedAt: Date | null;
1607
+ attribute: {
1608
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1609
+ id: string;
1610
+ position: number;
1611
+ createdAt: Date;
1612
+ updatedAt: Date;
1613
+ deletedAt: Date | null;
1614
+ isDefault: boolean;
1615
+ systemName: string;
1616
+ displayName: string;
1617
+ isArchived: boolean;
1618
+ isRequired: boolean;
1619
+ isUnique: boolean;
1620
+ };
1621
+ textValue: string | null;
1622
+ booleanValue: boolean | null;
1623
+ numberValue: number | null;
1624
+ dateValue: string | null;
1625
+ }>, "many">>;
1626
+ }, "customFields">, "strip", z.ZodTypeAny, {
1627
+ id: string;
1628
+ createdAt: Date;
1629
+ updatedAt: Date;
1630
+ deletedAt: Date | null;
1631
+ address?: string | null | undefined;
1632
+ name?: string | undefined;
1633
+ phone?: string | null | undefined;
1634
+ industry?: string | null | undefined;
1635
+ }, {
1636
+ id: string;
1637
+ createdAt: Date;
1638
+ updatedAt: Date;
1639
+ deletedAt: Date | null;
1640
+ address?: string | null | undefined;
1641
+ name?: string | undefined;
1642
+ phone?: string | null | undefined;
1643
+ industry?: string | null | undefined;
1644
+ }>>;
1645
+ customFields: z.ZodArray<z.ZodObject<{
1646
+ id: z.ZodString;
1647
+ createdAt: z.ZodDate;
1648
+ updatedAt: z.ZodDate;
1649
+ deletedAt: z.ZodNullable<z.ZodDate>;
1650
+ textValue: z.ZodNullable<z.ZodString>;
1651
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1652
+ numberValue: z.ZodNullable<z.ZodNumber>;
1653
+ dateValue: z.ZodNullable<z.ZodDate>;
1654
+ attribute: z.ZodObject<Omit<{
1655
+ id: z.ZodString;
1656
+ createdAt: z.ZodDate;
1657
+ updatedAt: z.ZodDate;
1658
+ deletedAt: z.ZodNullable<z.ZodDate>;
1659
+ systemName: z.ZodString;
1660
+ displayName: z.ZodString;
1661
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1662
+ position: z.ZodNumber;
1663
+ isDefault: z.ZodBoolean;
1664
+ isArchived: z.ZodBoolean;
1665
+ isRequired: z.ZodBoolean;
1666
+ isUnique: z.ZodBoolean;
1667
+ options: z.ZodArray<z.ZodObject<{
1668
+ position: z.ZodNumber;
1669
+ value: z.ZodString;
1670
+ label: z.ZodString;
1671
+ isDefault: z.ZodBoolean;
1672
+ id: z.ZodString;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ id: string;
1675
+ position: number;
1676
+ value: string;
1677
+ label: string;
1678
+ isDefault: boolean;
1679
+ }, {
1680
+ id: string;
1681
+ position: number;
1682
+ value: string;
1683
+ label: string;
1684
+ isDefault: boolean;
1685
+ }>, "many">;
1686
+ group: z.ZodObject<{
1687
+ id: z.ZodString;
1688
+ createdAt: z.ZodDate;
1689
+ updatedAt: z.ZodDate;
1690
+ deletedAt: z.ZodNullable<z.ZodDate>;
1691
+ systemName: z.ZodString;
1692
+ displayName: z.ZodString;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: string;
1695
+ createdAt: Date;
1696
+ updatedAt: Date;
1697
+ deletedAt: Date | null;
1698
+ systemName: string;
1699
+ displayName: string;
1700
+ }, {
1701
+ id: string;
1702
+ createdAt: Date;
1703
+ updatedAt: Date;
1704
+ deletedAt: Date | null;
1705
+ systemName: string;
1706
+ displayName: string;
1707
+ }>;
1708
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1709
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1710
+ id: string;
1711
+ position: number;
1712
+ createdAt: Date;
1713
+ updatedAt: Date;
1714
+ deletedAt: Date | null;
1715
+ isDefault: boolean;
1716
+ systemName: string;
1717
+ displayName: string;
1718
+ isArchived: boolean;
1719
+ isRequired: boolean;
1720
+ isUnique: boolean;
1721
+ }, {
1722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1723
+ id: string;
1724
+ position: number;
1725
+ createdAt: Date;
1726
+ updatedAt: Date;
1727
+ deletedAt: Date | null;
1728
+ isDefault: boolean;
1729
+ systemName: string;
1730
+ displayName: string;
1731
+ isArchived: boolean;
1732
+ isRequired: boolean;
1733
+ isUnique: boolean;
1734
+ }>;
1735
+ uploads: z.ZodArray<z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ createdAt: z.ZodDate;
1738
+ updatedAt: z.ZodDate;
1739
+ deletedAt: z.ZodNullable<z.ZodDate>;
1740
+ customFieldId: z.ZodString;
1741
+ upload: z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ createdAt: z.ZodDate;
1744
+ updatedAt: z.ZodDate;
1745
+ deletedAt: z.ZodNullable<z.ZodDate>;
1746
+ bucketName: z.ZodString;
1747
+ fileName: z.ZodString;
1748
+ fileSize: z.ZodNumber;
1749
+ fileKey: z.ZodString;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ id: string;
1752
+ createdAt: Date;
1753
+ updatedAt: Date;
1754
+ deletedAt: Date | null;
1755
+ fileName: string;
1756
+ fileKey: string;
1757
+ bucketName: string;
1758
+ fileSize: number;
1759
+ }, {
1760
+ id: string;
1761
+ createdAt: Date;
1762
+ updatedAt: Date;
1763
+ deletedAt: Date | null;
1764
+ fileName: string;
1765
+ fileKey: string;
1766
+ bucketName: string;
1767
+ fileSize: number;
1768
+ }>;
1769
+ }, "strip", z.ZodTypeAny, {
1770
+ id: string;
1771
+ createdAt: Date;
1772
+ updatedAt: Date;
1773
+ deletedAt: Date | null;
1774
+ customFieldId: string;
1775
+ upload: {
1776
+ id: string;
1777
+ createdAt: Date;
1778
+ updatedAt: Date;
1779
+ deletedAt: Date | null;
1780
+ fileName: string;
1781
+ fileKey: string;
1782
+ bucketName: string;
1783
+ fileSize: number;
1784
+ };
1785
+ }, {
1786
+ id: string;
1787
+ createdAt: Date;
1788
+ updatedAt: Date;
1789
+ deletedAt: Date | null;
1790
+ customFieldId: string;
1791
+ upload: {
1792
+ id: string;
1793
+ createdAt: Date;
1794
+ updatedAt: Date;
1795
+ deletedAt: Date | null;
1796
+ fileName: string;
1797
+ fileKey: string;
1798
+ bucketName: string;
1799
+ fileSize: number;
1800
+ };
1801
+ }>, "many">;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ id: string;
1804
+ createdAt: Date;
1805
+ updatedAt: Date;
1806
+ deletedAt: Date | null;
1807
+ attribute: {
1808
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1809
+ id: string;
1810
+ position: number;
1811
+ createdAt: Date;
1812
+ updatedAt: Date;
1813
+ deletedAt: Date | null;
1814
+ isDefault: boolean;
1815
+ systemName: string;
1816
+ displayName: string;
1817
+ isArchived: boolean;
1818
+ isRequired: boolean;
1819
+ isUnique: boolean;
1820
+ };
1821
+ textValue: string | null;
1822
+ booleanValue: boolean | null;
1823
+ numberValue: number | null;
1824
+ dateValue: Date | null;
1825
+ uploads: {
1826
+ id: string;
1827
+ createdAt: Date;
1828
+ updatedAt: Date;
1829
+ deletedAt: Date | null;
1830
+ customFieldId: string;
1831
+ upload: {
1832
+ id: string;
1833
+ createdAt: Date;
1834
+ updatedAt: Date;
1835
+ deletedAt: Date | null;
1836
+ fileName: string;
1837
+ fileKey: string;
1838
+ bucketName: string;
1839
+ fileSize: number;
1840
+ };
1841
+ }[];
1842
+ }, {
1843
+ id: string;
1844
+ createdAt: Date;
1845
+ updatedAt: Date;
1846
+ deletedAt: Date | null;
1847
+ attribute: {
1848
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1849
+ id: string;
1850
+ position: number;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ deletedAt: Date | null;
1854
+ isDefault: boolean;
1855
+ systemName: string;
1856
+ displayName: string;
1857
+ isArchived: boolean;
1858
+ isRequired: boolean;
1859
+ isUnique: boolean;
1860
+ };
1861
+ textValue: string | null;
1862
+ booleanValue: boolean | null;
1863
+ numberValue: number | null;
1864
+ dateValue: Date | null;
1865
+ uploads: {
1866
+ id: string;
1867
+ createdAt: Date;
1868
+ updatedAt: Date;
1869
+ deletedAt: Date | null;
1870
+ customFieldId: string;
1871
+ upload: {
1872
+ id: string;
1873
+ createdAt: Date;
1874
+ updatedAt: Date;
1875
+ deletedAt: Date | null;
1876
+ fileName: string;
1877
+ fileKey: string;
1878
+ bucketName: string;
1879
+ fileSize: number;
1880
+ };
1881
+ }[];
1882
+ }>, "many">;
1883
+ contactEmails: z.ZodArray<z.ZodObject<{
1884
+ id: z.ZodString;
1885
+ createdAt: z.ZodDate;
1886
+ updatedAt: z.ZodDate;
1887
+ deletedAt: z.ZodNullable<z.ZodDate>;
1888
+ email: z.ZodString;
1889
+ isPrimary: z.ZodBoolean;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ id: string;
1892
+ isPrimary: boolean;
1893
+ email: string;
1894
+ createdAt: Date;
1895
+ updatedAt: Date;
1896
+ deletedAt: Date | null;
1897
+ }, {
1898
+ id: string;
1899
+ isPrimary: boolean;
1900
+ email: string;
1901
+ createdAt: Date;
1902
+ updatedAt: Date;
1903
+ deletedAt: Date | null;
1904
+ }>, "many">;
1905
+ contactPhones: z.ZodArray<z.ZodObject<{
1906
+ id: z.ZodString;
1907
+ createdAt: z.ZodDate;
1908
+ updatedAt: z.ZodDate;
1909
+ deletedAt: z.ZodNullable<z.ZodDate>;
1910
+ phone: z.ZodString;
1911
+ isPrimary: z.ZodBoolean;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ id: string;
1914
+ isPrimary: boolean;
1915
+ createdAt: Date;
1916
+ updatedAt: Date;
1917
+ deletedAt: Date | null;
1918
+ phone: string;
1919
+ }, {
1920
+ id: string;
1921
+ isPrimary: boolean;
1922
+ createdAt: Date;
1923
+ updatedAt: Date;
1924
+ deletedAt: Date | null;
1925
+ phone: string;
1926
+ }>, "many">;
1927
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1928
+ id: z.ZodString;
1929
+ createdAt: z.ZodDate;
1930
+ updatedAt: z.ZodDate;
1931
+ deletedAt: z.ZodNullable<z.ZodDate>;
1932
+ entityId: z.ZodString;
1933
+ description: z.ZodString;
1934
+ entityType: z.ZodObject<{
1935
+ id: z.ZodString;
1936
+ createdAt: z.ZodDate;
1937
+ updatedAt: z.ZodDate;
1938
+ deletedAt: z.ZodNullable<z.ZodDate>;
1939
+ entity: z.ZodString;
1940
+ description: z.ZodNullable<z.ZodString>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ id: string;
1943
+ description: string | null;
1944
+ createdAt: Date;
1945
+ updatedAt: Date;
1946
+ deletedAt: Date | null;
1947
+ entity: string;
1948
+ }, {
1949
+ id: string;
1950
+ description: string | null;
1951
+ createdAt: Date;
1952
+ updatedAt: Date;
1953
+ deletedAt: Date | null;
1954
+ entity: string;
1955
+ }>;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ id: string;
1958
+ description: string;
1959
+ createdAt: Date;
1960
+ updatedAt: Date;
1961
+ deletedAt: Date | null;
1962
+ entityId: string;
1963
+ entityType: {
1964
+ id: string;
1965
+ description: string | null;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ entity: string;
1970
+ };
1971
+ }, {
1972
+ id: string;
1973
+ description: string;
1974
+ createdAt: Date;
1975
+ updatedAt: Date;
1976
+ deletedAt: Date | null;
1977
+ entityId: string;
1978
+ entityType: {
1979
+ id: string;
1980
+ description: string | null;
1981
+ createdAt: Date;
1982
+ updatedAt: Date;
1983
+ deletedAt: Date | null;
1984
+ entity: string;
1985
+ };
1986
+ }>, "many">>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ id: string;
1989
+ channel: string | null;
1990
+ address: string | null;
1991
+ name: string;
1992
+ createdAt: Date;
1993
+ updatedAt: Date;
1994
+ deletedAt: Date | null;
1995
+ customFields: {
1996
+ id: string;
1997
+ createdAt: Date;
1998
+ updatedAt: Date;
1999
+ deletedAt: Date | null;
2000
+ attribute: {
2001
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2002
+ id: string;
2003
+ position: number;
2004
+ createdAt: Date;
2005
+ updatedAt: Date;
2006
+ deletedAt: Date | null;
2007
+ isDefault: boolean;
2008
+ systemName: string;
2009
+ displayName: string;
2010
+ isArchived: boolean;
2011
+ isRequired: boolean;
2012
+ isUnique: boolean;
2013
+ };
2014
+ textValue: string | null;
2015
+ booleanValue: boolean | null;
2016
+ numberValue: number | null;
2017
+ dateValue: Date | null;
2018
+ uploads: {
2019
+ id: string;
2020
+ createdAt: Date;
2021
+ updatedAt: Date;
2022
+ deletedAt: Date | null;
2023
+ customFieldId: string;
2024
+ upload: {
2025
+ id: string;
2026
+ createdAt: Date;
2027
+ updatedAt: Date;
2028
+ deletedAt: Date | null;
2029
+ fileName: string;
2030
+ fileKey: string;
2031
+ bucketName: string;
2032
+ fileSize: number;
2033
+ };
2034
+ }[];
2035
+ }[];
2036
+ notes: string | null;
2037
+ contactProfile: string | null;
2038
+ socialProfileUrl: string | null;
2039
+ tags: {
2040
+ id: string;
2041
+ name: string;
2042
+ createdAt: Date;
2043
+ updatedAt: Date;
2044
+ deletedAt: Date | null;
2045
+ }[];
2046
+ company: {
2047
+ id: string;
2048
+ createdAt: Date;
2049
+ updatedAt: Date;
2050
+ deletedAt: Date | null;
2051
+ address?: string | null | undefined;
2052
+ name?: string | undefined;
2053
+ phone?: string | null | undefined;
2054
+ industry?: string | null | undefined;
2055
+ } | null;
2056
+ contactEmails: {
2057
+ id: string;
2058
+ isPrimary: boolean;
2059
+ email: string;
2060
+ createdAt: Date;
2061
+ updatedAt: Date;
2062
+ deletedAt: Date | null;
2063
+ }[];
2064
+ contactPhones: {
2065
+ id: string;
2066
+ isPrimary: boolean;
2067
+ createdAt: Date;
2068
+ updatedAt: Date;
2069
+ deletedAt: Date | null;
2070
+ phone: string;
2071
+ }[];
2072
+ activityLogs?: {
2073
+ id: string;
2074
+ description: string;
2075
+ createdAt: Date;
2076
+ updatedAt: Date;
2077
+ deletedAt: Date | null;
2078
+ entityId: string;
2079
+ entityType: {
2080
+ id: string;
2081
+ description: string | null;
2082
+ createdAt: Date;
2083
+ updatedAt: Date;
2084
+ deletedAt: Date | null;
2085
+ entity: string;
2086
+ };
2087
+ }[] | undefined;
2088
+ }, {
2089
+ id: string;
2090
+ channel: string | null;
2091
+ address: string | null;
2092
+ name: string;
2093
+ createdAt: Date;
2094
+ updatedAt: Date;
2095
+ deletedAt: Date | null;
2096
+ customFields: {
2097
+ id: string;
2098
+ createdAt: Date;
2099
+ updatedAt: Date;
2100
+ deletedAt: Date | null;
2101
+ attribute: {
2102
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2103
+ id: string;
2104
+ position: number;
2105
+ createdAt: Date;
2106
+ updatedAt: Date;
2107
+ deletedAt: Date | null;
2108
+ isDefault: boolean;
2109
+ systemName: string;
2110
+ displayName: string;
2111
+ isArchived: boolean;
2112
+ isRequired: boolean;
2113
+ isUnique: boolean;
2114
+ };
2115
+ textValue: string | null;
2116
+ booleanValue: boolean | null;
2117
+ numberValue: number | null;
2118
+ dateValue: Date | null;
2119
+ uploads: {
2120
+ id: string;
2121
+ createdAt: Date;
2122
+ updatedAt: Date;
2123
+ deletedAt: Date | null;
2124
+ customFieldId: string;
2125
+ upload: {
2126
+ id: string;
2127
+ createdAt: Date;
2128
+ updatedAt: Date;
2129
+ deletedAt: Date | null;
2130
+ fileName: string;
2131
+ fileKey: string;
2132
+ bucketName: string;
2133
+ fileSize: number;
2134
+ };
2135
+ }[];
2136
+ }[];
2137
+ notes: string | null;
2138
+ contactProfile: string | null;
2139
+ socialProfileUrl: string | null;
2140
+ tags: {
2141
+ id: string;
2142
+ name: string;
2143
+ createdAt: Date;
2144
+ updatedAt: Date;
2145
+ deletedAt: Date | null;
2146
+ }[];
2147
+ company: {
2148
+ id: string;
2149
+ createdAt: Date;
2150
+ updatedAt: Date;
2151
+ deletedAt: Date | null;
2152
+ address?: string | null | undefined;
2153
+ name?: string | undefined;
2154
+ phone?: string | null | undefined;
2155
+ industry?: string | null | undefined;
2156
+ } | null;
2157
+ contactEmails: {
2158
+ id: string;
2159
+ isPrimary: boolean;
2160
+ email: string;
2161
+ createdAt: Date;
2162
+ updatedAt: Date;
2163
+ deletedAt: Date | null;
2164
+ }[];
2165
+ contactPhones: {
2166
+ id: string;
2167
+ isPrimary: boolean;
2168
+ createdAt: Date;
2169
+ updatedAt: Date;
2170
+ deletedAt: Date | null;
2171
+ phone: string;
2172
+ }[];
2173
+ activityLogs?: {
2174
+ id: string;
2175
+ description: string;
2176
+ createdAt: Date;
2177
+ updatedAt: Date;
2178
+ deletedAt: Date | null;
2179
+ entityId: string;
2180
+ entityType: {
2181
+ id: string;
2182
+ description: string | null;
2183
+ createdAt: Date;
2184
+ updatedAt: Date;
2185
+ deletedAt: Date | null;
2186
+ entity: string;
2187
+ };
2188
+ }[] | undefined;
2189
+ }>, "many">;
2190
+ }, "strip", z.ZodTypeAny, {
2191
+ data: {
2192
+ id: string;
2193
+ channel: string | null;
2194
+ address: string | null;
2195
+ name: string;
2196
+ createdAt: Date;
2197
+ updatedAt: Date;
2198
+ deletedAt: Date | null;
2199
+ customFields: {
2200
+ id: string;
2201
+ createdAt: Date;
2202
+ updatedAt: Date;
2203
+ deletedAt: Date | null;
2204
+ attribute: {
2205
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2206
+ id: string;
2207
+ position: number;
2208
+ createdAt: Date;
2209
+ updatedAt: Date;
2210
+ deletedAt: Date | null;
2211
+ isDefault: boolean;
2212
+ systemName: string;
2213
+ displayName: string;
2214
+ isArchived: boolean;
2215
+ isRequired: boolean;
2216
+ isUnique: boolean;
2217
+ };
2218
+ textValue: string | null;
2219
+ booleanValue: boolean | null;
2220
+ numberValue: number | null;
2221
+ dateValue: Date | null;
2222
+ uploads: {
2223
+ id: string;
2224
+ createdAt: Date;
2225
+ updatedAt: Date;
2226
+ deletedAt: Date | null;
2227
+ customFieldId: string;
2228
+ upload: {
2229
+ id: string;
2230
+ createdAt: Date;
2231
+ updatedAt: Date;
2232
+ deletedAt: Date | null;
2233
+ fileName: string;
2234
+ fileKey: string;
2235
+ bucketName: string;
2236
+ fileSize: number;
2237
+ };
2238
+ }[];
2239
+ }[];
2240
+ notes: string | null;
2241
+ contactProfile: string | null;
2242
+ socialProfileUrl: string | null;
2243
+ tags: {
2244
+ id: string;
2245
+ name: string;
2246
+ createdAt: Date;
2247
+ updatedAt: Date;
2248
+ deletedAt: Date | null;
2249
+ }[];
2250
+ company: {
2251
+ id: string;
2252
+ createdAt: Date;
2253
+ updatedAt: Date;
2254
+ deletedAt: Date | null;
2255
+ address?: string | null | undefined;
2256
+ name?: string | undefined;
2257
+ phone?: string | null | undefined;
2258
+ industry?: string | null | undefined;
2259
+ } | null;
2260
+ contactEmails: {
2261
+ id: string;
2262
+ isPrimary: boolean;
2263
+ email: string;
2264
+ createdAt: Date;
2265
+ updatedAt: Date;
2266
+ deletedAt: Date | null;
2267
+ }[];
2268
+ contactPhones: {
2269
+ id: string;
2270
+ isPrimary: boolean;
2271
+ createdAt: Date;
2272
+ updatedAt: Date;
2273
+ deletedAt: Date | null;
2274
+ phone: string;
2275
+ }[];
2276
+ activityLogs?: {
2277
+ id: string;
2278
+ description: string;
2279
+ createdAt: Date;
2280
+ updatedAt: Date;
2281
+ deletedAt: Date | null;
2282
+ entityId: string;
2283
+ entityType: {
2284
+ id: string;
2285
+ description: string | null;
2286
+ createdAt: Date;
2287
+ updatedAt: Date;
2288
+ deletedAt: Date | null;
2289
+ entity: string;
2290
+ };
2291
+ }[] | undefined;
2292
+ }[];
2293
+ total: number;
2294
+ page: number;
2295
+ pageSize: number;
2296
+ requestId: string;
2297
+ }, {
2298
+ data: {
2299
+ id: string;
2300
+ channel: string | null;
2301
+ address: string | null;
2302
+ name: string;
2303
+ createdAt: Date;
2304
+ updatedAt: Date;
2305
+ deletedAt: Date | null;
2306
+ customFields: {
2307
+ id: string;
2308
+ createdAt: Date;
2309
+ updatedAt: Date;
2310
+ deletedAt: Date | null;
2311
+ attribute: {
2312
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2313
+ id: string;
2314
+ position: number;
2315
+ createdAt: Date;
2316
+ updatedAt: Date;
2317
+ deletedAt: Date | null;
2318
+ isDefault: boolean;
2319
+ systemName: string;
2320
+ displayName: string;
2321
+ isArchived: boolean;
2322
+ isRequired: boolean;
2323
+ isUnique: boolean;
2324
+ };
2325
+ textValue: string | null;
2326
+ booleanValue: boolean | null;
2327
+ numberValue: number | null;
2328
+ dateValue: Date | null;
2329
+ uploads: {
2330
+ id: string;
2331
+ createdAt: Date;
2332
+ updatedAt: Date;
2333
+ deletedAt: Date | null;
2334
+ customFieldId: string;
2335
+ upload: {
2336
+ id: string;
2337
+ createdAt: Date;
2338
+ updatedAt: Date;
2339
+ deletedAt: Date | null;
2340
+ fileName: string;
2341
+ fileKey: string;
2342
+ bucketName: string;
2343
+ fileSize: number;
2344
+ };
2345
+ }[];
2346
+ }[];
2347
+ notes: string | null;
2348
+ contactProfile: string | null;
2349
+ socialProfileUrl: string | null;
2350
+ tags: {
2351
+ id: string;
2352
+ name: string;
2353
+ createdAt: Date;
2354
+ updatedAt: Date;
2355
+ deletedAt: Date | null;
2356
+ }[];
2357
+ company: {
2358
+ id: string;
2359
+ createdAt: Date;
2360
+ updatedAt: Date;
2361
+ deletedAt: Date | null;
2362
+ address?: string | null | undefined;
2363
+ name?: string | undefined;
2364
+ phone?: string | null | undefined;
2365
+ industry?: string | null | undefined;
2366
+ } | null;
2367
+ contactEmails: {
2368
+ id: string;
2369
+ isPrimary: boolean;
2370
+ email: string;
2371
+ createdAt: Date;
2372
+ updatedAt: Date;
2373
+ deletedAt: Date | null;
2374
+ }[];
2375
+ contactPhones: {
2376
+ id: string;
2377
+ isPrimary: boolean;
2378
+ createdAt: Date;
2379
+ updatedAt: Date;
2380
+ deletedAt: Date | null;
2381
+ phone: string;
2382
+ }[];
2383
+ activityLogs?: {
2384
+ id: string;
2385
+ description: string;
2386
+ createdAt: Date;
2387
+ updatedAt: Date;
2388
+ deletedAt: Date | null;
2389
+ entityId: string;
2390
+ entityType: {
2391
+ id: string;
2392
+ description: string | null;
2393
+ createdAt: Date;
2394
+ updatedAt: Date;
2395
+ deletedAt: Date | null;
2396
+ entity: string;
2397
+ };
2398
+ }[] | undefined;
2399
+ }[];
2400
+ total: number;
2401
+ page: number;
2402
+ pageSize: number;
2403
+ requestId: string;
2404
+ }>;
2405
+ 400: z.ZodObject<{
2406
+ message: z.ZodString;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ message: string;
2409
+ }, {
2410
+ message: string;
2411
+ }>;
2412
+ 409: z.ZodObject<{
2413
+ message: z.ZodString;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ message: string;
2416
+ }, {
2417
+ message: string;
2418
+ }>;
2419
+ 500: z.ZodObject<{
2420
+ message: z.ZodString;
2421
+ }, "strip", z.ZodTypeAny, {
2422
+ message: string;
2423
+ }, {
2424
+ message: string;
2425
+ }>;
2426
+ 401: z.ZodObject<{
2427
+ message: z.ZodString;
2428
+ error: z.ZodAny;
2429
+ }, "strip", z.ZodTypeAny, {
2430
+ message: string;
2431
+ error?: any;
2432
+ }, {
2433
+ message: string;
2434
+ error?: any;
2435
+ }>;
2436
+ 404: z.ZodObject<{
2437
+ message: z.ZodString;
2438
+ error: z.ZodAny;
2439
+ }, "strip", z.ZodTypeAny, {
2440
+ message: string;
2441
+ error?: any;
2442
+ }, {
2443
+ message: string;
2444
+ error?: any;
2445
+ }>;
2446
+ 422: z.ZodObject<{
2447
+ message: z.ZodString;
2448
+ error: z.ZodAny;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ message: string;
2451
+ error?: any;
2452
+ }, {
2453
+ message: string;
2454
+ error?: any;
2455
+ }>;
2456
+ };
2457
+ path: "contact";
2458
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2459
+ 'x-tenant': z.ZodString;
2460
+ authorization: z.ZodString;
2461
+ }, "strip", z.ZodTypeAny, {
2462
+ 'x-tenant': string;
2463
+ authorization: string;
2464
+ }, {
2465
+ 'x-tenant': string;
2466
+ authorization: string;
2467
+ }>>>;
2468
+ };
1377
2469
  update: {
1378
2470
  body: z.ZodObject<{
1379
2471
  name: z.ZodOptional<z.ZodObject<{
@@ -2663,5 +3755,91 @@ export declare const contactContract: {
2663
3755
  authorization: string;
2664
3756
  }>>>;
2665
3757
  };
3758
+ delete: {
3759
+ body: null;
3760
+ summary: "Delete a contact";
3761
+ method: "DELETE";
3762
+ pathParams: z.ZodObject<{
3763
+ id: z.ZodString;
3764
+ }, "strip", z.ZodTypeAny, {
3765
+ id: string;
3766
+ }, {
3767
+ id: string;
3768
+ }>;
3769
+ responses: {
3770
+ 200: z.ZodObject<{
3771
+ requestId: z.ZodString;
3772
+ message: z.ZodString;
3773
+ }, "strip", z.ZodTypeAny, {
3774
+ message: string;
3775
+ requestId: string;
3776
+ }, {
3777
+ message: string;
3778
+ requestId: string;
3779
+ }>;
3780
+ 400: z.ZodObject<{
3781
+ message: z.ZodString;
3782
+ }, "strip", z.ZodTypeAny, {
3783
+ message: string;
3784
+ }, {
3785
+ message: string;
3786
+ }>;
3787
+ 409: z.ZodObject<{
3788
+ message: z.ZodString;
3789
+ }, "strip", z.ZodTypeAny, {
3790
+ message: string;
3791
+ }, {
3792
+ message: string;
3793
+ }>;
3794
+ 500: z.ZodObject<{
3795
+ message: z.ZodString;
3796
+ }, "strip", z.ZodTypeAny, {
3797
+ message: string;
3798
+ }, {
3799
+ message: string;
3800
+ }>;
3801
+ 401: z.ZodObject<{
3802
+ message: z.ZodString;
3803
+ error: z.ZodAny;
3804
+ }, "strip", z.ZodTypeAny, {
3805
+ message: string;
3806
+ error?: any;
3807
+ }, {
3808
+ message: string;
3809
+ error?: any;
3810
+ }>;
3811
+ 404: z.ZodObject<{
3812
+ message: z.ZodString;
3813
+ error: z.ZodAny;
3814
+ }, "strip", z.ZodTypeAny, {
3815
+ message: string;
3816
+ error?: any;
3817
+ }, {
3818
+ message: string;
3819
+ error?: any;
3820
+ }>;
3821
+ 422: z.ZodObject<{
3822
+ message: z.ZodString;
3823
+ error: z.ZodAny;
3824
+ }, "strip", z.ZodTypeAny, {
3825
+ message: string;
3826
+ error?: any;
3827
+ }, {
3828
+ message: string;
3829
+ error?: any;
3830
+ }>;
3831
+ };
3832
+ path: "contact/:id";
3833
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3834
+ 'x-tenant': z.ZodString;
3835
+ authorization: z.ZodString;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ 'x-tenant': string;
3838
+ authorization: string;
3839
+ }, {
3840
+ 'x-tenant': string;
3841
+ authorization: string;
3842
+ }>>>;
3843
+ };
2666
3844
  };
2667
3845
  //# sourceMappingURL=index.d.ts.map