@rjromeoent/ein-supabase 0.1.2 → 0.1.4
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/README.md +1 -1
- package/dist/generated/database.types.d.ts +460 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -828,6 +828,159 @@ export type Database = {
|
|
|
828
828
|
}
|
|
829
829
|
];
|
|
830
830
|
};
|
|
831
|
+
client_closing_packages: {
|
|
832
|
+
Row: {
|
|
833
|
+
announce_target_date: string | null;
|
|
834
|
+
changes_for_next_year: string | null;
|
|
835
|
+
client_id: string;
|
|
836
|
+
completed_at: string | null;
|
|
837
|
+
completed_by: string | null;
|
|
838
|
+
created_at: string;
|
|
839
|
+
created_by: string | null;
|
|
840
|
+
digital_marketing_agency_contact: string | null;
|
|
841
|
+
digital_marketing_agency_name: string | null;
|
|
842
|
+
id: string;
|
|
843
|
+
koc_held_at: string | null;
|
|
844
|
+
koc_notes: string | null;
|
|
845
|
+
koc_recording_url: string | null;
|
|
846
|
+
koc_scheduled_at: string | null;
|
|
847
|
+
lead_id: string | null;
|
|
848
|
+
marketing_asset_deadline: string | null;
|
|
849
|
+
on_sale_target_date: string | null;
|
|
850
|
+
organization_id: string;
|
|
851
|
+
preferred_meeting_time: string | null;
|
|
852
|
+
preferred_meeting_timezone: string | null;
|
|
853
|
+
presenting_media_sponsors: string | null;
|
|
854
|
+
primary_decision_maker_contact_id: string | null;
|
|
855
|
+
prior_year_improvements: string | null;
|
|
856
|
+
prior_year_successes: string | null;
|
|
857
|
+
production_company_contact: string | null;
|
|
858
|
+
production_company_name: string | null;
|
|
859
|
+
programming_goals: string | null;
|
|
860
|
+
programming_vision: string | null;
|
|
861
|
+
rad_portal_invited_at: string | null;
|
|
862
|
+
rad_portal_url: string | null;
|
|
863
|
+
service_rep_notes: string | null;
|
|
864
|
+
service_rep_required: boolean | null;
|
|
865
|
+
standing_meeting_day_of_week: number | null;
|
|
866
|
+
standing_meeting_frequency: string | null;
|
|
867
|
+
standout_acts_prior_year: string | null;
|
|
868
|
+
status: string;
|
|
869
|
+
teams_channel_id: string | null;
|
|
870
|
+
teams_channel_url: string | null;
|
|
871
|
+
teams_folder_url: string | null;
|
|
872
|
+
updated_at: string;
|
|
873
|
+
uses_digital_marketing_agency: boolean | null;
|
|
874
|
+
welcome_letter_drafted_at: string | null;
|
|
875
|
+
welcome_letter_sent_at: string | null;
|
|
876
|
+
};
|
|
877
|
+
Insert: {
|
|
878
|
+
announce_target_date?: string | null;
|
|
879
|
+
changes_for_next_year?: string | null;
|
|
880
|
+
client_id: string;
|
|
881
|
+
completed_at?: string | null;
|
|
882
|
+
completed_by?: string | null;
|
|
883
|
+
created_at?: string;
|
|
884
|
+
created_by?: string | null;
|
|
885
|
+
digital_marketing_agency_contact?: string | null;
|
|
886
|
+
digital_marketing_agency_name?: string | null;
|
|
887
|
+
id?: string;
|
|
888
|
+
koc_held_at?: string | null;
|
|
889
|
+
koc_notes?: string | null;
|
|
890
|
+
koc_recording_url?: string | null;
|
|
891
|
+
koc_scheduled_at?: string | null;
|
|
892
|
+
lead_id?: string | null;
|
|
893
|
+
marketing_asset_deadline?: string | null;
|
|
894
|
+
on_sale_target_date?: string | null;
|
|
895
|
+
organization_id: string;
|
|
896
|
+
preferred_meeting_time?: string | null;
|
|
897
|
+
preferred_meeting_timezone?: string | null;
|
|
898
|
+
presenting_media_sponsors?: string | null;
|
|
899
|
+
primary_decision_maker_contact_id?: string | null;
|
|
900
|
+
prior_year_improvements?: string | null;
|
|
901
|
+
prior_year_successes?: string | null;
|
|
902
|
+
production_company_contact?: string | null;
|
|
903
|
+
production_company_name?: string | null;
|
|
904
|
+
programming_goals?: string | null;
|
|
905
|
+
programming_vision?: string | null;
|
|
906
|
+
rad_portal_invited_at?: string | null;
|
|
907
|
+
rad_portal_url?: string | null;
|
|
908
|
+
service_rep_notes?: string | null;
|
|
909
|
+
service_rep_required?: boolean | null;
|
|
910
|
+
standing_meeting_day_of_week?: number | null;
|
|
911
|
+
standing_meeting_frequency?: string | null;
|
|
912
|
+
standout_acts_prior_year?: string | null;
|
|
913
|
+
status?: string;
|
|
914
|
+
teams_channel_id?: string | null;
|
|
915
|
+
teams_channel_url?: string | null;
|
|
916
|
+
teams_folder_url?: string | null;
|
|
917
|
+
updated_at?: string;
|
|
918
|
+
uses_digital_marketing_agency?: boolean | null;
|
|
919
|
+
welcome_letter_drafted_at?: string | null;
|
|
920
|
+
welcome_letter_sent_at?: string | null;
|
|
921
|
+
};
|
|
922
|
+
Update: {
|
|
923
|
+
announce_target_date?: string | null;
|
|
924
|
+
changes_for_next_year?: string | null;
|
|
925
|
+
client_id?: string;
|
|
926
|
+
completed_at?: string | null;
|
|
927
|
+
completed_by?: string | null;
|
|
928
|
+
created_at?: string;
|
|
929
|
+
created_by?: string | null;
|
|
930
|
+
digital_marketing_agency_contact?: string | null;
|
|
931
|
+
digital_marketing_agency_name?: string | null;
|
|
932
|
+
id?: string;
|
|
933
|
+
koc_held_at?: string | null;
|
|
934
|
+
koc_notes?: string | null;
|
|
935
|
+
koc_recording_url?: string | null;
|
|
936
|
+
koc_scheduled_at?: string | null;
|
|
937
|
+
lead_id?: string | null;
|
|
938
|
+
marketing_asset_deadline?: string | null;
|
|
939
|
+
on_sale_target_date?: string | null;
|
|
940
|
+
organization_id?: string;
|
|
941
|
+
preferred_meeting_time?: string | null;
|
|
942
|
+
preferred_meeting_timezone?: string | null;
|
|
943
|
+
presenting_media_sponsors?: string | null;
|
|
944
|
+
primary_decision_maker_contact_id?: string | null;
|
|
945
|
+
prior_year_improvements?: string | null;
|
|
946
|
+
prior_year_successes?: string | null;
|
|
947
|
+
production_company_contact?: string | null;
|
|
948
|
+
production_company_name?: string | null;
|
|
949
|
+
programming_goals?: string | null;
|
|
950
|
+
programming_vision?: string | null;
|
|
951
|
+
rad_portal_invited_at?: string | null;
|
|
952
|
+
rad_portal_url?: string | null;
|
|
953
|
+
service_rep_notes?: string | null;
|
|
954
|
+
service_rep_required?: boolean | null;
|
|
955
|
+
standing_meeting_day_of_week?: number | null;
|
|
956
|
+
standing_meeting_frequency?: string | null;
|
|
957
|
+
standout_acts_prior_year?: string | null;
|
|
958
|
+
status?: string;
|
|
959
|
+
teams_channel_id?: string | null;
|
|
960
|
+
teams_channel_url?: string | null;
|
|
961
|
+
teams_folder_url?: string | null;
|
|
962
|
+
updated_at?: string;
|
|
963
|
+
uses_digital_marketing_agency?: boolean | null;
|
|
964
|
+
welcome_letter_drafted_at?: string | null;
|
|
965
|
+
welcome_letter_sent_at?: string | null;
|
|
966
|
+
};
|
|
967
|
+
Relationships: [
|
|
968
|
+
{
|
|
969
|
+
foreignKeyName: "client_closing_packages_client_id_fkey";
|
|
970
|
+
columns: ["client_id"];
|
|
971
|
+
isOneToOne: true;
|
|
972
|
+
referencedRelation: "client_context_projection";
|
|
973
|
+
referencedColumns: ["client_id"];
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
foreignKeyName: "client_closing_packages_lead_id_fkey";
|
|
977
|
+
columns: ["lead_id"];
|
|
978
|
+
isOneToOne: false;
|
|
979
|
+
referencedRelation: "leads";
|
|
980
|
+
referencedColumns: ["id"];
|
|
981
|
+
}
|
|
982
|
+
];
|
|
983
|
+
};
|
|
831
984
|
client_contacts: {
|
|
832
985
|
Row: {
|
|
833
986
|
appears_in_documents: boolean;
|
|
@@ -1351,6 +1504,44 @@ export type Database = {
|
|
|
1351
1504
|
}
|
|
1352
1505
|
];
|
|
1353
1506
|
};
|
|
1507
|
+
lead_activities: {
|
|
1508
|
+
Row: {
|
|
1509
|
+
activity_type: string;
|
|
1510
|
+
actor_id: string | null;
|
|
1511
|
+
created_at: string;
|
|
1512
|
+
id: string;
|
|
1513
|
+
lead_id: string;
|
|
1514
|
+
organization_id: string;
|
|
1515
|
+
payload: Json;
|
|
1516
|
+
};
|
|
1517
|
+
Insert: {
|
|
1518
|
+
activity_type: string;
|
|
1519
|
+
actor_id?: string | null;
|
|
1520
|
+
created_at?: string;
|
|
1521
|
+
id?: string;
|
|
1522
|
+
lead_id: string;
|
|
1523
|
+
organization_id: string;
|
|
1524
|
+
payload?: Json;
|
|
1525
|
+
};
|
|
1526
|
+
Update: {
|
|
1527
|
+
activity_type?: string;
|
|
1528
|
+
actor_id?: string | null;
|
|
1529
|
+
created_at?: string;
|
|
1530
|
+
id?: string;
|
|
1531
|
+
lead_id?: string;
|
|
1532
|
+
organization_id?: string;
|
|
1533
|
+
payload?: Json;
|
|
1534
|
+
};
|
|
1535
|
+
Relationships: [
|
|
1536
|
+
{
|
|
1537
|
+
foreignKeyName: "lead_activities_lead_id_fkey";
|
|
1538
|
+
columns: ["lead_id"];
|
|
1539
|
+
isOneToOne: false;
|
|
1540
|
+
referencedRelation: "leads";
|
|
1541
|
+
referencedColumns: ["id"];
|
|
1542
|
+
}
|
|
1543
|
+
];
|
|
1544
|
+
};
|
|
1354
1545
|
lead_approval_records: {
|
|
1355
1546
|
Row: {
|
|
1356
1547
|
approver_id: string;
|
|
@@ -1404,6 +1595,62 @@ export type Database = {
|
|
|
1404
1595
|
}
|
|
1405
1596
|
];
|
|
1406
1597
|
};
|
|
1598
|
+
lead_tasks: {
|
|
1599
|
+
Row: {
|
|
1600
|
+
assigned_user_id: string | null;
|
|
1601
|
+
body: string | null;
|
|
1602
|
+
completed_at: string | null;
|
|
1603
|
+
completed_by: string | null;
|
|
1604
|
+
created_at: string;
|
|
1605
|
+
created_by: string | null;
|
|
1606
|
+
due_at: string | null;
|
|
1607
|
+
id: string;
|
|
1608
|
+
lead_id: string;
|
|
1609
|
+
organization_id: string;
|
|
1610
|
+
status: string;
|
|
1611
|
+
task_type: string;
|
|
1612
|
+
title: string;
|
|
1613
|
+
};
|
|
1614
|
+
Insert: {
|
|
1615
|
+
assigned_user_id?: string | null;
|
|
1616
|
+
body?: string | null;
|
|
1617
|
+
completed_at?: string | null;
|
|
1618
|
+
completed_by?: string | null;
|
|
1619
|
+
created_at?: string;
|
|
1620
|
+
created_by?: string | null;
|
|
1621
|
+
due_at?: string | null;
|
|
1622
|
+
id?: string;
|
|
1623
|
+
lead_id: string;
|
|
1624
|
+
organization_id: string;
|
|
1625
|
+
status?: string;
|
|
1626
|
+
task_type: string;
|
|
1627
|
+
title: string;
|
|
1628
|
+
};
|
|
1629
|
+
Update: {
|
|
1630
|
+
assigned_user_id?: string | null;
|
|
1631
|
+
body?: string | null;
|
|
1632
|
+
completed_at?: string | null;
|
|
1633
|
+
completed_by?: string | null;
|
|
1634
|
+
created_at?: string;
|
|
1635
|
+
created_by?: string | null;
|
|
1636
|
+
due_at?: string | null;
|
|
1637
|
+
id?: string;
|
|
1638
|
+
lead_id?: string;
|
|
1639
|
+
organization_id?: string;
|
|
1640
|
+
status?: string;
|
|
1641
|
+
task_type?: string;
|
|
1642
|
+
title?: string;
|
|
1643
|
+
};
|
|
1644
|
+
Relationships: [
|
|
1645
|
+
{
|
|
1646
|
+
foreignKeyName: "lead_tasks_lead_id_fkey";
|
|
1647
|
+
columns: ["lead_id"];
|
|
1648
|
+
isOneToOne: false;
|
|
1649
|
+
referencedRelation: "leads";
|
|
1650
|
+
referencedColumns: ["id"];
|
|
1651
|
+
}
|
|
1652
|
+
];
|
|
1653
|
+
};
|
|
1407
1654
|
lead_vetting_responses: {
|
|
1408
1655
|
Row: {
|
|
1409
1656
|
ability_to_pay_notes: string | null;
|
|
@@ -1603,11 +1850,18 @@ export type Database = {
|
|
|
1603
1850
|
created_at: string;
|
|
1604
1851
|
created_by: string | null;
|
|
1605
1852
|
decline_reason: string | null;
|
|
1853
|
+
entertainment_budget_range: string | null;
|
|
1606
1854
|
estimated_capacity: number | null;
|
|
1607
1855
|
estimated_event_date: string | null;
|
|
1856
|
+
event_end_date: string | null;
|
|
1857
|
+
event_indoor_outdoor: string | null;
|
|
1608
1858
|
event_name: string | null;
|
|
1609
1859
|
event_type: Database["atlas"]["Enums"]["lead_event_type"] | null;
|
|
1860
|
+
genres: string[] | null;
|
|
1861
|
+
goals_top3: string | null;
|
|
1610
1862
|
id: string;
|
|
1863
|
+
internal_notes: string | null;
|
|
1864
|
+
is_multi_day: boolean | null;
|
|
1611
1865
|
is_rfp: boolean;
|
|
1612
1866
|
lead_source: Database["atlas"]["Enums"]["lead_source_type"];
|
|
1613
1867
|
lifecycle_status: Database["atlas"]["Enums"]["lead_lifecycle_status"];
|
|
@@ -1620,16 +1874,31 @@ export type Database = {
|
|
|
1620
1874
|
num_event_days: number | null;
|
|
1621
1875
|
organization_id: string;
|
|
1622
1876
|
originating_tbep_id: string | null;
|
|
1877
|
+
part1_data: Json;
|
|
1878
|
+
part2_data: Json;
|
|
1879
|
+
pc_email: string | null;
|
|
1880
|
+
pc_first_name: string | null;
|
|
1881
|
+
pc_last_name: string | null;
|
|
1882
|
+
pc_phone: string | null;
|
|
1623
1883
|
primary_city: string | null;
|
|
1624
1884
|
primary_county: string | null;
|
|
1625
1885
|
primary_state: string | null;
|
|
1886
|
+
promoted_contact_id: string | null;
|
|
1887
|
+
promoted_event_id: string | null;
|
|
1626
1888
|
proposed_brand_name: string | null;
|
|
1627
1889
|
proposed_event_name: string | null;
|
|
1890
|
+
referral_source: string | null;
|
|
1628
1891
|
referral_source_client_id: string | null;
|
|
1629
1892
|
rfp_submission_deadline: string | null;
|
|
1893
|
+
survey_completed_at: string | null;
|
|
1894
|
+
survey_sent_at: string | null;
|
|
1895
|
+
survey_token: string;
|
|
1630
1896
|
updated_at: string;
|
|
1631
1897
|
venue_lat: number | null;
|
|
1632
1898
|
venue_lng: number | null;
|
|
1899
|
+
venue_ownership: string | null;
|
|
1900
|
+
venue_secured: boolean | null;
|
|
1901
|
+
venue_street: string | null;
|
|
1633
1902
|
venue_zip: string | null;
|
|
1634
1903
|
};
|
|
1635
1904
|
Insert: {
|
|
@@ -1645,11 +1914,18 @@ export type Database = {
|
|
|
1645
1914
|
created_at?: string;
|
|
1646
1915
|
created_by?: string | null;
|
|
1647
1916
|
decline_reason?: string | null;
|
|
1917
|
+
entertainment_budget_range?: string | null;
|
|
1648
1918
|
estimated_capacity?: number | null;
|
|
1649
1919
|
estimated_event_date?: string | null;
|
|
1920
|
+
event_end_date?: string | null;
|
|
1921
|
+
event_indoor_outdoor?: string | null;
|
|
1650
1922
|
event_name?: string | null;
|
|
1651
1923
|
event_type?: Database["atlas"]["Enums"]["lead_event_type"] | null;
|
|
1924
|
+
genres?: string[] | null;
|
|
1925
|
+
goals_top3?: string | null;
|
|
1652
1926
|
id?: string;
|
|
1927
|
+
internal_notes?: string | null;
|
|
1928
|
+
is_multi_day?: boolean | null;
|
|
1653
1929
|
is_rfp?: boolean;
|
|
1654
1930
|
lead_source: Database["atlas"]["Enums"]["lead_source_type"];
|
|
1655
1931
|
lifecycle_status?: Database["atlas"]["Enums"]["lead_lifecycle_status"];
|
|
@@ -1662,16 +1938,31 @@ export type Database = {
|
|
|
1662
1938
|
num_event_days?: number | null;
|
|
1663
1939
|
organization_id: string;
|
|
1664
1940
|
originating_tbep_id?: string | null;
|
|
1941
|
+
part1_data?: Json;
|
|
1942
|
+
part2_data?: Json;
|
|
1943
|
+
pc_email?: string | null;
|
|
1944
|
+
pc_first_name?: string | null;
|
|
1945
|
+
pc_last_name?: string | null;
|
|
1946
|
+
pc_phone?: string | null;
|
|
1665
1947
|
primary_city?: string | null;
|
|
1666
1948
|
primary_county?: string | null;
|
|
1667
1949
|
primary_state?: string | null;
|
|
1950
|
+
promoted_contact_id?: string | null;
|
|
1951
|
+
promoted_event_id?: string | null;
|
|
1668
1952
|
proposed_brand_name?: string | null;
|
|
1669
1953
|
proposed_event_name?: string | null;
|
|
1954
|
+
referral_source?: string | null;
|
|
1670
1955
|
referral_source_client_id?: string | null;
|
|
1671
1956
|
rfp_submission_deadline?: string | null;
|
|
1957
|
+
survey_completed_at?: string | null;
|
|
1958
|
+
survey_sent_at?: string | null;
|
|
1959
|
+
survey_token?: string;
|
|
1672
1960
|
updated_at?: string;
|
|
1673
1961
|
venue_lat?: number | null;
|
|
1674
1962
|
venue_lng?: number | null;
|
|
1963
|
+
venue_ownership?: string | null;
|
|
1964
|
+
venue_secured?: boolean | null;
|
|
1965
|
+
venue_street?: string | null;
|
|
1675
1966
|
venue_zip?: string | null;
|
|
1676
1967
|
};
|
|
1677
1968
|
Update: {
|
|
@@ -1687,11 +1978,18 @@ export type Database = {
|
|
|
1687
1978
|
created_at?: string;
|
|
1688
1979
|
created_by?: string | null;
|
|
1689
1980
|
decline_reason?: string | null;
|
|
1981
|
+
entertainment_budget_range?: string | null;
|
|
1690
1982
|
estimated_capacity?: number | null;
|
|
1691
1983
|
estimated_event_date?: string | null;
|
|
1984
|
+
event_end_date?: string | null;
|
|
1985
|
+
event_indoor_outdoor?: string | null;
|
|
1692
1986
|
event_name?: string | null;
|
|
1693
1987
|
event_type?: Database["atlas"]["Enums"]["lead_event_type"] | null;
|
|
1988
|
+
genres?: string[] | null;
|
|
1989
|
+
goals_top3?: string | null;
|
|
1694
1990
|
id?: string;
|
|
1991
|
+
internal_notes?: string | null;
|
|
1992
|
+
is_multi_day?: boolean | null;
|
|
1695
1993
|
is_rfp?: boolean;
|
|
1696
1994
|
lead_source?: Database["atlas"]["Enums"]["lead_source_type"];
|
|
1697
1995
|
lifecycle_status?: Database["atlas"]["Enums"]["lead_lifecycle_status"];
|
|
@@ -1704,16 +2002,31 @@ export type Database = {
|
|
|
1704
2002
|
num_event_days?: number | null;
|
|
1705
2003
|
organization_id?: string;
|
|
1706
2004
|
originating_tbep_id?: string | null;
|
|
2005
|
+
part1_data?: Json;
|
|
2006
|
+
part2_data?: Json;
|
|
2007
|
+
pc_email?: string | null;
|
|
2008
|
+
pc_first_name?: string | null;
|
|
2009
|
+
pc_last_name?: string | null;
|
|
2010
|
+
pc_phone?: string | null;
|
|
1707
2011
|
primary_city?: string | null;
|
|
1708
2012
|
primary_county?: string | null;
|
|
1709
2013
|
primary_state?: string | null;
|
|
2014
|
+
promoted_contact_id?: string | null;
|
|
2015
|
+
promoted_event_id?: string | null;
|
|
1710
2016
|
proposed_brand_name?: string | null;
|
|
1711
2017
|
proposed_event_name?: string | null;
|
|
2018
|
+
referral_source?: string | null;
|
|
1712
2019
|
referral_source_client_id?: string | null;
|
|
1713
2020
|
rfp_submission_deadline?: string | null;
|
|
2021
|
+
survey_completed_at?: string | null;
|
|
2022
|
+
survey_sent_at?: string | null;
|
|
2023
|
+
survey_token?: string;
|
|
1714
2024
|
updated_at?: string;
|
|
1715
2025
|
venue_lat?: number | null;
|
|
1716
2026
|
venue_lng?: number | null;
|
|
2027
|
+
venue_ownership?: string | null;
|
|
2028
|
+
venue_secured?: boolean | null;
|
|
2029
|
+
venue_street?: string | null;
|
|
1717
2030
|
venue_zip?: string | null;
|
|
1718
2031
|
};
|
|
1719
2032
|
Relationships: [
|
|
@@ -2140,6 +2453,23 @@ export type Database = {
|
|
|
2140
2453
|
};
|
|
2141
2454
|
Returns: Json;
|
|
2142
2455
|
};
|
|
2456
|
+
get_lead_by_survey_token: {
|
|
2457
|
+
Args: {
|
|
2458
|
+
p_token: string;
|
|
2459
|
+
};
|
|
2460
|
+
Returns: {
|
|
2461
|
+
event_name: string;
|
|
2462
|
+
lead_id: string;
|
|
2463
|
+
organization_name: string;
|
|
2464
|
+
part2_data: Json;
|
|
2465
|
+
pc_email: string;
|
|
2466
|
+
pc_first_name: string;
|
|
2467
|
+
pc_last_name: string;
|
|
2468
|
+
reg_contact_name: string;
|
|
2469
|
+
survey_completed_at: string;
|
|
2470
|
+
survey_sent_at: string;
|
|
2471
|
+
}[];
|
|
2472
|
+
};
|
|
2143
2473
|
match_artists_for_bulk_pricing: {
|
|
2144
2474
|
Args: {
|
|
2145
2475
|
_names: string[];
|
|
@@ -2175,6 +2505,19 @@ export type Database = {
|
|
|
2175
2505
|
};
|
|
2176
2506
|
Returns: string;
|
|
2177
2507
|
};
|
|
2508
|
+
promote_lead_to_client: {
|
|
2509
|
+
Args: {
|
|
2510
|
+
p_lead_id: string;
|
|
2511
|
+
p_overrides?: Json;
|
|
2512
|
+
};
|
|
2513
|
+
Returns: {
|
|
2514
|
+
client_id: string;
|
|
2515
|
+
closing_package_id: string;
|
|
2516
|
+
primary_contact_id: string;
|
|
2517
|
+
secondary_contact_id: string;
|
|
2518
|
+
signer_contact_id: string;
|
|
2519
|
+
}[];
|
|
2520
|
+
};
|
|
2178
2521
|
recompute_contact_dedup_state: {
|
|
2179
2522
|
Args: {
|
|
2180
2523
|
_organization_id?: string;
|
|
@@ -2242,6 +2585,15 @@ export type Database = {
|
|
|
2242
2585
|
};
|
|
2243
2586
|
Returns: string[];
|
|
2244
2587
|
};
|
|
2588
|
+
upsert_survey_response: {
|
|
2589
|
+
Args: {
|
|
2590
|
+
p_complete?: boolean;
|
|
2591
|
+
p_section_data: Json;
|
|
2592
|
+
p_section_key: string;
|
|
2593
|
+
p_token: string;
|
|
2594
|
+
};
|
|
2595
|
+
Returns: string;
|
|
2596
|
+
};
|
|
2245
2597
|
};
|
|
2246
2598
|
Enums: {
|
|
2247
2599
|
agent_portal_status: "PENDING" | "APPROVED" | "SUSPENDED" | "REVOKED";
|
|
@@ -14825,35 +15177,47 @@ export type Database = {
|
|
|
14825
15177
|
Row: {
|
|
14826
15178
|
artist_id: string;
|
|
14827
15179
|
computed_at: string;
|
|
15180
|
+
conflict_detail_json: Json;
|
|
14828
15181
|
conflict_type: string;
|
|
14829
15182
|
conflicting_event_ref: string;
|
|
14830
15183
|
distance_miles: number | null;
|
|
14831
15184
|
event_edition_id: string;
|
|
14832
15185
|
id: string;
|
|
14833
15186
|
organization_id: string;
|
|
15187
|
+
resolved_at: string | null;
|
|
14834
15188
|
severity: string;
|
|
15189
|
+
source_record_ref: string | null;
|
|
15190
|
+
source_system_id: string | null;
|
|
14835
15191
|
};
|
|
14836
15192
|
Insert: {
|
|
14837
15193
|
artist_id: string;
|
|
14838
15194
|
computed_at?: string;
|
|
15195
|
+
conflict_detail_json?: Json;
|
|
14839
15196
|
conflict_type: string;
|
|
14840
15197
|
conflicting_event_ref: string;
|
|
14841
15198
|
distance_miles?: number | null;
|
|
14842
15199
|
event_edition_id: string;
|
|
14843
15200
|
id?: string;
|
|
14844
15201
|
organization_id: string;
|
|
15202
|
+
resolved_at?: string | null;
|
|
14845
15203
|
severity: string;
|
|
15204
|
+
source_record_ref?: string | null;
|
|
15205
|
+
source_system_id?: string | null;
|
|
14846
15206
|
};
|
|
14847
15207
|
Update: {
|
|
14848
15208
|
artist_id?: string;
|
|
14849
15209
|
computed_at?: string;
|
|
15210
|
+
conflict_detail_json?: Json;
|
|
14850
15211
|
conflict_type?: string;
|
|
14851
15212
|
conflicting_event_ref?: string;
|
|
14852
15213
|
distance_miles?: number | null;
|
|
14853
15214
|
event_edition_id?: string;
|
|
14854
15215
|
id?: string;
|
|
14855
15216
|
organization_id?: string;
|
|
15217
|
+
resolved_at?: string | null;
|
|
14856
15218
|
severity?: string;
|
|
15219
|
+
source_record_ref?: string | null;
|
|
15220
|
+
source_system_id?: string | null;
|
|
14857
15221
|
};
|
|
14858
15222
|
Relationships: [
|
|
14859
15223
|
{
|
|
@@ -14926,36 +15290,75 @@ export type Database = {
|
|
|
14926
15290
|
avail_exceptions: {
|
|
14927
15291
|
Row: {
|
|
14928
15292
|
assigned_to_user_id: string | null;
|
|
15293
|
+
backfill_batch_id: string | null;
|
|
15294
|
+
created_at: string;
|
|
14929
15295
|
entity_type: string;
|
|
15296
|
+
exception_reason: string | null;
|
|
14930
15297
|
exception_type: string;
|
|
14931
15298
|
external_key: string;
|
|
15299
|
+
external_record_link_id: string | null;
|
|
14932
15300
|
id: string;
|
|
15301
|
+
last_error_message: string | null;
|
|
15302
|
+
last_retry_at: string | null;
|
|
14933
15303
|
organization_id: string;
|
|
14934
15304
|
payload_json: Json;
|
|
15305
|
+
raw_row_ref: string | null;
|
|
15306
|
+
resolution_notes: string | null;
|
|
15307
|
+
resolved_at: string | null;
|
|
15308
|
+
retry_count: number;
|
|
15309
|
+
script_version: string | null;
|
|
15310
|
+
severity: string;
|
|
14935
15311
|
source_system_id: string;
|
|
14936
15312
|
status: string;
|
|
15313
|
+
updated_at: string;
|
|
14937
15314
|
};
|
|
14938
15315
|
Insert: {
|
|
14939
15316
|
assigned_to_user_id?: string | null;
|
|
15317
|
+
backfill_batch_id?: string | null;
|
|
15318
|
+
created_at?: string;
|
|
14940
15319
|
entity_type: string;
|
|
15320
|
+
exception_reason?: string | null;
|
|
14941
15321
|
exception_type: string;
|
|
14942
15322
|
external_key: string;
|
|
15323
|
+
external_record_link_id?: string | null;
|
|
14943
15324
|
id?: string;
|
|
15325
|
+
last_error_message?: string | null;
|
|
15326
|
+
last_retry_at?: string | null;
|
|
14944
15327
|
organization_id: string;
|
|
14945
15328
|
payload_json?: Json;
|
|
15329
|
+
raw_row_ref?: string | null;
|
|
15330
|
+
resolution_notes?: string | null;
|
|
15331
|
+
resolved_at?: string | null;
|
|
15332
|
+
retry_count?: number;
|
|
15333
|
+
script_version?: string | null;
|
|
15334
|
+
severity?: string;
|
|
14946
15335
|
source_system_id: string;
|
|
14947
15336
|
status: string;
|
|
15337
|
+
updated_at?: string;
|
|
14948
15338
|
};
|
|
14949
15339
|
Update: {
|
|
14950
15340
|
assigned_to_user_id?: string | null;
|
|
15341
|
+
backfill_batch_id?: string | null;
|
|
15342
|
+
created_at?: string;
|
|
14951
15343
|
entity_type?: string;
|
|
15344
|
+
exception_reason?: string | null;
|
|
14952
15345
|
exception_type?: string;
|
|
14953
15346
|
external_key?: string;
|
|
15347
|
+
external_record_link_id?: string | null;
|
|
14954
15348
|
id?: string;
|
|
15349
|
+
last_error_message?: string | null;
|
|
15350
|
+
last_retry_at?: string | null;
|
|
14955
15351
|
organization_id?: string;
|
|
14956
15352
|
payload_json?: Json;
|
|
15353
|
+
raw_row_ref?: string | null;
|
|
15354
|
+
resolution_notes?: string | null;
|
|
15355
|
+
resolved_at?: string | null;
|
|
15356
|
+
retry_count?: number;
|
|
15357
|
+
script_version?: string | null;
|
|
15358
|
+
severity?: string;
|
|
14957
15359
|
source_system_id?: string;
|
|
14958
15360
|
status?: string;
|
|
15361
|
+
updated_at?: string;
|
|
14959
15362
|
};
|
|
14960
15363
|
Relationships: [
|
|
14961
15364
|
{
|
|
@@ -15022,32 +15425,47 @@ export type Database = {
|
|
|
15022
15425
|
avail_source_job_items: {
|
|
15023
15426
|
Row: {
|
|
15024
15427
|
error_code: string | null;
|
|
15428
|
+
error_message: string | null;
|
|
15025
15429
|
external_key: string;
|
|
15430
|
+
external_record_link_id: string | null;
|
|
15026
15431
|
id: string;
|
|
15027
15432
|
item_status: string;
|
|
15028
15433
|
job_id: string;
|
|
15029
15434
|
mapped_artist_id: string | null;
|
|
15435
|
+
normalized_window_id: string | null;
|
|
15030
15436
|
organization_id: string;
|
|
15437
|
+
processed_at: string | null;
|
|
15438
|
+
raw_row_ref: string | null;
|
|
15031
15439
|
retry_count: number;
|
|
15032
15440
|
};
|
|
15033
15441
|
Insert: {
|
|
15034
15442
|
error_code?: string | null;
|
|
15443
|
+
error_message?: string | null;
|
|
15035
15444
|
external_key: string;
|
|
15445
|
+
external_record_link_id?: string | null;
|
|
15036
15446
|
id?: string;
|
|
15037
15447
|
item_status: string;
|
|
15038
15448
|
job_id: string;
|
|
15039
15449
|
mapped_artist_id?: string | null;
|
|
15450
|
+
normalized_window_id?: string | null;
|
|
15040
15451
|
organization_id: string;
|
|
15452
|
+
processed_at?: string | null;
|
|
15453
|
+
raw_row_ref?: string | null;
|
|
15041
15454
|
retry_count?: number;
|
|
15042
15455
|
};
|
|
15043
15456
|
Update: {
|
|
15044
15457
|
error_code?: string | null;
|
|
15458
|
+
error_message?: string | null;
|
|
15045
15459
|
external_key?: string;
|
|
15460
|
+
external_record_link_id?: string | null;
|
|
15046
15461
|
id?: string;
|
|
15047
15462
|
item_status?: string;
|
|
15048
15463
|
job_id?: string;
|
|
15049
15464
|
mapped_artist_id?: string | null;
|
|
15465
|
+
normalized_window_id?: string | null;
|
|
15050
15466
|
organization_id?: string;
|
|
15467
|
+
processed_at?: string | null;
|
|
15468
|
+
raw_row_ref?: string | null;
|
|
15051
15469
|
retry_count?: number;
|
|
15052
15470
|
};
|
|
15053
15471
|
Relationships: [
|
|
@@ -15058,6 +15476,27 @@ export type Database = {
|
|
|
15058
15476
|
referencedRelation: "avail_source_jobs";
|
|
15059
15477
|
referencedColumns: ["id"];
|
|
15060
15478
|
},
|
|
15479
|
+
{
|
|
15480
|
+
foreignKeyName: "avail_source_job_items_normalized_window_id_fkey";
|
|
15481
|
+
columns: ["normalized_window_id"];
|
|
15482
|
+
isOneToOne: false;
|
|
15483
|
+
referencedRelation: "artist_availability_windows";
|
|
15484
|
+
referencedColumns: ["id"];
|
|
15485
|
+
},
|
|
15486
|
+
{
|
|
15487
|
+
foreignKeyName: "avail_source_job_items_normalized_window_id_fkey";
|
|
15488
|
+
columns: ["normalized_window_id"];
|
|
15489
|
+
isOneToOne: false;
|
|
15490
|
+
referencedRelation: "availability_search_base";
|
|
15491
|
+
referencedColumns: ["id"];
|
|
15492
|
+
},
|
|
15493
|
+
{
|
|
15494
|
+
foreignKeyName: "avail_source_job_items_normalized_window_id_fkey";
|
|
15495
|
+
columns: ["normalized_window_id"];
|
|
15496
|
+
isOneToOne: false;
|
|
15497
|
+
referencedRelation: "event_edition_live_grid";
|
|
15498
|
+
referencedColumns: ["live_availability_window_id"];
|
|
15499
|
+
},
|
|
15061
15500
|
{
|
|
15062
15501
|
foreignKeyName: "avail_source_job_items_organization_id_fkey";
|
|
15063
15502
|
columns: ["organization_id"];
|
|
@@ -15076,31 +15515,52 @@ export type Database = {
|
|
|
15076
15515
|
};
|
|
15077
15516
|
avail_source_jobs: {
|
|
15078
15517
|
Row: {
|
|
15518
|
+
backfill_batch_id: string | null;
|
|
15079
15519
|
completed_at: string | null;
|
|
15080
15520
|
error_summary: string | null;
|
|
15521
|
+
exception_count: number;
|
|
15081
15522
|
id: string;
|
|
15082
15523
|
job_type: string;
|
|
15083
15524
|
organization_id: string;
|
|
15525
|
+
phase: string;
|
|
15526
|
+
processed_count: number;
|
|
15527
|
+
record_count: number;
|
|
15528
|
+
script_version: string | null;
|
|
15529
|
+
skipped_count: number;
|
|
15084
15530
|
source_system_id: string;
|
|
15085
15531
|
started_at: string;
|
|
15086
15532
|
status: string;
|
|
15087
15533
|
};
|
|
15088
15534
|
Insert: {
|
|
15535
|
+
backfill_batch_id?: string | null;
|
|
15089
15536
|
completed_at?: string | null;
|
|
15090
15537
|
error_summary?: string | null;
|
|
15538
|
+
exception_count?: number;
|
|
15091
15539
|
id?: string;
|
|
15092
15540
|
job_type: string;
|
|
15093
15541
|
organization_id: string;
|
|
15542
|
+
phase?: string;
|
|
15543
|
+
processed_count?: number;
|
|
15544
|
+
record_count?: number;
|
|
15545
|
+
script_version?: string | null;
|
|
15546
|
+
skipped_count?: number;
|
|
15094
15547
|
source_system_id: string;
|
|
15095
15548
|
started_at?: string;
|
|
15096
15549
|
status: string;
|
|
15097
15550
|
};
|
|
15098
15551
|
Update: {
|
|
15552
|
+
backfill_batch_id?: string | null;
|
|
15099
15553
|
completed_at?: string | null;
|
|
15100
15554
|
error_summary?: string | null;
|
|
15555
|
+
exception_count?: number;
|
|
15101
15556
|
id?: string;
|
|
15102
15557
|
job_type?: string;
|
|
15103
15558
|
organization_id?: string;
|
|
15559
|
+
phase?: string;
|
|
15560
|
+
processed_count?: number;
|
|
15561
|
+
record_count?: number;
|
|
15562
|
+
script_version?: string | null;
|
|
15563
|
+
skipped_count?: number;
|
|
15104
15564
|
source_system_id?: string;
|
|
15105
15565
|
started_at?: string;
|
|
15106
15566
|
status?: string;
|