@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
@@ -3535,6 +3535,474 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
3535
3535
  referencedColumns: ["id"];
3536
3536
  }];
3537
3537
  };
3538
+ exact_auth_call_budget: {
3539
+ Row: {
3540
+ account_key: string;
3541
+ day_count: number;
3542
+ day_date: string;
3543
+ division_code: number;
3544
+ environment: string;
3545
+ minute_count: number;
3546
+ minute_window: string;
3547
+ updated_at: string;
3548
+ };
3549
+ Insert: {
3550
+ account_key?: string;
3551
+ day_count?: number;
3552
+ day_date?: string;
3553
+ division_code?: number;
3554
+ environment: string;
3555
+ minute_count?: number;
3556
+ minute_window?: string;
3557
+ updated_at?: string;
3558
+ };
3559
+ Update: {
3560
+ account_key?: string;
3561
+ day_count?: number;
3562
+ day_date?: string;
3563
+ division_code?: number;
3564
+ environment?: string;
3565
+ minute_count?: number;
3566
+ minute_window?: string;
3567
+ updated_at?: string;
3568
+ };
3569
+ Relationships: [];
3570
+ };
3571
+ exact_auth_customers: {
3572
+ Row: {
3573
+ account_key: string;
3574
+ address_line1: string | null;
3575
+ chamber_of_commerce: string | null;
3576
+ city: string | null;
3577
+ code: string | null;
3578
+ country: string | null;
3579
+ created_at: string;
3580
+ currency: string | null;
3581
+ division_code: number | null;
3582
+ email: string | null;
3583
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3584
+ exact_id: string;
3585
+ exact_modified: string | null;
3586
+ exact_timestamp: number | null;
3587
+ id: string;
3588
+ is_active: boolean;
3589
+ name: string | null;
3590
+ phone: string | null;
3591
+ postcode: string | null;
3592
+ raw: import("../integrations/supabase/types").Json | null;
3593
+ status: string | null;
3594
+ updated_at: string;
3595
+ vat_number: string | null;
3596
+ website: string | null;
3597
+ };
3598
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
3651
+ };
3652
+ exact_auth_divisions: {
3653
+ Row: {
3654
+ account_key: string;
3655
+ company_name: string | null;
3656
+ created_at: string;
3657
+ division_code: number | null;
3658
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3659
+ id: string;
3660
+ last_synced_at: string | null;
3661
+ updated_at: string;
3662
+ };
3663
+ Insert: {
3664
+ account_key?: string;
3665
+ company_name?: string | null;
3666
+ created_at?: string;
3667
+ division_code?: number | null;
3668
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3669
+ id?: string;
3670
+ last_synced_at?: string | null;
3671
+ updated_at?: string;
3672
+ };
3673
+ Update: {
3674
+ account_key?: string;
3675
+ company_name?: string | null;
3676
+ created_at?: string;
3677
+ division_code?: number | null;
3678
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3679
+ id?: string;
3680
+ last_synced_at?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Relationships: [];
3684
+ };
3685
+ exact_auth_invoice_lines: {
3686
+ Row: {
3687
+ account_key: string;
3688
+ amount_excl: number | null;
3689
+ created_at: string;
3690
+ description: string | null;
3691
+ discount: number | null;
3692
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3693
+ exact_id: string;
3694
+ exact_timestamp: number | null;
3695
+ id: string;
3696
+ invoice_exact_id: string;
3697
+ item_code: string | null;
3698
+ item_exact_id: string | null;
3699
+ line_number: number | null;
3700
+ quantity: number | null;
3701
+ raw: import("../integrations/supabase/types").Json | null;
3702
+ unit_price: number | null;
3703
+ updated_at: string;
3704
+ vat_amount: number | null;
3705
+ vat_code: string | null;
3706
+ };
3707
+ Insert: {
3708
+ account_key?: string;
3709
+ amount_excl?: number | null;
3710
+ created_at?: string;
3711
+ description?: string | null;
3712
+ discount?: number | null;
3713
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3714
+ exact_id: string;
3715
+ exact_timestamp?: number | null;
3716
+ id?: string;
3717
+ invoice_exact_id: string;
3718
+ item_code?: string | null;
3719
+ item_exact_id?: string | null;
3720
+ line_number?: number | null;
3721
+ quantity?: number | null;
3722
+ raw?: import("../integrations/supabase/types").Json | null;
3723
+ unit_price?: number | null;
3724
+ updated_at?: string;
3725
+ vat_amount?: number | null;
3726
+ vat_code?: string | null;
3727
+ };
3728
+ Update: {
3729
+ account_key?: string;
3730
+ amount_excl?: number | null;
3731
+ created_at?: string;
3732
+ description?: string | null;
3733
+ discount?: number | null;
3734
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3735
+ exact_id?: string;
3736
+ exact_timestamp?: number | null;
3737
+ id?: string;
3738
+ invoice_exact_id?: string;
3739
+ item_code?: string | null;
3740
+ item_exact_id?: string | null;
3741
+ line_number?: number | null;
3742
+ quantity?: number | null;
3743
+ raw?: import("../integrations/supabase/types").Json | null;
3744
+ unit_price?: number | null;
3745
+ updated_at?: string;
3746
+ vat_amount?: number | null;
3747
+ vat_code?: string | null;
3748
+ };
3749
+ Relationships: [];
3750
+ };
3751
+ exact_auth_invoices: {
3752
+ Row: {
3753
+ account_key: string;
3754
+ amount_excl: number | null;
3755
+ amount_incl: number | null;
3756
+ amount_open: number | null;
3757
+ created_at: string;
3758
+ currency: string | null;
3759
+ customer_code: string | null;
3760
+ customer_exact_id: string | null;
3761
+ customer_name: string | null;
3762
+ description: string | null;
3763
+ division_code: number | null;
3764
+ due_date: string | null;
3765
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3766
+ exact_id: string;
3767
+ exact_modified: string | null;
3768
+ exact_timestamp: number | null;
3769
+ id: string;
3770
+ invoice_date: string | null;
3771
+ invoice_number: string | null;
3772
+ order_number: string | null;
3773
+ paid_at: string | null;
3774
+ payment_status: string;
3775
+ raw: import("../integrations/supabase/types").Json | null;
3776
+ receivable_synced_at: string | null;
3777
+ status_code: number | null;
3778
+ updated_at: string;
3779
+ };
3780
+ Insert: {
3781
+ account_key?: string;
3782
+ amount_excl?: number | null;
3783
+ amount_incl?: number | null;
3784
+ amount_open?: number | null;
3785
+ created_at?: string;
3786
+ currency?: string | null;
3787
+ customer_code?: string | null;
3788
+ customer_exact_id?: string | null;
3789
+ customer_name?: string | null;
3790
+ description?: string | null;
3791
+ division_code?: number | null;
3792
+ due_date?: string | null;
3793
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3794
+ exact_id: string;
3795
+ exact_modified?: string | null;
3796
+ exact_timestamp?: number | null;
3797
+ id?: string;
3798
+ invoice_date?: string | null;
3799
+ invoice_number?: string | null;
3800
+ order_number?: string | null;
3801
+ paid_at?: string | null;
3802
+ payment_status?: string;
3803
+ raw?: import("../integrations/supabase/types").Json | null;
3804
+ receivable_synced_at?: string | null;
3805
+ status_code?: number | null;
3806
+ updated_at?: string;
3807
+ };
3808
+ Update: {
3809
+ account_key?: string;
3810
+ amount_excl?: number | null;
3811
+ amount_incl?: number | null;
3812
+ amount_open?: number | null;
3813
+ created_at?: string;
3814
+ currency?: string | null;
3815
+ customer_code?: string | null;
3816
+ customer_exact_id?: string | null;
3817
+ customer_name?: string | null;
3818
+ description?: string | null;
3819
+ division_code?: number | null;
3820
+ due_date?: string | null;
3821
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3822
+ exact_id?: string;
3823
+ exact_modified?: string | null;
3824
+ exact_timestamp?: number | null;
3825
+ id?: string;
3826
+ invoice_date?: string | null;
3827
+ invoice_number?: string | null;
3828
+ order_number?: string | null;
3829
+ paid_at?: string | null;
3830
+ payment_status?: string;
3831
+ raw?: import("../integrations/supabase/types").Json | null;
3832
+ receivable_synced_at?: string | null;
3833
+ status_code?: number | null;
3834
+ updated_at?: string;
3835
+ };
3836
+ Relationships: [];
3837
+ };
3838
+ exact_auth_items: {
3839
+ Row: {
3840
+ account_key: string;
3841
+ barcode: string | null;
3842
+ code: string | null;
3843
+ cost_price: number | null;
3844
+ created_at: string;
3845
+ description: string | null;
3846
+ division_code: number | 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
+ gl_account_code: string | null;
3852
+ id: string;
3853
+ is_active: boolean;
3854
+ is_sales_item: boolean | null;
3855
+ item_type: string | null;
3856
+ raw: import("../integrations/supabase/types").Json | null;
3857
+ sales_price: number | null;
3858
+ unit: string | null;
3859
+ updated_at: string;
3860
+ vat_code: string | null;
3861
+ };
3862
+ Insert: {
3863
+ account_key?: string;
3864
+ barcode?: string | null;
3865
+ code?: string | null;
3866
+ cost_price?: number | null;
3867
+ created_at?: string;
3868
+ description?: string | null;
3869
+ division_code?: number | null;
3870
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3871
+ exact_id: string;
3872
+ exact_modified?: string | null;
3873
+ exact_timestamp?: number | null;
3874
+ gl_account_code?: string | null;
3875
+ id?: string;
3876
+ is_active?: boolean;
3877
+ is_sales_item?: boolean | null;
3878
+ item_type?: string | null;
3879
+ raw?: import("../integrations/supabase/types").Json | null;
3880
+ sales_price?: number | null;
3881
+ unit?: string | null;
3882
+ updated_at?: string;
3883
+ vat_code?: string | null;
3884
+ };
3885
+ Update: {
3886
+ account_key?: string;
3887
+ barcode?: string | null;
3888
+ code?: string | null;
3889
+ cost_price?: number | null;
3890
+ created_at?: string;
3891
+ description?: string | null;
3892
+ division_code?: number | null;
3893
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3894
+ exact_id?: string;
3895
+ exact_modified?: string | null;
3896
+ exact_timestamp?: number | null;
3897
+ gl_account_code?: string | null;
3898
+ id?: string;
3899
+ is_active?: boolean;
3900
+ is_sales_item?: boolean | null;
3901
+ item_type?: string | null;
3902
+ raw?: import("../integrations/supabase/types").Json | null;
3903
+ sales_price?: number | null;
3904
+ unit?: string | null;
3905
+ updated_at?: string;
3906
+ vat_code?: string | null;
3907
+ };
3908
+ Relationships: [];
3909
+ };
3910
+ exact_auth_sync_log: {
3911
+ Row: {
3912
+ account_key: string;
3913
+ calls_used: number;
3914
+ created_at: string;
3915
+ domain: string;
3916
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3917
+ error: string | null;
3918
+ finished_at: string | null;
3919
+ id: string;
3920
+ ok: boolean;
3921
+ records: number;
3922
+ started_at: string;
3923
+ };
3924
+ Insert: {
3925
+ account_key?: string;
3926
+ calls_used?: number;
3927
+ created_at?: string;
3928
+ domain: string;
3929
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3930
+ error?: string | null;
3931
+ finished_at?: string | null;
3932
+ id?: string;
3933
+ ok?: boolean;
3934
+ records?: number;
3935
+ started_at?: string;
3936
+ };
3937
+ Update: {
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
+ Relationships: [];
3951
+ };
3952
+ exact_auth_sync_state: {
3953
+ Row: {
3954
+ account_key: string;
3955
+ created_at: string;
3956
+ cursor_timestamp: number;
3957
+ division_code: number | null;
3958
+ domain: string;
3959
+ duration_ms: number | null;
3960
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3961
+ initial_sync_done: boolean;
3962
+ last_error: string | null;
3963
+ last_run_at: string | null;
3964
+ last_success_at: string | null;
3965
+ locked_at: string | null;
3966
+ needs_initial_sync: boolean;
3967
+ record_count: number;
3968
+ updated_at: string;
3969
+ };
3970
+ Insert: {
3971
+ account_key?: string;
3972
+ created_at?: string;
3973
+ cursor_timestamp?: number;
3974
+ division_code?: number | null;
3975
+ domain: string;
3976
+ duration_ms?: number | null;
3977
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3978
+ initial_sync_done?: boolean;
3979
+ last_error?: string | null;
3980
+ last_run_at?: string | null;
3981
+ last_success_at?: string | null;
3982
+ locked_at?: string | null;
3983
+ needs_initial_sync?: boolean;
3984
+ record_count?: number;
3985
+ updated_at?: string;
3986
+ };
3987
+ Update: {
3988
+ account_key?: string;
3989
+ created_at?: string;
3990
+ cursor_timestamp?: number;
3991
+ division_code?: number | null;
3992
+ domain?: string;
3993
+ duration_ms?: number | null;
3994
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3995
+ initial_sync_done?: boolean;
3996
+ last_error?: string | null;
3997
+ last_run_at?: string | null;
3998
+ last_success_at?: string | null;
3999
+ locked_at?: string | null;
4000
+ needs_initial_sync?: boolean;
4001
+ record_count?: number;
4002
+ updated_at?: string;
4003
+ };
4004
+ Relationships: [];
4005
+ };
3538
4006
  exact_bulk_operation_items: {
3539
4007
  Row: {
3540
4008
  attempts: number;
@@ -10035,6 +10503,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10035
10503
  };
10036
10504
  offer_settings: {
10037
10505
  Row: {
10506
+ brand_name: string | null;
10038
10507
  button_color: string;
10039
10508
  created_at: string;
10040
10509
  default_countries: string[];
@@ -10056,6 +10525,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10056
10525
  updated_at: string;
10057
10526
  };
10058
10527
  Insert: {
10528
+ brand_name?: string | null;
10059
10529
  button_color?: string;
10060
10530
  created_at?: string;
10061
10531
  default_countries?: string[];
@@ -10077,6 +10547,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10077
10547
  updated_at?: string;
10078
10548
  };
10079
10549
  Update: {
10550
+ brand_name?: string | null;
10080
10551
  button_color?: string;
10081
10552
  created_at?: string;
10082
10553
  default_countries?: string[];
@@ -17927,6 +18398,21 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
17927
18398
  Args: never;
17928
18399
  Returns: string;
17929
18400
  };
18401
+ exact_auth_consume_calls: {
18402
+ Args: {
18403
+ _account_key: string;
18404
+ _calls?: number;
18405
+ _day_limit?: number;
18406
+ _division_code: number;
18407
+ _environment: string;
18408
+ _minute_limit?: number;
18409
+ };
18410
+ Returns: import("../integrations/supabase/types").Json;
18411
+ };
18412
+ exact_auth_prune_sync_log: {
18413
+ Args: never;
18414
+ Returns: undefined;
18415
+ };
17930
18416
  exact_decrypt: {
17931
18417
  Args: {
17932
18418
  cipher: string;
@@ -18136,6 +18622,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
18136
18622
  };
18137
18623
  Returns: number;
18138
18624
  };
18625
+ get_offer_branding: {
18626
+ Args: never;
18627
+ Returns: import("../integrations/supabase/types").Json;
18628
+ };
18139
18629
  get_offer_by_link_code: {
18140
18630
  Args: {
18141
18631
  p_code: string;
@@ -23353,6 +23843,474 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
23353
23843
  referencedColumns: ["id"];
23354
23844
  }];
23355
23845
  };
23846
+ exact_auth_call_budget: {
23847
+ Row: {
23848
+ account_key: string;
23849
+ day_count: number;
23850
+ day_date: string;
23851
+ division_code: number;
23852
+ environment: string;
23853
+ minute_count: number;
23854
+ minute_window: string;
23855
+ updated_at: string;
23856
+ };
23857
+ Insert: {
23858
+ account_key?: string;
23859
+ day_count?: number;
23860
+ day_date?: string;
23861
+ division_code?: number;
23862
+ environment: string;
23863
+ minute_count?: number;
23864
+ minute_window?: string;
23865
+ updated_at?: string;
23866
+ };
23867
+ Update: {
23868
+ account_key?: string;
23869
+ day_count?: number;
23870
+ day_date?: string;
23871
+ division_code?: number;
23872
+ environment?: string;
23873
+ minute_count?: number;
23874
+ minute_window?: string;
23875
+ updated_at?: string;
23876
+ };
23877
+ Relationships: [];
23878
+ };
23879
+ exact_auth_customers: {
23880
+ Row: {
23881
+ account_key: string;
23882
+ address_line1: string | null;
23883
+ chamber_of_commerce: string | null;
23884
+ city: string | null;
23885
+ code: string | null;
23886
+ country: string | null;
23887
+ created_at: string;
23888
+ currency: string | null;
23889
+ division_code: number | null;
23890
+ email: string | null;
23891
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23892
+ exact_id: string;
23893
+ exact_modified: string | null;
23894
+ exact_timestamp: number | null;
23895
+ id: string;
23896
+ is_active: boolean;
23897
+ name: string | null;
23898
+ phone: string | null;
23899
+ postcode: string | null;
23900
+ raw: import("../integrations/supabase/types").Json | null;
23901
+ status: string | null;
23902
+ updated_at: string;
23903
+ vat_number: string | null;
23904
+ website: string | null;
23905
+ };
23906
+ Insert: {
23907
+ account_key?: string;
23908
+ address_line1?: string | null;
23909
+ chamber_of_commerce?: string | null;
23910
+ city?: string | null;
23911
+ code?: string | null;
23912
+ country?: string | null;
23913
+ created_at?: string;
23914
+ currency?: string | null;
23915
+ division_code?: number | null;
23916
+ email?: string | null;
23917
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23918
+ exact_id: string;
23919
+ exact_modified?: string | null;
23920
+ exact_timestamp?: number | null;
23921
+ id?: string;
23922
+ is_active?: boolean;
23923
+ name?: string | null;
23924
+ phone?: string | null;
23925
+ postcode?: string | null;
23926
+ raw?: import("../integrations/supabase/types").Json | null;
23927
+ status?: string | null;
23928
+ updated_at?: string;
23929
+ vat_number?: string | null;
23930
+ website?: string | null;
23931
+ };
23932
+ Update: {
23933
+ account_key?: string;
23934
+ address_line1?: string | null;
23935
+ chamber_of_commerce?: string | null;
23936
+ city?: string | null;
23937
+ code?: string | null;
23938
+ country?: string | null;
23939
+ created_at?: string;
23940
+ currency?: string | null;
23941
+ division_code?: number | null;
23942
+ email?: string | null;
23943
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23944
+ exact_id?: string;
23945
+ exact_modified?: string | null;
23946
+ exact_timestamp?: number | null;
23947
+ id?: string;
23948
+ is_active?: boolean;
23949
+ name?: string | null;
23950
+ phone?: string | null;
23951
+ postcode?: string | null;
23952
+ raw?: import("../integrations/supabase/types").Json | null;
23953
+ status?: string | null;
23954
+ updated_at?: string;
23955
+ vat_number?: string | null;
23956
+ website?: string | null;
23957
+ };
23958
+ Relationships: [];
23959
+ };
23960
+ exact_auth_divisions: {
23961
+ Row: {
23962
+ account_key: string;
23963
+ company_name: string | null;
23964
+ created_at: string;
23965
+ division_code: number | null;
23966
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23967
+ id: string;
23968
+ last_synced_at: string | null;
23969
+ updated_at: string;
23970
+ };
23971
+ Insert: {
23972
+ account_key?: string;
23973
+ company_name?: string | null;
23974
+ created_at?: string;
23975
+ division_code?: number | null;
23976
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23977
+ id?: string;
23978
+ last_synced_at?: string | null;
23979
+ updated_at?: string;
23980
+ };
23981
+ Update: {
23982
+ account_key?: string;
23983
+ company_name?: string | null;
23984
+ created_at?: string;
23985
+ division_code?: number | null;
23986
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23987
+ id?: string;
23988
+ last_synced_at?: string | null;
23989
+ updated_at?: string;
23990
+ };
23991
+ Relationships: [];
23992
+ };
23993
+ exact_auth_invoice_lines: {
23994
+ Row: {
23995
+ account_key: string;
23996
+ amount_excl: number | null;
23997
+ created_at: string;
23998
+ description: string | null;
23999
+ discount: number | null;
24000
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24001
+ exact_id: string;
24002
+ exact_timestamp: number | null;
24003
+ id: string;
24004
+ invoice_exact_id: string;
24005
+ item_code: string | null;
24006
+ item_exact_id: string | null;
24007
+ line_number: number | null;
24008
+ quantity: number | null;
24009
+ raw: import("../integrations/supabase/types").Json | null;
24010
+ unit_price: number | null;
24011
+ updated_at: string;
24012
+ vat_amount: number | null;
24013
+ vat_code: string | null;
24014
+ };
24015
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
24058
+ };
24059
+ exact_auth_invoices: {
24060
+ Row: {
24061
+ account_key: string;
24062
+ amount_excl: number | null;
24063
+ amount_incl: number | null;
24064
+ amount_open: number | null;
24065
+ created_at: string;
24066
+ currency: string | null;
24067
+ customer_code: string | null;
24068
+ customer_exact_id: string | null;
24069
+ customer_name: string | null;
24070
+ description: string | null;
24071
+ division_code: number | null;
24072
+ due_date: string | null;
24073
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24074
+ exact_id: string;
24075
+ exact_modified: string | null;
24076
+ exact_timestamp: number | null;
24077
+ id: string;
24078
+ invoice_date: string | null;
24079
+ invoice_number: string | null;
24080
+ order_number: string | null;
24081
+ paid_at: string | null;
24082
+ payment_status: string;
24083
+ raw: import("../integrations/supabase/types").Json | null;
24084
+ receivable_synced_at: string | null;
24085
+ status_code: number | null;
24086
+ updated_at: string;
24087
+ };
24088
+ Insert: {
24089
+ account_key?: string;
24090
+ amount_excl?: number | null;
24091
+ amount_incl?: number | null;
24092
+ amount_open?: number | null;
24093
+ created_at?: string;
24094
+ currency?: string | null;
24095
+ customer_code?: string | null;
24096
+ customer_exact_id?: string | null;
24097
+ customer_name?: string | null;
24098
+ description?: string | null;
24099
+ division_code?: number | null;
24100
+ due_date?: string | null;
24101
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24102
+ exact_id: string;
24103
+ exact_modified?: string | null;
24104
+ exact_timestamp?: number | null;
24105
+ id?: string;
24106
+ invoice_date?: string | null;
24107
+ invoice_number?: string | null;
24108
+ order_number?: string | null;
24109
+ paid_at?: string | null;
24110
+ payment_status?: string;
24111
+ raw?: import("../integrations/supabase/types").Json | null;
24112
+ receivable_synced_at?: string | null;
24113
+ status_code?: number | null;
24114
+ updated_at?: string;
24115
+ };
24116
+ Update: {
24117
+ account_key?: string;
24118
+ amount_excl?: number | null;
24119
+ amount_incl?: number | null;
24120
+ amount_open?: number | null;
24121
+ created_at?: string;
24122
+ currency?: string | null;
24123
+ customer_code?: string | null;
24124
+ customer_exact_id?: string | null;
24125
+ customer_name?: string | null;
24126
+ description?: string | null;
24127
+ division_code?: number | null;
24128
+ due_date?: string | null;
24129
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24130
+ exact_id?: string;
24131
+ exact_modified?: string | null;
24132
+ exact_timestamp?: number | null;
24133
+ id?: string;
24134
+ invoice_date?: string | null;
24135
+ invoice_number?: string | null;
24136
+ order_number?: string | null;
24137
+ paid_at?: string | null;
24138
+ payment_status?: string;
24139
+ raw?: import("../integrations/supabase/types").Json | null;
24140
+ receivable_synced_at?: string | null;
24141
+ status_code?: number | null;
24142
+ updated_at?: string;
24143
+ };
24144
+ Relationships: [];
24145
+ };
24146
+ exact_auth_items: {
24147
+ Row: {
24148
+ account_key: string;
24149
+ barcode: string | null;
24150
+ code: string | null;
24151
+ cost_price: number | null;
24152
+ created_at: string;
24153
+ description: string | null;
24154
+ division_code: number | null;
24155
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24156
+ exact_id: string;
24157
+ exact_modified: string | null;
24158
+ exact_timestamp: number | null;
24159
+ gl_account_code: string | null;
24160
+ id: string;
24161
+ is_active: boolean;
24162
+ is_sales_item: boolean | null;
24163
+ item_type: string | null;
24164
+ raw: import("../integrations/supabase/types").Json | null;
24165
+ sales_price: number | null;
24166
+ unit: string | null;
24167
+ updated_at: string;
24168
+ vat_code: string | null;
24169
+ };
24170
+ Insert: {
24171
+ account_key?: string;
24172
+ barcode?: string | null;
24173
+ code?: string | null;
24174
+ cost_price?: number | null;
24175
+ created_at?: string;
24176
+ description?: string | null;
24177
+ division_code?: number | null;
24178
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24179
+ exact_id: string;
24180
+ exact_modified?: string | null;
24181
+ exact_timestamp?: number | null;
24182
+ gl_account_code?: string | null;
24183
+ id?: string;
24184
+ is_active?: boolean;
24185
+ is_sales_item?: boolean | null;
24186
+ item_type?: string | null;
24187
+ raw?: import("../integrations/supabase/types").Json | null;
24188
+ sales_price?: number | null;
24189
+ unit?: string | null;
24190
+ updated_at?: string;
24191
+ vat_code?: string | null;
24192
+ };
24193
+ Update: {
24194
+ account_key?: string;
24195
+ barcode?: string | null;
24196
+ code?: string | null;
24197
+ cost_price?: number | null;
24198
+ created_at?: string;
24199
+ description?: string | null;
24200
+ division_code?: number | null;
24201
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24202
+ exact_id?: string;
24203
+ exact_modified?: string | null;
24204
+ exact_timestamp?: number | null;
24205
+ gl_account_code?: string | null;
24206
+ id?: string;
24207
+ is_active?: boolean;
24208
+ is_sales_item?: boolean | null;
24209
+ item_type?: string | null;
24210
+ raw?: import("../integrations/supabase/types").Json | null;
24211
+ sales_price?: number | null;
24212
+ unit?: string | null;
24213
+ updated_at?: string;
24214
+ vat_code?: string | null;
24215
+ };
24216
+ Relationships: [];
24217
+ };
24218
+ exact_auth_sync_log: {
24219
+ Row: {
24220
+ account_key: string;
24221
+ calls_used: number;
24222
+ created_at: string;
24223
+ domain: string;
24224
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24225
+ error: string | null;
24226
+ finished_at: string | null;
24227
+ id: string;
24228
+ ok: boolean;
24229
+ records: number;
24230
+ started_at: string;
24231
+ };
24232
+ Insert: {
24233
+ account_key?: string;
24234
+ calls_used?: number;
24235
+ created_at?: string;
24236
+ domain: string;
24237
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24238
+ error?: string | null;
24239
+ finished_at?: string | null;
24240
+ id?: string;
24241
+ ok?: boolean;
24242
+ records?: number;
24243
+ started_at?: string;
24244
+ };
24245
+ Update: {
24246
+ account_key?: string;
24247
+ calls_used?: number;
24248
+ created_at?: string;
24249
+ domain?: string;
24250
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24251
+ error?: string | null;
24252
+ finished_at?: string | null;
24253
+ id?: string;
24254
+ ok?: boolean;
24255
+ records?: number;
24256
+ started_at?: string;
24257
+ };
24258
+ Relationships: [];
24259
+ };
24260
+ exact_auth_sync_state: {
24261
+ Row: {
24262
+ account_key: string;
24263
+ created_at: string;
24264
+ cursor_timestamp: number;
24265
+ division_code: number | null;
24266
+ domain: string;
24267
+ duration_ms: number | null;
24268
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24269
+ initial_sync_done: boolean;
24270
+ last_error: string | null;
24271
+ last_run_at: string | null;
24272
+ last_success_at: string | null;
24273
+ locked_at: string | null;
24274
+ needs_initial_sync: boolean;
24275
+ record_count: number;
24276
+ updated_at: string;
24277
+ };
24278
+ Insert: {
24279
+ account_key?: string;
24280
+ created_at?: string;
24281
+ cursor_timestamp?: number;
24282
+ division_code?: number | null;
24283
+ domain: string;
24284
+ duration_ms?: number | null;
24285
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24286
+ initial_sync_done?: boolean;
24287
+ last_error?: string | null;
24288
+ last_run_at?: string | null;
24289
+ last_success_at?: string | null;
24290
+ locked_at?: string | null;
24291
+ needs_initial_sync?: boolean;
24292
+ record_count?: number;
24293
+ updated_at?: string;
24294
+ };
24295
+ Update: {
24296
+ account_key?: string;
24297
+ created_at?: string;
24298
+ cursor_timestamp?: number;
24299
+ division_code?: number | null;
24300
+ domain?: string;
24301
+ duration_ms?: number | null;
24302
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24303
+ initial_sync_done?: boolean;
24304
+ last_error?: string | null;
24305
+ last_run_at?: string | null;
24306
+ last_success_at?: string | null;
24307
+ locked_at?: string | null;
24308
+ needs_initial_sync?: boolean;
24309
+ record_count?: number;
24310
+ updated_at?: string;
24311
+ };
24312
+ Relationships: [];
24313
+ };
23356
24314
  exact_bulk_operation_items: {
23357
24315
  Row: {
23358
24316
  attempts: number;
@@ -29853,6 +30811,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
29853
30811
  };
29854
30812
  offer_settings: {
29855
30813
  Row: {
30814
+ brand_name: string | null;
29856
30815
  button_color: string;
29857
30816
  created_at: string;
29858
30817
  default_countries: string[];
@@ -29874,6 +30833,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
29874
30833
  updated_at: string;
29875
30834
  };
29876
30835
  Insert: {
30836
+ brand_name?: string | null;
29877
30837
  button_color?: string;
29878
30838
  created_at?: string;
29879
30839
  default_countries?: string[];
@@ -29895,6 +30855,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
29895
30855
  updated_at?: string;
29896
30856
  };
29897
30857
  Update: {
30858
+ brand_name?: string | null;
29898
30859
  button_color?: string;
29899
30860
  created_at?: string;
29900
30861
  default_countries?: string[];
@@ -37745,6 +38706,21 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
37745
38706
  Args: never;
37746
38707
  Returns: string;
37747
38708
  };
38709
+ exact_auth_consume_calls: {
38710
+ Args: {
38711
+ _account_key: string;
38712
+ _calls?: number;
38713
+ _day_limit?: number;
38714
+ _division_code: number;
38715
+ _environment: string;
38716
+ _minute_limit?: number;
38717
+ };
38718
+ Returns: import("../integrations/supabase/types").Json;
38719
+ };
38720
+ exact_auth_prune_sync_log: {
38721
+ Args: never;
38722
+ Returns: undefined;
38723
+ };
37748
38724
  exact_decrypt: {
37749
38725
  Args: {
37750
38726
  cipher: string;
@@ -37954,6 +38930,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
37954
38930
  };
37955
38931
  Returns: number;
37956
38932
  };
38933
+ get_offer_branding: {
38934
+ Args: never;
38935
+ Returns: import("../integrations/supabase/types").Json;
38936
+ };
37957
38937
  get_offer_by_link_code: {
37958
38938
  Args: {
37959
38939
  p_code: string;