@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
@@ -3560,6 +3560,474 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
3560
3560
  referencedColumns: ["id"];
3561
3561
  }];
3562
3562
  };
3563
+ exact_auth_call_budget: {
3564
+ Row: {
3565
+ account_key: string;
3566
+ day_count: number;
3567
+ day_date: string;
3568
+ division_code: number;
3569
+ environment: string;
3570
+ minute_count: number;
3571
+ minute_window: string;
3572
+ updated_at: string;
3573
+ };
3574
+ Insert: {
3575
+ account_key?: string;
3576
+ day_count?: number;
3577
+ day_date?: string;
3578
+ division_code?: number;
3579
+ environment: string;
3580
+ minute_count?: number;
3581
+ minute_window?: string;
3582
+ updated_at?: string;
3583
+ };
3584
+ Update: {
3585
+ account_key?: string;
3586
+ day_count?: number;
3587
+ day_date?: string;
3588
+ division_code?: number;
3589
+ environment?: string;
3590
+ minute_count?: number;
3591
+ minute_window?: string;
3592
+ updated_at?: string;
3593
+ };
3594
+ Relationships: [];
3595
+ };
3596
+ exact_auth_customers: {
3597
+ Row: {
3598
+ account_key: string;
3599
+ address_line1: string | null;
3600
+ chamber_of_commerce: string | null;
3601
+ city: string | null;
3602
+ code: string | null;
3603
+ country: string | null;
3604
+ created_at: string;
3605
+ currency: string | null;
3606
+ division_code: number | null;
3607
+ email: string | null;
3608
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3609
+ exact_id: string;
3610
+ exact_modified: string | null;
3611
+ exact_timestamp: number | null;
3612
+ id: string;
3613
+ is_active: boolean;
3614
+ name: string | null;
3615
+ phone: string | null;
3616
+ postcode: string | null;
3617
+ raw: import("../integrations/supabase/types").Json | null;
3618
+ status: string | null;
3619
+ updated_at: string;
3620
+ vat_number: string | null;
3621
+ website: string | null;
3622
+ };
3623
+ Insert: {
3624
+ account_key?: string;
3625
+ address_line1?: string | null;
3626
+ chamber_of_commerce?: string | null;
3627
+ city?: string | null;
3628
+ code?: string | null;
3629
+ country?: string | null;
3630
+ created_at?: string;
3631
+ currency?: string | null;
3632
+ division_code?: number | null;
3633
+ email?: string | null;
3634
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3635
+ exact_id: string;
3636
+ exact_modified?: string | null;
3637
+ exact_timestamp?: number | null;
3638
+ id?: string;
3639
+ is_active?: boolean;
3640
+ name?: string | null;
3641
+ phone?: string | null;
3642
+ postcode?: string | null;
3643
+ raw?: import("../integrations/supabase/types").Json | null;
3644
+ status?: string | null;
3645
+ updated_at?: string;
3646
+ vat_number?: string | null;
3647
+ website?: string | null;
3648
+ };
3649
+ Update: {
3650
+ account_key?: string;
3651
+ address_line1?: string | null;
3652
+ chamber_of_commerce?: string | null;
3653
+ city?: string | null;
3654
+ code?: string | null;
3655
+ country?: string | null;
3656
+ created_at?: string;
3657
+ currency?: string | null;
3658
+ division_code?: number | null;
3659
+ email?: string | null;
3660
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3661
+ exact_id?: string;
3662
+ exact_modified?: string | null;
3663
+ exact_timestamp?: number | null;
3664
+ id?: string;
3665
+ is_active?: boolean;
3666
+ name?: string | null;
3667
+ phone?: string | null;
3668
+ postcode?: string | null;
3669
+ raw?: import("../integrations/supabase/types").Json | null;
3670
+ status?: string | null;
3671
+ updated_at?: string;
3672
+ vat_number?: string | null;
3673
+ website?: string | null;
3674
+ };
3675
+ Relationships: [];
3676
+ };
3677
+ exact_auth_divisions: {
3678
+ Row: {
3679
+ account_key: string;
3680
+ company_name: string | null;
3681
+ created_at: string;
3682
+ division_code: number | null;
3683
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3684
+ id: string;
3685
+ last_synced_at: string | null;
3686
+ updated_at: string;
3687
+ };
3688
+ Insert: {
3689
+ account_key?: string;
3690
+ company_name?: string | null;
3691
+ created_at?: string;
3692
+ division_code?: number | null;
3693
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3694
+ id?: string;
3695
+ last_synced_at?: string | null;
3696
+ updated_at?: string;
3697
+ };
3698
+ Update: {
3699
+ account_key?: string;
3700
+ company_name?: string | null;
3701
+ created_at?: string;
3702
+ division_code?: number | null;
3703
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3704
+ id?: string;
3705
+ last_synced_at?: string | null;
3706
+ updated_at?: string;
3707
+ };
3708
+ Relationships: [];
3709
+ };
3710
+ exact_auth_invoice_lines: {
3711
+ Row: {
3712
+ account_key: string;
3713
+ amount_excl: number | null;
3714
+ created_at: string;
3715
+ description: string | null;
3716
+ discount: number | null;
3717
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3718
+ exact_id: string;
3719
+ exact_timestamp: number | null;
3720
+ id: string;
3721
+ invoice_exact_id: string;
3722
+ item_code: string | null;
3723
+ item_exact_id: string | null;
3724
+ line_number: number | null;
3725
+ quantity: number | null;
3726
+ raw: import("../integrations/supabase/types").Json | null;
3727
+ unit_price: number | null;
3728
+ updated_at: string;
3729
+ vat_amount: number | null;
3730
+ vat_code: string | null;
3731
+ };
3732
+ Insert: {
3733
+ account_key?: string;
3734
+ amount_excl?: number | null;
3735
+ created_at?: string;
3736
+ description?: string | null;
3737
+ discount?: number | null;
3738
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3739
+ exact_id: string;
3740
+ exact_timestamp?: number | null;
3741
+ id?: string;
3742
+ invoice_exact_id: string;
3743
+ item_code?: string | null;
3744
+ item_exact_id?: string | null;
3745
+ line_number?: number | null;
3746
+ quantity?: number | null;
3747
+ raw?: import("../integrations/supabase/types").Json | null;
3748
+ unit_price?: number | null;
3749
+ updated_at?: string;
3750
+ vat_amount?: number | null;
3751
+ vat_code?: string | null;
3752
+ };
3753
+ Update: {
3754
+ account_key?: string;
3755
+ amount_excl?: number | null;
3756
+ created_at?: string;
3757
+ description?: string | null;
3758
+ discount?: number | null;
3759
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3760
+ exact_id?: string;
3761
+ exact_timestamp?: number | null;
3762
+ id?: string;
3763
+ invoice_exact_id?: string;
3764
+ item_code?: string | null;
3765
+ item_exact_id?: string | null;
3766
+ line_number?: number | null;
3767
+ quantity?: number | null;
3768
+ raw?: import("../integrations/supabase/types").Json | null;
3769
+ unit_price?: number | null;
3770
+ updated_at?: string;
3771
+ vat_amount?: number | null;
3772
+ vat_code?: string | null;
3773
+ };
3774
+ Relationships: [];
3775
+ };
3776
+ exact_auth_invoices: {
3777
+ Row: {
3778
+ account_key: string;
3779
+ amount_excl: number | null;
3780
+ amount_incl: number | null;
3781
+ amount_open: number | null;
3782
+ created_at: string;
3783
+ currency: string | null;
3784
+ customer_code: string | null;
3785
+ customer_exact_id: string | null;
3786
+ customer_name: string | null;
3787
+ description: string | null;
3788
+ division_code: number | null;
3789
+ due_date: string | null;
3790
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3791
+ exact_id: string;
3792
+ exact_modified: string | null;
3793
+ exact_timestamp: number | null;
3794
+ id: string;
3795
+ invoice_date: string | null;
3796
+ invoice_number: string | null;
3797
+ order_number: string | null;
3798
+ paid_at: string | null;
3799
+ payment_status: string;
3800
+ raw: import("../integrations/supabase/types").Json | null;
3801
+ receivable_synced_at: string | null;
3802
+ status_code: number | null;
3803
+ updated_at: string;
3804
+ };
3805
+ Insert: {
3806
+ account_key?: string;
3807
+ amount_excl?: number | null;
3808
+ amount_incl?: number | null;
3809
+ amount_open?: number | null;
3810
+ created_at?: string;
3811
+ currency?: string | null;
3812
+ customer_code?: string | null;
3813
+ customer_exact_id?: string | null;
3814
+ customer_name?: string | null;
3815
+ description?: string | null;
3816
+ division_code?: number | null;
3817
+ due_date?: string | null;
3818
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3819
+ exact_id: string;
3820
+ exact_modified?: string | null;
3821
+ exact_timestamp?: number | null;
3822
+ id?: string;
3823
+ invoice_date?: string | null;
3824
+ invoice_number?: string | null;
3825
+ order_number?: string | null;
3826
+ paid_at?: string | null;
3827
+ payment_status?: string;
3828
+ raw?: import("../integrations/supabase/types").Json | null;
3829
+ receivable_synced_at?: string | null;
3830
+ status_code?: number | null;
3831
+ updated_at?: string;
3832
+ };
3833
+ Update: {
3834
+ account_key?: string;
3835
+ amount_excl?: number | null;
3836
+ amount_incl?: number | null;
3837
+ amount_open?: number | null;
3838
+ created_at?: string;
3839
+ currency?: string | null;
3840
+ customer_code?: string | null;
3841
+ customer_exact_id?: string | null;
3842
+ customer_name?: string | null;
3843
+ description?: string | null;
3844
+ division_code?: number | null;
3845
+ due_date?: string | null;
3846
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3847
+ exact_id?: string;
3848
+ exact_modified?: string | null;
3849
+ exact_timestamp?: number | null;
3850
+ id?: string;
3851
+ invoice_date?: string | null;
3852
+ invoice_number?: string | null;
3853
+ order_number?: string | null;
3854
+ paid_at?: string | null;
3855
+ payment_status?: string;
3856
+ raw?: import("../integrations/supabase/types").Json | null;
3857
+ receivable_synced_at?: string | null;
3858
+ status_code?: number | null;
3859
+ updated_at?: string;
3860
+ };
3861
+ Relationships: [];
3862
+ };
3863
+ exact_auth_items: {
3864
+ Row: {
3865
+ account_key: string;
3866
+ barcode: string | null;
3867
+ code: string | null;
3868
+ cost_price: number | null;
3869
+ created_at: string;
3870
+ description: string | null;
3871
+ division_code: number | null;
3872
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3873
+ exact_id: string;
3874
+ exact_modified: string | null;
3875
+ exact_timestamp: number | null;
3876
+ gl_account_code: string | null;
3877
+ id: string;
3878
+ is_active: boolean;
3879
+ is_sales_item: boolean | null;
3880
+ item_type: string | null;
3881
+ raw: import("../integrations/supabase/types").Json | null;
3882
+ sales_price: number | null;
3883
+ unit: string | null;
3884
+ updated_at: string;
3885
+ vat_code: string | null;
3886
+ };
3887
+ Insert: {
3888
+ account_key?: string;
3889
+ barcode?: string | null;
3890
+ code?: string | null;
3891
+ cost_price?: number | null;
3892
+ created_at?: string;
3893
+ description?: string | null;
3894
+ division_code?: number | null;
3895
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3896
+ exact_id: string;
3897
+ exact_modified?: string | null;
3898
+ exact_timestamp?: number | null;
3899
+ gl_account_code?: string | null;
3900
+ id?: string;
3901
+ is_active?: boolean;
3902
+ is_sales_item?: boolean | null;
3903
+ item_type?: string | null;
3904
+ raw?: import("../integrations/supabase/types").Json | null;
3905
+ sales_price?: number | null;
3906
+ unit?: string | null;
3907
+ updated_at?: string;
3908
+ vat_code?: string | null;
3909
+ };
3910
+ Update: {
3911
+ account_key?: string;
3912
+ barcode?: string | null;
3913
+ code?: string | null;
3914
+ cost_price?: number | null;
3915
+ created_at?: string;
3916
+ description?: string | null;
3917
+ division_code?: number | null;
3918
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3919
+ exact_id?: string;
3920
+ exact_modified?: string | null;
3921
+ exact_timestamp?: number | null;
3922
+ gl_account_code?: string | null;
3923
+ id?: string;
3924
+ is_active?: boolean;
3925
+ is_sales_item?: boolean | null;
3926
+ item_type?: string | null;
3927
+ raw?: import("../integrations/supabase/types").Json | null;
3928
+ sales_price?: number | null;
3929
+ unit?: string | null;
3930
+ updated_at?: string;
3931
+ vat_code?: string | null;
3932
+ };
3933
+ Relationships: [];
3934
+ };
3935
+ exact_auth_sync_log: {
3936
+ Row: {
3937
+ account_key: string;
3938
+ calls_used: number;
3939
+ created_at: string;
3940
+ domain: string;
3941
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3942
+ error: string | null;
3943
+ finished_at: string | null;
3944
+ id: string;
3945
+ ok: boolean;
3946
+ records: number;
3947
+ started_at: string;
3948
+ };
3949
+ Insert: {
3950
+ account_key?: string;
3951
+ calls_used?: number;
3952
+ created_at?: string;
3953
+ domain: string;
3954
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3955
+ error?: string | null;
3956
+ finished_at?: string | null;
3957
+ id?: string;
3958
+ ok?: boolean;
3959
+ records?: number;
3960
+ started_at?: string;
3961
+ };
3962
+ Update: {
3963
+ account_key?: string;
3964
+ calls_used?: number;
3965
+ created_at?: string;
3966
+ domain?: string;
3967
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3968
+ error?: string | null;
3969
+ finished_at?: string | null;
3970
+ id?: string;
3971
+ ok?: boolean;
3972
+ records?: number;
3973
+ started_at?: string;
3974
+ };
3975
+ Relationships: [];
3976
+ };
3977
+ exact_auth_sync_state: {
3978
+ Row: {
3979
+ account_key: string;
3980
+ created_at: string;
3981
+ cursor_timestamp: number;
3982
+ division_code: number | null;
3983
+ domain: string;
3984
+ duration_ms: number | null;
3985
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3986
+ initial_sync_done: boolean;
3987
+ last_error: string | null;
3988
+ last_run_at: string | null;
3989
+ last_success_at: string | null;
3990
+ locked_at: string | null;
3991
+ needs_initial_sync: boolean;
3992
+ record_count: number;
3993
+ updated_at: string;
3994
+ };
3995
+ Insert: {
3996
+ account_key?: string;
3997
+ created_at?: string;
3998
+ cursor_timestamp?: number;
3999
+ division_code?: number | null;
4000
+ domain: string;
4001
+ duration_ms?: number | null;
4002
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4003
+ initial_sync_done?: boolean;
4004
+ last_error?: string | null;
4005
+ last_run_at?: string | null;
4006
+ last_success_at?: string | null;
4007
+ locked_at?: string | null;
4008
+ needs_initial_sync?: boolean;
4009
+ record_count?: number;
4010
+ updated_at?: string;
4011
+ };
4012
+ Update: {
4013
+ account_key?: string;
4014
+ created_at?: string;
4015
+ cursor_timestamp?: number;
4016
+ division_code?: number | null;
4017
+ domain?: string;
4018
+ duration_ms?: number | null;
4019
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4020
+ initial_sync_done?: boolean;
4021
+ last_error?: string | null;
4022
+ last_run_at?: string | null;
4023
+ last_success_at?: string | null;
4024
+ locked_at?: string | null;
4025
+ needs_initial_sync?: boolean;
4026
+ record_count?: number;
4027
+ updated_at?: string;
4028
+ };
4029
+ Relationships: [];
4030
+ };
3563
4031
  exact_bulk_operation_items: {
3564
4032
  Row: {
3565
4033
  attempts: number;
@@ -10060,6 +10528,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
10060
10528
  };
10061
10529
  offer_settings: {
10062
10530
  Row: {
10531
+ brand_name: string | null;
10063
10532
  button_color: string;
10064
10533
  created_at: string;
10065
10534
  default_countries: string[];
@@ -10081,6 +10550,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
10081
10550
  updated_at: string;
10082
10551
  };
10083
10552
  Insert: {
10553
+ brand_name?: string | null;
10084
10554
  button_color?: string;
10085
10555
  created_at?: string;
10086
10556
  default_countries?: string[];
@@ -10102,6 +10572,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
10102
10572
  updated_at?: string;
10103
10573
  };
10104
10574
  Update: {
10575
+ brand_name?: string | null;
10105
10576
  button_color?: string;
10106
10577
  created_at?: string;
10107
10578
  default_countries?: string[];
@@ -17952,6 +18423,21 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
17952
18423
  Args: never;
17953
18424
  Returns: string;
17954
18425
  };
18426
+ exact_auth_consume_calls: {
18427
+ Args: {
18428
+ _account_key: string;
18429
+ _calls?: number;
18430
+ _day_limit?: number;
18431
+ _division_code: number;
18432
+ _environment: string;
18433
+ _minute_limit?: number;
18434
+ };
18435
+ Returns: import("../integrations/supabase/types").Json;
18436
+ };
18437
+ exact_auth_prune_sync_log: {
18438
+ Args: never;
18439
+ Returns: undefined;
18440
+ };
17955
18441
  exact_decrypt: {
17956
18442
  Args: {
17957
18443
  cipher: string;
@@ -18161,6 +18647,10 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
18161
18647
  };
18162
18648
  Returns: number;
18163
18649
  };
18650
+ get_offer_branding: {
18651
+ Args: never;
18652
+ Returns: import("../integrations/supabase/types").Json;
18653
+ };
18164
18654
  get_offer_by_link_code: {
18165
18655
  Args: {
18166
18656
  p_code: string;
@@ -23374,6 +23864,474 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
23374
23864
  referencedColumns: ["id"];
23375
23865
  }];
23376
23866
  };
23867
+ exact_auth_call_budget: {
23868
+ Row: {
23869
+ account_key: string;
23870
+ day_count: number;
23871
+ day_date: string;
23872
+ division_code: number;
23873
+ environment: string;
23874
+ minute_count: number;
23875
+ minute_window: string;
23876
+ updated_at: string;
23877
+ };
23878
+ Insert: {
23879
+ account_key?: string;
23880
+ day_count?: number;
23881
+ day_date?: string;
23882
+ division_code?: number;
23883
+ environment: string;
23884
+ minute_count?: number;
23885
+ minute_window?: string;
23886
+ updated_at?: string;
23887
+ };
23888
+ Update: {
23889
+ account_key?: string;
23890
+ day_count?: number;
23891
+ day_date?: string;
23892
+ division_code?: number;
23893
+ environment?: string;
23894
+ minute_count?: number;
23895
+ minute_window?: string;
23896
+ updated_at?: string;
23897
+ };
23898
+ Relationships: [];
23899
+ };
23900
+ exact_auth_customers: {
23901
+ Row: {
23902
+ account_key: string;
23903
+ address_line1: string | null;
23904
+ chamber_of_commerce: string | null;
23905
+ city: string | null;
23906
+ code: string | null;
23907
+ country: string | null;
23908
+ created_at: string;
23909
+ currency: string | null;
23910
+ division_code: number | null;
23911
+ email: string | null;
23912
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23913
+ exact_id: string;
23914
+ exact_modified: string | null;
23915
+ exact_timestamp: number | null;
23916
+ id: string;
23917
+ is_active: boolean;
23918
+ name: string | null;
23919
+ phone: string | null;
23920
+ postcode: string | null;
23921
+ raw: import("../integrations/supabase/types").Json | null;
23922
+ status: string | null;
23923
+ updated_at: string;
23924
+ vat_number: string | null;
23925
+ website: string | null;
23926
+ };
23927
+ Insert: {
23928
+ account_key?: string;
23929
+ address_line1?: string | null;
23930
+ chamber_of_commerce?: string | null;
23931
+ city?: string | null;
23932
+ code?: string | null;
23933
+ country?: string | null;
23934
+ created_at?: string;
23935
+ currency?: string | null;
23936
+ division_code?: number | null;
23937
+ email?: string | null;
23938
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23939
+ exact_id: string;
23940
+ exact_modified?: string | null;
23941
+ exact_timestamp?: number | null;
23942
+ id?: string;
23943
+ is_active?: boolean;
23944
+ name?: string | null;
23945
+ phone?: string | null;
23946
+ postcode?: string | null;
23947
+ raw?: import("../integrations/supabase/types").Json | null;
23948
+ status?: string | null;
23949
+ updated_at?: string;
23950
+ vat_number?: string | null;
23951
+ website?: string | null;
23952
+ };
23953
+ Update: {
23954
+ account_key?: string;
23955
+ address_line1?: string | null;
23956
+ chamber_of_commerce?: string | null;
23957
+ city?: string | null;
23958
+ code?: string | null;
23959
+ country?: string | null;
23960
+ created_at?: string;
23961
+ currency?: string | null;
23962
+ division_code?: number | null;
23963
+ email?: string | null;
23964
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23965
+ exact_id?: string;
23966
+ exact_modified?: string | null;
23967
+ exact_timestamp?: number | null;
23968
+ id?: string;
23969
+ is_active?: boolean;
23970
+ name?: string | null;
23971
+ phone?: string | null;
23972
+ postcode?: string | null;
23973
+ raw?: import("../integrations/supabase/types").Json | null;
23974
+ status?: string | null;
23975
+ updated_at?: string;
23976
+ vat_number?: string | null;
23977
+ website?: string | null;
23978
+ };
23979
+ Relationships: [];
23980
+ };
23981
+ exact_auth_divisions: {
23982
+ Row: {
23983
+ account_key: string;
23984
+ company_name: string | null;
23985
+ created_at: string;
23986
+ division_code: number | null;
23987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23988
+ id: string;
23989
+ last_synced_at: string | null;
23990
+ updated_at: string;
23991
+ };
23992
+ Insert: {
23993
+ account_key?: string;
23994
+ company_name?: string | null;
23995
+ created_at?: string;
23996
+ division_code?: number | null;
23997
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23998
+ id?: string;
23999
+ last_synced_at?: string | null;
24000
+ updated_at?: string;
24001
+ };
24002
+ Update: {
24003
+ account_key?: string;
24004
+ company_name?: string | null;
24005
+ created_at?: string;
24006
+ division_code?: number | null;
24007
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24008
+ id?: string;
24009
+ last_synced_at?: string | null;
24010
+ updated_at?: string;
24011
+ };
24012
+ Relationships: [];
24013
+ };
24014
+ exact_auth_invoice_lines: {
24015
+ Row: {
24016
+ account_key: string;
24017
+ amount_excl: number | null;
24018
+ created_at: string;
24019
+ description: string | null;
24020
+ discount: number | null;
24021
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24022
+ exact_id: string;
24023
+ exact_timestamp: number | null;
24024
+ id: string;
24025
+ invoice_exact_id: string;
24026
+ item_code: string | null;
24027
+ item_exact_id: string | null;
24028
+ line_number: number | null;
24029
+ quantity: number | null;
24030
+ raw: import("../integrations/supabase/types").Json | null;
24031
+ unit_price: number | null;
24032
+ updated_at: string;
24033
+ vat_amount: number | null;
24034
+ vat_code: string | null;
24035
+ };
24036
+ Insert: {
24037
+ account_key?: string;
24038
+ amount_excl?: number | null;
24039
+ created_at?: string;
24040
+ description?: string | null;
24041
+ discount?: number | null;
24042
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24043
+ exact_id: string;
24044
+ exact_timestamp?: number | null;
24045
+ id?: string;
24046
+ invoice_exact_id: string;
24047
+ item_code?: string | null;
24048
+ item_exact_id?: string | null;
24049
+ line_number?: number | null;
24050
+ quantity?: number | null;
24051
+ raw?: import("../integrations/supabase/types").Json | null;
24052
+ unit_price?: number | null;
24053
+ updated_at?: string;
24054
+ vat_amount?: number | null;
24055
+ vat_code?: string | null;
24056
+ };
24057
+ Update: {
24058
+ account_key?: string;
24059
+ amount_excl?: number | null;
24060
+ created_at?: string;
24061
+ description?: string | null;
24062
+ discount?: number | null;
24063
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24064
+ exact_id?: string;
24065
+ exact_timestamp?: number | null;
24066
+ id?: string;
24067
+ invoice_exact_id?: string;
24068
+ item_code?: string | null;
24069
+ item_exact_id?: string | null;
24070
+ line_number?: number | null;
24071
+ quantity?: number | null;
24072
+ raw?: import("../integrations/supabase/types").Json | null;
24073
+ unit_price?: number | null;
24074
+ updated_at?: string;
24075
+ vat_amount?: number | null;
24076
+ vat_code?: string | null;
24077
+ };
24078
+ Relationships: [];
24079
+ };
24080
+ exact_auth_invoices: {
24081
+ Row: {
24082
+ account_key: string;
24083
+ amount_excl: number | null;
24084
+ amount_incl: number | null;
24085
+ amount_open: number | null;
24086
+ created_at: string;
24087
+ currency: string | null;
24088
+ customer_code: string | null;
24089
+ customer_exact_id: string | null;
24090
+ customer_name: string | null;
24091
+ description: string | null;
24092
+ division_code: number | null;
24093
+ due_date: string | null;
24094
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24095
+ exact_id: string;
24096
+ exact_modified: string | null;
24097
+ exact_timestamp: number | null;
24098
+ id: string;
24099
+ invoice_date: string | null;
24100
+ invoice_number: string | null;
24101
+ order_number: string | null;
24102
+ paid_at: string | null;
24103
+ payment_status: string;
24104
+ raw: import("../integrations/supabase/types").Json | null;
24105
+ receivable_synced_at: string | null;
24106
+ status_code: number | null;
24107
+ updated_at: string;
24108
+ };
24109
+ Insert: {
24110
+ account_key?: string;
24111
+ amount_excl?: number | null;
24112
+ amount_incl?: number | null;
24113
+ amount_open?: number | null;
24114
+ created_at?: string;
24115
+ currency?: string | null;
24116
+ customer_code?: string | null;
24117
+ customer_exact_id?: string | null;
24118
+ customer_name?: string | null;
24119
+ description?: string | null;
24120
+ division_code?: number | null;
24121
+ due_date?: string | null;
24122
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24123
+ exact_id: string;
24124
+ exact_modified?: string | null;
24125
+ exact_timestamp?: number | null;
24126
+ id?: string;
24127
+ invoice_date?: string | null;
24128
+ invoice_number?: string | null;
24129
+ order_number?: string | null;
24130
+ paid_at?: string | null;
24131
+ payment_status?: string;
24132
+ raw?: import("../integrations/supabase/types").Json | null;
24133
+ receivable_synced_at?: string | null;
24134
+ status_code?: number | null;
24135
+ updated_at?: string;
24136
+ };
24137
+ Update: {
24138
+ account_key?: string;
24139
+ amount_excl?: number | null;
24140
+ amount_incl?: number | null;
24141
+ amount_open?: number | null;
24142
+ created_at?: string;
24143
+ currency?: string | null;
24144
+ customer_code?: string | null;
24145
+ customer_exact_id?: string | null;
24146
+ customer_name?: string | null;
24147
+ description?: string | null;
24148
+ division_code?: number | null;
24149
+ due_date?: string | null;
24150
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24151
+ exact_id?: string;
24152
+ exact_modified?: string | null;
24153
+ exact_timestamp?: number | null;
24154
+ id?: string;
24155
+ invoice_date?: string | null;
24156
+ invoice_number?: string | null;
24157
+ order_number?: string | null;
24158
+ paid_at?: string | null;
24159
+ payment_status?: string;
24160
+ raw?: import("../integrations/supabase/types").Json | null;
24161
+ receivable_synced_at?: string | null;
24162
+ status_code?: number | null;
24163
+ updated_at?: string;
24164
+ };
24165
+ Relationships: [];
24166
+ };
24167
+ exact_auth_items: {
24168
+ Row: {
24169
+ account_key: string;
24170
+ barcode: string | null;
24171
+ code: string | null;
24172
+ cost_price: number | null;
24173
+ created_at: string;
24174
+ description: string | null;
24175
+ division_code: number | null;
24176
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24177
+ exact_id: string;
24178
+ exact_modified: string | null;
24179
+ exact_timestamp: number | null;
24180
+ gl_account_code: string | null;
24181
+ id: string;
24182
+ is_active: boolean;
24183
+ is_sales_item: boolean | null;
24184
+ item_type: string | null;
24185
+ raw: import("../integrations/supabase/types").Json | null;
24186
+ sales_price: number | null;
24187
+ unit: string | null;
24188
+ updated_at: string;
24189
+ vat_code: string | null;
24190
+ };
24191
+ Insert: {
24192
+ account_key?: string;
24193
+ barcode?: string | null;
24194
+ code?: string | null;
24195
+ cost_price?: number | null;
24196
+ created_at?: string;
24197
+ description?: string | null;
24198
+ division_code?: number | null;
24199
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24200
+ exact_id: string;
24201
+ exact_modified?: string | null;
24202
+ exact_timestamp?: number | null;
24203
+ gl_account_code?: string | null;
24204
+ id?: string;
24205
+ is_active?: boolean;
24206
+ is_sales_item?: boolean | null;
24207
+ item_type?: string | null;
24208
+ raw?: import("../integrations/supabase/types").Json | null;
24209
+ sales_price?: number | null;
24210
+ unit?: string | null;
24211
+ updated_at?: string;
24212
+ vat_code?: string | null;
24213
+ };
24214
+ Update: {
24215
+ account_key?: string;
24216
+ barcode?: string | null;
24217
+ code?: string | null;
24218
+ cost_price?: number | null;
24219
+ created_at?: string;
24220
+ description?: string | null;
24221
+ division_code?: number | null;
24222
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24223
+ exact_id?: string;
24224
+ exact_modified?: string | null;
24225
+ exact_timestamp?: number | null;
24226
+ gl_account_code?: string | null;
24227
+ id?: string;
24228
+ is_active?: boolean;
24229
+ is_sales_item?: boolean | null;
24230
+ item_type?: string | null;
24231
+ raw?: import("../integrations/supabase/types").Json | null;
24232
+ sales_price?: number | null;
24233
+ unit?: string | null;
24234
+ updated_at?: string;
24235
+ vat_code?: string | null;
24236
+ };
24237
+ Relationships: [];
24238
+ };
24239
+ exact_auth_sync_log: {
24240
+ Row: {
24241
+ account_key: string;
24242
+ calls_used: number;
24243
+ created_at: string;
24244
+ domain: string;
24245
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24246
+ error: string | null;
24247
+ finished_at: string | null;
24248
+ id: string;
24249
+ ok: boolean;
24250
+ records: number;
24251
+ started_at: string;
24252
+ };
24253
+ Insert: {
24254
+ account_key?: string;
24255
+ calls_used?: number;
24256
+ created_at?: string;
24257
+ domain: string;
24258
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24259
+ error?: string | null;
24260
+ finished_at?: string | null;
24261
+ id?: string;
24262
+ ok?: boolean;
24263
+ records?: number;
24264
+ started_at?: string;
24265
+ };
24266
+ Update: {
24267
+ account_key?: string;
24268
+ calls_used?: number;
24269
+ created_at?: string;
24270
+ domain?: string;
24271
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24272
+ error?: string | null;
24273
+ finished_at?: string | null;
24274
+ id?: string;
24275
+ ok?: boolean;
24276
+ records?: number;
24277
+ started_at?: string;
24278
+ };
24279
+ Relationships: [];
24280
+ };
24281
+ exact_auth_sync_state: {
24282
+ Row: {
24283
+ account_key: string;
24284
+ created_at: string;
24285
+ cursor_timestamp: number;
24286
+ division_code: number | null;
24287
+ domain: string;
24288
+ duration_ms: number | null;
24289
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24290
+ initial_sync_done: boolean;
24291
+ last_error: string | null;
24292
+ last_run_at: string | null;
24293
+ last_success_at: string | null;
24294
+ locked_at: string | null;
24295
+ needs_initial_sync: boolean;
24296
+ record_count: number;
24297
+ updated_at: string;
24298
+ };
24299
+ Insert: {
24300
+ account_key?: string;
24301
+ created_at?: string;
24302
+ cursor_timestamp?: number;
24303
+ division_code?: number | null;
24304
+ domain: string;
24305
+ duration_ms?: number | null;
24306
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24307
+ initial_sync_done?: boolean;
24308
+ last_error?: string | null;
24309
+ last_run_at?: string | null;
24310
+ last_success_at?: string | null;
24311
+ locked_at?: string | null;
24312
+ needs_initial_sync?: boolean;
24313
+ record_count?: number;
24314
+ updated_at?: string;
24315
+ };
24316
+ Update: {
24317
+ account_key?: string;
24318
+ created_at?: string;
24319
+ cursor_timestamp?: number;
24320
+ division_code?: number | null;
24321
+ domain?: string;
24322
+ duration_ms?: number | null;
24323
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24324
+ initial_sync_done?: boolean;
24325
+ last_error?: string | null;
24326
+ last_run_at?: string | null;
24327
+ last_success_at?: string | null;
24328
+ locked_at?: string | null;
24329
+ needs_initial_sync?: boolean;
24330
+ record_count?: number;
24331
+ updated_at?: string;
24332
+ };
24333
+ Relationships: [];
24334
+ };
23377
24335
  exact_bulk_operation_items: {
23378
24336
  Row: {
23379
24337
  attempts: number;
@@ -29874,6 +30832,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
29874
30832
  };
29875
30833
  offer_settings: {
29876
30834
  Row: {
30835
+ brand_name: string | null;
29877
30836
  button_color: string;
29878
30837
  created_at: string;
29879
30838
  default_countries: string[];
@@ -29895,6 +30854,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
29895
30854
  updated_at: string;
29896
30855
  };
29897
30856
  Insert: {
30857
+ brand_name?: string | null;
29898
30858
  button_color?: string;
29899
30859
  created_at?: string;
29900
30860
  default_countries?: string[];
@@ -29916,6 +30876,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
29916
30876
  updated_at?: string;
29917
30877
  };
29918
30878
  Update: {
30879
+ brand_name?: string | null;
29919
30880
  button_color?: string;
29920
30881
  created_at?: string;
29921
30882
  default_countries?: string[];
@@ -37766,6 +38727,21 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
37766
38727
  Args: never;
37767
38728
  Returns: string;
37768
38729
  };
38730
+ exact_auth_consume_calls: {
38731
+ Args: {
38732
+ _account_key: string;
38733
+ _calls?: number;
38734
+ _day_limit?: number;
38735
+ _division_code: number;
38736
+ _environment: string;
38737
+ _minute_limit?: number;
38738
+ };
38739
+ Returns: import("../integrations/supabase/types").Json;
38740
+ };
38741
+ exact_auth_prune_sync_log: {
38742
+ Args: never;
38743
+ Returns: undefined;
38744
+ };
37769
38745
  exact_decrypt: {
37770
38746
  Args: {
37771
38747
  cipher: string;
@@ -37975,6 +38951,10 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
37975
38951
  };
37976
38952
  Returns: number;
37977
38953
  };
38954
+ get_offer_branding: {
38955
+ Args: never;
38956
+ Returns: import("../integrations/supabase/types").Json;
38957
+ };
37978
38958
  get_offer_by_link_code: {
37979
38959
  Args: {
37980
38960
  p_code: string;
@@ -43198,6 +44178,474 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
43198
44178
  referencedColumns: ["id"];
43199
44179
  }];
43200
44180
  };
44181
+ exact_auth_call_budget: {
44182
+ Row: {
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
+ Insert: {
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
+ Update: {
44203
+ account_key?: string;
44204
+ day_count?: number;
44205
+ day_date?: string;
44206
+ division_code?: number;
44207
+ environment?: string;
44208
+ minute_count?: number;
44209
+ minute_window?: string;
44210
+ updated_at?: string;
44211
+ };
44212
+ Relationships: [];
44213
+ };
44214
+ exact_auth_customers: {
44215
+ Row: {
44216
+ account_key: string;
44217
+ address_line1: string | null;
44218
+ chamber_of_commerce: string | null;
44219
+ city: string | null;
44220
+ code: string | null;
44221
+ country: string | null;
44222
+ created_at: string;
44223
+ currency: string | null;
44224
+ division_code: number | null;
44225
+ email: string | null;
44226
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44227
+ exact_id: string;
44228
+ exact_modified: string | null;
44229
+ exact_timestamp: number | null;
44230
+ id: string;
44231
+ is_active: boolean;
44232
+ name: string | null;
44233
+ phone: string | null;
44234
+ postcode: string | null;
44235
+ raw: import("../integrations/supabase/types").Json | null;
44236
+ status: string | null;
44237
+ updated_at: string;
44238
+ vat_number: string | null;
44239
+ website: string | null;
44240
+ };
44241
+ Insert: {
44242
+ account_key?: string;
44243
+ address_line1?: string | null;
44244
+ chamber_of_commerce?: string | null;
44245
+ city?: string | null;
44246
+ code?: string | null;
44247
+ country?: string | null;
44248
+ created_at?: string;
44249
+ currency?: string | null;
44250
+ division_code?: number | null;
44251
+ email?: string | null;
44252
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44253
+ exact_id: string;
44254
+ exact_modified?: string | null;
44255
+ exact_timestamp?: number | null;
44256
+ id?: string;
44257
+ is_active?: boolean;
44258
+ name?: string | null;
44259
+ phone?: string | null;
44260
+ postcode?: string | null;
44261
+ raw?: import("../integrations/supabase/types").Json | null;
44262
+ status?: string | null;
44263
+ updated_at?: string;
44264
+ vat_number?: string | null;
44265
+ website?: string | null;
44266
+ };
44267
+ Update: {
44268
+ account_key?: string;
44269
+ address_line1?: string | null;
44270
+ chamber_of_commerce?: string | null;
44271
+ city?: string | null;
44272
+ code?: string | null;
44273
+ country?: string | null;
44274
+ created_at?: string;
44275
+ currency?: string | null;
44276
+ division_code?: number | null;
44277
+ email?: string | null;
44278
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44279
+ exact_id?: string;
44280
+ exact_modified?: string | null;
44281
+ exact_timestamp?: number | null;
44282
+ id?: string;
44283
+ is_active?: boolean;
44284
+ name?: string | null;
44285
+ phone?: string | null;
44286
+ postcode?: string | null;
44287
+ raw?: import("../integrations/supabase/types").Json | null;
44288
+ status?: string | null;
44289
+ updated_at?: string;
44290
+ vat_number?: string | null;
44291
+ website?: string | null;
44292
+ };
44293
+ Relationships: [];
44294
+ };
44295
+ exact_auth_divisions: {
44296
+ Row: {
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
+ Insert: {
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
+ Update: {
44317
+ account_key?: string;
44318
+ company_name?: string | null;
44319
+ created_at?: string;
44320
+ division_code?: number | null;
44321
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44322
+ id?: string;
44323
+ last_synced_at?: string | null;
44324
+ updated_at?: string;
44325
+ };
44326
+ Relationships: [];
44327
+ };
44328
+ exact_auth_invoice_lines: {
44329
+ Row: {
44330
+ account_key: string;
44331
+ amount_excl: number | null;
44332
+ created_at: string;
44333
+ description: string | null;
44334
+ discount: number | null;
44335
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44336
+ exact_id: string;
44337
+ exact_timestamp: number | null;
44338
+ id: string;
44339
+ invoice_exact_id: string;
44340
+ item_code: string | null;
44341
+ item_exact_id: string | null;
44342
+ line_number: number | null;
44343
+ quantity: number | null;
44344
+ raw: import("../integrations/supabase/types").Json | null;
44345
+ unit_price: number | null;
44346
+ updated_at: string;
44347
+ vat_amount: number | null;
44348
+ vat_code: string | null;
44349
+ };
44350
+ Insert: {
44351
+ account_key?: string;
44352
+ amount_excl?: number | null;
44353
+ created_at?: string;
44354
+ description?: string | null;
44355
+ discount?: number | null;
44356
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44357
+ exact_id: string;
44358
+ exact_timestamp?: number | null;
44359
+ id?: string;
44360
+ invoice_exact_id: string;
44361
+ item_code?: string | null;
44362
+ item_exact_id?: string | null;
44363
+ line_number?: number | null;
44364
+ quantity?: number | null;
44365
+ raw?: import("../integrations/supabase/types").Json | null;
44366
+ unit_price?: number | null;
44367
+ updated_at?: string;
44368
+ vat_amount?: number | null;
44369
+ vat_code?: string | null;
44370
+ };
44371
+ Update: {
44372
+ account_key?: string;
44373
+ amount_excl?: number | null;
44374
+ created_at?: string;
44375
+ description?: string | null;
44376
+ discount?: number | null;
44377
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44378
+ exact_id?: string;
44379
+ exact_timestamp?: number | null;
44380
+ id?: string;
44381
+ invoice_exact_id?: string;
44382
+ item_code?: string | null;
44383
+ item_exact_id?: string | null;
44384
+ line_number?: number | null;
44385
+ quantity?: number | null;
44386
+ raw?: import("../integrations/supabase/types").Json | null;
44387
+ unit_price?: number | null;
44388
+ updated_at?: string;
44389
+ vat_amount?: number | null;
44390
+ vat_code?: string | null;
44391
+ };
44392
+ Relationships: [];
44393
+ };
44394
+ exact_auth_invoices: {
44395
+ Row: {
44396
+ account_key: string;
44397
+ amount_excl: number | null;
44398
+ amount_incl: number | null;
44399
+ amount_open: number | null;
44400
+ created_at: string;
44401
+ currency: string | null;
44402
+ customer_code: string | null;
44403
+ customer_exact_id: string | null;
44404
+ customer_name: string | null;
44405
+ description: string | null;
44406
+ division_code: number | null;
44407
+ due_date: string | null;
44408
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44409
+ exact_id: string;
44410
+ exact_modified: string | null;
44411
+ exact_timestamp: number | null;
44412
+ id: string;
44413
+ invoice_date: string | null;
44414
+ invoice_number: string | null;
44415
+ order_number: string | null;
44416
+ paid_at: string | null;
44417
+ payment_status: string;
44418
+ raw: import("../integrations/supabase/types").Json | null;
44419
+ receivable_synced_at: string | null;
44420
+ status_code: number | null;
44421
+ updated_at: string;
44422
+ };
44423
+ Insert: {
44424
+ account_key?: string;
44425
+ amount_excl?: number | null;
44426
+ amount_incl?: number | null;
44427
+ amount_open?: number | null;
44428
+ created_at?: string;
44429
+ currency?: string | null;
44430
+ customer_code?: string | null;
44431
+ customer_exact_id?: string | null;
44432
+ customer_name?: string | null;
44433
+ description?: string | null;
44434
+ division_code?: number | null;
44435
+ due_date?: string | null;
44436
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44437
+ exact_id: string;
44438
+ exact_modified?: string | null;
44439
+ exact_timestamp?: number | null;
44440
+ id?: string;
44441
+ invoice_date?: string | null;
44442
+ invoice_number?: string | null;
44443
+ order_number?: string | null;
44444
+ paid_at?: string | null;
44445
+ payment_status?: string;
44446
+ raw?: import("../integrations/supabase/types").Json | null;
44447
+ receivable_synced_at?: string | null;
44448
+ status_code?: number | null;
44449
+ updated_at?: string;
44450
+ };
44451
+ Update: {
44452
+ account_key?: string;
44453
+ amount_excl?: number | null;
44454
+ amount_incl?: number | null;
44455
+ amount_open?: number | null;
44456
+ created_at?: string;
44457
+ currency?: string | null;
44458
+ customer_code?: string | null;
44459
+ customer_exact_id?: string | null;
44460
+ customer_name?: string | null;
44461
+ description?: string | null;
44462
+ division_code?: number | null;
44463
+ due_date?: string | null;
44464
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44465
+ exact_id?: string;
44466
+ exact_modified?: string | null;
44467
+ exact_timestamp?: number | null;
44468
+ id?: string;
44469
+ invoice_date?: string | null;
44470
+ invoice_number?: string | null;
44471
+ order_number?: string | null;
44472
+ paid_at?: string | null;
44473
+ payment_status?: string;
44474
+ raw?: import("../integrations/supabase/types").Json | null;
44475
+ receivable_synced_at?: string | null;
44476
+ status_code?: number | null;
44477
+ updated_at?: string;
44478
+ };
44479
+ Relationships: [];
44480
+ };
44481
+ exact_auth_items: {
44482
+ Row: {
44483
+ account_key: string;
44484
+ barcode: string | null;
44485
+ code: string | null;
44486
+ cost_price: number | null;
44487
+ created_at: string;
44488
+ description: string | null;
44489
+ division_code: number | null;
44490
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44491
+ exact_id: string;
44492
+ exact_modified: string | null;
44493
+ exact_timestamp: number | null;
44494
+ gl_account_code: string | null;
44495
+ id: string;
44496
+ is_active: boolean;
44497
+ is_sales_item: boolean | null;
44498
+ item_type: string | null;
44499
+ raw: import("../integrations/supabase/types").Json | null;
44500
+ sales_price: number | null;
44501
+ unit: string | null;
44502
+ updated_at: string;
44503
+ vat_code: string | null;
44504
+ };
44505
+ Insert: {
44506
+ account_key?: string;
44507
+ barcode?: string | null;
44508
+ code?: string | null;
44509
+ cost_price?: number | null;
44510
+ created_at?: string;
44511
+ description?: string | null;
44512
+ division_code?: number | null;
44513
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44514
+ exact_id: string;
44515
+ exact_modified?: string | null;
44516
+ exact_timestamp?: number | null;
44517
+ gl_account_code?: string | null;
44518
+ id?: string;
44519
+ is_active?: boolean;
44520
+ is_sales_item?: boolean | null;
44521
+ item_type?: string | null;
44522
+ raw?: import("../integrations/supabase/types").Json | null;
44523
+ sales_price?: number | null;
44524
+ unit?: string | null;
44525
+ updated_at?: string;
44526
+ vat_code?: string | null;
44527
+ };
44528
+ Update: {
44529
+ account_key?: string;
44530
+ barcode?: string | null;
44531
+ code?: string | null;
44532
+ cost_price?: number | null;
44533
+ created_at?: string;
44534
+ description?: string | null;
44535
+ division_code?: number | null;
44536
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44537
+ exact_id?: string;
44538
+ exact_modified?: string | null;
44539
+ exact_timestamp?: number | null;
44540
+ gl_account_code?: string | null;
44541
+ id?: string;
44542
+ is_active?: boolean;
44543
+ is_sales_item?: boolean | null;
44544
+ item_type?: string | null;
44545
+ raw?: import("../integrations/supabase/types").Json | null;
44546
+ sales_price?: number | null;
44547
+ unit?: string | null;
44548
+ updated_at?: string;
44549
+ vat_code?: string | null;
44550
+ };
44551
+ Relationships: [];
44552
+ };
44553
+ exact_auth_sync_log: {
44554
+ Row: {
44555
+ account_key: string;
44556
+ calls_used: number;
44557
+ created_at: string;
44558
+ domain: string;
44559
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44560
+ error: string | null;
44561
+ finished_at: string | null;
44562
+ id: string;
44563
+ ok: boolean;
44564
+ records: number;
44565
+ started_at: string;
44566
+ };
44567
+ Insert: {
44568
+ account_key?: string;
44569
+ calls_used?: number;
44570
+ created_at?: string;
44571
+ domain: string;
44572
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44573
+ error?: string | null;
44574
+ finished_at?: string | null;
44575
+ id?: string;
44576
+ ok?: boolean;
44577
+ records?: number;
44578
+ started_at?: string;
44579
+ };
44580
+ Update: {
44581
+ account_key?: string;
44582
+ calls_used?: number;
44583
+ created_at?: string;
44584
+ domain?: string;
44585
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44586
+ error?: string | null;
44587
+ finished_at?: string | null;
44588
+ id?: string;
44589
+ ok?: boolean;
44590
+ records?: number;
44591
+ started_at?: string;
44592
+ };
44593
+ Relationships: [];
44594
+ };
44595
+ exact_auth_sync_state: {
44596
+ Row: {
44597
+ account_key: string;
44598
+ created_at: string;
44599
+ cursor_timestamp: number;
44600
+ division_code: number | null;
44601
+ domain: string;
44602
+ duration_ms: number | null;
44603
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44604
+ initial_sync_done: boolean;
44605
+ last_error: string | null;
44606
+ last_run_at: string | null;
44607
+ last_success_at: string | null;
44608
+ locked_at: string | null;
44609
+ needs_initial_sync: boolean;
44610
+ record_count: number;
44611
+ updated_at: string;
44612
+ };
44613
+ Insert: {
44614
+ account_key?: string;
44615
+ created_at?: string;
44616
+ cursor_timestamp?: number;
44617
+ division_code?: number | null;
44618
+ domain: string;
44619
+ duration_ms?: number | null;
44620
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44621
+ initial_sync_done?: boolean;
44622
+ last_error?: string | null;
44623
+ last_run_at?: string | null;
44624
+ last_success_at?: string | null;
44625
+ locked_at?: string | null;
44626
+ needs_initial_sync?: boolean;
44627
+ record_count?: number;
44628
+ updated_at?: string;
44629
+ };
44630
+ Update: {
44631
+ account_key?: string;
44632
+ created_at?: string;
44633
+ cursor_timestamp?: number;
44634
+ division_code?: number | null;
44635
+ domain?: string;
44636
+ duration_ms?: number | null;
44637
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44638
+ initial_sync_done?: boolean;
44639
+ last_error?: string | null;
44640
+ last_run_at?: string | null;
44641
+ last_success_at?: string | null;
44642
+ locked_at?: string | null;
44643
+ needs_initial_sync?: boolean;
44644
+ record_count?: number;
44645
+ updated_at?: string;
44646
+ };
44647
+ Relationships: [];
44648
+ };
43201
44649
  exact_bulk_operation_items: {
43202
44650
  Row: {
43203
44651
  attempts: number;
@@ -49698,6 +51146,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
49698
51146
  };
49699
51147
  offer_settings: {
49700
51148
  Row: {
51149
+ brand_name: string | null;
49701
51150
  button_color: string;
49702
51151
  created_at: string;
49703
51152
  default_countries: string[];
@@ -49719,6 +51168,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
49719
51168
  updated_at: string;
49720
51169
  };
49721
51170
  Insert: {
51171
+ brand_name?: string | null;
49722
51172
  button_color?: string;
49723
51173
  created_at?: string;
49724
51174
  default_countries?: string[];
@@ -49740,6 +51190,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
49740
51190
  updated_at?: string;
49741
51191
  };
49742
51192
  Update: {
51193
+ brand_name?: string | null;
49743
51194
  button_color?: string;
49744
51195
  created_at?: string;
49745
51196
  default_countries?: string[];
@@ -57590,6 +59041,21 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
57590
59041
  Args: never;
57591
59042
  Returns: string;
57592
59043
  };
59044
+ exact_auth_consume_calls: {
59045
+ Args: {
59046
+ _account_key: string;
59047
+ _calls?: number;
59048
+ _day_limit?: number;
59049
+ _division_code: number;
59050
+ _environment: string;
59051
+ _minute_limit?: number;
59052
+ };
59053
+ Returns: import("../integrations/supabase/types").Json;
59054
+ };
59055
+ exact_auth_prune_sync_log: {
59056
+ Args: never;
59057
+ Returns: undefined;
59058
+ };
57593
59059
  exact_decrypt: {
57594
59060
  Args: {
57595
59061
  cipher: string;
@@ -57799,6 +59265,10 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
57799
59265
  };
57800
59266
  Returns: number;
57801
59267
  };
59268
+ get_offer_branding: {
59269
+ Args: never;
59270
+ Returns: import("../integrations/supabase/types").Json;
59271
+ };
57802
59272
  get_offer_by_link_code: {
57803
59273
  Args: {
57804
59274
  p_code: string;
@@ -63038,6 +64508,474 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
63038
64508
  referencedColumns: ["id"];
63039
64509
  }];
63040
64510
  };
64511
+ exact_auth_call_budget: {
64512
+ Row: {
64513
+ account_key: string;
64514
+ day_count: number;
64515
+ day_date: string;
64516
+ division_code: number;
64517
+ environment: string;
64518
+ minute_count: number;
64519
+ minute_window: string;
64520
+ updated_at: string;
64521
+ };
64522
+ Insert: {
64523
+ account_key?: string;
64524
+ day_count?: number;
64525
+ day_date?: string;
64526
+ division_code?: number;
64527
+ environment: string;
64528
+ minute_count?: number;
64529
+ minute_window?: string;
64530
+ updated_at?: string;
64531
+ };
64532
+ Update: {
64533
+ account_key?: string;
64534
+ day_count?: number;
64535
+ day_date?: string;
64536
+ division_code?: number;
64537
+ environment?: string;
64538
+ minute_count?: number;
64539
+ minute_window?: string;
64540
+ updated_at?: string;
64541
+ };
64542
+ Relationships: [];
64543
+ };
64544
+ exact_auth_customers: {
64545
+ Row: {
64546
+ account_key: string;
64547
+ address_line1: string | null;
64548
+ chamber_of_commerce: string | null;
64549
+ city: string | null;
64550
+ code: string | null;
64551
+ country: string | null;
64552
+ created_at: string;
64553
+ currency: string | null;
64554
+ division_code: number | null;
64555
+ email: string | null;
64556
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64557
+ exact_id: string;
64558
+ exact_modified: string | null;
64559
+ exact_timestamp: number | null;
64560
+ id: string;
64561
+ is_active: boolean;
64562
+ name: string | null;
64563
+ phone: string | null;
64564
+ postcode: string | null;
64565
+ raw: import("../integrations/supabase/types").Json | null;
64566
+ status: string | null;
64567
+ updated_at: string;
64568
+ vat_number: string | null;
64569
+ website: string | null;
64570
+ };
64571
+ Insert: {
64572
+ account_key?: string;
64573
+ address_line1?: string | null;
64574
+ chamber_of_commerce?: string | null;
64575
+ city?: string | null;
64576
+ code?: string | null;
64577
+ country?: string | null;
64578
+ created_at?: string;
64579
+ currency?: string | null;
64580
+ division_code?: number | null;
64581
+ email?: string | null;
64582
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64583
+ exact_id: string;
64584
+ exact_modified?: string | null;
64585
+ exact_timestamp?: number | null;
64586
+ id?: string;
64587
+ is_active?: boolean;
64588
+ name?: string | null;
64589
+ phone?: string | null;
64590
+ postcode?: string | null;
64591
+ raw?: import("../integrations/supabase/types").Json | null;
64592
+ status?: string | null;
64593
+ updated_at?: string;
64594
+ vat_number?: string | null;
64595
+ website?: string | null;
64596
+ };
64597
+ Update: {
64598
+ account_key?: string;
64599
+ address_line1?: string | null;
64600
+ chamber_of_commerce?: string | null;
64601
+ city?: string | null;
64602
+ code?: string | null;
64603
+ country?: string | null;
64604
+ created_at?: string;
64605
+ currency?: string | null;
64606
+ division_code?: number | null;
64607
+ email?: string | null;
64608
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64609
+ exact_id?: string;
64610
+ exact_modified?: string | null;
64611
+ exact_timestamp?: number | null;
64612
+ id?: string;
64613
+ is_active?: boolean;
64614
+ name?: string | null;
64615
+ phone?: string | null;
64616
+ postcode?: string | null;
64617
+ raw?: import("../integrations/supabase/types").Json | null;
64618
+ status?: string | null;
64619
+ updated_at?: string;
64620
+ vat_number?: string | null;
64621
+ website?: string | null;
64622
+ };
64623
+ Relationships: [];
64624
+ };
64625
+ exact_auth_divisions: {
64626
+ Row: {
64627
+ account_key: string;
64628
+ company_name: string | null;
64629
+ created_at: string;
64630
+ division_code: number | null;
64631
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64632
+ id: string;
64633
+ last_synced_at: string | null;
64634
+ updated_at: string;
64635
+ };
64636
+ Insert: {
64637
+ account_key?: string;
64638
+ company_name?: string | null;
64639
+ created_at?: string;
64640
+ division_code?: number | null;
64641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64642
+ id?: string;
64643
+ last_synced_at?: string | null;
64644
+ updated_at?: string;
64645
+ };
64646
+ Update: {
64647
+ account_key?: string;
64648
+ company_name?: string | null;
64649
+ created_at?: string;
64650
+ division_code?: number | null;
64651
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64652
+ id?: string;
64653
+ last_synced_at?: string | null;
64654
+ updated_at?: string;
64655
+ };
64656
+ Relationships: [];
64657
+ };
64658
+ exact_auth_invoice_lines: {
64659
+ Row: {
64660
+ account_key: string;
64661
+ amount_excl: number | null;
64662
+ created_at: string;
64663
+ description: string | null;
64664
+ discount: number | null;
64665
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64666
+ exact_id: string;
64667
+ exact_timestamp: number | null;
64668
+ id: string;
64669
+ invoice_exact_id: string;
64670
+ item_code: string | null;
64671
+ item_exact_id: string | null;
64672
+ line_number: number | null;
64673
+ quantity: number | null;
64674
+ raw: import("../integrations/supabase/types").Json | null;
64675
+ unit_price: number | null;
64676
+ updated_at: string;
64677
+ vat_amount: number | null;
64678
+ vat_code: string | null;
64679
+ };
64680
+ Insert: {
64681
+ account_key?: string;
64682
+ amount_excl?: number | null;
64683
+ created_at?: string;
64684
+ description?: string | null;
64685
+ discount?: number | null;
64686
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64687
+ exact_id: string;
64688
+ exact_timestamp?: number | null;
64689
+ id?: string;
64690
+ invoice_exact_id: string;
64691
+ item_code?: string | null;
64692
+ item_exact_id?: string | null;
64693
+ line_number?: number | null;
64694
+ quantity?: number | null;
64695
+ raw?: import("../integrations/supabase/types").Json | null;
64696
+ unit_price?: number | null;
64697
+ updated_at?: string;
64698
+ vat_amount?: number | null;
64699
+ vat_code?: string | null;
64700
+ };
64701
+ Update: {
64702
+ account_key?: string;
64703
+ amount_excl?: number | null;
64704
+ created_at?: string;
64705
+ description?: string | null;
64706
+ discount?: number | null;
64707
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64708
+ exact_id?: string;
64709
+ exact_timestamp?: number | null;
64710
+ id?: string;
64711
+ invoice_exact_id?: string;
64712
+ item_code?: string | null;
64713
+ item_exact_id?: string | null;
64714
+ line_number?: number | null;
64715
+ quantity?: number | null;
64716
+ raw?: import("../integrations/supabase/types").Json | null;
64717
+ unit_price?: number | null;
64718
+ updated_at?: string;
64719
+ vat_amount?: number | null;
64720
+ vat_code?: string | null;
64721
+ };
64722
+ Relationships: [];
64723
+ };
64724
+ exact_auth_invoices: {
64725
+ Row: {
64726
+ account_key: string;
64727
+ amount_excl: number | null;
64728
+ amount_incl: number | null;
64729
+ amount_open: number | null;
64730
+ created_at: string;
64731
+ currency: string | null;
64732
+ customer_code: string | null;
64733
+ customer_exact_id: string | null;
64734
+ customer_name: string | null;
64735
+ description: string | null;
64736
+ division_code: number | null;
64737
+ due_date: string | null;
64738
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64739
+ exact_id: string;
64740
+ exact_modified: string | null;
64741
+ exact_timestamp: number | null;
64742
+ id: string;
64743
+ invoice_date: string | null;
64744
+ invoice_number: string | null;
64745
+ order_number: string | null;
64746
+ paid_at: string | null;
64747
+ payment_status: string;
64748
+ raw: import("../integrations/supabase/types").Json | null;
64749
+ receivable_synced_at: string | null;
64750
+ status_code: number | null;
64751
+ updated_at: string;
64752
+ };
64753
+ Insert: {
64754
+ account_key?: string;
64755
+ amount_excl?: number | null;
64756
+ amount_incl?: number | null;
64757
+ amount_open?: number | null;
64758
+ created_at?: string;
64759
+ currency?: string | null;
64760
+ customer_code?: string | null;
64761
+ customer_exact_id?: string | null;
64762
+ customer_name?: string | null;
64763
+ description?: string | null;
64764
+ division_code?: number | null;
64765
+ due_date?: string | null;
64766
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64767
+ exact_id: string;
64768
+ exact_modified?: string | null;
64769
+ exact_timestamp?: number | null;
64770
+ id?: string;
64771
+ invoice_date?: string | null;
64772
+ invoice_number?: string | null;
64773
+ order_number?: string | null;
64774
+ paid_at?: string | null;
64775
+ payment_status?: string;
64776
+ raw?: import("../integrations/supabase/types").Json | null;
64777
+ receivable_synced_at?: string | null;
64778
+ status_code?: number | null;
64779
+ updated_at?: string;
64780
+ };
64781
+ Update: {
64782
+ account_key?: string;
64783
+ amount_excl?: number | null;
64784
+ amount_incl?: number | null;
64785
+ amount_open?: number | null;
64786
+ created_at?: string;
64787
+ currency?: string | null;
64788
+ customer_code?: string | null;
64789
+ customer_exact_id?: string | null;
64790
+ customer_name?: string | null;
64791
+ description?: string | null;
64792
+ division_code?: number | null;
64793
+ due_date?: string | null;
64794
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64795
+ exact_id?: string;
64796
+ exact_modified?: string | null;
64797
+ exact_timestamp?: number | null;
64798
+ id?: string;
64799
+ invoice_date?: string | null;
64800
+ invoice_number?: string | null;
64801
+ order_number?: string | null;
64802
+ paid_at?: string | null;
64803
+ payment_status?: string;
64804
+ raw?: import("../integrations/supabase/types").Json | null;
64805
+ receivable_synced_at?: string | null;
64806
+ status_code?: number | null;
64807
+ updated_at?: string;
64808
+ };
64809
+ Relationships: [];
64810
+ };
64811
+ exact_auth_items: {
64812
+ Row: {
64813
+ account_key: string;
64814
+ barcode: string | null;
64815
+ code: string | null;
64816
+ cost_price: number | null;
64817
+ created_at: string;
64818
+ description: string | null;
64819
+ division_code: number | null;
64820
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64821
+ exact_id: string;
64822
+ exact_modified: string | null;
64823
+ exact_timestamp: number | null;
64824
+ gl_account_code: string | null;
64825
+ id: string;
64826
+ is_active: boolean;
64827
+ is_sales_item: boolean | null;
64828
+ item_type: string | null;
64829
+ raw: import("../integrations/supabase/types").Json | null;
64830
+ sales_price: number | null;
64831
+ unit: string | null;
64832
+ updated_at: string;
64833
+ vat_code: string | null;
64834
+ };
64835
+ Insert: {
64836
+ account_key?: string;
64837
+ barcode?: string | null;
64838
+ code?: string | null;
64839
+ cost_price?: number | null;
64840
+ created_at?: string;
64841
+ description?: string | null;
64842
+ division_code?: number | null;
64843
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64844
+ exact_id: string;
64845
+ exact_modified?: string | null;
64846
+ exact_timestamp?: number | null;
64847
+ gl_account_code?: string | null;
64848
+ id?: string;
64849
+ is_active?: boolean;
64850
+ is_sales_item?: boolean | null;
64851
+ item_type?: string | null;
64852
+ raw?: import("../integrations/supabase/types").Json | null;
64853
+ sales_price?: number | null;
64854
+ unit?: string | null;
64855
+ updated_at?: string;
64856
+ vat_code?: string | null;
64857
+ };
64858
+ Update: {
64859
+ account_key?: string;
64860
+ barcode?: string | null;
64861
+ code?: string | null;
64862
+ cost_price?: number | null;
64863
+ created_at?: string;
64864
+ description?: string | null;
64865
+ division_code?: number | null;
64866
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64867
+ exact_id?: string;
64868
+ exact_modified?: string | null;
64869
+ exact_timestamp?: number | null;
64870
+ gl_account_code?: string | null;
64871
+ id?: string;
64872
+ is_active?: boolean;
64873
+ is_sales_item?: boolean | null;
64874
+ item_type?: string | null;
64875
+ raw?: import("../integrations/supabase/types").Json | null;
64876
+ sales_price?: number | null;
64877
+ unit?: string | null;
64878
+ updated_at?: string;
64879
+ vat_code?: string | null;
64880
+ };
64881
+ Relationships: [];
64882
+ };
64883
+ exact_auth_sync_log: {
64884
+ Row: {
64885
+ account_key: string;
64886
+ calls_used: number;
64887
+ created_at: string;
64888
+ domain: string;
64889
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64890
+ error: string | null;
64891
+ finished_at: string | null;
64892
+ id: string;
64893
+ ok: boolean;
64894
+ records: number;
64895
+ started_at: string;
64896
+ };
64897
+ Insert: {
64898
+ account_key?: string;
64899
+ calls_used?: number;
64900
+ created_at?: string;
64901
+ domain: string;
64902
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64903
+ error?: string | null;
64904
+ finished_at?: string | null;
64905
+ id?: string;
64906
+ ok?: boolean;
64907
+ records?: number;
64908
+ started_at?: string;
64909
+ };
64910
+ Update: {
64911
+ account_key?: string;
64912
+ calls_used?: number;
64913
+ created_at?: string;
64914
+ domain?: string;
64915
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64916
+ error?: string | null;
64917
+ finished_at?: string | null;
64918
+ id?: string;
64919
+ ok?: boolean;
64920
+ records?: number;
64921
+ started_at?: string;
64922
+ };
64923
+ Relationships: [];
64924
+ };
64925
+ exact_auth_sync_state: {
64926
+ Row: {
64927
+ account_key: string;
64928
+ created_at: string;
64929
+ cursor_timestamp: number;
64930
+ division_code: number | null;
64931
+ domain: string;
64932
+ duration_ms: number | null;
64933
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64934
+ initial_sync_done: boolean;
64935
+ last_error: string | null;
64936
+ last_run_at: string | null;
64937
+ last_success_at: string | null;
64938
+ locked_at: string | null;
64939
+ needs_initial_sync: boolean;
64940
+ record_count: number;
64941
+ updated_at: string;
64942
+ };
64943
+ Insert: {
64944
+ account_key?: string;
64945
+ created_at?: string;
64946
+ cursor_timestamp?: number;
64947
+ division_code?: number | null;
64948
+ domain: string;
64949
+ duration_ms?: number | null;
64950
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64951
+ initial_sync_done?: boolean;
64952
+ last_error?: string | null;
64953
+ last_run_at?: string | null;
64954
+ last_success_at?: string | null;
64955
+ locked_at?: string | null;
64956
+ needs_initial_sync?: boolean;
64957
+ record_count?: number;
64958
+ updated_at?: string;
64959
+ };
64960
+ Update: {
64961
+ account_key?: string;
64962
+ created_at?: string;
64963
+ cursor_timestamp?: number;
64964
+ division_code?: number | null;
64965
+ domain?: string;
64966
+ duration_ms?: number | null;
64967
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64968
+ initial_sync_done?: boolean;
64969
+ last_error?: string | null;
64970
+ last_run_at?: string | null;
64971
+ last_success_at?: string | null;
64972
+ locked_at?: string | null;
64973
+ needs_initial_sync?: boolean;
64974
+ record_count?: number;
64975
+ updated_at?: string;
64976
+ };
64977
+ Relationships: [];
64978
+ };
63041
64979
  exact_bulk_operation_items: {
63042
64980
  Row: {
63043
64981
  attempts: number;
@@ -69538,6 +71476,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
69538
71476
  };
69539
71477
  offer_settings: {
69540
71478
  Row: {
71479
+ brand_name: string | null;
69541
71480
  button_color: string;
69542
71481
  created_at: string;
69543
71482
  default_countries: string[];
@@ -69559,6 +71498,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
69559
71498
  updated_at: string;
69560
71499
  };
69561
71500
  Insert: {
71501
+ brand_name?: string | null;
69562
71502
  button_color?: string;
69563
71503
  created_at?: string;
69564
71504
  default_countries?: string[];
@@ -69580,6 +71520,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
69580
71520
  updated_at?: string;
69581
71521
  };
69582
71522
  Update: {
71523
+ brand_name?: string | null;
69583
71524
  button_color?: string;
69584
71525
  created_at?: string;
69585
71526
  default_countries?: string[];
@@ -77430,6 +79371,21 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
77430
79371
  Args: never;
77431
79372
  Returns: string;
77432
79373
  };
79374
+ exact_auth_consume_calls: {
79375
+ Args: {
79376
+ _account_key: string;
79377
+ _calls?: number;
79378
+ _day_limit?: number;
79379
+ _division_code: number;
79380
+ _environment: string;
79381
+ _minute_limit?: number;
79382
+ };
79383
+ Returns: import("../integrations/supabase/types").Json;
79384
+ };
79385
+ exact_auth_prune_sync_log: {
79386
+ Args: never;
79387
+ Returns: undefined;
79388
+ };
77433
79389
  exact_decrypt: {
77434
79390
  Args: {
77435
79391
  cipher: string;
@@ -77639,6 +79595,10 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
77639
79595
  };
77640
79596
  Returns: number;
77641
79597
  };
79598
+ get_offer_branding: {
79599
+ Args: never;
79600
+ Returns: import("../integrations/supabase/types").Json;
79601
+ };
77642
79602
  get_offer_by_link_code: {
77643
79603
  Args: {
77644
79604
  p_code: string;
@@ -82878,6 +84838,474 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
82878
84838
  referencedColumns: ["id"];
82879
84839
  }];
82880
84840
  };
84841
+ exact_auth_call_budget: {
84842
+ Row: {
84843
+ account_key: string;
84844
+ day_count: number;
84845
+ day_date: string;
84846
+ division_code: number;
84847
+ environment: string;
84848
+ minute_count: number;
84849
+ minute_window: string;
84850
+ updated_at: string;
84851
+ };
84852
+ Insert: {
84853
+ account_key?: string;
84854
+ day_count?: number;
84855
+ day_date?: string;
84856
+ division_code?: number;
84857
+ environment: string;
84858
+ minute_count?: number;
84859
+ minute_window?: string;
84860
+ updated_at?: string;
84861
+ };
84862
+ Update: {
84863
+ account_key?: string;
84864
+ day_count?: number;
84865
+ day_date?: string;
84866
+ division_code?: number;
84867
+ environment?: string;
84868
+ minute_count?: number;
84869
+ minute_window?: string;
84870
+ updated_at?: string;
84871
+ };
84872
+ Relationships: [];
84873
+ };
84874
+ exact_auth_customers: {
84875
+ Row: {
84876
+ account_key: string;
84877
+ address_line1: string | null;
84878
+ chamber_of_commerce: string | null;
84879
+ city: string | null;
84880
+ code: string | null;
84881
+ country: string | null;
84882
+ created_at: string;
84883
+ currency: string | null;
84884
+ division_code: number | null;
84885
+ email: string | null;
84886
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84887
+ exact_id: string;
84888
+ exact_modified: string | null;
84889
+ exact_timestamp: number | null;
84890
+ id: string;
84891
+ is_active: boolean;
84892
+ name: string | null;
84893
+ phone: string | null;
84894
+ postcode: string | null;
84895
+ raw: import("../integrations/supabase/types").Json | null;
84896
+ status: string | null;
84897
+ updated_at: string;
84898
+ vat_number: string | null;
84899
+ website: string | null;
84900
+ };
84901
+ Insert: {
84902
+ account_key?: string;
84903
+ address_line1?: string | null;
84904
+ chamber_of_commerce?: string | null;
84905
+ city?: string | null;
84906
+ code?: string | null;
84907
+ country?: string | null;
84908
+ created_at?: string;
84909
+ currency?: string | null;
84910
+ division_code?: number | null;
84911
+ email?: string | null;
84912
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84913
+ exact_id: string;
84914
+ exact_modified?: string | null;
84915
+ exact_timestamp?: number | null;
84916
+ id?: string;
84917
+ is_active?: boolean;
84918
+ name?: string | null;
84919
+ phone?: string | null;
84920
+ postcode?: string | null;
84921
+ raw?: import("../integrations/supabase/types").Json | null;
84922
+ status?: string | null;
84923
+ updated_at?: string;
84924
+ vat_number?: string | null;
84925
+ website?: string | null;
84926
+ };
84927
+ Update: {
84928
+ account_key?: string;
84929
+ address_line1?: string | null;
84930
+ chamber_of_commerce?: string | null;
84931
+ city?: string | null;
84932
+ code?: string | null;
84933
+ country?: string | null;
84934
+ created_at?: string;
84935
+ currency?: string | null;
84936
+ division_code?: number | null;
84937
+ email?: string | null;
84938
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84939
+ exact_id?: string;
84940
+ exact_modified?: string | null;
84941
+ exact_timestamp?: number | null;
84942
+ id?: string;
84943
+ is_active?: boolean;
84944
+ name?: string | null;
84945
+ phone?: string | null;
84946
+ postcode?: string | null;
84947
+ raw?: import("../integrations/supabase/types").Json | null;
84948
+ status?: string | null;
84949
+ updated_at?: string;
84950
+ vat_number?: string | null;
84951
+ website?: string | null;
84952
+ };
84953
+ Relationships: [];
84954
+ };
84955
+ exact_auth_divisions: {
84956
+ Row: {
84957
+ account_key: string;
84958
+ company_name: string | null;
84959
+ created_at: string;
84960
+ division_code: number | null;
84961
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84962
+ id: string;
84963
+ last_synced_at: string | null;
84964
+ updated_at: string;
84965
+ };
84966
+ Insert: {
84967
+ account_key?: string;
84968
+ company_name?: string | null;
84969
+ created_at?: string;
84970
+ division_code?: number | null;
84971
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84972
+ id?: string;
84973
+ last_synced_at?: string | null;
84974
+ updated_at?: string;
84975
+ };
84976
+ Update: {
84977
+ account_key?: string;
84978
+ company_name?: string | null;
84979
+ created_at?: string;
84980
+ division_code?: number | null;
84981
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84982
+ id?: string;
84983
+ last_synced_at?: string | null;
84984
+ updated_at?: string;
84985
+ };
84986
+ Relationships: [];
84987
+ };
84988
+ exact_auth_invoice_lines: {
84989
+ Row: {
84990
+ account_key: string;
84991
+ amount_excl: number | null;
84992
+ created_at: string;
84993
+ description: string | null;
84994
+ discount: number | null;
84995
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84996
+ exact_id: string;
84997
+ exact_timestamp: number | null;
84998
+ id: string;
84999
+ invoice_exact_id: string;
85000
+ item_code: string | null;
85001
+ item_exact_id: string | null;
85002
+ line_number: number | null;
85003
+ quantity: number | null;
85004
+ raw: import("../integrations/supabase/types").Json | null;
85005
+ unit_price: number | null;
85006
+ updated_at: string;
85007
+ vat_amount: number | null;
85008
+ vat_code: string | null;
85009
+ };
85010
+ Insert: {
85011
+ account_key?: string;
85012
+ amount_excl?: number | null;
85013
+ created_at?: string;
85014
+ description?: string | null;
85015
+ discount?: number | null;
85016
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85017
+ exact_id: string;
85018
+ exact_timestamp?: number | null;
85019
+ id?: string;
85020
+ invoice_exact_id: string;
85021
+ item_code?: string | null;
85022
+ item_exact_id?: string | null;
85023
+ line_number?: number | null;
85024
+ quantity?: number | null;
85025
+ raw?: import("../integrations/supabase/types").Json | null;
85026
+ unit_price?: number | null;
85027
+ updated_at?: string;
85028
+ vat_amount?: number | null;
85029
+ vat_code?: string | null;
85030
+ };
85031
+ Update: {
85032
+ account_key?: string;
85033
+ amount_excl?: number | null;
85034
+ created_at?: string;
85035
+ description?: string | null;
85036
+ discount?: number | null;
85037
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85038
+ exact_id?: string;
85039
+ exact_timestamp?: number | null;
85040
+ id?: string;
85041
+ invoice_exact_id?: string;
85042
+ item_code?: string | null;
85043
+ item_exact_id?: string | null;
85044
+ line_number?: number | null;
85045
+ quantity?: number | null;
85046
+ raw?: import("../integrations/supabase/types").Json | null;
85047
+ unit_price?: number | null;
85048
+ updated_at?: string;
85049
+ vat_amount?: number | null;
85050
+ vat_code?: string | null;
85051
+ };
85052
+ Relationships: [];
85053
+ };
85054
+ exact_auth_invoices: {
85055
+ Row: {
85056
+ account_key: string;
85057
+ amount_excl: number | null;
85058
+ amount_incl: number | null;
85059
+ amount_open: number | null;
85060
+ created_at: string;
85061
+ currency: string | null;
85062
+ customer_code: string | null;
85063
+ customer_exact_id: string | null;
85064
+ customer_name: string | null;
85065
+ description: string | null;
85066
+ division_code: number | null;
85067
+ due_date: string | null;
85068
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85069
+ exact_id: string;
85070
+ exact_modified: string | null;
85071
+ exact_timestamp: number | null;
85072
+ id: string;
85073
+ invoice_date: string | null;
85074
+ invoice_number: string | null;
85075
+ order_number: string | null;
85076
+ paid_at: string | null;
85077
+ payment_status: string;
85078
+ raw: import("../integrations/supabase/types").Json | null;
85079
+ receivable_synced_at: string | null;
85080
+ status_code: number | null;
85081
+ updated_at: string;
85082
+ };
85083
+ Insert: {
85084
+ account_key?: string;
85085
+ amount_excl?: number | null;
85086
+ amount_incl?: number | null;
85087
+ amount_open?: number | null;
85088
+ created_at?: string;
85089
+ currency?: string | null;
85090
+ customer_code?: string | null;
85091
+ customer_exact_id?: string | null;
85092
+ customer_name?: string | null;
85093
+ description?: string | null;
85094
+ division_code?: number | null;
85095
+ due_date?: string | null;
85096
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85097
+ exact_id: string;
85098
+ exact_modified?: string | null;
85099
+ exact_timestamp?: number | null;
85100
+ id?: string;
85101
+ invoice_date?: string | null;
85102
+ invoice_number?: string | null;
85103
+ order_number?: string | null;
85104
+ paid_at?: string | null;
85105
+ payment_status?: string;
85106
+ raw?: import("../integrations/supabase/types").Json | null;
85107
+ receivable_synced_at?: string | null;
85108
+ status_code?: number | null;
85109
+ updated_at?: string;
85110
+ };
85111
+ Update: {
85112
+ account_key?: string;
85113
+ amount_excl?: number | null;
85114
+ amount_incl?: number | null;
85115
+ amount_open?: number | null;
85116
+ created_at?: string;
85117
+ currency?: string | null;
85118
+ customer_code?: string | null;
85119
+ customer_exact_id?: string | null;
85120
+ customer_name?: string | null;
85121
+ description?: string | null;
85122
+ division_code?: number | null;
85123
+ due_date?: 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
+ invoice_date?: string | null;
85130
+ invoice_number?: string | null;
85131
+ order_number?: string | null;
85132
+ paid_at?: string | null;
85133
+ payment_status?: string;
85134
+ raw?: import("../integrations/supabase/types").Json | null;
85135
+ receivable_synced_at?: string | null;
85136
+ status_code?: number | null;
85137
+ updated_at?: string;
85138
+ };
85139
+ Relationships: [];
85140
+ };
85141
+ exact_auth_items: {
85142
+ Row: {
85143
+ account_key: string;
85144
+ barcode: string | null;
85145
+ code: string | null;
85146
+ cost_price: number | null;
85147
+ created_at: string;
85148
+ description: string | null;
85149
+ division_code: number | 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
+ gl_account_code: string | null;
85155
+ id: string;
85156
+ is_active: boolean;
85157
+ is_sales_item: boolean | null;
85158
+ item_type: string | null;
85159
+ raw: import("../integrations/supabase/types").Json | null;
85160
+ sales_price: number | null;
85161
+ unit: string | null;
85162
+ updated_at: string;
85163
+ vat_code: string | null;
85164
+ };
85165
+ Insert: {
85166
+ account_key?: string;
85167
+ barcode?: string | null;
85168
+ code?: string | null;
85169
+ cost_price?: number | null;
85170
+ created_at?: string;
85171
+ description?: string | null;
85172
+ division_code?: number | null;
85173
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85174
+ exact_id: string;
85175
+ exact_modified?: string | null;
85176
+ exact_timestamp?: number | null;
85177
+ gl_account_code?: string | null;
85178
+ id?: string;
85179
+ is_active?: boolean;
85180
+ is_sales_item?: boolean | null;
85181
+ item_type?: string | null;
85182
+ raw?: import("../integrations/supabase/types").Json | null;
85183
+ sales_price?: number | null;
85184
+ unit?: string | null;
85185
+ updated_at?: string;
85186
+ vat_code?: string | null;
85187
+ };
85188
+ Update: {
85189
+ account_key?: string;
85190
+ barcode?: string | null;
85191
+ code?: string | null;
85192
+ cost_price?: number | null;
85193
+ created_at?: string;
85194
+ description?: string | null;
85195
+ division_code?: number | null;
85196
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85197
+ exact_id?: string;
85198
+ exact_modified?: string | null;
85199
+ exact_timestamp?: number | null;
85200
+ gl_account_code?: string | null;
85201
+ id?: string;
85202
+ is_active?: boolean;
85203
+ is_sales_item?: boolean | null;
85204
+ item_type?: string | null;
85205
+ raw?: import("../integrations/supabase/types").Json | null;
85206
+ sales_price?: number | null;
85207
+ unit?: string | null;
85208
+ updated_at?: string;
85209
+ vat_code?: string | null;
85210
+ };
85211
+ Relationships: [];
85212
+ };
85213
+ exact_auth_sync_log: {
85214
+ Row: {
85215
+ account_key: string;
85216
+ calls_used: number;
85217
+ created_at: string;
85218
+ domain: string;
85219
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85220
+ error: string | null;
85221
+ finished_at: string | null;
85222
+ id: string;
85223
+ ok: boolean;
85224
+ records: number;
85225
+ started_at: string;
85226
+ };
85227
+ Insert: {
85228
+ account_key?: string;
85229
+ calls_used?: number;
85230
+ created_at?: string;
85231
+ domain: string;
85232
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85233
+ error?: string | null;
85234
+ finished_at?: string | null;
85235
+ id?: string;
85236
+ ok?: boolean;
85237
+ records?: number;
85238
+ started_at?: string;
85239
+ };
85240
+ Update: {
85241
+ account_key?: string;
85242
+ calls_used?: number;
85243
+ created_at?: string;
85244
+ domain?: string;
85245
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85246
+ error?: string | null;
85247
+ finished_at?: string | null;
85248
+ id?: string;
85249
+ ok?: boolean;
85250
+ records?: number;
85251
+ started_at?: string;
85252
+ };
85253
+ Relationships: [];
85254
+ };
85255
+ exact_auth_sync_state: {
85256
+ Row: {
85257
+ account_key: string;
85258
+ created_at: string;
85259
+ cursor_timestamp: number;
85260
+ division_code: number | null;
85261
+ domain: string;
85262
+ duration_ms: number | null;
85263
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85264
+ initial_sync_done: boolean;
85265
+ last_error: string | null;
85266
+ last_run_at: string | null;
85267
+ last_success_at: string | null;
85268
+ locked_at: string | null;
85269
+ needs_initial_sync: boolean;
85270
+ record_count: number;
85271
+ updated_at: string;
85272
+ };
85273
+ Insert: {
85274
+ account_key?: string;
85275
+ created_at?: string;
85276
+ cursor_timestamp?: number;
85277
+ division_code?: number | null;
85278
+ domain: string;
85279
+ duration_ms?: number | null;
85280
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85281
+ initial_sync_done?: boolean;
85282
+ last_error?: string | null;
85283
+ last_run_at?: string | null;
85284
+ last_success_at?: string | null;
85285
+ locked_at?: string | null;
85286
+ needs_initial_sync?: boolean;
85287
+ record_count?: number;
85288
+ updated_at?: string;
85289
+ };
85290
+ Update: {
85291
+ account_key?: string;
85292
+ created_at?: string;
85293
+ cursor_timestamp?: number;
85294
+ division_code?: number | null;
85295
+ domain?: string;
85296
+ duration_ms?: number | null;
85297
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85298
+ initial_sync_done?: boolean;
85299
+ last_error?: string | null;
85300
+ last_run_at?: string | null;
85301
+ last_success_at?: string | null;
85302
+ locked_at?: string | null;
85303
+ needs_initial_sync?: boolean;
85304
+ record_count?: number;
85305
+ updated_at?: string;
85306
+ };
85307
+ Relationships: [];
85308
+ };
82881
85309
  exact_bulk_operation_items: {
82882
85310
  Row: {
82883
85311
  attempts: number;
@@ -89378,6 +91806,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
89378
91806
  };
89379
91807
  offer_settings: {
89380
91808
  Row: {
91809
+ brand_name: string | null;
89381
91810
  button_color: string;
89382
91811
  created_at: string;
89383
91812
  default_countries: string[];
@@ -89399,6 +91828,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
89399
91828
  updated_at: string;
89400
91829
  };
89401
91830
  Insert: {
91831
+ brand_name?: string | null;
89402
91832
  button_color?: string;
89403
91833
  created_at?: string;
89404
91834
  default_countries?: string[];
@@ -89420,6 +91850,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
89420
91850
  updated_at?: string;
89421
91851
  };
89422
91852
  Update: {
91853
+ brand_name?: string | null;
89423
91854
  button_color?: string;
89424
91855
  created_at?: string;
89425
91856
  default_countries?: string[];
@@ -97270,6 +99701,21 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
97270
99701
  Args: never;
97271
99702
  Returns: string;
97272
99703
  };
99704
+ exact_auth_consume_calls: {
99705
+ Args: {
99706
+ _account_key: string;
99707
+ _calls?: number;
99708
+ _day_limit?: number;
99709
+ _division_code: number;
99710
+ _environment: string;
99711
+ _minute_limit?: number;
99712
+ };
99713
+ Returns: import("../integrations/supabase/types").Json;
99714
+ };
99715
+ exact_auth_prune_sync_log: {
99716
+ Args: never;
99717
+ Returns: undefined;
99718
+ };
97273
99719
  exact_decrypt: {
97274
99720
  Args: {
97275
99721
  cipher: string;
@@ -97479,6 +99925,10 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
97479
99925
  };
97480
99926
  Returns: number;
97481
99927
  };
99928
+ get_offer_branding: {
99929
+ Args: never;
99930
+ Returns: import("../integrations/supabase/types").Json;
99931
+ };
97482
99932
  get_offer_by_link_code: {
97483
99933
  Args: {
97484
99934
  p_code: string;
@@ -102718,6 +105168,474 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
102718
105168
  referencedColumns: ["id"];
102719
105169
  }];
102720
105170
  };
105171
+ exact_auth_call_budget: {
105172
+ Row: {
105173
+ account_key: string;
105174
+ day_count: number;
105175
+ day_date: string;
105176
+ division_code: number;
105177
+ environment: string;
105178
+ minute_count: number;
105179
+ minute_window: string;
105180
+ updated_at: string;
105181
+ };
105182
+ Insert: {
105183
+ account_key?: string;
105184
+ day_count?: number;
105185
+ day_date?: string;
105186
+ division_code?: number;
105187
+ environment: string;
105188
+ minute_count?: number;
105189
+ minute_window?: string;
105190
+ updated_at?: string;
105191
+ };
105192
+ Update: {
105193
+ account_key?: string;
105194
+ day_count?: number;
105195
+ day_date?: string;
105196
+ division_code?: number;
105197
+ environment?: string;
105198
+ minute_count?: number;
105199
+ minute_window?: string;
105200
+ updated_at?: string;
105201
+ };
105202
+ Relationships: [];
105203
+ };
105204
+ exact_auth_customers: {
105205
+ Row: {
105206
+ account_key: string;
105207
+ address_line1: string | null;
105208
+ chamber_of_commerce: string | null;
105209
+ city: string | null;
105210
+ code: string | null;
105211
+ country: string | null;
105212
+ created_at: string;
105213
+ currency: string | null;
105214
+ division_code: number | null;
105215
+ email: string | null;
105216
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105217
+ exact_id: string;
105218
+ exact_modified: string | null;
105219
+ exact_timestamp: number | null;
105220
+ id: string;
105221
+ is_active: boolean;
105222
+ name: string | null;
105223
+ phone: string | null;
105224
+ postcode: string | null;
105225
+ raw: import("../integrations/supabase/types").Json | null;
105226
+ status: string | null;
105227
+ updated_at: string;
105228
+ vat_number: string | null;
105229
+ website: string | null;
105230
+ };
105231
+ Insert: {
105232
+ account_key?: string;
105233
+ address_line1?: string | null;
105234
+ chamber_of_commerce?: string | null;
105235
+ city?: string | null;
105236
+ code?: string | null;
105237
+ country?: string | null;
105238
+ created_at?: string;
105239
+ currency?: string | null;
105240
+ division_code?: number | null;
105241
+ email?: string | null;
105242
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105243
+ exact_id: string;
105244
+ exact_modified?: string | null;
105245
+ exact_timestamp?: number | null;
105246
+ id?: string;
105247
+ is_active?: boolean;
105248
+ name?: string | null;
105249
+ phone?: string | null;
105250
+ postcode?: string | null;
105251
+ raw?: import("../integrations/supabase/types").Json | null;
105252
+ status?: string | null;
105253
+ updated_at?: string;
105254
+ vat_number?: string | null;
105255
+ website?: string | null;
105256
+ };
105257
+ Update: {
105258
+ account_key?: string;
105259
+ address_line1?: string | null;
105260
+ chamber_of_commerce?: string | null;
105261
+ city?: string | null;
105262
+ code?: string | null;
105263
+ country?: string | null;
105264
+ created_at?: string;
105265
+ currency?: string | null;
105266
+ division_code?: number | null;
105267
+ email?: string | null;
105268
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105269
+ exact_id?: string;
105270
+ exact_modified?: string | null;
105271
+ exact_timestamp?: number | null;
105272
+ id?: string;
105273
+ is_active?: boolean;
105274
+ name?: string | null;
105275
+ phone?: string | null;
105276
+ postcode?: string | null;
105277
+ raw?: import("../integrations/supabase/types").Json | null;
105278
+ status?: string | null;
105279
+ updated_at?: string;
105280
+ vat_number?: string | null;
105281
+ website?: string | null;
105282
+ };
105283
+ Relationships: [];
105284
+ };
105285
+ exact_auth_divisions: {
105286
+ Row: {
105287
+ account_key: string;
105288
+ company_name: string | null;
105289
+ created_at: string;
105290
+ division_code: number | null;
105291
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105292
+ id: string;
105293
+ last_synced_at: string | null;
105294
+ updated_at: string;
105295
+ };
105296
+ Insert: {
105297
+ account_key?: string;
105298
+ company_name?: string | null;
105299
+ created_at?: string;
105300
+ division_code?: number | null;
105301
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105302
+ id?: string;
105303
+ last_synced_at?: string | null;
105304
+ updated_at?: string;
105305
+ };
105306
+ Update: {
105307
+ account_key?: string;
105308
+ company_name?: string | null;
105309
+ created_at?: string;
105310
+ division_code?: number | null;
105311
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105312
+ id?: string;
105313
+ last_synced_at?: string | null;
105314
+ updated_at?: string;
105315
+ };
105316
+ Relationships: [];
105317
+ };
105318
+ exact_auth_invoice_lines: {
105319
+ Row: {
105320
+ account_key: string;
105321
+ amount_excl: number | null;
105322
+ created_at: string;
105323
+ description: string | null;
105324
+ discount: number | null;
105325
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105326
+ exact_id: string;
105327
+ exact_timestamp: number | null;
105328
+ id: string;
105329
+ invoice_exact_id: string;
105330
+ item_code: string | null;
105331
+ item_exact_id: string | null;
105332
+ line_number: number | null;
105333
+ quantity: number | null;
105334
+ raw: import("../integrations/supabase/types").Json | null;
105335
+ unit_price: number | null;
105336
+ updated_at: string;
105337
+ vat_amount: number | null;
105338
+ vat_code: string | null;
105339
+ };
105340
+ Insert: {
105341
+ account_key?: string;
105342
+ amount_excl?: number | null;
105343
+ created_at?: string;
105344
+ description?: string | null;
105345
+ discount?: number | null;
105346
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105347
+ exact_id: string;
105348
+ exact_timestamp?: number | null;
105349
+ id?: string;
105350
+ invoice_exact_id: string;
105351
+ item_code?: string | null;
105352
+ item_exact_id?: string | null;
105353
+ line_number?: number | null;
105354
+ quantity?: number | null;
105355
+ raw?: import("../integrations/supabase/types").Json | null;
105356
+ unit_price?: number | null;
105357
+ updated_at?: string;
105358
+ vat_amount?: number | null;
105359
+ vat_code?: string | null;
105360
+ };
105361
+ Update: {
105362
+ account_key?: string;
105363
+ amount_excl?: number | null;
105364
+ created_at?: string;
105365
+ description?: string | null;
105366
+ discount?: number | null;
105367
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105368
+ exact_id?: string;
105369
+ exact_timestamp?: number | null;
105370
+ id?: string;
105371
+ invoice_exact_id?: string;
105372
+ item_code?: string | null;
105373
+ item_exact_id?: string | null;
105374
+ line_number?: number | null;
105375
+ quantity?: number | null;
105376
+ raw?: import("../integrations/supabase/types").Json | null;
105377
+ unit_price?: number | null;
105378
+ updated_at?: string;
105379
+ vat_amount?: number | null;
105380
+ vat_code?: string | null;
105381
+ };
105382
+ Relationships: [];
105383
+ };
105384
+ exact_auth_invoices: {
105385
+ Row: {
105386
+ account_key: string;
105387
+ amount_excl: number | null;
105388
+ amount_incl: number | null;
105389
+ amount_open: number | null;
105390
+ created_at: string;
105391
+ currency: string | null;
105392
+ customer_code: string | null;
105393
+ customer_exact_id: string | null;
105394
+ customer_name: string | null;
105395
+ description: string | null;
105396
+ division_code: number | null;
105397
+ due_date: string | null;
105398
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105399
+ exact_id: string;
105400
+ exact_modified: string | null;
105401
+ exact_timestamp: number | null;
105402
+ id: string;
105403
+ invoice_date: string | null;
105404
+ invoice_number: string | null;
105405
+ order_number: string | null;
105406
+ paid_at: string | null;
105407
+ payment_status: string;
105408
+ raw: import("../integrations/supabase/types").Json | null;
105409
+ receivable_synced_at: string | null;
105410
+ status_code: number | null;
105411
+ updated_at: string;
105412
+ };
105413
+ Insert: {
105414
+ account_key?: string;
105415
+ amount_excl?: number | null;
105416
+ amount_incl?: number | null;
105417
+ amount_open?: number | null;
105418
+ created_at?: string;
105419
+ currency?: string | null;
105420
+ customer_code?: string | null;
105421
+ customer_exact_id?: string | null;
105422
+ customer_name?: string | null;
105423
+ description?: string | null;
105424
+ division_code?: number | null;
105425
+ due_date?: string | null;
105426
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105427
+ exact_id: string;
105428
+ exact_modified?: string | null;
105429
+ exact_timestamp?: number | null;
105430
+ id?: string;
105431
+ invoice_date?: string | null;
105432
+ invoice_number?: string | null;
105433
+ order_number?: string | null;
105434
+ paid_at?: string | null;
105435
+ payment_status?: string;
105436
+ raw?: import("../integrations/supabase/types").Json | null;
105437
+ receivable_synced_at?: string | null;
105438
+ status_code?: number | null;
105439
+ updated_at?: string;
105440
+ };
105441
+ Update: {
105442
+ account_key?: string;
105443
+ amount_excl?: number | null;
105444
+ amount_incl?: number | null;
105445
+ amount_open?: number | null;
105446
+ created_at?: string;
105447
+ currency?: string | null;
105448
+ customer_code?: string | null;
105449
+ customer_exact_id?: string | null;
105450
+ customer_name?: string | null;
105451
+ description?: string | null;
105452
+ division_code?: number | null;
105453
+ due_date?: string | null;
105454
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105455
+ exact_id?: string;
105456
+ exact_modified?: string | null;
105457
+ exact_timestamp?: number | null;
105458
+ id?: string;
105459
+ invoice_date?: string | null;
105460
+ invoice_number?: string | null;
105461
+ order_number?: string | null;
105462
+ paid_at?: string | null;
105463
+ payment_status?: string;
105464
+ raw?: import("../integrations/supabase/types").Json | null;
105465
+ receivable_synced_at?: string | null;
105466
+ status_code?: number | null;
105467
+ updated_at?: string;
105468
+ };
105469
+ Relationships: [];
105470
+ };
105471
+ exact_auth_items: {
105472
+ Row: {
105473
+ account_key: string;
105474
+ barcode: string | null;
105475
+ code: string | null;
105476
+ cost_price: number | null;
105477
+ created_at: string;
105478
+ description: string | null;
105479
+ division_code: number | null;
105480
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105481
+ exact_id: string;
105482
+ exact_modified: string | null;
105483
+ exact_timestamp: number | null;
105484
+ gl_account_code: string | null;
105485
+ id: string;
105486
+ is_active: boolean;
105487
+ is_sales_item: boolean | null;
105488
+ item_type: string | null;
105489
+ raw: import("../integrations/supabase/types").Json | null;
105490
+ sales_price: number | null;
105491
+ unit: string | null;
105492
+ updated_at: string;
105493
+ vat_code: string | null;
105494
+ };
105495
+ Insert: {
105496
+ account_key?: string;
105497
+ barcode?: string | null;
105498
+ code?: string | null;
105499
+ cost_price?: number | null;
105500
+ created_at?: string;
105501
+ description?: string | null;
105502
+ division_code?: number | null;
105503
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105504
+ exact_id: string;
105505
+ exact_modified?: string | null;
105506
+ exact_timestamp?: number | null;
105507
+ gl_account_code?: string | null;
105508
+ id?: string;
105509
+ is_active?: boolean;
105510
+ is_sales_item?: boolean | null;
105511
+ item_type?: string | null;
105512
+ raw?: import("../integrations/supabase/types").Json | null;
105513
+ sales_price?: number | null;
105514
+ unit?: string | null;
105515
+ updated_at?: string;
105516
+ vat_code?: string | null;
105517
+ };
105518
+ Update: {
105519
+ account_key?: string;
105520
+ barcode?: string | null;
105521
+ code?: string | null;
105522
+ cost_price?: number | null;
105523
+ created_at?: string;
105524
+ description?: string | null;
105525
+ division_code?: number | null;
105526
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105527
+ exact_id?: string;
105528
+ exact_modified?: string | null;
105529
+ exact_timestamp?: number | null;
105530
+ gl_account_code?: string | null;
105531
+ id?: string;
105532
+ is_active?: boolean;
105533
+ is_sales_item?: boolean | null;
105534
+ item_type?: string | null;
105535
+ raw?: import("../integrations/supabase/types").Json | null;
105536
+ sales_price?: number | null;
105537
+ unit?: string | null;
105538
+ updated_at?: string;
105539
+ vat_code?: string | null;
105540
+ };
105541
+ Relationships: [];
105542
+ };
105543
+ exact_auth_sync_log: {
105544
+ Row: {
105545
+ account_key: string;
105546
+ calls_used: number;
105547
+ created_at: string;
105548
+ domain: string;
105549
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105550
+ error: string | null;
105551
+ finished_at: string | null;
105552
+ id: string;
105553
+ ok: boolean;
105554
+ records: number;
105555
+ started_at: string;
105556
+ };
105557
+ Insert: {
105558
+ account_key?: string;
105559
+ calls_used?: number;
105560
+ created_at?: string;
105561
+ domain: string;
105562
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105563
+ error?: string | null;
105564
+ finished_at?: string | null;
105565
+ id?: string;
105566
+ ok?: boolean;
105567
+ records?: number;
105568
+ started_at?: string;
105569
+ };
105570
+ Update: {
105571
+ account_key?: string;
105572
+ calls_used?: number;
105573
+ created_at?: string;
105574
+ domain?: string;
105575
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105576
+ error?: string | null;
105577
+ finished_at?: string | null;
105578
+ id?: string;
105579
+ ok?: boolean;
105580
+ records?: number;
105581
+ started_at?: string;
105582
+ };
105583
+ Relationships: [];
105584
+ };
105585
+ exact_auth_sync_state: {
105586
+ Row: {
105587
+ account_key: string;
105588
+ created_at: string;
105589
+ cursor_timestamp: number;
105590
+ division_code: number | null;
105591
+ domain: string;
105592
+ duration_ms: number | null;
105593
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105594
+ initial_sync_done: boolean;
105595
+ last_error: string | null;
105596
+ last_run_at: string | null;
105597
+ last_success_at: string | null;
105598
+ locked_at: string | null;
105599
+ needs_initial_sync: boolean;
105600
+ record_count: number;
105601
+ updated_at: string;
105602
+ };
105603
+ Insert: {
105604
+ account_key?: string;
105605
+ created_at?: string;
105606
+ cursor_timestamp?: number;
105607
+ division_code?: number | null;
105608
+ domain: string;
105609
+ duration_ms?: number | null;
105610
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105611
+ initial_sync_done?: boolean;
105612
+ last_error?: string | null;
105613
+ last_run_at?: string | null;
105614
+ last_success_at?: string | null;
105615
+ locked_at?: string | null;
105616
+ needs_initial_sync?: boolean;
105617
+ record_count?: number;
105618
+ updated_at?: string;
105619
+ };
105620
+ Update: {
105621
+ account_key?: string;
105622
+ created_at?: string;
105623
+ cursor_timestamp?: number;
105624
+ division_code?: number | null;
105625
+ domain?: string;
105626
+ duration_ms?: number | null;
105627
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
105628
+ initial_sync_done?: boolean;
105629
+ last_error?: string | null;
105630
+ last_run_at?: string | null;
105631
+ last_success_at?: string | null;
105632
+ locked_at?: string | null;
105633
+ needs_initial_sync?: boolean;
105634
+ record_count?: number;
105635
+ updated_at?: string;
105636
+ };
105637
+ Relationships: [];
105638
+ };
102721
105639
  exact_bulk_operation_items: {
102722
105640
  Row: {
102723
105641
  attempts: number;
@@ -109218,6 +112136,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
109218
112136
  };
109219
112137
  offer_settings: {
109220
112138
  Row: {
112139
+ brand_name: string | null;
109221
112140
  button_color: string;
109222
112141
  created_at: string;
109223
112142
  default_countries: string[];
@@ -109239,6 +112158,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
109239
112158
  updated_at: string;
109240
112159
  };
109241
112160
  Insert: {
112161
+ brand_name?: string | null;
109242
112162
  button_color?: string;
109243
112163
  created_at?: string;
109244
112164
  default_countries?: string[];
@@ -109260,6 +112180,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
109260
112180
  updated_at?: string;
109261
112181
  };
109262
112182
  Update: {
112183
+ brand_name?: string | null;
109263
112184
  button_color?: string;
109264
112185
  created_at?: string;
109265
112186
  default_countries?: string[];
@@ -117110,6 +120031,21 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
117110
120031
  Args: never;
117111
120032
  Returns: string;
117112
120033
  };
120034
+ exact_auth_consume_calls: {
120035
+ Args: {
120036
+ _account_key: string;
120037
+ _calls?: number;
120038
+ _day_limit?: number;
120039
+ _division_code: number;
120040
+ _environment: string;
120041
+ _minute_limit?: number;
120042
+ };
120043
+ Returns: import("../integrations/supabase/types").Json;
120044
+ };
120045
+ exact_auth_prune_sync_log: {
120046
+ Args: never;
120047
+ Returns: undefined;
120048
+ };
117113
120049
  exact_decrypt: {
117114
120050
  Args: {
117115
120051
  cipher: string;
@@ -117319,6 +120255,10 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
117319
120255
  };
117320
120256
  Returns: number;
117321
120257
  };
120258
+ get_offer_branding: {
120259
+ Args: never;
120260
+ Returns: import("../integrations/supabase/types").Json;
120261
+ };
117322
120262
  get_offer_by_link_code: {
117323
120263
  Args: {
117324
120264
  p_code: string;
@@ -122535,6 +125475,474 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
122535
125475
  referencedColumns: ["id"];
122536
125476
  }];
122537
125477
  };
125478
+ exact_auth_call_budget: {
125479
+ Row: {
125480
+ account_key: string;
125481
+ day_count: number;
125482
+ day_date: string;
125483
+ division_code: number;
125484
+ environment: string;
125485
+ minute_count: number;
125486
+ minute_window: string;
125487
+ updated_at: string;
125488
+ };
125489
+ Insert: {
125490
+ account_key?: string;
125491
+ day_count?: number;
125492
+ day_date?: string;
125493
+ division_code?: number;
125494
+ environment: string;
125495
+ minute_count?: number;
125496
+ minute_window?: string;
125497
+ updated_at?: string;
125498
+ };
125499
+ Update: {
125500
+ account_key?: string;
125501
+ day_count?: number;
125502
+ day_date?: string;
125503
+ division_code?: number;
125504
+ environment?: string;
125505
+ minute_count?: number;
125506
+ minute_window?: string;
125507
+ updated_at?: string;
125508
+ };
125509
+ Relationships: [];
125510
+ };
125511
+ exact_auth_customers: {
125512
+ Row: {
125513
+ account_key: string;
125514
+ address_line1: string | null;
125515
+ chamber_of_commerce: string | null;
125516
+ city: string | null;
125517
+ code: string | null;
125518
+ country: string | null;
125519
+ created_at: string;
125520
+ currency: string | null;
125521
+ division_code: number | null;
125522
+ email: string | null;
125523
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125524
+ exact_id: string;
125525
+ exact_modified: string | null;
125526
+ exact_timestamp: number | null;
125527
+ id: string;
125528
+ is_active: boolean;
125529
+ name: string | null;
125530
+ phone: string | null;
125531
+ postcode: string | null;
125532
+ raw: import("../integrations/supabase/types").Json | null;
125533
+ status: string | null;
125534
+ updated_at: string;
125535
+ vat_number: string | null;
125536
+ website: string | null;
125537
+ };
125538
+ Insert: {
125539
+ account_key?: string;
125540
+ address_line1?: string | null;
125541
+ chamber_of_commerce?: string | null;
125542
+ city?: string | null;
125543
+ code?: string | null;
125544
+ country?: string | null;
125545
+ created_at?: string;
125546
+ currency?: string | null;
125547
+ division_code?: number | null;
125548
+ email?: string | null;
125549
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125550
+ exact_id: string;
125551
+ exact_modified?: string | null;
125552
+ exact_timestamp?: number | null;
125553
+ id?: string;
125554
+ is_active?: boolean;
125555
+ name?: string | null;
125556
+ phone?: string | null;
125557
+ postcode?: string | null;
125558
+ raw?: import("../integrations/supabase/types").Json | null;
125559
+ status?: string | null;
125560
+ updated_at?: string;
125561
+ vat_number?: string | null;
125562
+ website?: string | null;
125563
+ };
125564
+ Update: {
125565
+ account_key?: string;
125566
+ address_line1?: string | null;
125567
+ chamber_of_commerce?: string | null;
125568
+ city?: string | null;
125569
+ code?: string | null;
125570
+ country?: string | null;
125571
+ created_at?: string;
125572
+ currency?: string | null;
125573
+ division_code?: number | null;
125574
+ email?: string | null;
125575
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125576
+ exact_id?: string;
125577
+ exact_modified?: string | null;
125578
+ exact_timestamp?: number | null;
125579
+ id?: string;
125580
+ is_active?: boolean;
125581
+ name?: string | null;
125582
+ phone?: string | null;
125583
+ postcode?: string | null;
125584
+ raw?: import("../integrations/supabase/types").Json | null;
125585
+ status?: string | null;
125586
+ updated_at?: string;
125587
+ vat_number?: string | null;
125588
+ website?: string | null;
125589
+ };
125590
+ Relationships: [];
125591
+ };
125592
+ exact_auth_divisions: {
125593
+ Row: {
125594
+ account_key: string;
125595
+ company_name: string | null;
125596
+ created_at: string;
125597
+ division_code: number | null;
125598
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125599
+ id: string;
125600
+ last_synced_at: string | null;
125601
+ updated_at: string;
125602
+ };
125603
+ Insert: {
125604
+ account_key?: string;
125605
+ company_name?: string | null;
125606
+ created_at?: string;
125607
+ division_code?: number | null;
125608
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125609
+ id?: string;
125610
+ last_synced_at?: string | null;
125611
+ updated_at?: string;
125612
+ };
125613
+ Update: {
125614
+ account_key?: string;
125615
+ company_name?: string | null;
125616
+ created_at?: string;
125617
+ division_code?: number | null;
125618
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125619
+ id?: string;
125620
+ last_synced_at?: string | null;
125621
+ updated_at?: string;
125622
+ };
125623
+ Relationships: [];
125624
+ };
125625
+ exact_auth_invoice_lines: {
125626
+ Row: {
125627
+ account_key: string;
125628
+ amount_excl: number | null;
125629
+ created_at: string;
125630
+ description: string | null;
125631
+ discount: number | null;
125632
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125633
+ exact_id: string;
125634
+ exact_timestamp: number | null;
125635
+ id: string;
125636
+ invoice_exact_id: string;
125637
+ item_code: string | null;
125638
+ item_exact_id: string | null;
125639
+ line_number: number | null;
125640
+ quantity: number | null;
125641
+ raw: import("../integrations/supabase/types").Json | null;
125642
+ unit_price: number | null;
125643
+ updated_at: string;
125644
+ vat_amount: number | null;
125645
+ vat_code: string | null;
125646
+ };
125647
+ Insert: {
125648
+ account_key?: string;
125649
+ amount_excl?: number | null;
125650
+ created_at?: string;
125651
+ description?: string | null;
125652
+ discount?: number | null;
125653
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125654
+ exact_id: string;
125655
+ exact_timestamp?: number | null;
125656
+ id?: string;
125657
+ invoice_exact_id: string;
125658
+ item_code?: string | null;
125659
+ item_exact_id?: string | null;
125660
+ line_number?: number | null;
125661
+ quantity?: number | null;
125662
+ raw?: import("../integrations/supabase/types").Json | null;
125663
+ unit_price?: number | null;
125664
+ updated_at?: string;
125665
+ vat_amount?: number | null;
125666
+ vat_code?: string | null;
125667
+ };
125668
+ Update: {
125669
+ account_key?: string;
125670
+ amount_excl?: number | null;
125671
+ created_at?: string;
125672
+ description?: string | null;
125673
+ discount?: number | null;
125674
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125675
+ exact_id?: string;
125676
+ exact_timestamp?: number | null;
125677
+ id?: string;
125678
+ invoice_exact_id?: string;
125679
+ item_code?: string | null;
125680
+ item_exact_id?: string | null;
125681
+ line_number?: number | null;
125682
+ quantity?: number | null;
125683
+ raw?: import("../integrations/supabase/types").Json | null;
125684
+ unit_price?: number | null;
125685
+ updated_at?: string;
125686
+ vat_amount?: number | null;
125687
+ vat_code?: string | null;
125688
+ };
125689
+ Relationships: [];
125690
+ };
125691
+ exact_auth_invoices: {
125692
+ Row: {
125693
+ account_key: string;
125694
+ amount_excl: number | null;
125695
+ amount_incl: number | null;
125696
+ amount_open: number | null;
125697
+ created_at: string;
125698
+ currency: string | null;
125699
+ customer_code: string | null;
125700
+ customer_exact_id: string | null;
125701
+ customer_name: string | null;
125702
+ description: string | null;
125703
+ division_code: number | null;
125704
+ due_date: string | null;
125705
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125706
+ exact_id: string;
125707
+ exact_modified: string | null;
125708
+ exact_timestamp: number | null;
125709
+ id: string;
125710
+ invoice_date: string | null;
125711
+ invoice_number: string | null;
125712
+ order_number: string | null;
125713
+ paid_at: string | null;
125714
+ payment_status: string;
125715
+ raw: import("../integrations/supabase/types").Json | null;
125716
+ receivable_synced_at: string | null;
125717
+ status_code: number | null;
125718
+ updated_at: string;
125719
+ };
125720
+ Insert: {
125721
+ account_key?: string;
125722
+ amount_excl?: number | null;
125723
+ amount_incl?: number | null;
125724
+ amount_open?: number | null;
125725
+ created_at?: string;
125726
+ currency?: string | null;
125727
+ customer_code?: string | null;
125728
+ customer_exact_id?: string | null;
125729
+ customer_name?: string | null;
125730
+ description?: string | null;
125731
+ division_code?: number | null;
125732
+ due_date?: string | null;
125733
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125734
+ exact_id: string;
125735
+ exact_modified?: string | null;
125736
+ exact_timestamp?: number | null;
125737
+ id?: string;
125738
+ invoice_date?: string | null;
125739
+ invoice_number?: string | null;
125740
+ order_number?: string | null;
125741
+ paid_at?: string | null;
125742
+ payment_status?: string;
125743
+ raw?: import("../integrations/supabase/types").Json | null;
125744
+ receivable_synced_at?: string | null;
125745
+ status_code?: number | null;
125746
+ updated_at?: string;
125747
+ };
125748
+ Update: {
125749
+ account_key?: string;
125750
+ amount_excl?: number | null;
125751
+ amount_incl?: number | null;
125752
+ amount_open?: number | null;
125753
+ created_at?: string;
125754
+ currency?: string | null;
125755
+ customer_code?: string | null;
125756
+ customer_exact_id?: string | null;
125757
+ customer_name?: string | null;
125758
+ description?: string | null;
125759
+ division_code?: number | null;
125760
+ due_date?: string | null;
125761
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125762
+ exact_id?: string;
125763
+ exact_modified?: string | null;
125764
+ exact_timestamp?: number | null;
125765
+ id?: string;
125766
+ invoice_date?: string | null;
125767
+ invoice_number?: string | null;
125768
+ order_number?: string | null;
125769
+ paid_at?: string | null;
125770
+ payment_status?: string;
125771
+ raw?: import("../integrations/supabase/types").Json | null;
125772
+ receivable_synced_at?: string | null;
125773
+ status_code?: number | null;
125774
+ updated_at?: string;
125775
+ };
125776
+ Relationships: [];
125777
+ };
125778
+ exact_auth_items: {
125779
+ Row: {
125780
+ account_key: string;
125781
+ barcode: string | null;
125782
+ code: string | null;
125783
+ cost_price: number | null;
125784
+ created_at: string;
125785
+ description: string | null;
125786
+ division_code: number | null;
125787
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125788
+ exact_id: string;
125789
+ exact_modified: string | null;
125790
+ exact_timestamp: number | null;
125791
+ gl_account_code: string | null;
125792
+ id: string;
125793
+ is_active: boolean;
125794
+ is_sales_item: boolean | null;
125795
+ item_type: string | null;
125796
+ raw: import("../integrations/supabase/types").Json | null;
125797
+ sales_price: number | null;
125798
+ unit: string | null;
125799
+ updated_at: string;
125800
+ vat_code: string | null;
125801
+ };
125802
+ Insert: {
125803
+ account_key?: string;
125804
+ barcode?: string | null;
125805
+ code?: string | null;
125806
+ cost_price?: number | null;
125807
+ created_at?: string;
125808
+ description?: string | null;
125809
+ division_code?: number | null;
125810
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125811
+ exact_id: string;
125812
+ exact_modified?: string | null;
125813
+ exact_timestamp?: number | null;
125814
+ gl_account_code?: string | null;
125815
+ id?: string;
125816
+ is_active?: boolean;
125817
+ is_sales_item?: boolean | null;
125818
+ item_type?: string | null;
125819
+ raw?: import("../integrations/supabase/types").Json | null;
125820
+ sales_price?: number | null;
125821
+ unit?: string | null;
125822
+ updated_at?: string;
125823
+ vat_code?: string | null;
125824
+ };
125825
+ Update: {
125826
+ account_key?: string;
125827
+ barcode?: string | null;
125828
+ code?: string | null;
125829
+ cost_price?: number | null;
125830
+ created_at?: string;
125831
+ description?: string | null;
125832
+ division_code?: number | null;
125833
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125834
+ exact_id?: string;
125835
+ exact_modified?: string | null;
125836
+ exact_timestamp?: number | null;
125837
+ gl_account_code?: string | null;
125838
+ id?: string;
125839
+ is_active?: boolean;
125840
+ is_sales_item?: boolean | null;
125841
+ item_type?: string | null;
125842
+ raw?: import("../integrations/supabase/types").Json | null;
125843
+ sales_price?: number | null;
125844
+ unit?: string | null;
125845
+ updated_at?: string;
125846
+ vat_code?: string | null;
125847
+ };
125848
+ Relationships: [];
125849
+ };
125850
+ exact_auth_sync_log: {
125851
+ Row: {
125852
+ account_key: string;
125853
+ calls_used: number;
125854
+ created_at: string;
125855
+ domain: string;
125856
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125857
+ error: string | null;
125858
+ finished_at: string | null;
125859
+ id: string;
125860
+ ok: boolean;
125861
+ records: number;
125862
+ started_at: string;
125863
+ };
125864
+ Insert: {
125865
+ account_key?: string;
125866
+ calls_used?: number;
125867
+ created_at?: string;
125868
+ domain: string;
125869
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125870
+ error?: string | null;
125871
+ finished_at?: string | null;
125872
+ id?: string;
125873
+ ok?: boolean;
125874
+ records?: number;
125875
+ started_at?: string;
125876
+ };
125877
+ Update: {
125878
+ account_key?: string;
125879
+ calls_used?: number;
125880
+ created_at?: string;
125881
+ domain?: string;
125882
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125883
+ error?: string | null;
125884
+ finished_at?: string | null;
125885
+ id?: string;
125886
+ ok?: boolean;
125887
+ records?: number;
125888
+ started_at?: string;
125889
+ };
125890
+ Relationships: [];
125891
+ };
125892
+ exact_auth_sync_state: {
125893
+ Row: {
125894
+ account_key: string;
125895
+ created_at: string;
125896
+ cursor_timestamp: number;
125897
+ division_code: number | null;
125898
+ domain: string;
125899
+ duration_ms: number | null;
125900
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125901
+ initial_sync_done: boolean;
125902
+ last_error: string | null;
125903
+ last_run_at: string | null;
125904
+ last_success_at: string | null;
125905
+ locked_at: string | null;
125906
+ needs_initial_sync: boolean;
125907
+ record_count: number;
125908
+ updated_at: string;
125909
+ };
125910
+ Insert: {
125911
+ account_key?: string;
125912
+ created_at?: string;
125913
+ cursor_timestamp?: number;
125914
+ division_code?: number | null;
125915
+ domain: string;
125916
+ duration_ms?: number | null;
125917
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125918
+ initial_sync_done?: boolean;
125919
+ last_error?: string | null;
125920
+ last_run_at?: string | null;
125921
+ last_success_at?: string | null;
125922
+ locked_at?: string | null;
125923
+ needs_initial_sync?: boolean;
125924
+ record_count?: number;
125925
+ updated_at?: string;
125926
+ };
125927
+ Update: {
125928
+ account_key?: string;
125929
+ created_at?: string;
125930
+ cursor_timestamp?: number;
125931
+ division_code?: number | null;
125932
+ domain?: string;
125933
+ duration_ms?: number | null;
125934
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
125935
+ initial_sync_done?: boolean;
125936
+ last_error?: string | null;
125937
+ last_run_at?: string | null;
125938
+ last_success_at?: string | null;
125939
+ locked_at?: string | null;
125940
+ needs_initial_sync?: boolean;
125941
+ record_count?: number;
125942
+ updated_at?: string;
125943
+ };
125944
+ Relationships: [];
125945
+ };
122538
125946
  exact_bulk_operation_items: {
122539
125947
  Row: {
122540
125948
  attempts: number;
@@ -129035,6 +132443,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
129035
132443
  };
129036
132444
  offer_settings: {
129037
132445
  Row: {
132446
+ brand_name: string | null;
129038
132447
  button_color: string;
129039
132448
  created_at: string;
129040
132449
  default_countries: string[];
@@ -129056,6 +132465,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
129056
132465
  updated_at: string;
129057
132466
  };
129058
132467
  Insert: {
132468
+ brand_name?: string | null;
129059
132469
  button_color?: string;
129060
132470
  created_at?: string;
129061
132471
  default_countries?: string[];
@@ -129077,6 +132487,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
129077
132487
  updated_at?: string;
129078
132488
  };
129079
132489
  Update: {
132490
+ brand_name?: string | null;
129080
132491
  button_color?: string;
129081
132492
  created_at?: string;
129082
132493
  default_countries?: string[];
@@ -136927,6 +140338,21 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
136927
140338
  Args: never;
136928
140339
  Returns: string;
136929
140340
  };
140341
+ exact_auth_consume_calls: {
140342
+ Args: {
140343
+ _account_key: string;
140344
+ _calls?: number;
140345
+ _day_limit?: number;
140346
+ _division_code: number;
140347
+ _environment: string;
140348
+ _minute_limit?: number;
140349
+ };
140350
+ Returns: import("../integrations/supabase/types").Json;
140351
+ };
140352
+ exact_auth_prune_sync_log: {
140353
+ Args: never;
140354
+ Returns: undefined;
140355
+ };
136930
140356
  exact_decrypt: {
136931
140357
  Args: {
136932
140358
  cipher: string;
@@ -137136,6 +140562,10 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
137136
140562
  };
137137
140563
  Returns: number;
137138
140564
  };
140565
+ get_offer_branding: {
140566
+ Args: never;
140567
+ Returns: import("../integrations/supabase/types").Json;
140568
+ };
137139
140569
  get_offer_by_link_code: {
137140
140570
  Args: {
137141
140571
  p_code: string;