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