@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
@@ -3561,6 +3561,474 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
3561
3561
  referencedColumns: ["id"];
3562
3562
  }];
3563
3563
  };
3564
+ exact_auth_call_budget: {
3565
+ Row: {
3566
+ account_key: string;
3567
+ day_count: number;
3568
+ day_date: string;
3569
+ division_code: number;
3570
+ environment: string;
3571
+ minute_count: number;
3572
+ minute_window: string;
3573
+ updated_at: string;
3574
+ };
3575
+ Insert: {
3576
+ account_key?: string;
3577
+ day_count?: number;
3578
+ day_date?: string;
3579
+ division_code?: number;
3580
+ environment: string;
3581
+ minute_count?: number;
3582
+ minute_window?: string;
3583
+ updated_at?: string;
3584
+ };
3585
+ Update: {
3586
+ account_key?: string;
3587
+ day_count?: number;
3588
+ day_date?: string;
3589
+ division_code?: number;
3590
+ environment?: string;
3591
+ minute_count?: number;
3592
+ minute_window?: string;
3593
+ updated_at?: string;
3594
+ };
3595
+ Relationships: [];
3596
+ };
3597
+ exact_auth_customers: {
3598
+ Row: {
3599
+ account_key: string;
3600
+ address_line1: string | null;
3601
+ chamber_of_commerce: string | null;
3602
+ city: string | null;
3603
+ code: string | null;
3604
+ country: string | null;
3605
+ created_at: string;
3606
+ currency: string | null;
3607
+ division_code: number | null;
3608
+ email: string | null;
3609
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3610
+ exact_id: string;
3611
+ exact_modified: string | null;
3612
+ exact_timestamp: number | null;
3613
+ id: string;
3614
+ is_active: boolean;
3615
+ name: string | null;
3616
+ phone: string | null;
3617
+ postcode: string | null;
3618
+ raw: import("../integrations/supabase/types").Json | null;
3619
+ status: string | null;
3620
+ updated_at: string;
3621
+ vat_number: string | null;
3622
+ website: string | null;
3623
+ };
3624
+ Insert: {
3625
+ account_key?: string;
3626
+ address_line1?: string | null;
3627
+ chamber_of_commerce?: string | null;
3628
+ city?: string | null;
3629
+ code?: string | null;
3630
+ country?: string | null;
3631
+ created_at?: string;
3632
+ currency?: string | null;
3633
+ division_code?: number | null;
3634
+ email?: string | null;
3635
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3636
+ exact_id: string;
3637
+ exact_modified?: string | null;
3638
+ exact_timestamp?: number | null;
3639
+ id?: string;
3640
+ is_active?: boolean;
3641
+ name?: string | null;
3642
+ phone?: string | null;
3643
+ postcode?: string | null;
3644
+ raw?: import("../integrations/supabase/types").Json | null;
3645
+ status?: string | null;
3646
+ updated_at?: string;
3647
+ vat_number?: string | null;
3648
+ website?: string | null;
3649
+ };
3650
+ Update: {
3651
+ account_key?: string;
3652
+ address_line1?: string | null;
3653
+ chamber_of_commerce?: string | null;
3654
+ city?: string | null;
3655
+ code?: string | null;
3656
+ country?: string | null;
3657
+ created_at?: string;
3658
+ currency?: string | null;
3659
+ division_code?: number | null;
3660
+ email?: string | null;
3661
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3662
+ exact_id?: string;
3663
+ exact_modified?: string | null;
3664
+ exact_timestamp?: number | null;
3665
+ id?: string;
3666
+ is_active?: boolean;
3667
+ name?: string | null;
3668
+ phone?: string | null;
3669
+ postcode?: string | null;
3670
+ raw?: import("../integrations/supabase/types").Json | null;
3671
+ status?: string | null;
3672
+ updated_at?: string;
3673
+ vat_number?: string | null;
3674
+ website?: string | null;
3675
+ };
3676
+ Relationships: [];
3677
+ };
3678
+ exact_auth_divisions: {
3679
+ Row: {
3680
+ account_key: string;
3681
+ company_name: string | null;
3682
+ created_at: string;
3683
+ division_code: number | null;
3684
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3685
+ id: string;
3686
+ last_synced_at: string | null;
3687
+ updated_at: string;
3688
+ };
3689
+ Insert: {
3690
+ account_key?: string;
3691
+ company_name?: string | null;
3692
+ created_at?: string;
3693
+ division_code?: number | null;
3694
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3695
+ id?: string;
3696
+ last_synced_at?: string | null;
3697
+ updated_at?: string;
3698
+ };
3699
+ Update: {
3700
+ account_key?: string;
3701
+ company_name?: string | null;
3702
+ created_at?: string;
3703
+ division_code?: number | null;
3704
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3705
+ id?: string;
3706
+ last_synced_at?: string | null;
3707
+ updated_at?: string;
3708
+ };
3709
+ Relationships: [];
3710
+ };
3711
+ exact_auth_invoice_lines: {
3712
+ Row: {
3713
+ account_key: string;
3714
+ amount_excl: number | null;
3715
+ created_at: string;
3716
+ description: string | null;
3717
+ discount: number | null;
3718
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3719
+ exact_id: string;
3720
+ exact_timestamp: number | null;
3721
+ id: string;
3722
+ invoice_exact_id: string;
3723
+ item_code: string | null;
3724
+ item_exact_id: string | null;
3725
+ line_number: number | null;
3726
+ quantity: number | null;
3727
+ raw: import("../integrations/supabase/types").Json | null;
3728
+ unit_price: number | null;
3729
+ updated_at: string;
3730
+ vat_amount: number | null;
3731
+ vat_code: string | null;
3732
+ };
3733
+ Insert: {
3734
+ account_key?: string;
3735
+ amount_excl?: number | null;
3736
+ created_at?: string;
3737
+ description?: string | null;
3738
+ discount?: number | null;
3739
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3740
+ exact_id: string;
3741
+ exact_timestamp?: number | null;
3742
+ id?: string;
3743
+ invoice_exact_id: string;
3744
+ item_code?: string | null;
3745
+ item_exact_id?: string | null;
3746
+ line_number?: number | null;
3747
+ quantity?: number | null;
3748
+ raw?: import("../integrations/supabase/types").Json | null;
3749
+ unit_price?: number | null;
3750
+ updated_at?: string;
3751
+ vat_amount?: number | null;
3752
+ vat_code?: string | null;
3753
+ };
3754
+ Update: {
3755
+ account_key?: string;
3756
+ amount_excl?: number | null;
3757
+ created_at?: string;
3758
+ description?: string | null;
3759
+ discount?: number | null;
3760
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3761
+ exact_id?: string;
3762
+ exact_timestamp?: number | null;
3763
+ id?: string;
3764
+ invoice_exact_id?: string;
3765
+ item_code?: string | null;
3766
+ item_exact_id?: string | null;
3767
+ line_number?: number | null;
3768
+ quantity?: number | null;
3769
+ raw?: import("../integrations/supabase/types").Json | null;
3770
+ unit_price?: number | null;
3771
+ updated_at?: string;
3772
+ vat_amount?: number | null;
3773
+ vat_code?: string | null;
3774
+ };
3775
+ Relationships: [];
3776
+ };
3777
+ exact_auth_invoices: {
3778
+ Row: {
3779
+ account_key: string;
3780
+ amount_excl: number | null;
3781
+ amount_incl: number | null;
3782
+ amount_open: number | null;
3783
+ created_at: string;
3784
+ currency: string | null;
3785
+ customer_code: string | null;
3786
+ customer_exact_id: string | null;
3787
+ customer_name: string | null;
3788
+ description: string | null;
3789
+ division_code: number | null;
3790
+ due_date: string | null;
3791
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3792
+ exact_id: string;
3793
+ exact_modified: string | null;
3794
+ exact_timestamp: number | null;
3795
+ id: string;
3796
+ invoice_date: string | null;
3797
+ invoice_number: string | null;
3798
+ order_number: string | null;
3799
+ paid_at: string | null;
3800
+ payment_status: string;
3801
+ raw: import("../integrations/supabase/types").Json | null;
3802
+ receivable_synced_at: string | null;
3803
+ status_code: number | null;
3804
+ updated_at: string;
3805
+ };
3806
+ Insert: {
3807
+ account_key?: string;
3808
+ amount_excl?: number | null;
3809
+ amount_incl?: number | null;
3810
+ amount_open?: number | null;
3811
+ created_at?: string;
3812
+ currency?: string | null;
3813
+ customer_code?: string | null;
3814
+ customer_exact_id?: string | null;
3815
+ customer_name?: string | null;
3816
+ description?: string | null;
3817
+ division_code?: number | null;
3818
+ due_date?: string | null;
3819
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3820
+ exact_id: string;
3821
+ exact_modified?: string | null;
3822
+ exact_timestamp?: number | null;
3823
+ id?: string;
3824
+ invoice_date?: string | null;
3825
+ invoice_number?: string | null;
3826
+ order_number?: string | null;
3827
+ paid_at?: string | null;
3828
+ payment_status?: string;
3829
+ raw?: import("../integrations/supabase/types").Json | null;
3830
+ receivable_synced_at?: string | null;
3831
+ status_code?: number | null;
3832
+ updated_at?: string;
3833
+ };
3834
+ Update: {
3835
+ account_key?: string;
3836
+ amount_excl?: number | null;
3837
+ amount_incl?: number | null;
3838
+ amount_open?: number | null;
3839
+ created_at?: string;
3840
+ currency?: string | null;
3841
+ customer_code?: string | null;
3842
+ customer_exact_id?: string | null;
3843
+ customer_name?: string | null;
3844
+ description?: string | null;
3845
+ division_code?: number | null;
3846
+ due_date?: string | null;
3847
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3848
+ exact_id?: string;
3849
+ exact_modified?: string | null;
3850
+ exact_timestamp?: number | null;
3851
+ id?: string;
3852
+ invoice_date?: string | null;
3853
+ invoice_number?: string | null;
3854
+ order_number?: string | null;
3855
+ paid_at?: string | null;
3856
+ payment_status?: string;
3857
+ raw?: import("../integrations/supabase/types").Json | null;
3858
+ receivable_synced_at?: string | null;
3859
+ status_code?: number | null;
3860
+ updated_at?: string;
3861
+ };
3862
+ Relationships: [];
3863
+ };
3864
+ exact_auth_items: {
3865
+ Row: {
3866
+ account_key: string;
3867
+ barcode: string | null;
3868
+ code: string | null;
3869
+ cost_price: number | null;
3870
+ created_at: string;
3871
+ description: string | null;
3872
+ division_code: number | null;
3873
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3874
+ exact_id: string;
3875
+ exact_modified: string | null;
3876
+ exact_timestamp: number | null;
3877
+ gl_account_code: string | null;
3878
+ id: string;
3879
+ is_active: boolean;
3880
+ is_sales_item: boolean | null;
3881
+ item_type: string | null;
3882
+ raw: import("../integrations/supabase/types").Json | null;
3883
+ sales_price: number | null;
3884
+ unit: string | null;
3885
+ updated_at: string;
3886
+ vat_code: string | null;
3887
+ };
3888
+ Insert: {
3889
+ account_key?: string;
3890
+ barcode?: string | null;
3891
+ code?: string | null;
3892
+ cost_price?: number | null;
3893
+ created_at?: string;
3894
+ description?: string | null;
3895
+ division_code?: number | null;
3896
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3897
+ exact_id: string;
3898
+ exact_modified?: string | null;
3899
+ exact_timestamp?: number | null;
3900
+ gl_account_code?: string | null;
3901
+ id?: string;
3902
+ is_active?: boolean;
3903
+ is_sales_item?: boolean | null;
3904
+ item_type?: string | null;
3905
+ raw?: import("../integrations/supabase/types").Json | null;
3906
+ sales_price?: number | null;
3907
+ unit?: string | null;
3908
+ updated_at?: string;
3909
+ vat_code?: string | null;
3910
+ };
3911
+ Update: {
3912
+ account_key?: string;
3913
+ barcode?: string | null;
3914
+ code?: string | null;
3915
+ cost_price?: number | null;
3916
+ created_at?: string;
3917
+ description?: string | null;
3918
+ division_code?: number | null;
3919
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3920
+ exact_id?: string;
3921
+ exact_modified?: string | null;
3922
+ exact_timestamp?: number | null;
3923
+ gl_account_code?: string | null;
3924
+ id?: string;
3925
+ is_active?: boolean;
3926
+ is_sales_item?: boolean | null;
3927
+ item_type?: string | null;
3928
+ raw?: import("../integrations/supabase/types").Json | null;
3929
+ sales_price?: number | null;
3930
+ unit?: string | null;
3931
+ updated_at?: string;
3932
+ vat_code?: string | null;
3933
+ };
3934
+ Relationships: [];
3935
+ };
3936
+ exact_auth_sync_log: {
3937
+ Row: {
3938
+ account_key: string;
3939
+ calls_used: number;
3940
+ created_at: string;
3941
+ domain: string;
3942
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3943
+ error: string | null;
3944
+ finished_at: string | null;
3945
+ id: string;
3946
+ ok: boolean;
3947
+ records: number;
3948
+ started_at: string;
3949
+ };
3950
+ Insert: {
3951
+ account_key?: string;
3952
+ calls_used?: number;
3953
+ created_at?: string;
3954
+ domain: string;
3955
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3956
+ error?: string | null;
3957
+ finished_at?: string | null;
3958
+ id?: string;
3959
+ ok?: boolean;
3960
+ records?: number;
3961
+ started_at?: string;
3962
+ };
3963
+ Update: {
3964
+ account_key?: string;
3965
+ calls_used?: number;
3966
+ created_at?: string;
3967
+ domain?: string;
3968
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3969
+ error?: string | null;
3970
+ finished_at?: string | null;
3971
+ id?: string;
3972
+ ok?: boolean;
3973
+ records?: number;
3974
+ started_at?: string;
3975
+ };
3976
+ Relationships: [];
3977
+ };
3978
+ exact_auth_sync_state: {
3979
+ Row: {
3980
+ account_key: string;
3981
+ created_at: string;
3982
+ cursor_timestamp: number;
3983
+ division_code: number | null;
3984
+ domain: string;
3985
+ duration_ms: number | null;
3986
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3987
+ initial_sync_done: boolean;
3988
+ last_error: string | null;
3989
+ last_run_at: string | null;
3990
+ last_success_at: string | null;
3991
+ locked_at: string | null;
3992
+ needs_initial_sync: boolean;
3993
+ record_count: number;
3994
+ updated_at: string;
3995
+ };
3996
+ Insert: {
3997
+ account_key?: string;
3998
+ created_at?: string;
3999
+ cursor_timestamp?: number;
4000
+ division_code?: number | null;
4001
+ domain: string;
4002
+ duration_ms?: number | null;
4003
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4004
+ initial_sync_done?: boolean;
4005
+ last_error?: string | null;
4006
+ last_run_at?: string | null;
4007
+ last_success_at?: string | null;
4008
+ locked_at?: string | null;
4009
+ needs_initial_sync?: boolean;
4010
+ record_count?: number;
4011
+ updated_at?: string;
4012
+ };
4013
+ Update: {
4014
+ account_key?: string;
4015
+ created_at?: string;
4016
+ cursor_timestamp?: number;
4017
+ division_code?: number | null;
4018
+ domain?: string;
4019
+ duration_ms?: number | null;
4020
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4021
+ initial_sync_done?: boolean;
4022
+ last_error?: string | null;
4023
+ last_run_at?: string | null;
4024
+ last_success_at?: string | null;
4025
+ locked_at?: string | null;
4026
+ needs_initial_sync?: boolean;
4027
+ record_count?: number;
4028
+ updated_at?: string;
4029
+ };
4030
+ Relationships: [];
4031
+ };
3564
4032
  exact_bulk_operation_items: {
3565
4033
  Row: {
3566
4034
  attempts: number;
@@ -10061,6 +10529,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10061
10529
  };
10062
10530
  offer_settings: {
10063
10531
  Row: {
10532
+ brand_name: string | null;
10064
10533
  button_color: string;
10065
10534
  created_at: string;
10066
10535
  default_countries: string[];
@@ -10082,6 +10551,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10082
10551
  updated_at: string;
10083
10552
  };
10084
10553
  Insert: {
10554
+ brand_name?: string | null;
10085
10555
  button_color?: string;
10086
10556
  created_at?: string;
10087
10557
  default_countries?: string[];
@@ -10103,6 +10573,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
10103
10573
  updated_at?: string;
10104
10574
  };
10105
10575
  Update: {
10576
+ brand_name?: string | null;
10106
10577
  button_color?: string;
10107
10578
  created_at?: string;
10108
10579
  default_countries?: string[];
@@ -17953,6 +18424,21 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
17953
18424
  Args: never;
17954
18425
  Returns: string;
17955
18426
  };
18427
+ exact_auth_consume_calls: {
18428
+ Args: {
18429
+ _account_key: string;
18430
+ _calls?: number;
18431
+ _day_limit?: number;
18432
+ _division_code: number;
18433
+ _environment: string;
18434
+ _minute_limit?: number;
18435
+ };
18436
+ Returns: import("../integrations/supabase/types").Json;
18437
+ };
18438
+ exact_auth_prune_sync_log: {
18439
+ Args: never;
18440
+ Returns: undefined;
18441
+ };
17956
18442
  exact_decrypt: {
17957
18443
  Args: {
17958
18444
  cipher: string;
@@ -18162,6 +18648,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18162
18648
  };
18163
18649
  Returns: number;
18164
18650
  };
18651
+ get_offer_branding: {
18652
+ Args: never;
18653
+ Returns: import("../integrations/supabase/types").Json;
18654
+ };
18165
18655
  get_offer_by_link_code: {
18166
18656
  Args: {
18167
18657
  p_code: string;
@@ -23375,6 +23865,474 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
23375
23865
  referencedColumns: ["id"];
23376
23866
  }];
23377
23867
  };
23868
+ exact_auth_call_budget: {
23869
+ Row: {
23870
+ account_key: string;
23871
+ day_count: number;
23872
+ day_date: string;
23873
+ division_code: number;
23874
+ environment: string;
23875
+ minute_count: number;
23876
+ minute_window: string;
23877
+ updated_at: string;
23878
+ };
23879
+ Insert: {
23880
+ account_key?: string;
23881
+ day_count?: number;
23882
+ day_date?: string;
23883
+ division_code?: number;
23884
+ environment: string;
23885
+ minute_count?: number;
23886
+ minute_window?: string;
23887
+ updated_at?: string;
23888
+ };
23889
+ Update: {
23890
+ account_key?: string;
23891
+ day_count?: number;
23892
+ day_date?: string;
23893
+ division_code?: number;
23894
+ environment?: string;
23895
+ minute_count?: number;
23896
+ minute_window?: string;
23897
+ updated_at?: string;
23898
+ };
23899
+ Relationships: [];
23900
+ };
23901
+ exact_auth_customers: {
23902
+ Row: {
23903
+ account_key: string;
23904
+ address_line1: string | null;
23905
+ chamber_of_commerce: string | null;
23906
+ city: string | null;
23907
+ code: string | null;
23908
+ country: string | null;
23909
+ created_at: string;
23910
+ currency: string | null;
23911
+ division_code: number | null;
23912
+ email: string | null;
23913
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23914
+ exact_id: string;
23915
+ exact_modified: string | null;
23916
+ exact_timestamp: number | null;
23917
+ id: string;
23918
+ is_active: boolean;
23919
+ name: string | null;
23920
+ phone: string | null;
23921
+ postcode: string | null;
23922
+ raw: import("../integrations/supabase/types").Json | null;
23923
+ status: string | null;
23924
+ updated_at: string;
23925
+ vat_number: string | null;
23926
+ website: string | null;
23927
+ };
23928
+ Insert: {
23929
+ account_key?: string;
23930
+ address_line1?: string | null;
23931
+ chamber_of_commerce?: string | null;
23932
+ city?: string | null;
23933
+ code?: string | null;
23934
+ country?: string | null;
23935
+ created_at?: string;
23936
+ currency?: string | null;
23937
+ division_code?: number | null;
23938
+ email?: string | null;
23939
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23940
+ exact_id: string;
23941
+ exact_modified?: string | null;
23942
+ exact_timestamp?: number | null;
23943
+ id?: string;
23944
+ is_active?: boolean;
23945
+ name?: string | null;
23946
+ phone?: string | null;
23947
+ postcode?: string | null;
23948
+ raw?: import("../integrations/supabase/types").Json | null;
23949
+ status?: string | null;
23950
+ updated_at?: string;
23951
+ vat_number?: string | null;
23952
+ website?: string | null;
23953
+ };
23954
+ Update: {
23955
+ account_key?: string;
23956
+ address_line1?: string | null;
23957
+ chamber_of_commerce?: string | null;
23958
+ city?: string | null;
23959
+ code?: string | null;
23960
+ country?: string | null;
23961
+ created_at?: string;
23962
+ currency?: string | null;
23963
+ division_code?: number | null;
23964
+ email?: string | null;
23965
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23966
+ exact_id?: string;
23967
+ exact_modified?: string | null;
23968
+ exact_timestamp?: number | null;
23969
+ id?: string;
23970
+ is_active?: boolean;
23971
+ name?: string | null;
23972
+ phone?: string | null;
23973
+ postcode?: string | null;
23974
+ raw?: import("../integrations/supabase/types").Json | null;
23975
+ status?: string | null;
23976
+ updated_at?: string;
23977
+ vat_number?: string | null;
23978
+ website?: string | null;
23979
+ };
23980
+ Relationships: [];
23981
+ };
23982
+ exact_auth_divisions: {
23983
+ Row: {
23984
+ account_key: string;
23985
+ company_name: string | null;
23986
+ created_at: string;
23987
+ division_code: number | null;
23988
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23989
+ id: string;
23990
+ last_synced_at: string | null;
23991
+ updated_at: string;
23992
+ };
23993
+ Insert: {
23994
+ account_key?: string;
23995
+ company_name?: string | null;
23996
+ created_at?: string;
23997
+ division_code?: number | null;
23998
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23999
+ id?: string;
24000
+ last_synced_at?: string | null;
24001
+ updated_at?: string;
24002
+ };
24003
+ Update: {
24004
+ account_key?: string;
24005
+ company_name?: string | null;
24006
+ created_at?: string;
24007
+ division_code?: number | null;
24008
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24009
+ id?: string;
24010
+ last_synced_at?: string | null;
24011
+ updated_at?: string;
24012
+ };
24013
+ Relationships: [];
24014
+ };
24015
+ exact_auth_invoice_lines: {
24016
+ Row: {
24017
+ account_key: string;
24018
+ amount_excl: number | null;
24019
+ created_at: string;
24020
+ description: string | null;
24021
+ discount: number | null;
24022
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24023
+ exact_id: string;
24024
+ exact_timestamp: number | null;
24025
+ id: string;
24026
+ invoice_exact_id: string;
24027
+ item_code: string | null;
24028
+ item_exact_id: string | null;
24029
+ line_number: number | null;
24030
+ quantity: number | null;
24031
+ raw: import("../integrations/supabase/types").Json | null;
24032
+ unit_price: number | null;
24033
+ updated_at: string;
24034
+ vat_amount: number | null;
24035
+ vat_code: string | null;
24036
+ };
24037
+ Insert: {
24038
+ account_key?: string;
24039
+ amount_excl?: number | null;
24040
+ created_at?: string;
24041
+ description?: string | null;
24042
+ discount?: number | null;
24043
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24044
+ exact_id: string;
24045
+ exact_timestamp?: number | null;
24046
+ id?: string;
24047
+ invoice_exact_id: string;
24048
+ item_code?: string | null;
24049
+ item_exact_id?: string | null;
24050
+ line_number?: number | null;
24051
+ quantity?: number | null;
24052
+ raw?: import("../integrations/supabase/types").Json | null;
24053
+ unit_price?: number | null;
24054
+ updated_at?: string;
24055
+ vat_amount?: number | null;
24056
+ vat_code?: string | null;
24057
+ };
24058
+ Update: {
24059
+ account_key?: string;
24060
+ amount_excl?: number | null;
24061
+ created_at?: string;
24062
+ description?: string | null;
24063
+ discount?: number | null;
24064
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24065
+ exact_id?: string;
24066
+ exact_timestamp?: number | null;
24067
+ id?: string;
24068
+ invoice_exact_id?: string;
24069
+ item_code?: string | null;
24070
+ item_exact_id?: string | null;
24071
+ line_number?: number | null;
24072
+ quantity?: number | null;
24073
+ raw?: import("../integrations/supabase/types").Json | null;
24074
+ unit_price?: number | null;
24075
+ updated_at?: string;
24076
+ vat_amount?: number | null;
24077
+ vat_code?: string | null;
24078
+ };
24079
+ Relationships: [];
24080
+ };
24081
+ exact_auth_invoices: {
24082
+ Row: {
24083
+ account_key: string;
24084
+ amount_excl: number | null;
24085
+ amount_incl: number | null;
24086
+ amount_open: number | null;
24087
+ created_at: string;
24088
+ currency: string | null;
24089
+ customer_code: string | null;
24090
+ customer_exact_id: string | null;
24091
+ customer_name: string | null;
24092
+ description: string | null;
24093
+ division_code: number | null;
24094
+ due_date: string | null;
24095
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24096
+ exact_id: string;
24097
+ exact_modified: string | null;
24098
+ exact_timestamp: number | null;
24099
+ id: string;
24100
+ invoice_date: string | null;
24101
+ invoice_number: string | null;
24102
+ order_number: string | null;
24103
+ paid_at: string | null;
24104
+ payment_status: string;
24105
+ raw: import("../integrations/supabase/types").Json | null;
24106
+ receivable_synced_at: string | null;
24107
+ status_code: number | null;
24108
+ updated_at: string;
24109
+ };
24110
+ Insert: {
24111
+ account_key?: string;
24112
+ amount_excl?: number | null;
24113
+ amount_incl?: number | null;
24114
+ amount_open?: number | null;
24115
+ created_at?: string;
24116
+ currency?: string | null;
24117
+ customer_code?: string | null;
24118
+ customer_exact_id?: string | null;
24119
+ customer_name?: string | null;
24120
+ description?: string | null;
24121
+ division_code?: number | null;
24122
+ due_date?: string | null;
24123
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24124
+ exact_id: string;
24125
+ exact_modified?: string | null;
24126
+ exact_timestamp?: number | null;
24127
+ id?: string;
24128
+ invoice_date?: string | null;
24129
+ invoice_number?: string | null;
24130
+ order_number?: string | null;
24131
+ paid_at?: string | null;
24132
+ payment_status?: string;
24133
+ raw?: import("../integrations/supabase/types").Json | null;
24134
+ receivable_synced_at?: string | null;
24135
+ status_code?: number | null;
24136
+ updated_at?: string;
24137
+ };
24138
+ Update: {
24139
+ account_key?: string;
24140
+ amount_excl?: number | null;
24141
+ amount_incl?: number | null;
24142
+ amount_open?: number | null;
24143
+ created_at?: string;
24144
+ currency?: string | null;
24145
+ customer_code?: string | null;
24146
+ customer_exact_id?: string | null;
24147
+ customer_name?: string | null;
24148
+ description?: string | null;
24149
+ division_code?: number | null;
24150
+ due_date?: string | null;
24151
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24152
+ exact_id?: string;
24153
+ exact_modified?: string | null;
24154
+ exact_timestamp?: number | null;
24155
+ id?: string;
24156
+ invoice_date?: string | null;
24157
+ invoice_number?: string | null;
24158
+ order_number?: string | null;
24159
+ paid_at?: string | null;
24160
+ payment_status?: string;
24161
+ raw?: import("../integrations/supabase/types").Json | null;
24162
+ receivable_synced_at?: string | null;
24163
+ status_code?: number | null;
24164
+ updated_at?: string;
24165
+ };
24166
+ Relationships: [];
24167
+ };
24168
+ exact_auth_items: {
24169
+ Row: {
24170
+ account_key: string;
24171
+ barcode: string | null;
24172
+ code: string | null;
24173
+ cost_price: number | null;
24174
+ created_at: string;
24175
+ description: string | null;
24176
+ division_code: number | null;
24177
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24178
+ exact_id: string;
24179
+ exact_modified: string | null;
24180
+ exact_timestamp: number | null;
24181
+ gl_account_code: string | null;
24182
+ id: string;
24183
+ is_active: boolean;
24184
+ is_sales_item: boolean | null;
24185
+ item_type: string | null;
24186
+ raw: import("../integrations/supabase/types").Json | null;
24187
+ sales_price: number | null;
24188
+ unit: string | null;
24189
+ updated_at: string;
24190
+ vat_code: string | null;
24191
+ };
24192
+ Insert: {
24193
+ account_key?: string;
24194
+ barcode?: string | null;
24195
+ code?: string | null;
24196
+ cost_price?: number | null;
24197
+ created_at?: string;
24198
+ description?: string | null;
24199
+ division_code?: number | null;
24200
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24201
+ exact_id: string;
24202
+ exact_modified?: string | null;
24203
+ exact_timestamp?: number | null;
24204
+ gl_account_code?: string | null;
24205
+ id?: string;
24206
+ is_active?: boolean;
24207
+ is_sales_item?: boolean | null;
24208
+ item_type?: string | null;
24209
+ raw?: import("../integrations/supabase/types").Json | null;
24210
+ sales_price?: number | null;
24211
+ unit?: string | null;
24212
+ updated_at?: string;
24213
+ vat_code?: string | null;
24214
+ };
24215
+ Update: {
24216
+ account_key?: string;
24217
+ barcode?: string | null;
24218
+ code?: string | null;
24219
+ cost_price?: number | null;
24220
+ created_at?: string;
24221
+ description?: string | null;
24222
+ division_code?: number | null;
24223
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24224
+ exact_id?: string;
24225
+ exact_modified?: string | null;
24226
+ exact_timestamp?: number | null;
24227
+ gl_account_code?: string | null;
24228
+ id?: string;
24229
+ is_active?: boolean;
24230
+ is_sales_item?: boolean | null;
24231
+ item_type?: string | null;
24232
+ raw?: import("../integrations/supabase/types").Json | null;
24233
+ sales_price?: number | null;
24234
+ unit?: string | null;
24235
+ updated_at?: string;
24236
+ vat_code?: string | null;
24237
+ };
24238
+ Relationships: [];
24239
+ };
24240
+ exact_auth_sync_log: {
24241
+ Row: {
24242
+ account_key: string;
24243
+ calls_used: number;
24244
+ created_at: string;
24245
+ domain: string;
24246
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24247
+ error: string | null;
24248
+ finished_at: string | null;
24249
+ id: string;
24250
+ ok: boolean;
24251
+ records: number;
24252
+ started_at: string;
24253
+ };
24254
+ Insert: {
24255
+ account_key?: string;
24256
+ calls_used?: number;
24257
+ created_at?: string;
24258
+ domain: string;
24259
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24260
+ error?: string | null;
24261
+ finished_at?: string | null;
24262
+ id?: string;
24263
+ ok?: boolean;
24264
+ records?: number;
24265
+ started_at?: string;
24266
+ };
24267
+ Update: {
24268
+ account_key?: string;
24269
+ calls_used?: number;
24270
+ created_at?: string;
24271
+ domain?: string;
24272
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24273
+ error?: string | null;
24274
+ finished_at?: string | null;
24275
+ id?: string;
24276
+ ok?: boolean;
24277
+ records?: number;
24278
+ started_at?: string;
24279
+ };
24280
+ Relationships: [];
24281
+ };
24282
+ exact_auth_sync_state: {
24283
+ Row: {
24284
+ account_key: string;
24285
+ created_at: string;
24286
+ cursor_timestamp: number;
24287
+ division_code: number | null;
24288
+ domain: string;
24289
+ duration_ms: number | null;
24290
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24291
+ initial_sync_done: boolean;
24292
+ last_error: string | null;
24293
+ last_run_at: string | null;
24294
+ last_success_at: string | null;
24295
+ locked_at: string | null;
24296
+ needs_initial_sync: boolean;
24297
+ record_count: number;
24298
+ updated_at: string;
24299
+ };
24300
+ Insert: {
24301
+ account_key?: string;
24302
+ created_at?: string;
24303
+ cursor_timestamp?: number;
24304
+ division_code?: number | null;
24305
+ domain: string;
24306
+ duration_ms?: number | null;
24307
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24308
+ initial_sync_done?: boolean;
24309
+ last_error?: string | null;
24310
+ last_run_at?: string | null;
24311
+ last_success_at?: string | null;
24312
+ locked_at?: string | null;
24313
+ needs_initial_sync?: boolean;
24314
+ record_count?: number;
24315
+ updated_at?: string;
24316
+ };
24317
+ Update: {
24318
+ account_key?: string;
24319
+ created_at?: string;
24320
+ cursor_timestamp?: number;
24321
+ division_code?: number | null;
24322
+ domain?: string;
24323
+ duration_ms?: number | null;
24324
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24325
+ initial_sync_done?: boolean;
24326
+ last_error?: string | null;
24327
+ last_run_at?: string | null;
24328
+ last_success_at?: string | null;
24329
+ locked_at?: string | null;
24330
+ needs_initial_sync?: boolean;
24331
+ record_count?: number;
24332
+ updated_at?: string;
24333
+ };
24334
+ Relationships: [];
24335
+ };
23378
24336
  exact_bulk_operation_items: {
23379
24337
  Row: {
23380
24338
  attempts: number;
@@ -29875,6 +30833,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29875
30833
  };
29876
30834
  offer_settings: {
29877
30835
  Row: {
30836
+ brand_name: string | null;
29878
30837
  button_color: string;
29879
30838
  created_at: string;
29880
30839
  default_countries: string[];
@@ -29896,6 +30855,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29896
30855
  updated_at: string;
29897
30856
  };
29898
30857
  Insert: {
30858
+ brand_name?: string | null;
29899
30859
  button_color?: string;
29900
30860
  created_at?: string;
29901
30861
  default_countries?: string[];
@@ -29917,6 +30877,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29917
30877
  updated_at?: string;
29918
30878
  };
29919
30879
  Update: {
30880
+ brand_name?: string | null;
29920
30881
  button_color?: string;
29921
30882
  created_at?: string;
29922
30883
  default_countries?: string[];
@@ -37767,6 +38728,21 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
37767
38728
  Args: never;
37768
38729
  Returns: string;
37769
38730
  };
38731
+ exact_auth_consume_calls: {
38732
+ Args: {
38733
+ _account_key: string;
38734
+ _calls?: number;
38735
+ _day_limit?: number;
38736
+ _division_code: number;
38737
+ _environment: string;
38738
+ _minute_limit?: number;
38739
+ };
38740
+ Returns: import("../integrations/supabase/types").Json;
38741
+ };
38742
+ exact_auth_prune_sync_log: {
38743
+ Args: never;
38744
+ Returns: undefined;
38745
+ };
37770
38746
  exact_decrypt: {
37771
38747
  Args: {
37772
38748
  cipher: string;
@@ -37976,6 +38952,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
37976
38952
  };
37977
38953
  Returns: number;
37978
38954
  };
38955
+ get_offer_branding: {
38956
+ Args: never;
38957
+ Returns: import("../integrations/supabase/types").Json;
38958
+ };
37979
38959
  get_offer_by_link_code: {
37980
38960
  Args: {
37981
38961
  p_code: string;