@flowselections/floriday-afhandeling-module 1.0.3 → 1.0.5

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.
@@ -12,6 +12,192 @@ export interface FloridayOrder {
12
12
  export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
13
13
  supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
14
14
  Tables: {
15
+ agenda_connections: {
16
+ Row: {
17
+ account_email: string | null;
18
+ created_at: string;
19
+ id: string;
20
+ last_error: string | null;
21
+ last_synced_at: string | null;
22
+ provider: string;
23
+ selected_calendars: import("../integrations/supabase/types").Json;
24
+ status: string;
25
+ sync_mode: string;
26
+ updated_at: string;
27
+ user_id: string;
28
+ };
29
+ Insert: {
30
+ account_email?: string | null;
31
+ created_at?: string;
32
+ id?: string;
33
+ last_error?: string | null;
34
+ last_synced_at?: string | null;
35
+ provider: string;
36
+ selected_calendars?: import("../integrations/supabase/types").Json;
37
+ status?: string;
38
+ sync_mode?: string;
39
+ updated_at?: string;
40
+ user_id: string;
41
+ };
42
+ Update: {
43
+ account_email?: string | null;
44
+ created_at?: string;
45
+ id?: string;
46
+ last_error?: string | null;
47
+ last_synced_at?: string | null;
48
+ provider?: string;
49
+ selected_calendars?: import("../integrations/supabase/types").Json;
50
+ status?: string;
51
+ sync_mode?: string;
52
+ updated_at?: string;
53
+ user_id?: string;
54
+ };
55
+ Relationships: [];
56
+ };
57
+ agenda_events: {
58
+ Row: {
59
+ all_day: boolean;
60
+ calendar_id: string;
61
+ category: string | null;
62
+ color: string;
63
+ created_at: string;
64
+ description: string | null;
65
+ end_at: string;
66
+ external_id: string | null;
67
+ external_provider: string | null;
68
+ id: string;
69
+ linked_data: import("../integrations/supabase/types").Json;
70
+ location: string | null;
71
+ notes: string | null;
72
+ recurrence: string | null;
73
+ reminders: import("../integrations/supabase/types").Json;
74
+ source_id: string | null;
75
+ source_module: string;
76
+ source_type: string | null;
77
+ start_at: string;
78
+ status: string;
79
+ title: string;
80
+ updated_at: string;
81
+ user_id: string;
82
+ };
83
+ Insert: {
84
+ all_day?: boolean;
85
+ calendar_id?: string;
86
+ category?: string | null;
87
+ color?: string;
88
+ created_at?: string;
89
+ description?: string | null;
90
+ end_at: string;
91
+ external_id?: string | null;
92
+ external_provider?: string | null;
93
+ id?: string;
94
+ linked_data?: import("../integrations/supabase/types").Json;
95
+ location?: string | null;
96
+ notes?: string | null;
97
+ recurrence?: string | null;
98
+ reminders?: import("../integrations/supabase/types").Json;
99
+ source_id?: string | null;
100
+ source_module?: string;
101
+ source_type?: string | null;
102
+ start_at: string;
103
+ status?: string;
104
+ title: string;
105
+ updated_at?: string;
106
+ user_id: string;
107
+ };
108
+ Update: {
109
+ all_day?: boolean;
110
+ calendar_id?: string;
111
+ category?: string | null;
112
+ color?: string;
113
+ created_at?: string;
114
+ description?: string | null;
115
+ end_at?: string;
116
+ external_id?: string | null;
117
+ external_provider?: string | null;
118
+ id?: string;
119
+ linked_data?: import("../integrations/supabase/types").Json;
120
+ location?: string | null;
121
+ notes?: string | null;
122
+ recurrence?: string | null;
123
+ reminders?: import("../integrations/supabase/types").Json;
124
+ source_id?: string | null;
125
+ source_module?: string;
126
+ source_type?: string | null;
127
+ start_at?: string;
128
+ status?: string;
129
+ title?: string;
130
+ updated_at?: string;
131
+ user_id?: string;
132
+ };
133
+ Relationships: [];
134
+ };
135
+ agenda_oauth_tokens: {
136
+ Row: {
137
+ access_token: string | null;
138
+ created_at: string;
139
+ id: string;
140
+ provider: string;
141
+ refresh_token: string | null;
142
+ scope: string | null;
143
+ token_expires_at: string | null;
144
+ updated_at: string;
145
+ user_id: string;
146
+ };
147
+ Insert: {
148
+ access_token?: string | null;
149
+ created_at?: string;
150
+ id?: string;
151
+ provider: string;
152
+ refresh_token?: string | null;
153
+ scope?: string | null;
154
+ token_expires_at?: string | null;
155
+ updated_at?: string;
156
+ user_id: string;
157
+ };
158
+ Update: {
159
+ access_token?: string | null;
160
+ created_at?: string;
161
+ id?: string;
162
+ provider?: string;
163
+ refresh_token?: string | null;
164
+ scope?: string | null;
165
+ token_expires_at?: string | null;
166
+ updated_at?: string;
167
+ user_id?: string;
168
+ };
169
+ Relationships: [];
170
+ };
171
+ agenda_settings: {
172
+ Row: {
173
+ color_map: import("../integrations/supabase/types").Json;
174
+ created_at: string;
175
+ default_calendar_id: string;
176
+ default_view: string;
177
+ settings: import("../integrations/supabase/types").Json;
178
+ updated_at: string;
179
+ user_id: string;
180
+ };
181
+ Insert: {
182
+ color_map?: import("../integrations/supabase/types").Json;
183
+ created_at?: string;
184
+ default_calendar_id?: string;
185
+ default_view?: string;
186
+ settings?: import("../integrations/supabase/types").Json;
187
+ updated_at?: string;
188
+ user_id: string;
189
+ };
190
+ Update: {
191
+ color_map?: import("../integrations/supabase/types").Json;
192
+ created_at?: string;
193
+ default_calendar_id?: string;
194
+ default_view?: string;
195
+ settings?: import("../integrations/supabase/types").Json;
196
+ updated_at?: string;
197
+ user_id?: string;
198
+ };
199
+ Relationships: [];
200
+ };
15
201
  bugs: {
16
202
  Row: {
17
203
  attachment_url: string | null;
@@ -486,450 +672,2166 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
486
672
  };
487
673
  Relationships: [];
488
674
  };
489
- exact_connections: {
675
+ dashboard_ai_conversations: {
490
676
  Row: {
491
- access_token_encrypted: string;
492
- company_name: string | null;
493
- connected_at: string;
494
- connected_by: string | null;
495
- division_code: number | null;
496
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
497
- expires_at: string;
677
+ created_at: string;
498
678
  id: string;
499
- refresh_token_encrypted: string;
500
- status: string;
679
+ messages: import("../integrations/supabase/types").Json;
680
+ page_id: string | null;
681
+ title: string | null;
501
682
  updated_at: string;
683
+ user_id: string;
502
684
  };
503
685
  Insert: {
504
- access_token_encrypted: string;
505
- company_name?: string | null;
506
- connected_at?: string;
507
- connected_by?: string | null;
508
- division_code?: number | null;
509
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
510
- expires_at: string;
686
+ created_at?: string;
511
687
  id?: string;
512
- refresh_token_encrypted: string;
513
- status?: string;
688
+ messages?: import("../integrations/supabase/types").Json;
689
+ page_id?: string | null;
690
+ title?: string | null;
514
691
  updated_at?: string;
692
+ user_id: string;
515
693
  };
516
694
  Update: {
517
- access_token_encrypted?: string;
518
- company_name?: string | null;
519
- connected_at?: string;
520
- connected_by?: string | null;
521
- division_code?: number | null;
522
- environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
523
- expires_at?: string;
695
+ created_at?: string;
524
696
  id?: string;
525
- refresh_token_encrypted?: string;
526
- status?: string;
697
+ messages?: import("../integrations/supabase/types").Json;
698
+ page_id?: string | null;
699
+ title?: string | null;
527
700
  updated_at?: string;
701
+ user_id?: string;
528
702
  };
529
- Relationships: [];
703
+ Relationships: [{
704
+ foreignKeyName: "dashboard_ai_conversations_page_id_fkey";
705
+ columns: ["page_id"];
706
+ isOneToOne: false;
707
+ referencedRelation: "dashboard_pages";
708
+ referencedColumns: ["id"];
709
+ }];
530
710
  };
531
- exact_credentials: {
711
+ dashboard_alert_events: {
532
712
  Row: {
533
- client_id: string;
534
- client_secret_encrypted: string;
713
+ acknowledged: boolean;
714
+ block_id: string;
535
715
  created_at: string;
536
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
537
716
  id: string;
538
- redirect_uri: string;
539
- updated_at: string;
717
+ message: string | null;
718
+ page_id: string;
719
+ severity: string;
720
+ threshold: number | null;
721
+ user_id: string;
722
+ value: number | null;
540
723
  };
541
724
  Insert: {
542
- client_id: string;
543
- client_secret_encrypted: string;
725
+ acknowledged?: boolean;
726
+ block_id: string;
544
727
  created_at?: string;
545
- environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
546
728
  id?: string;
547
- redirect_uri: string;
548
- updated_at?: string;
729
+ message?: string | null;
730
+ page_id: string;
731
+ severity?: string;
732
+ threshold?: number | null;
733
+ user_id: string;
734
+ value?: number | null;
549
735
  };
550
736
  Update: {
551
- client_id?: string;
552
- client_secret_encrypted?: string;
737
+ acknowledged?: boolean;
738
+ block_id?: string;
553
739
  created_at?: string;
554
- environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
555
740
  id?: string;
556
- redirect_uri?: string;
557
- updated_at?: string;
558
- };
559
- Relationships: [];
560
- };
561
- exact_customers_cache: {
562
- Row: {
563
- connection_id: string;
564
- data: import("../integrations/supabase/types").Json;
565
- exact_id: string;
566
- fetched_at: string;
567
- };
568
- Insert: {
569
- connection_id: string;
570
- data?: import("../integrations/supabase/types").Json;
571
- exact_id: string;
572
- fetched_at?: string;
573
- };
574
- Update: {
575
- connection_id?: string;
576
- data?: import("../integrations/supabase/types").Json;
577
- exact_id?: string;
578
- fetched_at?: string;
741
+ message?: string | null;
742
+ page_id?: string;
743
+ severity?: string;
744
+ threshold?: number | null;
745
+ user_id?: string;
746
+ value?: number | null;
579
747
  };
580
- Relationships: [];
748
+ Relationships: [{
749
+ foreignKeyName: "dashboard_alert_events_block_id_fkey";
750
+ columns: ["block_id"];
751
+ isOneToOne: false;
752
+ referencedRelation: "dashboard_blocks";
753
+ referencedColumns: ["id"];
754
+ }, {
755
+ foreignKeyName: "dashboard_alert_events_page_id_fkey";
756
+ columns: ["page_id"];
757
+ isOneToOne: false;
758
+ referencedRelation: "dashboard_pages";
759
+ referencedColumns: ["id"];
760
+ }];
581
761
  };
582
- exact_sync_state: {
762
+ dashboard_block_templates: {
583
763
  Row: {
584
- connection_id: string;
585
- last_error: string | null;
586
- last_modified_cursor: string | null;
587
- last_synced_at: string | null;
588
- status: string;
764
+ config: import("../integrations/supabase/types").Json;
765
+ created_at: string;
766
+ description: string | null;
767
+ id: string;
768
+ is_public: boolean;
769
+ name: string;
770
+ type: string;
589
771
  updated_at: string;
772
+ user_id: string;
590
773
  };
591
774
  Insert: {
592
- connection_id: string;
593
- last_error?: string | null;
594
- last_modified_cursor?: string | null;
595
- last_synced_at?: string | null;
596
- status?: string;
775
+ config?: import("../integrations/supabase/types").Json;
776
+ created_at?: string;
777
+ description?: string | null;
778
+ id?: string;
779
+ is_public?: boolean;
780
+ name: string;
781
+ type: string;
597
782
  updated_at?: string;
783
+ user_id: string;
598
784
  };
599
785
  Update: {
600
- connection_id?: string;
601
- last_error?: string | null;
602
- last_modified_cursor?: string | null;
603
- last_synced_at?: string | null;
604
- status?: string;
786
+ config?: import("../integrations/supabase/types").Json;
787
+ created_at?: string;
788
+ description?: string | null;
789
+ id?: string;
790
+ is_public?: boolean;
791
+ name?: string;
792
+ type?: string;
605
793
  updated_at?: string;
794
+ user_id?: string;
606
795
  };
607
796
  Relationships: [];
608
797
  };
609
- floricode_connection_settings: {
798
+ dashboard_blocks: {
610
799
  Row: {
611
- catalog_key: string | null;
612
- catalog_url: string;
800
+ config: import("../integrations/supabase/types").Json;
613
801
  created_at: string;
614
- id: number;
615
- last_meta: import("../integrations/supabase/types").Json | null;
616
- last_test_at: string | null;
617
- last_test_error: string | null;
618
- last_test_ok: boolean | null;
802
+ filters: import("../integrations/supabase/types").Json;
803
+ id: string;
804
+ layout: import("../integrations/supabase/types").Json;
805
+ page_id: string;
806
+ permissions: import("../integrations/supabase/types").Json;
807
+ sort_order: number;
808
+ title: string;
809
+ type: string;
619
810
  updated_at: string;
620
811
  };
621
812
  Insert: {
622
- catalog_key?: string | null;
623
- catalog_url?: string;
813
+ config?: import("../integrations/supabase/types").Json;
624
814
  created_at?: string;
625
- id?: number;
626
- last_meta?: import("../integrations/supabase/types").Json | null;
627
- last_test_at?: string | null;
628
- last_test_error?: string | null;
629
- last_test_ok?: boolean | null;
815
+ filters?: import("../integrations/supabase/types").Json;
816
+ id?: string;
817
+ layout?: import("../integrations/supabase/types").Json;
818
+ page_id: string;
819
+ permissions?: import("../integrations/supabase/types").Json;
820
+ sort_order?: number;
821
+ title: string;
822
+ type: string;
630
823
  updated_at?: string;
631
824
  };
632
825
  Update: {
633
- catalog_key?: string | null;
634
- catalog_url?: string;
826
+ config?: import("../integrations/supabase/types").Json;
635
827
  created_at?: string;
636
- id?: number;
637
- last_meta?: import("../integrations/supabase/types").Json | null;
638
- last_test_at?: string | null;
639
- last_test_error?: string | null;
640
- last_test_ok?: boolean | null;
828
+ filters?: import("../integrations/supabase/types").Json;
829
+ id?: string;
830
+ layout?: import("../integrations/supabase/types").Json;
831
+ page_id?: string;
832
+ permissions?: import("../integrations/supabase/types").Json;
833
+ sort_order?: number;
834
+ title?: string;
835
+ type?: string;
641
836
  updated_at?: string;
642
837
  };
838
+ Relationships: [{
839
+ foreignKeyName: "dashboard_blocks_page_id_fkey";
840
+ columns: ["page_id"];
841
+ isOneToOne: false;
842
+ referencedRelation: "dashboard_pages";
843
+ referencedColumns: ["id"];
844
+ }];
845
+ };
846
+ dashboard_daily_reports: {
847
+ Row: {
848
+ created_at: string;
849
+ highlights: import("../integrations/supabase/types").Json | null;
850
+ id: string;
851
+ page_id: string;
852
+ summary: string;
853
+ user_id: string;
854
+ };
855
+ Insert: {
856
+ created_at?: string;
857
+ highlights?: import("../integrations/supabase/types").Json | null;
858
+ id?: string;
859
+ page_id: string;
860
+ summary: string;
861
+ user_id: string;
862
+ };
863
+ Update: {
864
+ created_at?: string;
865
+ highlights?: import("../integrations/supabase/types").Json | null;
866
+ id?: string;
867
+ page_id?: string;
868
+ summary?: string;
869
+ user_id?: string;
870
+ };
871
+ Relationships: [{
872
+ foreignKeyName: "dashboard_daily_reports_page_id_fkey";
873
+ columns: ["page_id"];
874
+ isOneToOne: false;
875
+ referencedRelation: "dashboard_pages";
876
+ referencedColumns: ["id"];
877
+ }];
878
+ };
879
+ dashboard_pages: {
880
+ Row: {
881
+ created_at: string;
882
+ icon: string | null;
883
+ id: string;
884
+ is_default: boolean;
885
+ name: string;
886
+ shared_with: string[];
887
+ sort_order: number;
888
+ updated_at: string;
889
+ user_id: string;
890
+ };
891
+ Insert: {
892
+ created_at?: string;
893
+ icon?: string | null;
894
+ id?: string;
895
+ is_default?: boolean;
896
+ name: string;
897
+ shared_with?: string[];
898
+ sort_order?: number;
899
+ updated_at?: string;
900
+ user_id: string;
901
+ };
902
+ Update: {
903
+ created_at?: string;
904
+ icon?: string | null;
905
+ id?: string;
906
+ is_default?: boolean;
907
+ name?: string;
908
+ shared_with?: string[];
909
+ sort_order?: number;
910
+ updated_at?: string;
911
+ user_id?: string;
912
+ };
643
913
  Relationships: [];
644
914
  };
645
- floricode_records: {
915
+ dashboard_saved_queries: {
646
916
  Row: {
647
- change_date_time: string | null;
648
- data: import("../integrations/supabase/types").Json;
649
- last_synced_at: string;
650
- record_id: string;
651
- resource: string;
917
+ created_at: string;
918
+ description: string | null;
919
+ id: string;
920
+ name: string;
921
+ query_spec: import("../integrations/supabase/types").Json;
922
+ updated_at: string;
923
+ user_id: string;
652
924
  };
653
925
  Insert: {
654
- change_date_time?: string | null;
655
- data?: import("../integrations/supabase/types").Json;
656
- last_synced_at?: string;
657
- record_id: string;
658
- resource: string;
926
+ created_at?: string;
927
+ description?: string | null;
928
+ id?: string;
929
+ name: string;
930
+ query_spec: import("../integrations/supabase/types").Json;
931
+ updated_at?: string;
932
+ user_id: string;
659
933
  };
660
934
  Update: {
661
- change_date_time?: string | null;
662
- data?: import("../integrations/supabase/types").Json;
663
- last_synced_at?: string;
664
- record_id?: string;
665
- resource?: string;
935
+ created_at?: string;
936
+ description?: string | null;
937
+ id?: string;
938
+ name?: string;
939
+ query_spec?: import("../integrations/supabase/types").Json;
940
+ updated_at?: string;
941
+ user_id?: string;
666
942
  };
667
943
  Relationships: [];
668
944
  };
669
- floricode_sync_state: {
945
+ exact_account_analytics_cache: {
946
+ Row: {
947
+ account_id: string;
948
+ account_name: string | null;
949
+ avg_payment_days: number | null;
950
+ computed_at: string;
951
+ connection_id: string;
952
+ expires_at: string | null;
953
+ id: string;
954
+ invoice_count: number | null;
955
+ last_invoice_date: string | null;
956
+ last_payment_date: string | null;
957
+ open_balance: number | null;
958
+ overdue_balance: number | null;
959
+ total_revenue: number | null;
960
+ };
961
+ Insert: {
962
+ account_id: string;
963
+ account_name?: string | null;
964
+ avg_payment_days?: number | null;
965
+ computed_at?: string;
966
+ connection_id: string;
967
+ expires_at?: string | null;
968
+ id?: string;
969
+ invoice_count?: number | null;
970
+ last_invoice_date?: string | null;
971
+ last_payment_date?: string | null;
972
+ open_balance?: number | null;
973
+ overdue_balance?: number | null;
974
+ total_revenue?: number | null;
975
+ };
976
+ Update: {
977
+ account_id?: string;
978
+ account_name?: string | null;
979
+ avg_payment_days?: number | null;
980
+ computed_at?: string;
981
+ connection_id?: string;
982
+ expires_at?: string | null;
983
+ id?: string;
984
+ invoice_count?: number | null;
985
+ last_invoice_date?: string | null;
986
+ last_payment_date?: string | null;
987
+ open_balance?: number | null;
988
+ overdue_balance?: number | null;
989
+ total_revenue?: number | null;
990
+ };
991
+ Relationships: [{
992
+ foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
993
+ columns: ["connection_id"];
994
+ isOneToOne: false;
995
+ referencedRelation: "exact_connections";
996
+ referencedColumns: ["id"];
997
+ }];
998
+ };
999
+ exact_analytics_cache: {
1000
+ Row: {
1001
+ analytics_type: string;
1002
+ avg_payment_days: number | null;
1003
+ computed_at: string;
1004
+ connection_id: string;
1005
+ data_raw: import("../integrations/supabase/types").Json | null;
1006
+ expires_at: string | null;
1007
+ id: string;
1008
+ open_count: number | null;
1009
+ overdue_amount: number | null;
1010
+ paid_this_month: number | null;
1011
+ period_key: string;
1012
+ total_invoiced: number | null;
1013
+ total_open: number | null;
1014
+ };
1015
+ Insert: {
1016
+ analytics_type: string;
1017
+ avg_payment_days?: number | null;
1018
+ computed_at?: string;
1019
+ connection_id: string;
1020
+ data_raw?: import("../integrations/supabase/types").Json | null;
1021
+ expires_at?: string | null;
1022
+ id?: string;
1023
+ open_count?: number | null;
1024
+ overdue_amount?: number | null;
1025
+ paid_this_month?: number | null;
1026
+ period_key: string;
1027
+ total_invoiced?: number | null;
1028
+ total_open?: number | null;
1029
+ };
1030
+ Update: {
1031
+ analytics_type?: string;
1032
+ avg_payment_days?: number | null;
1033
+ computed_at?: string;
1034
+ connection_id?: string;
1035
+ data_raw?: import("../integrations/supabase/types").Json | null;
1036
+ expires_at?: string | null;
1037
+ id?: string;
1038
+ open_count?: number | null;
1039
+ overdue_amount?: number | null;
1040
+ paid_this_month?: number | null;
1041
+ period_key?: string;
1042
+ total_invoiced?: number | null;
1043
+ total_open?: number | null;
1044
+ };
1045
+ Relationships: [{
1046
+ foreignKeyName: "exact_analytics_cache_connection_id_fkey";
1047
+ columns: ["connection_id"];
1048
+ isOneToOne: false;
1049
+ referencedRelation: "exact_connections";
1050
+ referencedColumns: ["id"];
1051
+ }];
1052
+ };
1053
+ exact_bulk_operation_items: {
670
1054
  Row: {
1055
+ attempts: number;
1056
+ bulk_operation_id: string;
1057
+ created_at: string;
671
1058
  error_message: string | null;
672
- last_change_date_time: string | null;
673
- last_sequence_number: number;
674
- last_sync_at: string | null;
675
- resource: string;
1059
+ id: string;
1060
+ invoice_cache_id: string | null;
1061
+ invoice_exact_id: string | null;
1062
+ processed_at: string | null;
1063
+ result_data: import("../integrations/supabase/types").Json | null;
1064
+ status: string;
1065
+ };
1066
+ Insert: {
1067
+ attempts?: number;
1068
+ bulk_operation_id: string;
1069
+ created_at?: string;
1070
+ error_message?: string | null;
1071
+ id?: string;
1072
+ invoice_cache_id?: string | null;
1073
+ invoice_exact_id?: string | null;
1074
+ processed_at?: string | null;
1075
+ result_data?: import("../integrations/supabase/types").Json | null;
1076
+ status?: string;
1077
+ };
1078
+ Update: {
1079
+ attempts?: number;
1080
+ bulk_operation_id?: string;
1081
+ created_at?: string;
1082
+ error_message?: string | null;
1083
+ id?: string;
1084
+ invoice_cache_id?: string | null;
1085
+ invoice_exact_id?: string | null;
1086
+ processed_at?: string | null;
1087
+ result_data?: import("../integrations/supabase/types").Json | null;
1088
+ status?: string;
1089
+ };
1090
+ Relationships: [{
1091
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
1092
+ columns: ["bulk_operation_id"];
1093
+ isOneToOne: false;
1094
+ referencedRelation: "exact_bulk_operations";
1095
+ referencedColumns: ["id"];
1096
+ }, {
1097
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
1098
+ columns: ["invoice_cache_id"];
1099
+ isOneToOne: false;
1100
+ referencedRelation: "exact_invoices_cache";
1101
+ referencedColumns: ["id"];
1102
+ }];
1103
+ };
1104
+ exact_bulk_operations: {
1105
+ Row: {
1106
+ completed_at: string | null;
1107
+ connection_id: string;
1108
+ created_at: string;
1109
+ created_by: string | null;
1110
+ error_message: string | null;
1111
+ failed_count: number | null;
1112
+ id: string;
1113
+ operation_type: string;
1114
+ processed_count: number | null;
1115
+ result_data: import("../integrations/supabase/types").Json | null;
1116
+ started_at: string | null;
676
1117
  status: string;
1118
+ total_count: number | null;
677
1119
  updated_at: string;
678
1120
  };
679
1121
  Insert: {
1122
+ completed_at?: string | null;
1123
+ connection_id: string;
1124
+ created_at?: string;
1125
+ created_by?: string | null;
680
1126
  error_message?: string | null;
681
- last_change_date_time?: string | null;
682
- last_sequence_number?: number;
683
- last_sync_at?: string | null;
684
- resource: string;
1127
+ failed_count?: number | null;
1128
+ id?: string;
1129
+ operation_type: string;
1130
+ processed_count?: number | null;
1131
+ result_data?: import("../integrations/supabase/types").Json | null;
1132
+ started_at?: string | null;
685
1133
  status?: string;
1134
+ total_count?: number | null;
686
1135
  updated_at?: string;
687
1136
  };
688
1137
  Update: {
1138
+ completed_at?: string | null;
1139
+ connection_id?: string;
1140
+ created_at?: string;
1141
+ created_by?: string | null;
689
1142
  error_message?: string | null;
690
- last_change_date_time?: string | null;
691
- last_sequence_number?: number;
692
- last_sync_at?: string | null;
693
- resource?: string;
1143
+ failed_count?: number | null;
1144
+ id?: string;
1145
+ operation_type?: string;
1146
+ processed_count?: number | null;
1147
+ result_data?: import("../integrations/supabase/types").Json | null;
1148
+ started_at?: string | null;
1149
+ status?: string;
1150
+ total_count?: number | null;
1151
+ updated_at?: string;
1152
+ };
1153
+ Relationships: [{
1154
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
1155
+ columns: ["connection_id"];
1156
+ isOneToOne: false;
1157
+ referencedRelation: "exact_connections";
1158
+ referencedColumns: ["id"];
1159
+ }];
1160
+ };
1161
+ exact_connections: {
1162
+ Row: {
1163
+ access_token_encrypted: string;
1164
+ company_name: string | null;
1165
+ connected_at: string;
1166
+ connected_by: string | null;
1167
+ division_code: number | null;
1168
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1169
+ expires_at: string;
1170
+ id: string;
1171
+ last_error: string | null;
1172
+ last_refreshed_at: string | null;
1173
+ last_tested_at: string | null;
1174
+ refresh_token_encrypted: string;
1175
+ status: string;
1176
+ updated_at: string;
1177
+ };
1178
+ Insert: {
1179
+ access_token_encrypted: string;
1180
+ company_name?: string | null;
1181
+ connected_at?: string;
1182
+ connected_by?: string | null;
1183
+ division_code?: number | null;
1184
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1185
+ expires_at: string;
1186
+ id?: string;
1187
+ last_error?: string | null;
1188
+ last_refreshed_at?: string | null;
1189
+ last_tested_at?: string | null;
1190
+ refresh_token_encrypted: string;
1191
+ status?: string;
1192
+ updated_at?: string;
1193
+ };
1194
+ Update: {
1195
+ access_token_encrypted?: string;
1196
+ company_name?: string | null;
1197
+ connected_at?: string;
1198
+ connected_by?: string | null;
1199
+ division_code?: number | null;
1200
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1201
+ expires_at?: string;
1202
+ id?: string;
1203
+ last_error?: string | null;
1204
+ last_refreshed_at?: string | null;
1205
+ last_tested_at?: string | null;
1206
+ refresh_token_encrypted?: string;
694
1207
  status?: string;
695
1208
  updated_at?: string;
696
1209
  };
697
1210
  Relationships: [];
698
1211
  };
699
- floriday_connections: {
1212
+ exact_credentials: {
700
1213
  Row: {
701
- access_token: string | null;
702
- api_key: string;
703
1214
  client_id: string;
704
- client_secret: string;
1215
+ client_secret_encrypted: string;
1216
+ created_at: string;
1217
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1218
+ id: string;
1219
+ redirect_uri: string;
1220
+ updated_at: string;
1221
+ };
1222
+ Insert: {
1223
+ client_id: string;
1224
+ client_secret_encrypted: string;
1225
+ created_at?: string;
1226
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1227
+ id?: string;
1228
+ redirect_uri?: string;
1229
+ updated_at?: string;
1230
+ };
1231
+ Update: {
1232
+ client_id?: string;
1233
+ client_secret_encrypted?: string;
1234
+ created_at?: string;
1235
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1236
+ id?: string;
1237
+ redirect_uri?: string;
1238
+ updated_at?: string;
1239
+ };
1240
+ Relationships: [];
1241
+ };
1242
+ exact_customer_sync_queue: {
1243
+ Row: {
1244
+ attempts: number;
1245
+ connection_id: string;
1246
+ created_at: string;
1247
+ customer_exact_id: string | null;
1248
+ error_message: string | null;
1249
+ id: string;
1250
+ max_attempts: number;
1251
+ operation: string;
1252
+ payload: import("../integrations/supabase/types").Json;
1253
+ process_at: string;
1254
+ processed_at: string | null;
1255
+ status: string;
1256
+ updated_at: string;
1257
+ };
1258
+ Insert: {
1259
+ attempts?: number;
1260
+ connection_id: string;
1261
+ created_at?: string;
1262
+ customer_exact_id?: string | null;
1263
+ error_message?: string | null;
1264
+ id?: string;
1265
+ max_attempts?: number;
1266
+ operation: string;
1267
+ payload?: import("../integrations/supabase/types").Json;
1268
+ process_at?: string;
1269
+ processed_at?: string | null;
1270
+ status?: string;
1271
+ updated_at?: string;
1272
+ };
1273
+ Update: {
1274
+ attempts?: number;
1275
+ connection_id?: string;
1276
+ created_at?: string;
1277
+ customer_exact_id?: string | null;
1278
+ error_message?: string | null;
1279
+ id?: string;
1280
+ max_attempts?: number;
1281
+ operation?: string;
1282
+ payload?: import("../integrations/supabase/types").Json;
1283
+ process_at?: string;
1284
+ processed_at?: string | null;
1285
+ status?: string;
1286
+ updated_at?: string;
1287
+ };
1288
+ Relationships: [{
1289
+ foreignKeyName: "exact_customer_sync_queue_connection_id_fkey";
1290
+ columns: ["connection_id"];
1291
+ isOneToOne: false;
1292
+ referencedRelation: "exact_connections";
1293
+ referencedColumns: ["id"];
1294
+ }];
1295
+ };
1296
+ exact_customers_cache: {
1297
+ Row: {
1298
+ account_name: string | null;
1299
+ account_number: string | null;
1300
+ address_line1: string | null;
1301
+ address_line2: string | null;
1302
+ balance: number | null;
1303
+ city: string | null;
1304
+ connection_id: string;
1305
+ contact_name: string | null;
1306
+ country: string | null;
1307
+ credit_line: number | null;
1308
+ data_raw: import("../integrations/supabase/types").Json | null;
1309
+ email: string | null;
1310
+ exact_id: string;
1311
+ expires_at: string | null;
1312
+ fetched_at: string;
1313
+ id: string;
1314
+ is_sales: boolean | null;
1315
+ is_supplier: boolean | null;
1316
+ phone: string | null;
1317
+ postal_code: string | null;
1318
+ search_text: string | null;
1319
+ status: string | null;
1320
+ updated_at: string;
1321
+ vat_number: string | null;
1322
+ };
1323
+ Insert: {
1324
+ account_name?: string | null;
1325
+ account_number?: string | null;
1326
+ address_line1?: string | null;
1327
+ address_line2?: string | null;
1328
+ balance?: number | null;
1329
+ city?: string | null;
1330
+ connection_id: string;
1331
+ contact_name?: string | null;
1332
+ country?: string | null;
1333
+ credit_line?: number | null;
1334
+ data_raw?: import("../integrations/supabase/types").Json | null;
1335
+ email?: string | null;
1336
+ exact_id: string;
1337
+ expires_at?: string | null;
1338
+ fetched_at?: string;
1339
+ id?: string;
1340
+ is_sales?: boolean | null;
1341
+ is_supplier?: boolean | null;
1342
+ phone?: string | null;
1343
+ postal_code?: string | null;
1344
+ search_text?: string | null;
1345
+ status?: string | null;
1346
+ updated_at?: string;
1347
+ vat_number?: string | null;
1348
+ };
1349
+ Update: {
1350
+ account_name?: string | null;
1351
+ account_number?: string | null;
1352
+ address_line1?: string | null;
1353
+ address_line2?: string | null;
1354
+ balance?: number | null;
1355
+ city?: string | null;
1356
+ connection_id?: string;
1357
+ contact_name?: string | null;
1358
+ country?: string | null;
1359
+ credit_line?: number | null;
1360
+ data_raw?: import("../integrations/supabase/types").Json | null;
1361
+ email?: string | null;
1362
+ exact_id?: string;
1363
+ expires_at?: string | null;
1364
+ fetched_at?: string;
1365
+ id?: string;
1366
+ is_sales?: boolean | null;
1367
+ is_supplier?: boolean | null;
1368
+ phone?: string | null;
1369
+ postal_code?: string | null;
1370
+ search_text?: string | null;
1371
+ status?: string | null;
1372
+ updated_at?: string;
1373
+ vat_number?: string | null;
1374
+ };
1375
+ Relationships: [{
1376
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
1377
+ columns: ["connection_id"];
1378
+ isOneToOne: false;
1379
+ referencedRelation: "exact_connections";
1380
+ referencedColumns: ["id"];
1381
+ }];
1382
+ };
1383
+ exact_invoice_actions: {
1384
+ Row: {
1385
+ action_type: string;
1386
+ connection_id: string;
1387
+ created_at: string;
1388
+ created_by: string | null;
1389
+ error_message: string | null;
1390
+ id: string;
1391
+ invoice_cache_id: string | null;
1392
+ invoice_exact_id: string | null;
1393
+ rate_limit_remaining: number | null;
1394
+ response_data: import("../integrations/supabase/types").Json | null;
1395
+ status: string;
1396
+ };
1397
+ Insert: {
1398
+ action_type: string;
1399
+ connection_id: string;
1400
+ created_at?: string;
1401
+ created_by?: string | null;
1402
+ error_message?: string | null;
1403
+ id?: string;
1404
+ invoice_cache_id?: string | null;
1405
+ invoice_exact_id?: string | null;
1406
+ rate_limit_remaining?: number | null;
1407
+ response_data?: import("../integrations/supabase/types").Json | null;
1408
+ status: string;
1409
+ };
1410
+ Update: {
1411
+ action_type?: string;
1412
+ connection_id?: string;
1413
+ created_at?: string;
1414
+ created_by?: string | null;
1415
+ error_message?: string | null;
1416
+ id?: string;
1417
+ invoice_cache_id?: string | null;
1418
+ invoice_exact_id?: string | null;
1419
+ rate_limit_remaining?: number | null;
1420
+ response_data?: import("../integrations/supabase/types").Json | null;
1421
+ status?: string;
1422
+ };
1423
+ Relationships: [{
1424
+ foreignKeyName: "exact_invoice_actions_connection_id_fkey";
1425
+ columns: ["connection_id"];
1426
+ isOneToOne: false;
1427
+ referencedRelation: "exact_connections";
1428
+ referencedColumns: ["id"];
1429
+ }, {
1430
+ foreignKeyName: "exact_invoice_actions_invoice_cache_id_fkey";
1431
+ columns: ["invoice_cache_id"];
1432
+ isOneToOne: false;
1433
+ referencedRelation: "exact_invoices_cache";
1434
+ referencedColumns: ["id"];
1435
+ }];
1436
+ };
1437
+ exact_invoice_lines_cache: {
1438
+ Row: {
1439
+ connection_id: string;
1440
+ created_at: string;
1441
+ data_raw: import("../integrations/supabase/types").Json | null;
1442
+ description: string | null;
1443
+ discount: number | null;
1444
+ exact_line_id: string;
1445
+ gl_account_code: string | null;
1446
+ id: string;
1447
+ invoice_cache_id: string;
1448
+ item_code: string | null;
1449
+ line_total: number | null;
1450
+ quantity: number | null;
1451
+ unit_price: number | null;
1452
+ vat_code: string | null;
1453
+ };
1454
+ Insert: {
1455
+ connection_id: string;
1456
+ created_at?: string;
1457
+ data_raw?: import("../integrations/supabase/types").Json | null;
1458
+ description?: string | null;
1459
+ discount?: number | null;
1460
+ exact_line_id: string;
1461
+ gl_account_code?: string | null;
1462
+ id?: string;
1463
+ invoice_cache_id: string;
1464
+ item_code?: string | null;
1465
+ line_total?: number | null;
1466
+ quantity?: number | null;
1467
+ unit_price?: number | null;
1468
+ vat_code?: string | null;
1469
+ };
1470
+ Update: {
1471
+ connection_id?: string;
1472
+ created_at?: string;
1473
+ data_raw?: import("../integrations/supabase/types").Json | null;
1474
+ description?: string | null;
1475
+ discount?: number | null;
1476
+ exact_line_id?: string;
1477
+ gl_account_code?: string | null;
1478
+ id?: string;
1479
+ invoice_cache_id?: string;
1480
+ item_code?: string | null;
1481
+ line_total?: number | null;
1482
+ quantity?: number | null;
1483
+ unit_price?: number | null;
1484
+ vat_code?: string | null;
1485
+ };
1486
+ Relationships: [{
1487
+ foreignKeyName: "exact_invoice_lines_cache_connection_id_fkey";
1488
+ columns: ["connection_id"];
1489
+ isOneToOne: false;
1490
+ referencedRelation: "exact_connections";
1491
+ referencedColumns: ["id"];
1492
+ }, {
1493
+ foreignKeyName: "exact_invoice_lines_cache_invoice_cache_id_fkey";
1494
+ columns: ["invoice_cache_id"];
1495
+ isOneToOne: false;
1496
+ referencedRelation: "exact_invoices_cache";
1497
+ referencedColumns: ["id"];
1498
+ }];
1499
+ };
1500
+ exact_invoices_cache: {
1501
+ Row: {
1502
+ account_id: string | null;
1503
+ account_name: string | null;
1504
+ amount_excl_btw: number | null;
1505
+ btw_amount: number | null;
1506
+ connection_id: string;
1507
+ data_raw: import("../integrations/supabase/types").Json | null;
1508
+ due_date: string | null;
1509
+ exact_id: string;
1510
+ expires_at: string | null;
1511
+ fetched_at: string;
1512
+ has_pdf: boolean | null;
1513
+ id: string;
1514
+ invoice_date: string | null;
1515
+ invoice_number: string | null;
1516
+ last_reminder_date: string | null;
1517
+ open_amount: number | null;
1518
+ paid_amount: number | null;
1519
+ paid_date: string | null;
1520
+ reminder_count: number | null;
1521
+ search_text: string | null;
1522
+ status: string | null;
1523
+ total_amount: number | null;
1524
+ updated_at: string;
1525
+ };
1526
+ Insert: {
1527
+ account_id?: string | null;
1528
+ account_name?: string | null;
1529
+ amount_excl_btw?: number | null;
1530
+ btw_amount?: number | null;
1531
+ connection_id: string;
1532
+ data_raw?: import("../integrations/supabase/types").Json | null;
1533
+ due_date?: string | null;
1534
+ exact_id: string;
1535
+ expires_at?: string | null;
1536
+ fetched_at?: string;
1537
+ has_pdf?: boolean | null;
1538
+ id?: string;
1539
+ invoice_date?: string | null;
1540
+ invoice_number?: string | null;
1541
+ last_reminder_date?: string | null;
1542
+ open_amount?: number | null;
1543
+ paid_amount?: number | null;
1544
+ paid_date?: string | null;
1545
+ reminder_count?: number | null;
1546
+ search_text?: string | null;
1547
+ status?: string | null;
1548
+ total_amount?: number | null;
1549
+ updated_at?: string;
1550
+ };
1551
+ Update: {
1552
+ account_id?: string | null;
1553
+ account_name?: string | null;
1554
+ amount_excl_btw?: number | null;
1555
+ btw_amount?: number | null;
1556
+ connection_id?: string;
1557
+ data_raw?: import("../integrations/supabase/types").Json | null;
1558
+ due_date?: string | null;
1559
+ exact_id?: string;
1560
+ expires_at?: string | null;
1561
+ fetched_at?: string;
1562
+ has_pdf?: boolean | null;
1563
+ id?: string;
1564
+ invoice_date?: string | null;
1565
+ invoice_number?: string | null;
1566
+ last_reminder_date?: string | null;
1567
+ open_amount?: number | null;
1568
+ paid_amount?: number | null;
1569
+ paid_date?: string | null;
1570
+ reminder_count?: number | null;
1571
+ search_text?: string | null;
1572
+ status?: string | null;
1573
+ total_amount?: number | null;
1574
+ updated_at?: string;
1575
+ };
1576
+ Relationships: [{
1577
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
1578
+ columns: ["connection_id"];
1579
+ isOneToOne: false;
1580
+ referencedRelation: "exact_connections";
1581
+ referencedColumns: ["id"];
1582
+ }];
1583
+ };
1584
+ exact_operation_logs: {
1585
+ Row: {
1586
+ connection_id: string | null;
1587
+ created_at: string;
1588
+ duration_ms: number | null;
1589
+ entity_id: string | null;
1590
+ entity_type: string | null;
1591
+ error_message: string | null;
1592
+ id: string;
1593
+ operation: string | null;
1594
+ rate_limit_remaining: number | null;
1595
+ request_data: import("../integrations/supabase/types").Json | null;
1596
+ response_data: import("../integrations/supabase/types").Json | null;
1597
+ status: string | null;
1598
+ };
1599
+ Insert: {
1600
+ connection_id?: string | null;
1601
+ created_at?: string;
1602
+ duration_ms?: number | null;
1603
+ entity_id?: string | null;
1604
+ entity_type?: string | null;
1605
+ error_message?: string | null;
1606
+ id?: string;
1607
+ operation?: string | null;
1608
+ rate_limit_remaining?: number | null;
1609
+ request_data?: import("../integrations/supabase/types").Json | null;
1610
+ response_data?: import("../integrations/supabase/types").Json | null;
1611
+ status?: string | null;
1612
+ };
1613
+ Update: {
1614
+ connection_id?: string | null;
1615
+ created_at?: string;
1616
+ duration_ms?: number | null;
1617
+ entity_id?: string | null;
1618
+ entity_type?: string | null;
1619
+ error_message?: string | null;
1620
+ id?: string;
1621
+ operation?: string | null;
1622
+ rate_limit_remaining?: number | null;
1623
+ request_data?: import("../integrations/supabase/types").Json | null;
1624
+ response_data?: import("../integrations/supabase/types").Json | null;
1625
+ status?: string | null;
1626
+ };
1627
+ Relationships: [{
1628
+ foreignKeyName: "exact_operation_logs_connection_id_fkey";
1629
+ columns: ["connection_id"];
1630
+ isOneToOne: false;
1631
+ referencedRelation: "exact_connections";
1632
+ referencedColumns: ["id"];
1633
+ }];
1634
+ };
1635
+ exact_sync_state: {
1636
+ Row: {
1637
+ connection_id: string;
1638
+ last_error: string | null;
1639
+ last_modified_cursor: string | null;
1640
+ last_synced_at: string | null;
1641
+ status: string;
1642
+ updated_at: string;
1643
+ };
1644
+ Insert: {
1645
+ connection_id: string;
1646
+ last_error?: string | null;
1647
+ last_modified_cursor?: string | null;
1648
+ last_synced_at?: string | null;
1649
+ status?: string;
1650
+ updated_at?: string;
1651
+ };
1652
+ Update: {
1653
+ connection_id?: string;
1654
+ last_error?: string | null;
1655
+ last_modified_cursor?: string | null;
1656
+ last_synced_at?: string | null;
1657
+ status?: string;
1658
+ updated_at?: string;
1659
+ };
1660
+ Relationships: [];
1661
+ };
1662
+ floricode_connection_settings: {
1663
+ Row: {
1664
+ catalog_key: string | null;
1665
+ catalog_url: string;
1666
+ created_at: string;
1667
+ id: number;
1668
+ last_meta: import("../integrations/supabase/types").Json | null;
1669
+ last_test_at: string | null;
1670
+ last_test_error: string | null;
1671
+ last_test_ok: boolean | null;
1672
+ updated_at: string;
1673
+ };
1674
+ Insert: {
1675
+ catalog_key?: string | null;
1676
+ catalog_url?: string;
1677
+ created_at?: string;
1678
+ id?: number;
1679
+ last_meta?: import("../integrations/supabase/types").Json | null;
1680
+ last_test_at?: string | null;
1681
+ last_test_error?: string | null;
1682
+ last_test_ok?: boolean | null;
1683
+ updated_at?: string;
1684
+ };
1685
+ Update: {
1686
+ catalog_key?: string | null;
1687
+ catalog_url?: string;
1688
+ created_at?: string;
1689
+ id?: number;
1690
+ last_meta?: import("../integrations/supabase/types").Json | null;
1691
+ last_test_at?: string | null;
1692
+ last_test_error?: string | null;
1693
+ last_test_ok?: boolean | null;
1694
+ updated_at?: string;
1695
+ };
1696
+ Relationships: [];
1697
+ };
1698
+ floricode_records: {
1699
+ Row: {
1700
+ change_date_time: string | null;
1701
+ data: import("../integrations/supabase/types").Json;
1702
+ last_synced_at: string;
1703
+ record_id: string;
1704
+ resource: string;
1705
+ };
1706
+ Insert: {
1707
+ change_date_time?: string | null;
1708
+ data?: import("../integrations/supabase/types").Json;
1709
+ last_synced_at?: string;
1710
+ record_id: string;
1711
+ resource: string;
1712
+ };
1713
+ Update: {
1714
+ change_date_time?: string | null;
1715
+ data?: import("../integrations/supabase/types").Json;
1716
+ last_synced_at?: string;
1717
+ record_id?: string;
1718
+ resource?: string;
1719
+ };
1720
+ Relationships: [];
1721
+ };
1722
+ floricode_sync_state: {
1723
+ Row: {
1724
+ error_message: string | null;
1725
+ last_change_date_time: string | null;
1726
+ last_sequence_number: number;
1727
+ last_sync_at: string | null;
1728
+ resource: string;
1729
+ status: string;
1730
+ updated_at: string;
1731
+ };
1732
+ Insert: {
1733
+ error_message?: string | null;
1734
+ last_change_date_time?: string | null;
1735
+ last_sequence_number?: number;
1736
+ last_sync_at?: string | null;
1737
+ resource: string;
1738
+ status?: string;
1739
+ updated_at?: string;
1740
+ };
1741
+ Update: {
1742
+ error_message?: string | null;
1743
+ last_change_date_time?: string | null;
1744
+ last_sequence_number?: number;
1745
+ last_sync_at?: string | null;
1746
+ resource?: string;
1747
+ status?: string;
1748
+ updated_at?: string;
1749
+ };
1750
+ Relationships: [];
1751
+ };
1752
+ floriday_connections: {
1753
+ Row: {
1754
+ access_token: string | null;
1755
+ api_key: string;
1756
+ client_id: string;
1757
+ client_secret: string;
1758
+ created_at: string;
1759
+ customers_endpoint: string | null;
1760
+ environment: string;
1761
+ gln_code: string | null;
1762
+ id: string;
1763
+ is_active: boolean;
1764
+ label: string;
1765
+ organization_name: string | null;
1766
+ preferred_warehouse_id: string | null;
1767
+ preferred_warehouse_name: string | null;
1768
+ token_expires_at: string | null;
1769
+ updated_at: string;
1770
+ };
1771
+ Insert: {
1772
+ access_token?: string | null;
1773
+ api_key: string;
1774
+ client_id: string;
1775
+ client_secret: string;
1776
+ created_at?: string;
1777
+ customers_endpoint?: string | null;
1778
+ environment: string;
1779
+ gln_code?: string | null;
1780
+ id?: string;
1781
+ is_active?: boolean;
1782
+ label?: string;
1783
+ organization_name?: string | null;
1784
+ preferred_warehouse_id?: string | null;
1785
+ preferred_warehouse_name?: string | null;
1786
+ token_expires_at?: string | null;
1787
+ updated_at?: string;
1788
+ };
1789
+ Update: {
1790
+ access_token?: string | null;
1791
+ api_key?: string;
1792
+ client_id?: string;
1793
+ client_secret?: string;
1794
+ created_at?: string;
1795
+ customers_endpoint?: string | null;
1796
+ environment?: string;
1797
+ gln_code?: string | null;
1798
+ id?: string;
1799
+ is_active?: boolean;
1800
+ label?: string;
1801
+ organization_name?: string | null;
1802
+ preferred_warehouse_id?: string | null;
1803
+ preferred_warehouse_name?: string | null;
1804
+ token_expires_at?: string | null;
1805
+ updated_at?: string;
1806
+ };
1807
+ Relationships: [];
1808
+ };
1809
+ floriday_customers_cache: {
1810
+ Row: {
1811
+ connection_id: string | null;
1812
+ data: import("../integrations/supabase/types").Json;
1813
+ fetched_at: string;
1814
+ organization_id: string;
1815
+ };
1816
+ Insert: {
1817
+ connection_id?: string | null;
1818
+ data?: import("../integrations/supabase/types").Json;
1819
+ fetched_at?: string;
1820
+ organization_id: string;
1821
+ };
1822
+ Update: {
1823
+ connection_id?: string | null;
1824
+ data?: import("../integrations/supabase/types").Json;
1825
+ fetched_at?: string;
1826
+ organization_id?: string;
1827
+ };
1828
+ Relationships: [{
1829
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
1830
+ columns: ["connection_id"];
1831
+ isOneToOne: false;
1832
+ referencedRelation: "floriday_connections";
1833
+ referencedColumns: ["id"];
1834
+ }];
1835
+ };
1836
+ floriday_network_cache: {
1837
+ Row: {
1838
+ city: string | null;
1839
+ connection_id: string;
1840
+ country: string | null;
1841
+ data: import("../integrations/supabase/types").Json;
1842
+ fetched_at: string;
1843
+ gln: string | null;
1844
+ organization_id: string;
1845
+ organization_name: string | null;
1846
+ };
1847
+ Insert: {
1848
+ city?: string | null;
1849
+ connection_id: string;
1850
+ country?: string | null;
1851
+ data?: import("../integrations/supabase/types").Json;
1852
+ fetched_at?: string;
1853
+ gln?: string | null;
1854
+ organization_id: string;
1855
+ organization_name?: string | null;
1856
+ };
1857
+ Update: {
1858
+ city?: string | null;
1859
+ connection_id?: string;
1860
+ country?: string | null;
1861
+ data?: import("../integrations/supabase/types").Json;
1862
+ fetched_at?: string;
1863
+ gln?: string | null;
1864
+ organization_id?: string;
1865
+ organization_name?: string | null;
1866
+ };
1867
+ Relationships: [];
1868
+ };
1869
+ floriday_network_sync_state: {
1870
+ Row: {
1871
+ connection_id: string;
1872
+ last_error: string | null;
1873
+ last_sequence_number: number;
1874
+ last_synced_at: string | null;
1875
+ updated_at: string;
1876
+ };
1877
+ Insert: {
1878
+ connection_id: string;
1879
+ last_error?: string | null;
1880
+ last_sequence_number?: number;
1881
+ last_synced_at?: string | null;
1882
+ updated_at?: string;
1883
+ };
1884
+ Update: {
1885
+ connection_id?: string;
1886
+ last_error?: string | null;
1887
+ last_sequence_number?: number;
1888
+ last_synced_at?: string | null;
1889
+ updated_at?: string;
1890
+ };
1891
+ Relationships: [];
1892
+ };
1893
+ floriday_settings: {
1894
+ Row: {
1895
+ active_environment: string;
1896
+ id: number;
1897
+ updated_at: string;
1898
+ };
1899
+ Insert: {
1900
+ active_environment?: string;
1901
+ id?: number;
1902
+ updated_at?: string;
1903
+ };
1904
+ Update: {
1905
+ active_environment?: string;
1906
+ id?: number;
1907
+ updated_at?: string;
1908
+ };
1909
+ Relationships: [];
1910
+ };
1911
+ imap_accounts: {
1912
+ Row: {
1913
+ created_at: string;
1914
+ email: string | null;
1915
+ host: string;
1916
+ id: string;
1917
+ is_active: boolean;
1918
+ last_test_error: string | null;
1919
+ last_test_ok: boolean | null;
1920
+ last_tested_at: string | null;
1921
+ name: string;
1922
+ password: string | null;
1923
+ password_secret_name: string | null;
1924
+ port: number;
1925
+ updated_at: string;
1926
+ use_tls: boolean;
1927
+ username: string;
1928
+ };
1929
+ Insert: {
1930
+ created_at?: string;
1931
+ email?: string | null;
1932
+ host: string;
1933
+ id?: string;
1934
+ is_active?: boolean;
1935
+ last_test_error?: string | null;
1936
+ last_test_ok?: boolean | null;
1937
+ last_tested_at?: string | null;
1938
+ name: string;
1939
+ password?: string | null;
1940
+ password_secret_name?: string | null;
1941
+ port?: number;
1942
+ updated_at?: string;
1943
+ use_tls?: boolean;
1944
+ username: string;
1945
+ };
1946
+ Update: {
1947
+ created_at?: string;
1948
+ email?: string | null;
1949
+ host?: string;
1950
+ id?: string;
1951
+ is_active?: boolean;
1952
+ last_test_error?: string | null;
1953
+ last_test_ok?: boolean | null;
1954
+ last_tested_at?: string | null;
1955
+ name?: string;
1956
+ password?: string | null;
1957
+ password_secret_name?: string | null;
1958
+ port?: number;
1959
+ updated_at?: string;
1960
+ use_tls?: boolean;
1961
+ username?: string;
1962
+ };
1963
+ Relationships: [];
1964
+ };
1965
+ imap_profiles: {
1966
+ Row: {
1967
+ account_id: string | null;
1968
+ created_at: string;
1969
+ folder: string;
1970
+ id: string;
1971
+ last_error: string | null;
1972
+ last_polled_at: string | null;
1973
+ last_uid_seen: number;
1974
+ name: string;
1975
+ polling_enabled: boolean;
1976
+ profile_key: string;
1977
+ updated_at: string;
1978
+ };
1979
+ Insert: {
1980
+ account_id?: string | null;
1981
+ created_at?: string;
1982
+ folder?: string;
1983
+ id?: string;
1984
+ last_error?: string | null;
1985
+ last_polled_at?: string | null;
1986
+ last_uid_seen?: number;
1987
+ name: string;
1988
+ polling_enabled?: boolean;
1989
+ profile_key: string;
1990
+ updated_at?: string;
1991
+ };
1992
+ Update: {
1993
+ account_id?: string | null;
1994
+ created_at?: string;
1995
+ folder?: string;
1996
+ id?: string;
1997
+ last_error?: string | null;
1998
+ last_polled_at?: string | null;
1999
+ last_uid_seen?: number;
2000
+ name?: string;
2001
+ polling_enabled?: boolean;
2002
+ profile_key?: string;
2003
+ updated_at?: string;
2004
+ };
2005
+ Relationships: [{
2006
+ foreignKeyName: "imap_profiles_account_id_fkey";
2007
+ columns: ["account_id"];
2008
+ isOneToOne: false;
2009
+ referencedRelation: "imap_accounts";
2010
+ referencedColumns: ["id"];
2011
+ }];
2012
+ };
2013
+ imap_sync_log: {
2014
+ Row: {
2015
+ account_id: string | null;
2016
+ details: import("../integrations/supabase/types").Json | null;
2017
+ error: string | null;
2018
+ finished_at: string | null;
2019
+ id: string;
2020
+ inserted: number;
2021
+ ok: boolean | null;
2022
+ profile_id: string | null;
2023
+ started_at: string;
2024
+ };
2025
+ Insert: {
2026
+ account_id?: string | null;
2027
+ details?: import("../integrations/supabase/types").Json | null;
2028
+ error?: string | null;
2029
+ finished_at?: string | null;
2030
+ id?: string;
2031
+ inserted?: number;
2032
+ ok?: boolean | null;
2033
+ profile_id?: string | null;
2034
+ started_at?: string;
2035
+ };
2036
+ Update: {
2037
+ account_id?: string | null;
2038
+ details?: import("../integrations/supabase/types").Json | null;
2039
+ error?: string | null;
2040
+ finished_at?: string | null;
2041
+ id?: string;
2042
+ inserted?: number;
2043
+ ok?: boolean | null;
2044
+ profile_id?: string | null;
2045
+ started_at?: string;
2046
+ };
2047
+ Relationships: [{
2048
+ foreignKeyName: "imap_sync_log_account_id_fkey";
2049
+ columns: ["account_id"];
2050
+ isOneToOne: false;
2051
+ referencedRelation: "imap_accounts";
2052
+ referencedColumns: ["id"];
2053
+ }, {
2054
+ foreignKeyName: "imap_sync_log_profile_id_fkey";
2055
+ columns: ["profile_id"];
2056
+ isOneToOne: false;
2057
+ referencedRelation: "imap_profiles";
2058
+ referencedColumns: ["id"];
2059
+ }];
2060
+ };
2061
+ inventory_settings: {
2062
+ Row: {
2063
+ created_at: string;
2064
+ hierarchy_levels: string[];
2065
+ id: string;
2066
+ updated_at: string;
2067
+ visible_columns: string[];
2068
+ };
2069
+ Insert: {
2070
+ created_at?: string;
2071
+ hierarchy_levels?: string[];
2072
+ id?: string;
2073
+ updated_at?: string;
2074
+ visible_columns?: string[];
2075
+ };
2076
+ Update: {
2077
+ created_at?: string;
2078
+ hierarchy_levels?: string[];
2079
+ id?: string;
2080
+ updated_at?: string;
2081
+ visible_columns?: string[];
2082
+ };
2083
+ Relationships: [];
2084
+ };
2085
+ locations: {
2086
+ Row: {
2087
+ created_at: string;
2088
+ id: string;
2089
+ name: string;
2090
+ sort_order: number;
2091
+ updated_at: string;
2092
+ };
2093
+ Insert: {
2094
+ created_at?: string;
2095
+ id?: string;
2096
+ name: string;
2097
+ sort_order?: number;
2098
+ updated_at?: string;
2099
+ };
2100
+ Update: {
2101
+ created_at?: string;
2102
+ id?: string;
2103
+ name?: string;
2104
+ sort_order?: number;
2105
+ updated_at?: string;
2106
+ };
2107
+ Relationships: [];
2108
+ };
2109
+ mailbox_messages: {
2110
+ Row: {
2111
+ body_html: string | null;
2112
+ body_text: string | null;
2113
+ created_at: string;
2114
+ error_message: string | null;
2115
+ from_email: string | null;
2116
+ from_name: string | null;
2117
+ id: string;
2118
+ message_id: string | null;
2119
+ profile_id: string | null;
2120
+ raw_size: number | null;
2121
+ received_at: string | null;
2122
+ status: string;
2123
+ subject: string | null;
2124
+ uid: number;
2125
+ updated_at: string;
2126
+ };
2127
+ Insert: {
2128
+ body_html?: string | null;
2129
+ body_text?: string | null;
2130
+ created_at?: string;
2131
+ error_message?: string | null;
2132
+ from_email?: string | null;
2133
+ from_name?: string | null;
2134
+ id?: string;
2135
+ message_id?: string | null;
2136
+ profile_id?: string | null;
2137
+ raw_size?: number | null;
2138
+ received_at?: string | null;
2139
+ status?: string;
2140
+ subject?: string | null;
2141
+ uid: number;
2142
+ updated_at?: string;
2143
+ };
2144
+ Update: {
2145
+ body_html?: string | null;
2146
+ body_text?: string | null;
2147
+ created_at?: string;
2148
+ error_message?: string | null;
2149
+ from_email?: string | null;
2150
+ from_name?: string | null;
2151
+ id?: string;
2152
+ message_id?: string | null;
2153
+ profile_id?: string | null;
2154
+ raw_size?: number | null;
2155
+ received_at?: string | null;
2156
+ status?: string;
2157
+ subject?: string | null;
2158
+ uid?: number;
2159
+ updated_at?: string;
2160
+ };
2161
+ Relationships: [{
2162
+ foreignKeyName: "mailbox_messages_profile_id_fkey";
2163
+ columns: ["profile_id"];
2164
+ isOneToOne: false;
2165
+ referencedRelation: "imap_profiles";
2166
+ referencedColumns: ["id"];
2167
+ }];
2168
+ };
2169
+ mailbox_order_proposals: {
2170
+ Row: {
2171
+ confidence: number | null;
2172
+ created_at: string;
2173
+ created_order_id: string | null;
2174
+ delivery_date: string | null;
2175
+ id: string;
2176
+ matched_customer_id: string | null;
2177
+ message_id: string;
2178
+ notes: string | null;
2179
+ parsed_payload: import("../integrations/supabase/types").Json | null;
2180
+ reviewed_at: string | null;
2181
+ reviewed_by: string | null;
2182
+ status: string;
2183
+ updated_at: string;
2184
+ };
2185
+ Insert: {
2186
+ confidence?: number | null;
2187
+ created_at?: string;
2188
+ created_order_id?: string | null;
2189
+ delivery_date?: string | null;
2190
+ id?: string;
2191
+ matched_customer_id?: string | null;
2192
+ message_id: string;
2193
+ notes?: string | null;
2194
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
2195
+ reviewed_at?: string | null;
2196
+ reviewed_by?: string | null;
2197
+ status?: string;
2198
+ updated_at?: string;
2199
+ };
2200
+ Update: {
2201
+ confidence?: number | null;
2202
+ created_at?: string;
2203
+ created_order_id?: string | null;
2204
+ delivery_date?: string | null;
2205
+ id?: string;
2206
+ matched_customer_id?: string | null;
2207
+ message_id?: string;
2208
+ notes?: string | null;
2209
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
2210
+ reviewed_at?: string | null;
2211
+ reviewed_by?: string | null;
2212
+ status?: string;
2213
+ updated_at?: string;
2214
+ };
2215
+ Relationships: [{
2216
+ foreignKeyName: "mailbox_order_proposals_created_order_id_fkey";
2217
+ columns: ["created_order_id"];
2218
+ isOneToOne: false;
2219
+ referencedRelation: "orders";
2220
+ referencedColumns: ["id"];
2221
+ }, {
2222
+ foreignKeyName: "mailbox_order_proposals_matched_customer_id_fkey";
2223
+ columns: ["matched_customer_id"];
2224
+ isOneToOne: false;
2225
+ referencedRelation: "customers";
2226
+ referencedColumns: ["id"];
2227
+ }, {
2228
+ foreignKeyName: "mailbox_order_proposals_message_id_fkey";
2229
+ columns: ["message_id"];
2230
+ isOneToOne: false;
2231
+ referencedRelation: "mailbox_messages";
2232
+ referencedColumns: ["id"];
2233
+ }];
2234
+ };
2235
+ mailbox_order_template_fields: {
2236
+ Row: {
2237
+ ai_enabled: boolean;
2238
+ ai_hint: string | null;
2239
+ created_at: string;
2240
+ default_value: import("../integrations/supabase/types").Json | null;
2241
+ field_type: string;
2242
+ id: string;
2243
+ key: string;
2244
+ label: string;
2245
+ options: import("../integrations/supabase/types").Json | null;
2246
+ required: boolean;
2247
+ sort_order: number;
2248
+ source: string;
2249
+ source_table: string | null;
2250
+ updated_at: string;
2251
+ visible: boolean;
2252
+ };
2253
+ Insert: {
2254
+ ai_enabled?: boolean;
2255
+ ai_hint?: string | null;
2256
+ created_at?: string;
2257
+ default_value?: import("../integrations/supabase/types").Json | null;
2258
+ field_type: string;
2259
+ id?: string;
2260
+ key: string;
2261
+ label: string;
2262
+ options?: import("../integrations/supabase/types").Json | null;
2263
+ required?: boolean;
2264
+ sort_order?: number;
2265
+ source?: string;
2266
+ source_table?: string | null;
2267
+ updated_at?: string;
2268
+ visible?: boolean;
2269
+ };
2270
+ Update: {
2271
+ ai_enabled?: boolean;
2272
+ ai_hint?: string | null;
2273
+ created_at?: string;
2274
+ default_value?: import("../integrations/supabase/types").Json | null;
2275
+ field_type?: string;
2276
+ id?: string;
2277
+ key?: string;
2278
+ label?: string;
2279
+ options?: import("../integrations/supabase/types").Json | null;
2280
+ required?: boolean;
2281
+ sort_order?: number;
2282
+ source?: string;
2283
+ source_table?: string | null;
2284
+ updated_at?: string;
2285
+ visible?: boolean;
2286
+ };
2287
+ Relationships: [];
2288
+ };
2289
+ mailbox_proposal_field_values: {
2290
+ Row: {
2291
+ ai_confidence: number | null;
2292
+ ai_filled: boolean;
2293
+ created_at: string;
2294
+ field_key: string;
2295
+ id: string;
2296
+ needs_review: boolean;
2297
+ proposal_id: string;
2298
+ updated_at: string;
2299
+ value: import("../integrations/supabase/types").Json | null;
2300
+ };
2301
+ Insert: {
2302
+ ai_confidence?: number | null;
2303
+ ai_filled?: boolean;
2304
+ created_at?: string;
2305
+ field_key: string;
2306
+ id?: string;
2307
+ needs_review?: boolean;
2308
+ proposal_id: string;
2309
+ updated_at?: string;
2310
+ value?: import("../integrations/supabase/types").Json | null;
2311
+ };
2312
+ Update: {
2313
+ ai_confidence?: number | null;
2314
+ ai_filled?: boolean;
2315
+ created_at?: string;
2316
+ field_key?: string;
2317
+ id?: string;
2318
+ needs_review?: boolean;
2319
+ proposal_id?: string;
2320
+ updated_at?: string;
2321
+ value?: import("../integrations/supabase/types").Json | null;
2322
+ };
2323
+ Relationships: [{
2324
+ foreignKeyName: "mailbox_proposal_field_values_proposal_id_fkey";
2325
+ columns: ["proposal_id"];
2326
+ isOneToOne: false;
2327
+ referencedRelation: "mailbox_order_proposals";
2328
+ referencedColumns: ["id"];
2329
+ }];
2330
+ };
2331
+ mailbox_proposal_lines: {
2332
+ Row: {
2333
+ created_at: string;
2334
+ id: string;
2335
+ match_confidence: number | null;
2336
+ product_id: string | null;
2337
+ proposal_id: string;
2338
+ quantity: number | null;
2339
+ raw_product_text: string | null;
2340
+ sort_order: number;
2341
+ unit: string | null;
2342
+ updated_at: string;
2343
+ };
2344
+ Insert: {
2345
+ created_at?: string;
2346
+ id?: string;
2347
+ match_confidence?: number | null;
2348
+ product_id?: string | null;
2349
+ proposal_id: string;
2350
+ quantity?: number | null;
2351
+ raw_product_text?: string | null;
2352
+ sort_order?: number;
2353
+ unit?: string | null;
2354
+ updated_at?: string;
2355
+ };
2356
+ Update: {
2357
+ created_at?: string;
2358
+ id?: string;
2359
+ match_confidence?: number | null;
2360
+ product_id?: string | null;
2361
+ proposal_id?: string;
2362
+ quantity?: number | null;
2363
+ raw_product_text?: string | null;
2364
+ sort_order?: number;
2365
+ unit?: string | null;
2366
+ updated_at?: string;
2367
+ };
2368
+ Relationships: [{
2369
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
2370
+ columns: ["product_id"];
2371
+ isOneToOne: false;
2372
+ referencedRelation: "products";
2373
+ referencedColumns: ["id"];
2374
+ }, {
2375
+ foreignKeyName: "mailbox_proposal_lines_proposal_id_fkey";
2376
+ columns: ["proposal_id"];
2377
+ isOneToOne: false;
2378
+ referencedRelation: "mailbox_order_proposals";
2379
+ referencedColumns: ["id"];
2380
+ }];
2381
+ };
2382
+ mailbox_settings: {
2383
+ Row: {
2384
+ created_at: string;
2385
+ folder: string;
2386
+ id: string;
2387
+ imap_host: string;
2388
+ imap_port: number;
2389
+ imap_use_tls: boolean;
2390
+ imap_username: string;
2391
+ last_error: string | null;
2392
+ last_polled_at: string | null;
2393
+ last_uid_seen: number;
2394
+ polling_enabled: boolean;
2395
+ singleton: boolean;
2396
+ updated_at: string;
2397
+ };
2398
+ Insert: {
2399
+ created_at?: string;
2400
+ folder?: string;
2401
+ id?: string;
2402
+ imap_host?: string;
2403
+ imap_port?: number;
2404
+ imap_use_tls?: boolean;
2405
+ imap_username?: string;
2406
+ last_error?: string | null;
2407
+ last_polled_at?: string | null;
2408
+ last_uid_seen?: number;
2409
+ polling_enabled?: boolean;
2410
+ singleton?: boolean;
2411
+ updated_at?: string;
2412
+ };
2413
+ Update: {
2414
+ created_at?: string;
2415
+ folder?: string;
2416
+ id?: string;
2417
+ imap_host?: string;
2418
+ imap_port?: number;
2419
+ imap_use_tls?: boolean;
2420
+ imap_username?: string;
2421
+ last_error?: string | null;
2422
+ last_polled_at?: string | null;
2423
+ last_uid_seen?: number;
2424
+ polling_enabled?: boolean;
2425
+ singleton?: boolean;
2426
+ updated_at?: string;
2427
+ };
2428
+ Relationships: [];
2429
+ };
2430
+ notifications: {
2431
+ Row: {
705
2432
  created_at: string;
706
- customers_endpoint: string | null;
707
- environment: string;
708
- gln_code: string | null;
709
2433
  id: string;
710
- is_active: boolean;
711
- label: string;
712
- organization_name: string | null;
713
- preferred_warehouse_id: string | null;
714
- preferred_warehouse_name: string | null;
715
- token_expires_at: string | null;
2434
+ message: string | null;
2435
+ read: boolean;
2436
+ title: string;
716
2437
  updated_at: string;
2438
+ user_id: string;
717
2439
  };
718
2440
  Insert: {
719
- access_token?: string | null;
720
- api_key: string;
721
- client_id: string;
722
- client_secret: string;
723
2441
  created_at?: string;
724
- customers_endpoint?: string | null;
725
- environment: string;
726
- gln_code?: string | null;
727
2442
  id?: string;
728
- is_active?: boolean;
729
- label?: string;
730
- organization_name?: string | null;
731
- preferred_warehouse_id?: string | null;
732
- preferred_warehouse_name?: string | null;
733
- token_expires_at?: string | null;
2443
+ message?: string | null;
2444
+ read?: boolean;
2445
+ title: string;
734
2446
  updated_at?: string;
2447
+ user_id: string;
735
2448
  };
736
2449
  Update: {
737
- access_token?: string | null;
738
- api_key?: string;
739
- client_id?: string;
740
- client_secret?: string;
741
2450
  created_at?: string;
742
- customers_endpoint?: string | null;
743
- environment?: string;
744
- gln_code?: string | null;
745
2451
  id?: string;
746
- is_active?: boolean;
747
- label?: string;
748
- organization_name?: string | null;
749
- preferred_warehouse_id?: string | null;
750
- preferred_warehouse_name?: string | null;
751
- token_expires_at?: string | null;
2452
+ message?: string | null;
2453
+ read?: boolean;
2454
+ title?: string;
752
2455
  updated_at?: string;
2456
+ user_id?: string;
753
2457
  };
754
2458
  Relationships: [];
755
2459
  };
756
- floriday_customers_cache: {
2460
+ offer_campaign_product_tiers: {
757
2461
  Row: {
758
- connection_id: string | null;
759
- data: import("../integrations/supabase/types").Json;
760
- fetched_at: string;
761
- organization_id: string;
2462
+ campaign_product_id: string;
2463
+ created_at: string;
2464
+ id: string;
2465
+ min_crates: number;
2466
+ price_per_crate: number;
2467
+ sort_order: number;
762
2468
  };
763
2469
  Insert: {
764
- connection_id?: string | null;
765
- data?: import("../integrations/supabase/types").Json;
766
- fetched_at?: string;
767
- organization_id: string;
2470
+ campaign_product_id: string;
2471
+ created_at?: string;
2472
+ id?: string;
2473
+ min_crates?: number;
2474
+ price_per_crate?: number;
2475
+ sort_order?: number;
768
2476
  };
769
2477
  Update: {
770
- connection_id?: string | null;
771
- data?: import("../integrations/supabase/types").Json;
772
- fetched_at?: string;
773
- organization_id?: string;
2478
+ campaign_product_id?: string;
2479
+ created_at?: string;
2480
+ id?: string;
2481
+ min_crates?: number;
2482
+ price_per_crate?: number;
2483
+ sort_order?: number;
774
2484
  };
775
2485
  Relationships: [{
776
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
777
- columns: ["connection_id"];
2486
+ foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
2487
+ columns: ["campaign_product_id"];
778
2488
  isOneToOne: false;
779
- referencedRelation: "floriday_connections";
2489
+ referencedRelation: "offer_campaign_products";
780
2490
  referencedColumns: ["id"];
781
2491
  }];
782
2492
  };
783
- floriday_network_cache: {
2493
+ offer_campaign_products: {
784
2494
  Row: {
785
- city: string | null;
786
- connection_id: string;
787
- country: string | null;
788
- data: import("../integrations/supabase/types").Json;
789
- fetched_at: string;
790
- gln: string | null;
791
- organization_id: string;
792
- organization_name: string | null;
2495
+ available_stock: number;
2496
+ barcode: string | null;
2497
+ belading: string | null;
2498
+ campaign_id: string;
2499
+ crate_price: number | null;
2500
+ created_at: string;
2501
+ description: string | null;
2502
+ discount_price: number;
2503
+ id: string;
2504
+ image_url: string | null;
2505
+ normal_price: number;
2506
+ plants_per_crate: number | null;
2507
+ product_id: string | null;
2508
+ product_name: string;
2509
+ sort_order: number;
2510
+ sticker_available: boolean;
2511
+ sticker_cost: number | null;
793
2512
  };
794
2513
  Insert: {
795
- city?: string | null;
796
- connection_id: string;
797
- country?: string | null;
798
- data?: import("../integrations/supabase/types").Json;
799
- fetched_at?: string;
800
- gln?: string | null;
801
- organization_id: string;
802
- organization_name?: string | null;
2514
+ available_stock?: number;
2515
+ barcode?: string | null;
2516
+ belading?: string | null;
2517
+ campaign_id: string;
2518
+ crate_price?: number | null;
2519
+ created_at?: string;
2520
+ description?: string | null;
2521
+ discount_price?: number;
2522
+ id?: string;
2523
+ image_url?: string | null;
2524
+ normal_price?: number;
2525
+ plants_per_crate?: number | null;
2526
+ product_id?: string | null;
2527
+ product_name: string;
2528
+ sort_order?: number;
2529
+ sticker_available?: boolean;
2530
+ sticker_cost?: number | null;
803
2531
  };
804
2532
  Update: {
805
- city?: string | null;
806
- connection_id?: string;
807
- country?: string | null;
808
- data?: import("../integrations/supabase/types").Json;
809
- fetched_at?: string;
810
- gln?: string | null;
811
- organization_id?: string;
812
- organization_name?: string | null;
2533
+ available_stock?: number;
2534
+ barcode?: string | null;
2535
+ belading?: string | null;
2536
+ campaign_id?: string;
2537
+ crate_price?: number | null;
2538
+ created_at?: string;
2539
+ description?: string | null;
2540
+ discount_price?: number;
2541
+ id?: string;
2542
+ image_url?: string | null;
2543
+ normal_price?: number;
2544
+ plants_per_crate?: number | null;
2545
+ product_id?: string | null;
2546
+ product_name?: string;
2547
+ sort_order?: number;
2548
+ sticker_available?: boolean;
2549
+ sticker_cost?: number | null;
813
2550
  };
814
- Relationships: [];
2551
+ Relationships: [{
2552
+ foreignKeyName: "offer_campaign_products_campaign_id_fkey";
2553
+ columns: ["campaign_id"];
2554
+ isOneToOne: false;
2555
+ referencedRelation: "offer_campaigns";
2556
+ referencedColumns: ["id"];
2557
+ }, {
2558
+ foreignKeyName: "offer_campaign_products_product_id_fkey";
2559
+ columns: ["product_id"];
2560
+ isOneToOne: false;
2561
+ referencedRelation: "products";
2562
+ referencedColumns: ["id"];
2563
+ }];
815
2564
  };
816
- floriday_network_sync_state: {
2565
+ offer_campaigns: {
817
2566
  Row: {
818
- connection_id: string;
819
- last_error: string | null;
820
- last_sequence_number: number;
821
- last_synced_at: string | null;
2567
+ created_at: string;
2568
+ created_by: string | null;
2569
+ from_email: string;
2570
+ from_name: string;
2571
+ id: string;
2572
+ intro_message: string | null;
2573
+ name: string;
2574
+ scheduled_at: string | null;
2575
+ sent_at: string | null;
2576
+ status: string;
2577
+ subject: string;
822
2578
  updated_at: string;
823
2579
  };
824
2580
  Insert: {
825
- connection_id: string;
826
- last_error?: string | null;
827
- last_sequence_number?: number;
828
- last_synced_at?: string | null;
2581
+ created_at?: string;
2582
+ created_by?: string | null;
2583
+ from_email: string;
2584
+ from_name: string;
2585
+ id?: string;
2586
+ intro_message?: string | null;
2587
+ name: string;
2588
+ scheduled_at?: string | null;
2589
+ sent_at?: string | null;
2590
+ status?: string;
2591
+ subject: string;
829
2592
  updated_at?: string;
830
2593
  };
831
2594
  Update: {
832
- connection_id?: string;
833
- last_error?: string | null;
834
- last_sequence_number?: number;
835
- last_synced_at?: string | null;
2595
+ created_at?: string;
2596
+ created_by?: string | null;
2597
+ from_email?: string;
2598
+ from_name?: string;
2599
+ id?: string;
2600
+ intro_message?: string | null;
2601
+ name?: string;
2602
+ scheduled_at?: string | null;
2603
+ sent_at?: string | null;
2604
+ status?: string;
2605
+ subject?: string;
836
2606
  updated_at?: string;
837
2607
  };
838
2608
  Relationships: [];
839
2609
  };
840
- floriday_settings: {
2610
+ offer_events: {
841
2611
  Row: {
842
- active_environment: string;
843
- id: number;
844
- updated_at: string;
2612
+ campaign_id: string;
2613
+ created_at: string;
2614
+ event_type: string;
2615
+ id: string;
2616
+ metadata: import("../integrations/supabase/types").Json;
2617
+ recipient_id: string;
845
2618
  };
846
2619
  Insert: {
847
- active_environment?: string;
848
- id?: number;
849
- updated_at?: string;
2620
+ campaign_id: string;
2621
+ created_at?: string;
2622
+ event_type: string;
2623
+ id?: string;
2624
+ metadata?: import("../integrations/supabase/types").Json;
2625
+ recipient_id: string;
850
2626
  };
851
2627
  Update: {
852
- active_environment?: string;
853
- id?: number;
854
- updated_at?: string;
2628
+ campaign_id?: string;
2629
+ created_at?: string;
2630
+ event_type?: string;
2631
+ id?: string;
2632
+ metadata?: import("../integrations/supabase/types").Json;
2633
+ recipient_id?: string;
855
2634
  };
856
- Relationships: [];
2635
+ Relationships: [{
2636
+ foreignKeyName: "offer_events_campaign_id_fkey";
2637
+ columns: ["campaign_id"];
2638
+ isOneToOne: false;
2639
+ referencedRelation: "offer_campaigns";
2640
+ referencedColumns: ["id"];
2641
+ }, {
2642
+ foreignKeyName: "offer_events_recipient_id_fkey";
2643
+ columns: ["recipient_id"];
2644
+ isOneToOne: false;
2645
+ referencedRelation: "offer_recipients";
2646
+ referencedColumns: ["id"];
2647
+ }];
857
2648
  };
858
- inventory_settings: {
2649
+ offer_orders: {
859
2650
  Row: {
2651
+ campaign_id: string;
860
2652
  created_at: string;
861
- hierarchy_levels: string[];
2653
+ customer_email: string;
2654
+ customer_id: string | null;
2655
+ customer_name: string;
2656
+ customer_phone: string | null;
862
2657
  id: string;
863
- updated_at: string;
864
- visible_columns: string[];
2658
+ items: import("../integrations/supabase/types").Json;
2659
+ notes: string | null;
2660
+ recipient_id: string;
2661
+ total_amount: number;
865
2662
  };
866
2663
  Insert: {
2664
+ campaign_id: string;
867
2665
  created_at?: string;
868
- hierarchy_levels?: string[];
2666
+ customer_email: string;
2667
+ customer_id?: string | null;
2668
+ customer_name: string;
2669
+ customer_phone?: string | null;
869
2670
  id?: string;
870
- updated_at?: string;
871
- visible_columns?: string[];
2671
+ items?: import("../integrations/supabase/types").Json;
2672
+ notes?: string | null;
2673
+ recipient_id: string;
2674
+ total_amount?: number;
872
2675
  };
873
2676
  Update: {
2677
+ campaign_id?: string;
874
2678
  created_at?: string;
875
- hierarchy_levels?: string[];
2679
+ customer_email?: string;
2680
+ customer_id?: string | null;
2681
+ customer_name?: string;
2682
+ customer_phone?: string | null;
876
2683
  id?: string;
877
- updated_at?: string;
878
- visible_columns?: string[];
2684
+ items?: import("../integrations/supabase/types").Json;
2685
+ notes?: string | null;
2686
+ recipient_id?: string;
2687
+ total_amount?: number;
879
2688
  };
880
- Relationships: [];
2689
+ Relationships: [{
2690
+ foreignKeyName: "offer_orders_campaign_id_fkey";
2691
+ columns: ["campaign_id"];
2692
+ isOneToOne: false;
2693
+ referencedRelation: "offer_campaigns";
2694
+ referencedColumns: ["id"];
2695
+ }, {
2696
+ foreignKeyName: "offer_orders_customer_id_fkey";
2697
+ columns: ["customer_id"];
2698
+ isOneToOne: false;
2699
+ referencedRelation: "customers";
2700
+ referencedColumns: ["id"];
2701
+ }, {
2702
+ foreignKeyName: "offer_orders_recipient_id_fkey";
2703
+ columns: ["recipient_id"];
2704
+ isOneToOne: false;
2705
+ referencedRelation: "offer_recipients";
2706
+ referencedColumns: ["id"];
2707
+ }];
881
2708
  };
882
- locations: {
2709
+ offer_recipients: {
883
2710
  Row: {
2711
+ campaign_id: string;
2712
+ clicked_at: string | null;
2713
+ contact_id: string | null;
884
2714
  created_at: string;
2715
+ customer_id: string | null;
885
2716
  id: string;
886
- name: string;
887
- sort_order: number;
888
- updated_at: string;
2717
+ link_code: string;
2718
+ opened_at: string | null;
2719
+ ordered_at: string | null;
2720
+ recipient_email: string;
2721
+ recipient_name: string;
2722
+ sent_at: string | null;
889
2723
  };
890
2724
  Insert: {
2725
+ campaign_id: string;
2726
+ clicked_at?: string | null;
2727
+ contact_id?: string | null;
891
2728
  created_at?: string;
2729
+ customer_id?: string | null;
892
2730
  id?: string;
893
- name: string;
894
- sort_order?: number;
895
- updated_at?: string;
2731
+ link_code?: string;
2732
+ opened_at?: string | null;
2733
+ ordered_at?: string | null;
2734
+ recipient_email: string;
2735
+ recipient_name: string;
2736
+ sent_at?: string | null;
896
2737
  };
897
2738
  Update: {
2739
+ campaign_id?: string;
2740
+ clicked_at?: string | null;
2741
+ contact_id?: string | null;
898
2742
  created_at?: string;
2743
+ customer_id?: string | null;
899
2744
  id?: string;
900
- name?: string;
901
- sort_order?: number;
902
- updated_at?: string;
2745
+ link_code?: string;
2746
+ opened_at?: string | null;
2747
+ ordered_at?: string | null;
2748
+ recipient_email?: string;
2749
+ recipient_name?: string;
2750
+ sent_at?: string | null;
903
2751
  };
904
- Relationships: [];
2752
+ Relationships: [{
2753
+ foreignKeyName: "offer_recipients_campaign_id_fkey";
2754
+ columns: ["campaign_id"];
2755
+ isOneToOne: false;
2756
+ referencedRelation: "offer_campaigns";
2757
+ referencedColumns: ["id"];
2758
+ }, {
2759
+ foreignKeyName: "offer_recipients_contact_id_fkey";
2760
+ columns: ["contact_id"];
2761
+ isOneToOne: false;
2762
+ referencedRelation: "customer_contacts";
2763
+ referencedColumns: ["id"];
2764
+ }, {
2765
+ foreignKeyName: "offer_recipients_customer_id_fkey";
2766
+ columns: ["customer_id"];
2767
+ isOneToOne: false;
2768
+ referencedRelation: "customers";
2769
+ referencedColumns: ["id"];
2770
+ }];
905
2771
  };
906
- notifications: {
2772
+ offer_settings: {
907
2773
  Row: {
2774
+ button_color: string;
908
2775
  created_at: string;
2776
+ default_countries: string[];
2777
+ default_customer_classes: string[];
2778
+ default_intro: string;
2779
+ default_sticker_cost: number;
2780
+ default_subject: string;
2781
+ discount_display: string;
2782
+ excluded_contact_ids: string[];
2783
+ excluded_customer_ids: string[];
2784
+ from_email: string;
2785
+ from_name: string;
909
2786
  id: string;
910
- message: string | null;
911
- read: boolean;
912
- title: string;
2787
+ logo_url: string | null;
2788
+ primary_color: string;
2789
+ show_customer_classes: boolean;
2790
+ singleton: boolean;
2791
+ tracking_enabled: boolean;
913
2792
  updated_at: string;
914
- user_id: string;
915
2793
  };
916
2794
  Insert: {
2795
+ button_color?: string;
917
2796
  created_at?: string;
2797
+ default_countries?: string[];
2798
+ default_customer_classes?: string[];
2799
+ default_intro?: string;
2800
+ default_sticker_cost?: number;
2801
+ default_subject?: string;
2802
+ discount_display?: string;
2803
+ excluded_contact_ids?: string[];
2804
+ excluded_customer_ids?: string[];
2805
+ from_email?: string;
2806
+ from_name?: string;
918
2807
  id?: string;
919
- message?: string | null;
920
- read?: boolean;
921
- title: string;
2808
+ logo_url?: string | null;
2809
+ primary_color?: string;
2810
+ show_customer_classes?: boolean;
2811
+ singleton?: boolean;
2812
+ tracking_enabled?: boolean;
922
2813
  updated_at?: string;
923
- user_id: string;
924
2814
  };
925
2815
  Update: {
926
- created_at?: string;
927
- id?: string;
928
- message?: string | null;
929
- read?: boolean;
930
- title?: string;
2816
+ button_color?: string;
2817
+ created_at?: string;
2818
+ default_countries?: string[];
2819
+ default_customer_classes?: string[];
2820
+ default_intro?: string;
2821
+ default_sticker_cost?: number;
2822
+ default_subject?: string;
2823
+ discount_display?: string;
2824
+ excluded_contact_ids?: string[];
2825
+ excluded_customer_ids?: string[];
2826
+ from_email?: string;
2827
+ from_name?: string;
2828
+ id?: string;
2829
+ logo_url?: string | null;
2830
+ primary_color?: string;
2831
+ show_customer_classes?: boolean;
2832
+ singleton?: boolean;
2833
+ tracking_enabled?: boolean;
931
2834
  updated_at?: string;
932
- user_id?: string;
933
2835
  };
934
2836
  Relationships: [];
935
2837
  };
@@ -1098,6 +3000,99 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1098
3000
  referencedColumns: ["id"];
1099
3001
  }];
1100
3002
  };
3003
+ packages: {
3004
+ Row: {
3005
+ color: string;
3006
+ created_at: string;
3007
+ description: string | null;
3008
+ id: string;
3009
+ is_active: boolean;
3010
+ name: string;
3011
+ sort_order: number;
3012
+ updated_at: string;
3013
+ value: number;
3014
+ };
3015
+ Insert: {
3016
+ color?: string;
3017
+ created_at?: string;
3018
+ description?: string | null;
3019
+ id?: string;
3020
+ is_active?: boolean;
3021
+ name: string;
3022
+ sort_order?: number;
3023
+ updated_at?: string;
3024
+ value?: number;
3025
+ };
3026
+ Update: {
3027
+ color?: string;
3028
+ created_at?: string;
3029
+ description?: string | null;
3030
+ id?: string;
3031
+ is_active?: boolean;
3032
+ name?: string;
3033
+ sort_order?: number;
3034
+ updated_at?: string;
3035
+ value?: number;
3036
+ };
3037
+ Relationships: [];
3038
+ };
3039
+ pipeline_settings: {
3040
+ Row: {
3041
+ created_at: string;
3042
+ id: string;
3043
+ key: string;
3044
+ updated_at: string;
3045
+ value: string | null;
3046
+ };
3047
+ Insert: {
3048
+ created_at?: string;
3049
+ id?: string;
3050
+ key: string;
3051
+ updated_at?: string;
3052
+ value?: string | null;
3053
+ };
3054
+ Update: {
3055
+ created_at?: string;
3056
+ id?: string;
3057
+ key?: string;
3058
+ updated_at?: string;
3059
+ value?: string | null;
3060
+ };
3061
+ Relationships: [];
3062
+ };
3063
+ pipeline_stages: {
3064
+ Row: {
3065
+ automation_type: string;
3066
+ color: string;
3067
+ created_at: string;
3068
+ id: string;
3069
+ is_active: boolean;
3070
+ name: string;
3071
+ sort_order: number;
3072
+ updated_at: string;
3073
+ };
3074
+ Insert: {
3075
+ automation_type?: string;
3076
+ color?: string;
3077
+ created_at?: string;
3078
+ id?: string;
3079
+ is_active?: boolean;
3080
+ name: string;
3081
+ sort_order?: number;
3082
+ updated_at?: string;
3083
+ };
3084
+ Update: {
3085
+ automation_type?: string;
3086
+ color?: string;
3087
+ created_at?: string;
3088
+ id?: string;
3089
+ is_active?: boolean;
3090
+ name?: string;
3091
+ sort_order?: number;
3092
+ updated_at?: string;
3093
+ };
3094
+ Relationships: [];
3095
+ };
1101
3096
  product_categories: {
1102
3097
  Row: {
1103
3098
  color: string;
@@ -1284,6 +3279,174 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1284
3279
  };
1285
3280
  Relationships: [];
1286
3281
  };
3282
+ projects: {
3283
+ Row: {
3284
+ contact_name: string | null;
3285
+ created_at: string;
3286
+ email: string | null;
3287
+ id: string;
3288
+ name: string;
3289
+ notes: string | null;
3290
+ order_value: number;
3291
+ package_id: string | null;
3292
+ package_name: string | null;
3293
+ phone: string | null;
3294
+ prospect_id: string | null;
3295
+ status: string;
3296
+ updated_at: string;
3297
+ };
3298
+ Insert: {
3299
+ contact_name?: string | null;
3300
+ created_at?: string;
3301
+ email?: string | null;
3302
+ id?: string;
3303
+ name: string;
3304
+ notes?: string | null;
3305
+ order_value?: number;
3306
+ package_id?: string | null;
3307
+ package_name?: string | null;
3308
+ phone?: string | null;
3309
+ prospect_id?: string | null;
3310
+ status?: string;
3311
+ updated_at?: string;
3312
+ };
3313
+ Update: {
3314
+ contact_name?: string | null;
3315
+ created_at?: string;
3316
+ email?: string | null;
3317
+ id?: string;
3318
+ name?: string;
3319
+ notes?: string | null;
3320
+ order_value?: number;
3321
+ package_id?: string | null;
3322
+ package_name?: string | null;
3323
+ phone?: string | null;
3324
+ prospect_id?: string | null;
3325
+ status?: string;
3326
+ updated_at?: string;
3327
+ };
3328
+ Relationships: [{
3329
+ foreignKeyName: "projects_package_id_fkey";
3330
+ columns: ["package_id"];
3331
+ isOneToOne: false;
3332
+ referencedRelation: "packages";
3333
+ referencedColumns: ["id"];
3334
+ }, {
3335
+ foreignKeyName: "projects_prospect_id_fkey";
3336
+ columns: ["prospect_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "prospects";
3339
+ referencedColumns: ["id"];
3340
+ }];
3341
+ };
3342
+ prospect_field_settings: {
3343
+ Row: {
3344
+ created_at: string;
3345
+ field_key: string;
3346
+ field_type: string;
3347
+ id: string;
3348
+ label: string;
3349
+ required: boolean;
3350
+ sort_order: number;
3351
+ updated_at: string;
3352
+ visible: boolean;
3353
+ };
3354
+ Insert: {
3355
+ created_at?: string;
3356
+ field_key: string;
3357
+ field_type?: string;
3358
+ id?: string;
3359
+ label: string;
3360
+ required?: boolean;
3361
+ sort_order?: number;
3362
+ updated_at?: string;
3363
+ visible?: boolean;
3364
+ };
3365
+ Update: {
3366
+ created_at?: string;
3367
+ field_key?: string;
3368
+ field_type?: string;
3369
+ id?: string;
3370
+ label?: string;
3371
+ required?: boolean;
3372
+ sort_order?: number;
3373
+ updated_at?: string;
3374
+ visible?: boolean;
3375
+ };
3376
+ Relationships: [];
3377
+ };
3378
+ prospects: {
3379
+ Row: {
3380
+ address: string | null;
3381
+ company_name: string;
3382
+ contact_name: string | null;
3383
+ created_at: string;
3384
+ email: string | null;
3385
+ id: string;
3386
+ industry: string | null;
3387
+ notes: string | null;
3388
+ order_value: number;
3389
+ package_id: string | null;
3390
+ phone: string | null;
3391
+ source: string | null;
3392
+ stage_id: string | null;
3393
+ status: string;
3394
+ updated_at: string;
3395
+ value_mode: string;
3396
+ website: string | null;
3397
+ };
3398
+ Insert: {
3399
+ address?: string | null;
3400
+ company_name: string;
3401
+ contact_name?: string | null;
3402
+ created_at?: string;
3403
+ email?: string | null;
3404
+ id?: string;
3405
+ industry?: string | null;
3406
+ notes?: string | null;
3407
+ order_value?: number;
3408
+ package_id?: string | null;
3409
+ phone?: string | null;
3410
+ source?: string | null;
3411
+ stage_id?: string | null;
3412
+ status?: string;
3413
+ updated_at?: string;
3414
+ value_mode?: string;
3415
+ website?: string | null;
3416
+ };
3417
+ Update: {
3418
+ address?: string | null;
3419
+ company_name?: string;
3420
+ contact_name?: string | null;
3421
+ created_at?: string;
3422
+ email?: string | null;
3423
+ id?: string;
3424
+ industry?: string | null;
3425
+ notes?: string | null;
3426
+ order_value?: number;
3427
+ package_id?: string | null;
3428
+ phone?: string | null;
3429
+ source?: string | null;
3430
+ stage_id?: string | null;
3431
+ status?: string;
3432
+ updated_at?: string;
3433
+ value_mode?: string;
3434
+ website?: string | null;
3435
+ };
3436
+ Relationships: [{
3437
+ foreignKeyName: "prospects_package_id_fkey";
3438
+ columns: ["package_id"];
3439
+ isOneToOne: false;
3440
+ referencedRelation: "packages";
3441
+ referencedColumns: ["id"];
3442
+ }, {
3443
+ foreignKeyName: "prospects_stage_id_fkey";
3444
+ columns: ["stage_id"];
3445
+ isOneToOne: false;
3446
+ referencedRelation: "pipeline_stages";
3447
+ referencedColumns: ["id"];
3448
+ }];
3449
+ };
1287
3450
  purchase_order_items: {
1288
3451
  Row: {
1289
3452
  created_at: string;
@@ -1374,6 +3537,84 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1374
3537
  referencedColumns: ["id"];
1375
3538
  }];
1376
3539
  };
3540
+ quote_items: {
3541
+ Row: {
3542
+ created_at: string;
3543
+ description: string;
3544
+ id: string;
3545
+ quantity: number;
3546
+ quote_id: string;
3547
+ sort_order: number;
3548
+ unit_price: number;
3549
+ };
3550
+ Insert: {
3551
+ created_at?: string;
3552
+ description?: string;
3553
+ id?: string;
3554
+ quantity?: number;
3555
+ quote_id: string;
3556
+ sort_order?: number;
3557
+ unit_price?: number;
3558
+ };
3559
+ Update: {
3560
+ created_at?: string;
3561
+ description?: string;
3562
+ id?: string;
3563
+ quantity?: number;
3564
+ quote_id?: string;
3565
+ sort_order?: number;
3566
+ unit_price?: number;
3567
+ };
3568
+ Relationships: [{
3569
+ foreignKeyName: "quote_items_quote_id_fkey";
3570
+ columns: ["quote_id"];
3571
+ isOneToOne: false;
3572
+ referencedRelation: "quotes";
3573
+ referencedColumns: ["id"];
3574
+ }];
3575
+ };
3576
+ quotes: {
3577
+ Row: {
3578
+ created_at: string;
3579
+ id: string;
3580
+ notes: string | null;
3581
+ prospect_id: string | null;
3582
+ quote_number: string | null;
3583
+ status: string;
3584
+ title: string;
3585
+ updated_at: string;
3586
+ valid_until: string | null;
3587
+ };
3588
+ Insert: {
3589
+ created_at?: string;
3590
+ id?: string;
3591
+ notes?: string | null;
3592
+ prospect_id?: string | null;
3593
+ quote_number?: string | null;
3594
+ status?: string;
3595
+ title?: string;
3596
+ updated_at?: string;
3597
+ valid_until?: string | null;
3598
+ };
3599
+ Update: {
3600
+ created_at?: string;
3601
+ id?: string;
3602
+ notes?: string | null;
3603
+ prospect_id?: string | null;
3604
+ quote_number?: string | null;
3605
+ status?: string;
3606
+ title?: string;
3607
+ updated_at?: string;
3608
+ valid_until?: string | null;
3609
+ };
3610
+ Relationships: [{
3611
+ foreignKeyName: "quotes_prospect_id_fkey";
3612
+ columns: ["prospect_id"];
3613
+ isOneToOne: false;
3614
+ referencedRelation: "prospects";
3615
+ referencedColumns: ["id"];
3616
+ }];
3617
+ };
1377
3618
  supplier_products: {
1378
3619
  Row: {
1379
3620
  article_number: string | null;
@@ -1524,6 +3765,32 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1524
3765
  };
1525
3766
  Views: { [_ in never]: never; };
1526
3767
  Functions: {
3768
+ dashboard_list_public_schema: {
3769
+ Args: never;
3770
+ Returns: {
3771
+ column_name: string;
3772
+ data_type: string;
3773
+ table_name: string;
3774
+ }[];
3775
+ };
3776
+ exact_decrypt: {
3777
+ Args: {
3778
+ cipher: string;
3779
+ };
3780
+ Returns: string;
3781
+ };
3782
+ exact_encrypt: {
3783
+ Args: {
3784
+ plain: string;
3785
+ };
3786
+ Returns: string;
3787
+ };
3788
+ get_offer_by_link_code: {
3789
+ Args: {
3790
+ p_code: string;
3791
+ };
3792
+ Returns: import("../integrations/supabase/types").Json;
3793
+ };
1527
3794
  has_role: {
1528
3795
  Args: {
1529
3796
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];