@flowselections/floriday-klanten-module 1.0.29 → 1.0.30

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.
Files changed (66) hide show
  1. package/dist-lib/components/klanten/BewerkKlant.d.ts +6 -1
  2. package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/BewerkKlant.js +7 -4
  4. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -2
  6. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts +12 -0
  7. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts.map +1 -0
  8. package/dist-lib/components/klanten/KlantBewerkenDialog.js +27 -0
  9. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  10. package/dist-lib/components/klanten/KlantDetail.js +5 -3
  11. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  12. package/dist-lib/components/klanten/KlantenOverzicht.js +65 -11
  13. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts +7 -1
  14. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
  15. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +14 -7
  16. package/dist-lib/index.d.ts +1 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +1 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +490 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +490 -0
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +490 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +490 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1470 -0
  28. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/accounting.functions.d.ts +1470 -0
  30. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customer-analytics.functions.d.ts +490 -0
  32. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/customer-notes.functions.d.ts +980 -0
  34. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/customer-revenue.functions.d.ts +20327 -0
  36. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -0
  37. package/dist-lib/lib/customer-revenue.functions.js +124 -0
  38. package/dist-lib/lib/customers.functions.d.ts +4410 -0
  39. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/delivery-locations.functions.d.ts +1960 -0
  41. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/external-customers.functions.d.ts +1960 -0
  43. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-assortment.functions.d.ts +490 -0
  45. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-discounts.functions.d.ts +980 -0
  47. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-trade-items.functions.d.ts +490 -0
  49. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/local-discounts.functions.d.ts +3430 -0
  51. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/logistics-events.functions.d.ts +490 -0
  53. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/logistics-strategy.functions.d.ts +1960 -0
  55. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/overdue-invoices.functions.d.ts +490 -0
  57. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/price-groups-local.functions.d.ts +3430 -0
  59. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/price-groups.functions.d.ts +490 -0
  61. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/twinfield-adopt.functions.d.ts +980 -0
  63. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/twinfield-ledger.functions.d.ts +490 -0
  65. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  66. package/package.json +2 -2
@@ -3585,6 +3585,474 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
3585
3585
  referencedColumns: ["id"];
3586
3586
  }];
3587
3587
  };
3588
+ exact_auth_call_budget: {
3589
+ Row: {
3590
+ account_key: string;
3591
+ day_count: number;
3592
+ day_date: string;
3593
+ division_code: number;
3594
+ environment: string;
3595
+ minute_count: number;
3596
+ minute_window: string;
3597
+ updated_at: string;
3598
+ };
3599
+ Insert: {
3600
+ account_key?: string;
3601
+ day_count?: number;
3602
+ day_date?: string;
3603
+ division_code?: number;
3604
+ environment: string;
3605
+ minute_count?: number;
3606
+ minute_window?: string;
3607
+ updated_at?: string;
3608
+ };
3609
+ Update: {
3610
+ account_key?: string;
3611
+ day_count?: number;
3612
+ day_date?: string;
3613
+ division_code?: number;
3614
+ environment?: string;
3615
+ minute_count?: number;
3616
+ minute_window?: string;
3617
+ updated_at?: string;
3618
+ };
3619
+ Relationships: [];
3620
+ };
3621
+ exact_auth_customers: {
3622
+ Row: {
3623
+ account_key: string;
3624
+ address_line1: string | null;
3625
+ chamber_of_commerce: string | null;
3626
+ city: string | null;
3627
+ code: string | null;
3628
+ country: string | null;
3629
+ created_at: string;
3630
+ currency: string | null;
3631
+ division_code: number | null;
3632
+ email: string | null;
3633
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3634
+ exact_id: string;
3635
+ exact_modified: string | null;
3636
+ exact_timestamp: number | null;
3637
+ id: string;
3638
+ is_active: boolean;
3639
+ name: string | null;
3640
+ phone: string | null;
3641
+ postcode: string | null;
3642
+ raw: import("../integrations/supabase/types").Json | null;
3643
+ status: string | null;
3644
+ updated_at: string;
3645
+ vat_number: string | null;
3646
+ website: string | null;
3647
+ };
3648
+ Insert: {
3649
+ account_key?: string;
3650
+ address_line1?: string | null;
3651
+ chamber_of_commerce?: string | null;
3652
+ city?: string | null;
3653
+ code?: string | null;
3654
+ country?: string | null;
3655
+ created_at?: string;
3656
+ currency?: string | null;
3657
+ division_code?: number | null;
3658
+ email?: string | null;
3659
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3660
+ exact_id: string;
3661
+ exact_modified?: string | null;
3662
+ exact_timestamp?: number | null;
3663
+ id?: string;
3664
+ is_active?: boolean;
3665
+ name?: string | null;
3666
+ phone?: string | null;
3667
+ postcode?: string | null;
3668
+ raw?: import("../integrations/supabase/types").Json | null;
3669
+ status?: string | null;
3670
+ updated_at?: string;
3671
+ vat_number?: string | null;
3672
+ website?: string | null;
3673
+ };
3674
+ Update: {
3675
+ account_key?: string;
3676
+ address_line1?: string | null;
3677
+ chamber_of_commerce?: string | null;
3678
+ city?: string | null;
3679
+ code?: string | null;
3680
+ country?: string | null;
3681
+ created_at?: string;
3682
+ currency?: string | null;
3683
+ division_code?: number | null;
3684
+ email?: string | null;
3685
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3686
+ exact_id?: string;
3687
+ exact_modified?: string | null;
3688
+ exact_timestamp?: number | null;
3689
+ id?: string;
3690
+ is_active?: boolean;
3691
+ name?: string | null;
3692
+ phone?: string | null;
3693
+ postcode?: string | null;
3694
+ raw?: import("../integrations/supabase/types").Json | null;
3695
+ status?: string | null;
3696
+ updated_at?: string;
3697
+ vat_number?: string | null;
3698
+ website?: string | null;
3699
+ };
3700
+ Relationships: [];
3701
+ };
3702
+ exact_auth_divisions: {
3703
+ Row: {
3704
+ account_key: string;
3705
+ company_name: string | null;
3706
+ created_at: string;
3707
+ division_code: number | null;
3708
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3709
+ id: string;
3710
+ last_synced_at: string | null;
3711
+ updated_at: string;
3712
+ };
3713
+ Insert: {
3714
+ account_key?: string;
3715
+ company_name?: string | null;
3716
+ created_at?: string;
3717
+ division_code?: number | null;
3718
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3719
+ id?: string;
3720
+ last_synced_at?: string | null;
3721
+ updated_at?: string;
3722
+ };
3723
+ Update: {
3724
+ account_key?: string;
3725
+ company_name?: string | null;
3726
+ created_at?: string;
3727
+ division_code?: number | null;
3728
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3729
+ id?: string;
3730
+ last_synced_at?: string | null;
3731
+ updated_at?: string;
3732
+ };
3733
+ Relationships: [];
3734
+ };
3735
+ exact_auth_invoice_lines: {
3736
+ Row: {
3737
+ account_key: string;
3738
+ amount_excl: number | null;
3739
+ created_at: string;
3740
+ description: string | null;
3741
+ discount: number | null;
3742
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3743
+ exact_id: string;
3744
+ exact_timestamp: number | null;
3745
+ id: string;
3746
+ invoice_exact_id: string;
3747
+ item_code: string | null;
3748
+ item_exact_id: string | null;
3749
+ line_number: number | null;
3750
+ quantity: number | null;
3751
+ raw: import("../integrations/supabase/types").Json | null;
3752
+ unit_price: number | null;
3753
+ updated_at: string;
3754
+ vat_amount: number | null;
3755
+ vat_code: string | null;
3756
+ };
3757
+ Insert: {
3758
+ account_key?: string;
3759
+ amount_excl?: number | null;
3760
+ created_at?: string;
3761
+ description?: string | null;
3762
+ discount?: number | null;
3763
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3764
+ exact_id: string;
3765
+ exact_timestamp?: number | null;
3766
+ id?: string;
3767
+ invoice_exact_id: string;
3768
+ item_code?: string | null;
3769
+ item_exact_id?: string | null;
3770
+ line_number?: number | null;
3771
+ quantity?: number | null;
3772
+ raw?: import("../integrations/supabase/types").Json | null;
3773
+ unit_price?: number | null;
3774
+ updated_at?: string;
3775
+ vat_amount?: number | null;
3776
+ vat_code?: string | null;
3777
+ };
3778
+ Update: {
3779
+ account_key?: string;
3780
+ amount_excl?: number | null;
3781
+ created_at?: string;
3782
+ description?: string | null;
3783
+ discount?: number | null;
3784
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3785
+ exact_id?: string;
3786
+ exact_timestamp?: number | null;
3787
+ id?: string;
3788
+ invoice_exact_id?: string;
3789
+ item_code?: string | null;
3790
+ item_exact_id?: string | null;
3791
+ line_number?: number | null;
3792
+ quantity?: number | null;
3793
+ raw?: import("../integrations/supabase/types").Json | null;
3794
+ unit_price?: number | null;
3795
+ updated_at?: string;
3796
+ vat_amount?: number | null;
3797
+ vat_code?: string | null;
3798
+ };
3799
+ Relationships: [];
3800
+ };
3801
+ exact_auth_invoices: {
3802
+ Row: {
3803
+ account_key: string;
3804
+ amount_excl: number | null;
3805
+ amount_incl: number | null;
3806
+ amount_open: number | null;
3807
+ created_at: string;
3808
+ currency: string | null;
3809
+ customer_code: string | null;
3810
+ customer_exact_id: string | null;
3811
+ customer_name: string | null;
3812
+ description: string | null;
3813
+ division_code: number | null;
3814
+ due_date: string | null;
3815
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3816
+ exact_id: string;
3817
+ exact_modified: string | null;
3818
+ exact_timestamp: number | null;
3819
+ id: string;
3820
+ invoice_date: string | null;
3821
+ invoice_number: string | null;
3822
+ order_number: string | null;
3823
+ paid_at: string | null;
3824
+ payment_status: string;
3825
+ raw: import("../integrations/supabase/types").Json | null;
3826
+ receivable_synced_at: string | null;
3827
+ status_code: number | null;
3828
+ updated_at: string;
3829
+ };
3830
+ Insert: {
3831
+ account_key?: string;
3832
+ amount_excl?: number | null;
3833
+ amount_incl?: number | null;
3834
+ amount_open?: number | null;
3835
+ created_at?: string;
3836
+ currency?: string | null;
3837
+ customer_code?: string | null;
3838
+ customer_exact_id?: string | null;
3839
+ customer_name?: string | null;
3840
+ description?: string | null;
3841
+ division_code?: number | null;
3842
+ due_date?: string | null;
3843
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3844
+ exact_id: string;
3845
+ exact_modified?: string | null;
3846
+ exact_timestamp?: number | null;
3847
+ id?: string;
3848
+ invoice_date?: string | null;
3849
+ invoice_number?: string | null;
3850
+ order_number?: string | null;
3851
+ paid_at?: string | null;
3852
+ payment_status?: string;
3853
+ raw?: import("../integrations/supabase/types").Json | null;
3854
+ receivable_synced_at?: string | null;
3855
+ status_code?: number | null;
3856
+ updated_at?: string;
3857
+ };
3858
+ Update: {
3859
+ account_key?: string;
3860
+ amount_excl?: number | null;
3861
+ amount_incl?: number | null;
3862
+ amount_open?: number | null;
3863
+ created_at?: string;
3864
+ currency?: string | null;
3865
+ customer_code?: string | null;
3866
+ customer_exact_id?: string | null;
3867
+ customer_name?: string | null;
3868
+ description?: string | null;
3869
+ division_code?: number | null;
3870
+ due_date?: string | null;
3871
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3872
+ exact_id?: string;
3873
+ exact_modified?: string | null;
3874
+ exact_timestamp?: number | null;
3875
+ id?: string;
3876
+ invoice_date?: string | null;
3877
+ invoice_number?: string | null;
3878
+ order_number?: string | null;
3879
+ paid_at?: string | null;
3880
+ payment_status?: string;
3881
+ raw?: import("../integrations/supabase/types").Json | null;
3882
+ receivable_synced_at?: string | null;
3883
+ status_code?: number | null;
3884
+ updated_at?: string;
3885
+ };
3886
+ Relationships: [];
3887
+ };
3888
+ exact_auth_items: {
3889
+ Row: {
3890
+ account_key: string;
3891
+ barcode: string | null;
3892
+ code: string | null;
3893
+ cost_price: number | null;
3894
+ created_at: string;
3895
+ description: string | null;
3896
+ division_code: number | null;
3897
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3898
+ exact_id: string;
3899
+ exact_modified: string | null;
3900
+ exact_timestamp: number | null;
3901
+ gl_account_code: string | null;
3902
+ id: string;
3903
+ is_active: boolean;
3904
+ is_sales_item: boolean | null;
3905
+ item_type: string | null;
3906
+ raw: import("../integrations/supabase/types").Json | null;
3907
+ sales_price: number | null;
3908
+ unit: string | null;
3909
+ updated_at: string;
3910
+ vat_code: string | null;
3911
+ };
3912
+ Insert: {
3913
+ account_key?: string;
3914
+ barcode?: string | null;
3915
+ code?: string | null;
3916
+ cost_price?: number | null;
3917
+ created_at?: string;
3918
+ description?: string | null;
3919
+ division_code?: number | null;
3920
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3921
+ exact_id: string;
3922
+ exact_modified?: string | null;
3923
+ exact_timestamp?: number | null;
3924
+ gl_account_code?: string | null;
3925
+ id?: string;
3926
+ is_active?: boolean;
3927
+ is_sales_item?: boolean | null;
3928
+ item_type?: string | null;
3929
+ raw?: import("../integrations/supabase/types").Json | null;
3930
+ sales_price?: number | null;
3931
+ unit?: string | null;
3932
+ updated_at?: string;
3933
+ vat_code?: string | null;
3934
+ };
3935
+ Update: {
3936
+ account_key?: string;
3937
+ barcode?: string | null;
3938
+ code?: string | null;
3939
+ cost_price?: number | null;
3940
+ created_at?: string;
3941
+ description?: string | null;
3942
+ division_code?: number | null;
3943
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3944
+ exact_id?: string;
3945
+ exact_modified?: string | null;
3946
+ exact_timestamp?: number | null;
3947
+ gl_account_code?: string | null;
3948
+ id?: string;
3949
+ is_active?: boolean;
3950
+ is_sales_item?: boolean | null;
3951
+ item_type?: string | null;
3952
+ raw?: import("../integrations/supabase/types").Json | null;
3953
+ sales_price?: number | null;
3954
+ unit?: string | null;
3955
+ updated_at?: string;
3956
+ vat_code?: string | null;
3957
+ };
3958
+ Relationships: [];
3959
+ };
3960
+ exact_auth_sync_log: {
3961
+ Row: {
3962
+ account_key: string;
3963
+ calls_used: number;
3964
+ created_at: string;
3965
+ domain: string;
3966
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3967
+ error: string | null;
3968
+ finished_at: string | null;
3969
+ id: string;
3970
+ ok: boolean;
3971
+ records: number;
3972
+ started_at: string;
3973
+ };
3974
+ Insert: {
3975
+ account_key?: string;
3976
+ calls_used?: number;
3977
+ created_at?: string;
3978
+ domain: string;
3979
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3980
+ error?: string | null;
3981
+ finished_at?: string | null;
3982
+ id?: string;
3983
+ ok?: boolean;
3984
+ records?: number;
3985
+ started_at?: string;
3986
+ };
3987
+ Update: {
3988
+ account_key?: string;
3989
+ calls_used?: number;
3990
+ created_at?: string;
3991
+ domain?: string;
3992
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3993
+ error?: string | null;
3994
+ finished_at?: string | null;
3995
+ id?: string;
3996
+ ok?: boolean;
3997
+ records?: number;
3998
+ started_at?: string;
3999
+ };
4000
+ Relationships: [];
4001
+ };
4002
+ exact_auth_sync_state: {
4003
+ Row: {
4004
+ account_key: string;
4005
+ created_at: string;
4006
+ cursor_timestamp: number;
4007
+ division_code: number | null;
4008
+ domain: string;
4009
+ duration_ms: number | null;
4010
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4011
+ initial_sync_done: boolean;
4012
+ last_error: string | null;
4013
+ last_run_at: string | null;
4014
+ last_success_at: string | null;
4015
+ locked_at: string | null;
4016
+ needs_initial_sync: boolean;
4017
+ record_count: number;
4018
+ updated_at: string;
4019
+ };
4020
+ Insert: {
4021
+ account_key?: string;
4022
+ created_at?: string;
4023
+ cursor_timestamp?: number;
4024
+ division_code?: number | null;
4025
+ domain: string;
4026
+ duration_ms?: number | null;
4027
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4028
+ initial_sync_done?: boolean;
4029
+ last_error?: string | null;
4030
+ last_run_at?: string | null;
4031
+ last_success_at?: string | null;
4032
+ locked_at?: string | null;
4033
+ needs_initial_sync?: boolean;
4034
+ record_count?: number;
4035
+ updated_at?: string;
4036
+ };
4037
+ Update: {
4038
+ account_key?: string;
4039
+ created_at?: string;
4040
+ cursor_timestamp?: number;
4041
+ division_code?: number | null;
4042
+ domain?: string;
4043
+ duration_ms?: number | null;
4044
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4045
+ initial_sync_done?: boolean;
4046
+ last_error?: string | null;
4047
+ last_run_at?: string | null;
4048
+ last_success_at?: string | null;
4049
+ locked_at?: string | null;
4050
+ needs_initial_sync?: boolean;
4051
+ record_count?: number;
4052
+ updated_at?: string;
4053
+ };
4054
+ Relationships: [];
4055
+ };
3588
4056
  exact_bulk_operation_items: {
3589
4057
  Row: {
3590
4058
  attempts: number;
@@ -10085,6 +10553,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
10085
10553
  };
10086
10554
  offer_settings: {
10087
10555
  Row: {
10556
+ brand_name: string | null;
10088
10557
  button_color: string;
10089
10558
  created_at: string;
10090
10559
  default_countries: string[];
@@ -10106,6 +10575,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
10106
10575
  updated_at: string;
10107
10576
  };
10108
10577
  Insert: {
10578
+ brand_name?: string | null;
10109
10579
  button_color?: string;
10110
10580
  created_at?: string;
10111
10581
  default_countries?: string[];
@@ -10127,6 +10597,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
10127
10597
  updated_at?: string;
10128
10598
  };
10129
10599
  Update: {
10600
+ brand_name?: string | null;
10130
10601
  button_color?: string;
10131
10602
  created_at?: string;
10132
10603
  default_countries?: string[];
@@ -17977,6 +18448,21 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
17977
18448
  Args: never;
17978
18449
  Returns: string;
17979
18450
  };
18451
+ exact_auth_consume_calls: {
18452
+ Args: {
18453
+ _account_key: string;
18454
+ _calls?: number;
18455
+ _day_limit?: number;
18456
+ _division_code: number;
18457
+ _environment: string;
18458
+ _minute_limit?: number;
18459
+ };
18460
+ Returns: import("../integrations/supabase/types").Json;
18461
+ };
18462
+ exact_auth_prune_sync_log: {
18463
+ Args: never;
18464
+ Returns: undefined;
18465
+ };
17980
18466
  exact_decrypt: {
17981
18467
  Args: {
17982
18468
  cipher: string;
@@ -18186,6 +18672,10 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
18186
18672
  };
18187
18673
  Returns: number;
18188
18674
  };
18675
+ get_offer_branding: {
18676
+ Args: never;
18677
+ Returns: import("../integrations/supabase/types").Json;
18678
+ };
18189
18679
  get_offer_by_link_code: {
18190
18680
  Args: {
18191
18681
  p_code: string;
@@ -23397,6 +23887,474 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
23397
23887
  referencedColumns: ["id"];
23398
23888
  }];
23399
23889
  };
23890
+ exact_auth_call_budget: {
23891
+ Row: {
23892
+ account_key: string;
23893
+ day_count: number;
23894
+ day_date: string;
23895
+ division_code: number;
23896
+ environment: string;
23897
+ minute_count: number;
23898
+ minute_window: string;
23899
+ updated_at: string;
23900
+ };
23901
+ Insert: {
23902
+ account_key?: string;
23903
+ day_count?: number;
23904
+ day_date?: string;
23905
+ division_code?: number;
23906
+ environment: string;
23907
+ minute_count?: number;
23908
+ minute_window?: string;
23909
+ updated_at?: string;
23910
+ };
23911
+ Update: {
23912
+ account_key?: string;
23913
+ day_count?: number;
23914
+ day_date?: string;
23915
+ division_code?: number;
23916
+ environment?: string;
23917
+ minute_count?: number;
23918
+ minute_window?: string;
23919
+ updated_at?: string;
23920
+ };
23921
+ Relationships: [];
23922
+ };
23923
+ exact_auth_customers: {
23924
+ Row: {
23925
+ account_key: string;
23926
+ address_line1: string | null;
23927
+ chamber_of_commerce: string | null;
23928
+ city: string | null;
23929
+ code: string | null;
23930
+ country: string | null;
23931
+ created_at: string;
23932
+ currency: string | null;
23933
+ division_code: number | null;
23934
+ email: string | null;
23935
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23936
+ exact_id: string;
23937
+ exact_modified: string | null;
23938
+ exact_timestamp: number | null;
23939
+ id: string;
23940
+ is_active: boolean;
23941
+ name: string | null;
23942
+ phone: string | null;
23943
+ postcode: string | null;
23944
+ raw: import("../integrations/supabase/types").Json | null;
23945
+ status: string | null;
23946
+ updated_at: string;
23947
+ vat_number: string | null;
23948
+ website: string | null;
23949
+ };
23950
+ Insert: {
23951
+ account_key?: string;
23952
+ address_line1?: string | null;
23953
+ chamber_of_commerce?: string | null;
23954
+ city?: string | null;
23955
+ code?: string | null;
23956
+ country?: string | null;
23957
+ created_at?: string;
23958
+ currency?: string | null;
23959
+ division_code?: number | null;
23960
+ email?: string | null;
23961
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23962
+ exact_id: string;
23963
+ exact_modified?: string | null;
23964
+ exact_timestamp?: number | null;
23965
+ id?: string;
23966
+ is_active?: boolean;
23967
+ name?: string | null;
23968
+ phone?: string | null;
23969
+ postcode?: string | null;
23970
+ raw?: import("../integrations/supabase/types").Json | null;
23971
+ status?: string | null;
23972
+ updated_at?: string;
23973
+ vat_number?: string | null;
23974
+ website?: string | null;
23975
+ };
23976
+ Update: {
23977
+ account_key?: string;
23978
+ address_line1?: string | null;
23979
+ chamber_of_commerce?: string | null;
23980
+ city?: string | null;
23981
+ code?: string | null;
23982
+ country?: string | null;
23983
+ created_at?: string;
23984
+ currency?: string | null;
23985
+ division_code?: number | null;
23986
+ email?: string | null;
23987
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23988
+ exact_id?: string;
23989
+ exact_modified?: string | null;
23990
+ exact_timestamp?: number | null;
23991
+ id?: string;
23992
+ is_active?: boolean;
23993
+ name?: string | null;
23994
+ phone?: string | null;
23995
+ postcode?: string | null;
23996
+ raw?: import("../integrations/supabase/types").Json | null;
23997
+ status?: string | null;
23998
+ updated_at?: string;
23999
+ vat_number?: string | null;
24000
+ website?: string | null;
24001
+ };
24002
+ Relationships: [];
24003
+ };
24004
+ exact_auth_divisions: {
24005
+ Row: {
24006
+ account_key: string;
24007
+ company_name: string | null;
24008
+ created_at: string;
24009
+ division_code: number | null;
24010
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24011
+ id: string;
24012
+ last_synced_at: string | null;
24013
+ updated_at: string;
24014
+ };
24015
+ Insert: {
24016
+ account_key?: string;
24017
+ company_name?: string | null;
24018
+ created_at?: string;
24019
+ division_code?: number | null;
24020
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24021
+ id?: string;
24022
+ last_synced_at?: string | null;
24023
+ updated_at?: string;
24024
+ };
24025
+ Update: {
24026
+ account_key?: string;
24027
+ company_name?: string | null;
24028
+ created_at?: string;
24029
+ division_code?: number | null;
24030
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24031
+ id?: string;
24032
+ last_synced_at?: string | null;
24033
+ updated_at?: string;
24034
+ };
24035
+ Relationships: [];
24036
+ };
24037
+ exact_auth_invoice_lines: {
24038
+ Row: {
24039
+ account_key: string;
24040
+ amount_excl: number | null;
24041
+ created_at: string;
24042
+ description: string | null;
24043
+ discount: number | null;
24044
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24045
+ exact_id: string;
24046
+ exact_timestamp: number | null;
24047
+ id: string;
24048
+ invoice_exact_id: string;
24049
+ item_code: string | null;
24050
+ item_exact_id: string | null;
24051
+ line_number: number | null;
24052
+ quantity: number | null;
24053
+ raw: import("../integrations/supabase/types").Json | null;
24054
+ unit_price: number | null;
24055
+ updated_at: string;
24056
+ vat_amount: number | null;
24057
+ vat_code: string | null;
24058
+ };
24059
+ Insert: {
24060
+ account_key?: string;
24061
+ amount_excl?: number | null;
24062
+ created_at?: string;
24063
+ description?: string | null;
24064
+ discount?: number | null;
24065
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24066
+ exact_id: string;
24067
+ exact_timestamp?: number | null;
24068
+ id?: string;
24069
+ invoice_exact_id: string;
24070
+ item_code?: string | null;
24071
+ item_exact_id?: string | null;
24072
+ line_number?: number | null;
24073
+ quantity?: number | null;
24074
+ raw?: import("../integrations/supabase/types").Json | null;
24075
+ unit_price?: number | null;
24076
+ updated_at?: string;
24077
+ vat_amount?: number | null;
24078
+ vat_code?: string | null;
24079
+ };
24080
+ Update: {
24081
+ account_key?: string;
24082
+ amount_excl?: number | null;
24083
+ created_at?: string;
24084
+ description?: string | null;
24085
+ discount?: number | null;
24086
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24087
+ exact_id?: string;
24088
+ exact_timestamp?: number | null;
24089
+ id?: string;
24090
+ invoice_exact_id?: string;
24091
+ item_code?: string | null;
24092
+ item_exact_id?: string | null;
24093
+ line_number?: number | null;
24094
+ quantity?: number | null;
24095
+ raw?: import("../integrations/supabase/types").Json | null;
24096
+ unit_price?: number | null;
24097
+ updated_at?: string;
24098
+ vat_amount?: number | null;
24099
+ vat_code?: string | null;
24100
+ };
24101
+ Relationships: [];
24102
+ };
24103
+ exact_auth_invoices: {
24104
+ Row: {
24105
+ account_key: string;
24106
+ amount_excl: number | null;
24107
+ amount_incl: number | null;
24108
+ amount_open: number | null;
24109
+ created_at: string;
24110
+ currency: string | null;
24111
+ customer_code: string | null;
24112
+ customer_exact_id: string | null;
24113
+ customer_name: string | null;
24114
+ description: string | null;
24115
+ division_code: number | null;
24116
+ due_date: string | null;
24117
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24118
+ exact_id: string;
24119
+ exact_modified: string | null;
24120
+ exact_timestamp: number | null;
24121
+ id: string;
24122
+ invoice_date: string | null;
24123
+ invoice_number: string | null;
24124
+ order_number: string | null;
24125
+ paid_at: string | null;
24126
+ payment_status: string;
24127
+ raw: import("../integrations/supabase/types").Json | null;
24128
+ receivable_synced_at: string | null;
24129
+ status_code: number | null;
24130
+ updated_at: string;
24131
+ };
24132
+ Insert: {
24133
+ account_key?: string;
24134
+ amount_excl?: number | null;
24135
+ amount_incl?: number | null;
24136
+ amount_open?: number | null;
24137
+ created_at?: string;
24138
+ currency?: string | null;
24139
+ customer_code?: string | null;
24140
+ customer_exact_id?: string | null;
24141
+ customer_name?: string | null;
24142
+ description?: string | null;
24143
+ division_code?: number | null;
24144
+ due_date?: string | null;
24145
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24146
+ exact_id: string;
24147
+ exact_modified?: string | null;
24148
+ exact_timestamp?: number | null;
24149
+ id?: string;
24150
+ invoice_date?: string | null;
24151
+ invoice_number?: string | null;
24152
+ order_number?: string | null;
24153
+ paid_at?: string | null;
24154
+ payment_status?: string;
24155
+ raw?: import("../integrations/supabase/types").Json | null;
24156
+ receivable_synced_at?: string | null;
24157
+ status_code?: number | null;
24158
+ updated_at?: string;
24159
+ };
24160
+ Update: {
24161
+ account_key?: string;
24162
+ amount_excl?: number | null;
24163
+ amount_incl?: number | null;
24164
+ amount_open?: number | null;
24165
+ created_at?: string;
24166
+ currency?: string | null;
24167
+ customer_code?: string | null;
24168
+ customer_exact_id?: string | null;
24169
+ customer_name?: string | null;
24170
+ description?: string | null;
24171
+ division_code?: number | null;
24172
+ due_date?: string | null;
24173
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24174
+ exact_id?: string;
24175
+ exact_modified?: string | null;
24176
+ exact_timestamp?: number | null;
24177
+ id?: string;
24178
+ invoice_date?: string | null;
24179
+ invoice_number?: string | null;
24180
+ order_number?: string | null;
24181
+ paid_at?: string | null;
24182
+ payment_status?: string;
24183
+ raw?: import("../integrations/supabase/types").Json | null;
24184
+ receivable_synced_at?: string | null;
24185
+ status_code?: number | null;
24186
+ updated_at?: string;
24187
+ };
24188
+ Relationships: [];
24189
+ };
24190
+ exact_auth_items: {
24191
+ Row: {
24192
+ account_key: string;
24193
+ barcode: string | null;
24194
+ code: string | null;
24195
+ cost_price: number | null;
24196
+ created_at: string;
24197
+ description: string | null;
24198
+ division_code: number | null;
24199
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24200
+ exact_id: string;
24201
+ exact_modified: string | null;
24202
+ exact_timestamp: number | null;
24203
+ gl_account_code: string | null;
24204
+ id: string;
24205
+ is_active: boolean;
24206
+ is_sales_item: boolean | null;
24207
+ item_type: string | null;
24208
+ raw: import("../integrations/supabase/types").Json | null;
24209
+ sales_price: number | null;
24210
+ unit: string | null;
24211
+ updated_at: string;
24212
+ vat_code: string | null;
24213
+ };
24214
+ Insert: {
24215
+ account_key?: string;
24216
+ barcode?: string | null;
24217
+ code?: string | null;
24218
+ cost_price?: number | null;
24219
+ created_at?: string;
24220
+ description?: string | null;
24221
+ division_code?: number | null;
24222
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24223
+ exact_id: string;
24224
+ exact_modified?: string | null;
24225
+ exact_timestamp?: number | null;
24226
+ gl_account_code?: string | null;
24227
+ id?: string;
24228
+ is_active?: boolean;
24229
+ is_sales_item?: boolean | null;
24230
+ item_type?: string | null;
24231
+ raw?: import("../integrations/supabase/types").Json | null;
24232
+ sales_price?: number | null;
24233
+ unit?: string | null;
24234
+ updated_at?: string;
24235
+ vat_code?: string | null;
24236
+ };
24237
+ Update: {
24238
+ account_key?: string;
24239
+ barcode?: string | null;
24240
+ code?: string | null;
24241
+ cost_price?: number | null;
24242
+ created_at?: string;
24243
+ description?: string | null;
24244
+ division_code?: number | null;
24245
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24246
+ exact_id?: string;
24247
+ exact_modified?: string | null;
24248
+ exact_timestamp?: number | null;
24249
+ gl_account_code?: string | null;
24250
+ id?: string;
24251
+ is_active?: boolean;
24252
+ is_sales_item?: boolean | null;
24253
+ item_type?: string | null;
24254
+ raw?: import("../integrations/supabase/types").Json | null;
24255
+ sales_price?: number | null;
24256
+ unit?: string | null;
24257
+ updated_at?: string;
24258
+ vat_code?: string | null;
24259
+ };
24260
+ Relationships: [];
24261
+ };
24262
+ exact_auth_sync_log: {
24263
+ Row: {
24264
+ account_key: string;
24265
+ calls_used: number;
24266
+ created_at: string;
24267
+ domain: string;
24268
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24269
+ error: string | null;
24270
+ finished_at: string | null;
24271
+ id: string;
24272
+ ok: boolean;
24273
+ records: number;
24274
+ started_at: string;
24275
+ };
24276
+ Insert: {
24277
+ account_key?: string;
24278
+ calls_used?: number;
24279
+ created_at?: string;
24280
+ domain: string;
24281
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24282
+ error?: string | null;
24283
+ finished_at?: string | null;
24284
+ id?: string;
24285
+ ok?: boolean;
24286
+ records?: number;
24287
+ started_at?: string;
24288
+ };
24289
+ Update: {
24290
+ account_key?: string;
24291
+ calls_used?: number;
24292
+ created_at?: string;
24293
+ domain?: string;
24294
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24295
+ error?: string | null;
24296
+ finished_at?: string | null;
24297
+ id?: string;
24298
+ ok?: boolean;
24299
+ records?: number;
24300
+ started_at?: string;
24301
+ };
24302
+ Relationships: [];
24303
+ };
24304
+ exact_auth_sync_state: {
24305
+ Row: {
24306
+ account_key: string;
24307
+ created_at: string;
24308
+ cursor_timestamp: number;
24309
+ division_code: number | null;
24310
+ domain: string;
24311
+ duration_ms: number | null;
24312
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24313
+ initial_sync_done: boolean;
24314
+ last_error: string | null;
24315
+ last_run_at: string | null;
24316
+ last_success_at: string | null;
24317
+ locked_at: string | null;
24318
+ needs_initial_sync: boolean;
24319
+ record_count: number;
24320
+ updated_at: string;
24321
+ };
24322
+ Insert: {
24323
+ account_key?: string;
24324
+ created_at?: string;
24325
+ cursor_timestamp?: number;
24326
+ division_code?: number | null;
24327
+ domain: string;
24328
+ duration_ms?: number | null;
24329
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24330
+ initial_sync_done?: boolean;
24331
+ last_error?: string | null;
24332
+ last_run_at?: string | null;
24333
+ last_success_at?: string | null;
24334
+ locked_at?: string | null;
24335
+ needs_initial_sync?: boolean;
24336
+ record_count?: number;
24337
+ updated_at?: string;
24338
+ };
24339
+ Update: {
24340
+ account_key?: string;
24341
+ created_at?: string;
24342
+ cursor_timestamp?: number;
24343
+ division_code?: number | null;
24344
+ domain?: string;
24345
+ duration_ms?: number | null;
24346
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24347
+ initial_sync_done?: boolean;
24348
+ last_error?: string | null;
24349
+ last_run_at?: string | null;
24350
+ last_success_at?: string | null;
24351
+ locked_at?: string | null;
24352
+ needs_initial_sync?: boolean;
24353
+ record_count?: number;
24354
+ updated_at?: string;
24355
+ };
24356
+ Relationships: [];
24357
+ };
23400
24358
  exact_bulk_operation_items: {
23401
24359
  Row: {
23402
24360
  attempts: number;
@@ -29897,6 +30855,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
29897
30855
  };
29898
30856
  offer_settings: {
29899
30857
  Row: {
30858
+ brand_name: string | null;
29900
30859
  button_color: string;
29901
30860
  created_at: string;
29902
30861
  default_countries: string[];
@@ -29918,6 +30877,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
29918
30877
  updated_at: string;
29919
30878
  };
29920
30879
  Insert: {
30880
+ brand_name?: string | null;
29921
30881
  button_color?: string;
29922
30882
  created_at?: string;
29923
30883
  default_countries?: string[];
@@ -29939,6 +30899,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
29939
30899
  updated_at?: string;
29940
30900
  };
29941
30901
  Update: {
30902
+ brand_name?: string | null;
29942
30903
  button_color?: string;
29943
30904
  created_at?: string;
29944
30905
  default_countries?: string[];
@@ -37789,6 +38750,21 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
37789
38750
  Args: never;
37790
38751
  Returns: string;
37791
38752
  };
38753
+ exact_auth_consume_calls: {
38754
+ Args: {
38755
+ _account_key: string;
38756
+ _calls?: number;
38757
+ _day_limit?: number;
38758
+ _division_code: number;
38759
+ _environment: string;
38760
+ _minute_limit?: number;
38761
+ };
38762
+ Returns: import("../integrations/supabase/types").Json;
38763
+ };
38764
+ exact_auth_prune_sync_log: {
38765
+ Args: never;
38766
+ Returns: undefined;
38767
+ };
37792
38768
  exact_decrypt: {
37793
38769
  Args: {
37794
38770
  cipher: string;
@@ -37998,6 +38974,10 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
37998
38974
  };
37999
38975
  Returns: number;
38000
38976
  };
38977
+ get_offer_branding: {
38978
+ Args: never;
38979
+ Returns: import("../integrations/supabase/types").Json;
38980
+ };
38001
38981
  get_offer_by_link_code: {
38002
38982
  Args: {
38003
38983
  p_code: string;
@@ -43235,6 +44215,474 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
43235
44215
  referencedColumns: ["id"];
43236
44216
  }];
43237
44217
  };
44218
+ exact_auth_call_budget: {
44219
+ Row: {
44220
+ account_key: string;
44221
+ day_count: number;
44222
+ day_date: string;
44223
+ division_code: number;
44224
+ environment: string;
44225
+ minute_count: number;
44226
+ minute_window: string;
44227
+ updated_at: string;
44228
+ };
44229
+ Insert: {
44230
+ account_key?: string;
44231
+ day_count?: number;
44232
+ day_date?: string;
44233
+ division_code?: number;
44234
+ environment: string;
44235
+ minute_count?: number;
44236
+ minute_window?: string;
44237
+ updated_at?: string;
44238
+ };
44239
+ Update: {
44240
+ account_key?: string;
44241
+ day_count?: number;
44242
+ day_date?: string;
44243
+ division_code?: number;
44244
+ environment?: string;
44245
+ minute_count?: number;
44246
+ minute_window?: string;
44247
+ updated_at?: string;
44248
+ };
44249
+ Relationships: [];
44250
+ };
44251
+ exact_auth_customers: {
44252
+ Row: {
44253
+ account_key: string;
44254
+ address_line1: string | null;
44255
+ chamber_of_commerce: string | null;
44256
+ city: string | null;
44257
+ code: string | null;
44258
+ country: string | null;
44259
+ created_at: string;
44260
+ currency: string | null;
44261
+ division_code: number | null;
44262
+ email: string | null;
44263
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44264
+ exact_id: string;
44265
+ exact_modified: string | null;
44266
+ exact_timestamp: number | null;
44267
+ id: string;
44268
+ is_active: boolean;
44269
+ name: string | null;
44270
+ phone: string | null;
44271
+ postcode: string | null;
44272
+ raw: import("../integrations/supabase/types").Json | null;
44273
+ status: string | null;
44274
+ updated_at: string;
44275
+ vat_number: string | null;
44276
+ website: string | null;
44277
+ };
44278
+ Insert: {
44279
+ account_key?: string;
44280
+ address_line1?: string | null;
44281
+ chamber_of_commerce?: string | null;
44282
+ city?: string | null;
44283
+ code?: string | null;
44284
+ country?: string | null;
44285
+ created_at?: string;
44286
+ currency?: string | null;
44287
+ division_code?: number | null;
44288
+ email?: string | null;
44289
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44290
+ exact_id: string;
44291
+ exact_modified?: string | null;
44292
+ exact_timestamp?: number | null;
44293
+ id?: string;
44294
+ is_active?: boolean;
44295
+ name?: string | null;
44296
+ phone?: string | null;
44297
+ postcode?: string | null;
44298
+ raw?: import("../integrations/supabase/types").Json | null;
44299
+ status?: string | null;
44300
+ updated_at?: string;
44301
+ vat_number?: string | null;
44302
+ website?: string | null;
44303
+ };
44304
+ Update: {
44305
+ account_key?: string;
44306
+ address_line1?: string | null;
44307
+ chamber_of_commerce?: string | null;
44308
+ city?: string | null;
44309
+ code?: string | null;
44310
+ country?: string | null;
44311
+ created_at?: string;
44312
+ currency?: string | null;
44313
+ division_code?: number | null;
44314
+ email?: string | null;
44315
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44316
+ exact_id?: string;
44317
+ exact_modified?: string | null;
44318
+ exact_timestamp?: number | null;
44319
+ id?: string;
44320
+ is_active?: boolean;
44321
+ name?: string | null;
44322
+ phone?: string | null;
44323
+ postcode?: string | null;
44324
+ raw?: import("../integrations/supabase/types").Json | null;
44325
+ status?: string | null;
44326
+ updated_at?: string;
44327
+ vat_number?: string | null;
44328
+ website?: string | null;
44329
+ };
44330
+ Relationships: [];
44331
+ };
44332
+ exact_auth_divisions: {
44333
+ Row: {
44334
+ account_key: string;
44335
+ company_name: string | null;
44336
+ created_at: string;
44337
+ division_code: number | null;
44338
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44339
+ id: string;
44340
+ last_synced_at: string | null;
44341
+ updated_at: string;
44342
+ };
44343
+ Insert: {
44344
+ account_key?: string;
44345
+ company_name?: string | null;
44346
+ created_at?: string;
44347
+ division_code?: number | null;
44348
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44349
+ id?: string;
44350
+ last_synced_at?: string | null;
44351
+ updated_at?: string;
44352
+ };
44353
+ Update: {
44354
+ account_key?: string;
44355
+ company_name?: string | null;
44356
+ created_at?: string;
44357
+ division_code?: number | null;
44358
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44359
+ id?: string;
44360
+ last_synced_at?: string | null;
44361
+ updated_at?: string;
44362
+ };
44363
+ Relationships: [];
44364
+ };
44365
+ exact_auth_invoice_lines: {
44366
+ Row: {
44367
+ account_key: string;
44368
+ amount_excl: number | null;
44369
+ created_at: string;
44370
+ description: string | null;
44371
+ discount: number | null;
44372
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44373
+ exact_id: string;
44374
+ exact_timestamp: number | null;
44375
+ id: string;
44376
+ invoice_exact_id: string;
44377
+ item_code: string | null;
44378
+ item_exact_id: string | null;
44379
+ line_number: number | null;
44380
+ quantity: number | null;
44381
+ raw: import("../integrations/supabase/types").Json | null;
44382
+ unit_price: number | null;
44383
+ updated_at: string;
44384
+ vat_amount: number | null;
44385
+ vat_code: string | null;
44386
+ };
44387
+ Insert: {
44388
+ account_key?: string;
44389
+ amount_excl?: number | null;
44390
+ created_at?: string;
44391
+ description?: string | null;
44392
+ discount?: number | null;
44393
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44394
+ exact_id: string;
44395
+ exact_timestamp?: number | null;
44396
+ id?: string;
44397
+ invoice_exact_id: string;
44398
+ item_code?: string | null;
44399
+ item_exact_id?: string | null;
44400
+ line_number?: number | null;
44401
+ quantity?: number | null;
44402
+ raw?: import("../integrations/supabase/types").Json | null;
44403
+ unit_price?: number | null;
44404
+ updated_at?: string;
44405
+ vat_amount?: number | null;
44406
+ vat_code?: string | null;
44407
+ };
44408
+ Update: {
44409
+ account_key?: string;
44410
+ amount_excl?: number | null;
44411
+ created_at?: string;
44412
+ description?: string | null;
44413
+ discount?: number | null;
44414
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44415
+ exact_id?: string;
44416
+ exact_timestamp?: number | null;
44417
+ id?: string;
44418
+ invoice_exact_id?: string;
44419
+ item_code?: string | null;
44420
+ item_exact_id?: string | null;
44421
+ line_number?: number | null;
44422
+ quantity?: number | null;
44423
+ raw?: import("../integrations/supabase/types").Json | null;
44424
+ unit_price?: number | null;
44425
+ updated_at?: string;
44426
+ vat_amount?: number | null;
44427
+ vat_code?: string | null;
44428
+ };
44429
+ Relationships: [];
44430
+ };
44431
+ exact_auth_invoices: {
44432
+ Row: {
44433
+ account_key: string;
44434
+ amount_excl: number | null;
44435
+ amount_incl: number | null;
44436
+ amount_open: number | null;
44437
+ created_at: string;
44438
+ currency: string | null;
44439
+ customer_code: string | null;
44440
+ customer_exact_id: string | null;
44441
+ customer_name: string | null;
44442
+ description: string | null;
44443
+ division_code: number | null;
44444
+ due_date: string | null;
44445
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44446
+ exact_id: string;
44447
+ exact_modified: string | null;
44448
+ exact_timestamp: number | null;
44449
+ id: string;
44450
+ invoice_date: string | null;
44451
+ invoice_number: string | null;
44452
+ order_number: string | null;
44453
+ paid_at: string | null;
44454
+ payment_status: string;
44455
+ raw: import("../integrations/supabase/types").Json | null;
44456
+ receivable_synced_at: string | null;
44457
+ status_code: number | null;
44458
+ updated_at: string;
44459
+ };
44460
+ Insert: {
44461
+ account_key?: string;
44462
+ amount_excl?: number | null;
44463
+ amount_incl?: number | null;
44464
+ amount_open?: number | null;
44465
+ created_at?: string;
44466
+ currency?: string | null;
44467
+ customer_code?: string | null;
44468
+ customer_exact_id?: string | null;
44469
+ customer_name?: string | null;
44470
+ description?: string | null;
44471
+ division_code?: number | null;
44472
+ due_date?: string | null;
44473
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44474
+ exact_id: string;
44475
+ exact_modified?: string | null;
44476
+ exact_timestamp?: number | null;
44477
+ id?: string;
44478
+ invoice_date?: string | null;
44479
+ invoice_number?: string | null;
44480
+ order_number?: string | null;
44481
+ paid_at?: string | null;
44482
+ payment_status?: string;
44483
+ raw?: import("../integrations/supabase/types").Json | null;
44484
+ receivable_synced_at?: string | null;
44485
+ status_code?: number | null;
44486
+ updated_at?: string;
44487
+ };
44488
+ Update: {
44489
+ account_key?: string;
44490
+ amount_excl?: number | null;
44491
+ amount_incl?: number | null;
44492
+ amount_open?: number | null;
44493
+ created_at?: string;
44494
+ currency?: string | null;
44495
+ customer_code?: string | null;
44496
+ customer_exact_id?: string | null;
44497
+ customer_name?: string | null;
44498
+ description?: string | null;
44499
+ division_code?: number | null;
44500
+ due_date?: string | null;
44501
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44502
+ exact_id?: string;
44503
+ exact_modified?: string | null;
44504
+ exact_timestamp?: number | null;
44505
+ id?: string;
44506
+ invoice_date?: string | null;
44507
+ invoice_number?: string | null;
44508
+ order_number?: string | null;
44509
+ paid_at?: string | null;
44510
+ payment_status?: string;
44511
+ raw?: import("../integrations/supabase/types").Json | null;
44512
+ receivable_synced_at?: string | null;
44513
+ status_code?: number | null;
44514
+ updated_at?: string;
44515
+ };
44516
+ Relationships: [];
44517
+ };
44518
+ exact_auth_items: {
44519
+ Row: {
44520
+ account_key: string;
44521
+ barcode: string | null;
44522
+ code: string | null;
44523
+ cost_price: number | null;
44524
+ created_at: string;
44525
+ description: string | null;
44526
+ division_code: number | null;
44527
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44528
+ exact_id: string;
44529
+ exact_modified: string | null;
44530
+ exact_timestamp: number | null;
44531
+ gl_account_code: string | null;
44532
+ id: string;
44533
+ is_active: boolean;
44534
+ is_sales_item: boolean | null;
44535
+ item_type: string | null;
44536
+ raw: import("../integrations/supabase/types").Json | null;
44537
+ sales_price: number | null;
44538
+ unit: string | null;
44539
+ updated_at: string;
44540
+ vat_code: string | null;
44541
+ };
44542
+ Insert: {
44543
+ account_key?: string;
44544
+ barcode?: string | null;
44545
+ code?: string | null;
44546
+ cost_price?: number | null;
44547
+ created_at?: string;
44548
+ description?: string | null;
44549
+ division_code?: number | null;
44550
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44551
+ exact_id: string;
44552
+ exact_modified?: string | null;
44553
+ exact_timestamp?: number | null;
44554
+ gl_account_code?: string | null;
44555
+ id?: string;
44556
+ is_active?: boolean;
44557
+ is_sales_item?: boolean | null;
44558
+ item_type?: string | null;
44559
+ raw?: import("../integrations/supabase/types").Json | null;
44560
+ sales_price?: number | null;
44561
+ unit?: string | null;
44562
+ updated_at?: string;
44563
+ vat_code?: string | null;
44564
+ };
44565
+ Update: {
44566
+ account_key?: string;
44567
+ barcode?: string | null;
44568
+ code?: string | null;
44569
+ cost_price?: number | null;
44570
+ created_at?: string;
44571
+ description?: string | null;
44572
+ division_code?: number | null;
44573
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44574
+ exact_id?: string;
44575
+ exact_modified?: string | null;
44576
+ exact_timestamp?: number | null;
44577
+ gl_account_code?: string | null;
44578
+ id?: string;
44579
+ is_active?: boolean;
44580
+ is_sales_item?: boolean | null;
44581
+ item_type?: string | null;
44582
+ raw?: import("../integrations/supabase/types").Json | null;
44583
+ sales_price?: number | null;
44584
+ unit?: string | null;
44585
+ updated_at?: string;
44586
+ vat_code?: string | null;
44587
+ };
44588
+ Relationships: [];
44589
+ };
44590
+ exact_auth_sync_log: {
44591
+ Row: {
44592
+ account_key: string;
44593
+ calls_used: number;
44594
+ created_at: string;
44595
+ domain: string;
44596
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44597
+ error: string | null;
44598
+ finished_at: string | null;
44599
+ id: string;
44600
+ ok: boolean;
44601
+ records: number;
44602
+ started_at: string;
44603
+ };
44604
+ Insert: {
44605
+ account_key?: string;
44606
+ calls_used?: number;
44607
+ created_at?: string;
44608
+ domain: string;
44609
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44610
+ error?: string | null;
44611
+ finished_at?: string | null;
44612
+ id?: string;
44613
+ ok?: boolean;
44614
+ records?: number;
44615
+ started_at?: string;
44616
+ };
44617
+ Update: {
44618
+ account_key?: string;
44619
+ calls_used?: number;
44620
+ created_at?: string;
44621
+ domain?: string;
44622
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44623
+ error?: string | null;
44624
+ finished_at?: string | null;
44625
+ id?: string;
44626
+ ok?: boolean;
44627
+ records?: number;
44628
+ started_at?: string;
44629
+ };
44630
+ Relationships: [];
44631
+ };
44632
+ exact_auth_sync_state: {
44633
+ Row: {
44634
+ account_key: string;
44635
+ created_at: string;
44636
+ cursor_timestamp: number;
44637
+ division_code: number | null;
44638
+ domain: string;
44639
+ duration_ms: number | null;
44640
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44641
+ initial_sync_done: boolean;
44642
+ last_error: string | null;
44643
+ last_run_at: string | null;
44644
+ last_success_at: string | null;
44645
+ locked_at: string | null;
44646
+ needs_initial_sync: boolean;
44647
+ record_count: number;
44648
+ updated_at: string;
44649
+ };
44650
+ Insert: {
44651
+ account_key?: string;
44652
+ created_at?: string;
44653
+ cursor_timestamp?: number;
44654
+ division_code?: number | null;
44655
+ domain: string;
44656
+ duration_ms?: number | null;
44657
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44658
+ initial_sync_done?: boolean;
44659
+ last_error?: string | null;
44660
+ last_run_at?: string | null;
44661
+ last_success_at?: string | null;
44662
+ locked_at?: string | null;
44663
+ needs_initial_sync?: boolean;
44664
+ record_count?: number;
44665
+ updated_at?: string;
44666
+ };
44667
+ Update: {
44668
+ account_key?: string;
44669
+ created_at?: string;
44670
+ cursor_timestamp?: number;
44671
+ division_code?: number | null;
44672
+ domain?: string;
44673
+ duration_ms?: number | null;
44674
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44675
+ initial_sync_done?: boolean;
44676
+ last_error?: string | null;
44677
+ last_run_at?: string | null;
44678
+ last_success_at?: string | null;
44679
+ locked_at?: string | null;
44680
+ needs_initial_sync?: boolean;
44681
+ record_count?: number;
44682
+ updated_at?: string;
44683
+ };
44684
+ Relationships: [];
44685
+ };
43238
44686
  exact_bulk_operation_items: {
43239
44687
  Row: {
43240
44688
  attempts: number;
@@ -49735,6 +51183,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
49735
51183
  };
49736
51184
  offer_settings: {
49737
51185
  Row: {
51186
+ brand_name: string | null;
49738
51187
  button_color: string;
49739
51188
  created_at: string;
49740
51189
  default_countries: string[];
@@ -49756,6 +51205,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
49756
51205
  updated_at: string;
49757
51206
  };
49758
51207
  Insert: {
51208
+ brand_name?: string | null;
49759
51209
  button_color?: string;
49760
51210
  created_at?: string;
49761
51211
  default_countries?: string[];
@@ -49777,6 +51227,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
49777
51227
  updated_at?: string;
49778
51228
  };
49779
51229
  Update: {
51230
+ brand_name?: string | null;
49780
51231
  button_color?: string;
49781
51232
  created_at?: string;
49782
51233
  default_countries?: string[];
@@ -57627,6 +59078,21 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
57627
59078
  Args: never;
57628
59079
  Returns: string;
57629
59080
  };
59081
+ exact_auth_consume_calls: {
59082
+ Args: {
59083
+ _account_key: string;
59084
+ _calls?: number;
59085
+ _day_limit?: number;
59086
+ _division_code: number;
59087
+ _environment: string;
59088
+ _minute_limit?: number;
59089
+ };
59090
+ Returns: import("../integrations/supabase/types").Json;
59091
+ };
59092
+ exact_auth_prune_sync_log: {
59093
+ Args: never;
59094
+ Returns: undefined;
59095
+ };
57630
59096
  exact_decrypt: {
57631
59097
  Args: {
57632
59098
  cipher: string;
@@ -57836,6 +59302,10 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
57836
59302
  };
57837
59303
  Returns: number;
57838
59304
  };
59305
+ get_offer_branding: {
59306
+ Args: never;
59307
+ Returns: import("../integrations/supabase/types").Json;
59308
+ };
57839
59309
  get_offer_by_link_code: {
57840
59310
  Args: {
57841
59311
  p_code: string;
@@ -63084,6 +64554,474 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
63084
64554
  referencedColumns: ["id"];
63085
64555
  }];
63086
64556
  };
64557
+ exact_auth_call_budget: {
64558
+ Row: {
64559
+ account_key: string;
64560
+ day_count: number;
64561
+ day_date: string;
64562
+ division_code: number;
64563
+ environment: string;
64564
+ minute_count: number;
64565
+ minute_window: string;
64566
+ updated_at: string;
64567
+ };
64568
+ Insert: {
64569
+ account_key?: string;
64570
+ day_count?: number;
64571
+ day_date?: string;
64572
+ division_code?: number;
64573
+ environment: string;
64574
+ minute_count?: number;
64575
+ minute_window?: string;
64576
+ updated_at?: string;
64577
+ };
64578
+ Update: {
64579
+ account_key?: string;
64580
+ day_count?: number;
64581
+ day_date?: string;
64582
+ division_code?: number;
64583
+ environment?: string;
64584
+ minute_count?: number;
64585
+ minute_window?: string;
64586
+ updated_at?: string;
64587
+ };
64588
+ Relationships: [];
64589
+ };
64590
+ exact_auth_customers: {
64591
+ Row: {
64592
+ account_key: string;
64593
+ address_line1: string | null;
64594
+ chamber_of_commerce: string | null;
64595
+ city: string | null;
64596
+ code: string | null;
64597
+ country: string | null;
64598
+ created_at: string;
64599
+ currency: string | null;
64600
+ division_code: number | null;
64601
+ email: string | null;
64602
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64603
+ exact_id: string;
64604
+ exact_modified: string | null;
64605
+ exact_timestamp: number | null;
64606
+ id: string;
64607
+ is_active: boolean;
64608
+ name: string | null;
64609
+ phone: string | null;
64610
+ postcode: string | null;
64611
+ raw: import("../integrations/supabase/types").Json | null;
64612
+ status: string | null;
64613
+ updated_at: string;
64614
+ vat_number: string | null;
64615
+ website: string | null;
64616
+ };
64617
+ Insert: {
64618
+ account_key?: string;
64619
+ address_line1?: string | null;
64620
+ chamber_of_commerce?: string | null;
64621
+ city?: string | null;
64622
+ code?: string | null;
64623
+ country?: string | null;
64624
+ created_at?: string;
64625
+ currency?: string | null;
64626
+ division_code?: number | null;
64627
+ email?: string | null;
64628
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64629
+ exact_id: string;
64630
+ exact_modified?: string | null;
64631
+ exact_timestamp?: number | null;
64632
+ id?: string;
64633
+ is_active?: boolean;
64634
+ name?: string | null;
64635
+ phone?: string | null;
64636
+ postcode?: string | null;
64637
+ raw?: import("../integrations/supabase/types").Json | null;
64638
+ status?: string | null;
64639
+ updated_at?: string;
64640
+ vat_number?: string | null;
64641
+ website?: string | null;
64642
+ };
64643
+ Update: {
64644
+ account_key?: string;
64645
+ address_line1?: string | null;
64646
+ chamber_of_commerce?: string | null;
64647
+ city?: string | null;
64648
+ code?: string | null;
64649
+ country?: string | null;
64650
+ created_at?: string;
64651
+ currency?: string | null;
64652
+ division_code?: number | null;
64653
+ email?: string | null;
64654
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64655
+ exact_id?: string;
64656
+ exact_modified?: string | null;
64657
+ exact_timestamp?: number | null;
64658
+ id?: string;
64659
+ is_active?: boolean;
64660
+ name?: string | null;
64661
+ phone?: string | null;
64662
+ postcode?: string | null;
64663
+ raw?: import("../integrations/supabase/types").Json | null;
64664
+ status?: string | null;
64665
+ updated_at?: string;
64666
+ vat_number?: string | null;
64667
+ website?: string | null;
64668
+ };
64669
+ Relationships: [];
64670
+ };
64671
+ exact_auth_divisions: {
64672
+ Row: {
64673
+ account_key: string;
64674
+ company_name: string | null;
64675
+ created_at: string;
64676
+ division_code: number | null;
64677
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64678
+ id: string;
64679
+ last_synced_at: string | null;
64680
+ updated_at: string;
64681
+ };
64682
+ Insert: {
64683
+ account_key?: string;
64684
+ company_name?: string | null;
64685
+ created_at?: string;
64686
+ division_code?: number | null;
64687
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64688
+ id?: string;
64689
+ last_synced_at?: string | null;
64690
+ updated_at?: string;
64691
+ };
64692
+ Update: {
64693
+ account_key?: string;
64694
+ company_name?: string | null;
64695
+ created_at?: string;
64696
+ division_code?: number | null;
64697
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64698
+ id?: string;
64699
+ last_synced_at?: string | null;
64700
+ updated_at?: string;
64701
+ };
64702
+ Relationships: [];
64703
+ };
64704
+ exact_auth_invoice_lines: {
64705
+ Row: {
64706
+ account_key: string;
64707
+ amount_excl: number | null;
64708
+ created_at: string;
64709
+ description: string | null;
64710
+ discount: number | null;
64711
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64712
+ exact_id: string;
64713
+ exact_timestamp: number | null;
64714
+ id: string;
64715
+ invoice_exact_id: string;
64716
+ item_code: string | null;
64717
+ item_exact_id: string | null;
64718
+ line_number: number | null;
64719
+ quantity: number | null;
64720
+ raw: import("../integrations/supabase/types").Json | null;
64721
+ unit_price: number | null;
64722
+ updated_at: string;
64723
+ vat_amount: number | null;
64724
+ vat_code: string | null;
64725
+ };
64726
+ Insert: {
64727
+ account_key?: string;
64728
+ amount_excl?: number | null;
64729
+ created_at?: string;
64730
+ description?: string | null;
64731
+ discount?: number | null;
64732
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64733
+ exact_id: string;
64734
+ exact_timestamp?: number | null;
64735
+ id?: string;
64736
+ invoice_exact_id: string;
64737
+ item_code?: string | null;
64738
+ item_exact_id?: string | null;
64739
+ line_number?: number | null;
64740
+ quantity?: number | null;
64741
+ raw?: import("../integrations/supabase/types").Json | null;
64742
+ unit_price?: number | null;
64743
+ updated_at?: string;
64744
+ vat_amount?: number | null;
64745
+ vat_code?: string | null;
64746
+ };
64747
+ Update: {
64748
+ account_key?: string;
64749
+ amount_excl?: number | null;
64750
+ created_at?: string;
64751
+ description?: string | null;
64752
+ discount?: number | null;
64753
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64754
+ exact_id?: string;
64755
+ exact_timestamp?: number | null;
64756
+ id?: string;
64757
+ invoice_exact_id?: string;
64758
+ item_code?: string | null;
64759
+ item_exact_id?: string | null;
64760
+ line_number?: number | null;
64761
+ quantity?: number | null;
64762
+ raw?: import("../integrations/supabase/types").Json | null;
64763
+ unit_price?: number | null;
64764
+ updated_at?: string;
64765
+ vat_amount?: number | null;
64766
+ vat_code?: string | null;
64767
+ };
64768
+ Relationships: [];
64769
+ };
64770
+ exact_auth_invoices: {
64771
+ Row: {
64772
+ account_key: string;
64773
+ amount_excl: number | null;
64774
+ amount_incl: number | null;
64775
+ amount_open: number | null;
64776
+ created_at: string;
64777
+ currency: string | null;
64778
+ customer_code: string | null;
64779
+ customer_exact_id: string | null;
64780
+ customer_name: string | null;
64781
+ description: string | null;
64782
+ division_code: number | null;
64783
+ due_date: string | null;
64784
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64785
+ exact_id: string;
64786
+ exact_modified: string | null;
64787
+ exact_timestamp: number | null;
64788
+ id: string;
64789
+ invoice_date: string | null;
64790
+ invoice_number: string | null;
64791
+ order_number: string | null;
64792
+ paid_at: string | null;
64793
+ payment_status: string;
64794
+ raw: import("../integrations/supabase/types").Json | null;
64795
+ receivable_synced_at: string | null;
64796
+ status_code: number | null;
64797
+ updated_at: string;
64798
+ };
64799
+ Insert: {
64800
+ account_key?: string;
64801
+ amount_excl?: number | null;
64802
+ amount_incl?: number | null;
64803
+ amount_open?: number | null;
64804
+ created_at?: string;
64805
+ currency?: string | null;
64806
+ customer_code?: string | null;
64807
+ customer_exact_id?: string | null;
64808
+ customer_name?: string | null;
64809
+ description?: string | null;
64810
+ division_code?: number | null;
64811
+ due_date?: string | null;
64812
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64813
+ exact_id: string;
64814
+ exact_modified?: string | null;
64815
+ exact_timestamp?: number | null;
64816
+ id?: string;
64817
+ invoice_date?: string | null;
64818
+ invoice_number?: string | null;
64819
+ order_number?: string | null;
64820
+ paid_at?: string | null;
64821
+ payment_status?: string;
64822
+ raw?: import("../integrations/supabase/types").Json | null;
64823
+ receivable_synced_at?: string | null;
64824
+ status_code?: number | null;
64825
+ updated_at?: string;
64826
+ };
64827
+ Update: {
64828
+ account_key?: string;
64829
+ amount_excl?: number | null;
64830
+ amount_incl?: number | null;
64831
+ amount_open?: number | null;
64832
+ created_at?: string;
64833
+ currency?: string | null;
64834
+ customer_code?: string | null;
64835
+ customer_exact_id?: string | null;
64836
+ customer_name?: string | null;
64837
+ description?: string | null;
64838
+ division_code?: number | null;
64839
+ due_date?: string | null;
64840
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64841
+ exact_id?: string;
64842
+ exact_modified?: string | null;
64843
+ exact_timestamp?: number | null;
64844
+ id?: string;
64845
+ invoice_date?: string | null;
64846
+ invoice_number?: string | null;
64847
+ order_number?: string | null;
64848
+ paid_at?: string | null;
64849
+ payment_status?: string;
64850
+ raw?: import("../integrations/supabase/types").Json | null;
64851
+ receivable_synced_at?: string | null;
64852
+ status_code?: number | null;
64853
+ updated_at?: string;
64854
+ };
64855
+ Relationships: [];
64856
+ };
64857
+ exact_auth_items: {
64858
+ Row: {
64859
+ account_key: string;
64860
+ barcode: string | null;
64861
+ code: string | null;
64862
+ cost_price: number | null;
64863
+ created_at: string;
64864
+ description: string | null;
64865
+ division_code: number | null;
64866
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64867
+ exact_id: string;
64868
+ exact_modified: string | null;
64869
+ exact_timestamp: number | null;
64870
+ gl_account_code: string | null;
64871
+ id: string;
64872
+ is_active: boolean;
64873
+ is_sales_item: boolean | null;
64874
+ item_type: string | null;
64875
+ raw: import("../integrations/supabase/types").Json | null;
64876
+ sales_price: number | null;
64877
+ unit: string | null;
64878
+ updated_at: string;
64879
+ vat_code: string | null;
64880
+ };
64881
+ Insert: {
64882
+ account_key?: string;
64883
+ barcode?: string | null;
64884
+ code?: string | null;
64885
+ cost_price?: number | null;
64886
+ created_at?: string;
64887
+ description?: string | null;
64888
+ division_code?: number | null;
64889
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64890
+ exact_id: string;
64891
+ exact_modified?: string | null;
64892
+ exact_timestamp?: number | null;
64893
+ gl_account_code?: string | null;
64894
+ id?: string;
64895
+ is_active?: boolean;
64896
+ is_sales_item?: boolean | null;
64897
+ item_type?: string | null;
64898
+ raw?: import("../integrations/supabase/types").Json | null;
64899
+ sales_price?: number | null;
64900
+ unit?: string | null;
64901
+ updated_at?: string;
64902
+ vat_code?: string | null;
64903
+ };
64904
+ Update: {
64905
+ account_key?: string;
64906
+ barcode?: string | null;
64907
+ code?: string | null;
64908
+ cost_price?: number | null;
64909
+ created_at?: string;
64910
+ description?: string | null;
64911
+ division_code?: number | null;
64912
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64913
+ exact_id?: string;
64914
+ exact_modified?: string | null;
64915
+ exact_timestamp?: number | null;
64916
+ gl_account_code?: string | null;
64917
+ id?: string;
64918
+ is_active?: boolean;
64919
+ is_sales_item?: boolean | null;
64920
+ item_type?: string | null;
64921
+ raw?: import("../integrations/supabase/types").Json | null;
64922
+ sales_price?: number | null;
64923
+ unit?: string | null;
64924
+ updated_at?: string;
64925
+ vat_code?: string | null;
64926
+ };
64927
+ Relationships: [];
64928
+ };
64929
+ exact_auth_sync_log: {
64930
+ Row: {
64931
+ account_key: string;
64932
+ calls_used: number;
64933
+ created_at: string;
64934
+ domain: string;
64935
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64936
+ error: string | null;
64937
+ finished_at: string | null;
64938
+ id: string;
64939
+ ok: boolean;
64940
+ records: number;
64941
+ started_at: string;
64942
+ };
64943
+ Insert: {
64944
+ account_key?: string;
64945
+ calls_used?: number;
64946
+ created_at?: string;
64947
+ domain: string;
64948
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64949
+ error?: string | null;
64950
+ finished_at?: string | null;
64951
+ id?: string;
64952
+ ok?: boolean;
64953
+ records?: number;
64954
+ started_at?: string;
64955
+ };
64956
+ Update: {
64957
+ account_key?: string;
64958
+ calls_used?: number;
64959
+ created_at?: string;
64960
+ domain?: string;
64961
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64962
+ error?: string | null;
64963
+ finished_at?: string | null;
64964
+ id?: string;
64965
+ ok?: boolean;
64966
+ records?: number;
64967
+ started_at?: string;
64968
+ };
64969
+ Relationships: [];
64970
+ };
64971
+ exact_auth_sync_state: {
64972
+ Row: {
64973
+ account_key: string;
64974
+ created_at: string;
64975
+ cursor_timestamp: number;
64976
+ division_code: number | null;
64977
+ domain: string;
64978
+ duration_ms: number | null;
64979
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64980
+ initial_sync_done: boolean;
64981
+ last_error: string | null;
64982
+ last_run_at: string | null;
64983
+ last_success_at: string | null;
64984
+ locked_at: string | null;
64985
+ needs_initial_sync: boolean;
64986
+ record_count: number;
64987
+ updated_at: string;
64988
+ };
64989
+ Insert: {
64990
+ account_key?: string;
64991
+ created_at?: string;
64992
+ cursor_timestamp?: number;
64993
+ division_code?: number | null;
64994
+ domain: string;
64995
+ duration_ms?: number | null;
64996
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64997
+ initial_sync_done?: boolean;
64998
+ last_error?: string | null;
64999
+ last_run_at?: string | null;
65000
+ last_success_at?: string | null;
65001
+ locked_at?: string | null;
65002
+ needs_initial_sync?: boolean;
65003
+ record_count?: number;
65004
+ updated_at?: string;
65005
+ };
65006
+ Update: {
65007
+ account_key?: string;
65008
+ created_at?: string;
65009
+ cursor_timestamp?: number;
65010
+ division_code?: number | null;
65011
+ domain?: string;
65012
+ duration_ms?: number | null;
65013
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65014
+ initial_sync_done?: boolean;
65015
+ last_error?: string | null;
65016
+ last_run_at?: string | null;
65017
+ last_success_at?: string | null;
65018
+ locked_at?: string | null;
65019
+ needs_initial_sync?: boolean;
65020
+ record_count?: number;
65021
+ updated_at?: string;
65022
+ };
65023
+ Relationships: [];
65024
+ };
63087
65025
  exact_bulk_operation_items: {
63088
65026
  Row: {
63089
65027
  attempts: number;
@@ -69584,6 +71522,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
69584
71522
  };
69585
71523
  offer_settings: {
69586
71524
  Row: {
71525
+ brand_name: string | null;
69587
71526
  button_color: string;
69588
71527
  created_at: string;
69589
71528
  default_countries: string[];
@@ -69605,6 +71544,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
69605
71544
  updated_at: string;
69606
71545
  };
69607
71546
  Insert: {
71547
+ brand_name?: string | null;
69608
71548
  button_color?: string;
69609
71549
  created_at?: string;
69610
71550
  default_countries?: string[];
@@ -69626,6 +71566,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
69626
71566
  updated_at?: string;
69627
71567
  };
69628
71568
  Update: {
71569
+ brand_name?: string | null;
69629
71570
  button_color?: string;
69630
71571
  created_at?: string;
69631
71572
  default_countries?: string[];
@@ -77476,6 +79417,21 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
77476
79417
  Args: never;
77477
79418
  Returns: string;
77478
79419
  };
79420
+ exact_auth_consume_calls: {
79421
+ Args: {
79422
+ _account_key: string;
79423
+ _calls?: number;
79424
+ _day_limit?: number;
79425
+ _division_code: number;
79426
+ _environment: string;
79427
+ _minute_limit?: number;
79428
+ };
79429
+ Returns: import("../integrations/supabase/types").Json;
79430
+ };
79431
+ exact_auth_prune_sync_log: {
79432
+ Args: never;
79433
+ Returns: undefined;
79434
+ };
77479
79435
  exact_decrypt: {
77480
79436
  Args: {
77481
79437
  cipher: string;
@@ -77685,6 +79641,10 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
77685
79641
  };
77686
79642
  Returns: number;
77687
79643
  };
79644
+ get_offer_branding: {
79645
+ Args: never;
79646
+ Returns: import("../integrations/supabase/types").Json;
79647
+ };
77688
79648
  get_offer_by_link_code: {
77689
79649
  Args: {
77690
79650
  p_code: string;
@@ -82936,6 +84896,474 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
82936
84896
  referencedColumns: ["id"];
82937
84897
  }];
82938
84898
  };
84899
+ exact_auth_call_budget: {
84900
+ Row: {
84901
+ account_key: string;
84902
+ day_count: number;
84903
+ day_date: string;
84904
+ division_code: number;
84905
+ environment: string;
84906
+ minute_count: number;
84907
+ minute_window: string;
84908
+ updated_at: string;
84909
+ };
84910
+ Insert: {
84911
+ account_key?: string;
84912
+ day_count?: number;
84913
+ day_date?: string;
84914
+ division_code?: number;
84915
+ environment: string;
84916
+ minute_count?: number;
84917
+ minute_window?: string;
84918
+ updated_at?: string;
84919
+ };
84920
+ Update: {
84921
+ account_key?: string;
84922
+ day_count?: number;
84923
+ day_date?: string;
84924
+ division_code?: number;
84925
+ environment?: string;
84926
+ minute_count?: number;
84927
+ minute_window?: string;
84928
+ updated_at?: string;
84929
+ };
84930
+ Relationships: [];
84931
+ };
84932
+ exact_auth_customers: {
84933
+ Row: {
84934
+ account_key: string;
84935
+ address_line1: string | null;
84936
+ chamber_of_commerce: string | null;
84937
+ city: string | null;
84938
+ code: string | null;
84939
+ country: string | null;
84940
+ created_at: string;
84941
+ currency: string | null;
84942
+ division_code: number | null;
84943
+ email: string | null;
84944
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84945
+ exact_id: string;
84946
+ exact_modified: string | null;
84947
+ exact_timestamp: number | null;
84948
+ id: string;
84949
+ is_active: boolean;
84950
+ name: string | null;
84951
+ phone: string | null;
84952
+ postcode: string | null;
84953
+ raw: import("../integrations/supabase/types").Json | null;
84954
+ status: string | null;
84955
+ updated_at: string;
84956
+ vat_number: string | null;
84957
+ website: string | null;
84958
+ };
84959
+ Insert: {
84960
+ account_key?: string;
84961
+ address_line1?: string | null;
84962
+ chamber_of_commerce?: string | null;
84963
+ city?: string | null;
84964
+ code?: string | null;
84965
+ country?: string | null;
84966
+ created_at?: string;
84967
+ currency?: string | null;
84968
+ division_code?: number | null;
84969
+ email?: string | null;
84970
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84971
+ exact_id: string;
84972
+ exact_modified?: string | null;
84973
+ exact_timestamp?: number | null;
84974
+ id?: string;
84975
+ is_active?: boolean;
84976
+ name?: string | null;
84977
+ phone?: string | null;
84978
+ postcode?: string | null;
84979
+ raw?: import("../integrations/supabase/types").Json | null;
84980
+ status?: string | null;
84981
+ updated_at?: string;
84982
+ vat_number?: string | null;
84983
+ website?: string | null;
84984
+ };
84985
+ Update: {
84986
+ account_key?: string;
84987
+ address_line1?: string | null;
84988
+ chamber_of_commerce?: string | null;
84989
+ city?: string | null;
84990
+ code?: string | null;
84991
+ country?: string | null;
84992
+ created_at?: string;
84993
+ currency?: string | null;
84994
+ division_code?: number | null;
84995
+ email?: string | null;
84996
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84997
+ exact_id?: string;
84998
+ exact_modified?: string | null;
84999
+ exact_timestamp?: number | null;
85000
+ id?: string;
85001
+ is_active?: boolean;
85002
+ name?: string | null;
85003
+ phone?: string | null;
85004
+ postcode?: string | null;
85005
+ raw?: import("../integrations/supabase/types").Json | null;
85006
+ status?: string | null;
85007
+ updated_at?: string;
85008
+ vat_number?: string | null;
85009
+ website?: string | null;
85010
+ };
85011
+ Relationships: [];
85012
+ };
85013
+ exact_auth_divisions: {
85014
+ Row: {
85015
+ account_key: string;
85016
+ company_name: string | null;
85017
+ created_at: string;
85018
+ division_code: number | null;
85019
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85020
+ id: string;
85021
+ last_synced_at: string | null;
85022
+ updated_at: string;
85023
+ };
85024
+ Insert: {
85025
+ account_key?: string;
85026
+ company_name?: string | null;
85027
+ created_at?: string;
85028
+ division_code?: number | null;
85029
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85030
+ id?: string;
85031
+ last_synced_at?: string | null;
85032
+ updated_at?: string;
85033
+ };
85034
+ Update: {
85035
+ account_key?: string;
85036
+ company_name?: string | null;
85037
+ created_at?: string;
85038
+ division_code?: number | null;
85039
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85040
+ id?: string;
85041
+ last_synced_at?: string | null;
85042
+ updated_at?: string;
85043
+ };
85044
+ Relationships: [];
85045
+ };
85046
+ exact_auth_invoice_lines: {
85047
+ Row: {
85048
+ account_key: string;
85049
+ amount_excl: number | null;
85050
+ created_at: string;
85051
+ description: string | null;
85052
+ discount: number | null;
85053
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85054
+ exact_id: string;
85055
+ exact_timestamp: number | null;
85056
+ id: string;
85057
+ invoice_exact_id: string;
85058
+ item_code: string | null;
85059
+ item_exact_id: string | null;
85060
+ line_number: number | null;
85061
+ quantity: number | null;
85062
+ raw: import("../integrations/supabase/types").Json | null;
85063
+ unit_price: number | null;
85064
+ updated_at: string;
85065
+ vat_amount: number | null;
85066
+ vat_code: string | null;
85067
+ };
85068
+ Insert: {
85069
+ account_key?: string;
85070
+ amount_excl?: number | null;
85071
+ created_at?: string;
85072
+ description?: string | null;
85073
+ discount?: number | null;
85074
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85075
+ exact_id: string;
85076
+ exact_timestamp?: number | null;
85077
+ id?: string;
85078
+ invoice_exact_id: string;
85079
+ item_code?: string | null;
85080
+ item_exact_id?: string | null;
85081
+ line_number?: number | null;
85082
+ quantity?: number | null;
85083
+ raw?: import("../integrations/supabase/types").Json | null;
85084
+ unit_price?: number | null;
85085
+ updated_at?: string;
85086
+ vat_amount?: number | null;
85087
+ vat_code?: string | null;
85088
+ };
85089
+ Update: {
85090
+ account_key?: string;
85091
+ amount_excl?: number | null;
85092
+ created_at?: string;
85093
+ description?: string | null;
85094
+ discount?: number | null;
85095
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85096
+ exact_id?: string;
85097
+ exact_timestamp?: number | null;
85098
+ id?: string;
85099
+ invoice_exact_id?: string;
85100
+ item_code?: string | null;
85101
+ item_exact_id?: string | null;
85102
+ line_number?: number | null;
85103
+ quantity?: number | null;
85104
+ raw?: import("../integrations/supabase/types").Json | null;
85105
+ unit_price?: number | null;
85106
+ updated_at?: string;
85107
+ vat_amount?: number | null;
85108
+ vat_code?: string | null;
85109
+ };
85110
+ Relationships: [];
85111
+ };
85112
+ exact_auth_invoices: {
85113
+ Row: {
85114
+ account_key: string;
85115
+ amount_excl: number | null;
85116
+ amount_incl: number | null;
85117
+ amount_open: number | null;
85118
+ created_at: string;
85119
+ currency: string | null;
85120
+ customer_code: string | null;
85121
+ customer_exact_id: string | null;
85122
+ customer_name: string | null;
85123
+ description: string | null;
85124
+ division_code: number | null;
85125
+ due_date: string | null;
85126
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85127
+ exact_id: string;
85128
+ exact_modified: string | null;
85129
+ exact_timestamp: number | null;
85130
+ id: string;
85131
+ invoice_date: string | null;
85132
+ invoice_number: string | null;
85133
+ order_number: string | null;
85134
+ paid_at: string | null;
85135
+ payment_status: string;
85136
+ raw: import("../integrations/supabase/types").Json | null;
85137
+ receivable_synced_at: string | null;
85138
+ status_code: number | null;
85139
+ updated_at: string;
85140
+ };
85141
+ Insert: {
85142
+ account_key?: string;
85143
+ amount_excl?: number | null;
85144
+ amount_incl?: number | null;
85145
+ amount_open?: number | null;
85146
+ created_at?: string;
85147
+ currency?: string | null;
85148
+ customer_code?: string | null;
85149
+ customer_exact_id?: string | null;
85150
+ customer_name?: string | null;
85151
+ description?: string | null;
85152
+ division_code?: number | null;
85153
+ due_date?: string | null;
85154
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85155
+ exact_id: string;
85156
+ exact_modified?: string | null;
85157
+ exact_timestamp?: number | null;
85158
+ id?: string;
85159
+ invoice_date?: string | null;
85160
+ invoice_number?: string | null;
85161
+ order_number?: string | null;
85162
+ paid_at?: string | null;
85163
+ payment_status?: string;
85164
+ raw?: import("../integrations/supabase/types").Json | null;
85165
+ receivable_synced_at?: string | null;
85166
+ status_code?: number | null;
85167
+ updated_at?: string;
85168
+ };
85169
+ Update: {
85170
+ account_key?: string;
85171
+ amount_excl?: number | null;
85172
+ amount_incl?: number | null;
85173
+ amount_open?: number | null;
85174
+ created_at?: string;
85175
+ currency?: string | null;
85176
+ customer_code?: string | null;
85177
+ customer_exact_id?: string | null;
85178
+ customer_name?: string | null;
85179
+ description?: string | null;
85180
+ division_code?: number | null;
85181
+ due_date?: string | null;
85182
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85183
+ exact_id?: string;
85184
+ exact_modified?: string | null;
85185
+ exact_timestamp?: number | null;
85186
+ id?: string;
85187
+ invoice_date?: string | null;
85188
+ invoice_number?: string | null;
85189
+ order_number?: string | null;
85190
+ paid_at?: string | null;
85191
+ payment_status?: string;
85192
+ raw?: import("../integrations/supabase/types").Json | null;
85193
+ receivable_synced_at?: string | null;
85194
+ status_code?: number | null;
85195
+ updated_at?: string;
85196
+ };
85197
+ Relationships: [];
85198
+ };
85199
+ exact_auth_items: {
85200
+ Row: {
85201
+ account_key: string;
85202
+ barcode: string | null;
85203
+ code: string | null;
85204
+ cost_price: number | null;
85205
+ created_at: string;
85206
+ description: string | null;
85207
+ division_code: number | null;
85208
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85209
+ exact_id: string;
85210
+ exact_modified: string | null;
85211
+ exact_timestamp: number | null;
85212
+ gl_account_code: string | null;
85213
+ id: string;
85214
+ is_active: boolean;
85215
+ is_sales_item: boolean | null;
85216
+ item_type: string | null;
85217
+ raw: import("../integrations/supabase/types").Json | null;
85218
+ sales_price: number | null;
85219
+ unit: string | null;
85220
+ updated_at: string;
85221
+ vat_code: string | null;
85222
+ };
85223
+ Insert: {
85224
+ account_key?: string;
85225
+ barcode?: string | null;
85226
+ code?: string | null;
85227
+ cost_price?: number | null;
85228
+ created_at?: string;
85229
+ description?: string | null;
85230
+ division_code?: number | null;
85231
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85232
+ exact_id: string;
85233
+ exact_modified?: string | null;
85234
+ exact_timestamp?: number | null;
85235
+ gl_account_code?: string | null;
85236
+ id?: string;
85237
+ is_active?: boolean;
85238
+ is_sales_item?: boolean | null;
85239
+ item_type?: string | null;
85240
+ raw?: import("../integrations/supabase/types").Json | null;
85241
+ sales_price?: number | null;
85242
+ unit?: string | null;
85243
+ updated_at?: string;
85244
+ vat_code?: string | null;
85245
+ };
85246
+ Update: {
85247
+ account_key?: string;
85248
+ barcode?: string | null;
85249
+ code?: string | null;
85250
+ cost_price?: number | null;
85251
+ created_at?: string;
85252
+ description?: string | null;
85253
+ division_code?: number | null;
85254
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85255
+ exact_id?: string;
85256
+ exact_modified?: string | null;
85257
+ exact_timestamp?: number | null;
85258
+ gl_account_code?: string | null;
85259
+ id?: string;
85260
+ is_active?: boolean;
85261
+ is_sales_item?: boolean | null;
85262
+ item_type?: string | null;
85263
+ raw?: import("../integrations/supabase/types").Json | null;
85264
+ sales_price?: number | null;
85265
+ unit?: string | null;
85266
+ updated_at?: string;
85267
+ vat_code?: string | null;
85268
+ };
85269
+ Relationships: [];
85270
+ };
85271
+ exact_auth_sync_log: {
85272
+ Row: {
85273
+ account_key: string;
85274
+ calls_used: number;
85275
+ created_at: string;
85276
+ domain: string;
85277
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85278
+ error: string | null;
85279
+ finished_at: string | null;
85280
+ id: string;
85281
+ ok: boolean;
85282
+ records: number;
85283
+ started_at: string;
85284
+ };
85285
+ Insert: {
85286
+ account_key?: string;
85287
+ calls_used?: number;
85288
+ created_at?: string;
85289
+ domain: string;
85290
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85291
+ error?: string | null;
85292
+ finished_at?: string | null;
85293
+ id?: string;
85294
+ ok?: boolean;
85295
+ records?: number;
85296
+ started_at?: string;
85297
+ };
85298
+ Update: {
85299
+ account_key?: string;
85300
+ calls_used?: number;
85301
+ created_at?: string;
85302
+ domain?: string;
85303
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85304
+ error?: string | null;
85305
+ finished_at?: string | null;
85306
+ id?: string;
85307
+ ok?: boolean;
85308
+ records?: number;
85309
+ started_at?: string;
85310
+ };
85311
+ Relationships: [];
85312
+ };
85313
+ exact_auth_sync_state: {
85314
+ Row: {
85315
+ account_key: string;
85316
+ created_at: string;
85317
+ cursor_timestamp: number;
85318
+ division_code: number | null;
85319
+ domain: string;
85320
+ duration_ms: number | null;
85321
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85322
+ initial_sync_done: boolean;
85323
+ last_error: string | null;
85324
+ last_run_at: string | null;
85325
+ last_success_at: string | null;
85326
+ locked_at: string | null;
85327
+ needs_initial_sync: boolean;
85328
+ record_count: number;
85329
+ updated_at: string;
85330
+ };
85331
+ Insert: {
85332
+ account_key?: string;
85333
+ created_at?: string;
85334
+ cursor_timestamp?: number;
85335
+ division_code?: number | null;
85336
+ domain: string;
85337
+ duration_ms?: number | null;
85338
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85339
+ initial_sync_done?: boolean;
85340
+ last_error?: string | null;
85341
+ last_run_at?: string | null;
85342
+ last_success_at?: string | null;
85343
+ locked_at?: string | null;
85344
+ needs_initial_sync?: boolean;
85345
+ record_count?: number;
85346
+ updated_at?: string;
85347
+ };
85348
+ Update: {
85349
+ account_key?: string;
85350
+ created_at?: string;
85351
+ cursor_timestamp?: number;
85352
+ division_code?: number | null;
85353
+ domain?: string;
85354
+ duration_ms?: number | null;
85355
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85356
+ initial_sync_done?: boolean;
85357
+ last_error?: string | null;
85358
+ last_run_at?: string | null;
85359
+ last_success_at?: string | null;
85360
+ locked_at?: string | null;
85361
+ needs_initial_sync?: boolean;
85362
+ record_count?: number;
85363
+ updated_at?: string;
85364
+ };
85365
+ Relationships: [];
85366
+ };
82939
85367
  exact_bulk_operation_items: {
82940
85368
  Row: {
82941
85369
  attempts: number;
@@ -89436,6 +91864,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
89436
91864
  };
89437
91865
  offer_settings: {
89438
91866
  Row: {
91867
+ brand_name: string | null;
89439
91868
  button_color: string;
89440
91869
  created_at: string;
89441
91870
  default_countries: string[];
@@ -89457,6 +91886,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
89457
91886
  updated_at: string;
89458
91887
  };
89459
91888
  Insert: {
91889
+ brand_name?: string | null;
89460
91890
  button_color?: string;
89461
91891
  created_at?: string;
89462
91892
  default_countries?: string[];
@@ -89478,6 +91908,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
89478
91908
  updated_at?: string;
89479
91909
  };
89480
91910
  Update: {
91911
+ brand_name?: string | null;
89481
91912
  button_color?: string;
89482
91913
  created_at?: string;
89483
91914
  default_countries?: string[];
@@ -97328,6 +99759,21 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
97328
99759
  Args: never;
97329
99760
  Returns: string;
97330
99761
  };
99762
+ exact_auth_consume_calls: {
99763
+ Args: {
99764
+ _account_key: string;
99765
+ _calls?: number;
99766
+ _day_limit?: number;
99767
+ _division_code: number;
99768
+ _environment: string;
99769
+ _minute_limit?: number;
99770
+ };
99771
+ Returns: import("../integrations/supabase/types").Json;
99772
+ };
99773
+ exact_auth_prune_sync_log: {
99774
+ Args: never;
99775
+ Returns: undefined;
99776
+ };
97331
99777
  exact_decrypt: {
97332
99778
  Args: {
97333
99779
  cipher: string;
@@ -97537,6 +99983,10 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
97537
99983
  };
97538
99984
  Returns: number;
97539
99985
  };
99986
+ get_offer_branding: {
99987
+ Args: never;
99988
+ Returns: import("../integrations/supabase/types").Json;
99989
+ };
97540
99990
  get_offer_by_link_code: {
97541
99991
  Args: {
97542
99992
  p_code: string;
@@ -102752,6 +105202,474 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
102752
105202
  referencedColumns: ["id"];
102753
105203
  }];
102754
105204
  };
105205
+ exact_auth_call_budget: {
105206
+ Row: {
105207
+ account_key: string;
105208
+ day_count: number;
105209
+ day_date: string;
105210
+ division_code: number;
105211
+ environment: string;
105212
+ minute_count: number;
105213
+ minute_window: string;
105214
+ updated_at: string;
105215
+ };
105216
+ Insert: {
105217
+ account_key?: string;
105218
+ day_count?: number;
105219
+ day_date?: string;
105220
+ division_code?: number;
105221
+ environment: string;
105222
+ minute_count?: number;
105223
+ minute_window?: string;
105224
+ updated_at?: string;
105225
+ };
105226
+ Update: {
105227
+ account_key?: string;
105228
+ day_count?: number;
105229
+ day_date?: string;
105230
+ division_code?: number;
105231
+ environment?: string;
105232
+ minute_count?: number;
105233
+ minute_window?: string;
105234
+ updated_at?: string;
105235
+ };
105236
+ Relationships: [];
105237
+ };
105238
+ exact_auth_customers: {
105239
+ Row: {
105240
+ account_key: string;
105241
+ address_line1: string | null;
105242
+ chamber_of_commerce: string | null;
105243
+ city: string | null;
105244
+ code: string | null;
105245
+ country: string | null;
105246
+ created_at: string;
105247
+ currency: string | null;
105248
+ division_code: number | null;
105249
+ email: string | null;
105250
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105251
+ exact_id: string;
105252
+ exact_modified: string | null;
105253
+ exact_timestamp: number | null;
105254
+ id: string;
105255
+ is_active: boolean;
105256
+ name: string | null;
105257
+ phone: string | null;
105258
+ postcode: string | null;
105259
+ raw: import("../integrations/supabase/types").Json | null;
105260
+ status: string | null;
105261
+ updated_at: string;
105262
+ vat_number: string | null;
105263
+ website: string | null;
105264
+ };
105265
+ Insert: {
105266
+ account_key?: string;
105267
+ address_line1?: string | null;
105268
+ chamber_of_commerce?: string | null;
105269
+ city?: string | null;
105270
+ code?: string | null;
105271
+ country?: string | null;
105272
+ created_at?: string;
105273
+ currency?: string | null;
105274
+ division_code?: number | null;
105275
+ email?: string | null;
105276
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105277
+ exact_id: string;
105278
+ exact_modified?: string | null;
105279
+ exact_timestamp?: number | null;
105280
+ id?: string;
105281
+ is_active?: boolean;
105282
+ name?: string | null;
105283
+ phone?: string | null;
105284
+ postcode?: string | null;
105285
+ raw?: import("../integrations/supabase/types").Json | null;
105286
+ status?: string | null;
105287
+ updated_at?: string;
105288
+ vat_number?: string | null;
105289
+ website?: string | null;
105290
+ };
105291
+ Update: {
105292
+ account_key?: string;
105293
+ address_line1?: string | null;
105294
+ chamber_of_commerce?: string | null;
105295
+ city?: string | null;
105296
+ code?: string | null;
105297
+ country?: string | null;
105298
+ created_at?: string;
105299
+ currency?: string | null;
105300
+ division_code?: number | null;
105301
+ email?: string | null;
105302
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105303
+ exact_id?: string;
105304
+ exact_modified?: string | null;
105305
+ exact_timestamp?: number | null;
105306
+ id?: string;
105307
+ is_active?: boolean;
105308
+ name?: string | null;
105309
+ phone?: string | null;
105310
+ postcode?: string | null;
105311
+ raw?: import("../integrations/supabase/types").Json | null;
105312
+ status?: string | null;
105313
+ updated_at?: string;
105314
+ vat_number?: string | null;
105315
+ website?: string | null;
105316
+ };
105317
+ Relationships: [];
105318
+ };
105319
+ exact_auth_divisions: {
105320
+ Row: {
105321
+ account_key: string;
105322
+ company_name: string | null;
105323
+ created_at: string;
105324
+ division_code: number | null;
105325
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105326
+ id: string;
105327
+ last_synced_at: string | null;
105328
+ updated_at: string;
105329
+ };
105330
+ Insert: {
105331
+ account_key?: string;
105332
+ company_name?: string | null;
105333
+ created_at?: string;
105334
+ division_code?: number | null;
105335
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105336
+ id?: string;
105337
+ last_synced_at?: string | null;
105338
+ updated_at?: string;
105339
+ };
105340
+ Update: {
105341
+ account_key?: string;
105342
+ company_name?: string | null;
105343
+ created_at?: string;
105344
+ division_code?: number | null;
105345
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105346
+ id?: string;
105347
+ last_synced_at?: string | null;
105348
+ updated_at?: string;
105349
+ };
105350
+ Relationships: [];
105351
+ };
105352
+ exact_auth_invoice_lines: {
105353
+ Row: {
105354
+ account_key: string;
105355
+ amount_excl: number | null;
105356
+ created_at: string;
105357
+ description: string | null;
105358
+ discount: number | null;
105359
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105360
+ exact_id: string;
105361
+ exact_timestamp: number | null;
105362
+ id: string;
105363
+ invoice_exact_id: string;
105364
+ item_code: string | null;
105365
+ item_exact_id: string | null;
105366
+ line_number: number | null;
105367
+ quantity: number | null;
105368
+ raw: import("../integrations/supabase/types").Json | null;
105369
+ unit_price: number | null;
105370
+ updated_at: string;
105371
+ vat_amount: number | null;
105372
+ vat_code: string | null;
105373
+ };
105374
+ Insert: {
105375
+ account_key?: string;
105376
+ amount_excl?: number | null;
105377
+ created_at?: string;
105378
+ description?: string | null;
105379
+ discount?: number | null;
105380
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105381
+ exact_id: string;
105382
+ exact_timestamp?: number | null;
105383
+ id?: string;
105384
+ invoice_exact_id: string;
105385
+ item_code?: string | null;
105386
+ item_exact_id?: string | null;
105387
+ line_number?: number | null;
105388
+ quantity?: number | null;
105389
+ raw?: import("../integrations/supabase/types").Json | null;
105390
+ unit_price?: number | null;
105391
+ updated_at?: string;
105392
+ vat_amount?: number | null;
105393
+ vat_code?: string | null;
105394
+ };
105395
+ Update: {
105396
+ account_key?: string;
105397
+ amount_excl?: number | null;
105398
+ created_at?: string;
105399
+ description?: string | null;
105400
+ discount?: number | null;
105401
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105402
+ exact_id?: string;
105403
+ exact_timestamp?: number | null;
105404
+ id?: string;
105405
+ invoice_exact_id?: string;
105406
+ item_code?: string | null;
105407
+ item_exact_id?: string | null;
105408
+ line_number?: number | null;
105409
+ quantity?: number | null;
105410
+ raw?: import("../integrations/supabase/types").Json | null;
105411
+ unit_price?: number | null;
105412
+ updated_at?: string;
105413
+ vat_amount?: number | null;
105414
+ vat_code?: string | null;
105415
+ };
105416
+ Relationships: [];
105417
+ };
105418
+ exact_auth_invoices: {
105419
+ Row: {
105420
+ account_key: string;
105421
+ amount_excl: number | null;
105422
+ amount_incl: number | null;
105423
+ amount_open: number | null;
105424
+ created_at: string;
105425
+ currency: string | null;
105426
+ customer_code: string | null;
105427
+ customer_exact_id: string | null;
105428
+ customer_name: string | null;
105429
+ description: string | null;
105430
+ division_code: number | null;
105431
+ due_date: string | null;
105432
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105433
+ exact_id: string;
105434
+ exact_modified: string | null;
105435
+ exact_timestamp: number | null;
105436
+ id: string;
105437
+ invoice_date: string | null;
105438
+ invoice_number: string | null;
105439
+ order_number: string | null;
105440
+ paid_at: string | null;
105441
+ payment_status: string;
105442
+ raw: import("../integrations/supabase/types").Json | null;
105443
+ receivable_synced_at: string | null;
105444
+ status_code: number | null;
105445
+ updated_at: string;
105446
+ };
105447
+ Insert: {
105448
+ account_key?: string;
105449
+ amount_excl?: number | null;
105450
+ amount_incl?: number | null;
105451
+ amount_open?: number | null;
105452
+ created_at?: string;
105453
+ currency?: string | null;
105454
+ customer_code?: string | null;
105455
+ customer_exact_id?: string | null;
105456
+ customer_name?: string | null;
105457
+ description?: string | null;
105458
+ division_code?: number | null;
105459
+ due_date?: string | null;
105460
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105461
+ exact_id: string;
105462
+ exact_modified?: string | null;
105463
+ exact_timestamp?: number | null;
105464
+ id?: string;
105465
+ invoice_date?: string | null;
105466
+ invoice_number?: string | null;
105467
+ order_number?: string | null;
105468
+ paid_at?: string | null;
105469
+ payment_status?: string;
105470
+ raw?: import("../integrations/supabase/types").Json | null;
105471
+ receivable_synced_at?: string | null;
105472
+ status_code?: number | null;
105473
+ updated_at?: string;
105474
+ };
105475
+ Update: {
105476
+ account_key?: string;
105477
+ amount_excl?: number | null;
105478
+ amount_incl?: number | null;
105479
+ amount_open?: number | null;
105480
+ created_at?: string;
105481
+ currency?: string | null;
105482
+ customer_code?: string | null;
105483
+ customer_exact_id?: string | null;
105484
+ customer_name?: string | null;
105485
+ description?: string | null;
105486
+ division_code?: number | null;
105487
+ due_date?: string | null;
105488
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105489
+ exact_id?: string;
105490
+ exact_modified?: string | null;
105491
+ exact_timestamp?: number | null;
105492
+ id?: string;
105493
+ invoice_date?: string | null;
105494
+ invoice_number?: string | null;
105495
+ order_number?: string | null;
105496
+ paid_at?: string | null;
105497
+ payment_status?: string;
105498
+ raw?: import("../integrations/supabase/types").Json | null;
105499
+ receivable_synced_at?: string | null;
105500
+ status_code?: number | null;
105501
+ updated_at?: string;
105502
+ };
105503
+ Relationships: [];
105504
+ };
105505
+ exact_auth_items: {
105506
+ Row: {
105507
+ account_key: string;
105508
+ barcode: string | null;
105509
+ code: string | null;
105510
+ cost_price: number | null;
105511
+ created_at: string;
105512
+ description: string | null;
105513
+ division_code: number | null;
105514
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105515
+ exact_id: string;
105516
+ exact_modified: string | null;
105517
+ exact_timestamp: number | null;
105518
+ gl_account_code: string | null;
105519
+ id: string;
105520
+ is_active: boolean;
105521
+ is_sales_item: boolean | null;
105522
+ item_type: string | null;
105523
+ raw: import("../integrations/supabase/types").Json | null;
105524
+ sales_price: number | null;
105525
+ unit: string | null;
105526
+ updated_at: string;
105527
+ vat_code: string | null;
105528
+ };
105529
+ Insert: {
105530
+ account_key?: string;
105531
+ barcode?: string | null;
105532
+ code?: string | null;
105533
+ cost_price?: number | null;
105534
+ created_at?: string;
105535
+ description?: string | null;
105536
+ division_code?: number | null;
105537
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105538
+ exact_id: string;
105539
+ exact_modified?: string | null;
105540
+ exact_timestamp?: number | null;
105541
+ gl_account_code?: string | null;
105542
+ id?: string;
105543
+ is_active?: boolean;
105544
+ is_sales_item?: boolean | null;
105545
+ item_type?: string | null;
105546
+ raw?: import("../integrations/supabase/types").Json | null;
105547
+ sales_price?: number | null;
105548
+ unit?: string | null;
105549
+ updated_at?: string;
105550
+ vat_code?: string | null;
105551
+ };
105552
+ Update: {
105553
+ account_key?: string;
105554
+ barcode?: string | null;
105555
+ code?: string | null;
105556
+ cost_price?: number | null;
105557
+ created_at?: string;
105558
+ description?: string | null;
105559
+ division_code?: number | null;
105560
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105561
+ exact_id?: string;
105562
+ exact_modified?: string | null;
105563
+ exact_timestamp?: number | null;
105564
+ gl_account_code?: string | null;
105565
+ id?: string;
105566
+ is_active?: boolean;
105567
+ is_sales_item?: boolean | null;
105568
+ item_type?: string | null;
105569
+ raw?: import("../integrations/supabase/types").Json | null;
105570
+ sales_price?: number | null;
105571
+ unit?: string | null;
105572
+ updated_at?: string;
105573
+ vat_code?: string | null;
105574
+ };
105575
+ Relationships: [];
105576
+ };
105577
+ exact_auth_sync_log: {
105578
+ Row: {
105579
+ account_key: string;
105580
+ calls_used: number;
105581
+ created_at: string;
105582
+ domain: string;
105583
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105584
+ error: string | null;
105585
+ finished_at: string | null;
105586
+ id: string;
105587
+ ok: boolean;
105588
+ records: number;
105589
+ started_at: string;
105590
+ };
105591
+ Insert: {
105592
+ account_key?: string;
105593
+ calls_used?: number;
105594
+ created_at?: string;
105595
+ domain: string;
105596
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105597
+ error?: string | null;
105598
+ finished_at?: string | null;
105599
+ id?: string;
105600
+ ok?: boolean;
105601
+ records?: number;
105602
+ started_at?: string;
105603
+ };
105604
+ Update: {
105605
+ account_key?: string;
105606
+ calls_used?: number;
105607
+ created_at?: string;
105608
+ domain?: string;
105609
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105610
+ error?: string | null;
105611
+ finished_at?: string | null;
105612
+ id?: string;
105613
+ ok?: boolean;
105614
+ records?: number;
105615
+ started_at?: string;
105616
+ };
105617
+ Relationships: [];
105618
+ };
105619
+ exact_auth_sync_state: {
105620
+ Row: {
105621
+ account_key: string;
105622
+ created_at: string;
105623
+ cursor_timestamp: number;
105624
+ division_code: number | null;
105625
+ domain: string;
105626
+ duration_ms: number | null;
105627
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105628
+ initial_sync_done: boolean;
105629
+ last_error: string | null;
105630
+ last_run_at: string | null;
105631
+ last_success_at: string | null;
105632
+ locked_at: string | null;
105633
+ needs_initial_sync: boolean;
105634
+ record_count: number;
105635
+ updated_at: string;
105636
+ };
105637
+ Insert: {
105638
+ account_key?: string;
105639
+ created_at?: string;
105640
+ cursor_timestamp?: number;
105641
+ division_code?: number | null;
105642
+ domain: string;
105643
+ duration_ms?: number | null;
105644
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105645
+ initial_sync_done?: boolean;
105646
+ last_error?: string | null;
105647
+ last_run_at?: string | null;
105648
+ last_success_at?: string | null;
105649
+ locked_at?: string | null;
105650
+ needs_initial_sync?: boolean;
105651
+ record_count?: number;
105652
+ updated_at?: string;
105653
+ };
105654
+ Update: {
105655
+ account_key?: string;
105656
+ created_at?: string;
105657
+ cursor_timestamp?: number;
105658
+ division_code?: number | null;
105659
+ domain?: string;
105660
+ duration_ms?: number | null;
105661
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105662
+ initial_sync_done?: boolean;
105663
+ last_error?: string | null;
105664
+ last_run_at?: string | null;
105665
+ last_success_at?: string | null;
105666
+ locked_at?: string | null;
105667
+ needs_initial_sync?: boolean;
105668
+ record_count?: number;
105669
+ updated_at?: string;
105670
+ };
105671
+ Relationships: [];
105672
+ };
102755
105673
  exact_bulk_operation_items: {
102756
105674
  Row: {
102757
105675
  attempts: number;
@@ -109252,6 +112170,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
109252
112170
  };
109253
112171
  offer_settings: {
109254
112172
  Row: {
112173
+ brand_name: string | null;
109255
112174
  button_color: string;
109256
112175
  created_at: string;
109257
112176
  default_countries: string[];
@@ -109273,6 +112192,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
109273
112192
  updated_at: string;
109274
112193
  };
109275
112194
  Insert: {
112195
+ brand_name?: string | null;
109276
112196
  button_color?: string;
109277
112197
  created_at?: string;
109278
112198
  default_countries?: string[];
@@ -109294,6 +112214,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
109294
112214
  updated_at?: string;
109295
112215
  };
109296
112216
  Update: {
112217
+ brand_name?: string | null;
109297
112218
  button_color?: string;
109298
112219
  created_at?: string;
109299
112220
  default_countries?: string[];
@@ -117144,6 +120065,21 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
117144
120065
  Args: never;
117145
120066
  Returns: string;
117146
120067
  };
120068
+ exact_auth_consume_calls: {
120069
+ Args: {
120070
+ _account_key: string;
120071
+ _calls?: number;
120072
+ _day_limit?: number;
120073
+ _division_code: number;
120074
+ _environment: string;
120075
+ _minute_limit?: number;
120076
+ };
120077
+ Returns: import("../integrations/supabase/types").Json;
120078
+ };
120079
+ exact_auth_prune_sync_log: {
120080
+ Args: never;
120081
+ Returns: undefined;
120082
+ };
117147
120083
  exact_decrypt: {
117148
120084
  Args: {
117149
120085
  cipher: string;
@@ -117353,6 +120289,10 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
117353
120289
  };
117354
120290
  Returns: number;
117355
120291
  };
120292
+ get_offer_branding: {
120293
+ Args: never;
120294
+ Returns: import("../integrations/supabase/types").Json;
120295
+ };
117356
120296
  get_offer_by_link_code: {
117357
120297
  Args: {
117358
120298
  p_code: string;
@@ -122568,6 +125508,474 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
122568
125508
  referencedColumns: ["id"];
122569
125509
  }];
122570
125510
  };
125511
+ exact_auth_call_budget: {
125512
+ Row: {
125513
+ account_key: string;
125514
+ day_count: number;
125515
+ day_date: string;
125516
+ division_code: number;
125517
+ environment: string;
125518
+ minute_count: number;
125519
+ minute_window: string;
125520
+ updated_at: string;
125521
+ };
125522
+ Insert: {
125523
+ account_key?: string;
125524
+ day_count?: number;
125525
+ day_date?: string;
125526
+ division_code?: number;
125527
+ environment: string;
125528
+ minute_count?: number;
125529
+ minute_window?: string;
125530
+ updated_at?: string;
125531
+ };
125532
+ Update: {
125533
+ account_key?: string;
125534
+ day_count?: number;
125535
+ day_date?: string;
125536
+ division_code?: number;
125537
+ environment?: string;
125538
+ minute_count?: number;
125539
+ minute_window?: string;
125540
+ updated_at?: string;
125541
+ };
125542
+ Relationships: [];
125543
+ };
125544
+ exact_auth_customers: {
125545
+ Row: {
125546
+ account_key: string;
125547
+ address_line1: string | null;
125548
+ chamber_of_commerce: string | null;
125549
+ city: string | null;
125550
+ code: string | null;
125551
+ country: string | null;
125552
+ created_at: string;
125553
+ currency: string | null;
125554
+ division_code: number | null;
125555
+ email: string | null;
125556
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125557
+ exact_id: string;
125558
+ exact_modified: string | null;
125559
+ exact_timestamp: number | null;
125560
+ id: string;
125561
+ is_active: boolean;
125562
+ name: string | null;
125563
+ phone: string | null;
125564
+ postcode: string | null;
125565
+ raw: import("../integrations/supabase/types").Json | null;
125566
+ status: string | null;
125567
+ updated_at: string;
125568
+ vat_number: string | null;
125569
+ website: string | null;
125570
+ };
125571
+ Insert: {
125572
+ account_key?: string;
125573
+ address_line1?: string | null;
125574
+ chamber_of_commerce?: string | null;
125575
+ city?: string | null;
125576
+ code?: string | null;
125577
+ country?: string | null;
125578
+ created_at?: string;
125579
+ currency?: string | null;
125580
+ division_code?: number | null;
125581
+ email?: string | null;
125582
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125583
+ exact_id: string;
125584
+ exact_modified?: string | null;
125585
+ exact_timestamp?: number | null;
125586
+ id?: string;
125587
+ is_active?: boolean;
125588
+ name?: string | null;
125589
+ phone?: string | null;
125590
+ postcode?: string | null;
125591
+ raw?: import("../integrations/supabase/types").Json | null;
125592
+ status?: string | null;
125593
+ updated_at?: string;
125594
+ vat_number?: string | null;
125595
+ website?: string | null;
125596
+ };
125597
+ Update: {
125598
+ account_key?: string;
125599
+ address_line1?: string | null;
125600
+ chamber_of_commerce?: string | null;
125601
+ city?: string | null;
125602
+ code?: string | null;
125603
+ country?: string | null;
125604
+ created_at?: string;
125605
+ currency?: string | null;
125606
+ division_code?: number | null;
125607
+ email?: string | null;
125608
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125609
+ exact_id?: string;
125610
+ exact_modified?: string | null;
125611
+ exact_timestamp?: number | null;
125612
+ id?: string;
125613
+ is_active?: boolean;
125614
+ name?: string | null;
125615
+ phone?: string | null;
125616
+ postcode?: string | null;
125617
+ raw?: import("../integrations/supabase/types").Json | null;
125618
+ status?: string | null;
125619
+ updated_at?: string;
125620
+ vat_number?: string | null;
125621
+ website?: string | null;
125622
+ };
125623
+ Relationships: [];
125624
+ };
125625
+ exact_auth_divisions: {
125626
+ Row: {
125627
+ account_key: string;
125628
+ company_name: string | null;
125629
+ created_at: string;
125630
+ division_code: number | null;
125631
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125632
+ id: string;
125633
+ last_synced_at: string | null;
125634
+ updated_at: string;
125635
+ };
125636
+ Insert: {
125637
+ account_key?: string;
125638
+ company_name?: string | null;
125639
+ created_at?: string;
125640
+ division_code?: number | null;
125641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125642
+ id?: string;
125643
+ last_synced_at?: string | null;
125644
+ updated_at?: string;
125645
+ };
125646
+ Update: {
125647
+ account_key?: string;
125648
+ company_name?: string | null;
125649
+ created_at?: string;
125650
+ division_code?: number | null;
125651
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125652
+ id?: string;
125653
+ last_synced_at?: string | null;
125654
+ updated_at?: string;
125655
+ };
125656
+ Relationships: [];
125657
+ };
125658
+ exact_auth_invoice_lines: {
125659
+ Row: {
125660
+ account_key: string;
125661
+ amount_excl: number | null;
125662
+ created_at: string;
125663
+ description: string | null;
125664
+ discount: number | null;
125665
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125666
+ exact_id: string;
125667
+ exact_timestamp: number | null;
125668
+ id: string;
125669
+ invoice_exact_id: string;
125670
+ item_code: string | null;
125671
+ item_exact_id: string | null;
125672
+ line_number: number | null;
125673
+ quantity: number | null;
125674
+ raw: import("../integrations/supabase/types").Json | null;
125675
+ unit_price: number | null;
125676
+ updated_at: string;
125677
+ vat_amount: number | null;
125678
+ vat_code: string | null;
125679
+ };
125680
+ Insert: {
125681
+ account_key?: string;
125682
+ amount_excl?: number | null;
125683
+ created_at?: string;
125684
+ description?: string | null;
125685
+ discount?: number | null;
125686
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125687
+ exact_id: string;
125688
+ exact_timestamp?: number | null;
125689
+ id?: string;
125690
+ invoice_exact_id: string;
125691
+ item_code?: string | null;
125692
+ item_exact_id?: string | null;
125693
+ line_number?: number | null;
125694
+ quantity?: number | null;
125695
+ raw?: import("../integrations/supabase/types").Json | null;
125696
+ unit_price?: number | null;
125697
+ updated_at?: string;
125698
+ vat_amount?: number | null;
125699
+ vat_code?: string | null;
125700
+ };
125701
+ Update: {
125702
+ account_key?: string;
125703
+ amount_excl?: number | null;
125704
+ created_at?: string;
125705
+ description?: string | null;
125706
+ discount?: number | null;
125707
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125708
+ exact_id?: string;
125709
+ exact_timestamp?: number | null;
125710
+ id?: string;
125711
+ invoice_exact_id?: string;
125712
+ item_code?: string | null;
125713
+ item_exact_id?: string | null;
125714
+ line_number?: number | null;
125715
+ quantity?: number | null;
125716
+ raw?: import("../integrations/supabase/types").Json | null;
125717
+ unit_price?: number | null;
125718
+ updated_at?: string;
125719
+ vat_amount?: number | null;
125720
+ vat_code?: string | null;
125721
+ };
125722
+ Relationships: [];
125723
+ };
125724
+ exact_auth_invoices: {
125725
+ Row: {
125726
+ account_key: string;
125727
+ amount_excl: number | null;
125728
+ amount_incl: number | null;
125729
+ amount_open: number | null;
125730
+ created_at: string;
125731
+ currency: string | null;
125732
+ customer_code: string | null;
125733
+ customer_exact_id: string | null;
125734
+ customer_name: string | null;
125735
+ description: string | null;
125736
+ division_code: number | null;
125737
+ due_date: string | null;
125738
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125739
+ exact_id: string;
125740
+ exact_modified: string | null;
125741
+ exact_timestamp: number | null;
125742
+ id: string;
125743
+ invoice_date: string | null;
125744
+ invoice_number: string | null;
125745
+ order_number: string | null;
125746
+ paid_at: string | null;
125747
+ payment_status: string;
125748
+ raw: import("../integrations/supabase/types").Json | null;
125749
+ receivable_synced_at: string | null;
125750
+ status_code: number | null;
125751
+ updated_at: string;
125752
+ };
125753
+ Insert: {
125754
+ account_key?: string;
125755
+ amount_excl?: number | null;
125756
+ amount_incl?: number | null;
125757
+ amount_open?: number | null;
125758
+ created_at?: string;
125759
+ currency?: string | null;
125760
+ customer_code?: string | null;
125761
+ customer_exact_id?: string | null;
125762
+ customer_name?: string | null;
125763
+ description?: string | null;
125764
+ division_code?: number | null;
125765
+ due_date?: string | null;
125766
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125767
+ exact_id: string;
125768
+ exact_modified?: string | null;
125769
+ exact_timestamp?: number | null;
125770
+ id?: string;
125771
+ invoice_date?: string | null;
125772
+ invoice_number?: string | null;
125773
+ order_number?: string | null;
125774
+ paid_at?: string | null;
125775
+ payment_status?: string;
125776
+ raw?: import("../integrations/supabase/types").Json | null;
125777
+ receivable_synced_at?: string | null;
125778
+ status_code?: number | null;
125779
+ updated_at?: string;
125780
+ };
125781
+ Update: {
125782
+ account_key?: string;
125783
+ amount_excl?: number | null;
125784
+ amount_incl?: number | null;
125785
+ amount_open?: number | null;
125786
+ created_at?: string;
125787
+ currency?: string | null;
125788
+ customer_code?: string | null;
125789
+ customer_exact_id?: string | null;
125790
+ customer_name?: string | null;
125791
+ description?: string | null;
125792
+ division_code?: number | null;
125793
+ due_date?: string | null;
125794
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125795
+ exact_id?: string;
125796
+ exact_modified?: string | null;
125797
+ exact_timestamp?: number | null;
125798
+ id?: string;
125799
+ invoice_date?: string | null;
125800
+ invoice_number?: string | null;
125801
+ order_number?: string | null;
125802
+ paid_at?: string | null;
125803
+ payment_status?: string;
125804
+ raw?: import("../integrations/supabase/types").Json | null;
125805
+ receivable_synced_at?: string | null;
125806
+ status_code?: number | null;
125807
+ updated_at?: string;
125808
+ };
125809
+ Relationships: [];
125810
+ };
125811
+ exact_auth_items: {
125812
+ Row: {
125813
+ account_key: string;
125814
+ barcode: string | null;
125815
+ code: string | null;
125816
+ cost_price: number | null;
125817
+ created_at: string;
125818
+ description: string | null;
125819
+ division_code: number | null;
125820
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125821
+ exact_id: string;
125822
+ exact_modified: string | null;
125823
+ exact_timestamp: number | null;
125824
+ gl_account_code: string | null;
125825
+ id: string;
125826
+ is_active: boolean;
125827
+ is_sales_item: boolean | null;
125828
+ item_type: string | null;
125829
+ raw: import("../integrations/supabase/types").Json | null;
125830
+ sales_price: number | null;
125831
+ unit: string | null;
125832
+ updated_at: string;
125833
+ vat_code: string | null;
125834
+ };
125835
+ Insert: {
125836
+ account_key?: string;
125837
+ barcode?: string | null;
125838
+ code?: string | null;
125839
+ cost_price?: number | null;
125840
+ created_at?: string;
125841
+ description?: string | null;
125842
+ division_code?: number | null;
125843
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125844
+ exact_id: string;
125845
+ exact_modified?: string | null;
125846
+ exact_timestamp?: number | null;
125847
+ gl_account_code?: string | null;
125848
+ id?: string;
125849
+ is_active?: boolean;
125850
+ is_sales_item?: boolean | null;
125851
+ item_type?: string | null;
125852
+ raw?: import("../integrations/supabase/types").Json | null;
125853
+ sales_price?: number | null;
125854
+ unit?: string | null;
125855
+ updated_at?: string;
125856
+ vat_code?: string | null;
125857
+ };
125858
+ Update: {
125859
+ account_key?: string;
125860
+ barcode?: string | null;
125861
+ code?: string | null;
125862
+ cost_price?: number | null;
125863
+ created_at?: string;
125864
+ description?: string | null;
125865
+ division_code?: number | null;
125866
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125867
+ exact_id?: string;
125868
+ exact_modified?: string | null;
125869
+ exact_timestamp?: number | null;
125870
+ gl_account_code?: string | null;
125871
+ id?: string;
125872
+ is_active?: boolean;
125873
+ is_sales_item?: boolean | null;
125874
+ item_type?: string | null;
125875
+ raw?: import("../integrations/supabase/types").Json | null;
125876
+ sales_price?: number | null;
125877
+ unit?: string | null;
125878
+ updated_at?: string;
125879
+ vat_code?: string | null;
125880
+ };
125881
+ Relationships: [];
125882
+ };
125883
+ exact_auth_sync_log: {
125884
+ Row: {
125885
+ account_key: string;
125886
+ calls_used: number;
125887
+ created_at: string;
125888
+ domain: string;
125889
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125890
+ error: string | null;
125891
+ finished_at: string | null;
125892
+ id: string;
125893
+ ok: boolean;
125894
+ records: number;
125895
+ started_at: string;
125896
+ };
125897
+ Insert: {
125898
+ account_key?: string;
125899
+ calls_used?: number;
125900
+ created_at?: string;
125901
+ domain: string;
125902
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125903
+ error?: string | null;
125904
+ finished_at?: string | null;
125905
+ id?: string;
125906
+ ok?: boolean;
125907
+ records?: number;
125908
+ started_at?: string;
125909
+ };
125910
+ Update: {
125911
+ account_key?: string;
125912
+ calls_used?: number;
125913
+ created_at?: string;
125914
+ domain?: string;
125915
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125916
+ error?: string | null;
125917
+ finished_at?: string | null;
125918
+ id?: string;
125919
+ ok?: boolean;
125920
+ records?: number;
125921
+ started_at?: string;
125922
+ };
125923
+ Relationships: [];
125924
+ };
125925
+ exact_auth_sync_state: {
125926
+ Row: {
125927
+ account_key: string;
125928
+ created_at: string;
125929
+ cursor_timestamp: number;
125930
+ division_code: number | null;
125931
+ domain: string;
125932
+ duration_ms: number | null;
125933
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125934
+ initial_sync_done: boolean;
125935
+ last_error: string | null;
125936
+ last_run_at: string | null;
125937
+ last_success_at: string | null;
125938
+ locked_at: string | null;
125939
+ needs_initial_sync: boolean;
125940
+ record_count: number;
125941
+ updated_at: string;
125942
+ };
125943
+ Insert: {
125944
+ account_key?: string;
125945
+ created_at?: string;
125946
+ cursor_timestamp?: number;
125947
+ division_code?: number | null;
125948
+ domain: string;
125949
+ duration_ms?: number | null;
125950
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125951
+ initial_sync_done?: boolean;
125952
+ last_error?: string | null;
125953
+ last_run_at?: string | null;
125954
+ last_success_at?: string | null;
125955
+ locked_at?: string | null;
125956
+ needs_initial_sync?: boolean;
125957
+ record_count?: number;
125958
+ updated_at?: string;
125959
+ };
125960
+ Update: {
125961
+ account_key?: string;
125962
+ created_at?: string;
125963
+ cursor_timestamp?: number;
125964
+ division_code?: number | null;
125965
+ domain?: string;
125966
+ duration_ms?: number | null;
125967
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125968
+ initial_sync_done?: boolean;
125969
+ last_error?: string | null;
125970
+ last_run_at?: string | null;
125971
+ last_success_at?: string | null;
125972
+ locked_at?: string | null;
125973
+ needs_initial_sync?: boolean;
125974
+ record_count?: number;
125975
+ updated_at?: string;
125976
+ };
125977
+ Relationships: [];
125978
+ };
122571
125979
  exact_bulk_operation_items: {
122572
125980
  Row: {
122573
125981
  attempts: number;
@@ -129068,6 +132476,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
129068
132476
  };
129069
132477
  offer_settings: {
129070
132478
  Row: {
132479
+ brand_name: string | null;
129071
132480
  button_color: string;
129072
132481
  created_at: string;
129073
132482
  default_countries: string[];
@@ -129089,6 +132498,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
129089
132498
  updated_at: string;
129090
132499
  };
129091
132500
  Insert: {
132501
+ brand_name?: string | null;
129092
132502
  button_color?: string;
129093
132503
  created_at?: string;
129094
132504
  default_countries?: string[];
@@ -129110,6 +132520,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
129110
132520
  updated_at?: string;
129111
132521
  };
129112
132522
  Update: {
132523
+ brand_name?: string | null;
129113
132524
  button_color?: string;
129114
132525
  created_at?: string;
129115
132526
  default_countries?: string[];
@@ -136960,6 +140371,21 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
136960
140371
  Args: never;
136961
140372
  Returns: string;
136962
140373
  };
140374
+ exact_auth_consume_calls: {
140375
+ Args: {
140376
+ _account_key: string;
140377
+ _calls?: number;
140378
+ _day_limit?: number;
140379
+ _division_code: number;
140380
+ _environment: string;
140381
+ _minute_limit?: number;
140382
+ };
140383
+ Returns: import("../integrations/supabase/types").Json;
140384
+ };
140385
+ exact_auth_prune_sync_log: {
140386
+ Args: never;
140387
+ Returns: undefined;
140388
+ };
136963
140389
  exact_decrypt: {
136964
140390
  Args: {
136965
140391
  cipher: string;
@@ -137169,6 +140595,10 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
137169
140595
  };
137170
140596
  Returns: number;
137171
140597
  };
140598
+ get_offer_branding: {
140599
+ Args: never;
140600
+ Returns: import("../integrations/supabase/types").Json;
140601
+ };
137172
140602
  get_offer_by_link_code: {
137173
140603
  Args: {
137174
140604
  p_code: string;