@elevasis/ui 1.24.3 → 1.25.0
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.
- package/dist/charts/index.js +2 -2
- package/dist/{chunk-H3MU3WTM.js → chunk-3EVTCVKR.js} +2 -2
- package/dist/{chunk-ZDKC3V7C.js → chunk-7RS6VTAV.js} +56 -57
- package/dist/{chunk-TQBM3OEW.js → chunk-BS4J2LAW.js} +1 -1
- package/dist/{chunk-JR2C4XAN.js → chunk-CYXZHBP4.js} +202 -295
- package/dist/{chunk-OH74INP2.js → chunk-FEZZ3IDU.js} +434 -314
- package/dist/{chunk-IAZT3VO6.js → chunk-G25YWGUL.js} +4 -1
- package/dist/{chunk-BGTZFEKR.js → chunk-HYYI4ZFT.js} +6 -252
- package/dist/{chunk-CTF6FS2M.js → chunk-L3GVDMCA.js} +211 -1
- package/dist/{chunk-VMMNFRAO.js → chunk-QNABH7YG.js} +3 -3
- package/dist/{chunk-JTUX5FDC.js → chunk-R565P6XC.js} +691 -2
- package/dist/{chunk-WY5IJI37.js → chunk-RIL2CDFE.js} +2 -2
- package/dist/{chunk-TML32XBW.js → chunk-RMPXGBNI.js} +2 -2
- package/dist/{chunk-UG5565XQ.js → chunk-US4JUSI3.js} +3 -3
- package/dist/components/index.d.ts +3005 -192
- package/dist/components/index.js +1539 -24
- package/dist/features/auth/index.d.ts +108 -9
- package/dist/features/dashboard/index.js +7 -7
- package/dist/features/monitoring/index.js +8 -8
- package/dist/features/operations/index.d.ts +8 -2
- package/dist/features/operations/index.js +52 -55
- package/dist/features/settings/index.d.ts +108 -9
- package/dist/features/settings/index.js +27 -10
- package/dist/hooks/index.d.ts +3279 -185
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/published.d.ts +108 -9
- package/dist/hooks/published.js +3 -3
- package/dist/index.d.ts +3285 -187
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +108 -9
- package/dist/layout/index.d.ts +60 -3
- package/dist/layout/index.js +2 -2
- package/dist/profile/index.d.ts +108 -9
- package/dist/provider/index.d.ts +6 -2
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.d.ts +6 -2
- package/dist/supabase/index.d.ts +210 -18
- package/dist/theme/index.d.ts +6 -2
- package/dist/theme/index.js +3 -3
- package/dist/types/index.d.ts +108 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ interface ElevasisTokenOverrides {
|
|
|
111
111
|
background?: string;
|
|
112
112
|
surface?: string;
|
|
113
113
|
surfaceHover?: string;
|
|
114
|
+
/** Opaque surface for floating overlays (modals, menus, popovers) — guarantees readable contrast against decorative backgrounds. */
|
|
115
|
+
elevatedSurface?: string;
|
|
114
116
|
text?: string;
|
|
115
117
|
textDimmed?: string;
|
|
116
118
|
textSubtle?: string;
|
|
@@ -251,9 +253,11 @@ interface FrameworkThemeOverrides {
|
|
|
251
253
|
};
|
|
252
254
|
components?: Record<string, unknown>;
|
|
253
255
|
}
|
|
256
|
+
/** Tokens every preset must define. `elevatedSurface` is progressively adopted and stays optional. */
|
|
257
|
+
type PresetTokens = Required<Omit<ElevasisTokenOverrides, 'elevatedSurface'>> & Pick<ElevasisTokenOverrides, 'elevatedSurface'>;
|
|
254
258
|
interface ThemePreset {
|
|
255
|
-
light:
|
|
256
|
-
dark:
|
|
259
|
+
light: PresetTokens;
|
|
260
|
+
dark: PresetTokens;
|
|
257
261
|
/** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
|
|
258
262
|
framework?: FrameworkThemeOverrides;
|
|
259
263
|
/**
|
|
@@ -1534,10 +1538,10 @@ interface IterationContext {
|
|
|
1534
1538
|
knowledgeMap?: KnowledgeMap;
|
|
1535
1539
|
}
|
|
1536
1540
|
|
|
1537
|
-
type Json = string | number | boolean | null | {
|
|
1538
|
-
[key: string]: Json | undefined;
|
|
1539
|
-
} | Json[];
|
|
1540
|
-
type Database = {
|
|
1541
|
+
type Json$1 = string | number | boolean | null | {
|
|
1542
|
+
[key: string]: Json$1 | undefined;
|
|
1543
|
+
} | Json$1[];
|
|
1544
|
+
type Database$1 = {
|
|
1541
1545
|
__InternalSupabase: {
|
|
1542
1546
|
PostgrestVersion: "12.2.3 (519615d)";
|
|
1543
1547
|
};
|
|
@@ -1545,13 +1549,12 @@ type Database = {
|
|
|
1545
1549
|
Tables: {
|
|
1546
1550
|
acq_companies: {
|
|
1547
1551
|
Row: {
|
|
1548
|
-
attio_company_id: string | null;
|
|
1549
1552
|
batch_id: string | null;
|
|
1550
1553
|
category: string | null;
|
|
1551
1554
|
category_pain: string | null;
|
|
1552
1555
|
created_at: string;
|
|
1553
1556
|
domain: string | null;
|
|
1554
|
-
enrichment_data: Json | null;
|
|
1557
|
+
enrichment_data: Json$1 | null;
|
|
1555
1558
|
filter_reason: string | null;
|
|
1556
1559
|
founded_year: number | null;
|
|
1557
1560
|
id: string;
|
|
@@ -1561,7 +1564,7 @@ type Database = {
|
|
|
1561
1564
|
name: string;
|
|
1562
1565
|
num_employees: number | null;
|
|
1563
1566
|
organization_id: string;
|
|
1564
|
-
pipeline_status: Json;
|
|
1567
|
+
pipeline_status: Json$1;
|
|
1565
1568
|
segment: string | null;
|
|
1566
1569
|
source: string | null;
|
|
1567
1570
|
status: string;
|
|
@@ -1569,13 +1572,12 @@ type Database = {
|
|
|
1569
1572
|
website: string | null;
|
|
1570
1573
|
};
|
|
1571
1574
|
Insert: {
|
|
1572
|
-
attio_company_id?: string | null;
|
|
1573
1575
|
batch_id?: string | null;
|
|
1574
1576
|
category?: string | null;
|
|
1575
1577
|
category_pain?: string | null;
|
|
1576
1578
|
created_at?: string;
|
|
1577
1579
|
domain?: string | null;
|
|
1578
|
-
enrichment_data?: Json | null;
|
|
1580
|
+
enrichment_data?: Json$1 | null;
|
|
1579
1581
|
filter_reason?: string | null;
|
|
1580
1582
|
founded_year?: number | null;
|
|
1581
1583
|
id?: string;
|
|
@@ -1585,7 +1587,7 @@ type Database = {
|
|
|
1585
1587
|
name: string;
|
|
1586
1588
|
num_employees?: number | null;
|
|
1587
1589
|
organization_id: string;
|
|
1588
|
-
pipeline_status?: Json;
|
|
1590
|
+
pipeline_status?: Json$1;
|
|
1589
1591
|
segment?: string | null;
|
|
1590
1592
|
source?: string | null;
|
|
1591
1593
|
status?: string;
|
|
@@ -1593,13 +1595,12 @@ type Database = {
|
|
|
1593
1595
|
website?: string | null;
|
|
1594
1596
|
};
|
|
1595
1597
|
Update: {
|
|
1596
|
-
attio_company_id?: string | null;
|
|
1597
1598
|
batch_id?: string | null;
|
|
1598
1599
|
category?: string | null;
|
|
1599
1600
|
category_pain?: string | null;
|
|
1600
1601
|
created_at?: string;
|
|
1601
1602
|
domain?: string | null;
|
|
1602
|
-
enrichment_data?: Json | null;
|
|
1603
|
+
enrichment_data?: Json$1 | null;
|
|
1603
1604
|
filter_reason?: string | null;
|
|
1604
1605
|
founded_year?: number | null;
|
|
1605
1606
|
id?: string;
|
|
@@ -1609,7 +1610,7 @@ type Database = {
|
|
|
1609
1610
|
name?: string;
|
|
1610
1611
|
num_employees?: number | null;
|
|
1611
1612
|
organization_id?: string;
|
|
1612
|
-
pipeline_status?: Json;
|
|
1613
|
+
pipeline_status?: Json$1;
|
|
1613
1614
|
segment?: string | null;
|
|
1614
1615
|
source?: string | null;
|
|
1615
1616
|
status?: string;
|
|
@@ -1628,7 +1629,6 @@ type Database = {
|
|
|
1628
1629
|
};
|
|
1629
1630
|
acq_contacts: {
|
|
1630
1631
|
Row: {
|
|
1631
|
-
attio_person_id: string | null;
|
|
1632
1632
|
batch_id: string | null;
|
|
1633
1633
|
brochure_first_viewed_at: string | null;
|
|
1634
1634
|
brochure_view_count: number;
|
|
@@ -1636,7 +1636,7 @@ type Database = {
|
|
|
1636
1636
|
created_at: string;
|
|
1637
1637
|
email: string;
|
|
1638
1638
|
email_valid: string | null;
|
|
1639
|
-
enrichment_data: Json;
|
|
1639
|
+
enrichment_data: Json$1;
|
|
1640
1640
|
filter_reason: string | null;
|
|
1641
1641
|
first_name: string | null;
|
|
1642
1642
|
headline: string | null;
|
|
@@ -1646,7 +1646,7 @@ type Database = {
|
|
|
1646
1646
|
nurture: boolean;
|
|
1647
1647
|
opening_line: string | null;
|
|
1648
1648
|
organization_id: string;
|
|
1649
|
-
pipeline_status: Json;
|
|
1649
|
+
pipeline_status: Json$1;
|
|
1650
1650
|
source: string | null;
|
|
1651
1651
|
source_id: string | null;
|
|
1652
1652
|
status: string;
|
|
@@ -1654,7 +1654,6 @@ type Database = {
|
|
|
1654
1654
|
updated_at: string;
|
|
1655
1655
|
};
|
|
1656
1656
|
Insert: {
|
|
1657
|
-
attio_person_id?: string | null;
|
|
1658
1657
|
batch_id?: string | null;
|
|
1659
1658
|
brochure_first_viewed_at?: string | null;
|
|
1660
1659
|
brochure_view_count?: number;
|
|
@@ -1662,7 +1661,7 @@ type Database = {
|
|
|
1662
1661
|
created_at?: string;
|
|
1663
1662
|
email: string;
|
|
1664
1663
|
email_valid?: string | null;
|
|
1665
|
-
enrichment_data?: Json;
|
|
1664
|
+
enrichment_data?: Json$1;
|
|
1666
1665
|
filter_reason?: string | null;
|
|
1667
1666
|
first_name?: string | null;
|
|
1668
1667
|
headline?: string | null;
|
|
@@ -1672,7 +1671,7 @@ type Database = {
|
|
|
1672
1671
|
nurture?: boolean;
|
|
1673
1672
|
opening_line?: string | null;
|
|
1674
1673
|
organization_id: string;
|
|
1675
|
-
pipeline_status?: Json;
|
|
1674
|
+
pipeline_status?: Json$1;
|
|
1676
1675
|
source?: string | null;
|
|
1677
1676
|
source_id?: string | null;
|
|
1678
1677
|
status?: string;
|
|
@@ -1680,7 +1679,6 @@ type Database = {
|
|
|
1680
1679
|
updated_at?: string;
|
|
1681
1680
|
};
|
|
1682
1681
|
Update: {
|
|
1683
|
-
attio_person_id?: string | null;
|
|
1684
1682
|
batch_id?: string | null;
|
|
1685
1683
|
brochure_first_viewed_at?: string | null;
|
|
1686
1684
|
brochure_view_count?: number;
|
|
@@ -1688,7 +1686,7 @@ type Database = {
|
|
|
1688
1686
|
created_at?: string;
|
|
1689
1687
|
email?: string;
|
|
1690
1688
|
email_valid?: string | null;
|
|
1691
|
-
enrichment_data?: Json;
|
|
1689
|
+
enrichment_data?: Json$1;
|
|
1692
1690
|
filter_reason?: string | null;
|
|
1693
1691
|
first_name?: string | null;
|
|
1694
1692
|
headline?: string | null;
|
|
@@ -1698,7 +1696,7 @@ type Database = {
|
|
|
1698
1696
|
nurture?: boolean;
|
|
1699
1697
|
opening_line?: string | null;
|
|
1700
1698
|
organization_id?: string;
|
|
1701
|
-
pipeline_status?: Json;
|
|
1699
|
+
pipeline_status?: Json$1;
|
|
1702
1700
|
source?: string | null;
|
|
1703
1701
|
source_id?: string | null;
|
|
1704
1702
|
status?: string;
|
|
@@ -1766,17 +1764,17 @@ type Database = {
|
|
|
1766
1764
|
acq_content_distributions: {
|
|
1767
1765
|
Row: {
|
|
1768
1766
|
adapted_body: string | null;
|
|
1769
|
-
checklist: Json | null;
|
|
1767
|
+
checklist: Json$1 | null;
|
|
1770
1768
|
content_id: string;
|
|
1771
1769
|
created_at: string;
|
|
1772
1770
|
format: string;
|
|
1773
1771
|
id: string;
|
|
1774
|
-
media_urls: Json;
|
|
1775
|
-
metrics: Json;
|
|
1772
|
+
media_urls: Json$1;
|
|
1773
|
+
metrics: Json$1;
|
|
1776
1774
|
metrics_updated_at: string | null;
|
|
1777
1775
|
organization_id: string;
|
|
1778
1776
|
platform: string;
|
|
1779
|
-
platform_content: Json | null;
|
|
1777
|
+
platform_content: Json$1 | null;
|
|
1780
1778
|
platform_post_id: string | null;
|
|
1781
1779
|
platform_url: string | null;
|
|
1782
1780
|
published_at: string | null;
|
|
@@ -1785,17 +1783,17 @@ type Database = {
|
|
|
1785
1783
|
};
|
|
1786
1784
|
Insert: {
|
|
1787
1785
|
adapted_body?: string | null;
|
|
1788
|
-
checklist?: Json | null;
|
|
1786
|
+
checklist?: Json$1 | null;
|
|
1789
1787
|
content_id: string;
|
|
1790
1788
|
created_at?: string;
|
|
1791
1789
|
format: string;
|
|
1792
1790
|
id?: string;
|
|
1793
|
-
media_urls?: Json;
|
|
1794
|
-
metrics?: Json;
|
|
1791
|
+
media_urls?: Json$1;
|
|
1792
|
+
metrics?: Json$1;
|
|
1795
1793
|
metrics_updated_at?: string | null;
|
|
1796
1794
|
organization_id: string;
|
|
1797
1795
|
platform: string;
|
|
1798
|
-
platform_content?: Json | null;
|
|
1796
|
+
platform_content?: Json$1 | null;
|
|
1799
1797
|
platform_post_id?: string | null;
|
|
1800
1798
|
platform_url?: string | null;
|
|
1801
1799
|
published_at?: string | null;
|
|
@@ -1804,17 +1802,17 @@ type Database = {
|
|
|
1804
1802
|
};
|
|
1805
1803
|
Update: {
|
|
1806
1804
|
adapted_body?: string | null;
|
|
1807
|
-
checklist?: Json | null;
|
|
1805
|
+
checklist?: Json$1 | null;
|
|
1808
1806
|
content_id?: string;
|
|
1809
1807
|
created_at?: string;
|
|
1810
1808
|
format?: string;
|
|
1811
1809
|
id?: string;
|
|
1812
|
-
media_urls?: Json;
|
|
1813
|
-
metrics?: Json;
|
|
1810
|
+
media_urls?: Json$1;
|
|
1811
|
+
metrics?: Json$1;
|
|
1814
1812
|
metrics_updated_at?: string | null;
|
|
1815
1813
|
organization_id?: string;
|
|
1816
1814
|
platform?: string;
|
|
1817
|
-
platform_content?: Json | null;
|
|
1815
|
+
platform_content?: Json$1 | null;
|
|
1818
1816
|
platform_post_id?: string | null;
|
|
1819
1817
|
platform_url?: string | null;
|
|
1820
1818
|
published_at?: string | null;
|
|
@@ -1838,17 +1836,124 @@ type Database = {
|
|
|
1838
1836
|
}
|
|
1839
1837
|
];
|
|
1840
1838
|
};
|
|
1839
|
+
acq_deal_notes: {
|
|
1840
|
+
Row: {
|
|
1841
|
+
author_user_id: string | null;
|
|
1842
|
+
body: string;
|
|
1843
|
+
created_at: string;
|
|
1844
|
+
deal_id: string;
|
|
1845
|
+
id: string;
|
|
1846
|
+
organization_id: string;
|
|
1847
|
+
updated_at: string;
|
|
1848
|
+
};
|
|
1849
|
+
Insert: {
|
|
1850
|
+
author_user_id?: string | null;
|
|
1851
|
+
body: string;
|
|
1852
|
+
created_at?: string;
|
|
1853
|
+
deal_id: string;
|
|
1854
|
+
id?: string;
|
|
1855
|
+
organization_id: string;
|
|
1856
|
+
updated_at?: string;
|
|
1857
|
+
};
|
|
1858
|
+
Update: {
|
|
1859
|
+
author_user_id?: string | null;
|
|
1860
|
+
body?: string;
|
|
1861
|
+
created_at?: string;
|
|
1862
|
+
deal_id?: string;
|
|
1863
|
+
id?: string;
|
|
1864
|
+
organization_id?: string;
|
|
1865
|
+
updated_at?: string;
|
|
1866
|
+
};
|
|
1867
|
+
Relationships: [
|
|
1868
|
+
{
|
|
1869
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
1870
|
+
columns: ["deal_id"];
|
|
1871
|
+
isOneToOne: false;
|
|
1872
|
+
referencedRelation: "acq_deals";
|
|
1873
|
+
referencedColumns: ["id"];
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey";
|
|
1877
|
+
columns: ["organization_id"];
|
|
1878
|
+
isOneToOne: false;
|
|
1879
|
+
referencedRelation: "organizations";
|
|
1880
|
+
referencedColumns: ["id"];
|
|
1881
|
+
}
|
|
1882
|
+
];
|
|
1883
|
+
};
|
|
1884
|
+
acq_deal_tasks: {
|
|
1885
|
+
Row: {
|
|
1886
|
+
assignee_user_id: string | null;
|
|
1887
|
+
completed_at: string | null;
|
|
1888
|
+
completed_by_user_id: string | null;
|
|
1889
|
+
created_at: string;
|
|
1890
|
+
created_by_user_id: string | null;
|
|
1891
|
+
deal_id: string;
|
|
1892
|
+
description: string | null;
|
|
1893
|
+
due_at: string | null;
|
|
1894
|
+
id: string;
|
|
1895
|
+
kind: string;
|
|
1896
|
+
organization_id: string;
|
|
1897
|
+
title: string;
|
|
1898
|
+
updated_at: string;
|
|
1899
|
+
};
|
|
1900
|
+
Insert: {
|
|
1901
|
+
assignee_user_id?: string | null;
|
|
1902
|
+
completed_at?: string | null;
|
|
1903
|
+
completed_by_user_id?: string | null;
|
|
1904
|
+
created_at?: string;
|
|
1905
|
+
created_by_user_id?: string | null;
|
|
1906
|
+
deal_id: string;
|
|
1907
|
+
description?: string | null;
|
|
1908
|
+
due_at?: string | null;
|
|
1909
|
+
id?: string;
|
|
1910
|
+
kind?: string;
|
|
1911
|
+
organization_id: string;
|
|
1912
|
+
title: string;
|
|
1913
|
+
updated_at?: string;
|
|
1914
|
+
};
|
|
1915
|
+
Update: {
|
|
1916
|
+
assignee_user_id?: string | null;
|
|
1917
|
+
completed_at?: string | null;
|
|
1918
|
+
completed_by_user_id?: string | null;
|
|
1919
|
+
created_at?: string;
|
|
1920
|
+
created_by_user_id?: string | null;
|
|
1921
|
+
deal_id?: string;
|
|
1922
|
+
description?: string | null;
|
|
1923
|
+
due_at?: string | null;
|
|
1924
|
+
id?: string;
|
|
1925
|
+
kind?: string;
|
|
1926
|
+
organization_id?: string;
|
|
1927
|
+
title?: string;
|
|
1928
|
+
updated_at?: string;
|
|
1929
|
+
};
|
|
1930
|
+
Relationships: [
|
|
1931
|
+
{
|
|
1932
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
1933
|
+
columns: ["deal_id"];
|
|
1934
|
+
isOneToOne: false;
|
|
1935
|
+
referencedRelation: "acq_deals";
|
|
1936
|
+
referencedColumns: ["id"];
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey";
|
|
1940
|
+
columns: ["organization_id"];
|
|
1941
|
+
isOneToOne: false;
|
|
1942
|
+
referencedRelation: "organizations";
|
|
1943
|
+
referencedColumns: ["id"];
|
|
1944
|
+
}
|
|
1945
|
+
];
|
|
1946
|
+
};
|
|
1841
1947
|
acq_deals: {
|
|
1842
1948
|
Row: {
|
|
1843
|
-
activity_log: Json;
|
|
1844
|
-
attio_deal_id: string;
|
|
1949
|
+
activity_log: Json$1;
|
|
1845
1950
|
cached_stage: string | null;
|
|
1846
1951
|
closed_lost_at: string | null;
|
|
1847
1952
|
closed_lost_reason: string | null;
|
|
1848
1953
|
contact_email: string;
|
|
1849
1954
|
contact_id: string | null;
|
|
1850
1955
|
created_at: string;
|
|
1851
|
-
discovery_data: Json | null;
|
|
1956
|
+
discovery_data: Json$1 | null;
|
|
1852
1957
|
discovery_submitted_at: string | null;
|
|
1853
1958
|
discovery_submitted_by: string | null;
|
|
1854
1959
|
id: string;
|
|
@@ -1857,7 +1962,7 @@ type Database = {
|
|
|
1857
1962
|
organization_id: string;
|
|
1858
1963
|
payment_link_sent_at: string | null;
|
|
1859
1964
|
payment_received_at: string | null;
|
|
1860
|
-
proposal_data: Json | null;
|
|
1965
|
+
proposal_data: Json$1 | null;
|
|
1861
1966
|
proposal_generated_at: string | null;
|
|
1862
1967
|
proposal_pdf_url: string | null;
|
|
1863
1968
|
proposal_reviewed_at: string | null;
|
|
@@ -1875,15 +1980,14 @@ type Database = {
|
|
|
1875
1980
|
updated_at: string;
|
|
1876
1981
|
};
|
|
1877
1982
|
Insert: {
|
|
1878
|
-
activity_log?: Json;
|
|
1879
|
-
attio_deal_id: string;
|
|
1983
|
+
activity_log?: Json$1;
|
|
1880
1984
|
cached_stage?: string | null;
|
|
1881
1985
|
closed_lost_at?: string | null;
|
|
1882
1986
|
closed_lost_reason?: string | null;
|
|
1883
1987
|
contact_email: string;
|
|
1884
1988
|
contact_id?: string | null;
|
|
1885
1989
|
created_at?: string;
|
|
1886
|
-
discovery_data?: Json | null;
|
|
1990
|
+
discovery_data?: Json$1 | null;
|
|
1887
1991
|
discovery_submitted_at?: string | null;
|
|
1888
1992
|
discovery_submitted_by?: string | null;
|
|
1889
1993
|
id?: string;
|
|
@@ -1892,7 +1996,7 @@ type Database = {
|
|
|
1892
1996
|
organization_id: string;
|
|
1893
1997
|
payment_link_sent_at?: string | null;
|
|
1894
1998
|
payment_received_at?: string | null;
|
|
1895
|
-
proposal_data?: Json | null;
|
|
1999
|
+
proposal_data?: Json$1 | null;
|
|
1896
2000
|
proposal_generated_at?: string | null;
|
|
1897
2001
|
proposal_pdf_url?: string | null;
|
|
1898
2002
|
proposal_reviewed_at?: string | null;
|
|
@@ -1910,15 +2014,14 @@ type Database = {
|
|
|
1910
2014
|
updated_at?: string;
|
|
1911
2015
|
};
|
|
1912
2016
|
Update: {
|
|
1913
|
-
activity_log?: Json;
|
|
1914
|
-
attio_deal_id?: string;
|
|
2017
|
+
activity_log?: Json$1;
|
|
1915
2018
|
cached_stage?: string | null;
|
|
1916
2019
|
closed_lost_at?: string | null;
|
|
1917
2020
|
closed_lost_reason?: string | null;
|
|
1918
2021
|
contact_email?: string;
|
|
1919
2022
|
contact_id?: string | null;
|
|
1920
2023
|
created_at?: string;
|
|
1921
|
-
discovery_data?: Json | null;
|
|
2024
|
+
discovery_data?: Json$1 | null;
|
|
1922
2025
|
discovery_submitted_at?: string | null;
|
|
1923
2026
|
discovery_submitted_by?: string | null;
|
|
1924
2027
|
id?: string;
|
|
@@ -1927,7 +2030,7 @@ type Database = {
|
|
|
1927
2030
|
organization_id?: string;
|
|
1928
2031
|
payment_link_sent_at?: string | null;
|
|
1929
2032
|
payment_received_at?: string | null;
|
|
1930
|
-
proposal_data?: Json | null;
|
|
2033
|
+
proposal_data?: Json$1 | null;
|
|
1931
2034
|
proposal_generated_at?: string | null;
|
|
1932
2035
|
proposal_pdf_url?: string | null;
|
|
1933
2036
|
proposal_reviewed_at?: string | null;
|
|
@@ -2016,7 +2119,7 @@ type Database = {
|
|
|
2016
2119
|
id: string;
|
|
2017
2120
|
instantly_campaign_id: string | null;
|
|
2018
2121
|
launched_at: string | null;
|
|
2019
|
-
metadata: Json;
|
|
2122
|
+
metadata: Json$1;
|
|
2020
2123
|
name: string;
|
|
2021
2124
|
organization_id: string;
|
|
2022
2125
|
status: string;
|
|
@@ -2030,7 +2133,7 @@ type Database = {
|
|
|
2030
2133
|
id?: string;
|
|
2031
2134
|
instantly_campaign_id?: string | null;
|
|
2032
2135
|
launched_at?: string | null;
|
|
2033
|
-
metadata?: Json;
|
|
2136
|
+
metadata?: Json$1;
|
|
2034
2137
|
name: string;
|
|
2035
2138
|
organization_id: string;
|
|
2036
2139
|
status?: string;
|
|
@@ -2044,7 +2147,7 @@ type Database = {
|
|
|
2044
2147
|
id?: string;
|
|
2045
2148
|
instantly_campaign_id?: string | null;
|
|
2046
2149
|
launched_at?: string | null;
|
|
2047
|
-
metadata?: Json;
|
|
2150
|
+
metadata?: Json$1;
|
|
2048
2151
|
name?: string;
|
|
2049
2152
|
organization_id?: string;
|
|
2050
2153
|
status?: string;
|
|
@@ -2062,7 +2165,7 @@ type Database = {
|
|
|
2062
2165
|
};
|
|
2063
2166
|
acq_seo_metrics: {
|
|
2064
2167
|
Row: {
|
|
2065
|
-
ai_citations: Json | null;
|
|
2168
|
+
ai_citations: Json$1 | null;
|
|
2066
2169
|
avg_position: number | null;
|
|
2067
2170
|
clicks: number | null;
|
|
2068
2171
|
created_at: string;
|
|
@@ -2085,7 +2188,7 @@ type Database = {
|
|
|
2085
2188
|
word_count: number | null;
|
|
2086
2189
|
};
|
|
2087
2190
|
Insert: {
|
|
2088
|
-
ai_citations?: Json | null;
|
|
2191
|
+
ai_citations?: Json$1 | null;
|
|
2089
2192
|
avg_position?: number | null;
|
|
2090
2193
|
clicks?: number | null;
|
|
2091
2194
|
created_at?: string;
|
|
@@ -2108,7 +2211,7 @@ type Database = {
|
|
|
2108
2211
|
word_count?: number | null;
|
|
2109
2212
|
};
|
|
2110
2213
|
Update: {
|
|
2111
|
-
ai_citations?: Json | null;
|
|
2214
|
+
ai_citations?: Json$1 | null;
|
|
2112
2215
|
avg_position?: number | null;
|
|
2113
2216
|
clicks?: number | null;
|
|
2114
2217
|
created_at?: string;
|
|
@@ -2150,19 +2253,19 @@ type Database = {
|
|
|
2150
2253
|
acq_seo_pages: {
|
|
2151
2254
|
Row: {
|
|
2152
2255
|
city: string | null;
|
|
2153
|
-
content: Json | null;
|
|
2256
|
+
content: Json$1 | null;
|
|
2154
2257
|
created_at: string;
|
|
2155
|
-
faq_items: Json | null;
|
|
2258
|
+
faq_items: Json$1 | null;
|
|
2156
2259
|
hero_image_url: string | null;
|
|
2157
2260
|
id: string;
|
|
2158
|
-
internal_links: Json | null;
|
|
2159
|
-
local_data: Json | null;
|
|
2261
|
+
internal_links: Json$1 | null;
|
|
2262
|
+
local_data: Json$1 | null;
|
|
2160
2263
|
meta_description: string | null;
|
|
2161
2264
|
organization_id: string;
|
|
2162
2265
|
page_type: string;
|
|
2163
2266
|
published_at: string | null;
|
|
2164
2267
|
refreshed_at: string | null;
|
|
2165
|
-
schema_markup: Json | null;
|
|
2268
|
+
schema_markup: Json$1 | null;
|
|
2166
2269
|
slug: string;
|
|
2167
2270
|
state: string | null;
|
|
2168
2271
|
status: string;
|
|
@@ -2173,19 +2276,19 @@ type Database = {
|
|
|
2173
2276
|
};
|
|
2174
2277
|
Insert: {
|
|
2175
2278
|
city?: string | null;
|
|
2176
|
-
content?: Json | null;
|
|
2279
|
+
content?: Json$1 | null;
|
|
2177
2280
|
created_at?: string;
|
|
2178
|
-
faq_items?: Json | null;
|
|
2281
|
+
faq_items?: Json$1 | null;
|
|
2179
2282
|
hero_image_url?: string | null;
|
|
2180
2283
|
id?: string;
|
|
2181
|
-
internal_links?: Json | null;
|
|
2182
|
-
local_data?: Json | null;
|
|
2284
|
+
internal_links?: Json$1 | null;
|
|
2285
|
+
local_data?: Json$1 | null;
|
|
2183
2286
|
meta_description?: string | null;
|
|
2184
2287
|
organization_id: string;
|
|
2185
2288
|
page_type: string;
|
|
2186
2289
|
published_at?: string | null;
|
|
2187
2290
|
refreshed_at?: string | null;
|
|
2188
|
-
schema_markup?: Json | null;
|
|
2291
|
+
schema_markup?: Json$1 | null;
|
|
2189
2292
|
slug: string;
|
|
2190
2293
|
state?: string | null;
|
|
2191
2294
|
status?: string;
|
|
@@ -2196,19 +2299,19 @@ type Database = {
|
|
|
2196
2299
|
};
|
|
2197
2300
|
Update: {
|
|
2198
2301
|
city?: string | null;
|
|
2199
|
-
content?: Json | null;
|
|
2302
|
+
content?: Json$1 | null;
|
|
2200
2303
|
created_at?: string;
|
|
2201
|
-
faq_items?: Json | null;
|
|
2304
|
+
faq_items?: Json$1 | null;
|
|
2202
2305
|
hero_image_url?: string | null;
|
|
2203
2306
|
id?: string;
|
|
2204
|
-
internal_links?: Json | null;
|
|
2205
|
-
local_data?: Json | null;
|
|
2307
|
+
internal_links?: Json$1 | null;
|
|
2308
|
+
local_data?: Json$1 | null;
|
|
2206
2309
|
meta_description?: string | null;
|
|
2207
2310
|
organization_id?: string;
|
|
2208
2311
|
page_type?: string;
|
|
2209
2312
|
published_at?: string | null;
|
|
2210
2313
|
refreshed_at?: string | null;
|
|
2211
|
-
schema_markup?: Json | null;
|
|
2314
|
+
schema_markup?: Json$1 | null;
|
|
2212
2315
|
slug?: string;
|
|
2213
2316
|
state?: string | null;
|
|
2214
2317
|
status?: string;
|
|
@@ -2242,7 +2345,7 @@ type Database = {
|
|
|
2242
2345
|
initial_draft: string | null;
|
|
2243
2346
|
matched_keywords: string[];
|
|
2244
2347
|
matched_query: string | null;
|
|
2245
|
-
metadata: Json;
|
|
2348
|
+
metadata: Json$1;
|
|
2246
2349
|
organization_id: string;
|
|
2247
2350
|
platform: string;
|
|
2248
2351
|
platform_post_id: string;
|
|
@@ -2272,7 +2375,7 @@ type Database = {
|
|
|
2272
2375
|
initial_draft?: string | null;
|
|
2273
2376
|
matched_keywords?: string[];
|
|
2274
2377
|
matched_query?: string | null;
|
|
2275
|
-
metadata?: Json;
|
|
2378
|
+
metadata?: Json$1;
|
|
2276
2379
|
organization_id: string;
|
|
2277
2380
|
platform: string;
|
|
2278
2381
|
platform_post_id: string;
|
|
@@ -2302,7 +2405,7 @@ type Database = {
|
|
|
2302
2405
|
initial_draft?: string | null;
|
|
2303
2406
|
matched_keywords?: string[];
|
|
2304
2407
|
matched_query?: string | null;
|
|
2305
|
-
metadata?: Json;
|
|
2408
|
+
metadata?: Json$1;
|
|
2306
2409
|
organization_id?: string;
|
|
2307
2410
|
platform?: string;
|
|
2308
2411
|
platform_post_id?: string;
|
|
@@ -2339,7 +2442,7 @@ type Database = {
|
|
|
2339
2442
|
entity_name: string | null;
|
|
2340
2443
|
entity_type: string;
|
|
2341
2444
|
id: string;
|
|
2342
|
-
metadata: Json | null;
|
|
2445
|
+
metadata: Json$1 | null;
|
|
2343
2446
|
occurred_at: string;
|
|
2344
2447
|
organization_id: string;
|
|
2345
2448
|
status: string;
|
|
@@ -2355,7 +2458,7 @@ type Database = {
|
|
|
2355
2458
|
entity_name?: string | null;
|
|
2356
2459
|
entity_type: string;
|
|
2357
2460
|
id?: string;
|
|
2358
|
-
metadata?: Json | null;
|
|
2461
|
+
metadata?: Json$1 | null;
|
|
2359
2462
|
occurred_at?: string;
|
|
2360
2463
|
organization_id: string;
|
|
2361
2464
|
status: string;
|
|
@@ -2371,7 +2474,7 @@ type Database = {
|
|
|
2371
2474
|
entity_name?: string | null;
|
|
2372
2475
|
entity_type?: string;
|
|
2373
2476
|
id?: string;
|
|
2374
|
-
metadata?: Json | null;
|
|
2477
|
+
metadata?: Json$1 | null;
|
|
2375
2478
|
occurred_at?: string;
|
|
2376
2479
|
organization_id?: string;
|
|
2377
2480
|
status?: string;
|
|
@@ -2466,51 +2569,51 @@ type Database = {
|
|
|
2466
2569
|
calibration_runs: {
|
|
2467
2570
|
Row: {
|
|
2468
2571
|
completed_at: string | null;
|
|
2469
|
-
config_variants: Json;
|
|
2572
|
+
config_variants: Json$1;
|
|
2470
2573
|
created_at: string | null;
|
|
2471
2574
|
description: string | null;
|
|
2472
2575
|
execution_mode: string;
|
|
2473
2576
|
grader_model: string | null;
|
|
2474
|
-
grading_rubric: Json | null;
|
|
2577
|
+
grading_rubric: Json$1 | null;
|
|
2475
2578
|
id: string;
|
|
2476
2579
|
name: string;
|
|
2477
2580
|
organization_id: string;
|
|
2478
2581
|
project_id: string;
|
|
2479
|
-
results: Json;
|
|
2582
|
+
results: Json$1;
|
|
2480
2583
|
status: string;
|
|
2481
|
-
test_inputs: Json;
|
|
2584
|
+
test_inputs: Json$1;
|
|
2482
2585
|
};
|
|
2483
2586
|
Insert: {
|
|
2484
2587
|
completed_at?: string | null;
|
|
2485
|
-
config_variants: Json;
|
|
2588
|
+
config_variants: Json$1;
|
|
2486
2589
|
created_at?: string | null;
|
|
2487
2590
|
description?: string | null;
|
|
2488
2591
|
execution_mode?: string;
|
|
2489
2592
|
grader_model?: string | null;
|
|
2490
|
-
grading_rubric?: Json | null;
|
|
2593
|
+
grading_rubric?: Json$1 | null;
|
|
2491
2594
|
id?: string;
|
|
2492
2595
|
name: string;
|
|
2493
2596
|
organization_id: string;
|
|
2494
2597
|
project_id: string;
|
|
2495
|
-
results?: Json;
|
|
2598
|
+
results?: Json$1;
|
|
2496
2599
|
status?: string;
|
|
2497
|
-
test_inputs: Json;
|
|
2600
|
+
test_inputs: Json$1;
|
|
2498
2601
|
};
|
|
2499
2602
|
Update: {
|
|
2500
2603
|
completed_at?: string | null;
|
|
2501
|
-
config_variants?: Json;
|
|
2604
|
+
config_variants?: Json$1;
|
|
2502
2605
|
created_at?: string | null;
|
|
2503
2606
|
description?: string | null;
|
|
2504
2607
|
execution_mode?: string;
|
|
2505
2608
|
grader_model?: string | null;
|
|
2506
|
-
grading_rubric?: Json | null;
|
|
2609
|
+
grading_rubric?: Json$1 | null;
|
|
2507
2610
|
id?: string;
|
|
2508
2611
|
name?: string;
|
|
2509
2612
|
organization_id?: string;
|
|
2510
2613
|
project_id?: string;
|
|
2511
|
-
results?: Json;
|
|
2614
|
+
results?: Json$1;
|
|
2512
2615
|
status?: string;
|
|
2513
|
-
test_inputs?: Json;
|
|
2616
|
+
test_inputs?: Json$1;
|
|
2514
2617
|
};
|
|
2515
2618
|
Relationships: [
|
|
2516
2619
|
{
|
|
@@ -2531,18 +2634,18 @@ type Database = {
|
|
|
2531
2634
|
};
|
|
2532
2635
|
command_queue: {
|
|
2533
2636
|
Row: {
|
|
2534
|
-
action_payload: Json | null;
|
|
2535
|
-
actions: Json;
|
|
2637
|
+
action_payload: Json$1 | null;
|
|
2638
|
+
actions: Json$1;
|
|
2536
2639
|
completed_at: string | null;
|
|
2537
2640
|
completed_by: string | null;
|
|
2538
|
-
context: Json;
|
|
2641
|
+
context: Json$1;
|
|
2539
2642
|
created_at: string;
|
|
2540
2643
|
description: string | null;
|
|
2541
2644
|
expires_at: string | null;
|
|
2542
2645
|
human_checkpoint: string | null;
|
|
2543
2646
|
id: string;
|
|
2544
2647
|
idempotency_key: string | null;
|
|
2545
|
-
metadata: Json | null;
|
|
2648
|
+
metadata: Json$1 | null;
|
|
2546
2649
|
organization_id: string;
|
|
2547
2650
|
origin_execution_id: string;
|
|
2548
2651
|
origin_resource_id: string;
|
|
@@ -2555,18 +2658,18 @@ type Database = {
|
|
|
2555
2658
|
target_resource_type: string | null;
|
|
2556
2659
|
};
|
|
2557
2660
|
Insert: {
|
|
2558
|
-
action_payload?: Json | null;
|
|
2559
|
-
actions: Json;
|
|
2661
|
+
action_payload?: Json$1 | null;
|
|
2662
|
+
actions: Json$1;
|
|
2560
2663
|
completed_at?: string | null;
|
|
2561
2664
|
completed_by?: string | null;
|
|
2562
|
-
context: Json;
|
|
2665
|
+
context: Json$1;
|
|
2563
2666
|
created_at?: string;
|
|
2564
2667
|
description?: string | null;
|
|
2565
2668
|
expires_at?: string | null;
|
|
2566
2669
|
human_checkpoint?: string | null;
|
|
2567
2670
|
id?: string;
|
|
2568
2671
|
idempotency_key?: string | null;
|
|
2569
|
-
metadata?: Json | null;
|
|
2672
|
+
metadata?: Json$1 | null;
|
|
2570
2673
|
organization_id: string;
|
|
2571
2674
|
origin_execution_id: string;
|
|
2572
2675
|
origin_resource_id: string;
|
|
@@ -2579,18 +2682,18 @@ type Database = {
|
|
|
2579
2682
|
target_resource_type?: string | null;
|
|
2580
2683
|
};
|
|
2581
2684
|
Update: {
|
|
2582
|
-
action_payload?: Json | null;
|
|
2583
|
-
actions?: Json;
|
|
2685
|
+
action_payload?: Json$1 | null;
|
|
2686
|
+
actions?: Json$1;
|
|
2584
2687
|
completed_at?: string | null;
|
|
2585
2688
|
completed_by?: string | null;
|
|
2586
|
-
context?: Json;
|
|
2689
|
+
context?: Json$1;
|
|
2587
2690
|
created_at?: string;
|
|
2588
2691
|
description?: string | null;
|
|
2589
2692
|
expires_at?: string | null;
|
|
2590
2693
|
human_checkpoint?: string | null;
|
|
2591
2694
|
id?: string;
|
|
2592
2695
|
idempotency_key?: string | null;
|
|
2593
|
-
metadata?: Json | null;
|
|
2696
|
+
metadata?: Json$1 | null;
|
|
2594
2697
|
organization_id?: string;
|
|
2595
2698
|
origin_execution_id?: string;
|
|
2596
2699
|
origin_resource_id?: string;
|
|
@@ -2679,10 +2782,10 @@ type Database = {
|
|
|
2679
2782
|
};
|
|
2680
2783
|
deployments: {
|
|
2681
2784
|
Row: {
|
|
2682
|
-
compiled_docs: Json | null;
|
|
2785
|
+
compiled_docs: Json$1 | null;
|
|
2683
2786
|
created_at: string;
|
|
2684
2787
|
deployment_version: string | null;
|
|
2685
|
-
documentation: Json | null;
|
|
2788
|
+
documentation: Json$1 | null;
|
|
2686
2789
|
error_message: string | null;
|
|
2687
2790
|
id: string;
|
|
2688
2791
|
organization_id: string;
|
|
@@ -2694,10 +2797,10 @@ type Database = {
|
|
|
2694
2797
|
updated_at: string;
|
|
2695
2798
|
};
|
|
2696
2799
|
Insert: {
|
|
2697
|
-
compiled_docs?: Json | null;
|
|
2800
|
+
compiled_docs?: Json$1 | null;
|
|
2698
2801
|
created_at?: string;
|
|
2699
2802
|
deployment_version?: string | null;
|
|
2700
|
-
documentation?: Json | null;
|
|
2803
|
+
documentation?: Json$1 | null;
|
|
2701
2804
|
error_message?: string | null;
|
|
2702
2805
|
id?: string;
|
|
2703
2806
|
organization_id: string;
|
|
@@ -2709,10 +2812,10 @@ type Database = {
|
|
|
2709
2812
|
updated_at?: string;
|
|
2710
2813
|
};
|
|
2711
2814
|
Update: {
|
|
2712
|
-
compiled_docs?: Json | null;
|
|
2815
|
+
compiled_docs?: Json$1 | null;
|
|
2713
2816
|
created_at?: string;
|
|
2714
2817
|
deployment_version?: string | null;
|
|
2715
|
-
documentation?: Json | null;
|
|
2818
|
+
documentation?: Json$1 | null;
|
|
2716
2819
|
error_message?: string | null;
|
|
2717
2820
|
id?: string;
|
|
2718
2821
|
organization_id?: string;
|
|
@@ -2743,7 +2846,7 @@ type Database = {
|
|
|
2743
2846
|
error_type: string;
|
|
2744
2847
|
execution_id: string;
|
|
2745
2848
|
id: string;
|
|
2746
|
-
metadata: Json | null;
|
|
2849
|
+
metadata: Json$1 | null;
|
|
2747
2850
|
occurred_at: string;
|
|
2748
2851
|
organization_id: string;
|
|
2749
2852
|
resolved: boolean;
|
|
@@ -2759,7 +2862,7 @@ type Database = {
|
|
|
2759
2862
|
error_type: string;
|
|
2760
2863
|
execution_id: string;
|
|
2761
2864
|
id?: string;
|
|
2762
|
-
metadata?: Json | null;
|
|
2865
|
+
metadata?: Json$1 | null;
|
|
2763
2866
|
occurred_at?: string;
|
|
2764
2867
|
organization_id: string;
|
|
2765
2868
|
resolved?: boolean;
|
|
@@ -2775,7 +2878,7 @@ type Database = {
|
|
|
2775
2878
|
error_type?: string;
|
|
2776
2879
|
execution_id?: string;
|
|
2777
2880
|
id?: string;
|
|
2778
|
-
metadata?: Json | null;
|
|
2881
|
+
metadata?: Json$1 | null;
|
|
2779
2882
|
occurred_at?: string;
|
|
2780
2883
|
organization_id?: string;
|
|
2781
2884
|
resolved?: boolean;
|
|
@@ -2813,12 +2916,12 @@ type Database = {
|
|
|
2813
2916
|
created_at: string | null;
|
|
2814
2917
|
error: string | null;
|
|
2815
2918
|
execution_id: string;
|
|
2816
|
-
input: Json | null;
|
|
2919
|
+
input: Json$1 | null;
|
|
2817
2920
|
last_heartbeat_at: string | null;
|
|
2818
|
-
logs: Json | null;
|
|
2921
|
+
logs: Json$1 | null;
|
|
2819
2922
|
organization_id: string;
|
|
2820
2923
|
origin_execution_id: string | null;
|
|
2821
|
-
output: Json | null;
|
|
2924
|
+
output: Json$1 | null;
|
|
2822
2925
|
resource_id: string;
|
|
2823
2926
|
resource_status: string;
|
|
2824
2927
|
resource_type: string;
|
|
@@ -2838,12 +2941,12 @@ type Database = {
|
|
|
2838
2941
|
created_at?: string | null;
|
|
2839
2942
|
error?: string | null;
|
|
2840
2943
|
execution_id?: string;
|
|
2841
|
-
input?: Json | null;
|
|
2944
|
+
input?: Json$1 | null;
|
|
2842
2945
|
last_heartbeat_at?: string | null;
|
|
2843
|
-
logs?: Json | null;
|
|
2946
|
+
logs?: Json$1 | null;
|
|
2844
2947
|
organization_id: string;
|
|
2845
2948
|
origin_execution_id?: string | null;
|
|
2846
|
-
output?: Json | null;
|
|
2949
|
+
output?: Json$1 | null;
|
|
2847
2950
|
resource_id: string;
|
|
2848
2951
|
resource_status?: string;
|
|
2849
2952
|
resource_type?: string;
|
|
@@ -2863,12 +2966,12 @@ type Database = {
|
|
|
2863
2966
|
created_at?: string | null;
|
|
2864
2967
|
error?: string | null;
|
|
2865
2968
|
execution_id?: string;
|
|
2866
|
-
input?: Json | null;
|
|
2969
|
+
input?: Json$1 | null;
|
|
2867
2970
|
last_heartbeat_at?: string | null;
|
|
2868
|
-
logs?: Json | null;
|
|
2971
|
+
logs?: Json$1 | null;
|
|
2869
2972
|
organization_id?: string;
|
|
2870
2973
|
origin_execution_id?: string | null;
|
|
2871
|
-
output?: Json | null;
|
|
2974
|
+
output?: Json$1 | null;
|
|
2872
2975
|
resource_id?: string;
|
|
2873
2976
|
resource_status?: string;
|
|
2874
2977
|
resource_type?: string;
|
|
@@ -2916,7 +3019,7 @@ type Database = {
|
|
|
2916
3019
|
execution_metrics: {
|
|
2917
3020
|
Row: {
|
|
2918
3021
|
ai_call_count: number;
|
|
2919
|
-
ai_calls: Json | null;
|
|
3022
|
+
ai_calls: Json$1 | null;
|
|
2920
3023
|
automation_savings_usd: number | null;
|
|
2921
3024
|
created_at: string | null;
|
|
2922
3025
|
duration_ms: number | null;
|
|
@@ -2929,7 +3032,7 @@ type Database = {
|
|
|
2929
3032
|
};
|
|
2930
3033
|
Insert: {
|
|
2931
3034
|
ai_call_count: number;
|
|
2932
|
-
ai_calls?: Json | null;
|
|
3035
|
+
ai_calls?: Json$1 | null;
|
|
2933
3036
|
automation_savings_usd?: number | null;
|
|
2934
3037
|
created_at?: string | null;
|
|
2935
3038
|
duration_ms?: number | null;
|
|
@@ -2942,7 +3045,7 @@ type Database = {
|
|
|
2942
3045
|
};
|
|
2943
3046
|
Update: {
|
|
2944
3047
|
ai_call_count?: number;
|
|
2945
|
-
ai_calls?: Json | null;
|
|
3048
|
+
ai_calls?: Json$1 | null;
|
|
2946
3049
|
automation_savings_usd?: number | null;
|
|
2947
3050
|
created_at?: string | null;
|
|
2948
3051
|
duration_ms?: number | null;
|
|
@@ -3092,7 +3195,7 @@ type Database = {
|
|
|
3092
3195
|
};
|
|
3093
3196
|
org_memberships: {
|
|
3094
3197
|
Row: {
|
|
3095
|
-
config: Json;
|
|
3198
|
+
config: Json$1;
|
|
3096
3199
|
created_at: string | null;
|
|
3097
3200
|
id: string;
|
|
3098
3201
|
membership_status: string | null;
|
|
@@ -3103,7 +3206,7 @@ type Database = {
|
|
|
3103
3206
|
workos_membership_id: string | null;
|
|
3104
3207
|
};
|
|
3105
3208
|
Insert: {
|
|
3106
|
-
config?: Json;
|
|
3209
|
+
config?: Json$1;
|
|
3107
3210
|
created_at?: string | null;
|
|
3108
3211
|
id?: string;
|
|
3109
3212
|
membership_status?: string | null;
|
|
@@ -3114,7 +3217,7 @@ type Database = {
|
|
|
3114
3217
|
workos_membership_id?: string | null;
|
|
3115
3218
|
};
|
|
3116
3219
|
Update: {
|
|
3117
|
-
config?: Json;
|
|
3220
|
+
config?: Json$1;
|
|
3118
3221
|
created_at?: string | null;
|
|
3119
3222
|
id?: string;
|
|
3120
3223
|
membership_status?: string | null;
|
|
@@ -3143,33 +3246,33 @@ type Database = {
|
|
|
3143
3246
|
};
|
|
3144
3247
|
organizations: {
|
|
3145
3248
|
Row: {
|
|
3146
|
-
config: Json;
|
|
3249
|
+
config: Json$1;
|
|
3147
3250
|
created_at: string;
|
|
3148
3251
|
id: string;
|
|
3149
3252
|
is_test: boolean;
|
|
3150
|
-
metadata: Json;
|
|
3253
|
+
metadata: Json$1;
|
|
3151
3254
|
name: string;
|
|
3152
3255
|
status: string;
|
|
3153
3256
|
updated_at: string;
|
|
3154
3257
|
workos_org_id: string;
|
|
3155
3258
|
};
|
|
3156
3259
|
Insert: {
|
|
3157
|
-
config?: Json;
|
|
3260
|
+
config?: Json$1;
|
|
3158
3261
|
created_at?: string;
|
|
3159
3262
|
id?: string;
|
|
3160
3263
|
is_test?: boolean;
|
|
3161
|
-
metadata?: Json;
|
|
3264
|
+
metadata?: Json$1;
|
|
3162
3265
|
name: string;
|
|
3163
3266
|
status?: string;
|
|
3164
3267
|
updated_at?: string;
|
|
3165
3268
|
workos_org_id: string;
|
|
3166
3269
|
};
|
|
3167
3270
|
Update: {
|
|
3168
|
-
config?: Json;
|
|
3271
|
+
config?: Json$1;
|
|
3169
3272
|
created_at?: string;
|
|
3170
3273
|
id?: string;
|
|
3171
3274
|
is_test?: boolean;
|
|
3172
|
-
metadata?: Json;
|
|
3275
|
+
metadata?: Json$1;
|
|
3173
3276
|
name?: string;
|
|
3174
3277
|
status?: string;
|
|
3175
3278
|
updated_at?: string;
|
|
@@ -3179,13 +3282,13 @@ type Database = {
|
|
|
3179
3282
|
};
|
|
3180
3283
|
prj_milestones: {
|
|
3181
3284
|
Row: {
|
|
3182
|
-
checklist: Json | null;
|
|
3285
|
+
checklist: Json$1 | null;
|
|
3183
3286
|
completed_at: string | null;
|
|
3184
3287
|
created_at: string;
|
|
3185
3288
|
description: string | null;
|
|
3186
3289
|
due_date: string | null;
|
|
3187
3290
|
id: string;
|
|
3188
|
-
metadata: Json | null;
|
|
3291
|
+
metadata: Json$1 | null;
|
|
3189
3292
|
name: string;
|
|
3190
3293
|
organization_id: string;
|
|
3191
3294
|
project_id: string;
|
|
@@ -3194,13 +3297,13 @@ type Database = {
|
|
|
3194
3297
|
updated_at: string;
|
|
3195
3298
|
};
|
|
3196
3299
|
Insert: {
|
|
3197
|
-
checklist?: Json | null;
|
|
3300
|
+
checklist?: Json$1 | null;
|
|
3198
3301
|
completed_at?: string | null;
|
|
3199
3302
|
created_at?: string;
|
|
3200
3303
|
description?: string | null;
|
|
3201
3304
|
due_date?: string | null;
|
|
3202
3305
|
id?: string;
|
|
3203
|
-
metadata?: Json | null;
|
|
3306
|
+
metadata?: Json$1 | null;
|
|
3204
3307
|
name: string;
|
|
3205
3308
|
organization_id: string;
|
|
3206
3309
|
project_id: string;
|
|
@@ -3209,13 +3312,13 @@ type Database = {
|
|
|
3209
3312
|
updated_at?: string;
|
|
3210
3313
|
};
|
|
3211
3314
|
Update: {
|
|
3212
|
-
checklist?: Json | null;
|
|
3315
|
+
checklist?: Json$1 | null;
|
|
3213
3316
|
completed_at?: string | null;
|
|
3214
3317
|
created_at?: string;
|
|
3215
3318
|
description?: string | null;
|
|
3216
3319
|
due_date?: string | null;
|
|
3217
3320
|
id?: string;
|
|
3218
|
-
metadata?: Json | null;
|
|
3321
|
+
metadata?: Json$1 | null;
|
|
3219
3322
|
name?: string;
|
|
3220
3323
|
organization_id?: string;
|
|
3221
3324
|
project_id?: string;
|
|
@@ -3246,7 +3349,7 @@ type Database = {
|
|
|
3246
3349
|
created_at: string;
|
|
3247
3350
|
created_by: string | null;
|
|
3248
3351
|
id: string;
|
|
3249
|
-
metadata: Json | null;
|
|
3352
|
+
metadata: Json$1 | null;
|
|
3250
3353
|
milestone_id: string | null;
|
|
3251
3354
|
occurred_at: string;
|
|
3252
3355
|
organization_id: string;
|
|
@@ -3260,7 +3363,7 @@ type Database = {
|
|
|
3260
3363
|
created_at?: string;
|
|
3261
3364
|
created_by?: string | null;
|
|
3262
3365
|
id?: string;
|
|
3263
|
-
metadata?: Json | null;
|
|
3366
|
+
metadata?: Json$1 | null;
|
|
3264
3367
|
milestone_id?: string | null;
|
|
3265
3368
|
occurred_at?: string;
|
|
3266
3369
|
organization_id: string;
|
|
@@ -3274,7 +3377,7 @@ type Database = {
|
|
|
3274
3377
|
created_at?: string;
|
|
3275
3378
|
created_by?: string | null;
|
|
3276
3379
|
id?: string;
|
|
3277
|
-
metadata?: Json | null;
|
|
3380
|
+
metadata?: Json$1 | null;
|
|
3278
3381
|
milestone_id?: string | null;
|
|
3279
3382
|
occurred_at?: string;
|
|
3280
3383
|
organization_id?: string;
|
|
@@ -3331,7 +3434,7 @@ type Database = {
|
|
|
3331
3434
|
description: string | null;
|
|
3332
3435
|
id: string;
|
|
3333
3436
|
kind: string;
|
|
3334
|
-
metadata: Json | null;
|
|
3437
|
+
metadata: Json$1 | null;
|
|
3335
3438
|
name: string;
|
|
3336
3439
|
organization_id: string;
|
|
3337
3440
|
start_date: string | null;
|
|
@@ -3348,7 +3451,7 @@ type Database = {
|
|
|
3348
3451
|
description?: string | null;
|
|
3349
3452
|
id?: string;
|
|
3350
3453
|
kind?: string;
|
|
3351
|
-
metadata?: Json | null;
|
|
3454
|
+
metadata?: Json$1 | null;
|
|
3352
3455
|
name: string;
|
|
3353
3456
|
organization_id: string;
|
|
3354
3457
|
start_date?: string | null;
|
|
@@ -3365,7 +3468,7 @@ type Database = {
|
|
|
3365
3468
|
description?: string | null;
|
|
3366
3469
|
id?: string;
|
|
3367
3470
|
kind?: string;
|
|
3368
|
-
metadata?: Json | null;
|
|
3471
|
+
metadata?: Json$1 | null;
|
|
3369
3472
|
name?: string;
|
|
3370
3473
|
organization_id?: string;
|
|
3371
3474
|
start_date?: string | null;
|
|
@@ -3399,58 +3502,58 @@ type Database = {
|
|
|
3399
3502
|
};
|
|
3400
3503
|
prj_tasks: {
|
|
3401
3504
|
Row: {
|
|
3402
|
-
checklist: Json;
|
|
3505
|
+
checklist: Json$1;
|
|
3403
3506
|
completed_at: string | null;
|
|
3404
3507
|
created_at: string;
|
|
3405
3508
|
description: string | null;
|
|
3406
3509
|
due_date: string | null;
|
|
3407
3510
|
file_url: string | null;
|
|
3408
3511
|
id: string;
|
|
3409
|
-
metadata: Json | null;
|
|
3512
|
+
metadata: Json$1 | null;
|
|
3410
3513
|
milestone_id: string | null;
|
|
3411
3514
|
name: string;
|
|
3412
3515
|
organization_id: string;
|
|
3413
3516
|
parent_task_id: string | null;
|
|
3414
3517
|
project_id: string;
|
|
3415
|
-
resume_context: Json | null;
|
|
3518
|
+
resume_context: Json$1 | null;
|
|
3416
3519
|
status: string;
|
|
3417
3520
|
type: string;
|
|
3418
3521
|
updated_at: string;
|
|
3419
3522
|
};
|
|
3420
3523
|
Insert: {
|
|
3421
|
-
checklist?: Json;
|
|
3524
|
+
checklist?: Json$1;
|
|
3422
3525
|
completed_at?: string | null;
|
|
3423
3526
|
created_at?: string;
|
|
3424
3527
|
description?: string | null;
|
|
3425
3528
|
due_date?: string | null;
|
|
3426
3529
|
file_url?: string | null;
|
|
3427
3530
|
id?: string;
|
|
3428
|
-
metadata?: Json | null;
|
|
3531
|
+
metadata?: Json$1 | null;
|
|
3429
3532
|
milestone_id?: string | null;
|
|
3430
3533
|
name: string;
|
|
3431
3534
|
organization_id: string;
|
|
3432
3535
|
parent_task_id?: string | null;
|
|
3433
3536
|
project_id: string;
|
|
3434
|
-
resume_context?: Json | null;
|
|
3537
|
+
resume_context?: Json$1 | null;
|
|
3435
3538
|
status?: string;
|
|
3436
3539
|
type?: string;
|
|
3437
3540
|
updated_at?: string;
|
|
3438
3541
|
};
|
|
3439
3542
|
Update: {
|
|
3440
|
-
checklist?: Json;
|
|
3543
|
+
checklist?: Json$1;
|
|
3441
3544
|
completed_at?: string | null;
|
|
3442
3545
|
created_at?: string;
|
|
3443
3546
|
description?: string | null;
|
|
3444
3547
|
due_date?: string | null;
|
|
3445
3548
|
file_url?: string | null;
|
|
3446
3549
|
id?: string;
|
|
3447
|
-
metadata?: Json | null;
|
|
3550
|
+
metadata?: Json$1 | null;
|
|
3448
3551
|
milestone_id?: string | null;
|
|
3449
3552
|
name?: string;
|
|
3450
3553
|
organization_id?: string;
|
|
3451
3554
|
parent_task_id?: string | null;
|
|
3452
3555
|
project_id?: string;
|
|
3453
|
-
resume_context?: Json | null;
|
|
3556
|
+
resume_context?: Json$1 | null;
|
|
3454
3557
|
status?: string;
|
|
3455
3558
|
type?: string;
|
|
3456
3559
|
updated_at?: string;
|
|
@@ -3493,7 +3596,7 @@ type Database = {
|
|
|
3493
3596
|
message: string;
|
|
3494
3597
|
message_index: number | null;
|
|
3495
3598
|
message_type: string | null;
|
|
3496
|
-
metadata: Json | null;
|
|
3599
|
+
metadata: Json$1 | null;
|
|
3497
3600
|
role: string;
|
|
3498
3601
|
session_id: string;
|
|
3499
3602
|
session_turn_number: number;
|
|
@@ -3504,7 +3607,7 @@ type Database = {
|
|
|
3504
3607
|
message: string;
|
|
3505
3608
|
message_index?: number | null;
|
|
3506
3609
|
message_type?: string | null;
|
|
3507
|
-
metadata?: Json | null;
|
|
3610
|
+
metadata?: Json$1 | null;
|
|
3508
3611
|
role: string;
|
|
3509
3612
|
session_id: string;
|
|
3510
3613
|
session_turn_number: number;
|
|
@@ -3515,7 +3618,7 @@ type Database = {
|
|
|
3515
3618
|
message?: string;
|
|
3516
3619
|
message_index?: number | null;
|
|
3517
3620
|
message_type?: string | null;
|
|
3518
|
-
metadata?: Json | null;
|
|
3621
|
+
metadata?: Json$1 | null;
|
|
3519
3622
|
role?: string;
|
|
3520
3623
|
session_id?: string;
|
|
3521
3624
|
session_turn_number?: number;
|
|
@@ -3538,8 +3641,8 @@ type Database = {
|
|
|
3538
3641
|
cumulative_output_tokens: number;
|
|
3539
3642
|
deleted_at: string | null;
|
|
3540
3643
|
ended_at: string | null;
|
|
3541
|
-
memory_snapshot: Json;
|
|
3542
|
-
metadata: Json | null;
|
|
3644
|
+
memory_snapshot: Json$1;
|
|
3645
|
+
metadata: Json$1 | null;
|
|
3543
3646
|
organization_id: string;
|
|
3544
3647
|
resource_id: string;
|
|
3545
3648
|
session_id: string;
|
|
@@ -3554,8 +3657,8 @@ type Database = {
|
|
|
3554
3657
|
cumulative_output_tokens?: number;
|
|
3555
3658
|
deleted_at?: string | null;
|
|
3556
3659
|
ended_at?: string | null;
|
|
3557
|
-
memory_snapshot: Json;
|
|
3558
|
-
metadata?: Json | null;
|
|
3660
|
+
memory_snapshot: Json$1;
|
|
3661
|
+
metadata?: Json$1 | null;
|
|
3559
3662
|
organization_id: string;
|
|
3560
3663
|
resource_id: string;
|
|
3561
3664
|
session_id?: string;
|
|
@@ -3570,8 +3673,8 @@ type Database = {
|
|
|
3570
3673
|
cumulative_output_tokens?: number;
|
|
3571
3674
|
deleted_at?: string | null;
|
|
3572
3675
|
ended_at?: string | null;
|
|
3573
|
-
memory_snapshot?: Json;
|
|
3574
|
-
metadata?: Json | null;
|
|
3676
|
+
memory_snapshot?: Json$1;
|
|
3677
|
+
metadata?: Json$1 | null;
|
|
3575
3678
|
organization_id?: string;
|
|
3576
3679
|
resource_id?: string;
|
|
3577
3680
|
session_id?: string;
|
|
@@ -3606,7 +3709,7 @@ type Database = {
|
|
|
3606
3709
|
last_execution_id: string | null;
|
|
3607
3710
|
last_run_at: string | null;
|
|
3608
3711
|
max_retries: number;
|
|
3609
|
-
metadata: Json | null;
|
|
3712
|
+
metadata: Json$1 | null;
|
|
3610
3713
|
name: string;
|
|
3611
3714
|
next_run_at: string | null;
|
|
3612
3715
|
organization_id: string;
|
|
@@ -3614,7 +3717,7 @@ type Database = {
|
|
|
3614
3717
|
origin_resource_id: string | null;
|
|
3615
3718
|
origin_resource_type: string | null;
|
|
3616
3719
|
retry_count: number;
|
|
3617
|
-
schedule_config: Json;
|
|
3720
|
+
schedule_config: Json$1;
|
|
3618
3721
|
status: string;
|
|
3619
3722
|
target_resource_id: string;
|
|
3620
3723
|
target_resource_type: string;
|
|
@@ -3629,7 +3732,7 @@ type Database = {
|
|
|
3629
3732
|
last_execution_id?: string | null;
|
|
3630
3733
|
last_run_at?: string | null;
|
|
3631
3734
|
max_retries?: number;
|
|
3632
|
-
metadata?: Json | null;
|
|
3735
|
+
metadata?: Json$1 | null;
|
|
3633
3736
|
name: string;
|
|
3634
3737
|
next_run_at?: string | null;
|
|
3635
3738
|
organization_id: string;
|
|
@@ -3637,7 +3740,7 @@ type Database = {
|
|
|
3637
3740
|
origin_resource_id?: string | null;
|
|
3638
3741
|
origin_resource_type?: string | null;
|
|
3639
3742
|
retry_count?: number;
|
|
3640
|
-
schedule_config: Json;
|
|
3743
|
+
schedule_config: Json$1;
|
|
3641
3744
|
status?: string;
|
|
3642
3745
|
target_resource_id: string;
|
|
3643
3746
|
target_resource_type: string;
|
|
@@ -3652,7 +3755,7 @@ type Database = {
|
|
|
3652
3755
|
last_execution_id?: string | null;
|
|
3653
3756
|
last_run_at?: string | null;
|
|
3654
3757
|
max_retries?: number;
|
|
3655
|
-
metadata?: Json | null;
|
|
3758
|
+
metadata?: Json$1 | null;
|
|
3656
3759
|
name?: string;
|
|
3657
3760
|
next_run_at?: string | null;
|
|
3658
3761
|
organization_id?: string;
|
|
@@ -3660,7 +3763,7 @@ type Database = {
|
|
|
3660
3763
|
origin_resource_id?: string | null;
|
|
3661
3764
|
origin_resource_type?: string | null;
|
|
3662
3765
|
retry_count?: number;
|
|
3663
|
-
schedule_config?: Json;
|
|
3766
|
+
schedule_config?: Json$1;
|
|
3664
3767
|
status?: string;
|
|
3665
3768
|
target_resource_id?: string;
|
|
3666
3769
|
target_resource_type?: string;
|
|
@@ -3678,7 +3781,7 @@ type Database = {
|
|
|
3678
3781
|
};
|
|
3679
3782
|
users: {
|
|
3680
3783
|
Row: {
|
|
3681
|
-
config: Json;
|
|
3784
|
+
config: Json$1;
|
|
3682
3785
|
created_at: string;
|
|
3683
3786
|
display_name: string | null;
|
|
3684
3787
|
email: string;
|
|
@@ -3694,7 +3797,7 @@ type Database = {
|
|
|
3694
3797
|
workos_user_id: string | null;
|
|
3695
3798
|
};
|
|
3696
3799
|
Insert: {
|
|
3697
|
-
config?: Json;
|
|
3800
|
+
config?: Json$1;
|
|
3698
3801
|
created_at?: string;
|
|
3699
3802
|
display_name?: string | null;
|
|
3700
3803
|
email: string;
|
|
@@ -3710,7 +3813,7 @@ type Database = {
|
|
|
3710
3813
|
workos_user_id?: string | null;
|
|
3711
3814
|
};
|
|
3712
3815
|
Update: {
|
|
3713
|
-
config?: Json;
|
|
3816
|
+
config?: Json$1;
|
|
3714
3817
|
created_at?: string;
|
|
3715
3818
|
display_name?: string | null;
|
|
3716
3819
|
email?: string;
|
|
@@ -3794,11 +3897,11 @@ type Database = {
|
|
|
3794
3897
|
Args: {
|
|
3795
3898
|
p_platform: string;
|
|
3796
3899
|
};
|
|
3797
|
-
Returns: Json;
|
|
3900
|
+
Returns: Json$1;
|
|
3798
3901
|
};
|
|
3799
3902
|
append_deal_activity: {
|
|
3800
3903
|
Args: {
|
|
3801
|
-
p_activity: Json;
|
|
3904
|
+
p_activity: Json$1;
|
|
3802
3905
|
p_deal_id: string;
|
|
3803
3906
|
p_organization_id: string;
|
|
3804
3907
|
};
|
|
@@ -3806,7 +3909,7 @@ type Database = {
|
|
|
3806
3909
|
};
|
|
3807
3910
|
auth_jwt_claims: {
|
|
3808
3911
|
Args: never;
|
|
3809
|
-
Returns: Json;
|
|
3912
|
+
Returns: Json$1;
|
|
3810
3913
|
};
|
|
3811
3914
|
auth_uid_safe: {
|
|
3812
3915
|
Args: never;
|
|
@@ -3831,8 +3934,8 @@ type Database = {
|
|
|
3831
3934
|
Returns: {
|
|
3832
3935
|
created_at: string;
|
|
3833
3936
|
ended_at: string;
|
|
3834
|
-
memory_snapshot: Json;
|
|
3835
|
-
metadata: Json;
|
|
3937
|
+
memory_snapshot: Json$1;
|
|
3938
|
+
metadata: Json$1;
|
|
3836
3939
|
organization_id: string;
|
|
3837
3940
|
resource_id: string;
|
|
3838
3941
|
session_id: string;
|
|
@@ -3877,11 +3980,11 @@ type Database = {
|
|
|
3877
3980
|
p_organization_id: string;
|
|
3878
3981
|
p_role_slug?: string;
|
|
3879
3982
|
};
|
|
3880
|
-
Returns: Json;
|
|
3983
|
+
Returns: Json$1;
|
|
3881
3984
|
};
|
|
3882
3985
|
process_due_schedules: {
|
|
3883
3986
|
Args: never;
|
|
3884
|
-
Returns: Json;
|
|
3987
|
+
Returns: Json$1;
|
|
3885
3988
|
};
|
|
3886
3989
|
upsert_user_profile: {
|
|
3887
3990
|
Args: never;
|
|
@@ -3901,8 +4004,8 @@ type Database = {
|
|
|
3901
4004
|
};
|
|
3902
4005
|
};
|
|
3903
4006
|
};
|
|
3904
|
-
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3905
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
4007
|
+
type DatabaseWithoutInternals = Omit<Database$1, "__InternalSupabase">;
|
|
4008
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database$1, "public">];
|
|
3906
4009
|
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3907
4010
|
schema: keyof DatabaseWithoutInternals;
|
|
3908
4011
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
@@ -4045,7 +4148,7 @@ interface Task extends OriginTracking {
|
|
|
4045
4148
|
priority: number;
|
|
4046
4149
|
/** Optional checkpoint identifier for grouping related human approval tasks */
|
|
4047
4150
|
humanCheckpoint?: string;
|
|
4048
|
-
status: TaskStatus;
|
|
4151
|
+
status: TaskStatus$1;
|
|
4049
4152
|
/**
|
|
4050
4153
|
* Target resource tracking — mirrors origin columns.
|
|
4051
4154
|
* Set when task is created; patchable to redirect execution to a different resource.
|
|
@@ -4075,7 +4178,7 @@ interface Task extends OriginTracking {
|
|
|
4075
4178
|
* - failed: execution failed, task can be retried
|
|
4076
4179
|
* - expired: timed out before action
|
|
4077
4180
|
*/
|
|
4078
|
-
type TaskStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
4181
|
+
type TaskStatus$1 = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
4079
4182
|
/**
|
|
4080
4183
|
* Parameters for patching mutable metadata on a task
|
|
4081
4184
|
*/
|
|
@@ -4221,6 +4324,103 @@ interface NotificationDTO {
|
|
|
4221
4324
|
createdAt: string;
|
|
4222
4325
|
}
|
|
4223
4326
|
|
|
4327
|
+
/** Raw database row type for acq_deals table */
|
|
4328
|
+
type AcqDealRow = Database$1['public']['Tables']['acq_deals']['Row'];
|
|
4329
|
+
type DealStage = 'interested' | 'booked' | 'qualified' | 'demo_booked' | 'proposal' | 'proposal_sent' | 'proposal_signed' | 'payment_sent' | 'proposal_revision' | 'closed_won' | 'closed_lost' | 'nurturing' | 'cancelled' | 'no_show';
|
|
4330
|
+
interface DealContact {
|
|
4331
|
+
id: string;
|
|
4332
|
+
first_name: string | null;
|
|
4333
|
+
last_name: string | null;
|
|
4334
|
+
email: string;
|
|
4335
|
+
title: string | null;
|
|
4336
|
+
headline: string | null;
|
|
4337
|
+
linkedin_url: string | null;
|
|
4338
|
+
pipeline_status: Record<string, unknown> | null;
|
|
4339
|
+
enrichment_data: Record<string, unknown> | null;
|
|
4340
|
+
company: {
|
|
4341
|
+
id: string;
|
|
4342
|
+
name: string;
|
|
4343
|
+
domain: string | null;
|
|
4344
|
+
website: string | null;
|
|
4345
|
+
linkedin_url: string | null;
|
|
4346
|
+
segment: string | null;
|
|
4347
|
+
category: string | null;
|
|
4348
|
+
num_employees: number | null;
|
|
4349
|
+
} | null;
|
|
4350
|
+
}
|
|
4351
|
+
interface DealFilters {
|
|
4352
|
+
stage?: DealStage;
|
|
4353
|
+
search?: string;
|
|
4354
|
+
}
|
|
4355
|
+
/** Deal list item with joined contact and company data */
|
|
4356
|
+
interface DealListItem extends AcqDealRow {
|
|
4357
|
+
contact: DealContact | null;
|
|
4358
|
+
}
|
|
4359
|
+
type DealDetail = DealListItem;
|
|
4360
|
+
/** Task kind options for a deal task (human follow-up action type) */
|
|
4361
|
+
type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
|
|
4362
|
+
/**
|
|
4363
|
+
* A CRM to-do item attached to a deal representing a human follow-up action.
|
|
4364
|
+
* Transformed from AcqDealTaskRow with camelCase properties.
|
|
4365
|
+
*/
|
|
4366
|
+
interface AcqDealTask {
|
|
4367
|
+
id: string;
|
|
4368
|
+
organizationId: string;
|
|
4369
|
+
dealId: string;
|
|
4370
|
+
title: string;
|
|
4371
|
+
description: string | null;
|
|
4372
|
+
kind: AcqDealTaskKind;
|
|
4373
|
+
dueAt: string | null;
|
|
4374
|
+
assigneeUserId: string | null;
|
|
4375
|
+
completedAt: string | null;
|
|
4376
|
+
completedByUserId: string | null;
|
|
4377
|
+
createdAt: string;
|
|
4378
|
+
updatedAt: string;
|
|
4379
|
+
createdByUserId: string | null;
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Aggregated pipeline telemetry for a single acquisition batch.
|
|
4383
|
+
* Stage counts reflect how far companies/contacts have progressed through
|
|
4384
|
+
* the lead-gen pipeline for the given batchId.
|
|
4385
|
+
*/
|
|
4386
|
+
interface BatchTelemetry {
|
|
4387
|
+
batchId: string;
|
|
4388
|
+
totalCompanies: number;
|
|
4389
|
+
totalContacts: number;
|
|
4390
|
+
/** Per-stage company and contact counts derived from pipeline_status fields */
|
|
4391
|
+
stageCounts: {
|
|
4392
|
+
/** Companies where pipeline_status.acquired === true */
|
|
4393
|
+
scraped: number;
|
|
4394
|
+
/** Companies where pipeline_status.enrichment.websiteCrawl?.status === 'complete' */
|
|
4395
|
+
extracted: number;
|
|
4396
|
+
/** Companies where category_pain != null */
|
|
4397
|
+
categoryPained: number;
|
|
4398
|
+
/** Companies where category != null AND category_pain != null */
|
|
4399
|
+
qualified: number;
|
|
4400
|
+
/** Total contacts belonging to the batch */
|
|
4401
|
+
discovered: number;
|
|
4402
|
+
/** Contacts where email_valid != null */
|
|
4403
|
+
verified: number;
|
|
4404
|
+
/** Contacts where pipeline_status.personalization.status === 'complete' */
|
|
4405
|
+
personalized: number;
|
|
4406
|
+
};
|
|
4407
|
+
/** Email deliverability breakdown for contacts in the batch */
|
|
4408
|
+
deliverability: {
|
|
4409
|
+
/** Contacts where email_valid === 'VALID' */
|
|
4410
|
+
valid: number;
|
|
4411
|
+
/** Contacts where email_valid === 'RISKY' */
|
|
4412
|
+
risky: number;
|
|
4413
|
+
/** Contacts where email_valid === 'INVALID' */
|
|
4414
|
+
invalid: number;
|
|
4415
|
+
/** Contacts where email_valid === 'UNKNOWN' or email_valid is null */
|
|
4416
|
+
unknown: number;
|
|
4417
|
+
/** Contacts where pipeline_status.outreach.status === 'bounced' */
|
|
4418
|
+
bounced: number;
|
|
4419
|
+
};
|
|
4420
|
+
/** Reserved for future use — active workflow IDs associated with this batch */
|
|
4421
|
+
activeWorkflows?: string[];
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4224
4424
|
type MessageType = MessageEvent['type'];
|
|
4225
4425
|
/**
|
|
4226
4426
|
* Session Data Transfer Object (DTO)
|
|
@@ -6575,7 +6775,7 @@ interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme
|
|
|
6575
6775
|
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
6576
6776
|
|
|
6577
6777
|
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
6578
|
-
status?: TaskStatus;
|
|
6778
|
+
status?: TaskStatus$1;
|
|
6579
6779
|
limit?: number;
|
|
6580
6780
|
offset?: number;
|
|
6581
6781
|
humanCheckpoint?: string;
|
|
@@ -6595,7 +6795,7 @@ declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeR
|
|
|
6595
6795
|
description?: string;
|
|
6596
6796
|
priority: number;
|
|
6597
6797
|
humanCheckpoint?: string;
|
|
6598
|
-
status: TaskStatus;
|
|
6798
|
+
status: TaskStatus$1;
|
|
6599
6799
|
targetResourceId?: string;
|
|
6600
6800
|
targetResourceType?: "agent" | "workflow";
|
|
6601
6801
|
targetExecutionId?: string;
|
|
@@ -6633,7 +6833,7 @@ interface SubmitActionResponse {
|
|
|
6633
6833
|
}
|
|
6634
6834
|
declare function useSubmitAction(): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
6635
6835
|
|
|
6636
|
-
declare function useDeleteTask(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
6836
|
+
declare function useDeleteTask$1(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
6637
6837
|
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
6638
6838
|
}>;
|
|
6639
6839
|
|
|
@@ -6932,6 +7132,2452 @@ interface ExecutionLogMessage {
|
|
|
6932
7132
|
context?: LogContext
|
|
6933
7133
|
}
|
|
6934
7134
|
|
|
7135
|
+
type Json =
|
|
7136
|
+
| string
|
|
7137
|
+
| number
|
|
7138
|
+
| boolean
|
|
7139
|
+
| null
|
|
7140
|
+
| { [key: string]: Json | undefined }
|
|
7141
|
+
| Json[]
|
|
7142
|
+
|
|
7143
|
+
type Database = {
|
|
7144
|
+
// Allows to automatically instantiate createClient with right options
|
|
7145
|
+
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
7146
|
+
__InternalSupabase: {
|
|
7147
|
+
PostgrestVersion: "12.2.3 (519615d)"
|
|
7148
|
+
}
|
|
7149
|
+
public: {
|
|
7150
|
+
Tables: {
|
|
7151
|
+
acq_companies: {
|
|
7152
|
+
Row: {
|
|
7153
|
+
batch_id: string | null
|
|
7154
|
+
category: string | null
|
|
7155
|
+
category_pain: string | null
|
|
7156
|
+
created_at: string
|
|
7157
|
+
domain: string | null
|
|
7158
|
+
enrichment_data: Json | null
|
|
7159
|
+
filter_reason: string | null
|
|
7160
|
+
founded_year: number | null
|
|
7161
|
+
id: string
|
|
7162
|
+
linkedin_url: string | null
|
|
7163
|
+
location_city: string | null
|
|
7164
|
+
location_state: string | null
|
|
7165
|
+
name: string
|
|
7166
|
+
num_employees: number | null
|
|
7167
|
+
organization_id: string
|
|
7168
|
+
pipeline_status: Json
|
|
7169
|
+
segment: string | null
|
|
7170
|
+
source: string | null
|
|
7171
|
+
status: string
|
|
7172
|
+
updated_at: string
|
|
7173
|
+
website: string | null
|
|
7174
|
+
}
|
|
7175
|
+
Insert: {
|
|
7176
|
+
batch_id?: string | null
|
|
7177
|
+
category?: string | null
|
|
7178
|
+
category_pain?: string | null
|
|
7179
|
+
created_at?: string
|
|
7180
|
+
domain?: string | null
|
|
7181
|
+
enrichment_data?: Json | null
|
|
7182
|
+
filter_reason?: string | null
|
|
7183
|
+
founded_year?: number | null
|
|
7184
|
+
id?: string
|
|
7185
|
+
linkedin_url?: string | null
|
|
7186
|
+
location_city?: string | null
|
|
7187
|
+
location_state?: string | null
|
|
7188
|
+
name: string
|
|
7189
|
+
num_employees?: number | null
|
|
7190
|
+
organization_id: string
|
|
7191
|
+
pipeline_status?: Json
|
|
7192
|
+
segment?: string | null
|
|
7193
|
+
source?: string | null
|
|
7194
|
+
status?: string
|
|
7195
|
+
updated_at?: string
|
|
7196
|
+
website?: string | null
|
|
7197
|
+
}
|
|
7198
|
+
Update: {
|
|
7199
|
+
batch_id?: string | null
|
|
7200
|
+
category?: string | null
|
|
7201
|
+
category_pain?: string | null
|
|
7202
|
+
created_at?: string
|
|
7203
|
+
domain?: string | null
|
|
7204
|
+
enrichment_data?: Json | null
|
|
7205
|
+
filter_reason?: string | null
|
|
7206
|
+
founded_year?: number | null
|
|
7207
|
+
id?: string
|
|
7208
|
+
linkedin_url?: string | null
|
|
7209
|
+
location_city?: string | null
|
|
7210
|
+
location_state?: string | null
|
|
7211
|
+
name?: string
|
|
7212
|
+
num_employees?: number | null
|
|
7213
|
+
organization_id?: string
|
|
7214
|
+
pipeline_status?: Json
|
|
7215
|
+
segment?: string | null
|
|
7216
|
+
source?: string | null
|
|
7217
|
+
status?: string
|
|
7218
|
+
updated_at?: string
|
|
7219
|
+
website?: string | null
|
|
7220
|
+
}
|
|
7221
|
+
Relationships: [
|
|
7222
|
+
{
|
|
7223
|
+
foreignKeyName: "acq_companies_organization_id_fkey"
|
|
7224
|
+
columns: ["organization_id"]
|
|
7225
|
+
isOneToOne: false
|
|
7226
|
+
referencedRelation: "organizations"
|
|
7227
|
+
referencedColumns: ["id"]
|
|
7228
|
+
},
|
|
7229
|
+
]
|
|
7230
|
+
}
|
|
7231
|
+
acq_contacts: {
|
|
7232
|
+
Row: {
|
|
7233
|
+
batch_id: string | null
|
|
7234
|
+
brochure_first_viewed_at: string | null
|
|
7235
|
+
brochure_view_count: number
|
|
7236
|
+
company_id: string | null
|
|
7237
|
+
created_at: string
|
|
7238
|
+
email: string
|
|
7239
|
+
email_valid: string | null
|
|
7240
|
+
enrichment_data: Json
|
|
7241
|
+
filter_reason: string | null
|
|
7242
|
+
first_name: string | null
|
|
7243
|
+
headline: string | null
|
|
7244
|
+
id: string
|
|
7245
|
+
last_name: string | null
|
|
7246
|
+
linkedin_url: string | null
|
|
7247
|
+
nurture: boolean
|
|
7248
|
+
opening_line: string | null
|
|
7249
|
+
organization_id: string
|
|
7250
|
+
pipeline_status: Json
|
|
7251
|
+
source: string | null
|
|
7252
|
+
source_id: string | null
|
|
7253
|
+
status: string
|
|
7254
|
+
title: string | null
|
|
7255
|
+
updated_at: string
|
|
7256
|
+
}
|
|
7257
|
+
Insert: {
|
|
7258
|
+
batch_id?: string | null
|
|
7259
|
+
brochure_first_viewed_at?: string | null
|
|
7260
|
+
brochure_view_count?: number
|
|
7261
|
+
company_id?: string | null
|
|
7262
|
+
created_at?: string
|
|
7263
|
+
email: string
|
|
7264
|
+
email_valid?: string | null
|
|
7265
|
+
enrichment_data?: Json
|
|
7266
|
+
filter_reason?: string | null
|
|
7267
|
+
first_name?: string | null
|
|
7268
|
+
headline?: string | null
|
|
7269
|
+
id?: string
|
|
7270
|
+
last_name?: string | null
|
|
7271
|
+
linkedin_url?: string | null
|
|
7272
|
+
nurture?: boolean
|
|
7273
|
+
opening_line?: string | null
|
|
7274
|
+
organization_id: string
|
|
7275
|
+
pipeline_status?: Json
|
|
7276
|
+
source?: string | null
|
|
7277
|
+
source_id?: string | null
|
|
7278
|
+
status?: string
|
|
7279
|
+
title?: string | null
|
|
7280
|
+
updated_at?: string
|
|
7281
|
+
}
|
|
7282
|
+
Update: {
|
|
7283
|
+
batch_id?: string | null
|
|
7284
|
+
brochure_first_viewed_at?: string | null
|
|
7285
|
+
brochure_view_count?: number
|
|
7286
|
+
company_id?: string | null
|
|
7287
|
+
created_at?: string
|
|
7288
|
+
email?: string
|
|
7289
|
+
email_valid?: string | null
|
|
7290
|
+
enrichment_data?: Json
|
|
7291
|
+
filter_reason?: string | null
|
|
7292
|
+
first_name?: string | null
|
|
7293
|
+
headline?: string | null
|
|
7294
|
+
id?: string
|
|
7295
|
+
last_name?: string | null
|
|
7296
|
+
linkedin_url?: string | null
|
|
7297
|
+
nurture?: boolean
|
|
7298
|
+
opening_line?: string | null
|
|
7299
|
+
organization_id?: string
|
|
7300
|
+
pipeline_status?: Json
|
|
7301
|
+
source?: string | null
|
|
7302
|
+
source_id?: string | null
|
|
7303
|
+
status?: string
|
|
7304
|
+
title?: string | null
|
|
7305
|
+
updated_at?: string
|
|
7306
|
+
}
|
|
7307
|
+
Relationships: [
|
|
7308
|
+
{
|
|
7309
|
+
foreignKeyName: "acq_contacts_company_id_fkey"
|
|
7310
|
+
columns: ["company_id"]
|
|
7311
|
+
isOneToOne: false
|
|
7312
|
+
referencedRelation: "acq_companies"
|
|
7313
|
+
referencedColumns: ["id"]
|
|
7314
|
+
},
|
|
7315
|
+
{
|
|
7316
|
+
foreignKeyName: "acq_contacts_organization_id_fkey"
|
|
7317
|
+
columns: ["organization_id"]
|
|
7318
|
+
isOneToOne: false
|
|
7319
|
+
referencedRelation: "organizations"
|
|
7320
|
+
referencedColumns: ["id"]
|
|
7321
|
+
},
|
|
7322
|
+
]
|
|
7323
|
+
}
|
|
7324
|
+
acq_content: {
|
|
7325
|
+
Row: {
|
|
7326
|
+
body: string | null
|
|
7327
|
+
created_at: string
|
|
7328
|
+
id: string
|
|
7329
|
+
organization_id: string
|
|
7330
|
+
pillar: string
|
|
7331
|
+
status: string
|
|
7332
|
+
title: string
|
|
7333
|
+
updated_at: string
|
|
7334
|
+
}
|
|
7335
|
+
Insert: {
|
|
7336
|
+
body?: string | null
|
|
7337
|
+
created_at?: string
|
|
7338
|
+
id?: string
|
|
7339
|
+
organization_id: string
|
|
7340
|
+
pillar: string
|
|
7341
|
+
status?: string
|
|
7342
|
+
title: string
|
|
7343
|
+
updated_at?: string
|
|
7344
|
+
}
|
|
7345
|
+
Update: {
|
|
7346
|
+
body?: string | null
|
|
7347
|
+
created_at?: string
|
|
7348
|
+
id?: string
|
|
7349
|
+
organization_id?: string
|
|
7350
|
+
pillar?: string
|
|
7351
|
+
status?: string
|
|
7352
|
+
title?: string
|
|
7353
|
+
updated_at?: string
|
|
7354
|
+
}
|
|
7355
|
+
Relationships: [
|
|
7356
|
+
{
|
|
7357
|
+
foreignKeyName: "acq_content_organization_id_fkey"
|
|
7358
|
+
columns: ["organization_id"]
|
|
7359
|
+
isOneToOne: false
|
|
7360
|
+
referencedRelation: "organizations"
|
|
7361
|
+
referencedColumns: ["id"]
|
|
7362
|
+
},
|
|
7363
|
+
]
|
|
7364
|
+
}
|
|
7365
|
+
acq_content_distributions: {
|
|
7366
|
+
Row: {
|
|
7367
|
+
adapted_body: string | null
|
|
7368
|
+
checklist: Json | null
|
|
7369
|
+
content_id: string
|
|
7370
|
+
created_at: string
|
|
7371
|
+
format: string
|
|
7372
|
+
id: string
|
|
7373
|
+
media_urls: Json
|
|
7374
|
+
metrics: Json
|
|
7375
|
+
metrics_updated_at: string | null
|
|
7376
|
+
organization_id: string
|
|
7377
|
+
platform: string
|
|
7378
|
+
platform_content: Json | null
|
|
7379
|
+
platform_post_id: string | null
|
|
7380
|
+
platform_url: string | null
|
|
7381
|
+
published_at: string | null
|
|
7382
|
+
status: string
|
|
7383
|
+
updated_at: string
|
|
7384
|
+
}
|
|
7385
|
+
Insert: {
|
|
7386
|
+
adapted_body?: string | null
|
|
7387
|
+
checklist?: Json | null
|
|
7388
|
+
content_id: string
|
|
7389
|
+
created_at?: string
|
|
7390
|
+
format: string
|
|
7391
|
+
id?: string
|
|
7392
|
+
media_urls?: Json
|
|
7393
|
+
metrics?: Json
|
|
7394
|
+
metrics_updated_at?: string | null
|
|
7395
|
+
organization_id: string
|
|
7396
|
+
platform: string
|
|
7397
|
+
platform_content?: Json | null
|
|
7398
|
+
platform_post_id?: string | null
|
|
7399
|
+
platform_url?: string | null
|
|
7400
|
+
published_at?: string | null
|
|
7401
|
+
status?: string
|
|
7402
|
+
updated_at?: string
|
|
7403
|
+
}
|
|
7404
|
+
Update: {
|
|
7405
|
+
adapted_body?: string | null
|
|
7406
|
+
checklist?: Json | null
|
|
7407
|
+
content_id?: string
|
|
7408
|
+
created_at?: string
|
|
7409
|
+
format?: string
|
|
7410
|
+
id?: string
|
|
7411
|
+
media_urls?: Json
|
|
7412
|
+
metrics?: Json
|
|
7413
|
+
metrics_updated_at?: string | null
|
|
7414
|
+
organization_id?: string
|
|
7415
|
+
platform?: string
|
|
7416
|
+
platform_content?: Json | null
|
|
7417
|
+
platform_post_id?: string | null
|
|
7418
|
+
platform_url?: string | null
|
|
7419
|
+
published_at?: string | null
|
|
7420
|
+
status?: string
|
|
7421
|
+
updated_at?: string
|
|
7422
|
+
}
|
|
7423
|
+
Relationships: [
|
|
7424
|
+
{
|
|
7425
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey"
|
|
7426
|
+
columns: ["content_id"]
|
|
7427
|
+
isOneToOne: false
|
|
7428
|
+
referencedRelation: "acq_content"
|
|
7429
|
+
referencedColumns: ["id"]
|
|
7430
|
+
},
|
|
7431
|
+
{
|
|
7432
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey"
|
|
7433
|
+
columns: ["organization_id"]
|
|
7434
|
+
isOneToOne: false
|
|
7435
|
+
referencedRelation: "organizations"
|
|
7436
|
+
referencedColumns: ["id"]
|
|
7437
|
+
},
|
|
7438
|
+
]
|
|
7439
|
+
}
|
|
7440
|
+
acq_deal_notes: {
|
|
7441
|
+
Row: {
|
|
7442
|
+
author_user_id: string | null
|
|
7443
|
+
body: string
|
|
7444
|
+
created_at: string
|
|
7445
|
+
deal_id: string
|
|
7446
|
+
id: string
|
|
7447
|
+
organization_id: string
|
|
7448
|
+
updated_at: string
|
|
7449
|
+
}
|
|
7450
|
+
Insert: {
|
|
7451
|
+
author_user_id?: string | null
|
|
7452
|
+
body: string
|
|
7453
|
+
created_at?: string
|
|
7454
|
+
deal_id: string
|
|
7455
|
+
id?: string
|
|
7456
|
+
organization_id: string
|
|
7457
|
+
updated_at?: string
|
|
7458
|
+
}
|
|
7459
|
+
Update: {
|
|
7460
|
+
author_user_id?: string | null
|
|
7461
|
+
body?: string
|
|
7462
|
+
created_at?: string
|
|
7463
|
+
deal_id?: string
|
|
7464
|
+
id?: string
|
|
7465
|
+
organization_id?: string
|
|
7466
|
+
updated_at?: string
|
|
7467
|
+
}
|
|
7468
|
+
Relationships: [
|
|
7469
|
+
{
|
|
7470
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey"
|
|
7471
|
+
columns: ["deal_id"]
|
|
7472
|
+
isOneToOne: false
|
|
7473
|
+
referencedRelation: "acq_deals"
|
|
7474
|
+
referencedColumns: ["id"]
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey"
|
|
7478
|
+
columns: ["organization_id"]
|
|
7479
|
+
isOneToOne: false
|
|
7480
|
+
referencedRelation: "organizations"
|
|
7481
|
+
referencedColumns: ["id"]
|
|
7482
|
+
},
|
|
7483
|
+
]
|
|
7484
|
+
}
|
|
7485
|
+
acq_deal_tasks: {
|
|
7486
|
+
Row: {
|
|
7487
|
+
assignee_user_id: string | null
|
|
7488
|
+
completed_at: string | null
|
|
7489
|
+
completed_by_user_id: string | null
|
|
7490
|
+
created_at: string
|
|
7491
|
+
created_by_user_id: string | null
|
|
7492
|
+
deal_id: string
|
|
7493
|
+
description: string | null
|
|
7494
|
+
due_at: string | null
|
|
7495
|
+
id: string
|
|
7496
|
+
kind: string
|
|
7497
|
+
organization_id: string
|
|
7498
|
+
title: string
|
|
7499
|
+
updated_at: string
|
|
7500
|
+
}
|
|
7501
|
+
Insert: {
|
|
7502
|
+
assignee_user_id?: string | null
|
|
7503
|
+
completed_at?: string | null
|
|
7504
|
+
completed_by_user_id?: string | null
|
|
7505
|
+
created_at?: string
|
|
7506
|
+
created_by_user_id?: string | null
|
|
7507
|
+
deal_id: string
|
|
7508
|
+
description?: string | null
|
|
7509
|
+
due_at?: string | null
|
|
7510
|
+
id?: string
|
|
7511
|
+
kind?: string
|
|
7512
|
+
organization_id: string
|
|
7513
|
+
title: string
|
|
7514
|
+
updated_at?: string
|
|
7515
|
+
}
|
|
7516
|
+
Update: {
|
|
7517
|
+
assignee_user_id?: string | null
|
|
7518
|
+
completed_at?: string | null
|
|
7519
|
+
completed_by_user_id?: string | null
|
|
7520
|
+
created_at?: string
|
|
7521
|
+
created_by_user_id?: string | null
|
|
7522
|
+
deal_id?: string
|
|
7523
|
+
description?: string | null
|
|
7524
|
+
due_at?: string | null
|
|
7525
|
+
id?: string
|
|
7526
|
+
kind?: string
|
|
7527
|
+
organization_id?: string
|
|
7528
|
+
title?: string
|
|
7529
|
+
updated_at?: string
|
|
7530
|
+
}
|
|
7531
|
+
Relationships: [
|
|
7532
|
+
{
|
|
7533
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey"
|
|
7534
|
+
columns: ["deal_id"]
|
|
7535
|
+
isOneToOne: false
|
|
7536
|
+
referencedRelation: "acq_deals"
|
|
7537
|
+
referencedColumns: ["id"]
|
|
7538
|
+
},
|
|
7539
|
+
{
|
|
7540
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey"
|
|
7541
|
+
columns: ["organization_id"]
|
|
7542
|
+
isOneToOne: false
|
|
7543
|
+
referencedRelation: "organizations"
|
|
7544
|
+
referencedColumns: ["id"]
|
|
7545
|
+
},
|
|
7546
|
+
]
|
|
7547
|
+
}
|
|
7548
|
+
acq_deals: {
|
|
7549
|
+
Row: {
|
|
7550
|
+
activity_log: Json
|
|
7551
|
+
cached_stage: string | null
|
|
7552
|
+
closed_lost_at: string | null
|
|
7553
|
+
closed_lost_reason: string | null
|
|
7554
|
+
contact_email: string
|
|
7555
|
+
contact_id: string | null
|
|
7556
|
+
created_at: string
|
|
7557
|
+
discovery_data: Json | null
|
|
7558
|
+
discovery_submitted_at: string | null
|
|
7559
|
+
discovery_submitted_by: string | null
|
|
7560
|
+
id: string
|
|
7561
|
+
initial_fee: number | null
|
|
7562
|
+
monthly_fee: number | null
|
|
7563
|
+
organization_id: string
|
|
7564
|
+
payment_link_sent_at: string | null
|
|
7565
|
+
payment_received_at: string | null
|
|
7566
|
+
proposal_data: Json | null
|
|
7567
|
+
proposal_generated_at: string | null
|
|
7568
|
+
proposal_pdf_url: string | null
|
|
7569
|
+
proposal_reviewed_at: string | null
|
|
7570
|
+
proposal_reviewed_by: string | null
|
|
7571
|
+
proposal_sent_at: string | null
|
|
7572
|
+
proposal_signed_at: string | null
|
|
7573
|
+
proposal_status: string | null
|
|
7574
|
+
signature_envelope_id: string | null
|
|
7575
|
+
source_list_id: string | null
|
|
7576
|
+
source_type: string | null
|
|
7577
|
+
stripe_payment_id: string | null
|
|
7578
|
+
stripe_payment_link: string | null
|
|
7579
|
+
stripe_payment_link_id: string | null
|
|
7580
|
+
stripe_subscription_id: string | null
|
|
7581
|
+
updated_at: string
|
|
7582
|
+
}
|
|
7583
|
+
Insert: {
|
|
7584
|
+
activity_log?: Json
|
|
7585
|
+
cached_stage?: string | null
|
|
7586
|
+
closed_lost_at?: string | null
|
|
7587
|
+
closed_lost_reason?: string | null
|
|
7588
|
+
contact_email: string
|
|
7589
|
+
contact_id?: string | null
|
|
7590
|
+
created_at?: string
|
|
7591
|
+
discovery_data?: Json | null
|
|
7592
|
+
discovery_submitted_at?: string | null
|
|
7593
|
+
discovery_submitted_by?: string | null
|
|
7594
|
+
id?: string
|
|
7595
|
+
initial_fee?: number | null
|
|
7596
|
+
monthly_fee?: number | null
|
|
7597
|
+
organization_id: string
|
|
7598
|
+
payment_link_sent_at?: string | null
|
|
7599
|
+
payment_received_at?: string | null
|
|
7600
|
+
proposal_data?: Json | null
|
|
7601
|
+
proposal_generated_at?: string | null
|
|
7602
|
+
proposal_pdf_url?: string | null
|
|
7603
|
+
proposal_reviewed_at?: string | null
|
|
7604
|
+
proposal_reviewed_by?: string | null
|
|
7605
|
+
proposal_sent_at?: string | null
|
|
7606
|
+
proposal_signed_at?: string | null
|
|
7607
|
+
proposal_status?: string | null
|
|
7608
|
+
signature_envelope_id?: string | null
|
|
7609
|
+
source_list_id?: string | null
|
|
7610
|
+
source_type?: string | null
|
|
7611
|
+
stripe_payment_id?: string | null
|
|
7612
|
+
stripe_payment_link?: string | null
|
|
7613
|
+
stripe_payment_link_id?: string | null
|
|
7614
|
+
stripe_subscription_id?: string | null
|
|
7615
|
+
updated_at?: string
|
|
7616
|
+
}
|
|
7617
|
+
Update: {
|
|
7618
|
+
activity_log?: Json
|
|
7619
|
+
cached_stage?: string | null
|
|
7620
|
+
closed_lost_at?: string | null
|
|
7621
|
+
closed_lost_reason?: string | null
|
|
7622
|
+
contact_email?: string
|
|
7623
|
+
contact_id?: string | null
|
|
7624
|
+
created_at?: string
|
|
7625
|
+
discovery_data?: Json | null
|
|
7626
|
+
discovery_submitted_at?: string | null
|
|
7627
|
+
discovery_submitted_by?: string | null
|
|
7628
|
+
id?: string
|
|
7629
|
+
initial_fee?: number | null
|
|
7630
|
+
monthly_fee?: number | null
|
|
7631
|
+
organization_id?: string
|
|
7632
|
+
payment_link_sent_at?: string | null
|
|
7633
|
+
payment_received_at?: string | null
|
|
7634
|
+
proposal_data?: Json | null
|
|
7635
|
+
proposal_generated_at?: string | null
|
|
7636
|
+
proposal_pdf_url?: string | null
|
|
7637
|
+
proposal_reviewed_at?: string | null
|
|
7638
|
+
proposal_reviewed_by?: string | null
|
|
7639
|
+
proposal_sent_at?: string | null
|
|
7640
|
+
proposal_signed_at?: string | null
|
|
7641
|
+
proposal_status?: string | null
|
|
7642
|
+
signature_envelope_id?: string | null
|
|
7643
|
+
source_list_id?: string | null
|
|
7644
|
+
source_type?: string | null
|
|
7645
|
+
stripe_payment_id?: string | null
|
|
7646
|
+
stripe_payment_link?: string | null
|
|
7647
|
+
stripe_payment_link_id?: string | null
|
|
7648
|
+
stripe_subscription_id?: string | null
|
|
7649
|
+
updated_at?: string
|
|
7650
|
+
}
|
|
7651
|
+
Relationships: [
|
|
7652
|
+
{
|
|
7653
|
+
foreignKeyName: "acq_deals_contact_id_fkey"
|
|
7654
|
+
columns: ["contact_id"]
|
|
7655
|
+
isOneToOne: false
|
|
7656
|
+
referencedRelation: "acq_contacts"
|
|
7657
|
+
referencedColumns: ["id"]
|
|
7658
|
+
},
|
|
7659
|
+
{
|
|
7660
|
+
foreignKeyName: "acq_deals_organization_id_fkey"
|
|
7661
|
+
columns: ["organization_id"]
|
|
7662
|
+
isOneToOne: false
|
|
7663
|
+
referencedRelation: "organizations"
|
|
7664
|
+
referencedColumns: ["id"]
|
|
7665
|
+
},
|
|
7666
|
+
{
|
|
7667
|
+
foreignKeyName: "acq_deals_source_list_id_fkey"
|
|
7668
|
+
columns: ["source_list_id"]
|
|
7669
|
+
isOneToOne: false
|
|
7670
|
+
referencedRelation: "acq_lists"
|
|
7671
|
+
referencedColumns: ["id"]
|
|
7672
|
+
},
|
|
7673
|
+
]
|
|
7674
|
+
}
|
|
7675
|
+
acq_list_members: {
|
|
7676
|
+
Row: {
|
|
7677
|
+
added_at: string
|
|
7678
|
+
added_by: string | null
|
|
7679
|
+
contact_id: string
|
|
7680
|
+
id: string
|
|
7681
|
+
list_id: string
|
|
7682
|
+
}
|
|
7683
|
+
Insert: {
|
|
7684
|
+
added_at?: string
|
|
7685
|
+
added_by?: string | null
|
|
7686
|
+
contact_id: string
|
|
7687
|
+
id?: string
|
|
7688
|
+
list_id: string
|
|
7689
|
+
}
|
|
7690
|
+
Update: {
|
|
7691
|
+
added_at?: string
|
|
7692
|
+
added_by?: string | null
|
|
7693
|
+
contact_id?: string
|
|
7694
|
+
id?: string
|
|
7695
|
+
list_id?: string
|
|
7696
|
+
}
|
|
7697
|
+
Relationships: [
|
|
7698
|
+
{
|
|
7699
|
+
foreignKeyName: "acq_list_members_contact_id_fkey"
|
|
7700
|
+
columns: ["contact_id"]
|
|
7701
|
+
isOneToOne: false
|
|
7702
|
+
referencedRelation: "acq_contacts"
|
|
7703
|
+
referencedColumns: ["id"]
|
|
7704
|
+
},
|
|
7705
|
+
{
|
|
7706
|
+
foreignKeyName: "acq_list_members_list_id_fkey"
|
|
7707
|
+
columns: ["list_id"]
|
|
7708
|
+
isOneToOne: false
|
|
7709
|
+
referencedRelation: "acq_lists"
|
|
7710
|
+
referencedColumns: ["id"]
|
|
7711
|
+
},
|
|
7712
|
+
]
|
|
7713
|
+
}
|
|
7714
|
+
acq_lists: {
|
|
7715
|
+
Row: {
|
|
7716
|
+
batch_ids: string[]
|
|
7717
|
+
completed_at: string | null
|
|
7718
|
+
created_at: string
|
|
7719
|
+
description: string | null
|
|
7720
|
+
id: string
|
|
7721
|
+
instantly_campaign_id: string | null
|
|
7722
|
+
launched_at: string | null
|
|
7723
|
+
metadata: Json
|
|
7724
|
+
name: string
|
|
7725
|
+
organization_id: string
|
|
7726
|
+
status: string
|
|
7727
|
+
type: string
|
|
7728
|
+
}
|
|
7729
|
+
Insert: {
|
|
7730
|
+
batch_ids?: string[]
|
|
7731
|
+
completed_at?: string | null
|
|
7732
|
+
created_at?: string
|
|
7733
|
+
description?: string | null
|
|
7734
|
+
id?: string
|
|
7735
|
+
instantly_campaign_id?: string | null
|
|
7736
|
+
launched_at?: string | null
|
|
7737
|
+
metadata?: Json
|
|
7738
|
+
name: string
|
|
7739
|
+
organization_id: string
|
|
7740
|
+
status?: string
|
|
7741
|
+
type?: string
|
|
7742
|
+
}
|
|
7743
|
+
Update: {
|
|
7744
|
+
batch_ids?: string[]
|
|
7745
|
+
completed_at?: string | null
|
|
7746
|
+
created_at?: string
|
|
7747
|
+
description?: string | null
|
|
7748
|
+
id?: string
|
|
7749
|
+
instantly_campaign_id?: string | null
|
|
7750
|
+
launched_at?: string | null
|
|
7751
|
+
metadata?: Json
|
|
7752
|
+
name?: string
|
|
7753
|
+
organization_id?: string
|
|
7754
|
+
status?: string
|
|
7755
|
+
type?: string
|
|
7756
|
+
}
|
|
7757
|
+
Relationships: [
|
|
7758
|
+
{
|
|
7759
|
+
foreignKeyName: "acq_lists_organization_id_fkey"
|
|
7760
|
+
columns: ["organization_id"]
|
|
7761
|
+
isOneToOne: false
|
|
7762
|
+
referencedRelation: "organizations"
|
|
7763
|
+
referencedColumns: ["id"]
|
|
7764
|
+
},
|
|
7765
|
+
]
|
|
7766
|
+
}
|
|
7767
|
+
acq_seo_metrics: {
|
|
7768
|
+
Row: {
|
|
7769
|
+
ai_citations: Json | null
|
|
7770
|
+
avg_position: number | null
|
|
7771
|
+
clicks: number | null
|
|
7772
|
+
created_at: string
|
|
7773
|
+
cta_clicks: number | null
|
|
7774
|
+
ctr: number | null
|
|
7775
|
+
data_point_count: number | null
|
|
7776
|
+
faq_count: number | null
|
|
7777
|
+
form_submissions: number | null
|
|
7778
|
+
id: string
|
|
7779
|
+
impressions: number | null
|
|
7780
|
+
organization_id: string
|
|
7781
|
+
period: string
|
|
7782
|
+
quality_score: number | null
|
|
7783
|
+
readability: number | null
|
|
7784
|
+
scroll_100: number | null
|
|
7785
|
+
scroll_25: number | null
|
|
7786
|
+
scroll_50: number | null
|
|
7787
|
+
scroll_75: number | null
|
|
7788
|
+
seo_page_id: string
|
|
7789
|
+
word_count: number | null
|
|
7790
|
+
}
|
|
7791
|
+
Insert: {
|
|
7792
|
+
ai_citations?: Json | null
|
|
7793
|
+
avg_position?: number | null
|
|
7794
|
+
clicks?: number | null
|
|
7795
|
+
created_at?: string
|
|
7796
|
+
cta_clicks?: number | null
|
|
7797
|
+
ctr?: number | null
|
|
7798
|
+
data_point_count?: number | null
|
|
7799
|
+
faq_count?: number | null
|
|
7800
|
+
form_submissions?: number | null
|
|
7801
|
+
id?: string
|
|
7802
|
+
impressions?: number | null
|
|
7803
|
+
organization_id: string
|
|
7804
|
+
period: string
|
|
7805
|
+
quality_score?: number | null
|
|
7806
|
+
readability?: number | null
|
|
7807
|
+
scroll_100?: number | null
|
|
7808
|
+
scroll_25?: number | null
|
|
7809
|
+
scroll_50?: number | null
|
|
7810
|
+
scroll_75?: number | null
|
|
7811
|
+
seo_page_id: string
|
|
7812
|
+
word_count?: number | null
|
|
7813
|
+
}
|
|
7814
|
+
Update: {
|
|
7815
|
+
ai_citations?: Json | null
|
|
7816
|
+
avg_position?: number | null
|
|
7817
|
+
clicks?: number | null
|
|
7818
|
+
created_at?: string
|
|
7819
|
+
cta_clicks?: number | null
|
|
7820
|
+
ctr?: number | null
|
|
7821
|
+
data_point_count?: number | null
|
|
7822
|
+
faq_count?: number | null
|
|
7823
|
+
form_submissions?: number | null
|
|
7824
|
+
id?: string
|
|
7825
|
+
impressions?: number | null
|
|
7826
|
+
organization_id?: string
|
|
7827
|
+
period?: string
|
|
7828
|
+
quality_score?: number | null
|
|
7829
|
+
readability?: number | null
|
|
7830
|
+
scroll_100?: number | null
|
|
7831
|
+
scroll_25?: number | null
|
|
7832
|
+
scroll_50?: number | null
|
|
7833
|
+
scroll_75?: number | null
|
|
7834
|
+
seo_page_id?: string
|
|
7835
|
+
word_count?: number | null
|
|
7836
|
+
}
|
|
7837
|
+
Relationships: [
|
|
7838
|
+
{
|
|
7839
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey"
|
|
7840
|
+
columns: ["organization_id"]
|
|
7841
|
+
isOneToOne: false
|
|
7842
|
+
referencedRelation: "organizations"
|
|
7843
|
+
referencedColumns: ["id"]
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
|
|
7847
|
+
columns: ["seo_page_id"]
|
|
7848
|
+
isOneToOne: false
|
|
7849
|
+
referencedRelation: "acq_seo_pages"
|
|
7850
|
+
referencedColumns: ["id"]
|
|
7851
|
+
},
|
|
7852
|
+
]
|
|
7853
|
+
}
|
|
7854
|
+
acq_seo_pages: {
|
|
7855
|
+
Row: {
|
|
7856
|
+
city: string | null
|
|
7857
|
+
content: Json | null
|
|
7858
|
+
created_at: string
|
|
7859
|
+
faq_items: Json | null
|
|
7860
|
+
hero_image_url: string | null
|
|
7861
|
+
id: string
|
|
7862
|
+
internal_links: Json | null
|
|
7863
|
+
local_data: Json | null
|
|
7864
|
+
meta_description: string | null
|
|
7865
|
+
organization_id: string
|
|
7866
|
+
page_type: string
|
|
7867
|
+
published_at: string | null
|
|
7868
|
+
refreshed_at: string | null
|
|
7869
|
+
schema_markup: Json | null
|
|
7870
|
+
slug: string
|
|
7871
|
+
state: string | null
|
|
7872
|
+
status: string
|
|
7873
|
+
title: string
|
|
7874
|
+
updated_at: string
|
|
7875
|
+
use_case: string | null
|
|
7876
|
+
vertical: string
|
|
7877
|
+
}
|
|
7878
|
+
Insert: {
|
|
7879
|
+
city?: string | null
|
|
7880
|
+
content?: Json | null
|
|
7881
|
+
created_at?: string
|
|
7882
|
+
faq_items?: Json | null
|
|
7883
|
+
hero_image_url?: string | null
|
|
7884
|
+
id?: string
|
|
7885
|
+
internal_links?: Json | null
|
|
7886
|
+
local_data?: Json | null
|
|
7887
|
+
meta_description?: string | null
|
|
7888
|
+
organization_id: string
|
|
7889
|
+
page_type: string
|
|
7890
|
+
published_at?: string | null
|
|
7891
|
+
refreshed_at?: string | null
|
|
7892
|
+
schema_markup?: Json | null
|
|
7893
|
+
slug: string
|
|
7894
|
+
state?: string | null
|
|
7895
|
+
status?: string
|
|
7896
|
+
title: string
|
|
7897
|
+
updated_at?: string
|
|
7898
|
+
use_case?: string | null
|
|
7899
|
+
vertical: string
|
|
7900
|
+
}
|
|
7901
|
+
Update: {
|
|
7902
|
+
city?: string | null
|
|
7903
|
+
content?: Json | null
|
|
7904
|
+
created_at?: string
|
|
7905
|
+
faq_items?: Json | null
|
|
7906
|
+
hero_image_url?: string | null
|
|
7907
|
+
id?: string
|
|
7908
|
+
internal_links?: Json | null
|
|
7909
|
+
local_data?: Json | null
|
|
7910
|
+
meta_description?: string | null
|
|
7911
|
+
organization_id?: string
|
|
7912
|
+
page_type?: string
|
|
7913
|
+
published_at?: string | null
|
|
7914
|
+
refreshed_at?: string | null
|
|
7915
|
+
schema_markup?: Json | null
|
|
7916
|
+
slug?: string
|
|
7917
|
+
state?: string | null
|
|
7918
|
+
status?: string
|
|
7919
|
+
title?: string
|
|
7920
|
+
updated_at?: string
|
|
7921
|
+
use_case?: string | null
|
|
7922
|
+
vertical?: string
|
|
7923
|
+
}
|
|
7924
|
+
Relationships: [
|
|
7925
|
+
{
|
|
7926
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey"
|
|
7927
|
+
columns: ["organization_id"]
|
|
7928
|
+
isOneToOne: false
|
|
7929
|
+
referencedRelation: "organizations"
|
|
7930
|
+
referencedColumns: ["id"]
|
|
7931
|
+
},
|
|
7932
|
+
]
|
|
7933
|
+
}
|
|
7934
|
+
acq_social_posts: {
|
|
7935
|
+
Row: {
|
|
7936
|
+
author_name: string
|
|
7937
|
+
author_url: string | null
|
|
7938
|
+
comments_count: number
|
|
7939
|
+
created_at: string
|
|
7940
|
+
discovered_at: string
|
|
7941
|
+
engagement_count: number
|
|
7942
|
+
feedback: string | null
|
|
7943
|
+
final_response: string | null
|
|
7944
|
+
fully_reviewed: boolean
|
|
7945
|
+
id: string
|
|
7946
|
+
initial_draft: string | null
|
|
7947
|
+
matched_keywords: string[]
|
|
7948
|
+
matched_query: string | null
|
|
7949
|
+
metadata: Json
|
|
7950
|
+
organization_id: string
|
|
7951
|
+
platform: string
|
|
7952
|
+
platform_post_id: string
|
|
7953
|
+
post_text: string
|
|
7954
|
+
post_title: string
|
|
7955
|
+
post_url: string
|
|
7956
|
+
posted_at: string
|
|
7957
|
+
relevance_score: number
|
|
7958
|
+
responded_at: string | null
|
|
7959
|
+
reviewed_at: string | null
|
|
7960
|
+
skip_reason: string | null
|
|
7961
|
+
source_category: string | null
|
|
7962
|
+
status: string
|
|
7963
|
+
updated_at: string
|
|
7964
|
+
}
|
|
7965
|
+
Insert: {
|
|
7966
|
+
author_name: string
|
|
7967
|
+
author_url?: string | null
|
|
7968
|
+
comments_count?: number
|
|
7969
|
+
created_at?: string
|
|
7970
|
+
discovered_at?: string
|
|
7971
|
+
engagement_count?: number
|
|
7972
|
+
feedback?: string | null
|
|
7973
|
+
final_response?: string | null
|
|
7974
|
+
fully_reviewed?: boolean
|
|
7975
|
+
id?: string
|
|
7976
|
+
initial_draft?: string | null
|
|
7977
|
+
matched_keywords?: string[]
|
|
7978
|
+
matched_query?: string | null
|
|
7979
|
+
metadata?: Json
|
|
7980
|
+
organization_id: string
|
|
7981
|
+
platform: string
|
|
7982
|
+
platform_post_id: string
|
|
7983
|
+
post_text: string
|
|
7984
|
+
post_title: string
|
|
7985
|
+
post_url: string
|
|
7986
|
+
posted_at: string
|
|
7987
|
+
relevance_score?: number
|
|
7988
|
+
responded_at?: string | null
|
|
7989
|
+
reviewed_at?: string | null
|
|
7990
|
+
skip_reason?: string | null
|
|
7991
|
+
source_category?: string | null
|
|
7992
|
+
status?: string
|
|
7993
|
+
updated_at?: string
|
|
7994
|
+
}
|
|
7995
|
+
Update: {
|
|
7996
|
+
author_name?: string
|
|
7997
|
+
author_url?: string | null
|
|
7998
|
+
comments_count?: number
|
|
7999
|
+
created_at?: string
|
|
8000
|
+
discovered_at?: string
|
|
8001
|
+
engagement_count?: number
|
|
8002
|
+
feedback?: string | null
|
|
8003
|
+
final_response?: string | null
|
|
8004
|
+
fully_reviewed?: boolean
|
|
8005
|
+
id?: string
|
|
8006
|
+
initial_draft?: string | null
|
|
8007
|
+
matched_keywords?: string[]
|
|
8008
|
+
matched_query?: string | null
|
|
8009
|
+
metadata?: Json
|
|
8010
|
+
organization_id?: string
|
|
8011
|
+
platform?: string
|
|
8012
|
+
platform_post_id?: string
|
|
8013
|
+
post_text?: string
|
|
8014
|
+
post_title?: string
|
|
8015
|
+
post_url?: string
|
|
8016
|
+
posted_at?: string
|
|
8017
|
+
relevance_score?: number
|
|
8018
|
+
responded_at?: string | null
|
|
8019
|
+
reviewed_at?: string | null
|
|
8020
|
+
skip_reason?: string | null
|
|
8021
|
+
source_category?: string | null
|
|
8022
|
+
status?: string
|
|
8023
|
+
updated_at?: string
|
|
8024
|
+
}
|
|
8025
|
+
Relationships: [
|
|
8026
|
+
{
|
|
8027
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey"
|
|
8028
|
+
columns: ["organization_id"]
|
|
8029
|
+
isOneToOne: false
|
|
8030
|
+
referencedRelation: "organizations"
|
|
8031
|
+
referencedColumns: ["id"]
|
|
8032
|
+
},
|
|
8033
|
+
]
|
|
8034
|
+
}
|
|
8035
|
+
activities: {
|
|
8036
|
+
Row: {
|
|
8037
|
+
activity_type: string
|
|
8038
|
+
actor_id: string | null
|
|
8039
|
+
actor_type: string | null
|
|
8040
|
+
created_at: string
|
|
8041
|
+
description: string | null
|
|
8042
|
+
entity_id: string
|
|
8043
|
+
entity_name: string | null
|
|
8044
|
+
entity_type: string
|
|
8045
|
+
id: string
|
|
8046
|
+
metadata: Json | null
|
|
8047
|
+
occurred_at: string
|
|
8048
|
+
organization_id: string
|
|
8049
|
+
status: string
|
|
8050
|
+
title: string
|
|
8051
|
+
}
|
|
8052
|
+
Insert: {
|
|
8053
|
+
activity_type: string
|
|
8054
|
+
actor_id?: string | null
|
|
8055
|
+
actor_type?: string | null
|
|
8056
|
+
created_at?: string
|
|
8057
|
+
description?: string | null
|
|
8058
|
+
entity_id: string
|
|
8059
|
+
entity_name?: string | null
|
|
8060
|
+
entity_type: string
|
|
8061
|
+
id?: string
|
|
8062
|
+
metadata?: Json | null
|
|
8063
|
+
occurred_at?: string
|
|
8064
|
+
organization_id: string
|
|
8065
|
+
status: string
|
|
8066
|
+
title: string
|
|
8067
|
+
}
|
|
8068
|
+
Update: {
|
|
8069
|
+
activity_type?: string
|
|
8070
|
+
actor_id?: string | null
|
|
8071
|
+
actor_type?: string | null
|
|
8072
|
+
created_at?: string
|
|
8073
|
+
description?: string | null
|
|
8074
|
+
entity_id?: string
|
|
8075
|
+
entity_name?: string | null
|
|
8076
|
+
entity_type?: string
|
|
8077
|
+
id?: string
|
|
8078
|
+
metadata?: Json | null
|
|
8079
|
+
occurred_at?: string
|
|
8080
|
+
organization_id?: string
|
|
8081
|
+
status?: string
|
|
8082
|
+
title?: string
|
|
8083
|
+
}
|
|
8084
|
+
Relationships: [
|
|
8085
|
+
{
|
|
8086
|
+
foreignKeyName: "activities_organization_id_fkey"
|
|
8087
|
+
columns: ["organization_id"]
|
|
8088
|
+
isOneToOne: false
|
|
8089
|
+
referencedRelation: "organizations"
|
|
8090
|
+
referencedColumns: ["id"]
|
|
8091
|
+
},
|
|
8092
|
+
]
|
|
8093
|
+
}
|
|
8094
|
+
api_keys: {
|
|
8095
|
+
Row: {
|
|
8096
|
+
created_at: string | null
|
|
8097
|
+
id: string
|
|
8098
|
+
key_hash: string
|
|
8099
|
+
last_used_at: string | null
|
|
8100
|
+
name: string
|
|
8101
|
+
organization_id: string
|
|
8102
|
+
}
|
|
8103
|
+
Insert: {
|
|
8104
|
+
created_at?: string | null
|
|
8105
|
+
id?: string
|
|
8106
|
+
key_hash: string
|
|
8107
|
+
last_used_at?: string | null
|
|
8108
|
+
name: string
|
|
8109
|
+
organization_id: string
|
|
8110
|
+
}
|
|
8111
|
+
Update: {
|
|
8112
|
+
created_at?: string | null
|
|
8113
|
+
id?: string
|
|
8114
|
+
key_hash?: string
|
|
8115
|
+
last_used_at?: string | null
|
|
8116
|
+
name?: string
|
|
8117
|
+
organization_id?: string
|
|
8118
|
+
}
|
|
8119
|
+
Relationships: [
|
|
8120
|
+
{
|
|
8121
|
+
foreignKeyName: "api_keys_organization_id_fkey"
|
|
8122
|
+
columns: ["organization_id"]
|
|
8123
|
+
isOneToOne: false
|
|
8124
|
+
referencedRelation: "organizations"
|
|
8125
|
+
referencedColumns: ["id"]
|
|
8126
|
+
},
|
|
8127
|
+
]
|
|
8128
|
+
}
|
|
8129
|
+
calibration_projects: {
|
|
8130
|
+
Row: {
|
|
8131
|
+
created_at: string | null
|
|
8132
|
+
description: string | null
|
|
8133
|
+
id: string
|
|
8134
|
+
name: string
|
|
8135
|
+
organization_id: string
|
|
8136
|
+
resource_id: string
|
|
8137
|
+
resource_type: string
|
|
8138
|
+
updated_at: string | null
|
|
8139
|
+
}
|
|
8140
|
+
Insert: {
|
|
8141
|
+
created_at?: string | null
|
|
8142
|
+
description?: string | null
|
|
8143
|
+
id?: string
|
|
8144
|
+
name: string
|
|
8145
|
+
organization_id: string
|
|
8146
|
+
resource_id: string
|
|
8147
|
+
resource_type: string
|
|
8148
|
+
updated_at?: string | null
|
|
8149
|
+
}
|
|
8150
|
+
Update: {
|
|
8151
|
+
created_at?: string | null
|
|
8152
|
+
description?: string | null
|
|
8153
|
+
id?: string
|
|
8154
|
+
name?: string
|
|
8155
|
+
organization_id?: string
|
|
8156
|
+
resource_id?: string
|
|
8157
|
+
resource_type?: string
|
|
8158
|
+
updated_at?: string | null
|
|
8159
|
+
}
|
|
8160
|
+
Relationships: [
|
|
8161
|
+
{
|
|
8162
|
+
foreignKeyName: "calibration_projects_organization_id_fkey"
|
|
8163
|
+
columns: ["organization_id"]
|
|
8164
|
+
isOneToOne: false
|
|
8165
|
+
referencedRelation: "organizations"
|
|
8166
|
+
referencedColumns: ["id"]
|
|
8167
|
+
},
|
|
8168
|
+
]
|
|
8169
|
+
}
|
|
8170
|
+
calibration_runs: {
|
|
8171
|
+
Row: {
|
|
8172
|
+
completed_at: string | null
|
|
8173
|
+
config_variants: Json
|
|
8174
|
+
created_at: string | null
|
|
8175
|
+
description: string | null
|
|
8176
|
+
execution_mode: string
|
|
8177
|
+
grader_model: string | null
|
|
8178
|
+
grading_rubric: Json | null
|
|
8179
|
+
id: string
|
|
8180
|
+
name: string
|
|
8181
|
+
organization_id: string
|
|
8182
|
+
project_id: string
|
|
8183
|
+
results: Json
|
|
8184
|
+
status: string
|
|
8185
|
+
test_inputs: Json
|
|
8186
|
+
}
|
|
8187
|
+
Insert: {
|
|
8188
|
+
completed_at?: string | null
|
|
8189
|
+
config_variants: Json
|
|
8190
|
+
created_at?: string | null
|
|
8191
|
+
description?: string | null
|
|
8192
|
+
execution_mode?: string
|
|
8193
|
+
grader_model?: string | null
|
|
8194
|
+
grading_rubric?: Json | null
|
|
8195
|
+
id?: string
|
|
8196
|
+
name: string
|
|
8197
|
+
organization_id: string
|
|
8198
|
+
project_id: string
|
|
8199
|
+
results?: Json
|
|
8200
|
+
status?: string
|
|
8201
|
+
test_inputs: Json
|
|
8202
|
+
}
|
|
8203
|
+
Update: {
|
|
8204
|
+
completed_at?: string | null
|
|
8205
|
+
config_variants?: Json
|
|
8206
|
+
created_at?: string | null
|
|
8207
|
+
description?: string | null
|
|
8208
|
+
execution_mode?: string
|
|
8209
|
+
grader_model?: string | null
|
|
8210
|
+
grading_rubric?: Json | null
|
|
8211
|
+
id?: string
|
|
8212
|
+
name?: string
|
|
8213
|
+
organization_id?: string
|
|
8214
|
+
project_id?: string
|
|
8215
|
+
results?: Json
|
|
8216
|
+
status?: string
|
|
8217
|
+
test_inputs?: Json
|
|
8218
|
+
}
|
|
8219
|
+
Relationships: [
|
|
8220
|
+
{
|
|
8221
|
+
foreignKeyName: "calibration_runs_organization_id_fkey"
|
|
8222
|
+
columns: ["organization_id"]
|
|
8223
|
+
isOneToOne: false
|
|
8224
|
+
referencedRelation: "organizations"
|
|
8225
|
+
referencedColumns: ["id"]
|
|
8226
|
+
},
|
|
8227
|
+
{
|
|
8228
|
+
foreignKeyName: "calibration_runs_project_id_fkey"
|
|
8229
|
+
columns: ["project_id"]
|
|
8230
|
+
isOneToOne: false
|
|
8231
|
+
referencedRelation: "calibration_projects"
|
|
8232
|
+
referencedColumns: ["id"]
|
|
8233
|
+
},
|
|
8234
|
+
]
|
|
8235
|
+
}
|
|
8236
|
+
command_queue: {
|
|
8237
|
+
Row: {
|
|
8238
|
+
action_payload: Json | null
|
|
8239
|
+
actions: Json
|
|
8240
|
+
completed_at: string | null
|
|
8241
|
+
completed_by: string | null
|
|
8242
|
+
context: Json
|
|
8243
|
+
created_at: string
|
|
8244
|
+
description: string | null
|
|
8245
|
+
expires_at: string | null
|
|
8246
|
+
human_checkpoint: string | null
|
|
8247
|
+
id: string
|
|
8248
|
+
idempotency_key: string | null
|
|
8249
|
+
metadata: Json | null
|
|
8250
|
+
organization_id: string
|
|
8251
|
+
origin_execution_id: string
|
|
8252
|
+
origin_resource_id: string
|
|
8253
|
+
origin_resource_type: string
|
|
8254
|
+
priority: number
|
|
8255
|
+
selected_action: string | null
|
|
8256
|
+
status: string
|
|
8257
|
+
target_execution_id: string | null
|
|
8258
|
+
target_resource_id: string | null
|
|
8259
|
+
target_resource_type: string | null
|
|
8260
|
+
}
|
|
8261
|
+
Insert: {
|
|
8262
|
+
action_payload?: Json | null
|
|
8263
|
+
actions: Json
|
|
8264
|
+
completed_at?: string | null
|
|
8265
|
+
completed_by?: string | null
|
|
8266
|
+
context: Json
|
|
8267
|
+
created_at?: string
|
|
8268
|
+
description?: string | null
|
|
8269
|
+
expires_at?: string | null
|
|
8270
|
+
human_checkpoint?: string | null
|
|
8271
|
+
id?: string
|
|
8272
|
+
idempotency_key?: string | null
|
|
8273
|
+
metadata?: Json | null
|
|
8274
|
+
organization_id: string
|
|
8275
|
+
origin_execution_id: string
|
|
8276
|
+
origin_resource_id: string
|
|
8277
|
+
origin_resource_type: string
|
|
8278
|
+
priority?: number
|
|
8279
|
+
selected_action?: string | null
|
|
8280
|
+
status?: string
|
|
8281
|
+
target_execution_id?: string | null
|
|
8282
|
+
target_resource_id?: string | null
|
|
8283
|
+
target_resource_type?: string | null
|
|
8284
|
+
}
|
|
8285
|
+
Update: {
|
|
8286
|
+
action_payload?: Json | null
|
|
8287
|
+
actions?: Json
|
|
8288
|
+
completed_at?: string | null
|
|
8289
|
+
completed_by?: string | null
|
|
8290
|
+
context?: Json
|
|
8291
|
+
created_at?: string
|
|
8292
|
+
description?: string | null
|
|
8293
|
+
expires_at?: string | null
|
|
8294
|
+
human_checkpoint?: string | null
|
|
8295
|
+
id?: string
|
|
8296
|
+
idempotency_key?: string | null
|
|
8297
|
+
metadata?: Json | null
|
|
8298
|
+
organization_id?: string
|
|
8299
|
+
origin_execution_id?: string
|
|
8300
|
+
origin_resource_id?: string
|
|
8301
|
+
origin_resource_type?: string
|
|
8302
|
+
priority?: number
|
|
8303
|
+
selected_action?: string | null
|
|
8304
|
+
status?: string
|
|
8305
|
+
target_execution_id?: string | null
|
|
8306
|
+
target_resource_id?: string | null
|
|
8307
|
+
target_resource_type?: string | null
|
|
8308
|
+
}
|
|
8309
|
+
Relationships: [
|
|
8310
|
+
{
|
|
8311
|
+
foreignKeyName: "command_queue_completed_by_fkey"
|
|
8312
|
+
columns: ["completed_by"]
|
|
8313
|
+
isOneToOne: false
|
|
8314
|
+
referencedRelation: "users"
|
|
8315
|
+
referencedColumns: ["id"]
|
|
8316
|
+
},
|
|
8317
|
+
{
|
|
8318
|
+
foreignKeyName: "command_queue_organization_id_fkey"
|
|
8319
|
+
columns: ["organization_id"]
|
|
8320
|
+
isOneToOne: false
|
|
8321
|
+
referencedRelation: "organizations"
|
|
8322
|
+
referencedColumns: ["id"]
|
|
8323
|
+
},
|
|
8324
|
+
{
|
|
8325
|
+
foreignKeyName: "command_queue_target_execution_id_fkey"
|
|
8326
|
+
columns: ["target_execution_id"]
|
|
8327
|
+
isOneToOne: false
|
|
8328
|
+
referencedRelation: "execution_logs"
|
|
8329
|
+
referencedColumns: ["execution_id"]
|
|
8330
|
+
},
|
|
8331
|
+
]
|
|
8332
|
+
}
|
|
8333
|
+
credentials: {
|
|
8334
|
+
Row: {
|
|
8335
|
+
created_at: string
|
|
8336
|
+
created_by: string | null
|
|
8337
|
+
encrypted_value: string
|
|
8338
|
+
id: string
|
|
8339
|
+
name: string
|
|
8340
|
+
organization_id: string
|
|
8341
|
+
provider: string | null
|
|
8342
|
+
type: string
|
|
8343
|
+
updated_at: string
|
|
8344
|
+
}
|
|
8345
|
+
Insert: {
|
|
8346
|
+
created_at?: string
|
|
8347
|
+
created_by?: string | null
|
|
8348
|
+
encrypted_value: string
|
|
8349
|
+
id?: string
|
|
8350
|
+
name: string
|
|
8351
|
+
organization_id: string
|
|
8352
|
+
provider?: string | null
|
|
8353
|
+
type?: string
|
|
8354
|
+
updated_at?: string
|
|
8355
|
+
}
|
|
8356
|
+
Update: {
|
|
8357
|
+
created_at?: string
|
|
8358
|
+
created_by?: string | null
|
|
8359
|
+
encrypted_value?: string
|
|
8360
|
+
id?: string
|
|
8361
|
+
name?: string
|
|
8362
|
+
organization_id?: string
|
|
8363
|
+
provider?: string | null
|
|
8364
|
+
type?: string
|
|
8365
|
+
updated_at?: string
|
|
8366
|
+
}
|
|
8367
|
+
Relationships: [
|
|
8368
|
+
{
|
|
8369
|
+
foreignKeyName: "credentials_created_by_fkey"
|
|
8370
|
+
columns: ["created_by"]
|
|
8371
|
+
isOneToOne: false
|
|
8372
|
+
referencedRelation: "users"
|
|
8373
|
+
referencedColumns: ["id"]
|
|
8374
|
+
},
|
|
8375
|
+
{
|
|
8376
|
+
foreignKeyName: "credentials_organization_id_fkey"
|
|
8377
|
+
columns: ["organization_id"]
|
|
8378
|
+
isOneToOne: false
|
|
8379
|
+
referencedRelation: "organizations"
|
|
8380
|
+
referencedColumns: ["id"]
|
|
8381
|
+
},
|
|
8382
|
+
]
|
|
8383
|
+
}
|
|
8384
|
+
deployments: {
|
|
8385
|
+
Row: {
|
|
8386
|
+
compiled_docs: Json | null
|
|
8387
|
+
created_at: string
|
|
8388
|
+
deployment_version: string | null
|
|
8389
|
+
documentation: Json | null
|
|
8390
|
+
error_message: string | null
|
|
8391
|
+
id: string
|
|
8392
|
+
organization_id: string
|
|
8393
|
+
pid: number | null
|
|
8394
|
+
port: number | null
|
|
8395
|
+
sdk_version: string
|
|
8396
|
+
status: string
|
|
8397
|
+
tarball_path: string | null
|
|
8398
|
+
updated_at: string
|
|
8399
|
+
}
|
|
8400
|
+
Insert: {
|
|
8401
|
+
compiled_docs?: Json | null
|
|
8402
|
+
created_at?: string
|
|
8403
|
+
deployment_version?: string | null
|
|
8404
|
+
documentation?: Json | null
|
|
8405
|
+
error_message?: string | null
|
|
8406
|
+
id?: string
|
|
8407
|
+
organization_id: string
|
|
8408
|
+
pid?: number | null
|
|
8409
|
+
port?: number | null
|
|
8410
|
+
sdk_version: string
|
|
8411
|
+
status?: string
|
|
8412
|
+
tarball_path?: string | null
|
|
8413
|
+
updated_at?: string
|
|
8414
|
+
}
|
|
8415
|
+
Update: {
|
|
8416
|
+
compiled_docs?: Json | null
|
|
8417
|
+
created_at?: string
|
|
8418
|
+
deployment_version?: string | null
|
|
8419
|
+
documentation?: Json | null
|
|
8420
|
+
error_message?: string | null
|
|
8421
|
+
id?: string
|
|
8422
|
+
organization_id?: string
|
|
8423
|
+
pid?: number | null
|
|
8424
|
+
port?: number | null
|
|
8425
|
+
sdk_version?: string
|
|
8426
|
+
status?: string
|
|
8427
|
+
tarball_path?: string | null
|
|
8428
|
+
updated_at?: string
|
|
8429
|
+
}
|
|
8430
|
+
Relationships: [
|
|
8431
|
+
{
|
|
8432
|
+
foreignKeyName: "deployments_organization_id_fkey"
|
|
8433
|
+
columns: ["organization_id"]
|
|
8434
|
+
isOneToOne: false
|
|
8435
|
+
referencedRelation: "organizations"
|
|
8436
|
+
referencedColumns: ["id"]
|
|
8437
|
+
},
|
|
8438
|
+
]
|
|
8439
|
+
}
|
|
8440
|
+
execution_errors: {
|
|
8441
|
+
Row: {
|
|
8442
|
+
created_at: string | null
|
|
8443
|
+
error_category: string
|
|
8444
|
+
error_message: string
|
|
8445
|
+
error_severity: string
|
|
8446
|
+
error_stack_trace: string | null
|
|
8447
|
+
error_type: string
|
|
8448
|
+
execution_id: string
|
|
8449
|
+
id: string
|
|
8450
|
+
metadata: Json | null
|
|
8451
|
+
occurred_at: string
|
|
8452
|
+
organization_id: string
|
|
8453
|
+
resolved: boolean
|
|
8454
|
+
resolved_at: string | null
|
|
8455
|
+
resolved_by: string | null
|
|
8456
|
+
}
|
|
8457
|
+
Insert: {
|
|
8458
|
+
created_at?: string | null
|
|
8459
|
+
error_category: string
|
|
8460
|
+
error_message: string
|
|
8461
|
+
error_severity: string
|
|
8462
|
+
error_stack_trace?: string | null
|
|
8463
|
+
error_type: string
|
|
8464
|
+
execution_id: string
|
|
8465
|
+
id?: string
|
|
8466
|
+
metadata?: Json | null
|
|
8467
|
+
occurred_at?: string
|
|
8468
|
+
organization_id: string
|
|
8469
|
+
resolved?: boolean
|
|
8470
|
+
resolved_at?: string | null
|
|
8471
|
+
resolved_by?: string | null
|
|
8472
|
+
}
|
|
8473
|
+
Update: {
|
|
8474
|
+
created_at?: string | null
|
|
8475
|
+
error_category?: string
|
|
8476
|
+
error_message?: string
|
|
8477
|
+
error_severity?: string
|
|
8478
|
+
error_stack_trace?: string | null
|
|
8479
|
+
error_type?: string
|
|
8480
|
+
execution_id?: string
|
|
8481
|
+
id?: string
|
|
8482
|
+
metadata?: Json | null
|
|
8483
|
+
occurred_at?: string
|
|
8484
|
+
organization_id?: string
|
|
8485
|
+
resolved?: boolean
|
|
8486
|
+
resolved_at?: string | null
|
|
8487
|
+
resolved_by?: string | null
|
|
8488
|
+
}
|
|
8489
|
+
Relationships: [
|
|
8490
|
+
{
|
|
8491
|
+
foreignKeyName: "execution_errors_execution_id_fkey"
|
|
8492
|
+
columns: ["execution_id"]
|
|
8493
|
+
isOneToOne: false
|
|
8494
|
+
referencedRelation: "execution_logs"
|
|
8495
|
+
referencedColumns: ["execution_id"]
|
|
8496
|
+
},
|
|
8497
|
+
{
|
|
8498
|
+
foreignKeyName: "execution_errors_organization_id_fkey"
|
|
8499
|
+
columns: ["organization_id"]
|
|
8500
|
+
isOneToOne: false
|
|
8501
|
+
referencedRelation: "organizations"
|
|
8502
|
+
referencedColumns: ["id"]
|
|
8503
|
+
},
|
|
8504
|
+
{
|
|
8505
|
+
foreignKeyName: "execution_errors_resolved_by_fkey"
|
|
8506
|
+
columns: ["resolved_by"]
|
|
8507
|
+
isOneToOne: false
|
|
8508
|
+
referencedRelation: "users"
|
|
8509
|
+
referencedColumns: ["id"]
|
|
8510
|
+
},
|
|
8511
|
+
]
|
|
8512
|
+
}
|
|
8513
|
+
execution_logs: {
|
|
8514
|
+
Row: {
|
|
8515
|
+
api_version: string | null
|
|
8516
|
+
completed_at: string | null
|
|
8517
|
+
created_at: string | null
|
|
8518
|
+
error: string | null
|
|
8519
|
+
execution_id: string
|
|
8520
|
+
input: Json | null
|
|
8521
|
+
last_heartbeat_at: string | null
|
|
8522
|
+
logs: Json | null
|
|
8523
|
+
organization_id: string
|
|
8524
|
+
origin_execution_id: string | null
|
|
8525
|
+
output: Json | null
|
|
8526
|
+
resource_id: string
|
|
8527
|
+
resource_status: string
|
|
8528
|
+
resource_type: string
|
|
8529
|
+
resource_version: string | null
|
|
8530
|
+
sdk_version: string | null
|
|
8531
|
+
session_id: string | null
|
|
8532
|
+
session_turn_number: number | null
|
|
8533
|
+
started_at: string
|
|
8534
|
+
status: string
|
|
8535
|
+
trigger_type: string | null
|
|
8536
|
+
updated_at: string | null
|
|
8537
|
+
user_id: string | null
|
|
8538
|
+
}
|
|
8539
|
+
Insert: {
|
|
8540
|
+
api_version?: string | null
|
|
8541
|
+
completed_at?: string | null
|
|
8542
|
+
created_at?: string | null
|
|
8543
|
+
error?: string | null
|
|
8544
|
+
execution_id?: string
|
|
8545
|
+
input?: Json | null
|
|
8546
|
+
last_heartbeat_at?: string | null
|
|
8547
|
+
logs?: Json | null
|
|
8548
|
+
organization_id: string
|
|
8549
|
+
origin_execution_id?: string | null
|
|
8550
|
+
output?: Json | null
|
|
8551
|
+
resource_id: string
|
|
8552
|
+
resource_status?: string
|
|
8553
|
+
resource_type?: string
|
|
8554
|
+
resource_version?: string | null
|
|
8555
|
+
sdk_version?: string | null
|
|
8556
|
+
session_id?: string | null
|
|
8557
|
+
session_turn_number?: number | null
|
|
8558
|
+
started_at?: string
|
|
8559
|
+
status: string
|
|
8560
|
+
trigger_type?: string | null
|
|
8561
|
+
updated_at?: string | null
|
|
8562
|
+
user_id?: string | null
|
|
8563
|
+
}
|
|
8564
|
+
Update: {
|
|
8565
|
+
api_version?: string | null
|
|
8566
|
+
completed_at?: string | null
|
|
8567
|
+
created_at?: string | null
|
|
8568
|
+
error?: string | null
|
|
8569
|
+
execution_id?: string
|
|
8570
|
+
input?: Json | null
|
|
8571
|
+
last_heartbeat_at?: string | null
|
|
8572
|
+
logs?: Json | null
|
|
8573
|
+
organization_id?: string
|
|
8574
|
+
origin_execution_id?: string | null
|
|
8575
|
+
output?: Json | null
|
|
8576
|
+
resource_id?: string
|
|
8577
|
+
resource_status?: string
|
|
8578
|
+
resource_type?: string
|
|
8579
|
+
resource_version?: string | null
|
|
8580
|
+
sdk_version?: string | null
|
|
8581
|
+
session_id?: string | null
|
|
8582
|
+
session_turn_number?: number | null
|
|
8583
|
+
started_at?: string
|
|
8584
|
+
status?: string
|
|
8585
|
+
trigger_type?: string | null
|
|
8586
|
+
updated_at?: string | null
|
|
8587
|
+
user_id?: string | null
|
|
8588
|
+
}
|
|
8589
|
+
Relationships: [
|
|
8590
|
+
{
|
|
8591
|
+
foreignKeyName: "execution_history_organization_id_fkey"
|
|
8592
|
+
columns: ["organization_id"]
|
|
8593
|
+
isOneToOne: false
|
|
8594
|
+
referencedRelation: "organizations"
|
|
8595
|
+
referencedColumns: ["id"]
|
|
8596
|
+
},
|
|
8597
|
+
{
|
|
8598
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey"
|
|
8599
|
+
columns: ["origin_execution_id"]
|
|
8600
|
+
isOneToOne: false
|
|
8601
|
+
referencedRelation: "execution_logs"
|
|
8602
|
+
referencedColumns: ["execution_id"]
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
foreignKeyName: "execution_logs_session_id_fkey"
|
|
8606
|
+
columns: ["session_id"]
|
|
8607
|
+
isOneToOne: false
|
|
8608
|
+
referencedRelation: "sessions"
|
|
8609
|
+
referencedColumns: ["session_id"]
|
|
8610
|
+
},
|
|
8611
|
+
{
|
|
8612
|
+
foreignKeyName: "execution_logs_user_id_fkey"
|
|
8613
|
+
columns: ["user_id"]
|
|
8614
|
+
isOneToOne: false
|
|
8615
|
+
referencedRelation: "users"
|
|
8616
|
+
referencedColumns: ["id"]
|
|
8617
|
+
},
|
|
8618
|
+
]
|
|
8619
|
+
}
|
|
8620
|
+
execution_metrics: {
|
|
8621
|
+
Row: {
|
|
8622
|
+
ai_call_count: number
|
|
8623
|
+
ai_calls: Json | null
|
|
8624
|
+
automation_savings_usd: number | null
|
|
8625
|
+
created_at: string | null
|
|
8626
|
+
duration_ms: number | null
|
|
8627
|
+
execution_id: string
|
|
8628
|
+
organization_id: string
|
|
8629
|
+
resource_id: string
|
|
8630
|
+
total_cost_usd: number
|
|
8631
|
+
total_input_tokens: number
|
|
8632
|
+
total_output_tokens: number
|
|
8633
|
+
}
|
|
8634
|
+
Insert: {
|
|
8635
|
+
ai_call_count: number
|
|
8636
|
+
ai_calls?: Json | null
|
|
8637
|
+
automation_savings_usd?: number | null
|
|
8638
|
+
created_at?: string | null
|
|
8639
|
+
duration_ms?: number | null
|
|
8640
|
+
execution_id: string
|
|
8641
|
+
organization_id: string
|
|
8642
|
+
resource_id: string
|
|
8643
|
+
total_cost_usd: number
|
|
8644
|
+
total_input_tokens: number
|
|
8645
|
+
total_output_tokens: number
|
|
8646
|
+
}
|
|
8647
|
+
Update: {
|
|
8648
|
+
ai_call_count?: number
|
|
8649
|
+
ai_calls?: Json | null
|
|
8650
|
+
automation_savings_usd?: number | null
|
|
8651
|
+
created_at?: string | null
|
|
8652
|
+
duration_ms?: number | null
|
|
8653
|
+
execution_id?: string
|
|
8654
|
+
organization_id?: string
|
|
8655
|
+
resource_id?: string
|
|
8656
|
+
total_cost_usd?: number
|
|
8657
|
+
total_input_tokens?: number
|
|
8658
|
+
total_output_tokens?: number
|
|
8659
|
+
}
|
|
8660
|
+
Relationships: [
|
|
8661
|
+
{
|
|
8662
|
+
foreignKeyName: "execution_metrics_execution_id_fkey"
|
|
8663
|
+
columns: ["execution_id"]
|
|
8664
|
+
isOneToOne: true
|
|
8665
|
+
referencedRelation: "execution_logs"
|
|
8666
|
+
referencedColumns: ["execution_id"]
|
|
8667
|
+
},
|
|
8668
|
+
{
|
|
8669
|
+
foreignKeyName: "execution_metrics_organization_id_fkey"
|
|
8670
|
+
columns: ["organization_id"]
|
|
8671
|
+
isOneToOne: false
|
|
8672
|
+
referencedRelation: "organizations"
|
|
8673
|
+
referencedColumns: ["id"]
|
|
8674
|
+
},
|
|
8675
|
+
]
|
|
8676
|
+
}
|
|
8677
|
+
notifications: {
|
|
8678
|
+
Row: {
|
|
8679
|
+
action_url: string | null
|
|
8680
|
+
category: string
|
|
8681
|
+
created_at: string | null
|
|
8682
|
+
id: string
|
|
8683
|
+
message: string
|
|
8684
|
+
organization_id: string
|
|
8685
|
+
read: boolean | null
|
|
8686
|
+
read_at: string | null
|
|
8687
|
+
title: string
|
|
8688
|
+
user_id: string
|
|
8689
|
+
}
|
|
8690
|
+
Insert: {
|
|
8691
|
+
action_url?: string | null
|
|
8692
|
+
category: string
|
|
8693
|
+
created_at?: string | null
|
|
8694
|
+
id?: string
|
|
8695
|
+
message: string
|
|
8696
|
+
organization_id: string
|
|
8697
|
+
read?: boolean | null
|
|
8698
|
+
read_at?: string | null
|
|
8699
|
+
title: string
|
|
8700
|
+
user_id: string
|
|
8701
|
+
}
|
|
8702
|
+
Update: {
|
|
8703
|
+
action_url?: string | null
|
|
8704
|
+
category?: string
|
|
8705
|
+
created_at?: string | null
|
|
8706
|
+
id?: string
|
|
8707
|
+
message?: string
|
|
8708
|
+
organization_id?: string
|
|
8709
|
+
read?: boolean | null
|
|
8710
|
+
read_at?: string | null
|
|
8711
|
+
title?: string
|
|
8712
|
+
user_id?: string
|
|
8713
|
+
}
|
|
8714
|
+
Relationships: [
|
|
8715
|
+
{
|
|
8716
|
+
foreignKeyName: "notifications_organization_id_fkey"
|
|
8717
|
+
columns: ["organization_id"]
|
|
8718
|
+
isOneToOne: false
|
|
8719
|
+
referencedRelation: "organizations"
|
|
8720
|
+
referencedColumns: ["id"]
|
|
8721
|
+
},
|
|
8722
|
+
{
|
|
8723
|
+
foreignKeyName: "notifications_user_id_fkey"
|
|
8724
|
+
columns: ["user_id"]
|
|
8725
|
+
isOneToOne: false
|
|
8726
|
+
referencedRelation: "users"
|
|
8727
|
+
referencedColumns: ["id"]
|
|
8728
|
+
},
|
|
8729
|
+
]
|
|
8730
|
+
}
|
|
8731
|
+
org_invitations: {
|
|
8732
|
+
Row: {
|
|
8733
|
+
accept_invitation_url: string | null
|
|
8734
|
+
accepted_at: string | null
|
|
8735
|
+
created_at: string | null
|
|
8736
|
+
email: string
|
|
8737
|
+
expires_at: string
|
|
8738
|
+
id: string
|
|
8739
|
+
invitation_state: string | null
|
|
8740
|
+
invitation_token: string | null
|
|
8741
|
+
inviter_user_id: string | null
|
|
8742
|
+
organization_id: string | null
|
|
8743
|
+
revoked_at: string | null
|
|
8744
|
+
role_slug: string | null
|
|
8745
|
+
updated_at: string | null
|
|
8746
|
+
workos_invitation_id: string
|
|
8747
|
+
}
|
|
8748
|
+
Insert: {
|
|
8749
|
+
accept_invitation_url?: string | null
|
|
8750
|
+
accepted_at?: string | null
|
|
8751
|
+
created_at?: string | null
|
|
8752
|
+
email: string
|
|
8753
|
+
expires_at: string
|
|
8754
|
+
id?: string
|
|
8755
|
+
invitation_state?: string | null
|
|
8756
|
+
invitation_token?: string | null
|
|
8757
|
+
inviter_user_id?: string | null
|
|
8758
|
+
organization_id?: string | null
|
|
8759
|
+
revoked_at?: string | null
|
|
8760
|
+
role_slug?: string | null
|
|
8761
|
+
updated_at?: string | null
|
|
8762
|
+
workos_invitation_id: string
|
|
8763
|
+
}
|
|
8764
|
+
Update: {
|
|
8765
|
+
accept_invitation_url?: string | null
|
|
8766
|
+
accepted_at?: string | null
|
|
8767
|
+
created_at?: string | null
|
|
8768
|
+
email?: string
|
|
8769
|
+
expires_at?: string
|
|
8770
|
+
id?: string
|
|
8771
|
+
invitation_state?: string | null
|
|
8772
|
+
invitation_token?: string | null
|
|
8773
|
+
inviter_user_id?: string | null
|
|
8774
|
+
organization_id?: string | null
|
|
8775
|
+
revoked_at?: string | null
|
|
8776
|
+
role_slug?: string | null
|
|
8777
|
+
updated_at?: string | null
|
|
8778
|
+
workos_invitation_id?: string
|
|
8779
|
+
}
|
|
8780
|
+
Relationships: [
|
|
8781
|
+
{
|
|
8782
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey"
|
|
8783
|
+
columns: ["inviter_user_id"]
|
|
8784
|
+
isOneToOne: false
|
|
8785
|
+
referencedRelation: "users"
|
|
8786
|
+
referencedColumns: ["id"]
|
|
8787
|
+
},
|
|
8788
|
+
{
|
|
8789
|
+
foreignKeyName: "org_invitations_organization_id_fkey"
|
|
8790
|
+
columns: ["organization_id"]
|
|
8791
|
+
isOneToOne: false
|
|
8792
|
+
referencedRelation: "organizations"
|
|
8793
|
+
referencedColumns: ["id"]
|
|
8794
|
+
},
|
|
8795
|
+
]
|
|
8796
|
+
}
|
|
8797
|
+
org_memberships: {
|
|
8798
|
+
Row: {
|
|
8799
|
+
config: Json
|
|
8800
|
+
created_at: string | null
|
|
8801
|
+
id: string
|
|
8802
|
+
membership_status: string | null
|
|
8803
|
+
organization_id: string
|
|
8804
|
+
role_slug: string | null
|
|
8805
|
+
updated_at: string | null
|
|
8806
|
+
user_id: string
|
|
8807
|
+
workos_membership_id: string | null
|
|
8808
|
+
}
|
|
8809
|
+
Insert: {
|
|
8810
|
+
config?: Json
|
|
8811
|
+
created_at?: string | null
|
|
8812
|
+
id?: string
|
|
8813
|
+
membership_status?: string | null
|
|
8814
|
+
organization_id: string
|
|
8815
|
+
role_slug?: string | null
|
|
8816
|
+
updated_at?: string | null
|
|
8817
|
+
user_id: string
|
|
8818
|
+
workos_membership_id?: string | null
|
|
8819
|
+
}
|
|
8820
|
+
Update: {
|
|
8821
|
+
config?: Json
|
|
8822
|
+
created_at?: string | null
|
|
8823
|
+
id?: string
|
|
8824
|
+
membership_status?: string | null
|
|
8825
|
+
organization_id?: string
|
|
8826
|
+
role_slug?: string | null
|
|
8827
|
+
updated_at?: string | null
|
|
8828
|
+
user_id?: string
|
|
8829
|
+
workos_membership_id?: string | null
|
|
8830
|
+
}
|
|
8831
|
+
Relationships: [
|
|
8832
|
+
{
|
|
8833
|
+
foreignKeyName: "org_memberships_organization_id_fkey"
|
|
8834
|
+
columns: ["organization_id"]
|
|
8835
|
+
isOneToOne: false
|
|
8836
|
+
referencedRelation: "organizations"
|
|
8837
|
+
referencedColumns: ["id"]
|
|
8838
|
+
},
|
|
8839
|
+
{
|
|
8840
|
+
foreignKeyName: "org_memberships_user_id_fkey"
|
|
8841
|
+
columns: ["user_id"]
|
|
8842
|
+
isOneToOne: false
|
|
8843
|
+
referencedRelation: "users"
|
|
8844
|
+
referencedColumns: ["id"]
|
|
8845
|
+
},
|
|
8846
|
+
]
|
|
8847
|
+
}
|
|
8848
|
+
organizations: {
|
|
8849
|
+
Row: {
|
|
8850
|
+
config: Json
|
|
8851
|
+
created_at: string
|
|
8852
|
+
id: string
|
|
8853
|
+
is_test: boolean
|
|
8854
|
+
metadata: Json
|
|
8855
|
+
name: string
|
|
8856
|
+
status: string
|
|
8857
|
+
updated_at: string
|
|
8858
|
+
workos_org_id: string
|
|
8859
|
+
}
|
|
8860
|
+
Insert: {
|
|
8861
|
+
config?: Json
|
|
8862
|
+
created_at?: string
|
|
8863
|
+
id?: string
|
|
8864
|
+
is_test?: boolean
|
|
8865
|
+
metadata?: Json
|
|
8866
|
+
name: string
|
|
8867
|
+
status?: string
|
|
8868
|
+
updated_at?: string
|
|
8869
|
+
workos_org_id: string
|
|
8870
|
+
}
|
|
8871
|
+
Update: {
|
|
8872
|
+
config?: Json
|
|
8873
|
+
created_at?: string
|
|
8874
|
+
id?: string
|
|
8875
|
+
is_test?: boolean
|
|
8876
|
+
metadata?: Json
|
|
8877
|
+
name?: string
|
|
8878
|
+
status?: string
|
|
8879
|
+
updated_at?: string
|
|
8880
|
+
workos_org_id?: string
|
|
8881
|
+
}
|
|
8882
|
+
Relationships: []
|
|
8883
|
+
}
|
|
8884
|
+
prj_milestones: {
|
|
8885
|
+
Row: {
|
|
8886
|
+
checklist: Json | null
|
|
8887
|
+
completed_at: string | null
|
|
8888
|
+
created_at: string
|
|
8889
|
+
description: string | null
|
|
8890
|
+
due_date: string | null
|
|
8891
|
+
id: string
|
|
8892
|
+
metadata: Json | null
|
|
8893
|
+
name: string
|
|
8894
|
+
organization_id: string
|
|
8895
|
+
project_id: string
|
|
8896
|
+
sequence: number
|
|
8897
|
+
status: string
|
|
8898
|
+
updated_at: string
|
|
8899
|
+
}
|
|
8900
|
+
Insert: {
|
|
8901
|
+
checklist?: Json | null
|
|
8902
|
+
completed_at?: string | null
|
|
8903
|
+
created_at?: string
|
|
8904
|
+
description?: string | null
|
|
8905
|
+
due_date?: string | null
|
|
8906
|
+
id?: string
|
|
8907
|
+
metadata?: Json | null
|
|
8908
|
+
name: string
|
|
8909
|
+
organization_id: string
|
|
8910
|
+
project_id: string
|
|
8911
|
+
sequence?: number
|
|
8912
|
+
status?: string
|
|
8913
|
+
updated_at?: string
|
|
8914
|
+
}
|
|
8915
|
+
Update: {
|
|
8916
|
+
checklist?: Json | null
|
|
8917
|
+
completed_at?: string | null
|
|
8918
|
+
created_at?: string
|
|
8919
|
+
description?: string | null
|
|
8920
|
+
due_date?: string | null
|
|
8921
|
+
id?: string
|
|
8922
|
+
metadata?: Json | null
|
|
8923
|
+
name?: string
|
|
8924
|
+
organization_id?: string
|
|
8925
|
+
project_id?: string
|
|
8926
|
+
sequence?: number
|
|
8927
|
+
status?: string
|
|
8928
|
+
updated_at?: string
|
|
8929
|
+
}
|
|
8930
|
+
Relationships: [
|
|
8931
|
+
{
|
|
8932
|
+
foreignKeyName: "prj_milestones_organization_id_fkey"
|
|
8933
|
+
columns: ["organization_id"]
|
|
8934
|
+
isOneToOne: false
|
|
8935
|
+
referencedRelation: "organizations"
|
|
8936
|
+
referencedColumns: ["id"]
|
|
8937
|
+
},
|
|
8938
|
+
{
|
|
8939
|
+
foreignKeyName: "prj_milestones_project_id_fkey"
|
|
8940
|
+
columns: ["project_id"]
|
|
8941
|
+
isOneToOne: false
|
|
8942
|
+
referencedRelation: "prj_projects"
|
|
8943
|
+
referencedColumns: ["id"]
|
|
8944
|
+
},
|
|
8945
|
+
]
|
|
8946
|
+
}
|
|
8947
|
+
prj_notes: {
|
|
8948
|
+
Row: {
|
|
8949
|
+
content: string
|
|
8950
|
+
created_at: string
|
|
8951
|
+
created_by: string | null
|
|
8952
|
+
id: string
|
|
8953
|
+
metadata: Json | null
|
|
8954
|
+
milestone_id: string | null
|
|
8955
|
+
occurred_at: string
|
|
8956
|
+
organization_id: string
|
|
8957
|
+
project_id: string
|
|
8958
|
+
summary: string | null
|
|
8959
|
+
task_id: string | null
|
|
8960
|
+
type: string
|
|
8961
|
+
}
|
|
8962
|
+
Insert: {
|
|
8963
|
+
content: string
|
|
8964
|
+
created_at?: string
|
|
8965
|
+
created_by?: string | null
|
|
8966
|
+
id?: string
|
|
8967
|
+
metadata?: Json | null
|
|
8968
|
+
milestone_id?: string | null
|
|
8969
|
+
occurred_at?: string
|
|
8970
|
+
organization_id: string
|
|
8971
|
+
project_id: string
|
|
8972
|
+
summary?: string | null
|
|
8973
|
+
task_id?: string | null
|
|
8974
|
+
type?: string
|
|
8975
|
+
}
|
|
8976
|
+
Update: {
|
|
8977
|
+
content?: string
|
|
8978
|
+
created_at?: string
|
|
8979
|
+
created_by?: string | null
|
|
8980
|
+
id?: string
|
|
8981
|
+
metadata?: Json | null
|
|
8982
|
+
milestone_id?: string | null
|
|
8983
|
+
occurred_at?: string
|
|
8984
|
+
organization_id?: string
|
|
8985
|
+
project_id?: string
|
|
8986
|
+
summary?: string | null
|
|
8987
|
+
task_id?: string | null
|
|
8988
|
+
type?: string
|
|
8989
|
+
}
|
|
8990
|
+
Relationships: [
|
|
8991
|
+
{
|
|
8992
|
+
foreignKeyName: "prj_notes_created_by_fkey"
|
|
8993
|
+
columns: ["created_by"]
|
|
8994
|
+
isOneToOne: false
|
|
8995
|
+
referencedRelation: "users"
|
|
8996
|
+
referencedColumns: ["id"]
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
foreignKeyName: "prj_notes_milestone_id_fkey"
|
|
9000
|
+
columns: ["milestone_id"]
|
|
9001
|
+
isOneToOne: false
|
|
9002
|
+
referencedRelation: "prj_milestones"
|
|
9003
|
+
referencedColumns: ["id"]
|
|
9004
|
+
},
|
|
9005
|
+
{
|
|
9006
|
+
foreignKeyName: "prj_notes_organization_id_fkey"
|
|
9007
|
+
columns: ["organization_id"]
|
|
9008
|
+
isOneToOne: false
|
|
9009
|
+
referencedRelation: "organizations"
|
|
9010
|
+
referencedColumns: ["id"]
|
|
9011
|
+
},
|
|
9012
|
+
{
|
|
9013
|
+
foreignKeyName: "prj_notes_project_id_fkey"
|
|
9014
|
+
columns: ["project_id"]
|
|
9015
|
+
isOneToOne: false
|
|
9016
|
+
referencedRelation: "prj_projects"
|
|
9017
|
+
referencedColumns: ["id"]
|
|
9018
|
+
},
|
|
9019
|
+
{
|
|
9020
|
+
foreignKeyName: "prj_notes_task_id_fkey"
|
|
9021
|
+
columns: ["task_id"]
|
|
9022
|
+
isOneToOne: false
|
|
9023
|
+
referencedRelation: "prj_tasks"
|
|
9024
|
+
referencedColumns: ["id"]
|
|
9025
|
+
},
|
|
9026
|
+
]
|
|
9027
|
+
}
|
|
9028
|
+
prj_projects: {
|
|
9029
|
+
Row: {
|
|
9030
|
+
actual_end_date: string | null
|
|
9031
|
+
client_company_id: string | null
|
|
9032
|
+
contract_value: number | null
|
|
9033
|
+
created_at: string
|
|
9034
|
+
deal_id: string | null
|
|
9035
|
+
description: string | null
|
|
9036
|
+
id: string
|
|
9037
|
+
kind: string
|
|
9038
|
+
metadata: Json | null
|
|
9039
|
+
name: string
|
|
9040
|
+
organization_id: string
|
|
9041
|
+
start_date: string | null
|
|
9042
|
+
status: string
|
|
9043
|
+
target_end_date: string | null
|
|
9044
|
+
updated_at: string
|
|
9045
|
+
}
|
|
9046
|
+
Insert: {
|
|
9047
|
+
actual_end_date?: string | null
|
|
9048
|
+
client_company_id?: string | null
|
|
9049
|
+
contract_value?: number | null
|
|
9050
|
+
created_at?: string
|
|
9051
|
+
deal_id?: string | null
|
|
9052
|
+
description?: string | null
|
|
9053
|
+
id?: string
|
|
9054
|
+
kind?: string
|
|
9055
|
+
metadata?: Json | null
|
|
9056
|
+
name: string
|
|
9057
|
+
organization_id: string
|
|
9058
|
+
start_date?: string | null
|
|
9059
|
+
status?: string
|
|
9060
|
+
target_end_date?: string | null
|
|
9061
|
+
updated_at?: string
|
|
9062
|
+
}
|
|
9063
|
+
Update: {
|
|
9064
|
+
actual_end_date?: string | null
|
|
9065
|
+
client_company_id?: string | null
|
|
9066
|
+
contract_value?: number | null
|
|
9067
|
+
created_at?: string
|
|
9068
|
+
deal_id?: string | null
|
|
9069
|
+
description?: string | null
|
|
9070
|
+
id?: string
|
|
9071
|
+
kind?: string
|
|
9072
|
+
metadata?: Json | null
|
|
9073
|
+
name?: string
|
|
9074
|
+
organization_id?: string
|
|
9075
|
+
start_date?: string | null
|
|
9076
|
+
status?: string
|
|
9077
|
+
target_end_date?: string | null
|
|
9078
|
+
updated_at?: string
|
|
9079
|
+
}
|
|
9080
|
+
Relationships: [
|
|
9081
|
+
{
|
|
9082
|
+
foreignKeyName: "prj_projects_client_company_id_fkey"
|
|
9083
|
+
columns: ["client_company_id"]
|
|
9084
|
+
isOneToOne: false
|
|
9085
|
+
referencedRelation: "acq_companies"
|
|
9086
|
+
referencedColumns: ["id"]
|
|
9087
|
+
},
|
|
9088
|
+
{
|
|
9089
|
+
foreignKeyName: "prj_projects_deal_id_fkey"
|
|
9090
|
+
columns: ["deal_id"]
|
|
9091
|
+
isOneToOne: false
|
|
9092
|
+
referencedRelation: "acq_deals"
|
|
9093
|
+
referencedColumns: ["id"]
|
|
9094
|
+
},
|
|
9095
|
+
{
|
|
9096
|
+
foreignKeyName: "prj_projects_organization_id_fkey"
|
|
9097
|
+
columns: ["organization_id"]
|
|
9098
|
+
isOneToOne: false
|
|
9099
|
+
referencedRelation: "organizations"
|
|
9100
|
+
referencedColumns: ["id"]
|
|
9101
|
+
},
|
|
9102
|
+
]
|
|
9103
|
+
}
|
|
9104
|
+
prj_tasks: {
|
|
9105
|
+
Row: {
|
|
9106
|
+
checklist: Json
|
|
9107
|
+
completed_at: string | null
|
|
9108
|
+
created_at: string
|
|
9109
|
+
description: string | null
|
|
9110
|
+
due_date: string | null
|
|
9111
|
+
file_url: string | null
|
|
9112
|
+
id: string
|
|
9113
|
+
metadata: Json | null
|
|
9114
|
+
milestone_id: string | null
|
|
9115
|
+
name: string
|
|
9116
|
+
organization_id: string
|
|
9117
|
+
parent_task_id: string | null
|
|
9118
|
+
project_id: string
|
|
9119
|
+
resume_context: Json | null
|
|
9120
|
+
status: string
|
|
9121
|
+
type: string
|
|
9122
|
+
updated_at: string
|
|
9123
|
+
}
|
|
9124
|
+
Insert: {
|
|
9125
|
+
checklist?: Json
|
|
9126
|
+
completed_at?: string | null
|
|
9127
|
+
created_at?: string
|
|
9128
|
+
description?: string | null
|
|
9129
|
+
due_date?: string | null
|
|
9130
|
+
file_url?: string | null
|
|
9131
|
+
id?: string
|
|
9132
|
+
metadata?: Json | null
|
|
9133
|
+
milestone_id?: string | null
|
|
9134
|
+
name: string
|
|
9135
|
+
organization_id: string
|
|
9136
|
+
parent_task_id?: string | null
|
|
9137
|
+
project_id: string
|
|
9138
|
+
resume_context?: Json | null
|
|
9139
|
+
status?: string
|
|
9140
|
+
type?: string
|
|
9141
|
+
updated_at?: string
|
|
9142
|
+
}
|
|
9143
|
+
Update: {
|
|
9144
|
+
checklist?: Json
|
|
9145
|
+
completed_at?: string | null
|
|
9146
|
+
created_at?: string
|
|
9147
|
+
description?: string | null
|
|
9148
|
+
due_date?: string | null
|
|
9149
|
+
file_url?: string | null
|
|
9150
|
+
id?: string
|
|
9151
|
+
metadata?: Json | null
|
|
9152
|
+
milestone_id?: string | null
|
|
9153
|
+
name?: string
|
|
9154
|
+
organization_id?: string
|
|
9155
|
+
parent_task_id?: string | null
|
|
9156
|
+
project_id?: string
|
|
9157
|
+
resume_context?: Json | null
|
|
9158
|
+
status?: string
|
|
9159
|
+
type?: string
|
|
9160
|
+
updated_at?: string
|
|
9161
|
+
}
|
|
9162
|
+
Relationships: [
|
|
9163
|
+
{
|
|
9164
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey"
|
|
9165
|
+
columns: ["milestone_id"]
|
|
9166
|
+
isOneToOne: false
|
|
9167
|
+
referencedRelation: "prj_milestones"
|
|
9168
|
+
referencedColumns: ["id"]
|
|
9169
|
+
},
|
|
9170
|
+
{
|
|
9171
|
+
foreignKeyName: "prj_tasks_organization_id_fkey"
|
|
9172
|
+
columns: ["organization_id"]
|
|
9173
|
+
isOneToOne: false
|
|
9174
|
+
referencedRelation: "organizations"
|
|
9175
|
+
referencedColumns: ["id"]
|
|
9176
|
+
},
|
|
9177
|
+
{
|
|
9178
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey"
|
|
9179
|
+
columns: ["parent_task_id"]
|
|
9180
|
+
isOneToOne: false
|
|
9181
|
+
referencedRelation: "prj_tasks"
|
|
9182
|
+
referencedColumns: ["id"]
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
foreignKeyName: "prj_tasks_project_id_fkey"
|
|
9186
|
+
columns: ["project_id"]
|
|
9187
|
+
isOneToOne: false
|
|
9188
|
+
referencedRelation: "prj_projects"
|
|
9189
|
+
referencedColumns: ["id"]
|
|
9190
|
+
},
|
|
9191
|
+
]
|
|
9192
|
+
}
|
|
9193
|
+
session_messages: {
|
|
9194
|
+
Row: {
|
|
9195
|
+
created_at: string | null
|
|
9196
|
+
id: string
|
|
9197
|
+
message: string
|
|
9198
|
+
message_index: number | null
|
|
9199
|
+
message_type: string | null
|
|
9200
|
+
metadata: Json | null
|
|
9201
|
+
role: string
|
|
9202
|
+
session_id: string
|
|
9203
|
+
session_turn_number: number
|
|
9204
|
+
}
|
|
9205
|
+
Insert: {
|
|
9206
|
+
created_at?: string | null
|
|
9207
|
+
id: string
|
|
9208
|
+
message: string
|
|
9209
|
+
message_index?: number | null
|
|
9210
|
+
message_type?: string | null
|
|
9211
|
+
metadata?: Json | null
|
|
9212
|
+
role: string
|
|
9213
|
+
session_id: string
|
|
9214
|
+
session_turn_number: number
|
|
9215
|
+
}
|
|
9216
|
+
Update: {
|
|
9217
|
+
created_at?: string | null
|
|
9218
|
+
id?: string
|
|
9219
|
+
message?: string
|
|
9220
|
+
message_index?: number | null
|
|
9221
|
+
message_type?: string | null
|
|
9222
|
+
metadata?: Json | null
|
|
9223
|
+
role?: string
|
|
9224
|
+
session_id?: string
|
|
9225
|
+
session_turn_number?: number
|
|
9226
|
+
}
|
|
9227
|
+
Relationships: [
|
|
9228
|
+
{
|
|
9229
|
+
foreignKeyName: "session_messages_session_id_fkey"
|
|
9230
|
+
columns: ["session_id"]
|
|
9231
|
+
isOneToOne: false
|
|
9232
|
+
referencedRelation: "sessions"
|
|
9233
|
+
referencedColumns: ["session_id"]
|
|
9234
|
+
},
|
|
9235
|
+
]
|
|
9236
|
+
}
|
|
9237
|
+
sessions: {
|
|
9238
|
+
Row: {
|
|
9239
|
+
context_window_size: number
|
|
9240
|
+
created_at: string | null
|
|
9241
|
+
cumulative_input_tokens: number
|
|
9242
|
+
cumulative_output_tokens: number
|
|
9243
|
+
deleted_at: string | null
|
|
9244
|
+
ended_at: string | null
|
|
9245
|
+
memory_snapshot: Json
|
|
9246
|
+
metadata: Json | null
|
|
9247
|
+
organization_id: string
|
|
9248
|
+
resource_id: string
|
|
9249
|
+
session_id: string
|
|
9250
|
+
session_total_turns: number | null
|
|
9251
|
+
updated_at: string | null
|
|
9252
|
+
user_id: string | null
|
|
9253
|
+
}
|
|
9254
|
+
Insert: {
|
|
9255
|
+
context_window_size?: number
|
|
9256
|
+
created_at?: string | null
|
|
9257
|
+
cumulative_input_tokens?: number
|
|
9258
|
+
cumulative_output_tokens?: number
|
|
9259
|
+
deleted_at?: string | null
|
|
9260
|
+
ended_at?: string | null
|
|
9261
|
+
memory_snapshot: Json
|
|
9262
|
+
metadata?: Json | null
|
|
9263
|
+
organization_id: string
|
|
9264
|
+
resource_id: string
|
|
9265
|
+
session_id?: string
|
|
9266
|
+
session_total_turns?: number | null
|
|
9267
|
+
updated_at?: string | null
|
|
9268
|
+
user_id?: string | null
|
|
9269
|
+
}
|
|
9270
|
+
Update: {
|
|
9271
|
+
context_window_size?: number
|
|
9272
|
+
created_at?: string | null
|
|
9273
|
+
cumulative_input_tokens?: number
|
|
9274
|
+
cumulative_output_tokens?: number
|
|
9275
|
+
deleted_at?: string | null
|
|
9276
|
+
ended_at?: string | null
|
|
9277
|
+
memory_snapshot?: Json
|
|
9278
|
+
metadata?: Json | null
|
|
9279
|
+
organization_id?: string
|
|
9280
|
+
resource_id?: string
|
|
9281
|
+
session_id?: string
|
|
9282
|
+
session_total_turns?: number | null
|
|
9283
|
+
updated_at?: string | null
|
|
9284
|
+
user_id?: string | null
|
|
9285
|
+
}
|
|
9286
|
+
Relationships: [
|
|
9287
|
+
{
|
|
9288
|
+
foreignKeyName: "fk_organization"
|
|
9289
|
+
columns: ["organization_id"]
|
|
9290
|
+
isOneToOne: false
|
|
9291
|
+
referencedRelation: "organizations"
|
|
9292
|
+
referencedColumns: ["id"]
|
|
9293
|
+
},
|
|
9294
|
+
{
|
|
9295
|
+
foreignKeyName: "fk_user"
|
|
9296
|
+
columns: ["user_id"]
|
|
9297
|
+
isOneToOne: false
|
|
9298
|
+
referencedRelation: "users"
|
|
9299
|
+
referencedColumns: ["id"]
|
|
9300
|
+
},
|
|
9301
|
+
]
|
|
9302
|
+
}
|
|
9303
|
+
task_schedules: {
|
|
9304
|
+
Row: {
|
|
9305
|
+
created_at: string
|
|
9306
|
+
current_step: number
|
|
9307
|
+
description: string | null
|
|
9308
|
+
id: string
|
|
9309
|
+
idempotency_key: string | null
|
|
9310
|
+
last_execution_id: string | null
|
|
9311
|
+
last_run_at: string | null
|
|
9312
|
+
max_retries: number
|
|
9313
|
+
metadata: Json | null
|
|
9314
|
+
name: string
|
|
9315
|
+
next_run_at: string | null
|
|
9316
|
+
organization_id: string
|
|
9317
|
+
origin_execution_id: string | null
|
|
9318
|
+
origin_resource_id: string | null
|
|
9319
|
+
origin_resource_type: string | null
|
|
9320
|
+
retry_count: number
|
|
9321
|
+
schedule_config: Json
|
|
9322
|
+
status: string
|
|
9323
|
+
target_resource_id: string
|
|
9324
|
+
target_resource_type: string
|
|
9325
|
+
updated_at: string
|
|
9326
|
+
}
|
|
9327
|
+
Insert: {
|
|
9328
|
+
created_at?: string
|
|
9329
|
+
current_step?: number
|
|
9330
|
+
description?: string | null
|
|
9331
|
+
id?: string
|
|
9332
|
+
idempotency_key?: string | null
|
|
9333
|
+
last_execution_id?: string | null
|
|
9334
|
+
last_run_at?: string | null
|
|
9335
|
+
max_retries?: number
|
|
9336
|
+
metadata?: Json | null
|
|
9337
|
+
name: string
|
|
9338
|
+
next_run_at?: string | null
|
|
9339
|
+
organization_id: string
|
|
9340
|
+
origin_execution_id?: string | null
|
|
9341
|
+
origin_resource_id?: string | null
|
|
9342
|
+
origin_resource_type?: string | null
|
|
9343
|
+
retry_count?: number
|
|
9344
|
+
schedule_config: Json
|
|
9345
|
+
status?: string
|
|
9346
|
+
target_resource_id: string
|
|
9347
|
+
target_resource_type: string
|
|
9348
|
+
updated_at?: string
|
|
9349
|
+
}
|
|
9350
|
+
Update: {
|
|
9351
|
+
created_at?: string
|
|
9352
|
+
current_step?: number
|
|
9353
|
+
description?: string | null
|
|
9354
|
+
id?: string
|
|
9355
|
+
idempotency_key?: string | null
|
|
9356
|
+
last_execution_id?: string | null
|
|
9357
|
+
last_run_at?: string | null
|
|
9358
|
+
max_retries?: number
|
|
9359
|
+
metadata?: Json | null
|
|
9360
|
+
name?: string
|
|
9361
|
+
next_run_at?: string | null
|
|
9362
|
+
organization_id?: string
|
|
9363
|
+
origin_execution_id?: string | null
|
|
9364
|
+
origin_resource_id?: string | null
|
|
9365
|
+
origin_resource_type?: string | null
|
|
9366
|
+
retry_count?: number
|
|
9367
|
+
schedule_config?: Json
|
|
9368
|
+
status?: string
|
|
9369
|
+
target_resource_id?: string
|
|
9370
|
+
target_resource_type?: string
|
|
9371
|
+
updated_at?: string
|
|
9372
|
+
}
|
|
9373
|
+
Relationships: [
|
|
9374
|
+
{
|
|
9375
|
+
foreignKeyName: "task_schedules_organization_id_fkey"
|
|
9376
|
+
columns: ["organization_id"]
|
|
9377
|
+
isOneToOne: false
|
|
9378
|
+
referencedRelation: "organizations"
|
|
9379
|
+
referencedColumns: ["id"]
|
|
9380
|
+
},
|
|
9381
|
+
]
|
|
9382
|
+
}
|
|
9383
|
+
users: {
|
|
9384
|
+
Row: {
|
|
9385
|
+
config: Json
|
|
9386
|
+
created_at: string
|
|
9387
|
+
display_name: string | null
|
|
9388
|
+
email: string
|
|
9389
|
+
first_name: string | null
|
|
9390
|
+
id: string
|
|
9391
|
+
is_active: boolean
|
|
9392
|
+
is_platform_admin: boolean | null
|
|
9393
|
+
last_login_at: string | null
|
|
9394
|
+
last_name: string | null
|
|
9395
|
+
last_visited_org: string | null
|
|
9396
|
+
profile_picture_url: string | null
|
|
9397
|
+
updated_at: string
|
|
9398
|
+
workos_user_id: string | null
|
|
9399
|
+
}
|
|
9400
|
+
Insert: {
|
|
9401
|
+
config?: Json
|
|
9402
|
+
created_at?: string
|
|
9403
|
+
display_name?: string | null
|
|
9404
|
+
email: string
|
|
9405
|
+
first_name?: string | null
|
|
9406
|
+
id?: string
|
|
9407
|
+
is_active?: boolean
|
|
9408
|
+
is_platform_admin?: boolean | null
|
|
9409
|
+
last_login_at?: string | null
|
|
9410
|
+
last_name?: string | null
|
|
9411
|
+
last_visited_org?: string | null
|
|
9412
|
+
profile_picture_url?: string | null
|
|
9413
|
+
updated_at?: string
|
|
9414
|
+
workos_user_id?: string | null
|
|
9415
|
+
}
|
|
9416
|
+
Update: {
|
|
9417
|
+
config?: Json
|
|
9418
|
+
created_at?: string
|
|
9419
|
+
display_name?: string | null
|
|
9420
|
+
email?: string
|
|
9421
|
+
first_name?: string | null
|
|
9422
|
+
id?: string
|
|
9423
|
+
is_active?: boolean
|
|
9424
|
+
is_platform_admin?: boolean | null
|
|
9425
|
+
last_login_at?: string | null
|
|
9426
|
+
last_name?: string | null
|
|
9427
|
+
last_visited_org?: string | null
|
|
9428
|
+
profile_picture_url?: string | null
|
|
9429
|
+
updated_at?: string
|
|
9430
|
+
workos_user_id?: string | null
|
|
9431
|
+
}
|
|
9432
|
+
Relationships: [
|
|
9433
|
+
{
|
|
9434
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey"
|
|
9435
|
+
columns: ["last_visited_org"]
|
|
9436
|
+
isOneToOne: false
|
|
9437
|
+
referencedRelation: "organizations"
|
|
9438
|
+
referencedColumns: ["id"]
|
|
9439
|
+
},
|
|
9440
|
+
]
|
|
9441
|
+
}
|
|
9442
|
+
webhook_endpoints: {
|
|
9443
|
+
Row: {
|
|
9444
|
+
created_at: string
|
|
9445
|
+
description: string | null
|
|
9446
|
+
id: string
|
|
9447
|
+
key: string
|
|
9448
|
+
last_triggered_at: string | null
|
|
9449
|
+
name: string
|
|
9450
|
+
organization_id: string
|
|
9451
|
+
request_count: number
|
|
9452
|
+
resource_id: string | null
|
|
9453
|
+
status: string
|
|
9454
|
+
updated_at: string
|
|
9455
|
+
}
|
|
9456
|
+
Insert: {
|
|
9457
|
+
created_at?: string
|
|
9458
|
+
description?: string | null
|
|
9459
|
+
id?: string
|
|
9460
|
+
key: string
|
|
9461
|
+
last_triggered_at?: string | null
|
|
9462
|
+
name: string
|
|
9463
|
+
organization_id: string
|
|
9464
|
+
request_count?: number
|
|
9465
|
+
resource_id?: string | null
|
|
9466
|
+
status?: string
|
|
9467
|
+
updated_at?: string
|
|
9468
|
+
}
|
|
9469
|
+
Update: {
|
|
9470
|
+
created_at?: string
|
|
9471
|
+
description?: string | null
|
|
9472
|
+
id?: string
|
|
9473
|
+
key?: string
|
|
9474
|
+
last_triggered_at?: string | null
|
|
9475
|
+
name?: string
|
|
9476
|
+
organization_id?: string
|
|
9477
|
+
request_count?: number
|
|
9478
|
+
resource_id?: string | null
|
|
9479
|
+
status?: string
|
|
9480
|
+
updated_at?: string
|
|
9481
|
+
}
|
|
9482
|
+
Relationships: [
|
|
9483
|
+
{
|
|
9484
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey"
|
|
9485
|
+
columns: ["organization_id"]
|
|
9486
|
+
isOneToOne: false
|
|
9487
|
+
referencedRelation: "organizations"
|
|
9488
|
+
referencedColumns: ["id"]
|
|
9489
|
+
},
|
|
9490
|
+
]
|
|
9491
|
+
}
|
|
9492
|
+
}
|
|
9493
|
+
Views: {
|
|
9494
|
+
[_ in never]: never
|
|
9495
|
+
}
|
|
9496
|
+
Functions: {
|
|
9497
|
+
acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
|
|
9498
|
+
append_deal_activity: {
|
|
9499
|
+
Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
|
|
9500
|
+
Returns: undefined
|
|
9501
|
+
}
|
|
9502
|
+
auth_jwt_claims: { Args: never; Returns: Json }
|
|
9503
|
+
auth_uid_safe: { Args: never; Returns: string }
|
|
9504
|
+
current_user_is_platform_admin: { Args: never; Returns: boolean }
|
|
9505
|
+
current_user_supabase_id: { Args: never; Returns: string }
|
|
9506
|
+
detect_stalled_executions: { Args: never; Returns: undefined }
|
|
9507
|
+
execute_session_turn: {
|
|
9508
|
+
Args: { p_session_id: string }
|
|
9509
|
+
Returns: {
|
|
9510
|
+
created_at: string
|
|
9511
|
+
ended_at: string
|
|
9512
|
+
memory_snapshot: Json
|
|
9513
|
+
metadata: Json
|
|
9514
|
+
organization_id: string
|
|
9515
|
+
resource_id: string
|
|
9516
|
+
session_id: string
|
|
9517
|
+
session_total_turns: number
|
|
9518
|
+
updated_at: string
|
|
9519
|
+
user_id: string
|
|
9520
|
+
}[]
|
|
9521
|
+
}
|
|
9522
|
+
get_storage_org_id: { Args: { file_path: string }; Returns: string }
|
|
9523
|
+
get_workos_user_id: { Args: never; Returns: string }
|
|
9524
|
+
is_org_admin: { Args: { org_id: string }; Returns: boolean }
|
|
9525
|
+
is_org_member: { Args: { org_id: string }; Returns: boolean }
|
|
9526
|
+
link_workos_membership_on_accept: {
|
|
9527
|
+
Args: {
|
|
9528
|
+
p_email: string
|
|
9529
|
+
p_organization_id: string
|
|
9530
|
+
p_workos_membership_id: string
|
|
9531
|
+
}
|
|
9532
|
+
Returns: boolean
|
|
9533
|
+
}
|
|
9534
|
+
pre_provision_invited_user: {
|
|
9535
|
+
Args: {
|
|
9536
|
+
p_email: string
|
|
9537
|
+
p_organization_id: string
|
|
9538
|
+
p_role_slug?: string
|
|
9539
|
+
}
|
|
9540
|
+
Returns: Json
|
|
9541
|
+
}
|
|
9542
|
+
process_due_schedules: { Args: never; Returns: Json }
|
|
9543
|
+
upsert_user_profile: {
|
|
9544
|
+
Args: never
|
|
9545
|
+
Returns: {
|
|
9546
|
+
profile_display_name: string
|
|
9547
|
+
profile_email: string
|
|
9548
|
+
profile_id: string
|
|
9549
|
+
profile_workos_user_id: string
|
|
9550
|
+
}[]
|
|
9551
|
+
}
|
|
9552
|
+
}
|
|
9553
|
+
Enums: {
|
|
9554
|
+
[_ in never]: never
|
|
9555
|
+
}
|
|
9556
|
+
CompositeTypes: {
|
|
9557
|
+
[_ in never]: never
|
|
9558
|
+
}
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9561
|
+
|
|
9562
|
+
/**
|
|
9563
|
+
* Lead Service Types
|
|
9564
|
+
* CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
|
|
9565
|
+
*
|
|
9566
|
+
* Implementation: apps/api/src/acquisition/lead-service.ts (LeadService class)
|
|
9567
|
+
*/
|
|
9568
|
+
|
|
9569
|
+
|
|
9570
|
+
|
|
9571
|
+
interface AcqDealNote {
|
|
9572
|
+
id: string
|
|
9573
|
+
dealId: string
|
|
9574
|
+
organizationId: string
|
|
9575
|
+
authorUserId: string | null
|
|
9576
|
+
body: string
|
|
9577
|
+
createdAt: string
|
|
9578
|
+
updatedAt: string
|
|
9579
|
+
}
|
|
9580
|
+
|
|
6935
9581
|
/**
|
|
6936
9582
|
* Resource Registry type definitions
|
|
6937
9583
|
*/
|
|
@@ -9143,19 +11789,19 @@ declare function useAllCalibrationProjects(): _tanstack_react_query.UseQueryResu
|
|
|
9143
11789
|
*/
|
|
9144
11790
|
declare function useCalibrationProjects(resourceId: string, resourceType: 'agent' | 'workflow'): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
|
|
9145
11791
|
declare function useCalibrationProject(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationProject, Error>;
|
|
9146
|
-
declare function useCreateProject(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
11792
|
+
declare function useCreateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
9147
11793
|
resourceId: string;
|
|
9148
11794
|
resourceType: "agent" | "workflow";
|
|
9149
11795
|
name: string;
|
|
9150
11796
|
description?: string | undefined;
|
|
9151
11797
|
}, unknown>;
|
|
9152
|
-
declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
11798
|
+
declare function useUpdateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
9153
11799
|
name?: string | undefined;
|
|
9154
11800
|
description?: string | undefined;
|
|
9155
11801
|
} & {
|
|
9156
11802
|
id: string;
|
|
9157
11803
|
}, unknown>;
|
|
9158
|
-
declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11804
|
+
declare function useDeleteProject$1(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
9159
11805
|
|
|
9160
11806
|
declare function useCalibrationRuns(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationRun[], Error>;
|
|
9161
11807
|
declare function useCalibrationRun(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRun, Error>;
|
|
@@ -9224,6 +11870,458 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
|
|
|
9224
11870
|
error?: string;
|
|
9225
11871
|
};
|
|
9226
11872
|
|
|
11873
|
+
/**
|
|
11874
|
+
* Query keys for acquisition deals
|
|
11875
|
+
*/
|
|
11876
|
+
declare const dealKeys: {
|
|
11877
|
+
all: readonly ["acq-deals"];
|
|
11878
|
+
lists: () => readonly ["acq-deals", "list"];
|
|
11879
|
+
list: (orgId: string | null, filters: DealFilters) => readonly ["acq-deals", "list", string | null, DealFilters];
|
|
11880
|
+
details: () => readonly ["acq-deals", "detail"];
|
|
11881
|
+
detail: (id: string) => readonly ["acq-deals", "detail", string];
|
|
11882
|
+
};
|
|
11883
|
+
/**
|
|
11884
|
+
* Fetch deals with optional filters
|
|
11885
|
+
*/
|
|
11886
|
+
declare function useDeals(filters?: DealFilters): _tanstack_react_query.UseQueryResult<DealListItem[], Error>;
|
|
11887
|
+
/**
|
|
11888
|
+
* Delete a deal with server-side cleanup (schedules, HITL tasks)
|
|
11889
|
+
*/
|
|
11890
|
+
declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11891
|
+
|
|
11892
|
+
declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
|
|
11893
|
+
|
|
11894
|
+
interface SyncDealStageParams {
|
|
11895
|
+
dealId: string;
|
|
11896
|
+
stage: DealStage;
|
|
11897
|
+
}
|
|
11898
|
+
/**
|
|
11899
|
+
* Sync a deal's cached_stage to the database.
|
|
11900
|
+
*
|
|
11901
|
+
* Mirrors what acqDb.syncDealStage does on the backend (lead-service.ts:1150).
|
|
11902
|
+
* The UI writes directly via Supabase (RLS enforces org scope) which is the
|
|
11903
|
+
* established pattern for acquisition hooks. The full backend syncDealStage
|
|
11904
|
+
* additionally logs a stage_change activity entry — the Kanban optimistic
|
|
11905
|
+
* update is sufficient for the UI; the activity log will lag slightly.
|
|
11906
|
+
*/
|
|
11907
|
+
declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
|
|
11908
|
+
|
|
11909
|
+
/**
|
|
11910
|
+
* Query keys for deal notes
|
|
11911
|
+
*/
|
|
11912
|
+
declare const dealNoteKeys: {
|
|
11913
|
+
all: readonly ["dealNotes"];
|
|
11914
|
+
list: (organizationId: string | null, dealId: string) => readonly ["dealNotes", string | null, string];
|
|
11915
|
+
};
|
|
11916
|
+
/**
|
|
11917
|
+
* Fetch notes for a specific deal, newest-first.
|
|
11918
|
+
*/
|
|
11919
|
+
declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryResult<AcqDealNote[], Error>;
|
|
11920
|
+
interface CreateDealNoteParams {
|
|
11921
|
+
dealId: string;
|
|
11922
|
+
body: string;
|
|
11923
|
+
authorUserId?: string;
|
|
11924
|
+
}
|
|
11925
|
+
/**
|
|
11926
|
+
* Create a new deal note. On success invalidates the notes list for that deal.
|
|
11927
|
+
*
|
|
11928
|
+
* The frontend writes directly via Supabase, which is covered by RLS
|
|
11929
|
+
* (org member write policy).
|
|
11930
|
+
*/
|
|
11931
|
+
declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
|
|
11932
|
+
|
|
11933
|
+
/**
|
|
11934
|
+
* Query keys for deal tasks. All keys are org-scoped for multi-tenancy isolation.
|
|
11935
|
+
*/
|
|
11936
|
+
declare const dealTaskKeys: {
|
|
11937
|
+
all: readonly ["deal-tasks"];
|
|
11938
|
+
list: (orgId: string | null, dealId: string) => readonly ["deal-tasks", string | null, string];
|
|
11939
|
+
due: (orgId: string | null, window: string, assigneeUserId: string | null) => readonly ["deal-tasks-due", string | null, string, string | null];
|
|
11940
|
+
};
|
|
11941
|
+
/**
|
|
11942
|
+
* Fetch all tasks for a specific deal, ordered by due date ascending (nulls last).
|
|
11943
|
+
*
|
|
11944
|
+
* Query key is org-scoped: ['deal-tasks', orgId, dealId]
|
|
11945
|
+
*/
|
|
11946
|
+
declare function useDealTasks(dealId: string | undefined): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
11947
|
+
type DealTasksDueWindow = 'overdue' | 'today' | 'today_and_overdue' | 'upcoming';
|
|
11948
|
+
interface DealTasksDueOptions {
|
|
11949
|
+
window?: DealTasksDueWindow;
|
|
11950
|
+
assigneeUserId?: string | null;
|
|
11951
|
+
}
|
|
11952
|
+
/**
|
|
11953
|
+
* Fetch open (uncompleted) tasks within a date window across all deals.
|
|
11954
|
+
*
|
|
11955
|
+
* Query key is org-scoped: ['deal-tasks-due', orgId, window, assigneeUserId]
|
|
11956
|
+
*
|
|
11957
|
+
* Default window: 'today_and_overdue' (overdue + due today).
|
|
11958
|
+
*/
|
|
11959
|
+
declare function useDealTasksDue(opts?: DealTasksDueOptions): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
11960
|
+
interface CreateDealTaskParams {
|
|
11961
|
+
dealId: string;
|
|
11962
|
+
title: string;
|
|
11963
|
+
description?: string | null;
|
|
11964
|
+
kind?: AcqDealTaskKind;
|
|
11965
|
+
dueAt?: string | null;
|
|
11966
|
+
assigneeUserId?: string | null;
|
|
11967
|
+
createdByUserId?: string | null;
|
|
11968
|
+
}
|
|
11969
|
+
/**
|
|
11970
|
+
* Create a new task attached to a deal.
|
|
11971
|
+
*
|
|
11972
|
+
* Writes directly to Supabase, covered by RLS (org member write policy).
|
|
11973
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
11974
|
+
*/
|
|
11975
|
+
declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
|
|
11976
|
+
interface CompleteDealTaskParams {
|
|
11977
|
+
taskId: string;
|
|
11978
|
+
dealId: string;
|
|
11979
|
+
completedByUserId?: string | null;
|
|
11980
|
+
}
|
|
11981
|
+
/**
|
|
11982
|
+
* Mark a deal task as completed.
|
|
11983
|
+
*
|
|
11984
|
+
* Writes directly to Supabase, covered by RLS (org member write policy).
|
|
11985
|
+
* Both `id` and `organization_id` filters are applied for multi-tenancy safety.
|
|
11986
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
11987
|
+
*/
|
|
11988
|
+
declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
|
|
11989
|
+
|
|
11990
|
+
declare function useBatchTelemetry(): _tanstack_react_query.UseQueryResult<BatchTelemetry[], Error>;
|
|
11991
|
+
|
|
11992
|
+
// Row types from Supabase
|
|
11993
|
+
type ProjectRow = Database['public']['Tables']['prj_projects']['Row']
|
|
11994
|
+
type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update']
|
|
11995
|
+
type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update']
|
|
11996
|
+
|
|
11997
|
+
// Status enums
|
|
11998
|
+
type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
|
|
11999
|
+
|
|
12000
|
+
type ProjectKind = 'client_engagement' | 'internal'
|
|
12001
|
+
|
|
12002
|
+
type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
|
|
12003
|
+
|
|
12004
|
+
type TaskStatus =
|
|
12005
|
+
| 'planned'
|
|
12006
|
+
| 'in_progress'
|
|
12007
|
+
| 'blocked'
|
|
12008
|
+
| 'completed'
|
|
12009
|
+
| 'cancelled'
|
|
12010
|
+
| 'submitted'
|
|
12011
|
+
| 'approved'
|
|
12012
|
+
| 'rejected'
|
|
12013
|
+
| 'revision_requested'
|
|
12014
|
+
|
|
12015
|
+
type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other'
|
|
12016
|
+
|
|
12017
|
+
type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker'
|
|
12018
|
+
|
|
12019
|
+
// Filter types
|
|
12020
|
+
interface ProjectFilters {
|
|
12021
|
+
status?: ProjectStatus
|
|
12022
|
+
kind?: ProjectKind
|
|
12023
|
+
companyId?: string
|
|
12024
|
+
search?: string
|
|
12025
|
+
}
|
|
12026
|
+
|
|
12027
|
+
interface MilestoneFilters {
|
|
12028
|
+
status?: MilestoneStatus
|
|
12029
|
+
projectId?: string
|
|
12030
|
+
}
|
|
12031
|
+
|
|
12032
|
+
interface TaskFilters {
|
|
12033
|
+
status?: TaskStatus
|
|
12034
|
+
type?: TaskType
|
|
12035
|
+
milestoneId?: string
|
|
12036
|
+
projectId?: string
|
|
12037
|
+
}
|
|
12038
|
+
|
|
12039
|
+
interface NoteFilters {
|
|
12040
|
+
type?: NoteType
|
|
12041
|
+
projectId?: string
|
|
12042
|
+
}
|
|
12043
|
+
|
|
12044
|
+
// Display types (for JOINed data)
|
|
12045
|
+
interface ProjectWithCounts extends ProjectRow {
|
|
12046
|
+
milestoneCount: number
|
|
12047
|
+
taskCount: number
|
|
12048
|
+
completedMilestones?: number
|
|
12049
|
+
completedTasks?: number
|
|
12050
|
+
}
|
|
12051
|
+
|
|
12052
|
+
declare const projectKeys: {
|
|
12053
|
+
all: readonly ["projects"];
|
|
12054
|
+
lists: () => readonly ["projects", "list"];
|
|
12055
|
+
list: (orgId: string | null, filters: ProjectFilters) => readonly ["projects", "list", string | null, ProjectFilters];
|
|
12056
|
+
details: () => readonly ["projects", "detail"];
|
|
12057
|
+
detail: (id: string) => readonly ["projects", "detail", string];
|
|
12058
|
+
};
|
|
12059
|
+
declare function useProjects(filters?: ProjectFilters): _tanstack_react_query.UseQueryResult<ProjectWithCounts[], Error>;
|
|
12060
|
+
declare function useProject(id: string): _tanstack_react_query.UseQueryResult<{
|
|
12061
|
+
actual_end_date: string | null;
|
|
12062
|
+
client_company_id: string | null;
|
|
12063
|
+
contract_value: number | null;
|
|
12064
|
+
created_at: string;
|
|
12065
|
+
deal_id: string | null;
|
|
12066
|
+
description: string | null;
|
|
12067
|
+
id: string;
|
|
12068
|
+
kind: string;
|
|
12069
|
+
metadata: Json$1 | null;
|
|
12070
|
+
name: string;
|
|
12071
|
+
organization_id: string;
|
|
12072
|
+
start_date: string | null;
|
|
12073
|
+
status: string;
|
|
12074
|
+
target_end_date: string | null;
|
|
12075
|
+
updated_at: string;
|
|
12076
|
+
milestones: {
|
|
12077
|
+
checklist: Json$1 | null;
|
|
12078
|
+
completed_at: string | null;
|
|
12079
|
+
created_at: string;
|
|
12080
|
+
description: string | null;
|
|
12081
|
+
due_date: string | null;
|
|
12082
|
+
id: string;
|
|
12083
|
+
metadata: Json$1 | null;
|
|
12084
|
+
name: string;
|
|
12085
|
+
organization_id: string;
|
|
12086
|
+
project_id: string;
|
|
12087
|
+
sequence: number;
|
|
12088
|
+
status: string;
|
|
12089
|
+
updated_at: string;
|
|
12090
|
+
}[];
|
|
12091
|
+
tasks: {
|
|
12092
|
+
checklist: Json$1;
|
|
12093
|
+
completed_at: string | null;
|
|
12094
|
+
created_at: string;
|
|
12095
|
+
description: string | null;
|
|
12096
|
+
due_date: string | null;
|
|
12097
|
+
file_url: string | null;
|
|
12098
|
+
id: string;
|
|
12099
|
+
metadata: Json$1 | null;
|
|
12100
|
+
milestone_id: string | null;
|
|
12101
|
+
name: string;
|
|
12102
|
+
organization_id: string;
|
|
12103
|
+
parent_task_id: string | null;
|
|
12104
|
+
project_id: string;
|
|
12105
|
+
resume_context: Json$1 | null;
|
|
12106
|
+
status: string;
|
|
12107
|
+
type: string;
|
|
12108
|
+
updated_at: string;
|
|
12109
|
+
}[];
|
|
12110
|
+
company: {
|
|
12111
|
+
id: string;
|
|
12112
|
+
name: string;
|
|
12113
|
+
domain: string | null;
|
|
12114
|
+
} | null;
|
|
12115
|
+
} | null, Error>;
|
|
12116
|
+
declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
|
|
12117
|
+
actual_end_date: string | null;
|
|
12118
|
+
client_company_id: string | null;
|
|
12119
|
+
contract_value: number | null;
|
|
12120
|
+
created_at: string;
|
|
12121
|
+
deal_id: string | null;
|
|
12122
|
+
description: string | null;
|
|
12123
|
+
id: string;
|
|
12124
|
+
kind: string;
|
|
12125
|
+
metadata: Json$1 | null;
|
|
12126
|
+
name: string;
|
|
12127
|
+
organization_id: string;
|
|
12128
|
+
start_date: string | null;
|
|
12129
|
+
status: string;
|
|
12130
|
+
target_end_date: string | null;
|
|
12131
|
+
updated_at: string;
|
|
12132
|
+
}, Error, Omit<{
|
|
12133
|
+
actual_end_date?: string | null;
|
|
12134
|
+
client_company_id?: string | null;
|
|
12135
|
+
contract_value?: number | null;
|
|
12136
|
+
created_at?: string;
|
|
12137
|
+
deal_id?: string | null;
|
|
12138
|
+
description?: string | null;
|
|
12139
|
+
id?: string;
|
|
12140
|
+
kind?: string;
|
|
12141
|
+
metadata?: Json$1 | null;
|
|
12142
|
+
name: string;
|
|
12143
|
+
organization_id: string;
|
|
12144
|
+
start_date?: string | null;
|
|
12145
|
+
status?: string;
|
|
12146
|
+
target_end_date?: string | null;
|
|
12147
|
+
updated_at?: string;
|
|
12148
|
+
}, "organization_id">, unknown>;
|
|
12149
|
+
declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<{
|
|
12150
|
+
actual_end_date: string | null;
|
|
12151
|
+
client_company_id: string | null;
|
|
12152
|
+
contract_value: number | null;
|
|
12153
|
+
created_at: string;
|
|
12154
|
+
deal_id: string | null;
|
|
12155
|
+
description: string | null;
|
|
12156
|
+
id: string;
|
|
12157
|
+
kind: string;
|
|
12158
|
+
metadata: Json$1 | null;
|
|
12159
|
+
name: string;
|
|
12160
|
+
organization_id: string;
|
|
12161
|
+
start_date: string | null;
|
|
12162
|
+
status: string;
|
|
12163
|
+
target_end_date: string | null;
|
|
12164
|
+
updated_at: string;
|
|
12165
|
+
}, Error, {
|
|
12166
|
+
id: string;
|
|
12167
|
+
updates: ProjectUpdate;
|
|
12168
|
+
}, unknown>;
|
|
12169
|
+
declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
12170
|
+
|
|
12171
|
+
declare const milestoneKeys: {
|
|
12172
|
+
all: readonly ["project-milestones"];
|
|
12173
|
+
lists: () => readonly ["project-milestones", "list"];
|
|
12174
|
+
list: (orgId: string | null, filters: MilestoneFilters) => readonly ["project-milestones", "list", string | null, MilestoneFilters];
|
|
12175
|
+
details: () => readonly ["project-milestones", "detail"];
|
|
12176
|
+
detail: (id: string) => readonly ["project-milestones", "detail", string];
|
|
12177
|
+
};
|
|
12178
|
+
declare function useMilestones(filters?: MilestoneFilters): _tanstack_react_query.UseQueryResult<{
|
|
12179
|
+
checklist: Json$1 | null;
|
|
12180
|
+
completed_at: string | null;
|
|
12181
|
+
created_at: string;
|
|
12182
|
+
description: string | null;
|
|
12183
|
+
due_date: string | null;
|
|
12184
|
+
id: string;
|
|
12185
|
+
metadata: Json$1 | null;
|
|
12186
|
+
name: string;
|
|
12187
|
+
organization_id: string;
|
|
12188
|
+
project_id: string;
|
|
12189
|
+
sequence: number;
|
|
12190
|
+
status: string;
|
|
12191
|
+
updated_at: string;
|
|
12192
|
+
}[], Error>;
|
|
12193
|
+
declare function useCreateMilestone(): _tanstack_react_query.UseMutationResult<{
|
|
12194
|
+
checklist: Json$1 | null;
|
|
12195
|
+
completed_at: string | null;
|
|
12196
|
+
created_at: string;
|
|
12197
|
+
description: string | null;
|
|
12198
|
+
due_date: string | null;
|
|
12199
|
+
id: string;
|
|
12200
|
+
metadata: Json$1 | null;
|
|
12201
|
+
name: string;
|
|
12202
|
+
organization_id: string;
|
|
12203
|
+
project_id: string;
|
|
12204
|
+
sequence: number;
|
|
12205
|
+
status: string;
|
|
12206
|
+
updated_at: string;
|
|
12207
|
+
}, Error, Omit<{
|
|
12208
|
+
checklist?: Json$1 | null;
|
|
12209
|
+
completed_at?: string | null;
|
|
12210
|
+
created_at?: string;
|
|
12211
|
+
description?: string | null;
|
|
12212
|
+
due_date?: string | null;
|
|
12213
|
+
id?: string;
|
|
12214
|
+
metadata?: Json$1 | null;
|
|
12215
|
+
name: string;
|
|
12216
|
+
organization_id: string;
|
|
12217
|
+
project_id: string;
|
|
12218
|
+
sequence?: number;
|
|
12219
|
+
status?: string;
|
|
12220
|
+
updated_at?: string;
|
|
12221
|
+
}, "organization_id">, unknown>;
|
|
12222
|
+
declare function useUpdateMilestone(): _tanstack_react_query.UseMutationResult<{
|
|
12223
|
+
checklist: Json$1 | null;
|
|
12224
|
+
completed_at: string | null;
|
|
12225
|
+
created_at: string;
|
|
12226
|
+
description: string | null;
|
|
12227
|
+
due_date: string | null;
|
|
12228
|
+
id: string;
|
|
12229
|
+
metadata: Json$1 | null;
|
|
12230
|
+
name: string;
|
|
12231
|
+
organization_id: string;
|
|
12232
|
+
project_id: string;
|
|
12233
|
+
sequence: number;
|
|
12234
|
+
status: string;
|
|
12235
|
+
updated_at: string;
|
|
12236
|
+
}, Error, {
|
|
12237
|
+
id: string;
|
|
12238
|
+
updates: MilestoneUpdate;
|
|
12239
|
+
}, unknown>;
|
|
12240
|
+
declare function useDeleteMilestone(): _tanstack_react_query.UseMutationResult<void, Error, {
|
|
12241
|
+
id: string;
|
|
12242
|
+
projectId: string;
|
|
12243
|
+
}, unknown>;
|
|
12244
|
+
|
|
12245
|
+
declare const taskKeys: {
|
|
12246
|
+
all: readonly ["project-tasks"];
|
|
12247
|
+
lists: () => readonly ["project-tasks", "list"];
|
|
12248
|
+
list: (orgId: string | null, filters: TaskFilters) => readonly ["project-tasks", "list", string | null, TaskFilters];
|
|
12249
|
+
details: () => readonly ["project-tasks", "detail"];
|
|
12250
|
+
detail: (id: string) => readonly ["project-tasks", "detail", string];
|
|
12251
|
+
};
|
|
12252
|
+
declare function useTasks(filters?: TaskFilters): _tanstack_react_query.UseQueryResult<{
|
|
12253
|
+
checklist: Json$1;
|
|
12254
|
+
completed_at: string | null;
|
|
12255
|
+
created_at: string;
|
|
12256
|
+
description: string | null;
|
|
12257
|
+
due_date: string | null;
|
|
12258
|
+
file_url: string | null;
|
|
12259
|
+
id: string;
|
|
12260
|
+
metadata: Json$1 | null;
|
|
12261
|
+
milestone_id: string | null;
|
|
12262
|
+
name: string;
|
|
12263
|
+
organization_id: string;
|
|
12264
|
+
parent_task_id: string | null;
|
|
12265
|
+
project_id: string;
|
|
12266
|
+
resume_context: Json$1 | null;
|
|
12267
|
+
status: string;
|
|
12268
|
+
type: string;
|
|
12269
|
+
updated_at: string;
|
|
12270
|
+
}[], Error>;
|
|
12271
|
+
declare function useDeleteTask(): _tanstack_react_query.UseMutationResult<void, Error, {
|
|
12272
|
+
id: string;
|
|
12273
|
+
projectId: string;
|
|
12274
|
+
}, unknown>;
|
|
12275
|
+
|
|
12276
|
+
declare const noteKeys: {
|
|
12277
|
+
all: readonly ["project-notes"];
|
|
12278
|
+
lists: () => readonly ["project-notes", "list"];
|
|
12279
|
+
list: (orgId: string | null, filters: NoteFilters) => readonly ["project-notes", "list", string | null, NoteFilters];
|
|
12280
|
+
details: () => readonly ["project-notes", "detail"];
|
|
12281
|
+
detail: (id: string) => readonly ["project-notes", "detail", string];
|
|
12282
|
+
};
|
|
12283
|
+
declare function useProjectNotes(filters?: NoteFilters): _tanstack_react_query.UseQueryResult<{
|
|
12284
|
+
content: string;
|
|
12285
|
+
created_at: string;
|
|
12286
|
+
created_by: string | null;
|
|
12287
|
+
id: string;
|
|
12288
|
+
metadata: Json$1 | null;
|
|
12289
|
+
milestone_id: string | null;
|
|
12290
|
+
occurred_at: string;
|
|
12291
|
+
organization_id: string;
|
|
12292
|
+
project_id: string;
|
|
12293
|
+
summary: string | null;
|
|
12294
|
+
task_id: string | null;
|
|
12295
|
+
type: string;
|
|
12296
|
+
}[], Error>;
|
|
12297
|
+
declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
|
|
12298
|
+
content: string;
|
|
12299
|
+
created_at: string;
|
|
12300
|
+
created_by: string | null;
|
|
12301
|
+
id: string;
|
|
12302
|
+
metadata: Json$1 | null;
|
|
12303
|
+
milestone_id: string | null;
|
|
12304
|
+
occurred_at: string;
|
|
12305
|
+
organization_id: string;
|
|
12306
|
+
project_id: string;
|
|
12307
|
+
summary: string | null;
|
|
12308
|
+
task_id: string | null;
|
|
12309
|
+
type: string;
|
|
12310
|
+
}, Error, Omit<{
|
|
12311
|
+
content: string;
|
|
12312
|
+
created_at?: string;
|
|
12313
|
+
created_by?: string | null;
|
|
12314
|
+
id?: string;
|
|
12315
|
+
metadata?: Json$1 | null;
|
|
12316
|
+
milestone_id?: string | null;
|
|
12317
|
+
occurred_at?: string;
|
|
12318
|
+
organization_id: string;
|
|
12319
|
+
project_id: string;
|
|
12320
|
+
summary?: string | null;
|
|
12321
|
+
task_id?: string | null;
|
|
12322
|
+
type?: string;
|
|
12323
|
+
}, "organization_id">, unknown>;
|
|
12324
|
+
|
|
9227
12325
|
interface AuthContextValue {
|
|
9228
12326
|
user: {
|
|
9229
12327
|
id: string;
|
|
@@ -9697,5 +12795,5 @@ declare function InitializationProvider({ children }: {
|
|
|
9697
12795
|
children: ReactNode;
|
|
9698
12796
|
}): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
|
|
9699
12797
|
|
|
9700
|
-
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisUIProvider, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, calculateBarPosition, calculateGraphHeight, calibrationKeys, componentThemes, createCssVariablesResolver, createOrganizationsSlice, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, observabilityKeys, operationsKeys, PRESETS as presets, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useConnectionHighlight, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCredential, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteDeployment, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useListApiKeys, useListDeployments, useListSchedules, useListWebhookEndpoints, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCredential, useUpdateMemberConfig, useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
9701
|
-
export type { ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
|
12798
|
+
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisUIProvider, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, calculateBarPosition, calculateGraphHeight, calibrationKeys, componentThemes, createCssVariablesResolver, createOrganizationsSlice, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompleteDealTask, useConnectionHighlight, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useListApiKeys, useListDeployments, useListSchedules, useListWebhookEndpoints, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
12799
|
+
export type { AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|