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