@flowselections/logistiek-engine 1.0.2 → 1.0.4

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 (39) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +516 -0
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +516 -0
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +516 -0
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/types.d.ts +518 -0
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts +4 -3
  11. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts.map +1 -1
  12. package/dist-lib/lib/bulkLoadCarrierPlanning.server.js +13 -15
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts +1548 -0
  14. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/handlers/index.d.ts +2 -0
  16. package/dist-lib/lib/handlers/index.d.ts.map +1 -0
  17. package/dist-lib/lib/handlers/index.js +4 -0
  18. package/dist-lib/lib/handlers/logistics-tick.server.d.ts +3 -0
  19. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -0
  20. package/dist-lib/lib/handlers/logistics-tick.server.js +54 -0
  21. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +2615 -50
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/loadCarrierPlanning.functions.js +13 -8
  24. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +7 -6
  25. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  26. package/dist-lib/lib/loadCarrierPlanning.server.js +31 -33
  27. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts +2 -1
  28. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  29. package/dist-lib/lib/loadCarrierTaskSync.server.js +4 -6
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1032 -0
  31. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -2
  33. package/dist-lib/lib/logisticsRecalcJob.server.d.ts +6 -5
  34. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  35. package/dist-lib/lib/logisticsRecalcJob.server.js +17 -19
  36. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +516 -0
  37. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/modulePrompts.js +911 -911
  39. package/package.json +18 -3
@@ -51,7 +51,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
51
51
  signup_mail_purpose?: string;
52
52
  transport_register_days_before?: number;
53
53
  updated_at?: string;
54
- user_id?: string;
54
+ user_id
55
+ /**
56
+ * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
57
+ * `done` waar is en schakelt dan door naar de volgende fase.
58
+ */
59
+ ?: string;
55
60
  };
56
61
  Relationships: [];
57
62
  };
@@ -71,15 +76,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
71
76
  };
72
77
  Insert: {
73
78
  account_email?: string | null;
74
- created_at
75
- /**
76
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
77
- * de volledige keten (inclusief load.compose) aanmaakt.
78
- */
79
- ? /**
80
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
81
- * de volledige keten (inclusief load.compose) aanmaakt.
82
- */: string;
79
+ created_at?: string;
83
80
  id?: string;
84
81
  last_error?: string | null;
85
82
  last_synced_at?: string | null;
@@ -1866,6 +1863,39 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
1866
1863
  referencedColumns: ["id"];
1867
1864
  }];
1868
1865
  };
1866
+ customer_notes: {
1867
+ Row: {
1868
+ created_at: string;
1869
+ customer_id: string | null;
1870
+ group_key: string | null;
1871
+ id: string;
1872
+ notes: string | null;
1873
+ updated_at: string;
1874
+ };
1875
+ Insert: {
1876
+ created_at?: string;
1877
+ customer_id?: string | null;
1878
+ group_key?: string | null;
1879
+ id?: string;
1880
+ notes?: string | null;
1881
+ updated_at?: string;
1882
+ };
1883
+ Update: {
1884
+ created_at?: string;
1885
+ customer_id?: string | null;
1886
+ group_key?: string | null;
1887
+ id?: string;
1888
+ notes?: string | null;
1889
+ updated_at?: string;
1890
+ };
1891
+ Relationships: [{
1892
+ foreignKeyName: "customer_notes_customer_id_fkey";
1893
+ columns: ["customer_id"];
1894
+ isOneToOne: true;
1895
+ referencedRelation: "customers";
1896
+ referencedColumns: ["id"];
1897
+ }];
1898
+ };
1869
1899
  customer_price_group_members: {
1870
1900
  Row: {
1871
1901
  created_at: string;
@@ -3510,6 +3540,474 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3510
3540
  referencedColumns: ["id"];
3511
3541
  }];
3512
3542
  };
3543
+ exact_auth_call_budget: {
3544
+ Row: {
3545
+ account_key: string;
3546
+ day_count: number;
3547
+ day_date: string;
3548
+ division_code: number;
3549
+ environment: string;
3550
+ minute_count: number;
3551
+ minute_window: string;
3552
+ updated_at: string;
3553
+ };
3554
+ Insert: {
3555
+ account_key?: string;
3556
+ day_count?: number;
3557
+ day_date?: string;
3558
+ division_code?: number;
3559
+ environment: string;
3560
+ minute_count?: number;
3561
+ minute_window?: string;
3562
+ updated_at?: string;
3563
+ };
3564
+ Update: {
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
+ Relationships: [];
3575
+ };
3576
+ exact_auth_customers: {
3577
+ Row: {
3578
+ account_key: string;
3579
+ address_line1: string | null;
3580
+ chamber_of_commerce: string | null;
3581
+ city: string | null;
3582
+ code: string | null;
3583
+ country: string | null;
3584
+ created_at: string;
3585
+ currency: string | null;
3586
+ division_code: number | null;
3587
+ email: string | null;
3588
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3589
+ exact_id: string;
3590
+ exact_modified: string | null;
3591
+ exact_timestamp: number | null;
3592
+ id: string;
3593
+ is_active: boolean;
3594
+ name: string | null;
3595
+ phone: string | null;
3596
+ postcode: string | null;
3597
+ raw: import("../integrations/supabase/types").Json | null;
3598
+ status: string | null;
3599
+ updated_at: string;
3600
+ vat_number: string | null;
3601
+ website: string | null;
3602
+ };
3603
+ Insert: {
3604
+ account_key?: string;
3605
+ address_line1?: string | null;
3606
+ chamber_of_commerce?: string | null;
3607
+ city?: string | null;
3608
+ code?: string | null;
3609
+ country?: string | null;
3610
+ created_at?: string;
3611
+ currency?: string | null;
3612
+ division_code?: number | null;
3613
+ email?: string | null;
3614
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3615
+ exact_id: string;
3616
+ exact_modified?: string | null;
3617
+ exact_timestamp?: number | null;
3618
+ id?: string;
3619
+ is_active?: boolean;
3620
+ name?: string | null;
3621
+ phone?: string | null;
3622
+ postcode?: string | null;
3623
+ raw?: import("../integrations/supabase/types").Json | null;
3624
+ status?: string | null;
3625
+ updated_at?: string;
3626
+ vat_number?: string | null;
3627
+ website?: string | null;
3628
+ };
3629
+ Update: {
3630
+ account_key?: string;
3631
+ address_line1?: string | null;
3632
+ chamber_of_commerce?: string | null;
3633
+ city?: string | null;
3634
+ code?: string | null;
3635
+ country?: string | null;
3636
+ created_at?: string;
3637
+ currency?: string | null;
3638
+ division_code?: number | null;
3639
+ email?: string | null;
3640
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3641
+ exact_id?: string;
3642
+ exact_modified?: string | null;
3643
+ exact_timestamp?: number | null;
3644
+ id?: string;
3645
+ is_active?: boolean;
3646
+ name?: string | null;
3647
+ phone?: string | null;
3648
+ postcode?: string | null;
3649
+ raw?: import("../integrations/supabase/types").Json | null;
3650
+ status?: string | null;
3651
+ updated_at?: string;
3652
+ vat_number?: string | null;
3653
+ website?: string | null;
3654
+ };
3655
+ Relationships: [];
3656
+ };
3657
+ exact_auth_divisions: {
3658
+ Row: {
3659
+ account_key: string;
3660
+ company_name: string | null;
3661
+ created_at: string;
3662
+ division_code: number | null;
3663
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3664
+ id: string;
3665
+ last_synced_at: string | null;
3666
+ updated_at: string;
3667
+ };
3668
+ Insert: {
3669
+ account_key?: string;
3670
+ company_name?: string | null;
3671
+ created_at?: string;
3672
+ division_code?: number | null;
3673
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3674
+ id?: string;
3675
+ last_synced_at?: string | null;
3676
+ updated_at?: string;
3677
+ };
3678
+ Update: {
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
+ Relationships: [];
3689
+ };
3690
+ exact_auth_invoice_lines: {
3691
+ Row: {
3692
+ account_key: string;
3693
+ amount_excl: number | null;
3694
+ created_at: string;
3695
+ description: string | null;
3696
+ discount: number | null;
3697
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3698
+ exact_id: string;
3699
+ exact_timestamp: number | null;
3700
+ id: string;
3701
+ invoice_exact_id: string;
3702
+ item_code: string | null;
3703
+ item_exact_id: string | null;
3704
+ line_number: number | null;
3705
+ quantity: number | null;
3706
+ raw: import("../integrations/supabase/types").Json | null;
3707
+ unit_price: number | null;
3708
+ updated_at: string;
3709
+ vat_amount: number | null;
3710
+ vat_code: string | null;
3711
+ };
3712
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
3755
+ };
3756
+ exact_auth_invoices: {
3757
+ Row: {
3758
+ account_key: string;
3759
+ amount_excl: number | null;
3760
+ amount_incl: number | null;
3761
+ amount_open: number | null;
3762
+ created_at: string;
3763
+ currency: string | null;
3764
+ customer_code: string | null;
3765
+ customer_exact_id: string | null;
3766
+ customer_name: string | null;
3767
+ description: string | null;
3768
+ division_code: number | null;
3769
+ due_date: string | null;
3770
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3771
+ exact_id: string;
3772
+ exact_modified: string | null;
3773
+ exact_timestamp: number | null;
3774
+ id: string;
3775
+ invoice_date: string | null;
3776
+ invoice_number: string | null;
3777
+ order_number: string | null;
3778
+ paid_at: string | null;
3779
+ payment_status: string;
3780
+ raw: import("../integrations/supabase/types").Json | null;
3781
+ receivable_synced_at: string | null;
3782
+ status_code: number | null;
3783
+ updated_at: string;
3784
+ };
3785
+ Insert: {
3786
+ account_key?: string;
3787
+ amount_excl?: number | null;
3788
+ amount_incl?: number | null;
3789
+ amount_open?: number | null;
3790
+ created_at?: string;
3791
+ currency?: string | null;
3792
+ customer_code?: string | null;
3793
+ customer_exact_id?: string | null;
3794
+ customer_name?: string | null;
3795
+ description?: string | null;
3796
+ division_code?: number | null;
3797
+ due_date?: string | null;
3798
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3799
+ exact_id: string;
3800
+ exact_modified?: string | null;
3801
+ exact_timestamp?: number | null;
3802
+ id?: string;
3803
+ invoice_date?: string | null;
3804
+ invoice_number?: string | null;
3805
+ order_number?: string | null;
3806
+ paid_at?: string | null;
3807
+ payment_status?: string;
3808
+ raw?: import("../integrations/supabase/types").Json | null;
3809
+ receivable_synced_at?: string | null;
3810
+ status_code?: number | null;
3811
+ updated_at?: string;
3812
+ };
3813
+ Update: {
3814
+ account_key?: string;
3815
+ amount_excl?: number | null;
3816
+ amount_incl?: number | null;
3817
+ amount_open?: number | null;
3818
+ created_at?: string;
3819
+ currency?: string | null;
3820
+ customer_code?: string | null;
3821
+ customer_exact_id?: string | null;
3822
+ customer_name?: string | null;
3823
+ description?: string | null;
3824
+ division_code?: number | null;
3825
+ due_date?: string | null;
3826
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3827
+ exact_id?: string;
3828
+ exact_modified?: string | null;
3829
+ exact_timestamp?: number | null;
3830
+ id?: string;
3831
+ invoice_date?: string | null;
3832
+ invoice_number?: string | null;
3833
+ order_number?: string | null;
3834
+ paid_at?: string | null;
3835
+ payment_status?: string;
3836
+ raw?: import("../integrations/supabase/types").Json | null;
3837
+ receivable_synced_at?: string | null;
3838
+ status_code?: number | null;
3839
+ updated_at?: string;
3840
+ };
3841
+ Relationships: [];
3842
+ };
3843
+ exact_auth_items: {
3844
+ Row: {
3845
+ account_key: string;
3846
+ barcode: string | null;
3847
+ code: string | null;
3848
+ cost_price: number | null;
3849
+ created_at: string;
3850
+ description: string | null;
3851
+ division_code: number | null;
3852
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3853
+ exact_id: string;
3854
+ exact_modified: string | null;
3855
+ exact_timestamp: number | null;
3856
+ gl_account_code: string | null;
3857
+ id: string;
3858
+ is_active: boolean;
3859
+ is_sales_item: boolean | null;
3860
+ item_type: string | null;
3861
+ raw: import("../integrations/supabase/types").Json | null;
3862
+ sales_price: number | null;
3863
+ unit: string | null;
3864
+ updated_at: string;
3865
+ vat_code: string | null;
3866
+ };
3867
+ Insert: {
3868
+ account_key?: string;
3869
+ barcode?: string | null;
3870
+ code?: string | null;
3871
+ cost_price?: number | null;
3872
+ created_at?: string;
3873
+ description?: string | null;
3874
+ division_code?: number | null;
3875
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3876
+ exact_id: string;
3877
+ exact_modified?: string | null;
3878
+ exact_timestamp?: number | null;
3879
+ gl_account_code?: string | null;
3880
+ id?: string;
3881
+ is_active?: boolean;
3882
+ is_sales_item?: boolean | null;
3883
+ item_type?: string | null;
3884
+ raw?: import("../integrations/supabase/types").Json | null;
3885
+ sales_price?: number | null;
3886
+ unit?: string | null;
3887
+ updated_at?: string;
3888
+ vat_code?: string | null;
3889
+ };
3890
+ Update: {
3891
+ account_key?: string;
3892
+ barcode?: string | null;
3893
+ code?: string | null;
3894
+ cost_price?: number | null;
3895
+ created_at?: string;
3896
+ description?: string | null;
3897
+ division_code?: number | null;
3898
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3899
+ exact_id?: string;
3900
+ exact_modified?: string | null;
3901
+ exact_timestamp?: number | null;
3902
+ gl_account_code?: string | null;
3903
+ id?: string;
3904
+ is_active?: boolean;
3905
+ is_sales_item?: boolean | null;
3906
+ item_type?: string | null;
3907
+ raw?: import("../integrations/supabase/types").Json | null;
3908
+ sales_price?: number | null;
3909
+ unit?: string | null;
3910
+ updated_at?: string;
3911
+ vat_code?: string | null;
3912
+ };
3913
+ Relationships: [];
3914
+ };
3915
+ exact_auth_sync_log: {
3916
+ Row: {
3917
+ account_key: string;
3918
+ calls_used: number;
3919
+ created_at: string;
3920
+ domain: string;
3921
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3922
+ error: string | null;
3923
+ finished_at: string | null;
3924
+ id: string;
3925
+ ok: boolean;
3926
+ records: number;
3927
+ started_at: string;
3928
+ };
3929
+ Insert: {
3930
+ account_key?: string;
3931
+ calls_used?: number;
3932
+ created_at?: string;
3933
+ domain: string;
3934
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3935
+ error?: string | null;
3936
+ finished_at?: string | null;
3937
+ id?: string;
3938
+ ok?: boolean;
3939
+ records?: number;
3940
+ started_at?: string;
3941
+ };
3942
+ Update: {
3943
+ account_key?: string;
3944
+ calls_used?: number;
3945
+ created_at?: string;
3946
+ domain?: string;
3947
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3948
+ error?: string | null;
3949
+ finished_at?: string | null;
3950
+ id?: string;
3951
+ ok?: boolean;
3952
+ records?: number;
3953
+ started_at?: string;
3954
+ };
3955
+ Relationships: [];
3956
+ };
3957
+ exact_auth_sync_state: {
3958
+ Row: {
3959
+ account_key: string;
3960
+ created_at: string;
3961
+ cursor_timestamp: number;
3962
+ division_code: number | null;
3963
+ domain: string;
3964
+ duration_ms: number | null;
3965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3966
+ initial_sync_done: boolean;
3967
+ last_error: string | null;
3968
+ last_run_at: string | null;
3969
+ last_success_at: string | null;
3970
+ locked_at: string | null;
3971
+ needs_initial_sync: boolean;
3972
+ record_count: number;
3973
+ updated_at: string;
3974
+ };
3975
+ Insert: {
3976
+ account_key?: string;
3977
+ created_at?: string;
3978
+ cursor_timestamp?: number;
3979
+ division_code?: number | null;
3980
+ domain: string;
3981
+ duration_ms?: number | null;
3982
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3983
+ initial_sync_done?: boolean;
3984
+ last_error?: string | null;
3985
+ last_run_at?: string | null;
3986
+ last_success_at?: string | null;
3987
+ locked_at?: string | null;
3988
+ needs_initial_sync?: boolean;
3989
+ record_count?: number;
3990
+ updated_at?: string;
3991
+ };
3992
+ Update: {
3993
+ account_key?: string;
3994
+ created_at?: string;
3995
+ cursor_timestamp?: number;
3996
+ division_code?: number | null;
3997
+ domain?: string;
3998
+ duration_ms?: number | null;
3999
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4000
+ initial_sync_done?: boolean;
4001
+ last_error?: string | null;
4002
+ last_run_at?: string | null;
4003
+ last_success_at?: string | null;
4004
+ locked_at?: string | null;
4005
+ needs_initial_sync?: boolean;
4006
+ record_count?: number;
4007
+ updated_at?: string;
4008
+ };
4009
+ Relationships: [];
4010
+ };
3513
4011
  exact_bulk_operation_items: {
3514
4012
  Row: {
3515
4013
  attempts: number;
@@ -17902,6 +18400,21 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17902
18400
  Args: never;
17903
18401
  Returns: string;
17904
18402
  };
18403
+ exact_auth_consume_calls: {
18404
+ Args: {
18405
+ _account_key: string;
18406
+ _calls?: number;
18407
+ _day_limit?: number;
18408
+ _division_code: number;
18409
+ _environment: string;
18410
+ _minute_limit?: number;
18411
+ };
18412
+ Returns: import("../integrations/supabase/types").Json;
18413
+ };
18414
+ exact_auth_prune_sync_log: {
18415
+ Args: never;
18416
+ Returns: undefined;
18417
+ };
17905
18418
  exact_decrypt: {
17906
18419
  Args: {
17907
18420
  cipher: string;
@@ -19846,7 +20359,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
19846
20359
  signup_mail_purpose?: string;
19847
20360
  transport_register_days_before?: number;
19848
20361
  updated_at?: string;
19849
- user_id?: string;
20362
+ user_id
20363
+ /**
20364
+ * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
20365
+ * `done` waar is en schakelt dan door naar de volgende fase.
20366
+ */
20367
+ ?: string;
19850
20368
  };
19851
20369
  Relationships: [];
19852
20370
  };
@@ -19866,15 +20384,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
19866
20384
  };
19867
20385
  Insert: {
19868
20386
  account_email?: string | null;
19869
- created_at
19870
- /**
19871
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
19872
- * de volledige keten (inclusief load.compose) aanmaakt.
19873
- */
19874
- ? /**
19875
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
19876
- * de volledige keten (inclusief load.compose) aanmaakt.
19877
- */: string;
20387
+ created_at?: string;
19878
20388
  id?: string;
19879
20389
  last_error?: string | null;
19880
20390
  last_synced_at?: string | null;
@@ -21661,6 +22171,39 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
21661
22171
  referencedColumns: ["id"];
21662
22172
  }];
21663
22173
  };
22174
+ customer_notes: {
22175
+ Row: {
22176
+ created_at: string;
22177
+ customer_id: string | null;
22178
+ group_key: string | null;
22179
+ id: string;
22180
+ notes: string | null;
22181
+ updated_at: string;
22182
+ };
22183
+ Insert: {
22184
+ created_at?: string;
22185
+ customer_id?: string | null;
22186
+ group_key?: string | null;
22187
+ id?: string;
22188
+ notes?: string | null;
22189
+ updated_at?: string;
22190
+ };
22191
+ Update: {
22192
+ created_at?: string;
22193
+ customer_id?: string | null;
22194
+ group_key?: string | null;
22195
+ id?: string;
22196
+ notes?: string | null;
22197
+ updated_at?: string;
22198
+ };
22199
+ Relationships: [{
22200
+ foreignKeyName: "customer_notes_customer_id_fkey";
22201
+ columns: ["customer_id"];
22202
+ isOneToOne: true;
22203
+ referencedRelation: "customers";
22204
+ referencedColumns: ["id"];
22205
+ }];
22206
+ };
21664
22207
  customer_price_group_members: {
21665
22208
  Row: {
21666
22209
  created_at: string;
@@ -23305,6 +23848,474 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
23305
23848
  referencedColumns: ["id"];
23306
23849
  }];
23307
23850
  };
23851
+ exact_auth_call_budget: {
23852
+ Row: {
23853
+ account_key: string;
23854
+ day_count: number;
23855
+ day_date: string;
23856
+ division_code: number;
23857
+ environment: string;
23858
+ minute_count: number;
23859
+ minute_window: string;
23860
+ updated_at: string;
23861
+ };
23862
+ Insert: {
23863
+ account_key?: string;
23864
+ day_count?: number;
23865
+ day_date?: string;
23866
+ division_code?: number;
23867
+ environment: string;
23868
+ minute_count?: number;
23869
+ minute_window?: string;
23870
+ updated_at?: string;
23871
+ };
23872
+ Update: {
23873
+ account_key?: string;
23874
+ day_count?: number;
23875
+ day_date?: string;
23876
+ division_code?: number;
23877
+ environment?: string;
23878
+ minute_count?: number;
23879
+ minute_window?: string;
23880
+ updated_at?: string;
23881
+ };
23882
+ Relationships: [];
23883
+ };
23884
+ exact_auth_customers: {
23885
+ Row: {
23886
+ account_key: string;
23887
+ address_line1: string | null;
23888
+ chamber_of_commerce: string | null;
23889
+ city: string | null;
23890
+ code: string | null;
23891
+ country: string | null;
23892
+ created_at: string;
23893
+ currency: string | null;
23894
+ division_code: number | null;
23895
+ email: string | null;
23896
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23897
+ exact_id: string;
23898
+ exact_modified: string | null;
23899
+ exact_timestamp: number | null;
23900
+ id: string;
23901
+ is_active: boolean;
23902
+ name: string | null;
23903
+ phone: string | null;
23904
+ postcode: string | null;
23905
+ raw: import("../integrations/supabase/types").Json | null;
23906
+ status: string | null;
23907
+ updated_at: string;
23908
+ vat_number: string | null;
23909
+ website: string | null;
23910
+ };
23911
+ Insert: {
23912
+ account_key?: string;
23913
+ address_line1?: string | null;
23914
+ chamber_of_commerce?: string | null;
23915
+ city?: string | null;
23916
+ code?: string | null;
23917
+ country?: string | null;
23918
+ created_at?: string;
23919
+ currency?: string | null;
23920
+ division_code?: number | null;
23921
+ email?: string | null;
23922
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23923
+ exact_id: string;
23924
+ exact_modified?: string | null;
23925
+ exact_timestamp?: number | null;
23926
+ id?: string;
23927
+ is_active?: boolean;
23928
+ name?: string | null;
23929
+ phone?: string | null;
23930
+ postcode?: string | null;
23931
+ raw?: import("../integrations/supabase/types").Json | null;
23932
+ status?: string | null;
23933
+ updated_at?: string;
23934
+ vat_number?: string | null;
23935
+ website?: string | null;
23936
+ };
23937
+ Update: {
23938
+ account_key?: string;
23939
+ address_line1?: string | null;
23940
+ chamber_of_commerce?: string | null;
23941
+ city?: string | null;
23942
+ code?: string | null;
23943
+ country?: string | null;
23944
+ created_at?: string;
23945
+ currency?: string | null;
23946
+ division_code?: number | null;
23947
+ email?: string | null;
23948
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23949
+ exact_id?: string;
23950
+ exact_modified?: string | null;
23951
+ exact_timestamp?: number | null;
23952
+ id?: string;
23953
+ is_active?: boolean;
23954
+ name?: string | null;
23955
+ phone?: string | null;
23956
+ postcode?: string | null;
23957
+ raw?: import("../integrations/supabase/types").Json | null;
23958
+ status?: string | null;
23959
+ updated_at?: string;
23960
+ vat_number?: string | null;
23961
+ website?: string | null;
23962
+ };
23963
+ Relationships: [];
23964
+ };
23965
+ exact_auth_divisions: {
23966
+ Row: {
23967
+ account_key: string;
23968
+ company_name: string | null;
23969
+ created_at: string;
23970
+ division_code: number | null;
23971
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23972
+ id: string;
23973
+ last_synced_at: string | null;
23974
+ updated_at: string;
23975
+ };
23976
+ Insert: {
23977
+ account_key?: string;
23978
+ company_name?: string | null;
23979
+ created_at?: string;
23980
+ division_code?: number | null;
23981
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23982
+ id?: string;
23983
+ last_synced_at?: string | null;
23984
+ updated_at?: string;
23985
+ };
23986
+ Update: {
23987
+ account_key?: string;
23988
+ company_name?: string | null;
23989
+ created_at?: string;
23990
+ division_code?: number | null;
23991
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23992
+ id?: string;
23993
+ last_synced_at?: string | null;
23994
+ updated_at?: string;
23995
+ };
23996
+ Relationships: [];
23997
+ };
23998
+ exact_auth_invoice_lines: {
23999
+ Row: {
24000
+ account_key: string;
24001
+ amount_excl: number | null;
24002
+ created_at: string;
24003
+ description: string | null;
24004
+ discount: number | null;
24005
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24006
+ exact_id: string;
24007
+ exact_timestamp: number | null;
24008
+ id: string;
24009
+ invoice_exact_id: string;
24010
+ item_code: string | null;
24011
+ item_exact_id: string | null;
24012
+ line_number: number | null;
24013
+ quantity: number | null;
24014
+ raw: import("../integrations/supabase/types").Json | null;
24015
+ unit_price: number | null;
24016
+ updated_at: string;
24017
+ vat_amount: number | null;
24018
+ vat_code: string | null;
24019
+ };
24020
+ Insert: {
24021
+ account_key?: string;
24022
+ amount_excl?: number | null;
24023
+ created_at?: string;
24024
+ description?: string | null;
24025
+ discount?: number | null;
24026
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24027
+ exact_id: string;
24028
+ exact_timestamp?: number | null;
24029
+ id?: string;
24030
+ invoice_exact_id: string;
24031
+ item_code?: string | null;
24032
+ item_exact_id?: string | null;
24033
+ line_number?: number | null;
24034
+ quantity?: number | null;
24035
+ raw?: import("../integrations/supabase/types").Json | null;
24036
+ unit_price?: number | null;
24037
+ updated_at?: string;
24038
+ vat_amount?: number | null;
24039
+ vat_code?: string | null;
24040
+ };
24041
+ Update: {
24042
+ account_key?: string;
24043
+ amount_excl?: number | null;
24044
+ created_at?: string;
24045
+ description?: string | null;
24046
+ discount?: number | null;
24047
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24048
+ exact_id?: string;
24049
+ exact_timestamp?: number | null;
24050
+ id?: string;
24051
+ invoice_exact_id?: string;
24052
+ item_code?: string | null;
24053
+ item_exact_id?: string | null;
24054
+ line_number?: number | null;
24055
+ quantity?: number | null;
24056
+ raw?: import("../integrations/supabase/types").Json | null;
24057
+ unit_price?: number | null;
24058
+ updated_at?: string;
24059
+ vat_amount?: number | null;
24060
+ vat_code?: string | null;
24061
+ };
24062
+ Relationships: [];
24063
+ };
24064
+ exact_auth_invoices: {
24065
+ Row: {
24066
+ account_key: string;
24067
+ amount_excl: number | null;
24068
+ amount_incl: number | null;
24069
+ amount_open: number | null;
24070
+ created_at: string;
24071
+ currency: string | null;
24072
+ customer_code: string | null;
24073
+ customer_exact_id: string | null;
24074
+ customer_name: string | null;
24075
+ description: string | null;
24076
+ division_code: number | null;
24077
+ due_date: string | null;
24078
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24079
+ exact_id: string;
24080
+ exact_modified: string | null;
24081
+ exact_timestamp: number | null;
24082
+ id: string;
24083
+ invoice_date: string | null;
24084
+ invoice_number: string | null;
24085
+ order_number: string | null;
24086
+ paid_at: string | null;
24087
+ payment_status: string;
24088
+ raw: import("../integrations/supabase/types").Json | null;
24089
+ receivable_synced_at: string | null;
24090
+ status_code: number | null;
24091
+ updated_at: string;
24092
+ };
24093
+ Insert: {
24094
+ account_key?: string;
24095
+ amount_excl?: number | null;
24096
+ amount_incl?: number | null;
24097
+ amount_open?: number | null;
24098
+ created_at?: string;
24099
+ currency?: string | null;
24100
+ customer_code?: string | null;
24101
+ customer_exact_id?: string | null;
24102
+ customer_name?: string | null;
24103
+ description?: string | null;
24104
+ division_code?: number | null;
24105
+ due_date?: string | null;
24106
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24107
+ exact_id: string;
24108
+ exact_modified?: string | null;
24109
+ exact_timestamp?: number | null;
24110
+ id?: string;
24111
+ invoice_date?: string | null;
24112
+ invoice_number?: string | null;
24113
+ order_number?: string | null;
24114
+ paid_at?: string | null;
24115
+ payment_status?: string;
24116
+ raw?: import("../integrations/supabase/types").Json | null;
24117
+ receivable_synced_at?: string | null;
24118
+ status_code?: number | null;
24119
+ updated_at?: string;
24120
+ };
24121
+ Update: {
24122
+ account_key?: string;
24123
+ amount_excl?: number | null;
24124
+ amount_incl?: number | null;
24125
+ amount_open?: number | null;
24126
+ created_at?: string;
24127
+ currency?: string | null;
24128
+ customer_code?: string | null;
24129
+ customer_exact_id?: string | null;
24130
+ customer_name?: string | null;
24131
+ description?: string | null;
24132
+ division_code?: number | null;
24133
+ due_date?: string | null;
24134
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24135
+ exact_id?: string;
24136
+ exact_modified?: string | null;
24137
+ exact_timestamp?: number | null;
24138
+ id?: string;
24139
+ invoice_date?: string | null;
24140
+ invoice_number?: string | null;
24141
+ order_number?: string | null;
24142
+ paid_at?: string | null;
24143
+ payment_status?: string;
24144
+ raw?: import("../integrations/supabase/types").Json | null;
24145
+ receivable_synced_at?: string | null;
24146
+ status_code?: number | null;
24147
+ updated_at?: string;
24148
+ };
24149
+ Relationships: [];
24150
+ };
24151
+ exact_auth_items: {
24152
+ Row: {
24153
+ account_key: string;
24154
+ barcode: string | null;
24155
+ code: string | null;
24156
+ cost_price: number | null;
24157
+ created_at: string;
24158
+ description: string | null;
24159
+ division_code: number | null;
24160
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24161
+ exact_id: string;
24162
+ exact_modified: string | null;
24163
+ exact_timestamp: number | null;
24164
+ gl_account_code: string | null;
24165
+ id: string;
24166
+ is_active: boolean;
24167
+ is_sales_item: boolean | null;
24168
+ item_type: string | null;
24169
+ raw: import("../integrations/supabase/types").Json | null;
24170
+ sales_price: number | null;
24171
+ unit: string | null;
24172
+ updated_at: string;
24173
+ vat_code: string | null;
24174
+ };
24175
+ Insert: {
24176
+ account_key?: string;
24177
+ barcode?: string | null;
24178
+ code?: string | null;
24179
+ cost_price?: number | null;
24180
+ created_at?: string;
24181
+ description?: string | null;
24182
+ division_code?: number | null;
24183
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24184
+ exact_id: string;
24185
+ exact_modified?: string | null;
24186
+ exact_timestamp?: number | null;
24187
+ gl_account_code?: string | null;
24188
+ id?: string;
24189
+ is_active?: boolean;
24190
+ is_sales_item?: boolean | null;
24191
+ item_type?: string | null;
24192
+ raw?: import("../integrations/supabase/types").Json | null;
24193
+ sales_price?: number | null;
24194
+ unit?: string | null;
24195
+ updated_at?: string;
24196
+ vat_code?: string | null;
24197
+ };
24198
+ Update: {
24199
+ account_key?: string;
24200
+ barcode?: string | null;
24201
+ code?: string | null;
24202
+ cost_price?: number | null;
24203
+ created_at?: string;
24204
+ description?: string | null;
24205
+ division_code?: number | null;
24206
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24207
+ exact_id?: string;
24208
+ exact_modified?: string | null;
24209
+ exact_timestamp?: number | null;
24210
+ gl_account_code?: string | null;
24211
+ id?: string;
24212
+ is_active?: boolean;
24213
+ is_sales_item?: boolean | null;
24214
+ item_type?: string | null;
24215
+ raw?: import("../integrations/supabase/types").Json | null;
24216
+ sales_price?: number | null;
24217
+ unit?: string | null;
24218
+ updated_at?: string;
24219
+ vat_code?: string | null;
24220
+ };
24221
+ Relationships: [];
24222
+ };
24223
+ exact_auth_sync_log: {
24224
+ Row: {
24225
+ account_key: string;
24226
+ calls_used: number;
24227
+ created_at: string;
24228
+ domain: string;
24229
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24230
+ error: string | null;
24231
+ finished_at: string | null;
24232
+ id: string;
24233
+ ok: boolean;
24234
+ records: number;
24235
+ started_at: string;
24236
+ };
24237
+ Insert: {
24238
+ account_key?: string;
24239
+ calls_used?: number;
24240
+ created_at?: string;
24241
+ domain: string;
24242
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24243
+ error?: string | null;
24244
+ finished_at?: string | null;
24245
+ id?: string;
24246
+ ok?: boolean;
24247
+ records?: number;
24248
+ started_at?: string;
24249
+ };
24250
+ Update: {
24251
+ account_key?: string;
24252
+ calls_used?: number;
24253
+ created_at?: string;
24254
+ domain?: string;
24255
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24256
+ error?: string | null;
24257
+ finished_at?: string | null;
24258
+ id?: string;
24259
+ ok?: boolean;
24260
+ records?: number;
24261
+ started_at?: string;
24262
+ };
24263
+ Relationships: [];
24264
+ };
24265
+ exact_auth_sync_state: {
24266
+ Row: {
24267
+ account_key: string;
24268
+ created_at: string;
24269
+ cursor_timestamp: number;
24270
+ division_code: number | null;
24271
+ domain: string;
24272
+ duration_ms: number | null;
24273
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24274
+ initial_sync_done: boolean;
24275
+ last_error: string | null;
24276
+ last_run_at: string | null;
24277
+ last_success_at: string | null;
24278
+ locked_at: string | null;
24279
+ needs_initial_sync: boolean;
24280
+ record_count: number;
24281
+ updated_at: string;
24282
+ };
24283
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
24318
+ };
23308
24319
  exact_bulk_operation_items: {
23309
24320
  Row: {
23310
24321
  attempts: number;
@@ -37697,6 +38708,21 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37697
38708
  Args: never;
37698
38709
  Returns: string;
37699
38710
  };
38711
+ exact_auth_consume_calls: {
38712
+ Args: {
38713
+ _account_key: string;
38714
+ _calls?: number;
38715
+ _day_limit?: number;
38716
+ _division_code: number;
38717
+ _environment: string;
38718
+ _minute_limit?: number;
38719
+ };
38720
+ Returns: import("../integrations/supabase/types").Json;
38721
+ };
38722
+ exact_auth_prune_sync_log: {
38723
+ Args: never;
38724
+ Returns: undefined;
38725
+ };
37700
38726
  exact_decrypt: {
37701
38727
  Args: {
37702
38728
  cipher: string;
@@ -39645,7 +40671,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
39645
40671
  signup_mail_purpose?: string;
39646
40672
  transport_register_days_before?: number;
39647
40673
  updated_at?: string;
39648
- user_id?: string;
40674
+ user_id
40675
+ /**
40676
+ * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
40677
+ * `done` waar is en schakelt dan door naar de volgende fase.
40678
+ */
40679
+ ?: string;
39649
40680
  };
39650
40681
  Relationships: [];
39651
40682
  };
@@ -39665,15 +40696,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
39665
40696
  };
39666
40697
  Insert: {
39667
40698
  account_email?: string | null;
39668
- created_at
39669
- /**
39670
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
39671
- * de volledige keten (inclusief load.compose) aanmaakt.
39672
- */
39673
- ? /**
39674
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
39675
- * de volledige keten (inclusief load.compose) aanmaakt.
39676
- */: string;
40699
+ created_at?: string;
39677
40700
  id?: string;
39678
40701
  last_error?: string | null;
39679
40702
  last_synced_at?: string | null;
@@ -41460,6 +42483,39 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
41460
42483
  referencedColumns: ["id"];
41461
42484
  }];
41462
42485
  };
42486
+ customer_notes: {
42487
+ Row: {
42488
+ created_at: string;
42489
+ customer_id: string | null;
42490
+ group_key: string | null;
42491
+ id: string;
42492
+ notes: string | null;
42493
+ updated_at: string;
42494
+ };
42495
+ Insert: {
42496
+ created_at?: string;
42497
+ customer_id?: string | null;
42498
+ group_key?: string | null;
42499
+ id?: string;
42500
+ notes?: string | null;
42501
+ updated_at?: string;
42502
+ };
42503
+ Update: {
42504
+ created_at?: string;
42505
+ customer_id?: string | null;
42506
+ group_key?: string | null;
42507
+ id?: string;
42508
+ notes?: string | null;
42509
+ updated_at?: string;
42510
+ };
42511
+ Relationships: [{
42512
+ foreignKeyName: "customer_notes_customer_id_fkey";
42513
+ columns: ["customer_id"];
42514
+ isOneToOne: true;
42515
+ referencedRelation: "customers";
42516
+ referencedColumns: ["id"];
42517
+ }];
42518
+ };
41463
42519
  customer_price_group_members: {
41464
42520
  Row: {
41465
42521
  created_at: string;
@@ -43104,6 +44160,474 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
43104
44160
  referencedColumns: ["id"];
43105
44161
  }];
43106
44162
  };
44163
+ exact_auth_call_budget: {
44164
+ Row: {
44165
+ account_key: string;
44166
+ day_count: number;
44167
+ day_date: string;
44168
+ division_code: number;
44169
+ environment: string;
44170
+ minute_count: number;
44171
+ minute_window: string;
44172
+ updated_at: string;
44173
+ };
44174
+ Insert: {
44175
+ account_key?: string;
44176
+ day_count?: number;
44177
+ day_date?: string;
44178
+ division_code?: number;
44179
+ environment: string;
44180
+ minute_count?: number;
44181
+ minute_window?: string;
44182
+ updated_at?: string;
44183
+ };
44184
+ Update: {
44185
+ account_key?: string;
44186
+ day_count?: number;
44187
+ day_date?: string;
44188
+ division_code?: number;
44189
+ environment?: string;
44190
+ minute_count?: number;
44191
+ minute_window?: string;
44192
+ updated_at?: string;
44193
+ };
44194
+ Relationships: [];
44195
+ };
44196
+ exact_auth_customers: {
44197
+ Row: {
44198
+ account_key: string;
44199
+ address_line1: string | null;
44200
+ chamber_of_commerce: string | null;
44201
+ city: string | null;
44202
+ code: string | null;
44203
+ country: string | null;
44204
+ created_at: string;
44205
+ currency: string | null;
44206
+ division_code: number | null;
44207
+ email: string | null;
44208
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44209
+ exact_id: string;
44210
+ exact_modified: string | null;
44211
+ exact_timestamp: number | null;
44212
+ id: string;
44213
+ is_active: boolean;
44214
+ name: string | null;
44215
+ phone: string | null;
44216
+ postcode: string | null;
44217
+ raw: import("../integrations/supabase/types").Json | null;
44218
+ status: string | null;
44219
+ updated_at: string;
44220
+ vat_number: string | null;
44221
+ website: string | null;
44222
+ };
44223
+ Insert: {
44224
+ account_key?: string;
44225
+ address_line1?: string | null;
44226
+ chamber_of_commerce?: string | null;
44227
+ city?: string | null;
44228
+ code?: string | null;
44229
+ country?: string | null;
44230
+ created_at?: string;
44231
+ currency?: string | null;
44232
+ division_code?: number | null;
44233
+ email?: string | null;
44234
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44235
+ exact_id: string;
44236
+ exact_modified?: string | null;
44237
+ exact_timestamp?: number | null;
44238
+ id?: string;
44239
+ is_active?: boolean;
44240
+ name?: string | null;
44241
+ phone?: string | null;
44242
+ postcode?: string | null;
44243
+ raw?: import("../integrations/supabase/types").Json | null;
44244
+ status?: string | null;
44245
+ updated_at?: string;
44246
+ vat_number?: string | null;
44247
+ website?: string | null;
44248
+ };
44249
+ Update: {
44250
+ account_key?: string;
44251
+ address_line1?: string | null;
44252
+ chamber_of_commerce?: string | null;
44253
+ city?: string | null;
44254
+ code?: string | null;
44255
+ country?: string | null;
44256
+ created_at?: string;
44257
+ currency?: string | null;
44258
+ division_code?: number | null;
44259
+ email?: string | null;
44260
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44261
+ exact_id?: string;
44262
+ exact_modified?: string | null;
44263
+ exact_timestamp?: number | null;
44264
+ id?: string;
44265
+ is_active?: boolean;
44266
+ name?: string | null;
44267
+ phone?: string | null;
44268
+ postcode?: string | null;
44269
+ raw?: import("../integrations/supabase/types").Json | null;
44270
+ status?: string | null;
44271
+ updated_at?: string;
44272
+ vat_number?: string | null;
44273
+ website?: string | null;
44274
+ };
44275
+ Relationships: [];
44276
+ };
44277
+ exact_auth_divisions: {
44278
+ Row: {
44279
+ account_key: string;
44280
+ company_name: string | null;
44281
+ created_at: string;
44282
+ division_code: number | null;
44283
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44284
+ id: string;
44285
+ last_synced_at: string | null;
44286
+ updated_at: string;
44287
+ };
44288
+ Insert: {
44289
+ account_key?: string;
44290
+ company_name?: string | null;
44291
+ created_at?: string;
44292
+ division_code?: number | null;
44293
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44294
+ id?: string;
44295
+ last_synced_at?: string | null;
44296
+ updated_at?: string;
44297
+ };
44298
+ Update: {
44299
+ account_key?: string;
44300
+ company_name?: string | null;
44301
+ created_at?: string;
44302
+ division_code?: number | null;
44303
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44304
+ id?: string;
44305
+ last_synced_at?: string | null;
44306
+ updated_at?: string;
44307
+ };
44308
+ Relationships: [];
44309
+ };
44310
+ exact_auth_invoice_lines: {
44311
+ Row: {
44312
+ account_key: string;
44313
+ amount_excl: number | null;
44314
+ created_at: string;
44315
+ description: string | null;
44316
+ discount: number | null;
44317
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44318
+ exact_id: string;
44319
+ exact_timestamp: number | null;
44320
+ id: string;
44321
+ invoice_exact_id: string;
44322
+ item_code: string | null;
44323
+ item_exact_id: string | null;
44324
+ line_number: number | null;
44325
+ quantity: number | null;
44326
+ raw: import("../integrations/supabase/types").Json | null;
44327
+ unit_price: number | null;
44328
+ updated_at: string;
44329
+ vat_amount: number | null;
44330
+ vat_code: string | null;
44331
+ };
44332
+ Insert: {
44333
+ account_key?: string;
44334
+ amount_excl?: number | null;
44335
+ created_at?: string;
44336
+ description?: string | null;
44337
+ discount?: number | null;
44338
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44339
+ exact_id: string;
44340
+ exact_timestamp?: number | null;
44341
+ id?: string;
44342
+ invoice_exact_id: string;
44343
+ item_code?: string | null;
44344
+ item_exact_id?: string | null;
44345
+ line_number?: number | null;
44346
+ quantity?: number | null;
44347
+ raw?: import("../integrations/supabase/types").Json | null;
44348
+ unit_price?: number | null;
44349
+ updated_at?: string;
44350
+ vat_amount?: number | null;
44351
+ vat_code?: string | null;
44352
+ };
44353
+ Update: {
44354
+ account_key?: string;
44355
+ amount_excl?: number | null;
44356
+ created_at?: string;
44357
+ description?: string | null;
44358
+ discount?: number | null;
44359
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44360
+ exact_id?: string;
44361
+ exact_timestamp?: number | null;
44362
+ id?: string;
44363
+ invoice_exact_id?: string;
44364
+ item_code?: string | null;
44365
+ item_exact_id?: string | null;
44366
+ line_number?: number | null;
44367
+ quantity?: number | null;
44368
+ raw?: import("../integrations/supabase/types").Json | null;
44369
+ unit_price?: number | null;
44370
+ updated_at?: string;
44371
+ vat_amount?: number | null;
44372
+ vat_code?: string | null;
44373
+ };
44374
+ Relationships: [];
44375
+ };
44376
+ exact_auth_invoices: {
44377
+ Row: {
44378
+ account_key: string;
44379
+ amount_excl: number | null;
44380
+ amount_incl: number | null;
44381
+ amount_open: number | null;
44382
+ created_at: string;
44383
+ currency: string | null;
44384
+ customer_code: string | null;
44385
+ customer_exact_id: string | null;
44386
+ customer_name: string | null;
44387
+ description: string | null;
44388
+ division_code: number | null;
44389
+ due_date: string | null;
44390
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44391
+ exact_id: string;
44392
+ exact_modified: string | null;
44393
+ exact_timestamp: number | null;
44394
+ id: string;
44395
+ invoice_date: string | null;
44396
+ invoice_number: string | null;
44397
+ order_number: string | null;
44398
+ paid_at: string | null;
44399
+ payment_status: string;
44400
+ raw: import("../integrations/supabase/types").Json | null;
44401
+ receivable_synced_at: string | null;
44402
+ status_code: number | null;
44403
+ updated_at: string;
44404
+ };
44405
+ Insert: {
44406
+ account_key?: string;
44407
+ amount_excl?: number | null;
44408
+ amount_incl?: number | null;
44409
+ amount_open?: number | null;
44410
+ created_at?: string;
44411
+ currency?: string | null;
44412
+ customer_code?: string | null;
44413
+ customer_exact_id?: string | null;
44414
+ customer_name?: string | null;
44415
+ description?: string | null;
44416
+ division_code?: number | null;
44417
+ due_date?: string | null;
44418
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44419
+ exact_id: string;
44420
+ exact_modified?: string | null;
44421
+ exact_timestamp?: number | null;
44422
+ id?: string;
44423
+ invoice_date?: string | null;
44424
+ invoice_number?: string | null;
44425
+ order_number?: string | null;
44426
+ paid_at?: string | null;
44427
+ payment_status?: string;
44428
+ raw?: import("../integrations/supabase/types").Json | null;
44429
+ receivable_synced_at?: string | null;
44430
+ status_code?: number | null;
44431
+ updated_at?: string;
44432
+ };
44433
+ Update: {
44434
+ account_key?: string;
44435
+ amount_excl?: number | null;
44436
+ amount_incl?: number | null;
44437
+ amount_open?: number | null;
44438
+ created_at?: string;
44439
+ currency?: string | null;
44440
+ customer_code?: string | null;
44441
+ customer_exact_id?: string | null;
44442
+ customer_name?: string | null;
44443
+ description?: string | null;
44444
+ division_code?: number | null;
44445
+ due_date?: string | null;
44446
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44447
+ exact_id?: string;
44448
+ exact_modified?: string | null;
44449
+ exact_timestamp?: number | null;
44450
+ id?: string;
44451
+ invoice_date?: string | null;
44452
+ invoice_number?: string | null;
44453
+ order_number?: string | null;
44454
+ paid_at?: string | null;
44455
+ payment_status?: string;
44456
+ raw?: import("../integrations/supabase/types").Json | null;
44457
+ receivable_synced_at?: string | null;
44458
+ status_code?: number | null;
44459
+ updated_at?: string;
44460
+ };
44461
+ Relationships: [];
44462
+ };
44463
+ exact_auth_items: {
44464
+ Row: {
44465
+ account_key: string;
44466
+ barcode: string | null;
44467
+ code: string | null;
44468
+ cost_price: number | null;
44469
+ created_at: string;
44470
+ description: string | null;
44471
+ division_code: number | null;
44472
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44473
+ exact_id: string;
44474
+ exact_modified: string | null;
44475
+ exact_timestamp: number | null;
44476
+ gl_account_code: string | null;
44477
+ id: string;
44478
+ is_active: boolean;
44479
+ is_sales_item: boolean | null;
44480
+ item_type: string | null;
44481
+ raw: import("../integrations/supabase/types").Json | null;
44482
+ sales_price: number | null;
44483
+ unit: string | null;
44484
+ updated_at: string;
44485
+ vat_code: string | null;
44486
+ };
44487
+ Insert: {
44488
+ account_key?: string;
44489
+ barcode?: string | null;
44490
+ code?: string | null;
44491
+ cost_price?: number | null;
44492
+ created_at?: string;
44493
+ description?: string | null;
44494
+ division_code?: number | null;
44495
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44496
+ exact_id: string;
44497
+ exact_modified?: string | null;
44498
+ exact_timestamp?: number | null;
44499
+ gl_account_code?: string | null;
44500
+ id?: string;
44501
+ is_active?: boolean;
44502
+ is_sales_item?: boolean | null;
44503
+ item_type?: string | null;
44504
+ raw?: import("../integrations/supabase/types").Json | null;
44505
+ sales_price?: number | null;
44506
+ unit?: string | null;
44507
+ updated_at?: string;
44508
+ vat_code?: string | null;
44509
+ };
44510
+ Update: {
44511
+ account_key?: string;
44512
+ barcode?: string | null;
44513
+ code?: string | null;
44514
+ cost_price?: number | null;
44515
+ created_at?: string;
44516
+ description?: string | null;
44517
+ division_code?: number | null;
44518
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44519
+ exact_id?: string;
44520
+ exact_modified?: string | null;
44521
+ exact_timestamp?: number | null;
44522
+ gl_account_code?: string | null;
44523
+ id?: string;
44524
+ is_active?: boolean;
44525
+ is_sales_item?: boolean | null;
44526
+ item_type?: string | null;
44527
+ raw?: import("../integrations/supabase/types").Json | null;
44528
+ sales_price?: number | null;
44529
+ unit?: string | null;
44530
+ updated_at?: string;
44531
+ vat_code?: string | null;
44532
+ };
44533
+ Relationships: [];
44534
+ };
44535
+ exact_auth_sync_log: {
44536
+ Row: {
44537
+ account_key: string;
44538
+ calls_used: number;
44539
+ created_at: string;
44540
+ domain: string;
44541
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44542
+ error: string | null;
44543
+ finished_at: string | null;
44544
+ id: string;
44545
+ ok: boolean;
44546
+ records: number;
44547
+ started_at: string;
44548
+ };
44549
+ Insert: {
44550
+ account_key?: string;
44551
+ calls_used?: number;
44552
+ created_at?: string;
44553
+ domain: string;
44554
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44555
+ error?: string | null;
44556
+ finished_at?: string | null;
44557
+ id?: string;
44558
+ ok?: boolean;
44559
+ records?: number;
44560
+ started_at?: string;
44561
+ };
44562
+ Update: {
44563
+ account_key?: string;
44564
+ calls_used?: number;
44565
+ created_at?: string;
44566
+ domain?: string;
44567
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44568
+ error?: string | null;
44569
+ finished_at?: string | null;
44570
+ id?: string;
44571
+ ok?: boolean;
44572
+ records?: number;
44573
+ started_at?: string;
44574
+ };
44575
+ Relationships: [];
44576
+ };
44577
+ exact_auth_sync_state: {
44578
+ Row: {
44579
+ account_key: string;
44580
+ created_at: string;
44581
+ cursor_timestamp: number;
44582
+ division_code: number | null;
44583
+ domain: string;
44584
+ duration_ms: number | null;
44585
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44586
+ initial_sync_done: boolean;
44587
+ last_error: string | null;
44588
+ last_run_at: string | null;
44589
+ last_success_at: string | null;
44590
+ locked_at: string | null;
44591
+ needs_initial_sync: boolean;
44592
+ record_count: number;
44593
+ updated_at: string;
44594
+ };
44595
+ Insert: {
44596
+ account_key?: string;
44597
+ created_at?: string;
44598
+ cursor_timestamp?: number;
44599
+ division_code?: number | null;
44600
+ domain: string;
44601
+ duration_ms?: number | null;
44602
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44603
+ initial_sync_done?: boolean;
44604
+ last_error?: string | null;
44605
+ last_run_at?: string | null;
44606
+ last_success_at?: string | null;
44607
+ locked_at?: string | null;
44608
+ needs_initial_sync?: boolean;
44609
+ record_count?: number;
44610
+ updated_at?: string;
44611
+ };
44612
+ Update: {
44613
+ account_key?: string;
44614
+ created_at?: string;
44615
+ cursor_timestamp?: number;
44616
+ division_code?: number | null;
44617
+ domain?: string;
44618
+ duration_ms?: number | null;
44619
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44620
+ initial_sync_done?: boolean;
44621
+ last_error?: string | null;
44622
+ last_run_at?: string | null;
44623
+ last_success_at?: string | null;
44624
+ locked_at?: string | null;
44625
+ needs_initial_sync?: boolean;
44626
+ record_count?: number;
44627
+ updated_at?: string;
44628
+ };
44629
+ Relationships: [];
44630
+ };
43107
44631
  exact_bulk_operation_items: {
43108
44632
  Row: {
43109
44633
  attempts: number;
@@ -57496,6 +59020,21 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
57496
59020
  Args: never;
57497
59021
  Returns: string;
57498
59022
  };
59023
+ exact_auth_consume_calls: {
59024
+ Args: {
59025
+ _account_key: string;
59026
+ _calls?: number;
59027
+ _day_limit?: number;
59028
+ _division_code: number;
59029
+ _environment: string;
59030
+ _minute_limit?: number;
59031
+ };
59032
+ Returns: import("../integrations/supabase/types").Json;
59033
+ };
59034
+ exact_auth_prune_sync_log: {
59035
+ Args: never;
59036
+ Returns: undefined;
59037
+ };
57499
59038
  exact_decrypt: {
57500
59039
  Args: {
57501
59040
  cipher: string;
@@ -59444,7 +60983,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
59444
60983
  signup_mail_purpose?: string;
59445
60984
  transport_register_days_before?: number;
59446
60985
  updated_at?: string;
59447
- user_id?: string;
60986
+ user_id
60987
+ /**
60988
+ * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
60989
+ * `done` waar is en schakelt dan door naar de volgende fase.
60990
+ */
60991
+ ?: string;
59448
60992
  };
59449
60993
  Relationships: [];
59450
60994
  };
@@ -59464,15 +61008,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
59464
61008
  };
59465
61009
  Insert: {
59466
61010
  account_email?: string | null;
59467
- created_at
59468
- /**
59469
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
59470
- * de volledige keten (inclusief load.compose) aanmaakt.
59471
- */
59472
- ? /**
59473
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
59474
- * de volledige keten (inclusief load.compose) aanmaakt.
59475
- */: string;
61011
+ created_at?: string;
59476
61012
  id?: string;
59477
61013
  last_error?: string | null;
59478
61014
  last_synced_at?: string | null;
@@ -61259,6 +62795,39 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
61259
62795
  referencedColumns: ["id"];
61260
62796
  }];
61261
62797
  };
62798
+ customer_notes: {
62799
+ Row: {
62800
+ created_at: string;
62801
+ customer_id: string | null;
62802
+ group_key: string | null;
62803
+ id: string;
62804
+ notes: string | null;
62805
+ updated_at: string;
62806
+ };
62807
+ Insert: {
62808
+ created_at?: string;
62809
+ customer_id?: string | null;
62810
+ group_key?: string | null;
62811
+ id?: string;
62812
+ notes?: string | null;
62813
+ updated_at?: string;
62814
+ };
62815
+ Update: {
62816
+ created_at?: string;
62817
+ customer_id?: string | null;
62818
+ group_key?: string | null;
62819
+ id?: string;
62820
+ notes?: string | null;
62821
+ updated_at?: string;
62822
+ };
62823
+ Relationships: [{
62824
+ foreignKeyName: "customer_notes_customer_id_fkey";
62825
+ columns: ["customer_id"];
62826
+ isOneToOne: true;
62827
+ referencedRelation: "customers";
62828
+ referencedColumns: ["id"];
62829
+ }];
62830
+ };
61262
62831
  customer_price_group_members: {
61263
62832
  Row: {
61264
62833
  created_at: string;
@@ -62903,6 +64472,474 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
62903
64472
  referencedColumns: ["id"];
62904
64473
  }];
62905
64474
  };
64475
+ exact_auth_call_budget: {
64476
+ Row: {
64477
+ account_key: string;
64478
+ day_count: number;
64479
+ day_date: string;
64480
+ division_code: number;
64481
+ environment: string;
64482
+ minute_count: number;
64483
+ minute_window: string;
64484
+ updated_at: string;
64485
+ };
64486
+ Insert: {
64487
+ account_key?: string;
64488
+ day_count?: number;
64489
+ day_date?: string;
64490
+ division_code?: number;
64491
+ environment: string;
64492
+ minute_count?: number;
64493
+ minute_window?: string;
64494
+ updated_at?: string;
64495
+ };
64496
+ Update: {
64497
+ account_key?: string;
64498
+ day_count?: number;
64499
+ day_date?: string;
64500
+ division_code?: number;
64501
+ environment?: string;
64502
+ minute_count?: number;
64503
+ minute_window?: string;
64504
+ updated_at?: string;
64505
+ };
64506
+ Relationships: [];
64507
+ };
64508
+ exact_auth_customers: {
64509
+ Row: {
64510
+ account_key: string;
64511
+ address_line1: string | null;
64512
+ chamber_of_commerce: string | null;
64513
+ city: string | null;
64514
+ code: string | null;
64515
+ country: string | null;
64516
+ created_at: string;
64517
+ currency: string | null;
64518
+ division_code: number | null;
64519
+ email: string | null;
64520
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64521
+ exact_id: string;
64522
+ exact_modified: string | null;
64523
+ exact_timestamp: number | null;
64524
+ id: string;
64525
+ is_active: boolean;
64526
+ name: string | null;
64527
+ phone: string | null;
64528
+ postcode: string | null;
64529
+ raw: import("../integrations/supabase/types").Json | null;
64530
+ status: string | null;
64531
+ updated_at: string;
64532
+ vat_number: string | null;
64533
+ website: string | null;
64534
+ };
64535
+ Insert: {
64536
+ account_key?: string;
64537
+ address_line1?: string | null;
64538
+ chamber_of_commerce?: string | null;
64539
+ city?: string | null;
64540
+ code?: string | null;
64541
+ country?: string | null;
64542
+ created_at?: string;
64543
+ currency?: string | null;
64544
+ division_code?: number | null;
64545
+ email?: string | null;
64546
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64547
+ exact_id: string;
64548
+ exact_modified?: string | null;
64549
+ exact_timestamp?: number | null;
64550
+ id?: string;
64551
+ is_active?: boolean;
64552
+ name?: string | null;
64553
+ phone?: string | null;
64554
+ postcode?: string | null;
64555
+ raw?: import("../integrations/supabase/types").Json | null;
64556
+ status?: string | null;
64557
+ updated_at?: string;
64558
+ vat_number?: string | null;
64559
+ website?: string | null;
64560
+ };
64561
+ Update: {
64562
+ account_key?: string;
64563
+ address_line1?: string | null;
64564
+ chamber_of_commerce?: string | null;
64565
+ city?: string | null;
64566
+ code?: string | null;
64567
+ country?: string | null;
64568
+ created_at?: string;
64569
+ currency?: string | null;
64570
+ division_code?: number | null;
64571
+ email?: string | null;
64572
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64573
+ exact_id?: string;
64574
+ exact_modified?: string | null;
64575
+ exact_timestamp?: number | null;
64576
+ id?: string;
64577
+ is_active?: boolean;
64578
+ name?: string | null;
64579
+ phone?: string | null;
64580
+ postcode?: string | null;
64581
+ raw?: import("../integrations/supabase/types").Json | null;
64582
+ status?: string | null;
64583
+ updated_at?: string;
64584
+ vat_number?: string | null;
64585
+ website?: string | null;
64586
+ };
64587
+ Relationships: [];
64588
+ };
64589
+ exact_auth_divisions: {
64590
+ Row: {
64591
+ account_key: string;
64592
+ company_name: string | null;
64593
+ created_at: string;
64594
+ division_code: number | null;
64595
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64596
+ id: string;
64597
+ last_synced_at: string | null;
64598
+ updated_at: string;
64599
+ };
64600
+ Insert: {
64601
+ account_key?: string;
64602
+ company_name?: string | null;
64603
+ created_at?: string;
64604
+ division_code?: number | null;
64605
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64606
+ id?: string;
64607
+ last_synced_at?: string | null;
64608
+ updated_at?: string;
64609
+ };
64610
+ Update: {
64611
+ account_key?: string;
64612
+ company_name?: string | null;
64613
+ created_at?: string;
64614
+ division_code?: number | null;
64615
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64616
+ id?: string;
64617
+ last_synced_at?: string | null;
64618
+ updated_at?: string;
64619
+ };
64620
+ Relationships: [];
64621
+ };
64622
+ exact_auth_invoice_lines: {
64623
+ Row: {
64624
+ account_key: string;
64625
+ amount_excl: number | null;
64626
+ created_at: string;
64627
+ description: string | null;
64628
+ discount: number | null;
64629
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64630
+ exact_id: string;
64631
+ exact_timestamp: number | null;
64632
+ id: string;
64633
+ invoice_exact_id: string;
64634
+ item_code: string | null;
64635
+ item_exact_id: string | null;
64636
+ line_number: number | null;
64637
+ quantity: number | null;
64638
+ raw: import("../integrations/supabase/types").Json | null;
64639
+ unit_price: number | null;
64640
+ updated_at: string;
64641
+ vat_amount: number | null;
64642
+ vat_code: string | null;
64643
+ };
64644
+ Insert: {
64645
+ account_key?: string;
64646
+ amount_excl?: number | null;
64647
+ created_at?: string;
64648
+ description?: string | null;
64649
+ discount?: number | null;
64650
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64651
+ exact_id: string;
64652
+ exact_timestamp?: number | null;
64653
+ id?: string;
64654
+ invoice_exact_id: string;
64655
+ item_code?: string | null;
64656
+ item_exact_id?: string | null;
64657
+ line_number?: number | null;
64658
+ quantity?: number | null;
64659
+ raw?: import("../integrations/supabase/types").Json | null;
64660
+ unit_price?: number | null;
64661
+ updated_at?: string;
64662
+ vat_amount?: number | null;
64663
+ vat_code?: string | null;
64664
+ };
64665
+ Update: {
64666
+ account_key?: string;
64667
+ amount_excl?: number | null;
64668
+ created_at?: string;
64669
+ description?: string | null;
64670
+ discount?: number | null;
64671
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64672
+ exact_id?: string;
64673
+ exact_timestamp?: number | null;
64674
+ id?: string;
64675
+ invoice_exact_id?: string;
64676
+ item_code?: string | null;
64677
+ item_exact_id?: string | null;
64678
+ line_number?: number | null;
64679
+ quantity?: number | null;
64680
+ raw?: import("../integrations/supabase/types").Json | null;
64681
+ unit_price?: number | null;
64682
+ updated_at?: string;
64683
+ vat_amount?: number | null;
64684
+ vat_code?: string | null;
64685
+ };
64686
+ Relationships: [];
64687
+ };
64688
+ exact_auth_invoices: {
64689
+ Row: {
64690
+ account_key: string;
64691
+ amount_excl: number | null;
64692
+ amount_incl: number | null;
64693
+ amount_open: number | null;
64694
+ created_at: string;
64695
+ currency: string | null;
64696
+ customer_code: string | null;
64697
+ customer_exact_id: string | null;
64698
+ customer_name: string | null;
64699
+ description: string | null;
64700
+ division_code: number | null;
64701
+ due_date: string | null;
64702
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64703
+ exact_id: string;
64704
+ exact_modified: string | null;
64705
+ exact_timestamp: number | null;
64706
+ id: string;
64707
+ invoice_date: string | null;
64708
+ invoice_number: string | null;
64709
+ order_number: string | null;
64710
+ paid_at: string | null;
64711
+ payment_status: string;
64712
+ raw: import("../integrations/supabase/types").Json | null;
64713
+ receivable_synced_at: string | null;
64714
+ status_code: number | null;
64715
+ updated_at: string;
64716
+ };
64717
+ Insert: {
64718
+ account_key?: string;
64719
+ amount_excl?: number | null;
64720
+ amount_incl?: number | null;
64721
+ amount_open?: number | null;
64722
+ created_at?: string;
64723
+ currency?: string | null;
64724
+ customer_code?: string | null;
64725
+ customer_exact_id?: string | null;
64726
+ customer_name?: string | null;
64727
+ description?: string | null;
64728
+ division_code?: number | null;
64729
+ due_date?: string | null;
64730
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64731
+ exact_id: string;
64732
+ exact_modified?: string | null;
64733
+ exact_timestamp?: number | null;
64734
+ id?: string;
64735
+ invoice_date?: string | null;
64736
+ invoice_number?: string | null;
64737
+ order_number?: string | null;
64738
+ paid_at?: string | null;
64739
+ payment_status?: string;
64740
+ raw?: import("../integrations/supabase/types").Json | null;
64741
+ receivable_synced_at?: string | null;
64742
+ status_code?: number | null;
64743
+ updated_at?: string;
64744
+ };
64745
+ Update: {
64746
+ account_key?: string;
64747
+ amount_excl?: number | null;
64748
+ amount_incl?: number | null;
64749
+ amount_open?: number | null;
64750
+ created_at?: string;
64751
+ currency?: string | null;
64752
+ customer_code?: string | null;
64753
+ customer_exact_id?: string | null;
64754
+ customer_name?: string | null;
64755
+ description?: string | null;
64756
+ division_code?: number | null;
64757
+ due_date?: string | null;
64758
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64759
+ exact_id?: string;
64760
+ exact_modified?: string | null;
64761
+ exact_timestamp?: number | null;
64762
+ id?: string;
64763
+ invoice_date?: string | null;
64764
+ invoice_number?: string | null;
64765
+ order_number?: string | null;
64766
+ paid_at?: string | null;
64767
+ payment_status?: string;
64768
+ raw?: import("../integrations/supabase/types").Json | null;
64769
+ receivable_synced_at?: string | null;
64770
+ status_code?: number | null;
64771
+ updated_at?: string;
64772
+ };
64773
+ Relationships: [];
64774
+ };
64775
+ exact_auth_items: {
64776
+ Row: {
64777
+ account_key: string;
64778
+ barcode: string | null;
64779
+ code: string | null;
64780
+ cost_price: number | null;
64781
+ created_at: string;
64782
+ description: string | null;
64783
+ division_code: number | null;
64784
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64785
+ exact_id: string;
64786
+ exact_modified: string | null;
64787
+ exact_timestamp: number | null;
64788
+ gl_account_code: string | null;
64789
+ id: string;
64790
+ is_active: boolean;
64791
+ is_sales_item: boolean | null;
64792
+ item_type: string | null;
64793
+ raw: import("../integrations/supabase/types").Json | null;
64794
+ sales_price: number | null;
64795
+ unit: string | null;
64796
+ updated_at: string;
64797
+ vat_code: string | null;
64798
+ };
64799
+ Insert: {
64800
+ account_key?: string;
64801
+ barcode?: string | null;
64802
+ code?: string | null;
64803
+ cost_price?: number | null;
64804
+ created_at?: string;
64805
+ description?: string | null;
64806
+ division_code?: number | null;
64807
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64808
+ exact_id: string;
64809
+ exact_modified?: string | null;
64810
+ exact_timestamp?: number | null;
64811
+ gl_account_code?: string | null;
64812
+ id?: string;
64813
+ is_active?: boolean;
64814
+ is_sales_item?: boolean | null;
64815
+ item_type?: string | null;
64816
+ raw?: import("../integrations/supabase/types").Json | null;
64817
+ sales_price?: number | null;
64818
+ unit?: string | null;
64819
+ updated_at?: string;
64820
+ vat_code?: string | null;
64821
+ };
64822
+ Update: {
64823
+ account_key?: string;
64824
+ barcode?: string | null;
64825
+ code?: string | null;
64826
+ cost_price?: number | null;
64827
+ created_at?: string;
64828
+ description?: string | null;
64829
+ division_code?: number | null;
64830
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64831
+ exact_id?: string;
64832
+ exact_modified?: string | null;
64833
+ exact_timestamp?: number | null;
64834
+ gl_account_code?: string | null;
64835
+ id?: string;
64836
+ is_active?: boolean;
64837
+ is_sales_item?: boolean | null;
64838
+ item_type?: string | null;
64839
+ raw?: import("../integrations/supabase/types").Json | null;
64840
+ sales_price?: number | null;
64841
+ unit?: string | null;
64842
+ updated_at?: string;
64843
+ vat_code?: string | null;
64844
+ };
64845
+ Relationships: [];
64846
+ };
64847
+ exact_auth_sync_log: {
64848
+ Row: {
64849
+ account_key: string;
64850
+ calls_used: number;
64851
+ created_at: string;
64852
+ domain: string;
64853
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64854
+ error: string | null;
64855
+ finished_at: string | null;
64856
+ id: string;
64857
+ ok: boolean;
64858
+ records: number;
64859
+ started_at: string;
64860
+ };
64861
+ Insert: {
64862
+ account_key?: string;
64863
+ calls_used?: number;
64864
+ created_at?: string;
64865
+ domain: string;
64866
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64867
+ error?: string | null;
64868
+ finished_at?: string | null;
64869
+ id?: string;
64870
+ ok?: boolean;
64871
+ records?: number;
64872
+ started_at?: string;
64873
+ };
64874
+ Update: {
64875
+ account_key?: string;
64876
+ calls_used?: number;
64877
+ created_at?: string;
64878
+ domain?: string;
64879
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64880
+ error?: string | null;
64881
+ finished_at?: string | null;
64882
+ id?: string;
64883
+ ok?: boolean;
64884
+ records?: number;
64885
+ started_at?: string;
64886
+ };
64887
+ Relationships: [];
64888
+ };
64889
+ exact_auth_sync_state: {
64890
+ Row: {
64891
+ account_key: string;
64892
+ created_at: string;
64893
+ cursor_timestamp: number;
64894
+ division_code: number | null;
64895
+ domain: string;
64896
+ duration_ms: number | null;
64897
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64898
+ initial_sync_done: boolean;
64899
+ last_error: string | null;
64900
+ last_run_at: string | null;
64901
+ last_success_at: string | null;
64902
+ locked_at: string | null;
64903
+ needs_initial_sync: boolean;
64904
+ record_count: number;
64905
+ updated_at: string;
64906
+ };
64907
+ Insert: {
64908
+ account_key?: string;
64909
+ created_at?: string;
64910
+ cursor_timestamp?: number;
64911
+ division_code?: number | null;
64912
+ domain: string;
64913
+ duration_ms?: number | null;
64914
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64915
+ initial_sync_done?: boolean;
64916
+ last_error?: string | null;
64917
+ last_run_at?: string | null;
64918
+ last_success_at?: string | null;
64919
+ locked_at?: string | null;
64920
+ needs_initial_sync?: boolean;
64921
+ record_count?: number;
64922
+ updated_at?: string;
64923
+ };
64924
+ Update: {
64925
+ account_key?: string;
64926
+ created_at?: string;
64927
+ cursor_timestamp?: number;
64928
+ division_code?: number | null;
64929
+ domain?: string;
64930
+ duration_ms?: number | null;
64931
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
64932
+ initial_sync_done?: boolean;
64933
+ last_error?: string | null;
64934
+ last_run_at?: string | null;
64935
+ last_success_at?: string | null;
64936
+ locked_at?: string | null;
64937
+ needs_initial_sync?: boolean;
64938
+ record_count?: number;
64939
+ updated_at?: string;
64940
+ };
64941
+ Relationships: [];
64942
+ };
62906
64943
  exact_bulk_operation_items: {
62907
64944
  Row: {
62908
64945
  attempts: number;
@@ -77295,6 +79332,21 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
77295
79332
  Args: never;
77296
79333
  Returns: string;
77297
79334
  };
79335
+ exact_auth_consume_calls: {
79336
+ Args: {
79337
+ _account_key: string;
79338
+ _calls?: number;
79339
+ _day_limit?: number;
79340
+ _division_code: number;
79341
+ _environment: string;
79342
+ _minute_limit?: number;
79343
+ };
79344
+ Returns: import("../integrations/supabase/types").Json;
79345
+ };
79346
+ exact_auth_prune_sync_log: {
79347
+ Args: never;
79348
+ Returns: undefined;
79349
+ };
77298
79350
  exact_decrypt: {
77299
79351
  Args: {
77300
79352
  cipher: string;
@@ -79241,7 +81293,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
79241
81293
  signup_mail_purpose?: string;
79242
81294
  transport_register_days_before?: number;
79243
81295
  updated_at?: string;
79244
- user_id?: string;
81296
+ user_id
81297
+ /**
81298
+ * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
81299
+ * `done` waar is en schakelt dan door naar de volgende fase.
81300
+ */
81301
+ ?: string;
79245
81302
  };
79246
81303
  Relationships: [];
79247
81304
  };
@@ -79261,15 +81318,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
79261
81318
  };
79262
81319
  Insert: {
79263
81320
  account_email?: string | null;
79264
- created_at
79265
- /**
79266
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
79267
- * de volledige keten (inclusief load.compose) aanmaakt.
79268
- */
79269
- ? /**
79270
- * Zet voor orders zonder takenketen alsnog een melding klaar, zodat de Engine
79271
- * de volledige keten (inclusief load.compose) aanmaakt.
79272
- */: string;
81321
+ created_at?: string;
79273
81322
  id?: string;
79274
81323
  last_error?: string | null;
79275
81324
  last_synced_at?: string | null;
@@ -81056,6 +83105,39 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
81056
83105
  referencedColumns: ["id"];
81057
83106
  }];
81058
83107
  };
83108
+ customer_notes: {
83109
+ Row: {
83110
+ created_at: string;
83111
+ customer_id: string | null;
83112
+ group_key: string | null;
83113
+ id: string;
83114
+ notes: string | null;
83115
+ updated_at: string;
83116
+ };
83117
+ Insert: {
83118
+ created_at?: string;
83119
+ customer_id?: string | null;
83120
+ group_key?: string | null;
83121
+ id?: string;
83122
+ notes?: string | null;
83123
+ updated_at?: string;
83124
+ };
83125
+ Update: {
83126
+ created_at?: string;
83127
+ customer_id?: string | null;
83128
+ group_key?: string | null;
83129
+ id?: string;
83130
+ notes?: string | null;
83131
+ updated_at?: string;
83132
+ };
83133
+ Relationships: [{
83134
+ foreignKeyName: "customer_notes_customer_id_fkey";
83135
+ columns: ["customer_id"];
83136
+ isOneToOne: true;
83137
+ referencedRelation: "customers";
83138
+ referencedColumns: ["id"];
83139
+ }];
83140
+ };
81059
83141
  customer_price_group_members: {
81060
83142
  Row: {
81061
83143
  created_at: string;
@@ -82700,6 +84782,474 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
82700
84782
  referencedColumns: ["id"];
82701
84783
  }];
82702
84784
  };
84785
+ exact_auth_call_budget: {
84786
+ Row: {
84787
+ account_key: string;
84788
+ day_count: number;
84789
+ day_date: string;
84790
+ division_code: number;
84791
+ environment: string;
84792
+ minute_count: number;
84793
+ minute_window: string;
84794
+ updated_at: string;
84795
+ };
84796
+ Insert: {
84797
+ account_key?: string;
84798
+ day_count?: number;
84799
+ day_date?: string;
84800
+ division_code?: number;
84801
+ environment: string;
84802
+ minute_count?: number;
84803
+ minute_window?: string;
84804
+ updated_at?: string;
84805
+ };
84806
+ Update: {
84807
+ account_key?: string;
84808
+ day_count?: number;
84809
+ day_date?: string;
84810
+ division_code?: number;
84811
+ environment?: string;
84812
+ minute_count?: number;
84813
+ minute_window?: string;
84814
+ updated_at?: string;
84815
+ };
84816
+ Relationships: [];
84817
+ };
84818
+ exact_auth_customers: {
84819
+ Row: {
84820
+ account_key: string;
84821
+ address_line1: string | null;
84822
+ chamber_of_commerce: string | null;
84823
+ city: string | null;
84824
+ code: string | null;
84825
+ country: string | null;
84826
+ created_at: string;
84827
+ currency: string | null;
84828
+ division_code: number | null;
84829
+ email: string | null;
84830
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84831
+ exact_id: string;
84832
+ exact_modified: string | null;
84833
+ exact_timestamp: number | null;
84834
+ id: string;
84835
+ is_active: boolean;
84836
+ name: string | null;
84837
+ phone: string | null;
84838
+ postcode: string | null;
84839
+ raw: import("../integrations/supabase/types").Json | null;
84840
+ status: string | null;
84841
+ updated_at: string;
84842
+ vat_number: string | null;
84843
+ website: string | null;
84844
+ };
84845
+ Insert: {
84846
+ account_key?: string;
84847
+ address_line1?: string | null;
84848
+ chamber_of_commerce?: string | null;
84849
+ city?: string | null;
84850
+ code?: string | null;
84851
+ country?: string | null;
84852
+ created_at?: string;
84853
+ currency?: string | null;
84854
+ division_code?: number | null;
84855
+ email?: string | null;
84856
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84857
+ exact_id: string;
84858
+ exact_modified?: string | null;
84859
+ exact_timestamp?: number | null;
84860
+ id?: string;
84861
+ is_active?: boolean;
84862
+ name?: string | null;
84863
+ phone?: string | null;
84864
+ postcode?: string | null;
84865
+ raw?: import("../integrations/supabase/types").Json | null;
84866
+ status?: string | null;
84867
+ updated_at?: string;
84868
+ vat_number?: string | null;
84869
+ website?: string | null;
84870
+ };
84871
+ Update: {
84872
+ account_key?: string;
84873
+ address_line1?: string | null;
84874
+ chamber_of_commerce?: string | null;
84875
+ city?: string | null;
84876
+ code?: string | null;
84877
+ country?: string | null;
84878
+ created_at?: string;
84879
+ currency?: string | null;
84880
+ division_code?: number | null;
84881
+ email?: string | null;
84882
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84883
+ exact_id?: string;
84884
+ exact_modified?: string | null;
84885
+ exact_timestamp?: number | null;
84886
+ id?: string;
84887
+ is_active?: boolean;
84888
+ name?: string | null;
84889
+ phone?: string | null;
84890
+ postcode?: string | null;
84891
+ raw?: import("../integrations/supabase/types").Json | null;
84892
+ status?: string | null;
84893
+ updated_at?: string;
84894
+ vat_number?: string | null;
84895
+ website?: string | null;
84896
+ };
84897
+ Relationships: [];
84898
+ };
84899
+ exact_auth_divisions: {
84900
+ Row: {
84901
+ account_key: string;
84902
+ company_name: string | null;
84903
+ created_at: string;
84904
+ division_code: number | null;
84905
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84906
+ id: string;
84907
+ last_synced_at: string | null;
84908
+ updated_at: string;
84909
+ };
84910
+ Insert: {
84911
+ account_key?: string;
84912
+ company_name?: string | null;
84913
+ created_at?: string;
84914
+ division_code?: number | null;
84915
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84916
+ id?: string;
84917
+ last_synced_at?: string | null;
84918
+ updated_at?: string;
84919
+ };
84920
+ Update: {
84921
+ account_key?: string;
84922
+ company_name?: string | null;
84923
+ created_at?: string;
84924
+ division_code?: number | null;
84925
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84926
+ id?: string;
84927
+ last_synced_at?: string | null;
84928
+ updated_at?: string;
84929
+ };
84930
+ Relationships: [];
84931
+ };
84932
+ exact_auth_invoice_lines: {
84933
+ Row: {
84934
+ account_key: string;
84935
+ amount_excl: number | null;
84936
+ created_at: string;
84937
+ description: string | null;
84938
+ discount: number | null;
84939
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84940
+ exact_id: string;
84941
+ exact_timestamp: number | null;
84942
+ id: string;
84943
+ invoice_exact_id: string;
84944
+ item_code: string | null;
84945
+ item_exact_id: string | null;
84946
+ line_number: number | null;
84947
+ quantity: number | null;
84948
+ raw: import("../integrations/supabase/types").Json | null;
84949
+ unit_price: number | null;
84950
+ updated_at: string;
84951
+ vat_amount: number | null;
84952
+ vat_code: string | null;
84953
+ };
84954
+ Insert: {
84955
+ account_key?: string;
84956
+ amount_excl?: number | null;
84957
+ created_at?: string;
84958
+ description?: string | null;
84959
+ discount?: number | null;
84960
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84961
+ exact_id: string;
84962
+ exact_timestamp?: number | null;
84963
+ id?: string;
84964
+ invoice_exact_id: string;
84965
+ item_code?: string | null;
84966
+ item_exact_id?: string | null;
84967
+ line_number?: number | null;
84968
+ quantity?: number | null;
84969
+ raw?: import("../integrations/supabase/types").Json | null;
84970
+ unit_price?: number | null;
84971
+ updated_at?: string;
84972
+ vat_amount?: number | null;
84973
+ vat_code?: string | null;
84974
+ };
84975
+ Update: {
84976
+ account_key?: string;
84977
+ amount_excl?: number | null;
84978
+ created_at?: string;
84979
+ description?: string | null;
84980
+ discount?: number | null;
84981
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
84982
+ exact_id?: string;
84983
+ exact_timestamp?: number | null;
84984
+ id?: string;
84985
+ invoice_exact_id?: string;
84986
+ item_code?: string | null;
84987
+ item_exact_id?: string | null;
84988
+ line_number?: number | null;
84989
+ quantity?: number | null;
84990
+ raw?: import("../integrations/supabase/types").Json | null;
84991
+ unit_price?: number | null;
84992
+ updated_at?: string;
84993
+ vat_amount?: number | null;
84994
+ vat_code?: string | null;
84995
+ };
84996
+ Relationships: [];
84997
+ };
84998
+ exact_auth_invoices: {
84999
+ Row: {
85000
+ account_key: string;
85001
+ amount_excl: number | null;
85002
+ amount_incl: number | null;
85003
+ amount_open: number | null;
85004
+ created_at: string;
85005
+ currency: string | null;
85006
+ customer_code: string | null;
85007
+ customer_exact_id: string | null;
85008
+ customer_name: string | null;
85009
+ description: string | null;
85010
+ division_code: number | null;
85011
+ due_date: string | null;
85012
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85013
+ exact_id: string;
85014
+ exact_modified: string | null;
85015
+ exact_timestamp: number | null;
85016
+ id: string;
85017
+ invoice_date: string | null;
85018
+ invoice_number: string | null;
85019
+ order_number: string | null;
85020
+ paid_at: string | null;
85021
+ payment_status: string;
85022
+ raw: import("../integrations/supabase/types").Json | null;
85023
+ receivable_synced_at: string | null;
85024
+ status_code: number | null;
85025
+ updated_at: string;
85026
+ };
85027
+ Insert: {
85028
+ account_key?: string;
85029
+ amount_excl?: number | null;
85030
+ amount_incl?: number | null;
85031
+ amount_open?: number | null;
85032
+ created_at?: string;
85033
+ currency?: string | null;
85034
+ customer_code?: string | null;
85035
+ customer_exact_id?: string | null;
85036
+ customer_name?: string | null;
85037
+ description?: string | null;
85038
+ division_code?: number | null;
85039
+ due_date?: string | null;
85040
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85041
+ exact_id: string;
85042
+ exact_modified?: string | null;
85043
+ exact_timestamp?: number | null;
85044
+ id?: string;
85045
+ invoice_date?: string | null;
85046
+ invoice_number?: string | null;
85047
+ order_number?: string | null;
85048
+ paid_at?: string | null;
85049
+ payment_status?: string;
85050
+ raw?: import("../integrations/supabase/types").Json | null;
85051
+ receivable_synced_at?: string | null;
85052
+ status_code?: number | null;
85053
+ updated_at?: string;
85054
+ };
85055
+ Update: {
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
+ Relationships: [];
85084
+ };
85085
+ exact_auth_items: {
85086
+ Row: {
85087
+ account_key: string;
85088
+ barcode: string | null;
85089
+ code: string | null;
85090
+ cost_price: number | null;
85091
+ created_at: string;
85092
+ description: string | null;
85093
+ division_code: number | null;
85094
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85095
+ exact_id: string;
85096
+ exact_modified: string | null;
85097
+ exact_timestamp: number | null;
85098
+ gl_account_code: string | null;
85099
+ id: string;
85100
+ is_active: boolean;
85101
+ is_sales_item: boolean | null;
85102
+ item_type: string | null;
85103
+ raw: import("../integrations/supabase/types").Json | null;
85104
+ sales_price: number | null;
85105
+ unit: string | null;
85106
+ updated_at: string;
85107
+ vat_code: string | null;
85108
+ };
85109
+ Insert: {
85110
+ account_key?: string;
85111
+ barcode?: string | null;
85112
+ code?: string | null;
85113
+ cost_price?: number | null;
85114
+ created_at?: string;
85115
+ description?: string | null;
85116
+ division_code?: number | null;
85117
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85118
+ exact_id: string;
85119
+ exact_modified?: string | null;
85120
+ exact_timestamp?: number | null;
85121
+ gl_account_code?: string | null;
85122
+ id?: string;
85123
+ is_active?: boolean;
85124
+ is_sales_item?: boolean | null;
85125
+ item_type?: string | null;
85126
+ raw?: import("../integrations/supabase/types").Json | null;
85127
+ sales_price?: number | null;
85128
+ unit?: string | null;
85129
+ updated_at?: string;
85130
+ vat_code?: string | null;
85131
+ };
85132
+ Update: {
85133
+ account_key?: string;
85134
+ barcode?: string | null;
85135
+ code?: string | null;
85136
+ cost_price?: number | null;
85137
+ created_at?: string;
85138
+ description?: string | null;
85139
+ division_code?: number | null;
85140
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85141
+ exact_id?: string;
85142
+ exact_modified?: string | null;
85143
+ exact_timestamp?: number | null;
85144
+ gl_account_code?: string | null;
85145
+ id?: string;
85146
+ is_active?: boolean;
85147
+ is_sales_item?: boolean | null;
85148
+ item_type?: string | null;
85149
+ raw?: import("../integrations/supabase/types").Json | null;
85150
+ sales_price?: number | null;
85151
+ unit?: string | null;
85152
+ updated_at?: string;
85153
+ vat_code?: string | null;
85154
+ };
85155
+ Relationships: [];
85156
+ };
85157
+ exact_auth_sync_log: {
85158
+ Row: {
85159
+ account_key: string;
85160
+ calls_used: number;
85161
+ created_at: string;
85162
+ domain: string;
85163
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85164
+ error: string | null;
85165
+ finished_at: string | null;
85166
+ id: string;
85167
+ ok: boolean;
85168
+ records: number;
85169
+ started_at: string;
85170
+ };
85171
+ Insert: {
85172
+ account_key?: string;
85173
+ calls_used?: number;
85174
+ created_at?: string;
85175
+ domain: string;
85176
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85177
+ error?: string | null;
85178
+ finished_at?: string | null;
85179
+ id?: string;
85180
+ ok?: boolean;
85181
+ records?: number;
85182
+ started_at?: string;
85183
+ };
85184
+ Update: {
85185
+ account_key?: string;
85186
+ calls_used?: number;
85187
+ created_at?: string;
85188
+ domain?: string;
85189
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85190
+ error?: string | null;
85191
+ finished_at?: string | null;
85192
+ id?: string;
85193
+ ok?: boolean;
85194
+ records?: number;
85195
+ started_at?: string;
85196
+ };
85197
+ Relationships: [];
85198
+ };
85199
+ exact_auth_sync_state: {
85200
+ Row: {
85201
+ account_key: string;
85202
+ created_at: string;
85203
+ cursor_timestamp: number;
85204
+ division_code: number | null;
85205
+ domain: string;
85206
+ duration_ms: number | null;
85207
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85208
+ initial_sync_done: boolean;
85209
+ last_error: string | null;
85210
+ last_run_at: string | null;
85211
+ last_success_at: string | null;
85212
+ locked_at: string | null;
85213
+ needs_initial_sync: boolean;
85214
+ record_count: number;
85215
+ updated_at: string;
85216
+ };
85217
+ Insert: {
85218
+ account_key?: string;
85219
+ created_at?: string;
85220
+ cursor_timestamp?: number;
85221
+ division_code?: number | null;
85222
+ domain: string;
85223
+ duration_ms?: number | null;
85224
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85225
+ initial_sync_done?: boolean;
85226
+ last_error?: string | null;
85227
+ last_run_at?: string | null;
85228
+ last_success_at?: string | null;
85229
+ locked_at?: string | null;
85230
+ needs_initial_sync?: boolean;
85231
+ record_count?: number;
85232
+ updated_at?: string;
85233
+ };
85234
+ Update: {
85235
+ account_key?: string;
85236
+ created_at?: string;
85237
+ cursor_timestamp?: number;
85238
+ division_code?: number | null;
85239
+ domain?: string;
85240
+ duration_ms?: number | null;
85241
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
85242
+ initial_sync_done?: boolean;
85243
+ last_error?: string | null;
85244
+ last_run_at?: string | null;
85245
+ last_success_at?: string | null;
85246
+ locked_at?: string | null;
85247
+ needs_initial_sync?: boolean;
85248
+ record_count?: number;
85249
+ updated_at?: string;
85250
+ };
85251
+ Relationships: [];
85252
+ };
82703
85253
  exact_bulk_operation_items: {
82704
85254
  Row: {
82705
85255
  attempts: number;
@@ -97092,6 +99642,21 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
97092
99642
  Args: never;
97093
99643
  Returns: string;
97094
99644
  };
99645
+ exact_auth_consume_calls: {
99646
+ Args: {
99647
+ _account_key: string;
99648
+ _calls?: number;
99649
+ _day_limit?: number;
99650
+ _division_code: number;
99651
+ _environment: string;
99652
+ _minute_limit?: number;
99653
+ };
99654
+ Returns: import("../integrations/supabase/types").Json;
99655
+ };
99656
+ exact_auth_prune_sync_log: {
99657
+ Args: never;
99658
+ Returns: undefined;
99659
+ };
97095
99660
  exact_decrypt: {
97096
99661
  Args: {
97097
99662
  cipher: string;