@flowselections/floriday-klanten-module 1.0.28 → 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 (86) 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 +9 -5
  4. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/DeliveryLocationsTab.js +2 -1
  6. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  7. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -2
  8. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
  9. package/dist-lib/components/klanten/ImportKlanten.js +2 -1
  10. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts +12 -0
  11. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts.map +1 -0
  12. package/dist-lib/components/klanten/KlantBewerkenDialog.js +27 -0
  13. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  14. package/dist-lib/components/klanten/KlantDetail.js +5 -3
  15. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  16. package/dist-lib/components/klanten/KlantenOverzicht.js +102 -16
  17. package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts.map +1 -1
  18. package/dist-lib/components/klanten/LocalDiscountFormDialog.js +2 -1
  19. package/dist-lib/components/klanten/LocalDiscountsTab.d.ts.map +1 -1
  20. package/dist-lib/components/klanten/LocalDiscountsTab.js +2 -1
  21. package/dist-lib/components/klanten/LogisticsStrategyCard.d.ts.map +1 -1
  22. package/dist-lib/components/klanten/LogisticsStrategyCard.js +2 -1
  23. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  24. package/dist-lib/components/klanten/NieuweKlant.js +2 -1
  25. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts +7 -1
  26. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
  27. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +16 -8
  28. package/dist-lib/components/klanten/RouteError.d.ts +6 -0
  29. package/dist-lib/components/klanten/RouteError.d.ts.map +1 -0
  30. package/dist-lib/components/klanten/RouteError.js +13 -0
  31. package/dist-lib/index.d.ts +1 -0
  32. package/dist-lib/index.d.ts.map +1 -1
  33. package/dist-lib/index.js +1 -0
  34. package/dist-lib/integrations/supabase/auth-middleware.d.ts +490 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.d.ts +490 -0
  37. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  38. package/dist-lib/integrations/supabase/client.server.d.ts +490 -0
  39. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  40. package/dist-lib/integrations/supabase/types.d.ts +490 -0
  41. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  42. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1470 -0
  43. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/accounting.functions.d.ts +1470 -0
  45. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/customer-analytics.functions.d.ts +490 -0
  47. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/customer-notes.functions.d.ts +980 -0
  49. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/customer-revenue.functions.d.ts +20327 -0
  51. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -0
  52. package/dist-lib/lib/customer-revenue.functions.js +124 -0
  53. package/dist-lib/lib/customers.functions.d.ts +4410 -0
  54. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/customers.functions.js +39 -35
  56. package/dist-lib/lib/delivery-locations.functions.d.ts +1960 -0
  57. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/errors.d.ts +7 -0
  59. package/dist-lib/lib/errors.d.ts.map +1 -0
  60. package/dist-lib/lib/errors.js +36 -0
  61. package/dist-lib/lib/external-customers.functions.d.ts +1961 -1
  62. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/external-customers.functions.js +28 -12
  64. package/dist-lib/lib/floriday-assortment.functions.d.ts +490 -0
  65. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-discounts.functions.d.ts +980 -0
  67. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-trade-items.functions.d.ts +490 -0
  69. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/local-discounts.functions.d.ts +3430 -0
  71. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/logistics-events.functions.d.ts +490 -0
  73. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/logistics-strategy.functions.d.ts +1960 -0
  75. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/overdue-invoices.functions.d.ts +490 -0
  77. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/price-groups-local.functions.d.ts +3430 -0
  79. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/price-groups.functions.d.ts +490 -0
  81. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/twinfield-adopt.functions.d.ts +980 -0
  83. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/twinfield-ledger.functions.d.ts +490 -0
  85. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  86. package/package.json +2 -2
@@ -3546,6 +3546,474 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
3546
3546
  referencedColumns: ["id"];
3547
3547
  }];
3548
3548
  };
3549
+ exact_auth_call_budget: {
3550
+ Row: {
3551
+ account_key: string;
3552
+ day_count: number;
3553
+ day_date: string;
3554
+ division_code: number;
3555
+ environment: string;
3556
+ minute_count: number;
3557
+ minute_window: string;
3558
+ updated_at: string;
3559
+ };
3560
+ Insert: {
3561
+ account_key?: string;
3562
+ day_count?: number;
3563
+ day_date?: string;
3564
+ division_code?: number;
3565
+ environment: string;
3566
+ minute_count?: number;
3567
+ minute_window?: string;
3568
+ updated_at?: string;
3569
+ };
3570
+ Update: {
3571
+ account_key?: string;
3572
+ day_count?: number;
3573
+ day_date?: string;
3574
+ division_code?: number;
3575
+ environment?: string;
3576
+ minute_count?: number;
3577
+ minute_window?: string;
3578
+ updated_at?: string;
3579
+ };
3580
+ Relationships: [];
3581
+ };
3582
+ exact_auth_customers: {
3583
+ Row: {
3584
+ account_key: string;
3585
+ address_line1: string | null;
3586
+ chamber_of_commerce: string | null;
3587
+ city: string | null;
3588
+ code: string | null;
3589
+ country: string | null;
3590
+ created_at: string;
3591
+ currency: string | null;
3592
+ division_code: number | null;
3593
+ email: string | null;
3594
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3595
+ exact_id: string;
3596
+ exact_modified: string | null;
3597
+ exact_timestamp: number | null;
3598
+ id: string;
3599
+ is_active: boolean;
3600
+ name: string | null;
3601
+ phone: string | null;
3602
+ postcode: string | null;
3603
+ raw: import("../integrations/supabase/types").Json | null;
3604
+ status: string | null;
3605
+ updated_at: string;
3606
+ vat_number: string | null;
3607
+ website: string | null;
3608
+ };
3609
+ Insert: {
3610
+ account_key?: string;
3611
+ address_line1?: string | null;
3612
+ chamber_of_commerce?: string | null;
3613
+ city?: string | null;
3614
+ code?: string | null;
3615
+ country?: string | null;
3616
+ created_at?: string;
3617
+ currency?: string | null;
3618
+ division_code?: number | null;
3619
+ email?: string | null;
3620
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3621
+ exact_id: string;
3622
+ exact_modified?: string | null;
3623
+ exact_timestamp?: number | null;
3624
+ id?: string;
3625
+ is_active?: boolean;
3626
+ name?: string | null;
3627
+ phone?: string | null;
3628
+ postcode?: string | null;
3629
+ raw?: import("../integrations/supabase/types").Json | null;
3630
+ status?: string | null;
3631
+ updated_at?: string;
3632
+ vat_number?: string | null;
3633
+ website?: string | null;
3634
+ };
3635
+ Update: {
3636
+ account_key?: string;
3637
+ address_line1?: string | null;
3638
+ chamber_of_commerce?: string | null;
3639
+ city?: string | null;
3640
+ code?: string | null;
3641
+ country?: string | null;
3642
+ created_at?: string;
3643
+ currency?: string | null;
3644
+ division_code?: number | null;
3645
+ email?: string | null;
3646
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3647
+ exact_id?: string;
3648
+ exact_modified?: string | null;
3649
+ exact_timestamp?: number | null;
3650
+ id?: string;
3651
+ is_active?: boolean;
3652
+ name?: string | null;
3653
+ phone?: string | null;
3654
+ postcode?: string | null;
3655
+ raw?: import("../integrations/supabase/types").Json | null;
3656
+ status?: string | null;
3657
+ updated_at?: string;
3658
+ vat_number?: string | null;
3659
+ website?: string | null;
3660
+ };
3661
+ Relationships: [];
3662
+ };
3663
+ exact_auth_divisions: {
3664
+ Row: {
3665
+ account_key: string;
3666
+ company_name: string | null;
3667
+ created_at: string;
3668
+ division_code: number | null;
3669
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3670
+ id: string;
3671
+ last_synced_at: string | null;
3672
+ updated_at: string;
3673
+ };
3674
+ Insert: {
3675
+ account_key?: string;
3676
+ company_name?: string | null;
3677
+ created_at?: string;
3678
+ division_code?: number | null;
3679
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3680
+ id?: string;
3681
+ last_synced_at?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Update: {
3685
+ account_key?: string;
3686
+ company_name?: string | null;
3687
+ created_at?: string;
3688
+ division_code?: number | null;
3689
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3690
+ id?: string;
3691
+ last_synced_at?: string | null;
3692
+ updated_at?: string;
3693
+ };
3694
+ Relationships: [];
3695
+ };
3696
+ exact_auth_invoice_lines: {
3697
+ Row: {
3698
+ account_key: string;
3699
+ amount_excl: number | null;
3700
+ created_at: string;
3701
+ description: string | null;
3702
+ discount: number | null;
3703
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3704
+ exact_id: string;
3705
+ exact_timestamp: number | null;
3706
+ id: string;
3707
+ invoice_exact_id: string;
3708
+ item_code: string | null;
3709
+ item_exact_id: string | null;
3710
+ line_number: number | null;
3711
+ quantity: number | null;
3712
+ raw: import("../integrations/supabase/types").Json | null;
3713
+ unit_price: number | null;
3714
+ updated_at: string;
3715
+ vat_amount: number | null;
3716
+ vat_code: string | null;
3717
+ };
3718
+ Insert: {
3719
+ account_key?: string;
3720
+ amount_excl?: number | null;
3721
+ created_at?: string;
3722
+ description?: string | null;
3723
+ discount?: number | null;
3724
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3725
+ exact_id: string;
3726
+ exact_timestamp?: number | null;
3727
+ id?: string;
3728
+ invoice_exact_id: string;
3729
+ item_code?: string | null;
3730
+ item_exact_id?: string | null;
3731
+ line_number?: number | null;
3732
+ quantity?: number | null;
3733
+ raw?: import("../integrations/supabase/types").Json | null;
3734
+ unit_price?: number | null;
3735
+ updated_at?: string;
3736
+ vat_amount?: number | null;
3737
+ vat_code?: string | null;
3738
+ };
3739
+ Update: {
3740
+ account_key?: string;
3741
+ amount_excl?: number | null;
3742
+ created_at?: string;
3743
+ description?: string | null;
3744
+ discount?: number | null;
3745
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3746
+ exact_id?: string;
3747
+ exact_timestamp?: number | null;
3748
+ id?: string;
3749
+ invoice_exact_id?: string;
3750
+ item_code?: string | null;
3751
+ item_exact_id?: string | null;
3752
+ line_number?: number | null;
3753
+ quantity?: number | null;
3754
+ raw?: import("../integrations/supabase/types").Json | null;
3755
+ unit_price?: number | null;
3756
+ updated_at?: string;
3757
+ vat_amount?: number | null;
3758
+ vat_code?: string | null;
3759
+ };
3760
+ Relationships: [];
3761
+ };
3762
+ exact_auth_invoices: {
3763
+ Row: {
3764
+ account_key: string;
3765
+ amount_excl: number | null;
3766
+ amount_incl: number | null;
3767
+ amount_open: number | null;
3768
+ created_at: string;
3769
+ currency: string | null;
3770
+ customer_code: string | null;
3771
+ customer_exact_id: string | null;
3772
+ customer_name: string | null;
3773
+ description: string | null;
3774
+ division_code: number | null;
3775
+ due_date: string | null;
3776
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3777
+ exact_id: string;
3778
+ exact_modified: string | null;
3779
+ exact_timestamp: number | null;
3780
+ id: string;
3781
+ invoice_date: string | null;
3782
+ invoice_number: string | null;
3783
+ order_number: string | null;
3784
+ paid_at: string | null;
3785
+ payment_status: string;
3786
+ raw: import("../integrations/supabase/types").Json | null;
3787
+ receivable_synced_at: string | null;
3788
+ status_code: number | null;
3789
+ updated_at: string;
3790
+ };
3791
+ Insert: {
3792
+ account_key?: string;
3793
+ amount_excl?: number | null;
3794
+ amount_incl?: number | null;
3795
+ amount_open?: number | null;
3796
+ created_at?: string;
3797
+ currency?: string | null;
3798
+ customer_code?: string | null;
3799
+ customer_exact_id?: string | null;
3800
+ customer_name?: string | null;
3801
+ description?: string | null;
3802
+ division_code?: number | null;
3803
+ due_date?: string | null;
3804
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3805
+ exact_id: string;
3806
+ exact_modified?: string | null;
3807
+ exact_timestamp?: number | null;
3808
+ id?: string;
3809
+ invoice_date?: string | null;
3810
+ invoice_number?: string | null;
3811
+ order_number?: string | null;
3812
+ paid_at?: string | null;
3813
+ payment_status?: string;
3814
+ raw?: import("../integrations/supabase/types").Json | null;
3815
+ receivable_synced_at?: string | null;
3816
+ status_code?: number | null;
3817
+ updated_at?: string;
3818
+ };
3819
+ Update: {
3820
+ account_key?: string;
3821
+ amount_excl?: number | null;
3822
+ amount_incl?: number | null;
3823
+ amount_open?: number | null;
3824
+ created_at?: string;
3825
+ currency?: string | null;
3826
+ customer_code?: string | null;
3827
+ customer_exact_id?: string | null;
3828
+ customer_name?: string | null;
3829
+ description?: string | null;
3830
+ division_code?: number | null;
3831
+ due_date?: string | null;
3832
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3833
+ exact_id?: string;
3834
+ exact_modified?: string | null;
3835
+ exact_timestamp?: number | null;
3836
+ id?: string;
3837
+ invoice_date?: string | null;
3838
+ invoice_number?: string | null;
3839
+ order_number?: string | null;
3840
+ paid_at?: string | null;
3841
+ payment_status?: string;
3842
+ raw?: import("../integrations/supabase/types").Json | null;
3843
+ receivable_synced_at?: string | null;
3844
+ status_code?: number | null;
3845
+ updated_at?: string;
3846
+ };
3847
+ Relationships: [];
3848
+ };
3849
+ exact_auth_items: {
3850
+ Row: {
3851
+ account_key: string;
3852
+ barcode: string | null;
3853
+ code: string | null;
3854
+ cost_price: number | null;
3855
+ created_at: string;
3856
+ description: string | null;
3857
+ division_code: number | null;
3858
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3859
+ exact_id: string;
3860
+ exact_modified: string | null;
3861
+ exact_timestamp: number | null;
3862
+ gl_account_code: string | null;
3863
+ id: string;
3864
+ is_active: boolean;
3865
+ is_sales_item: boolean | null;
3866
+ item_type: string | null;
3867
+ raw: import("../integrations/supabase/types").Json | null;
3868
+ sales_price: number | null;
3869
+ unit: string | null;
3870
+ updated_at: string;
3871
+ vat_code: string | null;
3872
+ };
3873
+ Insert: {
3874
+ account_key?: string;
3875
+ barcode?: string | null;
3876
+ code?: string | null;
3877
+ cost_price?: number | null;
3878
+ created_at?: string;
3879
+ description?: string | null;
3880
+ division_code?: number | null;
3881
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3882
+ exact_id: string;
3883
+ exact_modified?: string | null;
3884
+ exact_timestamp?: number | null;
3885
+ gl_account_code?: string | null;
3886
+ id?: string;
3887
+ is_active?: boolean;
3888
+ is_sales_item?: boolean | null;
3889
+ item_type?: string | null;
3890
+ raw?: import("../integrations/supabase/types").Json | null;
3891
+ sales_price?: number | null;
3892
+ unit?: string | null;
3893
+ updated_at?: string;
3894
+ vat_code?: string | null;
3895
+ };
3896
+ Update: {
3897
+ account_key?: string;
3898
+ barcode?: string | null;
3899
+ code?: string | null;
3900
+ cost_price?: number | null;
3901
+ created_at?: string;
3902
+ description?: string | null;
3903
+ division_code?: number | null;
3904
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3905
+ exact_id?: string;
3906
+ exact_modified?: string | null;
3907
+ exact_timestamp?: number | null;
3908
+ gl_account_code?: string | null;
3909
+ id?: string;
3910
+ is_active?: boolean;
3911
+ is_sales_item?: boolean | null;
3912
+ item_type?: string | null;
3913
+ raw?: import("../integrations/supabase/types").Json | null;
3914
+ sales_price?: number | null;
3915
+ unit?: string | null;
3916
+ updated_at?: string;
3917
+ vat_code?: string | null;
3918
+ };
3919
+ Relationships: [];
3920
+ };
3921
+ exact_auth_sync_log: {
3922
+ Row: {
3923
+ account_key: string;
3924
+ calls_used: number;
3925
+ created_at: string;
3926
+ domain: string;
3927
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3928
+ error: string | null;
3929
+ finished_at: string | null;
3930
+ id: string;
3931
+ ok: boolean;
3932
+ records: number;
3933
+ started_at: string;
3934
+ };
3935
+ Insert: {
3936
+ account_key?: string;
3937
+ calls_used?: number;
3938
+ created_at?: string;
3939
+ domain: string;
3940
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3941
+ error?: string | null;
3942
+ finished_at?: string | null;
3943
+ id?: string;
3944
+ ok?: boolean;
3945
+ records?: number;
3946
+ started_at?: string;
3947
+ };
3948
+ Update: {
3949
+ account_key?: string;
3950
+ calls_used?: number;
3951
+ created_at?: string;
3952
+ domain?: string;
3953
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3954
+ error?: string | null;
3955
+ finished_at?: string | null;
3956
+ id?: string;
3957
+ ok?: boolean;
3958
+ records?: number;
3959
+ started_at?: string;
3960
+ };
3961
+ Relationships: [];
3962
+ };
3963
+ exact_auth_sync_state: {
3964
+ Row: {
3965
+ account_key: string;
3966
+ created_at: string;
3967
+ cursor_timestamp: number;
3968
+ division_code: number | null;
3969
+ domain: string;
3970
+ duration_ms: number | null;
3971
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3972
+ initial_sync_done: boolean;
3973
+ last_error: string | null;
3974
+ last_run_at: string | null;
3975
+ last_success_at: string | null;
3976
+ locked_at: string | null;
3977
+ needs_initial_sync: boolean;
3978
+ record_count: number;
3979
+ updated_at: string;
3980
+ };
3981
+ Insert: {
3982
+ account_key?: string;
3983
+ created_at?: string;
3984
+ cursor_timestamp?: number;
3985
+ division_code?: number | null;
3986
+ domain: string;
3987
+ duration_ms?: number | null;
3988
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3989
+ initial_sync_done?: boolean;
3990
+ last_error?: string | null;
3991
+ last_run_at?: string | null;
3992
+ last_success_at?: string | null;
3993
+ locked_at?: string | null;
3994
+ needs_initial_sync?: boolean;
3995
+ record_count?: number;
3996
+ updated_at?: string;
3997
+ };
3998
+ Update: {
3999
+ account_key?: string;
4000
+ created_at?: string;
4001
+ cursor_timestamp?: number;
4002
+ division_code?: number | null;
4003
+ domain?: string;
4004
+ duration_ms?: number | null;
4005
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4006
+ initial_sync_done?: boolean;
4007
+ last_error?: string | null;
4008
+ last_run_at?: string | null;
4009
+ last_success_at?: string | null;
4010
+ locked_at?: string | null;
4011
+ needs_initial_sync?: boolean;
4012
+ record_count?: number;
4013
+ updated_at?: string;
4014
+ };
4015
+ Relationships: [];
4016
+ };
3549
4017
  exact_bulk_operation_items: {
3550
4018
  Row: {
3551
4019
  attempts: number;
@@ -10046,6 +10514,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
10046
10514
  };
10047
10515
  offer_settings: {
10048
10516
  Row: {
10517
+ brand_name: string | null;
10049
10518
  button_color: string;
10050
10519
  created_at: string;
10051
10520
  default_countries: string[];
@@ -10067,6 +10536,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
10067
10536
  updated_at: string;
10068
10537
  };
10069
10538
  Insert: {
10539
+ brand_name?: string | null;
10070
10540
  button_color?: string;
10071
10541
  created_at?: string;
10072
10542
  default_countries?: string[];
@@ -10088,6 +10558,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
10088
10558
  updated_at?: string;
10089
10559
  };
10090
10560
  Update: {
10561
+ brand_name?: string | null;
10091
10562
  button_color?: string;
10092
10563
  created_at?: string;
10093
10564
  default_countries?: string[];
@@ -17938,6 +18409,21 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
17938
18409
  Args: never;
17939
18410
  Returns: string;
17940
18411
  };
18412
+ exact_auth_consume_calls: {
18413
+ Args: {
18414
+ _account_key: string;
18415
+ _calls?: number;
18416
+ _day_limit?: number;
18417
+ _division_code: number;
18418
+ _environment: string;
18419
+ _minute_limit?: number;
18420
+ };
18421
+ Returns: import("../integrations/supabase/types").Json;
18422
+ };
18423
+ exact_auth_prune_sync_log: {
18424
+ Args: never;
18425
+ Returns: undefined;
18426
+ };
17941
18427
  exact_decrypt: {
17942
18428
  Args: {
17943
18429
  cipher: string;
@@ -18147,6 +18633,10 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18147
18633
  };
18148
18634
  Returns: number;
18149
18635
  };
18636
+ get_offer_branding: {
18637
+ Args: never;
18638
+ Returns: import("../integrations/supabase/types").Json;
18639
+ };
18150
18640
  get_offer_by_link_code: {
18151
18641
  Args: {
18152
18642
  p_code: string;
@@ -23368,6 +23858,474 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
23368
23858
  referencedColumns: ["id"];
23369
23859
  }];
23370
23860
  };
23861
+ exact_auth_call_budget: {
23862
+ Row: {
23863
+ account_key: string;
23864
+ day_count: number;
23865
+ day_date: string;
23866
+ division_code: number;
23867
+ environment: string;
23868
+ minute_count: number;
23869
+ minute_window: string;
23870
+ updated_at: string;
23871
+ };
23872
+ Insert: {
23873
+ account_key?: string;
23874
+ day_count?: number;
23875
+ day_date?: string;
23876
+ division_code?: number;
23877
+ environment: string;
23878
+ minute_count?: number;
23879
+ minute_window?: string;
23880
+ updated_at?: string;
23881
+ };
23882
+ Update: {
23883
+ account_key?: string;
23884
+ day_count?: number;
23885
+ day_date?: string;
23886
+ division_code?: number;
23887
+ environment?: string;
23888
+ minute_count?: number;
23889
+ minute_window?: string;
23890
+ updated_at?: string;
23891
+ };
23892
+ Relationships: [];
23893
+ };
23894
+ exact_auth_customers: {
23895
+ Row: {
23896
+ account_key: string;
23897
+ address_line1: string | null;
23898
+ chamber_of_commerce: string | null;
23899
+ city: string | null;
23900
+ code: string | null;
23901
+ country: string | null;
23902
+ created_at: string;
23903
+ currency: string | null;
23904
+ division_code: number | null;
23905
+ email: string | null;
23906
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23907
+ exact_id: string;
23908
+ exact_modified: string | null;
23909
+ exact_timestamp: number | null;
23910
+ id: string;
23911
+ is_active: boolean;
23912
+ name: string | null;
23913
+ phone: string | null;
23914
+ postcode: string | null;
23915
+ raw: import("../integrations/supabase/types").Json | null;
23916
+ status: string | null;
23917
+ updated_at: string;
23918
+ vat_number: string | null;
23919
+ website: string | null;
23920
+ };
23921
+ Insert: {
23922
+ account_key?: string;
23923
+ address_line1?: string | null;
23924
+ chamber_of_commerce?: string | null;
23925
+ city?: string | null;
23926
+ code?: string | null;
23927
+ country?: string | null;
23928
+ created_at?: string;
23929
+ currency?: string | null;
23930
+ division_code?: number | null;
23931
+ email?: string | null;
23932
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23933
+ exact_id: string;
23934
+ exact_modified?: string | null;
23935
+ exact_timestamp?: number | null;
23936
+ id?: string;
23937
+ is_active?: boolean;
23938
+ name?: string | null;
23939
+ phone?: string | null;
23940
+ postcode?: string | null;
23941
+ raw?: import("../integrations/supabase/types").Json | null;
23942
+ status?: string | null;
23943
+ updated_at?: string;
23944
+ vat_number?: string | null;
23945
+ website?: string | null;
23946
+ };
23947
+ Update: {
23948
+ account_key?: string;
23949
+ address_line1?: string | null;
23950
+ chamber_of_commerce?: string | null;
23951
+ city?: string | null;
23952
+ code?: string | null;
23953
+ country?: string | null;
23954
+ created_at?: string;
23955
+ currency?: string | null;
23956
+ division_code?: number | null;
23957
+ email?: string | null;
23958
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23959
+ exact_id?: string;
23960
+ exact_modified?: string | null;
23961
+ exact_timestamp?: number | null;
23962
+ id?: string;
23963
+ is_active?: boolean;
23964
+ name?: string | null;
23965
+ phone?: string | null;
23966
+ postcode?: string | null;
23967
+ raw?: import("../integrations/supabase/types").Json | null;
23968
+ status?: string | null;
23969
+ updated_at?: string;
23970
+ vat_number?: string | null;
23971
+ website?: string | null;
23972
+ };
23973
+ Relationships: [];
23974
+ };
23975
+ exact_auth_divisions: {
23976
+ Row: {
23977
+ account_key: string;
23978
+ company_name: string | null;
23979
+ created_at: string;
23980
+ division_code: number | null;
23981
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23982
+ id: string;
23983
+ last_synced_at: string | null;
23984
+ updated_at: string;
23985
+ };
23986
+ Insert: {
23987
+ account_key?: string;
23988
+ company_name?: string | null;
23989
+ created_at?: string;
23990
+ division_code?: number | null;
23991
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23992
+ id?: string;
23993
+ last_synced_at?: string | null;
23994
+ updated_at?: string;
23995
+ };
23996
+ Update: {
23997
+ account_key?: string;
23998
+ company_name?: string | null;
23999
+ created_at?: string;
24000
+ division_code?: number | null;
24001
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24002
+ id?: string;
24003
+ last_synced_at?: string | null;
24004
+ updated_at?: string;
24005
+ };
24006
+ Relationships: [];
24007
+ };
24008
+ exact_auth_invoice_lines: {
24009
+ Row: {
24010
+ account_key: string;
24011
+ amount_excl: number | null;
24012
+ created_at: string;
24013
+ description: string | null;
24014
+ discount: number | null;
24015
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24016
+ exact_id: string;
24017
+ exact_timestamp: number | null;
24018
+ id: string;
24019
+ invoice_exact_id: string;
24020
+ item_code: string | null;
24021
+ item_exact_id: string | null;
24022
+ line_number: number | null;
24023
+ quantity: number | null;
24024
+ raw: import("../integrations/supabase/types").Json | null;
24025
+ unit_price: number | null;
24026
+ updated_at: string;
24027
+ vat_amount: number | null;
24028
+ vat_code: string | null;
24029
+ };
24030
+ Insert: {
24031
+ account_key?: string;
24032
+ amount_excl?: number | null;
24033
+ created_at?: string;
24034
+ description?: string | null;
24035
+ discount?: number | null;
24036
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24037
+ exact_id: string;
24038
+ exact_timestamp?: number | null;
24039
+ id?: string;
24040
+ invoice_exact_id: string;
24041
+ item_code?: string | null;
24042
+ item_exact_id?: string | null;
24043
+ line_number?: number | null;
24044
+ quantity?: number | null;
24045
+ raw?: import("../integrations/supabase/types").Json | null;
24046
+ unit_price?: number | null;
24047
+ updated_at?: string;
24048
+ vat_amount?: number | null;
24049
+ vat_code?: string | null;
24050
+ };
24051
+ Update: {
24052
+ account_key?: string;
24053
+ amount_excl?: number | null;
24054
+ created_at?: string;
24055
+ description?: string | null;
24056
+ discount?: number | null;
24057
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24058
+ exact_id?: string;
24059
+ exact_timestamp?: number | null;
24060
+ id?: string;
24061
+ invoice_exact_id?: string;
24062
+ item_code?: string | null;
24063
+ item_exact_id?: string | null;
24064
+ line_number?: number | null;
24065
+ quantity?: number | null;
24066
+ raw?: import("../integrations/supabase/types").Json | null;
24067
+ unit_price?: number | null;
24068
+ updated_at?: string;
24069
+ vat_amount?: number | null;
24070
+ vat_code?: string | null;
24071
+ };
24072
+ Relationships: [];
24073
+ };
24074
+ exact_auth_invoices: {
24075
+ Row: {
24076
+ account_key: string;
24077
+ amount_excl: number | null;
24078
+ amount_incl: number | null;
24079
+ amount_open: number | null;
24080
+ created_at: string;
24081
+ currency: string | null;
24082
+ customer_code: string | null;
24083
+ customer_exact_id: string | null;
24084
+ customer_name: string | null;
24085
+ description: string | null;
24086
+ division_code: number | null;
24087
+ due_date: string | null;
24088
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24089
+ exact_id: string;
24090
+ exact_modified: string | null;
24091
+ exact_timestamp: number | null;
24092
+ id: string;
24093
+ invoice_date: string | null;
24094
+ invoice_number: string | null;
24095
+ order_number: string | null;
24096
+ paid_at: string | null;
24097
+ payment_status: string;
24098
+ raw: import("../integrations/supabase/types").Json | null;
24099
+ receivable_synced_at: string | null;
24100
+ status_code: number | null;
24101
+ updated_at: string;
24102
+ };
24103
+ Insert: {
24104
+ account_key?: string;
24105
+ amount_excl?: number | null;
24106
+ amount_incl?: number | null;
24107
+ amount_open?: number | null;
24108
+ created_at?: string;
24109
+ currency?: string | null;
24110
+ customer_code?: string | null;
24111
+ customer_exact_id?: string | null;
24112
+ customer_name?: string | null;
24113
+ description?: string | null;
24114
+ division_code?: number | null;
24115
+ due_date?: string | null;
24116
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24117
+ exact_id: string;
24118
+ exact_modified?: string | null;
24119
+ exact_timestamp?: number | null;
24120
+ id?: string;
24121
+ invoice_date?: string | null;
24122
+ invoice_number?: string | null;
24123
+ order_number?: string | null;
24124
+ paid_at?: string | null;
24125
+ payment_status?: string;
24126
+ raw?: import("../integrations/supabase/types").Json | null;
24127
+ receivable_synced_at?: string | null;
24128
+ status_code?: number | null;
24129
+ updated_at?: string;
24130
+ };
24131
+ Update: {
24132
+ account_key?: string;
24133
+ amount_excl?: number | null;
24134
+ amount_incl?: number | null;
24135
+ amount_open?: number | null;
24136
+ created_at?: string;
24137
+ currency?: string | null;
24138
+ customer_code?: string | null;
24139
+ customer_exact_id?: string | null;
24140
+ customer_name?: string | null;
24141
+ description?: string | null;
24142
+ division_code?: number | null;
24143
+ due_date?: string | null;
24144
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24145
+ exact_id?: string;
24146
+ exact_modified?: string | null;
24147
+ exact_timestamp?: number | null;
24148
+ id?: string;
24149
+ invoice_date?: string | null;
24150
+ invoice_number?: string | null;
24151
+ order_number?: string | null;
24152
+ paid_at?: string | null;
24153
+ payment_status?: string;
24154
+ raw?: import("../integrations/supabase/types").Json | null;
24155
+ receivable_synced_at?: string | null;
24156
+ status_code?: number | null;
24157
+ updated_at?: string;
24158
+ };
24159
+ Relationships: [];
24160
+ };
24161
+ exact_auth_items: {
24162
+ Row: {
24163
+ account_key: string;
24164
+ barcode: string | null;
24165
+ code: string | null;
24166
+ cost_price: number | null;
24167
+ created_at: string;
24168
+ description: string | null;
24169
+ division_code: number | null;
24170
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24171
+ exact_id: string;
24172
+ exact_modified: string | null;
24173
+ exact_timestamp: number | null;
24174
+ gl_account_code: string | null;
24175
+ id: string;
24176
+ is_active: boolean;
24177
+ is_sales_item: boolean | null;
24178
+ item_type: string | null;
24179
+ raw: import("../integrations/supabase/types").Json | null;
24180
+ sales_price: number | null;
24181
+ unit: string | null;
24182
+ updated_at: string;
24183
+ vat_code: string | null;
24184
+ };
24185
+ Insert: {
24186
+ account_key?: string;
24187
+ barcode?: string | null;
24188
+ code?: string | null;
24189
+ cost_price?: number | null;
24190
+ created_at?: string;
24191
+ description?: string | null;
24192
+ division_code?: number | null;
24193
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24194
+ exact_id: string;
24195
+ exact_modified?: string | null;
24196
+ exact_timestamp?: number | null;
24197
+ gl_account_code?: string | null;
24198
+ id?: string;
24199
+ is_active?: boolean;
24200
+ is_sales_item?: boolean | null;
24201
+ item_type?: string | null;
24202
+ raw?: import("../integrations/supabase/types").Json | null;
24203
+ sales_price?: number | null;
24204
+ unit?: string | null;
24205
+ updated_at?: string;
24206
+ vat_code?: string | null;
24207
+ };
24208
+ Update: {
24209
+ account_key?: string;
24210
+ barcode?: string | null;
24211
+ code?: string | null;
24212
+ cost_price?: number | null;
24213
+ created_at?: string;
24214
+ description?: string | null;
24215
+ division_code?: number | null;
24216
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24217
+ exact_id?: string;
24218
+ exact_modified?: string | null;
24219
+ exact_timestamp?: number | null;
24220
+ gl_account_code?: string | null;
24221
+ id?: string;
24222
+ is_active?: boolean;
24223
+ is_sales_item?: boolean | null;
24224
+ item_type?: string | null;
24225
+ raw?: import("../integrations/supabase/types").Json | null;
24226
+ sales_price?: number | null;
24227
+ unit?: string | null;
24228
+ updated_at?: string;
24229
+ vat_code?: string | null;
24230
+ };
24231
+ Relationships: [];
24232
+ };
24233
+ exact_auth_sync_log: {
24234
+ Row: {
24235
+ account_key: string;
24236
+ calls_used: number;
24237
+ created_at: string;
24238
+ domain: string;
24239
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24240
+ error: string | null;
24241
+ finished_at: string | null;
24242
+ id: string;
24243
+ ok: boolean;
24244
+ records: number;
24245
+ started_at: string;
24246
+ };
24247
+ Insert: {
24248
+ account_key?: string;
24249
+ calls_used?: number;
24250
+ created_at?: string;
24251
+ domain: string;
24252
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24253
+ error?: string | null;
24254
+ finished_at?: string | null;
24255
+ id?: string;
24256
+ ok?: boolean;
24257
+ records?: number;
24258
+ started_at?: string;
24259
+ };
24260
+ Update: {
24261
+ account_key?: string;
24262
+ calls_used?: number;
24263
+ created_at?: string;
24264
+ domain?: string;
24265
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24266
+ error?: string | null;
24267
+ finished_at?: string | null;
24268
+ id?: string;
24269
+ ok?: boolean;
24270
+ records?: number;
24271
+ started_at?: string;
24272
+ };
24273
+ Relationships: [];
24274
+ };
24275
+ exact_auth_sync_state: {
24276
+ Row: {
24277
+ account_key: string;
24278
+ created_at: string;
24279
+ cursor_timestamp: number;
24280
+ division_code: number | null;
24281
+ domain: string;
24282
+ duration_ms: number | null;
24283
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24284
+ initial_sync_done: boolean;
24285
+ last_error: string | null;
24286
+ last_run_at: string | null;
24287
+ last_success_at: string | null;
24288
+ locked_at: string | null;
24289
+ needs_initial_sync: boolean;
24290
+ record_count: number;
24291
+ updated_at: string;
24292
+ };
24293
+ Insert: {
24294
+ account_key?: string;
24295
+ created_at?: string;
24296
+ cursor_timestamp?: number;
24297
+ division_code?: number | null;
24298
+ domain: string;
24299
+ duration_ms?: number | null;
24300
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24301
+ initial_sync_done?: boolean;
24302
+ last_error?: string | null;
24303
+ last_run_at?: string | null;
24304
+ last_success_at?: string | null;
24305
+ locked_at?: string | null;
24306
+ needs_initial_sync?: boolean;
24307
+ record_count?: number;
24308
+ updated_at?: string;
24309
+ };
24310
+ Update: {
24311
+ account_key?: string;
24312
+ created_at?: string;
24313
+ cursor_timestamp?: number;
24314
+ division_code?: number | null;
24315
+ domain?: string;
24316
+ duration_ms?: number | null;
24317
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24318
+ initial_sync_done?: boolean;
24319
+ last_error?: string | null;
24320
+ last_run_at?: string | null;
24321
+ last_success_at?: string | null;
24322
+ locked_at?: string | null;
24323
+ needs_initial_sync?: boolean;
24324
+ record_count?: number;
24325
+ updated_at?: string;
24326
+ };
24327
+ Relationships: [];
24328
+ };
23371
24329
  exact_bulk_operation_items: {
23372
24330
  Row: {
23373
24331
  attempts: number;
@@ -29868,6 +30826,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29868
30826
  };
29869
30827
  offer_settings: {
29870
30828
  Row: {
30829
+ brand_name: string | null;
29871
30830
  button_color: string;
29872
30831
  created_at: string;
29873
30832
  default_countries: string[];
@@ -29889,6 +30848,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29889
30848
  updated_at: string;
29890
30849
  };
29891
30850
  Insert: {
30851
+ brand_name?: string | null;
29892
30852
  button_color?: string;
29893
30853
  created_at?: string;
29894
30854
  default_countries?: string[];
@@ -29910,6 +30870,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29910
30870
  updated_at?: string;
29911
30871
  };
29912
30872
  Update: {
30873
+ brand_name?: string | null;
29913
30874
  button_color?: string;
29914
30875
  created_at?: string;
29915
30876
  default_countries?: string[];
@@ -37760,6 +38721,21 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
37760
38721
  Args: never;
37761
38722
  Returns: string;
37762
38723
  };
38724
+ exact_auth_consume_calls: {
38725
+ Args: {
38726
+ _account_key: string;
38727
+ _calls?: number;
38728
+ _day_limit?: number;
38729
+ _division_code: number;
38730
+ _environment: string;
38731
+ _minute_limit?: number;
38732
+ };
38733
+ Returns: import("../integrations/supabase/types").Json;
38734
+ };
38735
+ exact_auth_prune_sync_log: {
38736
+ Args: never;
38737
+ Returns: undefined;
38738
+ };
37763
38739
  exact_decrypt: {
37764
38740
  Args: {
37765
38741
  cipher: string;
@@ -37969,6 +38945,10 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
37969
38945
  };
37970
38946
  Returns: number;
37971
38947
  };
38948
+ get_offer_branding: {
38949
+ Args: never;
38950
+ Returns: import("../integrations/supabase/types").Json;
38951
+ };
37972
38952
  get_offer_by_link_code: {
37973
38953
  Args: {
37974
38954
  p_code: string;
@@ -43188,6 +44168,474 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
43188
44168
  referencedColumns: ["id"];
43189
44169
  }];
43190
44170
  };
44171
+ exact_auth_call_budget: {
44172
+ Row: {
44173
+ account_key: string;
44174
+ day_count: number;
44175
+ day_date: string;
44176
+ division_code: number;
44177
+ environment: string;
44178
+ minute_count: number;
44179
+ minute_window: string;
44180
+ updated_at: string;
44181
+ };
44182
+ Insert: {
44183
+ account_key?: string;
44184
+ day_count?: number;
44185
+ day_date?: string;
44186
+ division_code?: number;
44187
+ environment: string;
44188
+ minute_count?: number;
44189
+ minute_window?: string;
44190
+ updated_at?: string;
44191
+ };
44192
+ Update: {
44193
+ account_key?: string;
44194
+ day_count?: number;
44195
+ day_date?: string;
44196
+ division_code?: number;
44197
+ environment?: string;
44198
+ minute_count?: number;
44199
+ minute_window?: string;
44200
+ updated_at?: string;
44201
+ };
44202
+ Relationships: [];
44203
+ };
44204
+ exact_auth_customers: {
44205
+ Row: {
44206
+ account_key: string;
44207
+ address_line1: string | null;
44208
+ chamber_of_commerce: string | null;
44209
+ city: string | null;
44210
+ code: string | null;
44211
+ country: string | null;
44212
+ created_at: string;
44213
+ currency: string | null;
44214
+ division_code: number | null;
44215
+ email: string | null;
44216
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44217
+ exact_id: string;
44218
+ exact_modified: string | null;
44219
+ exact_timestamp: number | null;
44220
+ id: string;
44221
+ is_active: boolean;
44222
+ name: string | null;
44223
+ phone: string | null;
44224
+ postcode: string | null;
44225
+ raw: import("../integrations/supabase/types").Json | null;
44226
+ status: string | null;
44227
+ updated_at: string;
44228
+ vat_number: string | null;
44229
+ website: string | null;
44230
+ };
44231
+ Insert: {
44232
+ account_key?: string;
44233
+ address_line1?: string | null;
44234
+ chamber_of_commerce?: string | null;
44235
+ city?: string | null;
44236
+ code?: string | null;
44237
+ country?: string | null;
44238
+ created_at?: string;
44239
+ currency?: string | null;
44240
+ division_code?: number | null;
44241
+ email?: string | null;
44242
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44243
+ exact_id: string;
44244
+ exact_modified?: string | null;
44245
+ exact_timestamp?: number | null;
44246
+ id?: string;
44247
+ is_active?: boolean;
44248
+ name?: string | null;
44249
+ phone?: string | null;
44250
+ postcode?: string | null;
44251
+ raw?: import("../integrations/supabase/types").Json | null;
44252
+ status?: string | null;
44253
+ updated_at?: string;
44254
+ vat_number?: string | null;
44255
+ website?: string | null;
44256
+ };
44257
+ Update: {
44258
+ account_key?: string;
44259
+ address_line1?: string | null;
44260
+ chamber_of_commerce?: string | null;
44261
+ city?: string | null;
44262
+ code?: string | null;
44263
+ country?: string | null;
44264
+ created_at?: string;
44265
+ currency?: string | null;
44266
+ division_code?: number | null;
44267
+ email?: string | null;
44268
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44269
+ exact_id?: string;
44270
+ exact_modified?: string | null;
44271
+ exact_timestamp?: number | null;
44272
+ id?: string;
44273
+ is_active?: boolean;
44274
+ name?: string | null;
44275
+ phone?: string | null;
44276
+ postcode?: string | null;
44277
+ raw?: import("../integrations/supabase/types").Json | null;
44278
+ status?: string | null;
44279
+ updated_at?: string;
44280
+ vat_number?: string | null;
44281
+ website?: string | null;
44282
+ };
44283
+ Relationships: [];
44284
+ };
44285
+ exact_auth_divisions: {
44286
+ Row: {
44287
+ account_key: string;
44288
+ company_name: string | null;
44289
+ created_at: string;
44290
+ division_code: number | null;
44291
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44292
+ id: string;
44293
+ last_synced_at: string | null;
44294
+ updated_at: string;
44295
+ };
44296
+ Insert: {
44297
+ account_key?: string;
44298
+ company_name?: string | null;
44299
+ created_at?: string;
44300
+ division_code?: number | null;
44301
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44302
+ id?: string;
44303
+ last_synced_at?: string | null;
44304
+ updated_at?: string;
44305
+ };
44306
+ Update: {
44307
+ account_key?: string;
44308
+ company_name?: string | null;
44309
+ created_at?: string;
44310
+ division_code?: number | null;
44311
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44312
+ id?: string;
44313
+ last_synced_at?: string | null;
44314
+ updated_at?: string;
44315
+ };
44316
+ Relationships: [];
44317
+ };
44318
+ exact_auth_invoice_lines: {
44319
+ Row: {
44320
+ account_key: string;
44321
+ amount_excl: number | null;
44322
+ created_at: string;
44323
+ description: string | null;
44324
+ discount: number | null;
44325
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44326
+ exact_id: string;
44327
+ exact_timestamp: number | null;
44328
+ id: string;
44329
+ invoice_exact_id: string;
44330
+ item_code: string | null;
44331
+ item_exact_id: string | null;
44332
+ line_number: number | null;
44333
+ quantity: number | null;
44334
+ raw: import("../integrations/supabase/types").Json | null;
44335
+ unit_price: number | null;
44336
+ updated_at: string;
44337
+ vat_amount: number | null;
44338
+ vat_code: string | null;
44339
+ };
44340
+ Insert: {
44341
+ account_key?: string;
44342
+ amount_excl?: number | null;
44343
+ created_at?: string;
44344
+ description?: string | null;
44345
+ discount?: number | null;
44346
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44347
+ exact_id: string;
44348
+ exact_timestamp?: number | null;
44349
+ id?: string;
44350
+ invoice_exact_id: string;
44351
+ item_code?: string | null;
44352
+ item_exact_id?: string | null;
44353
+ line_number?: number | null;
44354
+ quantity?: number | null;
44355
+ raw?: import("../integrations/supabase/types").Json | null;
44356
+ unit_price?: number | null;
44357
+ updated_at?: string;
44358
+ vat_amount?: number | null;
44359
+ vat_code?: string | null;
44360
+ };
44361
+ Update: {
44362
+ account_key?: string;
44363
+ amount_excl?: number | null;
44364
+ created_at?: string;
44365
+ description?: string | null;
44366
+ discount?: number | null;
44367
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44368
+ exact_id?: string;
44369
+ exact_timestamp?: number | null;
44370
+ id?: string;
44371
+ invoice_exact_id?: string;
44372
+ item_code?: string | null;
44373
+ item_exact_id?: string | null;
44374
+ line_number?: number | null;
44375
+ quantity?: number | null;
44376
+ raw?: import("../integrations/supabase/types").Json | null;
44377
+ unit_price?: number | null;
44378
+ updated_at?: string;
44379
+ vat_amount?: number | null;
44380
+ vat_code?: string | null;
44381
+ };
44382
+ Relationships: [];
44383
+ };
44384
+ exact_auth_invoices: {
44385
+ Row: {
44386
+ account_key: string;
44387
+ amount_excl: number | null;
44388
+ amount_incl: number | null;
44389
+ amount_open: number | null;
44390
+ created_at: string;
44391
+ currency: string | null;
44392
+ customer_code: string | null;
44393
+ customer_exact_id: string | null;
44394
+ customer_name: string | null;
44395
+ description: string | null;
44396
+ division_code: number | null;
44397
+ due_date: string | null;
44398
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44399
+ exact_id: string;
44400
+ exact_modified: string | null;
44401
+ exact_timestamp: number | null;
44402
+ id: string;
44403
+ invoice_date: string | null;
44404
+ invoice_number: string | null;
44405
+ order_number: string | null;
44406
+ paid_at: string | null;
44407
+ payment_status: string;
44408
+ raw: import("../integrations/supabase/types").Json | null;
44409
+ receivable_synced_at: string | null;
44410
+ status_code: number | null;
44411
+ updated_at: string;
44412
+ };
44413
+ Insert: {
44414
+ account_key?: string;
44415
+ amount_excl?: number | null;
44416
+ amount_incl?: number | null;
44417
+ amount_open?: number | null;
44418
+ created_at?: string;
44419
+ currency?: string | null;
44420
+ customer_code?: string | null;
44421
+ customer_exact_id?: string | null;
44422
+ customer_name?: string | null;
44423
+ description?: string | null;
44424
+ division_code?: number | null;
44425
+ due_date?: string | null;
44426
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44427
+ exact_id: string;
44428
+ exact_modified?: string | null;
44429
+ exact_timestamp?: number | null;
44430
+ id?: string;
44431
+ invoice_date?: string | null;
44432
+ invoice_number?: string | null;
44433
+ order_number?: string | null;
44434
+ paid_at?: string | null;
44435
+ payment_status?: string;
44436
+ raw?: import("../integrations/supabase/types").Json | null;
44437
+ receivable_synced_at?: string | null;
44438
+ status_code?: number | null;
44439
+ updated_at?: string;
44440
+ };
44441
+ Update: {
44442
+ account_key?: string;
44443
+ amount_excl?: number | null;
44444
+ amount_incl?: number | null;
44445
+ amount_open?: number | null;
44446
+ created_at?: string;
44447
+ currency?: string | null;
44448
+ customer_code?: string | null;
44449
+ customer_exact_id?: string | null;
44450
+ customer_name?: string | null;
44451
+ description?: string | null;
44452
+ division_code?: number | null;
44453
+ due_date?: string | null;
44454
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44455
+ exact_id?: string;
44456
+ exact_modified?: string | null;
44457
+ exact_timestamp?: number | null;
44458
+ id?: string;
44459
+ invoice_date?: string | null;
44460
+ invoice_number?: string | null;
44461
+ order_number?: string | null;
44462
+ paid_at?: string | null;
44463
+ payment_status?: string;
44464
+ raw?: import("../integrations/supabase/types").Json | null;
44465
+ receivable_synced_at?: string | null;
44466
+ status_code?: number | null;
44467
+ updated_at?: string;
44468
+ };
44469
+ Relationships: [];
44470
+ };
44471
+ exact_auth_items: {
44472
+ Row: {
44473
+ account_key: string;
44474
+ barcode: string | null;
44475
+ code: string | null;
44476
+ cost_price: number | null;
44477
+ created_at: string;
44478
+ description: string | null;
44479
+ division_code: number | null;
44480
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44481
+ exact_id: string;
44482
+ exact_modified: string | null;
44483
+ exact_timestamp: number | null;
44484
+ gl_account_code: string | null;
44485
+ id: string;
44486
+ is_active: boolean;
44487
+ is_sales_item: boolean | null;
44488
+ item_type: string | null;
44489
+ raw: import("../integrations/supabase/types").Json | null;
44490
+ sales_price: number | null;
44491
+ unit: string | null;
44492
+ updated_at: string;
44493
+ vat_code: string | null;
44494
+ };
44495
+ Insert: {
44496
+ account_key?: string;
44497
+ barcode?: string | null;
44498
+ code?: string | null;
44499
+ cost_price?: number | null;
44500
+ created_at?: string;
44501
+ description?: string | null;
44502
+ division_code?: number | null;
44503
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44504
+ exact_id: string;
44505
+ exact_modified?: string | null;
44506
+ exact_timestamp?: number | null;
44507
+ gl_account_code?: string | null;
44508
+ id?: string;
44509
+ is_active?: boolean;
44510
+ is_sales_item?: boolean | null;
44511
+ item_type?: string | null;
44512
+ raw?: import("../integrations/supabase/types").Json | null;
44513
+ sales_price?: number | null;
44514
+ unit?: string | null;
44515
+ updated_at?: string;
44516
+ vat_code?: string | null;
44517
+ };
44518
+ Update: {
44519
+ account_key?: string;
44520
+ barcode?: string | null;
44521
+ code?: string | null;
44522
+ cost_price?: number | null;
44523
+ created_at?: string;
44524
+ description?: string | null;
44525
+ division_code?: number | null;
44526
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44527
+ exact_id?: string;
44528
+ exact_modified?: string | null;
44529
+ exact_timestamp?: number | null;
44530
+ gl_account_code?: string | null;
44531
+ id?: string;
44532
+ is_active?: boolean;
44533
+ is_sales_item?: boolean | null;
44534
+ item_type?: string | null;
44535
+ raw?: import("../integrations/supabase/types").Json | null;
44536
+ sales_price?: number | null;
44537
+ unit?: string | null;
44538
+ updated_at?: string;
44539
+ vat_code?: string | null;
44540
+ };
44541
+ Relationships: [];
44542
+ };
44543
+ exact_auth_sync_log: {
44544
+ Row: {
44545
+ account_key: string;
44546
+ calls_used: number;
44547
+ created_at: string;
44548
+ domain: string;
44549
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44550
+ error: string | null;
44551
+ finished_at: string | null;
44552
+ id: string;
44553
+ ok: boolean;
44554
+ records: number;
44555
+ started_at: string;
44556
+ };
44557
+ Insert: {
44558
+ account_key?: string;
44559
+ calls_used?: number;
44560
+ created_at?: string;
44561
+ domain: string;
44562
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44563
+ error?: string | null;
44564
+ finished_at?: string | null;
44565
+ id?: string;
44566
+ ok?: boolean;
44567
+ records?: number;
44568
+ started_at?: string;
44569
+ };
44570
+ Update: {
44571
+ account_key?: string;
44572
+ calls_used?: number;
44573
+ created_at?: string;
44574
+ domain?: string;
44575
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44576
+ error?: string | null;
44577
+ finished_at?: string | null;
44578
+ id?: string;
44579
+ ok?: boolean;
44580
+ records?: number;
44581
+ started_at?: string;
44582
+ };
44583
+ Relationships: [];
44584
+ };
44585
+ exact_auth_sync_state: {
44586
+ Row: {
44587
+ account_key: string;
44588
+ created_at: string;
44589
+ cursor_timestamp: number;
44590
+ division_code: number | null;
44591
+ domain: string;
44592
+ duration_ms: number | null;
44593
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44594
+ initial_sync_done: boolean;
44595
+ last_error: string | null;
44596
+ last_run_at: string | null;
44597
+ last_success_at: string | null;
44598
+ locked_at: string | null;
44599
+ needs_initial_sync: boolean;
44600
+ record_count: number;
44601
+ updated_at: string;
44602
+ };
44603
+ Insert: {
44604
+ account_key?: string;
44605
+ created_at?: string;
44606
+ cursor_timestamp?: number;
44607
+ division_code?: number | null;
44608
+ domain: string;
44609
+ duration_ms?: number | null;
44610
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44611
+ initial_sync_done?: boolean;
44612
+ last_error?: string | null;
44613
+ last_run_at?: string | null;
44614
+ last_success_at?: string | null;
44615
+ locked_at?: string | null;
44616
+ needs_initial_sync?: boolean;
44617
+ record_count?: number;
44618
+ updated_at?: string;
44619
+ };
44620
+ Update: {
44621
+ account_key?: string;
44622
+ created_at?: string;
44623
+ cursor_timestamp?: number;
44624
+ division_code?: number | null;
44625
+ domain?: string;
44626
+ duration_ms?: number | null;
44627
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44628
+ initial_sync_done?: boolean;
44629
+ last_error?: string | null;
44630
+ last_run_at?: string | null;
44631
+ last_success_at?: string | null;
44632
+ locked_at?: string | null;
44633
+ needs_initial_sync?: boolean;
44634
+ record_count?: number;
44635
+ updated_at?: string;
44636
+ };
44637
+ Relationships: [];
44638
+ };
43191
44639
  exact_bulk_operation_items: {
43192
44640
  Row: {
43193
44641
  attempts: number;
@@ -49688,6 +51136,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49688
51136
  };
49689
51137
  offer_settings: {
49690
51138
  Row: {
51139
+ brand_name: string | null;
49691
51140
  button_color: string;
49692
51141
  created_at: string;
49693
51142
  default_countries: string[];
@@ -49709,6 +51158,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49709
51158
  updated_at: string;
49710
51159
  };
49711
51160
  Insert: {
51161
+ brand_name?: string | null;
49712
51162
  button_color?: string;
49713
51163
  created_at?: string;
49714
51164
  default_countries?: string[];
@@ -49730,6 +51180,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49730
51180
  updated_at?: string;
49731
51181
  };
49732
51182
  Update: {
51183
+ brand_name?: string | null;
49733
51184
  button_color?: string;
49734
51185
  created_at?: string;
49735
51186
  default_countries?: string[];
@@ -57580,6 +59031,21 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
57580
59031
  Args: never;
57581
59032
  Returns: string;
57582
59033
  };
59034
+ exact_auth_consume_calls: {
59035
+ Args: {
59036
+ _account_key: string;
59037
+ _calls?: number;
59038
+ _day_limit?: number;
59039
+ _division_code: number;
59040
+ _environment: string;
59041
+ _minute_limit?: number;
59042
+ };
59043
+ Returns: import("../integrations/supabase/types").Json;
59044
+ };
59045
+ exact_auth_prune_sync_log: {
59046
+ Args: never;
59047
+ Returns: undefined;
59048
+ };
57583
59049
  exact_decrypt: {
57584
59050
  Args: {
57585
59051
  cipher: string;
@@ -57789,6 +59255,10 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
57789
59255
  };
57790
59256
  Returns: number;
57791
59257
  };
59258
+ get_offer_branding: {
59259
+ Args: never;
59260
+ Returns: import("../integrations/supabase/types").Json;
59261
+ };
57792
59262
  get_offer_by_link_code: {
57793
59263
  Args: {
57794
59264
  p_code: string;
@@ -63163,6 +64633,474 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
63163
64633
  referencedColumns: ["id"];
63164
64634
  }];
63165
64635
  };
64636
+ exact_auth_call_budget: {
64637
+ Row: {
64638
+ account_key: string;
64639
+ day_count: number;
64640
+ day_date: string;
64641
+ division_code: number;
64642
+ environment: string;
64643
+ minute_count: number;
64644
+ minute_window: string;
64645
+ updated_at: string;
64646
+ };
64647
+ Insert: {
64648
+ account_key?: string;
64649
+ day_count?: number;
64650
+ day_date?: string;
64651
+ division_code?: number;
64652
+ environment: string;
64653
+ minute_count?: number;
64654
+ minute_window?: string;
64655
+ updated_at?: string;
64656
+ };
64657
+ Update: {
64658
+ account_key?: string;
64659
+ day_count?: number;
64660
+ day_date?: string;
64661
+ division_code?: number;
64662
+ environment?: string;
64663
+ minute_count?: number;
64664
+ minute_window?: string;
64665
+ updated_at?: string;
64666
+ };
64667
+ Relationships: [];
64668
+ };
64669
+ exact_auth_customers: {
64670
+ Row: {
64671
+ account_key: string;
64672
+ address_line1: string | null;
64673
+ chamber_of_commerce: string | null;
64674
+ city: string | null;
64675
+ code: string | null;
64676
+ country: string | null;
64677
+ created_at: string;
64678
+ currency: string | null;
64679
+ division_code: number | null;
64680
+ email: string | null;
64681
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64682
+ exact_id: string;
64683
+ exact_modified: string | null;
64684
+ exact_timestamp: number | null;
64685
+ id: string;
64686
+ is_active: boolean;
64687
+ name: string | null;
64688
+ phone: string | null;
64689
+ postcode: string | null;
64690
+ raw: import("../integrations/supabase/types").Json | null;
64691
+ status: string | null;
64692
+ updated_at: string;
64693
+ vat_number: string | null;
64694
+ website: string | null;
64695
+ };
64696
+ Insert: {
64697
+ account_key?: string;
64698
+ address_line1?: string | null;
64699
+ chamber_of_commerce?: string | null;
64700
+ city?: string | null;
64701
+ code?: string | null;
64702
+ country?: string | null;
64703
+ created_at?: string;
64704
+ currency?: string | null;
64705
+ division_code?: number | null;
64706
+ email?: string | null;
64707
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64708
+ exact_id: string;
64709
+ exact_modified?: string | null;
64710
+ exact_timestamp?: number | null;
64711
+ id?: string;
64712
+ is_active?: boolean;
64713
+ name?: string | null;
64714
+ phone?: string | null;
64715
+ postcode?: string | null;
64716
+ raw?: import("../integrations/supabase/types").Json | null;
64717
+ status?: string | null;
64718
+ updated_at?: string;
64719
+ vat_number?: string | null;
64720
+ website?: string | null;
64721
+ };
64722
+ Update: {
64723
+ account_key?: string;
64724
+ address_line1?: string | null;
64725
+ chamber_of_commerce?: string | null;
64726
+ city?: string | null;
64727
+ code?: string | null;
64728
+ country?: string | null;
64729
+ created_at?: string;
64730
+ currency?: string | null;
64731
+ division_code?: number | null;
64732
+ email?: string | null;
64733
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64734
+ exact_id?: string;
64735
+ exact_modified?: string | null;
64736
+ exact_timestamp?: number | null;
64737
+ id?: string;
64738
+ is_active?: boolean;
64739
+ name?: string | null;
64740
+ phone?: string | null;
64741
+ postcode?: string | null;
64742
+ raw?: import("../integrations/supabase/types").Json | null;
64743
+ status?: string | null;
64744
+ updated_at?: string;
64745
+ vat_number?: string | null;
64746
+ website?: string | null;
64747
+ };
64748
+ Relationships: [];
64749
+ };
64750
+ exact_auth_divisions: {
64751
+ Row: {
64752
+ account_key: string;
64753
+ company_name: string | null;
64754
+ created_at: string;
64755
+ division_code: number | null;
64756
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64757
+ id: string;
64758
+ last_synced_at: string | null;
64759
+ updated_at: string;
64760
+ };
64761
+ Insert: {
64762
+ account_key?: string;
64763
+ company_name?: string | null;
64764
+ created_at?: string;
64765
+ division_code?: number | null;
64766
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64767
+ id?: string;
64768
+ last_synced_at?: string | null;
64769
+ updated_at?: string;
64770
+ };
64771
+ Update: {
64772
+ account_key?: string;
64773
+ company_name?: string | null;
64774
+ created_at?: string;
64775
+ division_code?: number | null;
64776
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64777
+ id?: string;
64778
+ last_synced_at?: string | null;
64779
+ updated_at?: string;
64780
+ };
64781
+ Relationships: [];
64782
+ };
64783
+ exact_auth_invoice_lines: {
64784
+ Row: {
64785
+ account_key: string;
64786
+ amount_excl: number | null;
64787
+ created_at: string;
64788
+ description: string | null;
64789
+ discount: number | null;
64790
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64791
+ exact_id: string;
64792
+ exact_timestamp: number | null;
64793
+ id: string;
64794
+ invoice_exact_id: string;
64795
+ item_code: string | null;
64796
+ item_exact_id: string | null;
64797
+ line_number: number | null;
64798
+ quantity: number | null;
64799
+ raw: import("../integrations/supabase/types").Json | null;
64800
+ unit_price: number | null;
64801
+ updated_at: string;
64802
+ vat_amount: number | null;
64803
+ vat_code: string | null;
64804
+ };
64805
+ Insert: {
64806
+ account_key?: string;
64807
+ amount_excl?: number | null;
64808
+ created_at?: string;
64809
+ description?: string | null;
64810
+ discount?: number | null;
64811
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64812
+ exact_id: string;
64813
+ exact_timestamp?: number | null;
64814
+ id?: string;
64815
+ invoice_exact_id: string;
64816
+ item_code?: string | null;
64817
+ item_exact_id?: string | null;
64818
+ line_number?: number | null;
64819
+ quantity?: number | null;
64820
+ raw?: import("../integrations/supabase/types").Json | null;
64821
+ unit_price?: number | null;
64822
+ updated_at?: string;
64823
+ vat_amount?: number | null;
64824
+ vat_code?: string | null;
64825
+ };
64826
+ Update: {
64827
+ account_key?: string;
64828
+ amount_excl?: number | null;
64829
+ created_at?: string;
64830
+ description?: string | null;
64831
+ discount?: number | null;
64832
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64833
+ exact_id?: string;
64834
+ exact_timestamp?: number | null;
64835
+ id?: string;
64836
+ invoice_exact_id?: string;
64837
+ item_code?: string | null;
64838
+ item_exact_id?: string | null;
64839
+ line_number?: number | null;
64840
+ quantity?: number | null;
64841
+ raw?: import("../integrations/supabase/types").Json | null;
64842
+ unit_price?: number | null;
64843
+ updated_at?: string;
64844
+ vat_amount?: number | null;
64845
+ vat_code?: string | null;
64846
+ };
64847
+ Relationships: [];
64848
+ };
64849
+ exact_auth_invoices: {
64850
+ Row: {
64851
+ account_key: string;
64852
+ amount_excl: number | null;
64853
+ amount_incl: number | null;
64854
+ amount_open: number | null;
64855
+ created_at: string;
64856
+ currency: string | null;
64857
+ customer_code: string | null;
64858
+ customer_exact_id: string | null;
64859
+ customer_name: string | null;
64860
+ description: string | null;
64861
+ division_code: number | null;
64862
+ due_date: string | null;
64863
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64864
+ exact_id: string;
64865
+ exact_modified: string | null;
64866
+ exact_timestamp: number | null;
64867
+ id: string;
64868
+ invoice_date: string | null;
64869
+ invoice_number: string | null;
64870
+ order_number: string | null;
64871
+ paid_at: string | null;
64872
+ payment_status: string;
64873
+ raw: import("../integrations/supabase/types").Json | null;
64874
+ receivable_synced_at: string | null;
64875
+ status_code: number | null;
64876
+ updated_at: string;
64877
+ };
64878
+ Insert: {
64879
+ account_key?: string;
64880
+ amount_excl?: number | null;
64881
+ amount_incl?: number | null;
64882
+ amount_open?: number | null;
64883
+ created_at?: string;
64884
+ currency?: string | null;
64885
+ customer_code?: string | null;
64886
+ customer_exact_id?: string | null;
64887
+ customer_name?: string | null;
64888
+ description?: string | null;
64889
+ division_code?: number | null;
64890
+ due_date?: string | null;
64891
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64892
+ exact_id: string;
64893
+ exact_modified?: string | null;
64894
+ exact_timestamp?: number | null;
64895
+ id?: string;
64896
+ invoice_date?: string | null;
64897
+ invoice_number?: string | null;
64898
+ order_number?: string | null;
64899
+ paid_at?: string | null;
64900
+ payment_status?: string;
64901
+ raw?: import("../integrations/supabase/types").Json | null;
64902
+ receivable_synced_at?: string | null;
64903
+ status_code?: number | null;
64904
+ updated_at?: string;
64905
+ };
64906
+ Update: {
64907
+ account_key?: string;
64908
+ amount_excl?: number | null;
64909
+ amount_incl?: number | null;
64910
+ amount_open?: number | null;
64911
+ created_at?: string;
64912
+ currency?: string | null;
64913
+ customer_code?: string | null;
64914
+ customer_exact_id?: string | null;
64915
+ customer_name?: string | null;
64916
+ description?: string | null;
64917
+ division_code?: number | null;
64918
+ due_date?: string | null;
64919
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64920
+ exact_id?: string;
64921
+ exact_modified?: string | null;
64922
+ exact_timestamp?: number | null;
64923
+ id?: string;
64924
+ invoice_date?: string | null;
64925
+ invoice_number?: string | null;
64926
+ order_number?: string | null;
64927
+ paid_at?: string | null;
64928
+ payment_status?: string;
64929
+ raw?: import("../integrations/supabase/types").Json | null;
64930
+ receivable_synced_at?: string | null;
64931
+ status_code?: number | null;
64932
+ updated_at?: string;
64933
+ };
64934
+ Relationships: [];
64935
+ };
64936
+ exact_auth_items: {
64937
+ Row: {
64938
+ account_key: string;
64939
+ barcode: string | null;
64940
+ code: string | null;
64941
+ cost_price: number | null;
64942
+ created_at: string;
64943
+ description: string | null;
64944
+ division_code: number | null;
64945
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64946
+ exact_id: string;
64947
+ exact_modified: string | null;
64948
+ exact_timestamp: number | null;
64949
+ gl_account_code: string | null;
64950
+ id: string;
64951
+ is_active: boolean;
64952
+ is_sales_item: boolean | null;
64953
+ item_type: string | null;
64954
+ raw: import("../integrations/supabase/types").Json | null;
64955
+ sales_price: number | null;
64956
+ unit: string | null;
64957
+ updated_at: string;
64958
+ vat_code: string | null;
64959
+ };
64960
+ Insert: {
64961
+ account_key?: string;
64962
+ barcode?: string | null;
64963
+ code?: string | null;
64964
+ cost_price?: number | null;
64965
+ created_at?: string;
64966
+ description?: string | null;
64967
+ division_code?: number | null;
64968
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64969
+ exact_id: string;
64970
+ exact_modified?: string | null;
64971
+ exact_timestamp?: number | null;
64972
+ gl_account_code?: string | null;
64973
+ id?: string;
64974
+ is_active?: boolean;
64975
+ is_sales_item?: boolean | null;
64976
+ item_type?: string | null;
64977
+ raw?: import("../integrations/supabase/types").Json | null;
64978
+ sales_price?: number | null;
64979
+ unit?: string | null;
64980
+ updated_at?: string;
64981
+ vat_code?: string | null;
64982
+ };
64983
+ Update: {
64984
+ account_key?: string;
64985
+ barcode?: string | null;
64986
+ code?: string | null;
64987
+ cost_price?: number | null;
64988
+ created_at?: string;
64989
+ description?: string | null;
64990
+ division_code?: number | null;
64991
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64992
+ exact_id?: string;
64993
+ exact_modified?: string | null;
64994
+ exact_timestamp?: number | null;
64995
+ gl_account_code?: string | null;
64996
+ id?: string;
64997
+ is_active?: boolean;
64998
+ is_sales_item?: boolean | null;
64999
+ item_type?: string | null;
65000
+ raw?: import("../integrations/supabase/types").Json | null;
65001
+ sales_price?: number | null;
65002
+ unit?: string | null;
65003
+ updated_at?: string;
65004
+ vat_code?: string | null;
65005
+ };
65006
+ Relationships: [];
65007
+ };
65008
+ exact_auth_sync_log: {
65009
+ Row: {
65010
+ account_key: string;
65011
+ calls_used: number;
65012
+ created_at: string;
65013
+ domain: string;
65014
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65015
+ error: string | null;
65016
+ finished_at: string | null;
65017
+ id: string;
65018
+ ok: boolean;
65019
+ records: number;
65020
+ started_at: string;
65021
+ };
65022
+ Insert: {
65023
+ account_key?: string;
65024
+ calls_used?: number;
65025
+ created_at?: string;
65026
+ domain: string;
65027
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65028
+ error?: string | null;
65029
+ finished_at?: string | null;
65030
+ id?: string;
65031
+ ok?: boolean;
65032
+ records?: number;
65033
+ started_at?: string;
65034
+ };
65035
+ Update: {
65036
+ account_key?: string;
65037
+ calls_used?: number;
65038
+ created_at?: string;
65039
+ domain?: string;
65040
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65041
+ error?: string | null;
65042
+ finished_at?: string | null;
65043
+ id?: string;
65044
+ ok?: boolean;
65045
+ records?: number;
65046
+ started_at?: string;
65047
+ };
65048
+ Relationships: [];
65049
+ };
65050
+ exact_auth_sync_state: {
65051
+ Row: {
65052
+ account_key: string;
65053
+ created_at: string;
65054
+ cursor_timestamp: number;
65055
+ division_code: number | null;
65056
+ domain: string;
65057
+ duration_ms: number | null;
65058
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65059
+ initial_sync_done: boolean;
65060
+ last_error: string | null;
65061
+ last_run_at: string | null;
65062
+ last_success_at: string | null;
65063
+ locked_at: string | null;
65064
+ needs_initial_sync: boolean;
65065
+ record_count: number;
65066
+ updated_at: string;
65067
+ };
65068
+ Insert: {
65069
+ account_key?: string;
65070
+ created_at?: string;
65071
+ cursor_timestamp?: number;
65072
+ division_code?: number | null;
65073
+ domain: string;
65074
+ duration_ms?: number | null;
65075
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65076
+ initial_sync_done?: boolean;
65077
+ last_error?: string | null;
65078
+ last_run_at?: string | null;
65079
+ last_success_at?: string | null;
65080
+ locked_at?: string | null;
65081
+ needs_initial_sync?: boolean;
65082
+ record_count?: number;
65083
+ updated_at?: string;
65084
+ };
65085
+ Update: {
65086
+ account_key?: string;
65087
+ created_at?: string;
65088
+ cursor_timestamp?: number;
65089
+ division_code?: number | null;
65090
+ domain?: string;
65091
+ duration_ms?: number | null;
65092
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
65093
+ initial_sync_done?: boolean;
65094
+ last_error?: string | null;
65095
+ last_run_at?: string | null;
65096
+ last_success_at?: string | null;
65097
+ locked_at?: string | null;
65098
+ needs_initial_sync?: boolean;
65099
+ record_count?: number;
65100
+ updated_at?: string;
65101
+ };
65102
+ Relationships: [];
65103
+ };
63166
65104
  exact_bulk_operation_items: {
63167
65105
  Row: {
63168
65106
  attempts: number;
@@ -69663,6 +71601,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
69663
71601
  };
69664
71602
  offer_settings: {
69665
71603
  Row: {
71604
+ brand_name: string | null;
69666
71605
  button_color: string;
69667
71606
  created_at: string;
69668
71607
  default_countries: string[];
@@ -69684,6 +71623,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
69684
71623
  updated_at: string;
69685
71624
  };
69686
71625
  Insert: {
71626
+ brand_name?: string | null;
69687
71627
  button_color?: string;
69688
71628
  created_at?: string;
69689
71629
  default_countries?: string[];
@@ -69705,6 +71645,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
69705
71645
  updated_at?: string;
69706
71646
  };
69707
71647
  Update: {
71648
+ brand_name?: string | null;
69708
71649
  button_color?: string;
69709
71650
  created_at?: string;
69710
71651
  default_countries?: string[];
@@ -77555,6 +79496,21 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
77555
79496
  Args: never;
77556
79497
  Returns: string;
77557
79498
  };
79499
+ exact_auth_consume_calls: {
79500
+ Args: {
79501
+ _account_key: string;
79502
+ _calls?: number;
79503
+ _day_limit?: number;
79504
+ _division_code: number;
79505
+ _environment: string;
79506
+ _minute_limit?: number;
79507
+ };
79508
+ Returns: import("../integrations/supabase/types").Json;
79509
+ };
79510
+ exact_auth_prune_sync_log: {
79511
+ Args: never;
79512
+ Returns: undefined;
79513
+ };
77558
79514
  exact_decrypt: {
77559
79515
  Args: {
77560
79516
  cipher: string;
@@ -77764,6 +79720,10 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
77764
79720
  };
77765
79721
  Returns: number;
77766
79722
  };
79723
+ get_offer_branding: {
79724
+ Args: never;
79725
+ Returns: import("../integrations/supabase/types").Json;
79726
+ };
77767
79727
  get_offer_by_link_code: {
77768
79728
  Args: {
77769
79729
  p_code: string;
@@ -83116,6 +85076,474 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
83116
85076
  referencedColumns: ["id"];
83117
85077
  }];
83118
85078
  };
85079
+ exact_auth_call_budget: {
85080
+ Row: {
85081
+ account_key: string;
85082
+ day_count: number;
85083
+ day_date: string;
85084
+ division_code: number;
85085
+ environment: string;
85086
+ minute_count: number;
85087
+ minute_window: string;
85088
+ updated_at: string;
85089
+ };
85090
+ Insert: {
85091
+ account_key?: string;
85092
+ day_count?: number;
85093
+ day_date?: string;
85094
+ division_code?: number;
85095
+ environment: string;
85096
+ minute_count?: number;
85097
+ minute_window?: string;
85098
+ updated_at?: string;
85099
+ };
85100
+ Update: {
85101
+ account_key?: string;
85102
+ day_count?: number;
85103
+ day_date?: string;
85104
+ division_code?: number;
85105
+ environment?: string;
85106
+ minute_count?: number;
85107
+ minute_window?: string;
85108
+ updated_at?: string;
85109
+ };
85110
+ Relationships: [];
85111
+ };
85112
+ exact_auth_customers: {
85113
+ Row: {
85114
+ account_key: string;
85115
+ address_line1: string | null;
85116
+ chamber_of_commerce: string | null;
85117
+ city: string | null;
85118
+ code: string | null;
85119
+ country: string | null;
85120
+ created_at: string;
85121
+ currency: string | null;
85122
+ division_code: number | null;
85123
+ email: string | null;
85124
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85125
+ exact_id: string;
85126
+ exact_modified: string | null;
85127
+ exact_timestamp: number | null;
85128
+ id: string;
85129
+ is_active: boolean;
85130
+ name: string | null;
85131
+ phone: string | null;
85132
+ postcode: string | null;
85133
+ raw: import("../integrations/supabase/types").Json | null;
85134
+ status: string | null;
85135
+ updated_at: string;
85136
+ vat_number: string | null;
85137
+ website: string | null;
85138
+ };
85139
+ Insert: {
85140
+ account_key?: string;
85141
+ address_line1?: string | null;
85142
+ chamber_of_commerce?: string | null;
85143
+ city?: string | null;
85144
+ code?: string | null;
85145
+ country?: string | null;
85146
+ created_at?: string;
85147
+ currency?: string | null;
85148
+ division_code?: number | null;
85149
+ email?: string | null;
85150
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85151
+ exact_id: string;
85152
+ exact_modified?: string | null;
85153
+ exact_timestamp?: number | null;
85154
+ id?: string;
85155
+ is_active?: boolean;
85156
+ name?: string | null;
85157
+ phone?: string | null;
85158
+ postcode?: string | null;
85159
+ raw?: import("../integrations/supabase/types").Json | null;
85160
+ status?: string | null;
85161
+ updated_at?: string;
85162
+ vat_number?: string | null;
85163
+ website?: string | null;
85164
+ };
85165
+ Update: {
85166
+ account_key?: string;
85167
+ address_line1?: string | null;
85168
+ chamber_of_commerce?: string | null;
85169
+ city?: string | null;
85170
+ code?: string | null;
85171
+ country?: string | null;
85172
+ created_at?: string;
85173
+ currency?: string | null;
85174
+ division_code?: number | null;
85175
+ email?: string | null;
85176
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85177
+ exact_id?: string;
85178
+ exact_modified?: string | null;
85179
+ exact_timestamp?: number | null;
85180
+ id?: string;
85181
+ is_active?: boolean;
85182
+ name?: string | null;
85183
+ phone?: string | null;
85184
+ postcode?: string | null;
85185
+ raw?: import("../integrations/supabase/types").Json | null;
85186
+ status?: string | null;
85187
+ updated_at?: string;
85188
+ vat_number?: string | null;
85189
+ website?: string | null;
85190
+ };
85191
+ Relationships: [];
85192
+ };
85193
+ exact_auth_divisions: {
85194
+ Row: {
85195
+ account_key: string;
85196
+ company_name: string | null;
85197
+ created_at: string;
85198
+ division_code: number | null;
85199
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85200
+ id: string;
85201
+ last_synced_at: string | null;
85202
+ updated_at: string;
85203
+ };
85204
+ Insert: {
85205
+ account_key?: string;
85206
+ company_name?: string | null;
85207
+ created_at?: string;
85208
+ division_code?: number | null;
85209
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85210
+ id?: string;
85211
+ last_synced_at?: string | null;
85212
+ updated_at?: string;
85213
+ };
85214
+ Update: {
85215
+ account_key?: string;
85216
+ company_name?: string | null;
85217
+ created_at?: string;
85218
+ division_code?: number | null;
85219
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85220
+ id?: string;
85221
+ last_synced_at?: string | null;
85222
+ updated_at?: string;
85223
+ };
85224
+ Relationships: [];
85225
+ };
85226
+ exact_auth_invoice_lines: {
85227
+ Row: {
85228
+ account_key: string;
85229
+ amount_excl: number | null;
85230
+ created_at: string;
85231
+ description: string | null;
85232
+ discount: number | null;
85233
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85234
+ exact_id: string;
85235
+ exact_timestamp: number | null;
85236
+ id: string;
85237
+ invoice_exact_id: string;
85238
+ item_code: string | null;
85239
+ item_exact_id: string | null;
85240
+ line_number: number | null;
85241
+ quantity: number | null;
85242
+ raw: import("../integrations/supabase/types").Json | null;
85243
+ unit_price: number | null;
85244
+ updated_at: string;
85245
+ vat_amount: number | null;
85246
+ vat_code: string | null;
85247
+ };
85248
+ Insert: {
85249
+ account_key?: string;
85250
+ amount_excl?: number | null;
85251
+ created_at?: string;
85252
+ description?: string | null;
85253
+ discount?: number | null;
85254
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85255
+ exact_id: string;
85256
+ exact_timestamp?: number | null;
85257
+ id?: string;
85258
+ invoice_exact_id: string;
85259
+ item_code?: string | null;
85260
+ item_exact_id?: string | null;
85261
+ line_number?: number | null;
85262
+ quantity?: number | null;
85263
+ raw?: import("../integrations/supabase/types").Json | null;
85264
+ unit_price?: number | null;
85265
+ updated_at?: string;
85266
+ vat_amount?: number | null;
85267
+ vat_code?: string | null;
85268
+ };
85269
+ Update: {
85270
+ account_key?: string;
85271
+ amount_excl?: number | null;
85272
+ created_at?: string;
85273
+ description?: string | null;
85274
+ discount?: number | null;
85275
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85276
+ exact_id?: string;
85277
+ exact_timestamp?: number | null;
85278
+ id?: string;
85279
+ invoice_exact_id?: string;
85280
+ item_code?: string | null;
85281
+ item_exact_id?: string | null;
85282
+ line_number?: number | null;
85283
+ quantity?: number | null;
85284
+ raw?: import("../integrations/supabase/types").Json | null;
85285
+ unit_price?: number | null;
85286
+ updated_at?: string;
85287
+ vat_amount?: number | null;
85288
+ vat_code?: string | null;
85289
+ };
85290
+ Relationships: [];
85291
+ };
85292
+ exact_auth_invoices: {
85293
+ Row: {
85294
+ account_key: string;
85295
+ amount_excl: number | null;
85296
+ amount_incl: number | null;
85297
+ amount_open: number | null;
85298
+ created_at: string;
85299
+ currency: string | null;
85300
+ customer_code: string | null;
85301
+ customer_exact_id: string | null;
85302
+ customer_name: string | null;
85303
+ description: string | null;
85304
+ division_code: number | null;
85305
+ due_date: string | null;
85306
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85307
+ exact_id: string;
85308
+ exact_modified: string | null;
85309
+ exact_timestamp: number | null;
85310
+ id: string;
85311
+ invoice_date: string | null;
85312
+ invoice_number: string | null;
85313
+ order_number: string | null;
85314
+ paid_at: string | null;
85315
+ payment_status: string;
85316
+ raw: import("../integrations/supabase/types").Json | null;
85317
+ receivable_synced_at: string | null;
85318
+ status_code: number | null;
85319
+ updated_at: string;
85320
+ };
85321
+ Insert: {
85322
+ account_key?: string;
85323
+ amount_excl?: number | null;
85324
+ amount_incl?: number | null;
85325
+ amount_open?: number | null;
85326
+ created_at?: string;
85327
+ currency?: string | null;
85328
+ customer_code?: string | null;
85329
+ customer_exact_id?: string | null;
85330
+ customer_name?: string | null;
85331
+ description?: string | null;
85332
+ division_code?: number | null;
85333
+ due_date?: string | null;
85334
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85335
+ exact_id: string;
85336
+ exact_modified?: string | null;
85337
+ exact_timestamp?: number | null;
85338
+ id?: string;
85339
+ invoice_date?: string | null;
85340
+ invoice_number?: string | null;
85341
+ order_number?: string | null;
85342
+ paid_at?: string | null;
85343
+ payment_status?: string;
85344
+ raw?: import("../integrations/supabase/types").Json | null;
85345
+ receivable_synced_at?: string | null;
85346
+ status_code?: number | null;
85347
+ updated_at?: string;
85348
+ };
85349
+ Update: {
85350
+ account_key?: string;
85351
+ amount_excl?: number | null;
85352
+ amount_incl?: number | null;
85353
+ amount_open?: number | null;
85354
+ created_at?: string;
85355
+ currency?: string | null;
85356
+ customer_code?: string | null;
85357
+ customer_exact_id?: string | null;
85358
+ customer_name?: string | null;
85359
+ description?: string | null;
85360
+ division_code?: number | null;
85361
+ due_date?: string | null;
85362
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85363
+ exact_id?: string;
85364
+ exact_modified?: string | null;
85365
+ exact_timestamp?: number | null;
85366
+ id?: string;
85367
+ invoice_date?: string | null;
85368
+ invoice_number?: string | null;
85369
+ order_number?: string | null;
85370
+ paid_at?: string | null;
85371
+ payment_status?: string;
85372
+ raw?: import("../integrations/supabase/types").Json | null;
85373
+ receivable_synced_at?: string | null;
85374
+ status_code?: number | null;
85375
+ updated_at?: string;
85376
+ };
85377
+ Relationships: [];
85378
+ };
85379
+ exact_auth_items: {
85380
+ Row: {
85381
+ account_key: string;
85382
+ barcode: string | null;
85383
+ code: string | null;
85384
+ cost_price: number | null;
85385
+ created_at: string;
85386
+ description: string | null;
85387
+ division_code: number | null;
85388
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85389
+ exact_id: string;
85390
+ exact_modified: string | null;
85391
+ exact_timestamp: number | null;
85392
+ gl_account_code: string | null;
85393
+ id: string;
85394
+ is_active: boolean;
85395
+ is_sales_item: boolean | null;
85396
+ item_type: string | null;
85397
+ raw: import("../integrations/supabase/types").Json | null;
85398
+ sales_price: number | null;
85399
+ unit: string | null;
85400
+ updated_at: string;
85401
+ vat_code: string | null;
85402
+ };
85403
+ Insert: {
85404
+ account_key?: string;
85405
+ barcode?: string | null;
85406
+ code?: string | null;
85407
+ cost_price?: number | null;
85408
+ created_at?: string;
85409
+ description?: string | null;
85410
+ division_code?: number | null;
85411
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85412
+ exact_id: string;
85413
+ exact_modified?: string | null;
85414
+ exact_timestamp?: number | null;
85415
+ gl_account_code?: string | null;
85416
+ id?: string;
85417
+ is_active?: boolean;
85418
+ is_sales_item?: boolean | null;
85419
+ item_type?: string | null;
85420
+ raw?: import("../integrations/supabase/types").Json | null;
85421
+ sales_price?: number | null;
85422
+ unit?: string | null;
85423
+ updated_at?: string;
85424
+ vat_code?: string | null;
85425
+ };
85426
+ Update: {
85427
+ account_key?: string;
85428
+ barcode?: string | null;
85429
+ code?: string | null;
85430
+ cost_price?: number | null;
85431
+ created_at?: string;
85432
+ description?: string | null;
85433
+ division_code?: number | null;
85434
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85435
+ exact_id?: string;
85436
+ exact_modified?: string | null;
85437
+ exact_timestamp?: number | null;
85438
+ gl_account_code?: string | null;
85439
+ id?: string;
85440
+ is_active?: boolean;
85441
+ is_sales_item?: boolean | null;
85442
+ item_type?: string | null;
85443
+ raw?: import("../integrations/supabase/types").Json | null;
85444
+ sales_price?: number | null;
85445
+ unit?: string | null;
85446
+ updated_at?: string;
85447
+ vat_code?: string | null;
85448
+ };
85449
+ Relationships: [];
85450
+ };
85451
+ exact_auth_sync_log: {
85452
+ Row: {
85453
+ account_key: string;
85454
+ calls_used: number;
85455
+ created_at: string;
85456
+ domain: string;
85457
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85458
+ error: string | null;
85459
+ finished_at: string | null;
85460
+ id: string;
85461
+ ok: boolean;
85462
+ records: number;
85463
+ started_at: string;
85464
+ };
85465
+ Insert: {
85466
+ account_key?: string;
85467
+ calls_used?: number;
85468
+ created_at?: string;
85469
+ domain: string;
85470
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85471
+ error?: string | null;
85472
+ finished_at?: string | null;
85473
+ id?: string;
85474
+ ok?: boolean;
85475
+ records?: number;
85476
+ started_at?: string;
85477
+ };
85478
+ Update: {
85479
+ account_key?: string;
85480
+ calls_used?: number;
85481
+ created_at?: string;
85482
+ domain?: string;
85483
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85484
+ error?: string | null;
85485
+ finished_at?: string | null;
85486
+ id?: string;
85487
+ ok?: boolean;
85488
+ records?: number;
85489
+ started_at?: string;
85490
+ };
85491
+ Relationships: [];
85492
+ };
85493
+ exact_auth_sync_state: {
85494
+ Row: {
85495
+ account_key: string;
85496
+ created_at: string;
85497
+ cursor_timestamp: number;
85498
+ division_code: number | null;
85499
+ domain: string;
85500
+ duration_ms: number | null;
85501
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85502
+ initial_sync_done: boolean;
85503
+ last_error: string | null;
85504
+ last_run_at: string | null;
85505
+ last_success_at: string | null;
85506
+ locked_at: string | null;
85507
+ needs_initial_sync: boolean;
85508
+ record_count: number;
85509
+ updated_at: string;
85510
+ };
85511
+ Insert: {
85512
+ account_key?: string;
85513
+ created_at?: string;
85514
+ cursor_timestamp?: number;
85515
+ division_code?: number | null;
85516
+ domain: string;
85517
+ duration_ms?: number | null;
85518
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85519
+ initial_sync_done?: boolean;
85520
+ last_error?: string | null;
85521
+ last_run_at?: string | null;
85522
+ last_success_at?: string | null;
85523
+ locked_at?: string | null;
85524
+ needs_initial_sync?: boolean;
85525
+ record_count?: number;
85526
+ updated_at?: string;
85527
+ };
85528
+ Update: {
85529
+ account_key?: string;
85530
+ created_at?: string;
85531
+ cursor_timestamp?: number;
85532
+ division_code?: number | null;
85533
+ domain?: string;
85534
+ duration_ms?: number | null;
85535
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85536
+ initial_sync_done?: boolean;
85537
+ last_error?: string | null;
85538
+ last_run_at?: string | null;
85539
+ last_success_at?: string | null;
85540
+ locked_at?: string | null;
85541
+ needs_initial_sync?: boolean;
85542
+ record_count?: number;
85543
+ updated_at?: string;
85544
+ };
85545
+ Relationships: [];
85546
+ };
83119
85547
  exact_bulk_operation_items: {
83120
85548
  Row: {
83121
85549
  attempts: number;
@@ -89616,6 +92044,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
89616
92044
  };
89617
92045
  offer_settings: {
89618
92046
  Row: {
92047
+ brand_name: string | null;
89619
92048
  button_color: string;
89620
92049
  created_at: string;
89621
92050
  default_countries: string[];
@@ -89637,6 +92066,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
89637
92066
  updated_at: string;
89638
92067
  };
89639
92068
  Insert: {
92069
+ brand_name?: string | null;
89640
92070
  button_color?: string;
89641
92071
  created_at?: string;
89642
92072
  default_countries?: string[];
@@ -89658,6 +92088,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
89658
92088
  updated_at?: string;
89659
92089
  };
89660
92090
  Update: {
92091
+ brand_name?: string | null;
89661
92092
  button_color?: string;
89662
92093
  created_at?: string;
89663
92094
  default_countries?: string[];
@@ -97508,6 +99939,21 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
97508
99939
  Args: never;
97509
99940
  Returns: string;
97510
99941
  };
99942
+ exact_auth_consume_calls: {
99943
+ Args: {
99944
+ _account_key: string;
99945
+ _calls?: number;
99946
+ _day_limit?: number;
99947
+ _division_code: number;
99948
+ _environment: string;
99949
+ _minute_limit?: number;
99950
+ };
99951
+ Returns: import("../integrations/supabase/types").Json;
99952
+ };
99953
+ exact_auth_prune_sync_log: {
99954
+ Args: never;
99955
+ Returns: undefined;
99956
+ };
97511
99957
  exact_decrypt: {
97512
99958
  Args: {
97513
99959
  cipher: string;
@@ -97717,6 +100163,10 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
97717
100163
  };
97718
100164
  Returns: number;
97719
100165
  };
100166
+ get_offer_branding: {
100167
+ Args: never;
100168
+ Returns: import("../integrations/supabase/types").Json;
100169
+ };
97720
100170
  get_offer_by_link_code: {
97721
100171
  Args: {
97722
100172
  p_code: string;
@@ -103061,6 +105511,474 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
103061
105511
  referencedColumns: ["id"];
103062
105512
  }];
103063
105513
  };
105514
+ exact_auth_call_budget: {
105515
+ Row: {
105516
+ account_key: string;
105517
+ day_count: number;
105518
+ day_date: string;
105519
+ division_code: number;
105520
+ environment: string;
105521
+ minute_count: number;
105522
+ minute_window: string;
105523
+ updated_at: string;
105524
+ };
105525
+ Insert: {
105526
+ account_key?: string;
105527
+ day_count?: number;
105528
+ day_date?: string;
105529
+ division_code?: number;
105530
+ environment: string;
105531
+ minute_count?: number;
105532
+ minute_window?: string;
105533
+ updated_at?: string;
105534
+ };
105535
+ Update: {
105536
+ account_key?: string;
105537
+ day_count?: number;
105538
+ day_date?: string;
105539
+ division_code?: number;
105540
+ environment?: string;
105541
+ minute_count?: number;
105542
+ minute_window?: string;
105543
+ updated_at?: string;
105544
+ };
105545
+ Relationships: [];
105546
+ };
105547
+ exact_auth_customers: {
105548
+ Row: {
105549
+ account_key: string;
105550
+ address_line1: string | null;
105551
+ chamber_of_commerce: string | null;
105552
+ city: string | null;
105553
+ code: string | null;
105554
+ country: string | null;
105555
+ created_at: string;
105556
+ currency: string | null;
105557
+ division_code: number | null;
105558
+ email: string | null;
105559
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105560
+ exact_id: string;
105561
+ exact_modified: string | null;
105562
+ exact_timestamp: number | null;
105563
+ id: string;
105564
+ is_active: boolean;
105565
+ name: string | null;
105566
+ phone: string | null;
105567
+ postcode: string | null;
105568
+ raw: import("../integrations/supabase/types").Json | null;
105569
+ status: string | null;
105570
+ updated_at: string;
105571
+ vat_number: string | null;
105572
+ website: string | null;
105573
+ };
105574
+ Insert: {
105575
+ account_key?: string;
105576
+ address_line1?: string | null;
105577
+ chamber_of_commerce?: string | null;
105578
+ city?: string | null;
105579
+ code?: string | null;
105580
+ country?: string | null;
105581
+ created_at?: string;
105582
+ currency?: string | null;
105583
+ division_code?: number | null;
105584
+ email?: string | null;
105585
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105586
+ exact_id: string;
105587
+ exact_modified?: string | null;
105588
+ exact_timestamp?: number | null;
105589
+ id?: string;
105590
+ is_active?: boolean;
105591
+ name?: string | null;
105592
+ phone?: string | null;
105593
+ postcode?: string | null;
105594
+ raw?: import("../integrations/supabase/types").Json | null;
105595
+ status?: string | null;
105596
+ updated_at?: string;
105597
+ vat_number?: string | null;
105598
+ website?: string | null;
105599
+ };
105600
+ Update: {
105601
+ account_key?: string;
105602
+ address_line1?: string | null;
105603
+ chamber_of_commerce?: string | null;
105604
+ city?: string | null;
105605
+ code?: string | null;
105606
+ country?: string | null;
105607
+ created_at?: string;
105608
+ currency?: string | null;
105609
+ division_code?: number | null;
105610
+ email?: string | null;
105611
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105612
+ exact_id?: string;
105613
+ exact_modified?: string | null;
105614
+ exact_timestamp?: number | null;
105615
+ id?: string;
105616
+ is_active?: boolean;
105617
+ name?: string | null;
105618
+ phone?: string | null;
105619
+ postcode?: string | null;
105620
+ raw?: import("../integrations/supabase/types").Json | null;
105621
+ status?: string | null;
105622
+ updated_at?: string;
105623
+ vat_number?: string | null;
105624
+ website?: string | null;
105625
+ };
105626
+ Relationships: [];
105627
+ };
105628
+ exact_auth_divisions: {
105629
+ Row: {
105630
+ account_key: string;
105631
+ company_name: string | null;
105632
+ created_at: string;
105633
+ division_code: number | null;
105634
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105635
+ id: string;
105636
+ last_synced_at: string | null;
105637
+ updated_at: string;
105638
+ };
105639
+ Insert: {
105640
+ account_key?: string;
105641
+ company_name?: string | null;
105642
+ created_at?: string;
105643
+ division_code?: number | null;
105644
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105645
+ id?: string;
105646
+ last_synced_at?: string | null;
105647
+ updated_at?: string;
105648
+ };
105649
+ Update: {
105650
+ account_key?: string;
105651
+ company_name?: string | null;
105652
+ created_at?: string;
105653
+ division_code?: number | null;
105654
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105655
+ id?: string;
105656
+ last_synced_at?: string | null;
105657
+ updated_at?: string;
105658
+ };
105659
+ Relationships: [];
105660
+ };
105661
+ exact_auth_invoice_lines: {
105662
+ Row: {
105663
+ account_key: string;
105664
+ amount_excl: number | null;
105665
+ created_at: string;
105666
+ description: string | null;
105667
+ discount: number | null;
105668
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105669
+ exact_id: string;
105670
+ exact_timestamp: number | null;
105671
+ id: string;
105672
+ invoice_exact_id: string;
105673
+ item_code: string | null;
105674
+ item_exact_id: string | null;
105675
+ line_number: number | null;
105676
+ quantity: number | null;
105677
+ raw: import("../integrations/supabase/types").Json | null;
105678
+ unit_price: number | null;
105679
+ updated_at: string;
105680
+ vat_amount: number | null;
105681
+ vat_code: string | null;
105682
+ };
105683
+ Insert: {
105684
+ account_key?: string;
105685
+ amount_excl?: number | null;
105686
+ created_at?: string;
105687
+ description?: string | null;
105688
+ discount?: number | null;
105689
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105690
+ exact_id: string;
105691
+ exact_timestamp?: number | null;
105692
+ id?: string;
105693
+ invoice_exact_id: string;
105694
+ item_code?: string | null;
105695
+ item_exact_id?: string | null;
105696
+ line_number?: number | null;
105697
+ quantity?: number | null;
105698
+ raw?: import("../integrations/supabase/types").Json | null;
105699
+ unit_price?: number | null;
105700
+ updated_at?: string;
105701
+ vat_amount?: number | null;
105702
+ vat_code?: string | null;
105703
+ };
105704
+ Update: {
105705
+ account_key?: string;
105706
+ amount_excl?: number | null;
105707
+ created_at?: string;
105708
+ description?: string | null;
105709
+ discount?: number | null;
105710
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105711
+ exact_id?: string;
105712
+ exact_timestamp?: number | null;
105713
+ id?: string;
105714
+ invoice_exact_id?: string;
105715
+ item_code?: string | null;
105716
+ item_exact_id?: string | null;
105717
+ line_number?: number | null;
105718
+ quantity?: number | null;
105719
+ raw?: import("../integrations/supabase/types").Json | null;
105720
+ unit_price?: number | null;
105721
+ updated_at?: string;
105722
+ vat_amount?: number | null;
105723
+ vat_code?: string | null;
105724
+ };
105725
+ Relationships: [];
105726
+ };
105727
+ exact_auth_invoices: {
105728
+ Row: {
105729
+ account_key: string;
105730
+ amount_excl: number | null;
105731
+ amount_incl: number | null;
105732
+ amount_open: number | null;
105733
+ created_at: string;
105734
+ currency: string | null;
105735
+ customer_code: string | null;
105736
+ customer_exact_id: string | null;
105737
+ customer_name: string | null;
105738
+ description: string | null;
105739
+ division_code: number | null;
105740
+ due_date: string | null;
105741
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105742
+ exact_id: string;
105743
+ exact_modified: string | null;
105744
+ exact_timestamp: number | null;
105745
+ id: string;
105746
+ invoice_date: string | null;
105747
+ invoice_number: string | null;
105748
+ order_number: string | null;
105749
+ paid_at: string | null;
105750
+ payment_status: string;
105751
+ raw: import("../integrations/supabase/types").Json | null;
105752
+ receivable_synced_at: string | null;
105753
+ status_code: number | null;
105754
+ updated_at: string;
105755
+ };
105756
+ Insert: {
105757
+ account_key?: string;
105758
+ amount_excl?: number | null;
105759
+ amount_incl?: number | null;
105760
+ amount_open?: number | null;
105761
+ created_at?: string;
105762
+ currency?: string | null;
105763
+ customer_code?: string | null;
105764
+ customer_exact_id?: string | null;
105765
+ customer_name?: string | null;
105766
+ description?: string | null;
105767
+ division_code?: number | null;
105768
+ due_date?: string | null;
105769
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105770
+ exact_id: string;
105771
+ exact_modified?: string | null;
105772
+ exact_timestamp?: number | null;
105773
+ id?: string;
105774
+ invoice_date?: string | null;
105775
+ invoice_number?: string | null;
105776
+ order_number?: string | null;
105777
+ paid_at?: string | null;
105778
+ payment_status?: string;
105779
+ raw?: import("../integrations/supabase/types").Json | null;
105780
+ receivable_synced_at?: string | null;
105781
+ status_code?: number | null;
105782
+ updated_at?: string;
105783
+ };
105784
+ Update: {
105785
+ account_key?: string;
105786
+ amount_excl?: number | null;
105787
+ amount_incl?: number | null;
105788
+ amount_open?: number | null;
105789
+ created_at?: string;
105790
+ currency?: string | null;
105791
+ customer_code?: string | null;
105792
+ customer_exact_id?: string | null;
105793
+ customer_name?: string | null;
105794
+ description?: string | null;
105795
+ division_code?: number | null;
105796
+ due_date?: string | null;
105797
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105798
+ exact_id?: string;
105799
+ exact_modified?: string | null;
105800
+ exact_timestamp?: number | null;
105801
+ id?: string;
105802
+ invoice_date?: string | null;
105803
+ invoice_number?: string | null;
105804
+ order_number?: string | null;
105805
+ paid_at?: string | null;
105806
+ payment_status?: string;
105807
+ raw?: import("../integrations/supabase/types").Json | null;
105808
+ receivable_synced_at?: string | null;
105809
+ status_code?: number | null;
105810
+ updated_at?: string;
105811
+ };
105812
+ Relationships: [];
105813
+ };
105814
+ exact_auth_items: {
105815
+ Row: {
105816
+ account_key: string;
105817
+ barcode: string | null;
105818
+ code: string | null;
105819
+ cost_price: number | null;
105820
+ created_at: string;
105821
+ description: string | null;
105822
+ division_code: number | null;
105823
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105824
+ exact_id: string;
105825
+ exact_modified: string | null;
105826
+ exact_timestamp: number | null;
105827
+ gl_account_code: string | null;
105828
+ id: string;
105829
+ is_active: boolean;
105830
+ is_sales_item: boolean | null;
105831
+ item_type: string | null;
105832
+ raw: import("../integrations/supabase/types").Json | null;
105833
+ sales_price: number | null;
105834
+ unit: string | null;
105835
+ updated_at: string;
105836
+ vat_code: string | null;
105837
+ };
105838
+ Insert: {
105839
+ account_key?: string;
105840
+ barcode?: string | null;
105841
+ code?: string | null;
105842
+ cost_price?: number | null;
105843
+ created_at?: string;
105844
+ description?: string | null;
105845
+ division_code?: number | null;
105846
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105847
+ exact_id: string;
105848
+ exact_modified?: string | null;
105849
+ exact_timestamp?: number | null;
105850
+ gl_account_code?: string | null;
105851
+ id?: string;
105852
+ is_active?: boolean;
105853
+ is_sales_item?: boolean | null;
105854
+ item_type?: string | null;
105855
+ raw?: import("../integrations/supabase/types").Json | null;
105856
+ sales_price?: number | null;
105857
+ unit?: string | null;
105858
+ updated_at?: string;
105859
+ vat_code?: string | null;
105860
+ };
105861
+ Update: {
105862
+ account_key?: string;
105863
+ barcode?: string | null;
105864
+ code?: string | null;
105865
+ cost_price?: number | null;
105866
+ created_at?: string;
105867
+ description?: string | null;
105868
+ division_code?: number | null;
105869
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105870
+ exact_id?: string;
105871
+ exact_modified?: string | null;
105872
+ exact_timestamp?: number | null;
105873
+ gl_account_code?: string | null;
105874
+ id?: string;
105875
+ is_active?: boolean;
105876
+ is_sales_item?: boolean | null;
105877
+ item_type?: string | null;
105878
+ raw?: import("../integrations/supabase/types").Json | null;
105879
+ sales_price?: number | null;
105880
+ unit?: string | null;
105881
+ updated_at?: string;
105882
+ vat_code?: string | null;
105883
+ };
105884
+ Relationships: [];
105885
+ };
105886
+ exact_auth_sync_log: {
105887
+ Row: {
105888
+ account_key: string;
105889
+ calls_used: number;
105890
+ created_at: string;
105891
+ domain: string;
105892
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105893
+ error: string | null;
105894
+ finished_at: string | null;
105895
+ id: string;
105896
+ ok: boolean;
105897
+ records: number;
105898
+ started_at: string;
105899
+ };
105900
+ Insert: {
105901
+ account_key?: string;
105902
+ calls_used?: number;
105903
+ created_at?: string;
105904
+ domain: string;
105905
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105906
+ error?: string | null;
105907
+ finished_at?: string | null;
105908
+ id?: string;
105909
+ ok?: boolean;
105910
+ records?: number;
105911
+ started_at?: string;
105912
+ };
105913
+ Update: {
105914
+ account_key?: string;
105915
+ calls_used?: number;
105916
+ created_at?: string;
105917
+ domain?: string;
105918
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105919
+ error?: string | null;
105920
+ finished_at?: string | null;
105921
+ id?: string;
105922
+ ok?: boolean;
105923
+ records?: number;
105924
+ started_at?: string;
105925
+ };
105926
+ Relationships: [];
105927
+ };
105928
+ exact_auth_sync_state: {
105929
+ Row: {
105930
+ account_key: string;
105931
+ created_at: string;
105932
+ cursor_timestamp: number;
105933
+ division_code: number | null;
105934
+ domain: string;
105935
+ duration_ms: number | null;
105936
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105937
+ initial_sync_done: boolean;
105938
+ last_error: string | null;
105939
+ last_run_at: string | null;
105940
+ last_success_at: string | null;
105941
+ locked_at: string | null;
105942
+ needs_initial_sync: boolean;
105943
+ record_count: number;
105944
+ updated_at: string;
105945
+ };
105946
+ Insert: {
105947
+ account_key?: string;
105948
+ created_at?: string;
105949
+ cursor_timestamp?: number;
105950
+ division_code?: number | null;
105951
+ domain: string;
105952
+ duration_ms?: number | null;
105953
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105954
+ initial_sync_done?: boolean;
105955
+ last_error?: string | null;
105956
+ last_run_at?: string | null;
105957
+ last_success_at?: string | null;
105958
+ locked_at?: string | null;
105959
+ needs_initial_sync?: boolean;
105960
+ record_count?: number;
105961
+ updated_at?: string;
105962
+ };
105963
+ Update: {
105964
+ account_key?: string;
105965
+ created_at?: string;
105966
+ cursor_timestamp?: number;
105967
+ division_code?: number | null;
105968
+ domain?: string;
105969
+ duration_ms?: number | null;
105970
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105971
+ initial_sync_done?: boolean;
105972
+ last_error?: string | null;
105973
+ last_run_at?: string | null;
105974
+ last_success_at?: string | null;
105975
+ locked_at?: string | null;
105976
+ needs_initial_sync?: boolean;
105977
+ record_count?: number;
105978
+ updated_at?: string;
105979
+ };
105980
+ Relationships: [];
105981
+ };
103064
105982
  exact_bulk_operation_items: {
103065
105983
  Row: {
103066
105984
  attempts: number;
@@ -109561,6 +112479,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
109561
112479
  };
109562
112480
  offer_settings: {
109563
112481
  Row: {
112482
+ brand_name: string | null;
109564
112483
  button_color: string;
109565
112484
  created_at: string;
109566
112485
  default_countries: string[];
@@ -109582,6 +112501,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
109582
112501
  updated_at: string;
109583
112502
  };
109584
112503
  Insert: {
112504
+ brand_name?: string | null;
109585
112505
  button_color?: string;
109586
112506
  created_at?: string;
109587
112507
  default_countries?: string[];
@@ -109603,6 +112523,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
109603
112523
  updated_at?: string;
109604
112524
  };
109605
112525
  Update: {
112526
+ brand_name?: string | null;
109606
112527
  button_color?: string;
109607
112528
  created_at?: string;
109608
112529
  default_countries?: string[];
@@ -117453,6 +120374,21 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
117453
120374
  Args: never;
117454
120375
  Returns: string;
117455
120376
  };
120377
+ exact_auth_consume_calls: {
120378
+ Args: {
120379
+ _account_key: string;
120380
+ _calls?: number;
120381
+ _day_limit?: number;
120382
+ _division_code: number;
120383
+ _environment: string;
120384
+ _minute_limit?: number;
120385
+ };
120386
+ Returns: import("../integrations/supabase/types").Json;
120387
+ };
120388
+ exact_auth_prune_sync_log: {
120389
+ Args: never;
120390
+ Returns: undefined;
120391
+ };
117456
120392
  exact_decrypt: {
117457
120393
  Args: {
117458
120394
  cipher: string;
@@ -117662,6 +120598,10 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
117662
120598
  };
117663
120599
  Returns: number;
117664
120600
  };
120601
+ get_offer_branding: {
120602
+ Args: never;
120603
+ Returns: import("../integrations/supabase/types").Json;
120604
+ };
117665
120605
  get_offer_by_link_code: {
117666
120606
  Args: {
117667
120607
  p_code: string;
@@ -122879,6 +125819,474 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
122879
125819
  referencedColumns: ["id"];
122880
125820
  }];
122881
125821
  };
125822
+ exact_auth_call_budget: {
125823
+ Row: {
125824
+ account_key: string;
125825
+ day_count: number;
125826
+ day_date: string;
125827
+ division_code: number;
125828
+ environment: string;
125829
+ minute_count: number;
125830
+ minute_window: string;
125831
+ updated_at: string;
125832
+ };
125833
+ Insert: {
125834
+ account_key?: string;
125835
+ day_count?: number;
125836
+ day_date?: string;
125837
+ division_code?: number;
125838
+ environment: string;
125839
+ minute_count?: number;
125840
+ minute_window?: string;
125841
+ updated_at?: string;
125842
+ };
125843
+ Update: {
125844
+ account_key?: string;
125845
+ day_count?: number;
125846
+ day_date?: string;
125847
+ division_code?: number;
125848
+ environment?: string;
125849
+ minute_count?: number;
125850
+ minute_window?: string;
125851
+ updated_at?: string;
125852
+ };
125853
+ Relationships: [];
125854
+ };
125855
+ exact_auth_customers: {
125856
+ Row: {
125857
+ account_key: string;
125858
+ address_line1: string | null;
125859
+ chamber_of_commerce: string | null;
125860
+ city: string | null;
125861
+ code: string | null;
125862
+ country: string | null;
125863
+ created_at: string;
125864
+ currency: string | null;
125865
+ division_code: number | null;
125866
+ email: string | null;
125867
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125868
+ exact_id: string;
125869
+ exact_modified: string | null;
125870
+ exact_timestamp: number | null;
125871
+ id: string;
125872
+ is_active: boolean;
125873
+ name: string | null;
125874
+ phone: string | null;
125875
+ postcode: string | null;
125876
+ raw: import("../integrations/supabase/types").Json | null;
125877
+ status: string | null;
125878
+ updated_at: string;
125879
+ vat_number: string | null;
125880
+ website: string | null;
125881
+ };
125882
+ Insert: {
125883
+ account_key?: string;
125884
+ address_line1?: string | null;
125885
+ chamber_of_commerce?: string | null;
125886
+ city?: string | null;
125887
+ code?: string | null;
125888
+ country?: string | null;
125889
+ created_at?: string;
125890
+ currency?: string | null;
125891
+ division_code?: number | null;
125892
+ email?: string | null;
125893
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125894
+ exact_id: string;
125895
+ exact_modified?: string | null;
125896
+ exact_timestamp?: number | null;
125897
+ id?: string;
125898
+ is_active?: boolean;
125899
+ name?: string | null;
125900
+ phone?: string | null;
125901
+ postcode?: string | null;
125902
+ raw?: import("../integrations/supabase/types").Json | null;
125903
+ status?: string | null;
125904
+ updated_at?: string;
125905
+ vat_number?: string | null;
125906
+ website?: string | null;
125907
+ };
125908
+ Update: {
125909
+ account_key?: string;
125910
+ address_line1?: string | null;
125911
+ chamber_of_commerce?: string | null;
125912
+ city?: string | null;
125913
+ code?: string | null;
125914
+ country?: string | null;
125915
+ created_at?: string;
125916
+ currency?: string | null;
125917
+ division_code?: number | null;
125918
+ email?: string | null;
125919
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125920
+ exact_id?: string;
125921
+ exact_modified?: string | null;
125922
+ exact_timestamp?: number | null;
125923
+ id?: string;
125924
+ is_active?: boolean;
125925
+ name?: string | null;
125926
+ phone?: string | null;
125927
+ postcode?: string | null;
125928
+ raw?: import("../integrations/supabase/types").Json | null;
125929
+ status?: string | null;
125930
+ updated_at?: string;
125931
+ vat_number?: string | null;
125932
+ website?: string | null;
125933
+ };
125934
+ Relationships: [];
125935
+ };
125936
+ exact_auth_divisions: {
125937
+ Row: {
125938
+ account_key: string;
125939
+ company_name: string | null;
125940
+ created_at: string;
125941
+ division_code: number | null;
125942
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125943
+ id: string;
125944
+ last_synced_at: string | null;
125945
+ updated_at: string;
125946
+ };
125947
+ Insert: {
125948
+ account_key?: string;
125949
+ company_name?: string | null;
125950
+ created_at?: string;
125951
+ division_code?: number | null;
125952
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125953
+ id?: string;
125954
+ last_synced_at?: string | null;
125955
+ updated_at?: string;
125956
+ };
125957
+ Update: {
125958
+ account_key?: string;
125959
+ company_name?: string | null;
125960
+ created_at?: string;
125961
+ division_code?: number | null;
125962
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125963
+ id?: string;
125964
+ last_synced_at?: string | null;
125965
+ updated_at?: string;
125966
+ };
125967
+ Relationships: [];
125968
+ };
125969
+ exact_auth_invoice_lines: {
125970
+ Row: {
125971
+ account_key: string;
125972
+ amount_excl: number | null;
125973
+ created_at: string;
125974
+ description: string | null;
125975
+ discount: number | null;
125976
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125977
+ exact_id: string;
125978
+ exact_timestamp: number | null;
125979
+ id: string;
125980
+ invoice_exact_id: string;
125981
+ item_code: string | null;
125982
+ item_exact_id: string | null;
125983
+ line_number: number | null;
125984
+ quantity: number | null;
125985
+ raw: import("../integrations/supabase/types").Json | null;
125986
+ unit_price: number | null;
125987
+ updated_at: string;
125988
+ vat_amount: number | null;
125989
+ vat_code: string | null;
125990
+ };
125991
+ Insert: {
125992
+ account_key?: string;
125993
+ amount_excl?: number | null;
125994
+ created_at?: string;
125995
+ description?: string | null;
125996
+ discount?: number | null;
125997
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125998
+ exact_id: string;
125999
+ exact_timestamp?: number | null;
126000
+ id?: string;
126001
+ invoice_exact_id: string;
126002
+ item_code?: string | null;
126003
+ item_exact_id?: string | null;
126004
+ line_number?: number | null;
126005
+ quantity?: number | null;
126006
+ raw?: import("../integrations/supabase/types").Json | null;
126007
+ unit_price?: number | null;
126008
+ updated_at?: string;
126009
+ vat_amount?: number | null;
126010
+ vat_code?: string | null;
126011
+ };
126012
+ Update: {
126013
+ account_key?: string;
126014
+ amount_excl?: number | null;
126015
+ created_at?: string;
126016
+ description?: string | null;
126017
+ discount?: number | null;
126018
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126019
+ exact_id?: string;
126020
+ exact_timestamp?: number | null;
126021
+ id?: string;
126022
+ invoice_exact_id?: string;
126023
+ item_code?: string | null;
126024
+ item_exact_id?: string | null;
126025
+ line_number?: number | null;
126026
+ quantity?: number | null;
126027
+ raw?: import("../integrations/supabase/types").Json | null;
126028
+ unit_price?: number | null;
126029
+ updated_at?: string;
126030
+ vat_amount?: number | null;
126031
+ vat_code?: string | null;
126032
+ };
126033
+ Relationships: [];
126034
+ };
126035
+ exact_auth_invoices: {
126036
+ Row: {
126037
+ account_key: string;
126038
+ amount_excl: number | null;
126039
+ amount_incl: number | null;
126040
+ amount_open: number | null;
126041
+ created_at: string;
126042
+ currency: string | null;
126043
+ customer_code: string | null;
126044
+ customer_exact_id: string | null;
126045
+ customer_name: string | null;
126046
+ description: string | null;
126047
+ division_code: number | null;
126048
+ due_date: string | null;
126049
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126050
+ exact_id: string;
126051
+ exact_modified: string | null;
126052
+ exact_timestamp: number | null;
126053
+ id: string;
126054
+ invoice_date: string | null;
126055
+ invoice_number: string | null;
126056
+ order_number: string | null;
126057
+ paid_at: string | null;
126058
+ payment_status: string;
126059
+ raw: import("../integrations/supabase/types").Json | null;
126060
+ receivable_synced_at: string | null;
126061
+ status_code: number | null;
126062
+ updated_at: string;
126063
+ };
126064
+ Insert: {
126065
+ account_key?: string;
126066
+ amount_excl?: number | null;
126067
+ amount_incl?: number | null;
126068
+ amount_open?: number | null;
126069
+ created_at?: string;
126070
+ currency?: string | null;
126071
+ customer_code?: string | null;
126072
+ customer_exact_id?: string | null;
126073
+ customer_name?: string | null;
126074
+ description?: string | null;
126075
+ division_code?: number | null;
126076
+ due_date?: string | null;
126077
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126078
+ exact_id: string;
126079
+ exact_modified?: string | null;
126080
+ exact_timestamp?: number | null;
126081
+ id?: string;
126082
+ invoice_date?: string | null;
126083
+ invoice_number?: string | null;
126084
+ order_number?: string | null;
126085
+ paid_at?: string | null;
126086
+ payment_status?: string;
126087
+ raw?: import("../integrations/supabase/types").Json | null;
126088
+ receivable_synced_at?: string | null;
126089
+ status_code?: number | null;
126090
+ updated_at?: string;
126091
+ };
126092
+ Update: {
126093
+ account_key?: string;
126094
+ amount_excl?: number | null;
126095
+ amount_incl?: number | null;
126096
+ amount_open?: number | null;
126097
+ created_at?: string;
126098
+ currency?: string | null;
126099
+ customer_code?: string | null;
126100
+ customer_exact_id?: string | null;
126101
+ customer_name?: string | null;
126102
+ description?: string | null;
126103
+ division_code?: number | null;
126104
+ due_date?: string | null;
126105
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126106
+ exact_id?: string;
126107
+ exact_modified?: string | null;
126108
+ exact_timestamp?: number | null;
126109
+ id?: string;
126110
+ invoice_date?: string | null;
126111
+ invoice_number?: string | null;
126112
+ order_number?: string | null;
126113
+ paid_at?: string | null;
126114
+ payment_status?: string;
126115
+ raw?: import("../integrations/supabase/types").Json | null;
126116
+ receivable_synced_at?: string | null;
126117
+ status_code?: number | null;
126118
+ updated_at?: string;
126119
+ };
126120
+ Relationships: [];
126121
+ };
126122
+ exact_auth_items: {
126123
+ Row: {
126124
+ account_key: string;
126125
+ barcode: string | null;
126126
+ code: string | null;
126127
+ cost_price: number | null;
126128
+ created_at: string;
126129
+ description: string | null;
126130
+ division_code: number | null;
126131
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126132
+ exact_id: string;
126133
+ exact_modified: string | null;
126134
+ exact_timestamp: number | null;
126135
+ gl_account_code: string | null;
126136
+ id: string;
126137
+ is_active: boolean;
126138
+ is_sales_item: boolean | null;
126139
+ item_type: string | null;
126140
+ raw: import("../integrations/supabase/types").Json | null;
126141
+ sales_price: number | null;
126142
+ unit: string | null;
126143
+ updated_at: string;
126144
+ vat_code: string | null;
126145
+ };
126146
+ Insert: {
126147
+ account_key?: string;
126148
+ barcode?: string | null;
126149
+ code?: string | null;
126150
+ cost_price?: number | null;
126151
+ created_at?: string;
126152
+ description?: string | null;
126153
+ division_code?: number | null;
126154
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126155
+ exact_id: string;
126156
+ exact_modified?: string | null;
126157
+ exact_timestamp?: number | null;
126158
+ gl_account_code?: string | null;
126159
+ id?: string;
126160
+ is_active?: boolean;
126161
+ is_sales_item?: boolean | null;
126162
+ item_type?: string | null;
126163
+ raw?: import("../integrations/supabase/types").Json | null;
126164
+ sales_price?: number | null;
126165
+ unit?: string | null;
126166
+ updated_at?: string;
126167
+ vat_code?: string | null;
126168
+ };
126169
+ Update: {
126170
+ account_key?: string;
126171
+ barcode?: string | null;
126172
+ code?: string | null;
126173
+ cost_price?: number | null;
126174
+ created_at?: string;
126175
+ description?: string | null;
126176
+ division_code?: number | null;
126177
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126178
+ exact_id?: string;
126179
+ exact_modified?: string | null;
126180
+ exact_timestamp?: number | null;
126181
+ gl_account_code?: string | null;
126182
+ id?: string;
126183
+ is_active?: boolean;
126184
+ is_sales_item?: boolean | null;
126185
+ item_type?: string | null;
126186
+ raw?: import("../integrations/supabase/types").Json | null;
126187
+ sales_price?: number | null;
126188
+ unit?: string | null;
126189
+ updated_at?: string;
126190
+ vat_code?: string | null;
126191
+ };
126192
+ Relationships: [];
126193
+ };
126194
+ exact_auth_sync_log: {
126195
+ Row: {
126196
+ account_key: string;
126197
+ calls_used: number;
126198
+ created_at: string;
126199
+ domain: string;
126200
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126201
+ error: string | null;
126202
+ finished_at: string | null;
126203
+ id: string;
126204
+ ok: boolean;
126205
+ records: number;
126206
+ started_at: string;
126207
+ };
126208
+ Insert: {
126209
+ account_key?: string;
126210
+ calls_used?: number;
126211
+ created_at?: string;
126212
+ domain: string;
126213
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126214
+ error?: string | null;
126215
+ finished_at?: string | null;
126216
+ id?: string;
126217
+ ok?: boolean;
126218
+ records?: number;
126219
+ started_at?: string;
126220
+ };
126221
+ Update: {
126222
+ account_key?: string;
126223
+ calls_used?: number;
126224
+ created_at?: string;
126225
+ domain?: string;
126226
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126227
+ error?: string | null;
126228
+ finished_at?: string | null;
126229
+ id?: string;
126230
+ ok?: boolean;
126231
+ records?: number;
126232
+ started_at?: string;
126233
+ };
126234
+ Relationships: [];
126235
+ };
126236
+ exact_auth_sync_state: {
126237
+ Row: {
126238
+ account_key: string;
126239
+ created_at: string;
126240
+ cursor_timestamp: number;
126241
+ division_code: number | null;
126242
+ domain: string;
126243
+ duration_ms: number | null;
126244
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126245
+ initial_sync_done: boolean;
126246
+ last_error: string | null;
126247
+ last_run_at: string | null;
126248
+ last_success_at: string | null;
126249
+ locked_at: string | null;
126250
+ needs_initial_sync: boolean;
126251
+ record_count: number;
126252
+ updated_at: string;
126253
+ };
126254
+ Insert: {
126255
+ account_key?: string;
126256
+ created_at?: string;
126257
+ cursor_timestamp?: number;
126258
+ division_code?: number | null;
126259
+ domain: string;
126260
+ duration_ms?: number | null;
126261
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126262
+ initial_sync_done?: boolean;
126263
+ last_error?: string | null;
126264
+ last_run_at?: string | null;
126265
+ last_success_at?: string | null;
126266
+ locked_at?: string | null;
126267
+ needs_initial_sync?: boolean;
126268
+ record_count?: number;
126269
+ updated_at?: string;
126270
+ };
126271
+ Update: {
126272
+ account_key?: string;
126273
+ created_at?: string;
126274
+ cursor_timestamp?: number;
126275
+ division_code?: number | null;
126276
+ domain?: string;
126277
+ duration_ms?: number | null;
126278
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
126279
+ initial_sync_done?: boolean;
126280
+ last_error?: string | null;
126281
+ last_run_at?: string | null;
126282
+ last_success_at?: string | null;
126283
+ locked_at?: string | null;
126284
+ needs_initial_sync?: boolean;
126285
+ record_count?: number;
126286
+ updated_at?: string;
126287
+ };
126288
+ Relationships: [];
126289
+ };
122882
126290
  exact_bulk_operation_items: {
122883
126291
  Row: {
122884
126292
  attempts: number;
@@ -129379,6 +132787,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
129379
132787
  };
129380
132788
  offer_settings: {
129381
132789
  Row: {
132790
+ brand_name: string | null;
129382
132791
  button_color: string;
129383
132792
  created_at: string;
129384
132793
  default_countries: string[];
@@ -129400,6 +132809,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
129400
132809
  updated_at: string;
129401
132810
  };
129402
132811
  Insert: {
132812
+ brand_name?: string | null;
129403
132813
  button_color?: string;
129404
132814
  created_at?: string;
129405
132815
  default_countries?: string[];
@@ -129421,6 +132831,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
129421
132831
  updated_at?: string;
129422
132832
  };
129423
132833
  Update: {
132834
+ brand_name?: string | null;
129424
132835
  button_color?: string;
129425
132836
  created_at?: string;
129426
132837
  default_countries?: string[];
@@ -137271,6 +140682,21 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
137271
140682
  Args: never;
137272
140683
  Returns: string;
137273
140684
  };
140685
+ exact_auth_consume_calls: {
140686
+ Args: {
140687
+ _account_key: string;
140688
+ _calls?: number;
140689
+ _day_limit?: number;
140690
+ _division_code: number;
140691
+ _environment: string;
140692
+ _minute_limit?: number;
140693
+ };
140694
+ Returns: import("../integrations/supabase/types").Json;
140695
+ };
140696
+ exact_auth_prune_sync_log: {
140697
+ Args: never;
140698
+ Returns: undefined;
140699
+ };
137274
140700
  exact_decrypt: {
137275
140701
  Args: {
137276
140702
  cipher: string;
@@ -137480,6 +140906,10 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
137480
140906
  };
137481
140907
  Returns: number;
137482
140908
  };
140909
+ get_offer_branding: {
140910
+ Args: never;
140911
+ Returns: import("../integrations/supabase/types").Json;
140912
+ };
137483
140913
  get_offer_by_link_code: {
137484
140914
  Args: {
137485
140915
  p_code: string;
@@ -142723,6 +146153,474 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
142723
146153
  referencedColumns: ["id"];
142724
146154
  }];
142725
146155
  };
146156
+ exact_auth_call_budget: {
146157
+ Row: {
146158
+ account_key: string;
146159
+ day_count: number;
146160
+ day_date: string;
146161
+ division_code: number;
146162
+ environment: string;
146163
+ minute_count: number;
146164
+ minute_window: string;
146165
+ updated_at: string;
146166
+ };
146167
+ Insert: {
146168
+ account_key?: string;
146169
+ day_count?: number;
146170
+ day_date?: string;
146171
+ division_code?: number;
146172
+ environment: string;
146173
+ minute_count?: number;
146174
+ minute_window?: string;
146175
+ updated_at?: string;
146176
+ };
146177
+ Update: {
146178
+ account_key?: string;
146179
+ day_count?: number;
146180
+ day_date?: string;
146181
+ division_code?: number;
146182
+ environment?: string;
146183
+ minute_count?: number;
146184
+ minute_window?: string;
146185
+ updated_at?: string;
146186
+ };
146187
+ Relationships: [];
146188
+ };
146189
+ exact_auth_customers: {
146190
+ Row: {
146191
+ account_key: string;
146192
+ address_line1: string | null;
146193
+ chamber_of_commerce: string | null;
146194
+ city: string | null;
146195
+ code: string | null;
146196
+ country: string | null;
146197
+ created_at: string;
146198
+ currency: string | null;
146199
+ division_code: number | null;
146200
+ email: string | null;
146201
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146202
+ exact_id: string;
146203
+ exact_modified: string | null;
146204
+ exact_timestamp: number | null;
146205
+ id: string;
146206
+ is_active: boolean;
146207
+ name: string | null;
146208
+ phone: string | null;
146209
+ postcode: string | null;
146210
+ raw: import("../integrations/supabase/types").Json | null;
146211
+ status: string | null;
146212
+ updated_at: string;
146213
+ vat_number: string | null;
146214
+ website: string | null;
146215
+ };
146216
+ Insert: {
146217
+ account_key?: string;
146218
+ address_line1?: string | null;
146219
+ chamber_of_commerce?: string | null;
146220
+ city?: string | null;
146221
+ code?: string | null;
146222
+ country?: string | null;
146223
+ created_at?: string;
146224
+ currency?: string | null;
146225
+ division_code?: number | null;
146226
+ email?: string | null;
146227
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146228
+ exact_id: string;
146229
+ exact_modified?: string | null;
146230
+ exact_timestamp?: number | null;
146231
+ id?: string;
146232
+ is_active?: boolean;
146233
+ name?: string | null;
146234
+ phone?: string | null;
146235
+ postcode?: string | null;
146236
+ raw?: import("../integrations/supabase/types").Json | null;
146237
+ status?: string | null;
146238
+ updated_at?: string;
146239
+ vat_number?: string | null;
146240
+ website?: string | null;
146241
+ };
146242
+ Update: {
146243
+ account_key?: string;
146244
+ address_line1?: string | null;
146245
+ chamber_of_commerce?: string | null;
146246
+ city?: string | null;
146247
+ code?: string | null;
146248
+ country?: string | null;
146249
+ created_at?: string;
146250
+ currency?: string | null;
146251
+ division_code?: number | null;
146252
+ email?: string | null;
146253
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146254
+ exact_id?: string;
146255
+ exact_modified?: string | null;
146256
+ exact_timestamp?: number | null;
146257
+ id?: string;
146258
+ is_active?: boolean;
146259
+ name?: string | null;
146260
+ phone?: string | null;
146261
+ postcode?: string | null;
146262
+ raw?: import("../integrations/supabase/types").Json | null;
146263
+ status?: string | null;
146264
+ updated_at?: string;
146265
+ vat_number?: string | null;
146266
+ website?: string | null;
146267
+ };
146268
+ Relationships: [];
146269
+ };
146270
+ exact_auth_divisions: {
146271
+ Row: {
146272
+ account_key: string;
146273
+ company_name: string | null;
146274
+ created_at: string;
146275
+ division_code: number | null;
146276
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146277
+ id: string;
146278
+ last_synced_at: string | null;
146279
+ updated_at: string;
146280
+ };
146281
+ Insert: {
146282
+ account_key?: string;
146283
+ company_name?: string | null;
146284
+ created_at?: string;
146285
+ division_code?: number | null;
146286
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146287
+ id?: string;
146288
+ last_synced_at?: string | null;
146289
+ updated_at?: string;
146290
+ };
146291
+ Update: {
146292
+ account_key?: string;
146293
+ company_name?: string | null;
146294
+ created_at?: string;
146295
+ division_code?: number | null;
146296
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146297
+ id?: string;
146298
+ last_synced_at?: string | null;
146299
+ updated_at?: string;
146300
+ };
146301
+ Relationships: [];
146302
+ };
146303
+ exact_auth_invoice_lines: {
146304
+ Row: {
146305
+ account_key: string;
146306
+ amount_excl: number | null;
146307
+ created_at: string;
146308
+ description: string | null;
146309
+ discount: number | null;
146310
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146311
+ exact_id: string;
146312
+ exact_timestamp: number | null;
146313
+ id: string;
146314
+ invoice_exact_id: string;
146315
+ item_code: string | null;
146316
+ item_exact_id: string | null;
146317
+ line_number: number | null;
146318
+ quantity: number | null;
146319
+ raw: import("../integrations/supabase/types").Json | null;
146320
+ unit_price: number | null;
146321
+ updated_at: string;
146322
+ vat_amount: number | null;
146323
+ vat_code: string | null;
146324
+ };
146325
+ Insert: {
146326
+ account_key?: string;
146327
+ amount_excl?: number | null;
146328
+ created_at?: string;
146329
+ description?: string | null;
146330
+ discount?: number | null;
146331
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146332
+ exact_id: string;
146333
+ exact_timestamp?: number | null;
146334
+ id?: string;
146335
+ invoice_exact_id: string;
146336
+ item_code?: string | null;
146337
+ item_exact_id?: string | null;
146338
+ line_number?: number | null;
146339
+ quantity?: number | null;
146340
+ raw?: import("../integrations/supabase/types").Json | null;
146341
+ unit_price?: number | null;
146342
+ updated_at?: string;
146343
+ vat_amount?: number | null;
146344
+ vat_code?: string | null;
146345
+ };
146346
+ Update: {
146347
+ account_key?: string;
146348
+ amount_excl?: number | null;
146349
+ created_at?: string;
146350
+ description?: string | null;
146351
+ discount?: number | null;
146352
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146353
+ exact_id?: string;
146354
+ exact_timestamp?: number | null;
146355
+ id?: string;
146356
+ invoice_exact_id?: string;
146357
+ item_code?: string | null;
146358
+ item_exact_id?: string | null;
146359
+ line_number?: number | null;
146360
+ quantity?: number | null;
146361
+ raw?: import("../integrations/supabase/types").Json | null;
146362
+ unit_price?: number | null;
146363
+ updated_at?: string;
146364
+ vat_amount?: number | null;
146365
+ vat_code?: string | null;
146366
+ };
146367
+ Relationships: [];
146368
+ };
146369
+ exact_auth_invoices: {
146370
+ Row: {
146371
+ account_key: string;
146372
+ amount_excl: number | null;
146373
+ amount_incl: number | null;
146374
+ amount_open: number | null;
146375
+ created_at: string;
146376
+ currency: string | null;
146377
+ customer_code: string | null;
146378
+ customer_exact_id: string | null;
146379
+ customer_name: string | null;
146380
+ description: string | null;
146381
+ division_code: number | null;
146382
+ due_date: string | null;
146383
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146384
+ exact_id: string;
146385
+ exact_modified: string | null;
146386
+ exact_timestamp: number | null;
146387
+ id: string;
146388
+ invoice_date: string | null;
146389
+ invoice_number: string | null;
146390
+ order_number: string | null;
146391
+ paid_at: string | null;
146392
+ payment_status: string;
146393
+ raw: import("../integrations/supabase/types").Json | null;
146394
+ receivable_synced_at: string | null;
146395
+ status_code: number | null;
146396
+ updated_at: string;
146397
+ };
146398
+ Insert: {
146399
+ account_key?: string;
146400
+ amount_excl?: number | null;
146401
+ amount_incl?: number | null;
146402
+ amount_open?: number | null;
146403
+ created_at?: string;
146404
+ currency?: string | null;
146405
+ customer_code?: string | null;
146406
+ customer_exact_id?: string | null;
146407
+ customer_name?: string | null;
146408
+ description?: string | null;
146409
+ division_code?: number | null;
146410
+ due_date?: string | null;
146411
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146412
+ exact_id: string;
146413
+ exact_modified?: string | null;
146414
+ exact_timestamp?: number | null;
146415
+ id?: string;
146416
+ invoice_date?: string | null;
146417
+ invoice_number?: string | null;
146418
+ order_number?: string | null;
146419
+ paid_at?: string | null;
146420
+ payment_status?: string;
146421
+ raw?: import("../integrations/supabase/types").Json | null;
146422
+ receivable_synced_at?: string | null;
146423
+ status_code?: number | null;
146424
+ updated_at?: string;
146425
+ };
146426
+ Update: {
146427
+ account_key?: string;
146428
+ amount_excl?: number | null;
146429
+ amount_incl?: number | null;
146430
+ amount_open?: number | null;
146431
+ created_at?: string;
146432
+ currency?: string | null;
146433
+ customer_code?: string | null;
146434
+ customer_exact_id?: string | null;
146435
+ customer_name?: string | null;
146436
+ description?: string | null;
146437
+ division_code?: number | null;
146438
+ due_date?: string | null;
146439
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146440
+ exact_id?: string;
146441
+ exact_modified?: string | null;
146442
+ exact_timestamp?: number | null;
146443
+ id?: string;
146444
+ invoice_date?: string | null;
146445
+ invoice_number?: string | null;
146446
+ order_number?: string | null;
146447
+ paid_at?: string | null;
146448
+ payment_status?: string;
146449
+ raw?: import("../integrations/supabase/types").Json | null;
146450
+ receivable_synced_at?: string | null;
146451
+ status_code?: number | null;
146452
+ updated_at?: string;
146453
+ };
146454
+ Relationships: [];
146455
+ };
146456
+ exact_auth_items: {
146457
+ Row: {
146458
+ account_key: string;
146459
+ barcode: string | null;
146460
+ code: string | null;
146461
+ cost_price: number | null;
146462
+ created_at: string;
146463
+ description: string | null;
146464
+ division_code: number | null;
146465
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146466
+ exact_id: string;
146467
+ exact_modified: string | null;
146468
+ exact_timestamp: number | null;
146469
+ gl_account_code: string | null;
146470
+ id: string;
146471
+ is_active: boolean;
146472
+ is_sales_item: boolean | null;
146473
+ item_type: string | null;
146474
+ raw: import("../integrations/supabase/types").Json | null;
146475
+ sales_price: number | null;
146476
+ unit: string | null;
146477
+ updated_at: string;
146478
+ vat_code: string | null;
146479
+ };
146480
+ Insert: {
146481
+ account_key?: string;
146482
+ barcode?: string | null;
146483
+ code?: string | null;
146484
+ cost_price?: number | null;
146485
+ created_at?: string;
146486
+ description?: string | null;
146487
+ division_code?: number | null;
146488
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146489
+ exact_id: string;
146490
+ exact_modified?: string | null;
146491
+ exact_timestamp?: number | null;
146492
+ gl_account_code?: string | null;
146493
+ id?: string;
146494
+ is_active?: boolean;
146495
+ is_sales_item?: boolean | null;
146496
+ item_type?: string | null;
146497
+ raw?: import("../integrations/supabase/types").Json | null;
146498
+ sales_price?: number | null;
146499
+ unit?: string | null;
146500
+ updated_at?: string;
146501
+ vat_code?: string | null;
146502
+ };
146503
+ Update: {
146504
+ account_key?: string;
146505
+ barcode?: string | null;
146506
+ code?: string | null;
146507
+ cost_price?: number | null;
146508
+ created_at?: string;
146509
+ description?: string | null;
146510
+ division_code?: number | null;
146511
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146512
+ exact_id?: string;
146513
+ exact_modified?: string | null;
146514
+ exact_timestamp?: number | null;
146515
+ gl_account_code?: string | null;
146516
+ id?: string;
146517
+ is_active?: boolean;
146518
+ is_sales_item?: boolean | null;
146519
+ item_type?: string | null;
146520
+ raw?: import("../integrations/supabase/types").Json | null;
146521
+ sales_price?: number | null;
146522
+ unit?: string | null;
146523
+ updated_at?: string;
146524
+ vat_code?: string | null;
146525
+ };
146526
+ Relationships: [];
146527
+ };
146528
+ exact_auth_sync_log: {
146529
+ Row: {
146530
+ account_key: string;
146531
+ calls_used: number;
146532
+ created_at: string;
146533
+ domain: string;
146534
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146535
+ error: string | null;
146536
+ finished_at: string | null;
146537
+ id: string;
146538
+ ok: boolean;
146539
+ records: number;
146540
+ started_at: string;
146541
+ };
146542
+ Insert: {
146543
+ account_key?: string;
146544
+ calls_used?: number;
146545
+ created_at?: string;
146546
+ domain: string;
146547
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146548
+ error?: string | null;
146549
+ finished_at?: string | null;
146550
+ id?: string;
146551
+ ok?: boolean;
146552
+ records?: number;
146553
+ started_at?: string;
146554
+ };
146555
+ Update: {
146556
+ account_key?: string;
146557
+ calls_used?: number;
146558
+ created_at?: string;
146559
+ domain?: string;
146560
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146561
+ error?: string | null;
146562
+ finished_at?: string | null;
146563
+ id?: string;
146564
+ ok?: boolean;
146565
+ records?: number;
146566
+ started_at?: string;
146567
+ };
146568
+ Relationships: [];
146569
+ };
146570
+ exact_auth_sync_state: {
146571
+ Row: {
146572
+ account_key: string;
146573
+ created_at: string;
146574
+ cursor_timestamp: number;
146575
+ division_code: number | null;
146576
+ domain: string;
146577
+ duration_ms: number | null;
146578
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146579
+ initial_sync_done: boolean;
146580
+ last_error: string | null;
146581
+ last_run_at: string | null;
146582
+ last_success_at: string | null;
146583
+ locked_at: string | null;
146584
+ needs_initial_sync: boolean;
146585
+ record_count: number;
146586
+ updated_at: string;
146587
+ };
146588
+ Insert: {
146589
+ account_key?: string;
146590
+ created_at?: string;
146591
+ cursor_timestamp?: number;
146592
+ division_code?: number | null;
146593
+ domain: string;
146594
+ duration_ms?: number | null;
146595
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146596
+ initial_sync_done?: boolean;
146597
+ last_error?: string | null;
146598
+ last_run_at?: string | null;
146599
+ last_success_at?: string | null;
146600
+ locked_at?: string | null;
146601
+ needs_initial_sync?: boolean;
146602
+ record_count?: number;
146603
+ updated_at?: string;
146604
+ };
146605
+ Update: {
146606
+ account_key?: string;
146607
+ created_at?: string;
146608
+ cursor_timestamp?: number;
146609
+ division_code?: number | null;
146610
+ domain?: string;
146611
+ duration_ms?: number | null;
146612
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
146613
+ initial_sync_done?: boolean;
146614
+ last_error?: string | null;
146615
+ last_run_at?: string | null;
146616
+ last_success_at?: string | null;
146617
+ locked_at?: string | null;
146618
+ needs_initial_sync?: boolean;
146619
+ record_count?: number;
146620
+ updated_at?: string;
146621
+ };
146622
+ Relationships: [];
146623
+ };
142726
146624
  exact_bulk_operation_items: {
142727
146625
  Row: {
142728
146626
  attempts: number;
@@ -149223,6 +153121,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
149223
153121
  };
149224
153122
  offer_settings: {
149225
153123
  Row: {
153124
+ brand_name: string | null;
149226
153125
  button_color: string;
149227
153126
  created_at: string;
149228
153127
  default_countries: string[];
@@ -149244,6 +153143,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
149244
153143
  updated_at: string;
149245
153144
  };
149246
153145
  Insert: {
153146
+ brand_name?: string | null;
149247
153147
  button_color?: string;
149248
153148
  created_at?: string;
149249
153149
  default_countries?: string[];
@@ -149265,6 +153165,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
149265
153165
  updated_at?: string;
149266
153166
  };
149267
153167
  Update: {
153168
+ brand_name?: string | null;
149268
153169
  button_color?: string;
149269
153170
  created_at?: string;
149270
153171
  default_countries?: string[];
@@ -157115,6 +161016,21 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
157115
161016
  Args: never;
157116
161017
  Returns: string;
157117
161018
  };
161019
+ exact_auth_consume_calls: {
161020
+ Args: {
161021
+ _account_key: string;
161022
+ _calls?: number;
161023
+ _day_limit?: number;
161024
+ _division_code: number;
161025
+ _environment: string;
161026
+ _minute_limit?: number;
161027
+ };
161028
+ Returns: import("../integrations/supabase/types").Json;
161029
+ };
161030
+ exact_auth_prune_sync_log: {
161031
+ Args: never;
161032
+ Returns: undefined;
161033
+ };
157118
161034
  exact_decrypt: {
157119
161035
  Args: {
157120
161036
  cipher: string;
@@ -157324,6 +161240,10 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
157324
161240
  };
157325
161241
  Returns: number;
157326
161242
  };
161243
+ get_offer_branding: {
161244
+ Args: never;
161245
+ Returns: import("../integrations/supabase/types").Json;
161246
+ };
157327
161247
  get_offer_by_link_code: {
157328
161248
  Args: {
157329
161249
  p_code: string;
@@ -162537,6 +166457,474 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
162537
166457
  referencedColumns: ["id"];
162538
166458
  }];
162539
166459
  };
166460
+ exact_auth_call_budget: {
166461
+ Row: {
166462
+ account_key: string;
166463
+ day_count: number;
166464
+ day_date: string;
166465
+ division_code: number;
166466
+ environment: string;
166467
+ minute_count: number;
166468
+ minute_window: string;
166469
+ updated_at: string;
166470
+ };
166471
+ Insert: {
166472
+ account_key?: string;
166473
+ day_count?: number;
166474
+ day_date?: string;
166475
+ division_code?: number;
166476
+ environment: string;
166477
+ minute_count?: number;
166478
+ minute_window?: string;
166479
+ updated_at?: string;
166480
+ };
166481
+ Update: {
166482
+ account_key?: string;
166483
+ day_count?: number;
166484
+ day_date?: string;
166485
+ division_code?: number;
166486
+ environment?: string;
166487
+ minute_count?: number;
166488
+ minute_window?: string;
166489
+ updated_at?: string;
166490
+ };
166491
+ Relationships: [];
166492
+ };
166493
+ exact_auth_customers: {
166494
+ Row: {
166495
+ account_key: string;
166496
+ address_line1: string | null;
166497
+ chamber_of_commerce: string | null;
166498
+ city: string | null;
166499
+ code: string | null;
166500
+ country: string | null;
166501
+ created_at: string;
166502
+ currency: string | null;
166503
+ division_code: number | null;
166504
+ email: string | null;
166505
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166506
+ exact_id: string;
166507
+ exact_modified: string | null;
166508
+ exact_timestamp: number | null;
166509
+ id: string;
166510
+ is_active: boolean;
166511
+ name: string | null;
166512
+ phone: string | null;
166513
+ postcode: string | null;
166514
+ raw: import("../integrations/supabase/types").Json | null;
166515
+ status: string | null;
166516
+ updated_at: string;
166517
+ vat_number: string | null;
166518
+ website: string | null;
166519
+ };
166520
+ Insert: {
166521
+ account_key?: string;
166522
+ address_line1?: string | null;
166523
+ chamber_of_commerce?: string | null;
166524
+ city?: string | null;
166525
+ code?: string | null;
166526
+ country?: string | null;
166527
+ created_at?: string;
166528
+ currency?: string | null;
166529
+ division_code?: number | null;
166530
+ email?: string | null;
166531
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166532
+ exact_id: string;
166533
+ exact_modified?: string | null;
166534
+ exact_timestamp?: number | null;
166535
+ id?: string;
166536
+ is_active?: boolean;
166537
+ name?: string | null;
166538
+ phone?: string | null;
166539
+ postcode?: string | null;
166540
+ raw?: import("../integrations/supabase/types").Json | null;
166541
+ status?: string | null;
166542
+ updated_at?: string;
166543
+ vat_number?: string | null;
166544
+ website?: string | null;
166545
+ };
166546
+ Update: {
166547
+ account_key?: string;
166548
+ address_line1?: string | null;
166549
+ chamber_of_commerce?: string | null;
166550
+ city?: string | null;
166551
+ code?: string | null;
166552
+ country?: string | null;
166553
+ created_at?: string;
166554
+ currency?: string | null;
166555
+ division_code?: number | null;
166556
+ email?: string | null;
166557
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166558
+ exact_id?: string;
166559
+ exact_modified?: string | null;
166560
+ exact_timestamp?: number | null;
166561
+ id?: string;
166562
+ is_active?: boolean;
166563
+ name?: string | null;
166564
+ phone?: string | null;
166565
+ postcode?: string | null;
166566
+ raw?: import("../integrations/supabase/types").Json | null;
166567
+ status?: string | null;
166568
+ updated_at?: string;
166569
+ vat_number?: string | null;
166570
+ website?: string | null;
166571
+ };
166572
+ Relationships: [];
166573
+ };
166574
+ exact_auth_divisions: {
166575
+ Row: {
166576
+ account_key: string;
166577
+ company_name: string | null;
166578
+ created_at: string;
166579
+ division_code: number | null;
166580
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166581
+ id: string;
166582
+ last_synced_at: string | null;
166583
+ updated_at: string;
166584
+ };
166585
+ Insert: {
166586
+ account_key?: string;
166587
+ company_name?: string | null;
166588
+ created_at?: string;
166589
+ division_code?: number | null;
166590
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166591
+ id?: string;
166592
+ last_synced_at?: string | null;
166593
+ updated_at?: string;
166594
+ };
166595
+ Update: {
166596
+ account_key?: string;
166597
+ company_name?: string | null;
166598
+ created_at?: string;
166599
+ division_code?: number | null;
166600
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166601
+ id?: string;
166602
+ last_synced_at?: string | null;
166603
+ updated_at?: string;
166604
+ };
166605
+ Relationships: [];
166606
+ };
166607
+ exact_auth_invoice_lines: {
166608
+ Row: {
166609
+ account_key: string;
166610
+ amount_excl: number | null;
166611
+ created_at: string;
166612
+ description: string | null;
166613
+ discount: number | null;
166614
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166615
+ exact_id: string;
166616
+ exact_timestamp: number | null;
166617
+ id: string;
166618
+ invoice_exact_id: string;
166619
+ item_code: string | null;
166620
+ item_exact_id: string | null;
166621
+ line_number: number | null;
166622
+ quantity: number | null;
166623
+ raw: import("../integrations/supabase/types").Json | null;
166624
+ unit_price: number | null;
166625
+ updated_at: string;
166626
+ vat_amount: number | null;
166627
+ vat_code: string | null;
166628
+ };
166629
+ Insert: {
166630
+ account_key?: string;
166631
+ amount_excl?: number | null;
166632
+ created_at?: string;
166633
+ description?: string | null;
166634
+ discount?: number | null;
166635
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166636
+ exact_id: string;
166637
+ exact_timestamp?: number | null;
166638
+ id?: string;
166639
+ invoice_exact_id: string;
166640
+ item_code?: string | null;
166641
+ item_exact_id?: string | null;
166642
+ line_number?: number | null;
166643
+ quantity?: number | null;
166644
+ raw?: import("../integrations/supabase/types").Json | null;
166645
+ unit_price?: number | null;
166646
+ updated_at?: string;
166647
+ vat_amount?: number | null;
166648
+ vat_code?: string | null;
166649
+ };
166650
+ Update: {
166651
+ account_key?: string;
166652
+ amount_excl?: number | null;
166653
+ created_at?: string;
166654
+ description?: string | null;
166655
+ discount?: number | null;
166656
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166657
+ exact_id?: string;
166658
+ exact_timestamp?: number | null;
166659
+ id?: string;
166660
+ invoice_exact_id?: string;
166661
+ item_code?: string | null;
166662
+ item_exact_id?: string | null;
166663
+ line_number?: number | null;
166664
+ quantity?: number | null;
166665
+ raw?: import("../integrations/supabase/types").Json | null;
166666
+ unit_price?: number | null;
166667
+ updated_at?: string;
166668
+ vat_amount?: number | null;
166669
+ vat_code?: string | null;
166670
+ };
166671
+ Relationships: [];
166672
+ };
166673
+ exact_auth_invoices: {
166674
+ Row: {
166675
+ account_key: string;
166676
+ amount_excl: number | null;
166677
+ amount_incl: number | null;
166678
+ amount_open: number | null;
166679
+ created_at: string;
166680
+ currency: string | null;
166681
+ customer_code: string | null;
166682
+ customer_exact_id: string | null;
166683
+ customer_name: string | null;
166684
+ description: string | null;
166685
+ division_code: number | null;
166686
+ due_date: string | null;
166687
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166688
+ exact_id: string;
166689
+ exact_modified: string | null;
166690
+ exact_timestamp: number | null;
166691
+ id: string;
166692
+ invoice_date: string | null;
166693
+ invoice_number: string | null;
166694
+ order_number: string | null;
166695
+ paid_at: string | null;
166696
+ payment_status: string;
166697
+ raw: import("../integrations/supabase/types").Json | null;
166698
+ receivable_synced_at: string | null;
166699
+ status_code: number | null;
166700
+ updated_at: string;
166701
+ };
166702
+ Insert: {
166703
+ account_key?: string;
166704
+ amount_excl?: number | null;
166705
+ amount_incl?: number | null;
166706
+ amount_open?: number | null;
166707
+ created_at?: string;
166708
+ currency?: string | null;
166709
+ customer_code?: string | null;
166710
+ customer_exact_id?: string | null;
166711
+ customer_name?: string | null;
166712
+ description?: string | null;
166713
+ division_code?: number | null;
166714
+ due_date?: string | null;
166715
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166716
+ exact_id: string;
166717
+ exact_modified?: string | null;
166718
+ exact_timestamp?: number | null;
166719
+ id?: string;
166720
+ invoice_date?: string | null;
166721
+ invoice_number?: string | null;
166722
+ order_number?: string | null;
166723
+ paid_at?: string | null;
166724
+ payment_status?: string;
166725
+ raw?: import("../integrations/supabase/types").Json | null;
166726
+ receivable_synced_at?: string | null;
166727
+ status_code?: number | null;
166728
+ updated_at?: string;
166729
+ };
166730
+ Update: {
166731
+ account_key?: string;
166732
+ amount_excl?: number | null;
166733
+ amount_incl?: number | null;
166734
+ amount_open?: number | null;
166735
+ created_at?: string;
166736
+ currency?: string | null;
166737
+ customer_code?: string | null;
166738
+ customer_exact_id?: string | null;
166739
+ customer_name?: string | null;
166740
+ description?: string | null;
166741
+ division_code?: number | null;
166742
+ due_date?: string | null;
166743
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166744
+ exact_id?: string;
166745
+ exact_modified?: string | null;
166746
+ exact_timestamp?: number | null;
166747
+ id?: string;
166748
+ invoice_date?: string | null;
166749
+ invoice_number?: string | null;
166750
+ order_number?: string | null;
166751
+ paid_at?: string | null;
166752
+ payment_status?: string;
166753
+ raw?: import("../integrations/supabase/types").Json | null;
166754
+ receivable_synced_at?: string | null;
166755
+ status_code?: number | null;
166756
+ updated_at?: string;
166757
+ };
166758
+ Relationships: [];
166759
+ };
166760
+ exact_auth_items: {
166761
+ Row: {
166762
+ account_key: string;
166763
+ barcode: string | null;
166764
+ code: string | null;
166765
+ cost_price: number | null;
166766
+ created_at: string;
166767
+ description: string | null;
166768
+ division_code: number | null;
166769
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166770
+ exact_id: string;
166771
+ exact_modified: string | null;
166772
+ exact_timestamp: number | null;
166773
+ gl_account_code: string | null;
166774
+ id: string;
166775
+ is_active: boolean;
166776
+ is_sales_item: boolean | null;
166777
+ item_type: string | null;
166778
+ raw: import("../integrations/supabase/types").Json | null;
166779
+ sales_price: number | null;
166780
+ unit: string | null;
166781
+ updated_at: string;
166782
+ vat_code: string | null;
166783
+ };
166784
+ Insert: {
166785
+ account_key?: string;
166786
+ barcode?: string | null;
166787
+ code?: string | null;
166788
+ cost_price?: number | null;
166789
+ created_at?: string;
166790
+ description?: string | null;
166791
+ division_code?: number | null;
166792
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166793
+ exact_id: string;
166794
+ exact_modified?: string | null;
166795
+ exact_timestamp?: number | null;
166796
+ gl_account_code?: string | null;
166797
+ id?: string;
166798
+ is_active?: boolean;
166799
+ is_sales_item?: boolean | null;
166800
+ item_type?: string | null;
166801
+ raw?: import("../integrations/supabase/types").Json | null;
166802
+ sales_price?: number | null;
166803
+ unit?: string | null;
166804
+ updated_at?: string;
166805
+ vat_code?: string | null;
166806
+ };
166807
+ Update: {
166808
+ account_key?: string;
166809
+ barcode?: string | null;
166810
+ code?: string | null;
166811
+ cost_price?: number | null;
166812
+ created_at?: string;
166813
+ description?: string | null;
166814
+ division_code?: number | null;
166815
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166816
+ exact_id?: string;
166817
+ exact_modified?: string | null;
166818
+ exact_timestamp?: number | null;
166819
+ gl_account_code?: string | null;
166820
+ id?: string;
166821
+ is_active?: boolean;
166822
+ is_sales_item?: boolean | null;
166823
+ item_type?: string | null;
166824
+ raw?: import("../integrations/supabase/types").Json | null;
166825
+ sales_price?: number | null;
166826
+ unit?: string | null;
166827
+ updated_at?: string;
166828
+ vat_code?: string | null;
166829
+ };
166830
+ Relationships: [];
166831
+ };
166832
+ exact_auth_sync_log: {
166833
+ Row: {
166834
+ account_key: string;
166835
+ calls_used: number;
166836
+ created_at: string;
166837
+ domain: string;
166838
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166839
+ error: string | null;
166840
+ finished_at: string | null;
166841
+ id: string;
166842
+ ok: boolean;
166843
+ records: number;
166844
+ started_at: string;
166845
+ };
166846
+ Insert: {
166847
+ account_key?: string;
166848
+ calls_used?: number;
166849
+ created_at?: string;
166850
+ domain: string;
166851
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166852
+ error?: string | null;
166853
+ finished_at?: string | null;
166854
+ id?: string;
166855
+ ok?: boolean;
166856
+ records?: number;
166857
+ started_at?: string;
166858
+ };
166859
+ Update: {
166860
+ account_key?: string;
166861
+ calls_used?: number;
166862
+ created_at?: string;
166863
+ domain?: string;
166864
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166865
+ error?: string | null;
166866
+ finished_at?: string | null;
166867
+ id?: string;
166868
+ ok?: boolean;
166869
+ records?: number;
166870
+ started_at?: string;
166871
+ };
166872
+ Relationships: [];
166873
+ };
166874
+ exact_auth_sync_state: {
166875
+ Row: {
166876
+ account_key: string;
166877
+ created_at: string;
166878
+ cursor_timestamp: number;
166879
+ division_code: number | null;
166880
+ domain: string;
166881
+ duration_ms: number | null;
166882
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166883
+ initial_sync_done: boolean;
166884
+ last_error: string | null;
166885
+ last_run_at: string | null;
166886
+ last_success_at: string | null;
166887
+ locked_at: string | null;
166888
+ needs_initial_sync: boolean;
166889
+ record_count: number;
166890
+ updated_at: string;
166891
+ };
166892
+ Insert: {
166893
+ account_key?: string;
166894
+ created_at?: string;
166895
+ cursor_timestamp?: number;
166896
+ division_code?: number | null;
166897
+ domain: string;
166898
+ duration_ms?: number | null;
166899
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166900
+ initial_sync_done?: boolean;
166901
+ last_error?: string | null;
166902
+ last_run_at?: string | null;
166903
+ last_success_at?: string | null;
166904
+ locked_at?: string | null;
166905
+ needs_initial_sync?: boolean;
166906
+ record_count?: number;
166907
+ updated_at?: string;
166908
+ };
166909
+ Update: {
166910
+ account_key?: string;
166911
+ created_at?: string;
166912
+ cursor_timestamp?: number;
166913
+ division_code?: number | null;
166914
+ domain?: string;
166915
+ duration_ms?: number | null;
166916
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
166917
+ initial_sync_done?: boolean;
166918
+ last_error?: string | null;
166919
+ last_run_at?: string | null;
166920
+ last_success_at?: string | null;
166921
+ locked_at?: string | null;
166922
+ needs_initial_sync?: boolean;
166923
+ record_count?: number;
166924
+ updated_at?: string;
166925
+ };
166926
+ Relationships: [];
166927
+ };
162540
166928
  exact_bulk_operation_items: {
162541
166929
  Row: {
162542
166930
  attempts: number;
@@ -169037,6 +173425,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
169037
173425
  };
169038
173426
  offer_settings: {
169039
173427
  Row: {
173428
+ brand_name: string | null;
169040
173429
  button_color: string;
169041
173430
  created_at: string;
169042
173431
  default_countries: string[];
@@ -169058,6 +173447,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
169058
173447
  updated_at: string;
169059
173448
  };
169060
173449
  Insert: {
173450
+ brand_name?: string | null;
169061
173451
  button_color?: string;
169062
173452
  created_at?: string;
169063
173453
  default_countries?: string[];
@@ -169079,6 +173469,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
169079
173469
  updated_at?: string;
169080
173470
  };
169081
173471
  Update: {
173472
+ brand_name?: string | null;
169082
173473
  button_color?: string;
169083
173474
  created_at?: string;
169084
173475
  default_countries?: string[];
@@ -176929,6 +181320,21 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
176929
181320
  Args: never;
176930
181321
  Returns: string;
176931
181322
  };
181323
+ exact_auth_consume_calls: {
181324
+ Args: {
181325
+ _account_key: string;
181326
+ _calls?: number;
181327
+ _day_limit?: number;
181328
+ _division_code: number;
181329
+ _environment: string;
181330
+ _minute_limit?: number;
181331
+ };
181332
+ Returns: import("../integrations/supabase/types").Json;
181333
+ };
181334
+ exact_auth_prune_sync_log: {
181335
+ Args: never;
181336
+ Returns: undefined;
181337
+ };
176932
181338
  exact_decrypt: {
176933
181339
  Args: {
176934
181340
  cipher: string;
@@ -177138,6 +181544,10 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
177138
181544
  };
177139
181545
  Returns: number;
177140
181546
  };
181547
+ get_offer_branding: {
181548
+ Args: never;
181549
+ Returns: import("../integrations/supabase/types").Json;
181550
+ };
177141
181551
  get_offer_by_link_code: {
177142
181552
  Args: {
177143
181553
  p_code: string;