@flowselections/logistiek-engine 1.0.2 → 1.0.3

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.
@@ -1858,6 +1858,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
1858
1858
  referencedColumns: ["id"];
1859
1859
  }];
1860
1860
  };
1861
+ customer_notes: {
1862
+ Row: {
1863
+ created_at: string;
1864
+ customer_id: string | null;
1865
+ group_key: string | null;
1866
+ id: string;
1867
+ notes: string | null;
1868
+ updated_at: string;
1869
+ };
1870
+ Insert: {
1871
+ created_at?: string;
1872
+ customer_id?: string | null;
1873
+ group_key?: string | null;
1874
+ id?: string;
1875
+ notes?: string | null;
1876
+ updated_at?: string;
1877
+ };
1878
+ Update: {
1879
+ created_at?: string;
1880
+ customer_id?: string | null;
1881
+ group_key?: string | null;
1882
+ id?: string;
1883
+ notes?: string | null;
1884
+ updated_at?: string;
1885
+ };
1886
+ Relationships: [{
1887
+ foreignKeyName: "customer_notes_customer_id_fkey";
1888
+ columns: ["customer_id"];
1889
+ isOneToOne: true;
1890
+ referencedRelation: "customers";
1891
+ referencedColumns: ["id"];
1892
+ }];
1893
+ };
1861
1894
  customer_price_group_members: {
1862
1895
  Row: {
1863
1896
  created_at: string;
@@ -3502,6 +3535,474 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3502
3535
  referencedColumns: ["id"];
3503
3536
  }];
3504
3537
  };
3538
+ exact_auth_call_budget: {
3539
+ Row: {
3540
+ account_key: string;
3541
+ day_count: number;
3542
+ day_date: string;
3543
+ division_code: number;
3544
+ environment: string;
3545
+ minute_count: number;
3546
+ minute_window: string;
3547
+ updated_at: string;
3548
+ };
3549
+ Insert: {
3550
+ account_key?: string;
3551
+ day_count?: number;
3552
+ day_date?: string;
3553
+ division_code?: number;
3554
+ environment: string;
3555
+ minute_count?: number;
3556
+ minute_window?: string;
3557
+ updated_at?: string;
3558
+ };
3559
+ Update: {
3560
+ account_key?: string;
3561
+ day_count?: number;
3562
+ day_date?: string;
3563
+ division_code?: number;
3564
+ environment?: string;
3565
+ minute_count?: number;
3566
+ minute_window?: string;
3567
+ updated_at?: string;
3568
+ };
3569
+ Relationships: [];
3570
+ };
3571
+ exact_auth_customers: {
3572
+ Row: {
3573
+ account_key: string;
3574
+ address_line1: string | null;
3575
+ chamber_of_commerce: string | null;
3576
+ city: string | null;
3577
+ code: string | null;
3578
+ country: string | null;
3579
+ created_at: string;
3580
+ currency: string | null;
3581
+ division_code: number | null;
3582
+ email: string | null;
3583
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3584
+ exact_id: string;
3585
+ exact_modified: string | null;
3586
+ exact_timestamp: number | null;
3587
+ id: string;
3588
+ is_active: boolean;
3589
+ name: string | null;
3590
+ phone: string | null;
3591
+ postcode: string | null;
3592
+ raw: import("../integrations/supabase/types").Json | null;
3593
+ status: string | null;
3594
+ updated_at: string;
3595
+ vat_number: string | null;
3596
+ website: string | null;
3597
+ };
3598
+ Insert: {
3599
+ account_key?: string;
3600
+ address_line1?: string | null;
3601
+ chamber_of_commerce?: string | null;
3602
+ city?: string | null;
3603
+ code?: string | null;
3604
+ country?: string | null;
3605
+ created_at?: string;
3606
+ currency?: string | null;
3607
+ division_code?: number | null;
3608
+ email?: string | null;
3609
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3610
+ exact_id: string;
3611
+ exact_modified?: string | null;
3612
+ exact_timestamp?: number | null;
3613
+ id?: string;
3614
+ is_active?: boolean;
3615
+ name?: string | null;
3616
+ phone?: string | null;
3617
+ postcode?: string | null;
3618
+ raw?: import("../integrations/supabase/types").Json | null;
3619
+ status?: string | null;
3620
+ updated_at?: string;
3621
+ vat_number?: string | null;
3622
+ website?: string | null;
3623
+ };
3624
+ Update: {
3625
+ account_key?: string;
3626
+ address_line1?: string | null;
3627
+ chamber_of_commerce?: string | null;
3628
+ city?: string | null;
3629
+ code?: string | null;
3630
+ country?: string | null;
3631
+ created_at?: string;
3632
+ currency?: string | null;
3633
+ division_code?: number | null;
3634
+ email?: string | null;
3635
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3636
+ exact_id?: string;
3637
+ exact_modified?: string | null;
3638
+ exact_timestamp?: number | null;
3639
+ id?: string;
3640
+ is_active?: boolean;
3641
+ name?: string | null;
3642
+ phone?: string | null;
3643
+ postcode?: string | null;
3644
+ raw?: import("../integrations/supabase/types").Json | null;
3645
+ status?: string | null;
3646
+ updated_at?: string;
3647
+ vat_number?: string | null;
3648
+ website?: string | null;
3649
+ };
3650
+ Relationships: [];
3651
+ };
3652
+ exact_auth_divisions: {
3653
+ Row: {
3654
+ account_key: string;
3655
+ company_name: string | null;
3656
+ created_at: string;
3657
+ division_code: number | null;
3658
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3659
+ id: string;
3660
+ last_synced_at: string | null;
3661
+ updated_at: string;
3662
+ };
3663
+ Insert: {
3664
+ account_key?: string;
3665
+ company_name?: string | null;
3666
+ created_at?: string;
3667
+ division_code?: number | null;
3668
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3669
+ id?: string;
3670
+ last_synced_at?: string | null;
3671
+ updated_at?: string;
3672
+ };
3673
+ Update: {
3674
+ account_key?: string;
3675
+ company_name?: string | null;
3676
+ created_at?: string;
3677
+ division_code?: number | null;
3678
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3679
+ id?: string;
3680
+ last_synced_at?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Relationships: [];
3684
+ };
3685
+ exact_auth_invoice_lines: {
3686
+ Row: {
3687
+ account_key: string;
3688
+ amount_excl: number | null;
3689
+ created_at: string;
3690
+ description: string | null;
3691
+ discount: number | null;
3692
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3693
+ exact_id: string;
3694
+ exact_timestamp: number | null;
3695
+ id: string;
3696
+ invoice_exact_id: string;
3697
+ item_code: string | null;
3698
+ item_exact_id: string | null;
3699
+ line_number: number | null;
3700
+ quantity: number | null;
3701
+ raw: import("../integrations/supabase/types").Json | null;
3702
+ unit_price: number | null;
3703
+ updated_at: string;
3704
+ vat_amount: number | null;
3705
+ vat_code: string | null;
3706
+ };
3707
+ Insert: {
3708
+ account_key?: string;
3709
+ amount_excl?: number | null;
3710
+ created_at?: string;
3711
+ description?: string | null;
3712
+ discount?: number | null;
3713
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3714
+ exact_id: string;
3715
+ exact_timestamp?: number | null;
3716
+ id?: string;
3717
+ invoice_exact_id: string;
3718
+ item_code?: string | null;
3719
+ item_exact_id?: string | null;
3720
+ line_number?: number | null;
3721
+ quantity?: number | null;
3722
+ raw?: import("../integrations/supabase/types").Json | null;
3723
+ unit_price?: number | null;
3724
+ updated_at?: string;
3725
+ vat_amount?: number | null;
3726
+ vat_code?: string | null;
3727
+ };
3728
+ Update: {
3729
+ account_key?: string;
3730
+ amount_excl?: number | null;
3731
+ created_at?: string;
3732
+ description?: string | null;
3733
+ discount?: number | null;
3734
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3735
+ exact_id?: string;
3736
+ exact_timestamp?: number | null;
3737
+ id?: string;
3738
+ invoice_exact_id?: string;
3739
+ item_code?: string | null;
3740
+ item_exact_id?: string | null;
3741
+ line_number?: number | null;
3742
+ quantity?: number | null;
3743
+ raw?: import("../integrations/supabase/types").Json | null;
3744
+ unit_price?: number | null;
3745
+ updated_at?: string;
3746
+ vat_amount?: number | null;
3747
+ vat_code?: string | null;
3748
+ };
3749
+ Relationships: [];
3750
+ };
3751
+ exact_auth_invoices: {
3752
+ Row: {
3753
+ account_key: string;
3754
+ amount_excl: number | null;
3755
+ amount_incl: number | null;
3756
+ amount_open: number | null;
3757
+ created_at: string;
3758
+ currency: string | null;
3759
+ customer_code: string | null;
3760
+ customer_exact_id: string | null;
3761
+ customer_name: string | null;
3762
+ description: string | null;
3763
+ division_code: number | null;
3764
+ due_date: string | null;
3765
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3766
+ exact_id: string;
3767
+ exact_modified: string | null;
3768
+ exact_timestamp: number | null;
3769
+ id: string;
3770
+ invoice_date: string | null;
3771
+ invoice_number: string | null;
3772
+ order_number: string | null;
3773
+ paid_at: string | null;
3774
+ payment_status: string;
3775
+ raw: import("../integrations/supabase/types").Json | null;
3776
+ receivable_synced_at: string | null;
3777
+ status_code: number | null;
3778
+ updated_at: string;
3779
+ };
3780
+ Insert: {
3781
+ account_key?: string;
3782
+ amount_excl?: number | null;
3783
+ amount_incl?: number | null;
3784
+ amount_open?: number | null;
3785
+ created_at?: string;
3786
+ currency?: string | null;
3787
+ customer_code?: string | null;
3788
+ customer_exact_id?: string | null;
3789
+ customer_name?: string | null;
3790
+ description?: string | null;
3791
+ division_code?: number | null;
3792
+ due_date?: string | null;
3793
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3794
+ exact_id: string;
3795
+ exact_modified?: string | null;
3796
+ exact_timestamp?: number | null;
3797
+ id?: string;
3798
+ invoice_date?: string | null;
3799
+ invoice_number?: string | null;
3800
+ order_number?: string | null;
3801
+ paid_at?: string | null;
3802
+ payment_status?: string;
3803
+ raw?: import("../integrations/supabase/types").Json | null;
3804
+ receivable_synced_at?: string | null;
3805
+ status_code?: number | null;
3806
+ updated_at?: string;
3807
+ };
3808
+ Update: {
3809
+ account_key?: string;
3810
+ amount_excl?: number | null;
3811
+ amount_incl?: number | null;
3812
+ amount_open?: number | null;
3813
+ created_at?: string;
3814
+ currency?: string | null;
3815
+ customer_code?: string | null;
3816
+ customer_exact_id?: string | null;
3817
+ customer_name?: string | null;
3818
+ description?: string | null;
3819
+ division_code?: number | null;
3820
+ due_date?: string | null;
3821
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3822
+ exact_id?: string;
3823
+ exact_modified?: string | null;
3824
+ exact_timestamp?: number | null;
3825
+ id?: string;
3826
+ invoice_date?: string | null;
3827
+ invoice_number?: string | null;
3828
+ order_number?: string | null;
3829
+ paid_at?: string | null;
3830
+ payment_status?: string;
3831
+ raw?: import("../integrations/supabase/types").Json | null;
3832
+ receivable_synced_at?: string | null;
3833
+ status_code?: number | null;
3834
+ updated_at?: string;
3835
+ };
3836
+ Relationships: [];
3837
+ };
3838
+ exact_auth_items: {
3839
+ Row: {
3840
+ account_key: string;
3841
+ barcode: string | null;
3842
+ code: string | null;
3843
+ cost_price: number | null;
3844
+ created_at: string;
3845
+ description: string | null;
3846
+ division_code: number | null;
3847
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3848
+ exact_id: string;
3849
+ exact_modified: string | null;
3850
+ exact_timestamp: number | null;
3851
+ gl_account_code: string | null;
3852
+ id: string;
3853
+ is_active: boolean;
3854
+ is_sales_item: boolean | null;
3855
+ item_type: string | null;
3856
+ raw: import("../integrations/supabase/types").Json | null;
3857
+ sales_price: number | null;
3858
+ unit: string | null;
3859
+ updated_at: string;
3860
+ vat_code: string | null;
3861
+ };
3862
+ Insert: {
3863
+ account_key?: string;
3864
+ barcode?: string | null;
3865
+ code?: string | null;
3866
+ cost_price?: number | null;
3867
+ created_at?: string;
3868
+ description?: string | null;
3869
+ division_code?: number | null;
3870
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3871
+ exact_id: string;
3872
+ exact_modified?: string | null;
3873
+ exact_timestamp?: number | null;
3874
+ gl_account_code?: string | null;
3875
+ id?: string;
3876
+ is_active?: boolean;
3877
+ is_sales_item?: boolean | null;
3878
+ item_type?: string | null;
3879
+ raw?: import("../integrations/supabase/types").Json | null;
3880
+ sales_price?: number | null;
3881
+ unit?: string | null;
3882
+ updated_at?: string;
3883
+ vat_code?: string | null;
3884
+ };
3885
+ Update: {
3886
+ account_key?: string;
3887
+ barcode?: string | null;
3888
+ code?: string | null;
3889
+ cost_price?: number | null;
3890
+ created_at?: string;
3891
+ description?: string | null;
3892
+ division_code?: number | null;
3893
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3894
+ exact_id?: string;
3895
+ exact_modified?: string | null;
3896
+ exact_timestamp?: number | null;
3897
+ gl_account_code?: string | null;
3898
+ id?: string;
3899
+ is_active?: boolean;
3900
+ is_sales_item?: boolean | null;
3901
+ item_type?: string | null;
3902
+ raw?: import("../integrations/supabase/types").Json | null;
3903
+ sales_price?: number | null;
3904
+ unit?: string | null;
3905
+ updated_at?: string;
3906
+ vat_code?: string | null;
3907
+ };
3908
+ Relationships: [];
3909
+ };
3910
+ exact_auth_sync_log: {
3911
+ Row: {
3912
+ account_key: string;
3913
+ calls_used: number;
3914
+ created_at: string;
3915
+ domain: string;
3916
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3917
+ error: string | null;
3918
+ finished_at: string | null;
3919
+ id: string;
3920
+ ok: boolean;
3921
+ records: number;
3922
+ started_at: string;
3923
+ };
3924
+ Insert: {
3925
+ account_key?: string;
3926
+ calls_used?: number;
3927
+ created_at?: string;
3928
+ domain: string;
3929
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3930
+ error?: string | null;
3931
+ finished_at?: string | null;
3932
+ id?: string;
3933
+ ok?: boolean;
3934
+ records?: number;
3935
+ started_at?: string;
3936
+ };
3937
+ Update: {
3938
+ account_key?: string;
3939
+ calls_used?: number;
3940
+ created_at?: string;
3941
+ domain?: string;
3942
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3943
+ error?: string | null;
3944
+ finished_at?: string | null;
3945
+ id?: string;
3946
+ ok?: boolean;
3947
+ records?: number;
3948
+ started_at?: string;
3949
+ };
3950
+ Relationships: [];
3951
+ };
3952
+ exact_auth_sync_state: {
3953
+ Row: {
3954
+ account_key: string;
3955
+ created_at: string;
3956
+ cursor_timestamp: number;
3957
+ division_code: number | null;
3958
+ domain: string;
3959
+ duration_ms: number | null;
3960
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3961
+ initial_sync_done: boolean;
3962
+ last_error: string | null;
3963
+ last_run_at: string | null;
3964
+ last_success_at: string | null;
3965
+ locked_at: string | null;
3966
+ needs_initial_sync: boolean;
3967
+ record_count: number;
3968
+ updated_at: string;
3969
+ };
3970
+ Insert: {
3971
+ account_key?: string;
3972
+ created_at?: string;
3973
+ cursor_timestamp?: number;
3974
+ division_code?: number | null;
3975
+ domain: string;
3976
+ duration_ms?: number | null;
3977
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3978
+ initial_sync_done?: boolean;
3979
+ last_error?: string | null;
3980
+ last_run_at?: string | null;
3981
+ last_success_at?: string | null;
3982
+ locked_at?: string | null;
3983
+ needs_initial_sync?: boolean;
3984
+ record_count?: number;
3985
+ updated_at?: string;
3986
+ };
3987
+ Update: {
3988
+ account_key?: string;
3989
+ created_at?: string;
3990
+ cursor_timestamp?: number;
3991
+ division_code?: number | null;
3992
+ domain?: string;
3993
+ duration_ms?: number | null;
3994
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3995
+ initial_sync_done?: boolean;
3996
+ last_error?: string | null;
3997
+ last_run_at?: string | null;
3998
+ last_success_at?: string | null;
3999
+ locked_at?: string | null;
4000
+ needs_initial_sync?: boolean;
4001
+ record_count?: number;
4002
+ updated_at?: string;
4003
+ };
4004
+ Relationships: [];
4005
+ };
3505
4006
  exact_bulk_operation_items: {
3506
4007
  Row: {
3507
4008
  attempts: number;
@@ -17894,6 +18395,21 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17894
18395
  Args: never;
17895
18396
  Returns: string;
17896
18397
  };
18398
+ exact_auth_consume_calls: {
18399
+ Args: {
18400
+ _account_key: string;
18401
+ _calls?: number;
18402
+ _day_limit?: number;
18403
+ _division_code: number;
18404
+ _environment: string;
18405
+ _minute_limit?: number;
18406
+ };
18407
+ Returns: import("../integrations/supabase/types").Json;
18408
+ };
18409
+ exact_auth_prune_sync_log: {
18410
+ Args: never;
18411
+ Returns: undefined;
18412
+ };
17897
18413
  exact_decrypt: {
17898
18414
  Args: {
17899
18415
  cipher: string;
@@ -21645,6 +22161,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
21645
22161
  referencedColumns: ["id"];
21646
22162
  }];
21647
22163
  };
22164
+ customer_notes: {
22165
+ Row: {
22166
+ created_at: string;
22167
+ customer_id: string | null;
22168
+ group_key: string | null;
22169
+ id: string;
22170
+ notes: string | null;
22171
+ updated_at: string;
22172
+ };
22173
+ Insert: {
22174
+ created_at?: string;
22175
+ customer_id?: string | null;
22176
+ group_key?: string | null;
22177
+ id?: string;
22178
+ notes?: string | null;
22179
+ updated_at?: string;
22180
+ };
22181
+ Update: {
22182
+ created_at?: string;
22183
+ customer_id?: string | null;
22184
+ group_key?: string | null;
22185
+ id?: string;
22186
+ notes?: string | null;
22187
+ updated_at?: string;
22188
+ };
22189
+ Relationships: [{
22190
+ foreignKeyName: "customer_notes_customer_id_fkey";
22191
+ columns: ["customer_id"];
22192
+ isOneToOne: true;
22193
+ referencedRelation: "customers";
22194
+ referencedColumns: ["id"];
22195
+ }];
22196
+ };
21648
22197
  customer_price_group_members: {
21649
22198
  Row: {
21650
22199
  created_at: string;
@@ -23289,6 +23838,474 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
23289
23838
  referencedColumns: ["id"];
23290
23839
  }];
23291
23840
  };
23841
+ exact_auth_call_budget: {
23842
+ Row: {
23843
+ account_key: string;
23844
+ day_count: number;
23845
+ day_date: string;
23846
+ division_code: number;
23847
+ environment: string;
23848
+ minute_count: number;
23849
+ minute_window: string;
23850
+ updated_at: string;
23851
+ };
23852
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
23873
+ };
23874
+ exact_auth_customers: {
23875
+ Row: {
23876
+ account_key: string;
23877
+ address_line1: string | null;
23878
+ chamber_of_commerce: string | null;
23879
+ city: string | null;
23880
+ code: string | null;
23881
+ country: string | null;
23882
+ created_at: string;
23883
+ currency: string | null;
23884
+ division_code: number | null;
23885
+ email: string | null;
23886
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23887
+ exact_id: string;
23888
+ exact_modified: string | null;
23889
+ exact_timestamp: number | null;
23890
+ id: string;
23891
+ is_active: boolean;
23892
+ name: string | null;
23893
+ phone: string | null;
23894
+ postcode: string | null;
23895
+ raw: import("../integrations/supabase/types").Json | null;
23896
+ status: string | null;
23897
+ updated_at: string;
23898
+ vat_number: string | null;
23899
+ website: string | null;
23900
+ };
23901
+ Insert: {
23902
+ account_key?: string;
23903
+ address_line1?: string | null;
23904
+ chamber_of_commerce?: string | null;
23905
+ city?: string | null;
23906
+ code?: string | null;
23907
+ country?: string | null;
23908
+ created_at?: string;
23909
+ currency?: string | null;
23910
+ division_code?: number | null;
23911
+ email?: string | null;
23912
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23913
+ exact_id: string;
23914
+ exact_modified?: string | null;
23915
+ exact_timestamp?: number | null;
23916
+ id?: string;
23917
+ is_active?: boolean;
23918
+ name?: string | null;
23919
+ phone?: string | null;
23920
+ postcode?: string | null;
23921
+ raw?: import("../integrations/supabase/types").Json | null;
23922
+ status?: string | null;
23923
+ updated_at?: string;
23924
+ vat_number?: string | null;
23925
+ website?: string | null;
23926
+ };
23927
+ Update: {
23928
+ account_key?: string;
23929
+ address_line1?: string | null;
23930
+ chamber_of_commerce?: string | null;
23931
+ city?: string | null;
23932
+ code?: string | null;
23933
+ country?: string | null;
23934
+ created_at?: string;
23935
+ currency?: string | null;
23936
+ division_code?: number | null;
23937
+ email?: string | null;
23938
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23939
+ exact_id?: string;
23940
+ exact_modified?: string | null;
23941
+ exact_timestamp?: number | null;
23942
+ id?: string;
23943
+ is_active?: boolean;
23944
+ name?: string | null;
23945
+ phone?: string | null;
23946
+ postcode?: string | null;
23947
+ raw?: import("../integrations/supabase/types").Json | null;
23948
+ status?: string | null;
23949
+ updated_at?: string;
23950
+ vat_number?: string | null;
23951
+ website?: string | null;
23952
+ };
23953
+ Relationships: [];
23954
+ };
23955
+ exact_auth_divisions: {
23956
+ Row: {
23957
+ account_key: string;
23958
+ company_name: string | null;
23959
+ created_at: string;
23960
+ division_code: number | null;
23961
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23962
+ id: string;
23963
+ last_synced_at: string | null;
23964
+ updated_at: string;
23965
+ };
23966
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
23987
+ };
23988
+ exact_auth_invoice_lines: {
23989
+ Row: {
23990
+ account_key: string;
23991
+ amount_excl: number | null;
23992
+ created_at: string;
23993
+ description: string | null;
23994
+ discount: number | null;
23995
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23996
+ exact_id: string;
23997
+ exact_timestamp: number | null;
23998
+ id: string;
23999
+ invoice_exact_id: string;
24000
+ item_code: string | null;
24001
+ item_exact_id: string | null;
24002
+ line_number: number | null;
24003
+ quantity: number | null;
24004
+ raw: import("../integrations/supabase/types").Json | null;
24005
+ unit_price: number | null;
24006
+ updated_at: string;
24007
+ vat_amount: number | null;
24008
+ vat_code: string | null;
24009
+ };
24010
+ Insert: {
24011
+ account_key?: string;
24012
+ amount_excl?: number | null;
24013
+ created_at?: string;
24014
+ description?: string | null;
24015
+ discount?: number | null;
24016
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24017
+ exact_id: string;
24018
+ exact_timestamp?: number | null;
24019
+ id?: string;
24020
+ invoice_exact_id: string;
24021
+ item_code?: string | null;
24022
+ item_exact_id?: string | null;
24023
+ line_number?: number | null;
24024
+ quantity?: number | null;
24025
+ raw?: import("../integrations/supabase/types").Json | null;
24026
+ unit_price?: number | null;
24027
+ updated_at?: string;
24028
+ vat_amount?: number | null;
24029
+ vat_code?: string | null;
24030
+ };
24031
+ Update: {
24032
+ account_key?: string;
24033
+ amount_excl?: number | null;
24034
+ created_at?: string;
24035
+ description?: string | null;
24036
+ discount?: number | null;
24037
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24038
+ exact_id?: string;
24039
+ exact_timestamp?: number | null;
24040
+ id?: string;
24041
+ invoice_exact_id?: string;
24042
+ item_code?: string | null;
24043
+ item_exact_id?: string | null;
24044
+ line_number?: number | null;
24045
+ quantity?: number | null;
24046
+ raw?: import("../integrations/supabase/types").Json | null;
24047
+ unit_price?: number | null;
24048
+ updated_at?: string;
24049
+ vat_amount?: number | null;
24050
+ vat_code?: string | null;
24051
+ };
24052
+ Relationships: [];
24053
+ };
24054
+ exact_auth_invoices: {
24055
+ Row: {
24056
+ account_key: string;
24057
+ amount_excl: number | null;
24058
+ amount_incl: number | null;
24059
+ amount_open: number | null;
24060
+ created_at: string;
24061
+ currency: string | null;
24062
+ customer_code: string | null;
24063
+ customer_exact_id: string | null;
24064
+ customer_name: string | null;
24065
+ description: string | null;
24066
+ division_code: number | null;
24067
+ due_date: string | null;
24068
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24069
+ exact_id: string;
24070
+ exact_modified: string | null;
24071
+ exact_timestamp: number | null;
24072
+ id: string;
24073
+ invoice_date: string | null;
24074
+ invoice_number: string | null;
24075
+ order_number: string | null;
24076
+ paid_at: string | null;
24077
+ payment_status: string;
24078
+ raw: import("../integrations/supabase/types").Json | null;
24079
+ receivable_synced_at: string | null;
24080
+ status_code: number | null;
24081
+ updated_at: string;
24082
+ };
24083
+ Insert: {
24084
+ account_key?: string;
24085
+ amount_excl?: number | null;
24086
+ amount_incl?: number | null;
24087
+ amount_open?: number | null;
24088
+ created_at?: string;
24089
+ currency?: string | null;
24090
+ customer_code?: string | null;
24091
+ customer_exact_id?: string | null;
24092
+ customer_name?: string | null;
24093
+ description?: string | null;
24094
+ division_code?: number | null;
24095
+ due_date?: string | null;
24096
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24097
+ exact_id: string;
24098
+ exact_modified?: string | null;
24099
+ exact_timestamp?: number | null;
24100
+ id?: string;
24101
+ invoice_date?: string | null;
24102
+ invoice_number?: string | null;
24103
+ order_number?: string | null;
24104
+ paid_at?: string | null;
24105
+ payment_status?: string;
24106
+ raw?: import("../integrations/supabase/types").Json | null;
24107
+ receivable_synced_at?: string | null;
24108
+ status_code?: number | null;
24109
+ updated_at?: string;
24110
+ };
24111
+ Update: {
24112
+ account_key?: string;
24113
+ amount_excl?: number | null;
24114
+ amount_incl?: number | null;
24115
+ amount_open?: number | null;
24116
+ created_at?: string;
24117
+ currency?: string | null;
24118
+ customer_code?: string | null;
24119
+ customer_exact_id?: string | null;
24120
+ customer_name?: string | null;
24121
+ description?: string | null;
24122
+ division_code?: number | null;
24123
+ due_date?: string | null;
24124
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24125
+ exact_id?: string;
24126
+ exact_modified?: string | null;
24127
+ exact_timestamp?: number | null;
24128
+ id?: string;
24129
+ invoice_date?: string | null;
24130
+ invoice_number?: string | null;
24131
+ order_number?: string | null;
24132
+ paid_at?: string | null;
24133
+ payment_status?: string;
24134
+ raw?: import("../integrations/supabase/types").Json | null;
24135
+ receivable_synced_at?: string | null;
24136
+ status_code?: number | null;
24137
+ updated_at?: string;
24138
+ };
24139
+ Relationships: [];
24140
+ };
24141
+ exact_auth_items: {
24142
+ Row: {
24143
+ account_key: string;
24144
+ barcode: string | null;
24145
+ code: string | null;
24146
+ cost_price: number | null;
24147
+ created_at: string;
24148
+ description: string | null;
24149
+ division_code: number | null;
24150
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24151
+ exact_id: string;
24152
+ exact_modified: string | null;
24153
+ exact_timestamp: number | null;
24154
+ gl_account_code: string | null;
24155
+ id: string;
24156
+ is_active: boolean;
24157
+ is_sales_item: boolean | null;
24158
+ item_type: string | null;
24159
+ raw: import("../integrations/supabase/types").Json | null;
24160
+ sales_price: number | null;
24161
+ unit: string | null;
24162
+ updated_at: string;
24163
+ vat_code: string | null;
24164
+ };
24165
+ Insert: {
24166
+ account_key?: string;
24167
+ barcode?: string | null;
24168
+ code?: string | null;
24169
+ cost_price?: number | null;
24170
+ created_at?: string;
24171
+ description?: string | null;
24172
+ division_code?: number | null;
24173
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24174
+ exact_id: string;
24175
+ exact_modified?: string | null;
24176
+ exact_timestamp?: number | null;
24177
+ gl_account_code?: string | null;
24178
+ id?: string;
24179
+ is_active?: boolean;
24180
+ is_sales_item?: boolean | null;
24181
+ item_type?: string | null;
24182
+ raw?: import("../integrations/supabase/types").Json | null;
24183
+ sales_price?: number | null;
24184
+ unit?: string | null;
24185
+ updated_at?: string;
24186
+ vat_code?: string | null;
24187
+ };
24188
+ Update: {
24189
+ account_key?: string;
24190
+ barcode?: string | null;
24191
+ code?: string | null;
24192
+ cost_price?: number | null;
24193
+ created_at?: string;
24194
+ description?: string | null;
24195
+ division_code?: number | null;
24196
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24197
+ exact_id?: string;
24198
+ exact_modified?: string | null;
24199
+ exact_timestamp?: number | null;
24200
+ gl_account_code?: string | null;
24201
+ id?: string;
24202
+ is_active?: boolean;
24203
+ is_sales_item?: boolean | null;
24204
+ item_type?: string | null;
24205
+ raw?: import("../integrations/supabase/types").Json | null;
24206
+ sales_price?: number | null;
24207
+ unit?: string | null;
24208
+ updated_at?: string;
24209
+ vat_code?: string | null;
24210
+ };
24211
+ Relationships: [];
24212
+ };
24213
+ exact_auth_sync_log: {
24214
+ Row: {
24215
+ account_key: string;
24216
+ calls_used: number;
24217
+ created_at: string;
24218
+ domain: string;
24219
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24220
+ error: string | null;
24221
+ finished_at: string | null;
24222
+ id: string;
24223
+ ok: boolean;
24224
+ records: number;
24225
+ started_at: string;
24226
+ };
24227
+ Insert: {
24228
+ account_key?: string;
24229
+ calls_used?: number;
24230
+ created_at?: string;
24231
+ domain: string;
24232
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24233
+ error?: string | null;
24234
+ finished_at?: string | null;
24235
+ id?: string;
24236
+ ok?: boolean;
24237
+ records?: number;
24238
+ started_at?: string;
24239
+ };
24240
+ Update: {
24241
+ account_key?: string;
24242
+ calls_used?: number;
24243
+ created_at?: string;
24244
+ domain?: string;
24245
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24246
+ error?: string | null;
24247
+ finished_at?: string | null;
24248
+ id?: string;
24249
+ ok?: boolean;
24250
+ records?: number;
24251
+ started_at?: string;
24252
+ };
24253
+ Relationships: [];
24254
+ };
24255
+ exact_auth_sync_state: {
24256
+ Row: {
24257
+ account_key: string;
24258
+ created_at: string;
24259
+ cursor_timestamp: number;
24260
+ division_code: number | null;
24261
+ domain: string;
24262
+ duration_ms: number | null;
24263
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24264
+ initial_sync_done: boolean;
24265
+ last_error: string | null;
24266
+ last_run_at: string | null;
24267
+ last_success_at: string | null;
24268
+ locked_at: string | null;
24269
+ needs_initial_sync: boolean;
24270
+ record_count: number;
24271
+ updated_at: string;
24272
+ };
24273
+ Insert: {
24274
+ account_key?: string;
24275
+ created_at?: string;
24276
+ cursor_timestamp?: number;
24277
+ division_code?: number | null;
24278
+ domain: string;
24279
+ duration_ms?: number | null;
24280
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24281
+ initial_sync_done?: boolean;
24282
+ last_error?: string | null;
24283
+ last_run_at?: string | null;
24284
+ last_success_at?: string | null;
24285
+ locked_at?: string | null;
24286
+ needs_initial_sync?: boolean;
24287
+ record_count?: number;
24288
+ updated_at?: string;
24289
+ };
24290
+ Update: {
24291
+ account_key?: string;
24292
+ created_at?: string;
24293
+ cursor_timestamp?: number;
24294
+ division_code?: number | null;
24295
+ domain?: string;
24296
+ duration_ms?: number | null;
24297
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24298
+ initial_sync_done?: boolean;
24299
+ last_error?: string | null;
24300
+ last_run_at?: string | null;
24301
+ last_success_at?: string | null;
24302
+ locked_at?: string | null;
24303
+ needs_initial_sync?: boolean;
24304
+ record_count?: number;
24305
+ updated_at?: string;
24306
+ };
24307
+ Relationships: [];
24308
+ };
23292
24309
  exact_bulk_operation_items: {
23293
24310
  Row: {
23294
24311
  attempts: number;
@@ -37681,6 +38698,21 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37681
38698
  Args: never;
37682
38699
  Returns: string;
37683
38700
  };
38701
+ exact_auth_consume_calls: {
38702
+ Args: {
38703
+ _account_key: string;
38704
+ _calls?: number;
38705
+ _day_limit?: number;
38706
+ _division_code: number;
38707
+ _environment: string;
38708
+ _minute_limit?: number;
38709
+ };
38710
+ Returns: import("../integrations/supabase/types").Json;
38711
+ };
38712
+ exact_auth_prune_sync_log: {
38713
+ Args: never;
38714
+ Returns: undefined;
38715
+ };
37684
38716
  exact_decrypt: {
37685
38717
  Args: {
37686
38718
  cipher: string;