@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
@@ -1859,6 +1859,39 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
1859
1859
  referencedColumns: ["id"];
1860
1860
  }];
1861
1861
  };
1862
+ customer_notes: {
1863
+ Row: {
1864
+ created_at: string;
1865
+ customer_id: string | null;
1866
+ group_key: string | null;
1867
+ id: string;
1868
+ notes: string | null;
1869
+ updated_at: string;
1870
+ };
1871
+ Insert: {
1872
+ created_at?: string;
1873
+ customer_id?: string | null;
1874
+ group_key?: string | null;
1875
+ id?: string;
1876
+ notes?: string | null;
1877
+ updated_at?: string;
1878
+ };
1879
+ Update: {
1880
+ created_at?: string;
1881
+ customer_id?: string | null;
1882
+ group_key?: string | null;
1883
+ id?: string;
1884
+ notes?: string | null;
1885
+ updated_at?: string;
1886
+ };
1887
+ Relationships: [{
1888
+ foreignKeyName: "customer_notes_customer_id_fkey";
1889
+ columns: ["customer_id"];
1890
+ isOneToOne: true;
1891
+ referencedRelation: "customers";
1892
+ referencedColumns: ["id"];
1893
+ }];
1894
+ };
1862
1895
  customer_price_group_members: {
1863
1896
  Row: {
1864
1897
  created_at: string;
@@ -3503,6 +3536,474 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
3503
3536
  referencedColumns: ["id"];
3504
3537
  }];
3505
3538
  };
3539
+ exact_auth_call_budget: {
3540
+ Row: {
3541
+ account_key: string;
3542
+ day_count: number;
3543
+ day_date: string;
3544
+ division_code: number;
3545
+ environment: string;
3546
+ minute_count: number;
3547
+ minute_window: string;
3548
+ updated_at: string;
3549
+ };
3550
+ Insert: {
3551
+ account_key?: string;
3552
+ day_count?: number;
3553
+ day_date?: string;
3554
+ division_code?: number;
3555
+ environment: string;
3556
+ minute_count?: number;
3557
+ minute_window?: string;
3558
+ updated_at?: string;
3559
+ };
3560
+ Update: {
3561
+ account_key?: string;
3562
+ day_count?: number;
3563
+ day_date?: string;
3564
+ division_code?: number;
3565
+ environment?: string;
3566
+ minute_count?: number;
3567
+ minute_window?: string;
3568
+ updated_at?: string;
3569
+ };
3570
+ Relationships: [];
3571
+ };
3572
+ exact_auth_customers: {
3573
+ Row: {
3574
+ account_key: string;
3575
+ address_line1: string | null;
3576
+ chamber_of_commerce: string | null;
3577
+ city: string | null;
3578
+ code: string | null;
3579
+ country: string | null;
3580
+ created_at: string;
3581
+ currency: string | null;
3582
+ division_code: number | null;
3583
+ email: string | null;
3584
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3585
+ exact_id: string;
3586
+ exact_modified: string | null;
3587
+ exact_timestamp: number | null;
3588
+ id: string;
3589
+ is_active: boolean;
3590
+ name: string | null;
3591
+ phone: string | null;
3592
+ postcode: string | null;
3593
+ raw: import("../integrations/supabase/types").Json | null;
3594
+ status: string | null;
3595
+ updated_at: string;
3596
+ vat_number: string | null;
3597
+ website: string | null;
3598
+ };
3599
+ Insert: {
3600
+ account_key?: string;
3601
+ address_line1?: string | null;
3602
+ chamber_of_commerce?: string | null;
3603
+ city?: string | null;
3604
+ code?: string | null;
3605
+ country?: string | null;
3606
+ created_at?: string;
3607
+ currency?: string | null;
3608
+ division_code?: number | null;
3609
+ email?: string | null;
3610
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3611
+ exact_id: string;
3612
+ exact_modified?: string | null;
3613
+ exact_timestamp?: number | null;
3614
+ id?: string;
3615
+ is_active?: boolean;
3616
+ name?: string | null;
3617
+ phone?: string | null;
3618
+ postcode?: string | null;
3619
+ raw?: import("../integrations/supabase/types").Json | null;
3620
+ status?: string | null;
3621
+ updated_at?: string;
3622
+ vat_number?: string | null;
3623
+ website?: string | null;
3624
+ };
3625
+ Update: {
3626
+ account_key?: string;
3627
+ address_line1?: string | null;
3628
+ chamber_of_commerce?: string | null;
3629
+ city?: string | null;
3630
+ code?: string | null;
3631
+ country?: string | null;
3632
+ created_at?: string;
3633
+ currency?: string | null;
3634
+ division_code?: number | null;
3635
+ email?: string | null;
3636
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3637
+ exact_id?: string;
3638
+ exact_modified?: string | null;
3639
+ exact_timestamp?: number | null;
3640
+ id?: string;
3641
+ is_active?: boolean;
3642
+ name?: string | null;
3643
+ phone?: string | null;
3644
+ postcode?: string | null;
3645
+ raw?: import("../integrations/supabase/types").Json | null;
3646
+ status?: string | null;
3647
+ updated_at?: string;
3648
+ vat_number?: string | null;
3649
+ website?: string | null;
3650
+ };
3651
+ Relationships: [];
3652
+ };
3653
+ exact_auth_divisions: {
3654
+ Row: {
3655
+ account_key: string;
3656
+ company_name: string | null;
3657
+ created_at: string;
3658
+ division_code: number | null;
3659
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3660
+ id: string;
3661
+ last_synced_at: string | null;
3662
+ updated_at: string;
3663
+ };
3664
+ Insert: {
3665
+ account_key?: string;
3666
+ company_name?: string | null;
3667
+ created_at?: string;
3668
+ division_code?: number | null;
3669
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3670
+ id?: string;
3671
+ last_synced_at?: string | null;
3672
+ updated_at?: string;
3673
+ };
3674
+ Update: {
3675
+ account_key?: string;
3676
+ company_name?: string | null;
3677
+ created_at?: string;
3678
+ division_code?: number | null;
3679
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3680
+ id?: string;
3681
+ last_synced_at?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [];
3685
+ };
3686
+ exact_auth_invoice_lines: {
3687
+ Row: {
3688
+ account_key: string;
3689
+ amount_excl: number | null;
3690
+ created_at: string;
3691
+ description: string | null;
3692
+ discount: number | null;
3693
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3694
+ exact_id: string;
3695
+ exact_timestamp: number | null;
3696
+ id: string;
3697
+ invoice_exact_id: string;
3698
+ item_code: string | null;
3699
+ item_exact_id: string | null;
3700
+ line_number: number | null;
3701
+ quantity: number | null;
3702
+ raw: import("../integrations/supabase/types").Json | null;
3703
+ unit_price: number | null;
3704
+ updated_at: string;
3705
+ vat_amount: number | null;
3706
+ vat_code: string | null;
3707
+ };
3708
+ Insert: {
3709
+ account_key?: string;
3710
+ amount_excl?: number | null;
3711
+ created_at?: string;
3712
+ description?: string | null;
3713
+ discount?: number | null;
3714
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3715
+ exact_id: string;
3716
+ exact_timestamp?: number | null;
3717
+ id?: string;
3718
+ invoice_exact_id: string;
3719
+ item_code?: string | null;
3720
+ item_exact_id?: string | null;
3721
+ line_number?: number | null;
3722
+ quantity?: number | null;
3723
+ raw?: import("../integrations/supabase/types").Json | null;
3724
+ unit_price?: number | null;
3725
+ updated_at?: string;
3726
+ vat_amount?: number | null;
3727
+ vat_code?: string | null;
3728
+ };
3729
+ Update: {
3730
+ account_key?: string;
3731
+ amount_excl?: number | null;
3732
+ created_at?: string;
3733
+ description?: string | null;
3734
+ discount?: number | null;
3735
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3736
+ exact_id?: string;
3737
+ exact_timestamp?: number | null;
3738
+ id?: string;
3739
+ invoice_exact_id?: string;
3740
+ item_code?: string | null;
3741
+ item_exact_id?: string | null;
3742
+ line_number?: number | null;
3743
+ quantity?: number | null;
3744
+ raw?: import("../integrations/supabase/types").Json | null;
3745
+ unit_price?: number | null;
3746
+ updated_at?: string;
3747
+ vat_amount?: number | null;
3748
+ vat_code?: string | null;
3749
+ };
3750
+ Relationships: [];
3751
+ };
3752
+ exact_auth_invoices: {
3753
+ Row: {
3754
+ account_key: string;
3755
+ amount_excl: number | null;
3756
+ amount_incl: number | null;
3757
+ amount_open: number | null;
3758
+ created_at: string;
3759
+ currency: string | null;
3760
+ customer_code: string | null;
3761
+ customer_exact_id: string | null;
3762
+ customer_name: string | null;
3763
+ description: string | null;
3764
+ division_code: number | null;
3765
+ due_date: string | null;
3766
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3767
+ exact_id: string;
3768
+ exact_modified: string | null;
3769
+ exact_timestamp: number | null;
3770
+ id: string;
3771
+ invoice_date: string | null;
3772
+ invoice_number: string | null;
3773
+ order_number: string | null;
3774
+ paid_at: string | null;
3775
+ payment_status: string;
3776
+ raw: import("../integrations/supabase/types").Json | null;
3777
+ receivable_synced_at: string | null;
3778
+ status_code: number | null;
3779
+ updated_at: string;
3780
+ };
3781
+ Insert: {
3782
+ account_key?: string;
3783
+ amount_excl?: number | null;
3784
+ amount_incl?: number | null;
3785
+ amount_open?: number | null;
3786
+ created_at?: string;
3787
+ currency?: string | null;
3788
+ customer_code?: string | null;
3789
+ customer_exact_id?: string | null;
3790
+ customer_name?: string | null;
3791
+ description?: string | null;
3792
+ division_code?: number | null;
3793
+ due_date?: string | null;
3794
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3795
+ exact_id: string;
3796
+ exact_modified?: string | null;
3797
+ exact_timestamp?: number | null;
3798
+ id?: string;
3799
+ invoice_date?: string | null;
3800
+ invoice_number?: string | null;
3801
+ order_number?: string | null;
3802
+ paid_at?: string | null;
3803
+ payment_status?: string;
3804
+ raw?: import("../integrations/supabase/types").Json | null;
3805
+ receivable_synced_at?: string | null;
3806
+ status_code?: number | null;
3807
+ updated_at?: string;
3808
+ };
3809
+ Update: {
3810
+ account_key?: string;
3811
+ amount_excl?: number | null;
3812
+ amount_incl?: number | null;
3813
+ amount_open?: number | null;
3814
+ created_at?: string;
3815
+ currency?: string | null;
3816
+ customer_code?: string | null;
3817
+ customer_exact_id?: string | null;
3818
+ customer_name?: string | null;
3819
+ description?: string | null;
3820
+ division_code?: number | null;
3821
+ due_date?: string | null;
3822
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3823
+ exact_id?: string;
3824
+ exact_modified?: string | null;
3825
+ exact_timestamp?: number | null;
3826
+ id?: string;
3827
+ invoice_date?: string | null;
3828
+ invoice_number?: string | null;
3829
+ order_number?: string | null;
3830
+ paid_at?: string | null;
3831
+ payment_status?: string;
3832
+ raw?: import("../integrations/supabase/types").Json | null;
3833
+ receivable_synced_at?: string | null;
3834
+ status_code?: number | null;
3835
+ updated_at?: string;
3836
+ };
3837
+ Relationships: [];
3838
+ };
3839
+ exact_auth_items: {
3840
+ Row: {
3841
+ account_key: string;
3842
+ barcode: string | null;
3843
+ code: string | null;
3844
+ cost_price: number | null;
3845
+ created_at: string;
3846
+ description: string | null;
3847
+ division_code: number | null;
3848
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3849
+ exact_id: string;
3850
+ exact_modified: string | null;
3851
+ exact_timestamp: number | null;
3852
+ gl_account_code: string | null;
3853
+ id: string;
3854
+ is_active: boolean;
3855
+ is_sales_item: boolean | null;
3856
+ item_type: string | null;
3857
+ raw: import("../integrations/supabase/types").Json | null;
3858
+ sales_price: number | null;
3859
+ unit: string | null;
3860
+ updated_at: string;
3861
+ vat_code: string | null;
3862
+ };
3863
+ Insert: {
3864
+ account_key?: string;
3865
+ barcode?: string | null;
3866
+ code?: string | null;
3867
+ cost_price?: number | null;
3868
+ created_at?: string;
3869
+ description?: string | null;
3870
+ division_code?: number | null;
3871
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3872
+ exact_id: string;
3873
+ exact_modified?: string | null;
3874
+ exact_timestamp?: number | null;
3875
+ gl_account_code?: string | null;
3876
+ id?: string;
3877
+ is_active?: boolean;
3878
+ is_sales_item?: boolean | null;
3879
+ item_type?: string | null;
3880
+ raw?: import("../integrations/supabase/types").Json | null;
3881
+ sales_price?: number | null;
3882
+ unit?: string | null;
3883
+ updated_at?: string;
3884
+ vat_code?: string | null;
3885
+ };
3886
+ Update: {
3887
+ account_key?: string;
3888
+ barcode?: string | null;
3889
+ code?: string | null;
3890
+ cost_price?: number | null;
3891
+ created_at?: string;
3892
+ description?: string | null;
3893
+ division_code?: number | null;
3894
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3895
+ exact_id?: string;
3896
+ exact_modified?: string | null;
3897
+ exact_timestamp?: number | null;
3898
+ gl_account_code?: string | null;
3899
+ id?: string;
3900
+ is_active?: boolean;
3901
+ is_sales_item?: boolean | null;
3902
+ item_type?: string | null;
3903
+ raw?: import("../integrations/supabase/types").Json | null;
3904
+ sales_price?: number | null;
3905
+ unit?: string | null;
3906
+ updated_at?: string;
3907
+ vat_code?: string | null;
3908
+ };
3909
+ Relationships: [];
3910
+ };
3911
+ exact_auth_sync_log: {
3912
+ Row: {
3913
+ account_key: string;
3914
+ calls_used: number;
3915
+ created_at: string;
3916
+ domain: string;
3917
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3918
+ error: string | null;
3919
+ finished_at: string | null;
3920
+ id: string;
3921
+ ok: boolean;
3922
+ records: number;
3923
+ started_at: string;
3924
+ };
3925
+ Insert: {
3926
+ account_key?: string;
3927
+ calls_used?: number;
3928
+ created_at?: string;
3929
+ domain: string;
3930
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3931
+ error?: string | null;
3932
+ finished_at?: string | null;
3933
+ id?: string;
3934
+ ok?: boolean;
3935
+ records?: number;
3936
+ started_at?: string;
3937
+ };
3938
+ Update: {
3939
+ account_key?: string;
3940
+ calls_used?: number;
3941
+ created_at?: string;
3942
+ domain?: string;
3943
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3944
+ error?: string | null;
3945
+ finished_at?: string | null;
3946
+ id?: string;
3947
+ ok?: boolean;
3948
+ records?: number;
3949
+ started_at?: string;
3950
+ };
3951
+ Relationships: [];
3952
+ };
3953
+ exact_auth_sync_state: {
3954
+ Row: {
3955
+ account_key: string;
3956
+ created_at: string;
3957
+ cursor_timestamp: number;
3958
+ division_code: number | null;
3959
+ domain: string;
3960
+ duration_ms: number | null;
3961
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3962
+ initial_sync_done: boolean;
3963
+ last_error: string | null;
3964
+ last_run_at: string | null;
3965
+ last_success_at: string | null;
3966
+ locked_at: string | null;
3967
+ needs_initial_sync: boolean;
3968
+ record_count: number;
3969
+ updated_at: string;
3970
+ };
3971
+ Insert: {
3972
+ account_key?: string;
3973
+ created_at?: string;
3974
+ cursor_timestamp?: number;
3975
+ division_code?: number | null;
3976
+ domain: string;
3977
+ duration_ms?: number | null;
3978
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3979
+ initial_sync_done?: boolean;
3980
+ last_error?: string | null;
3981
+ last_run_at?: string | null;
3982
+ last_success_at?: string | null;
3983
+ locked_at?: string | null;
3984
+ needs_initial_sync?: boolean;
3985
+ record_count?: number;
3986
+ updated_at?: string;
3987
+ };
3988
+ Update: {
3989
+ account_key?: string;
3990
+ created_at?: string;
3991
+ cursor_timestamp?: number;
3992
+ division_code?: number | null;
3993
+ domain?: string;
3994
+ duration_ms?: number | null;
3995
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3996
+ initial_sync_done?: boolean;
3997
+ last_error?: string | null;
3998
+ last_run_at?: string | null;
3999
+ last_success_at?: string | null;
4000
+ locked_at?: string | null;
4001
+ needs_initial_sync?: boolean;
4002
+ record_count?: number;
4003
+ updated_at?: string;
4004
+ };
4005
+ Relationships: [];
4006
+ };
3506
4007
  exact_bulk_operation_items: {
3507
4008
  Row: {
3508
4009
  attempts: number;
@@ -17895,6 +18396,21 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
17895
18396
  Args: never;
17896
18397
  Returns: string;
17897
18398
  };
18399
+ exact_auth_consume_calls: {
18400
+ Args: {
18401
+ _account_key: string;
18402
+ _calls?: number;
18403
+ _day_limit?: number;
18404
+ _division_code: number;
18405
+ _environment: string;
18406
+ _minute_limit?: number;
18407
+ };
18408
+ Returns: import("../integrations/supabase/types").Json;
18409
+ };
18410
+ exact_auth_prune_sync_log: {
18411
+ Args: never;
18412
+ Returns: undefined;
18413
+ };
17898
18414
  exact_decrypt: {
17899
18415
  Args: {
17900
18416
  cipher: string;
@@ -21639,6 +22155,39 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
21639
22155
  referencedColumns: ["id"];
21640
22156
  }];
21641
22157
  };
22158
+ customer_notes: {
22159
+ Row: {
22160
+ created_at: string;
22161
+ customer_id: string | null;
22162
+ group_key: string | null;
22163
+ id: string;
22164
+ notes: string | null;
22165
+ updated_at: string;
22166
+ };
22167
+ Insert: {
22168
+ created_at?: string;
22169
+ customer_id?: string | null;
22170
+ group_key?: string | null;
22171
+ id?: string;
22172
+ notes?: string | null;
22173
+ updated_at?: string;
22174
+ };
22175
+ Update: {
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
+ Relationships: [{
22184
+ foreignKeyName: "customer_notes_customer_id_fkey";
22185
+ columns: ["customer_id"];
22186
+ isOneToOne: true;
22187
+ referencedRelation: "customers";
22188
+ referencedColumns: ["id"];
22189
+ }];
22190
+ };
21642
22191
  customer_price_group_members: {
21643
22192
  Row: {
21644
22193
  created_at: string;
@@ -23283,6 +23832,474 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
23283
23832
  referencedColumns: ["id"];
23284
23833
  }];
23285
23834
  };
23835
+ exact_auth_call_budget: {
23836
+ Row: {
23837
+ account_key: string;
23838
+ day_count: number;
23839
+ day_date: string;
23840
+ division_code: number;
23841
+ environment: string;
23842
+ minute_count: number;
23843
+ minute_window: string;
23844
+ updated_at: string;
23845
+ };
23846
+ Insert: {
23847
+ account_key?: string;
23848
+ day_count?: number;
23849
+ day_date?: string;
23850
+ division_code?: number;
23851
+ environment: string;
23852
+ minute_count?: number;
23853
+ minute_window?: string;
23854
+ updated_at?: string;
23855
+ };
23856
+ Update: {
23857
+ account_key?: string;
23858
+ day_count?: number;
23859
+ day_date?: string;
23860
+ division_code?: number;
23861
+ environment?: string;
23862
+ minute_count?: number;
23863
+ minute_window?: string;
23864
+ updated_at?: string;
23865
+ };
23866
+ Relationships: [];
23867
+ };
23868
+ exact_auth_customers: {
23869
+ Row: {
23870
+ account_key: string;
23871
+ address_line1: string | null;
23872
+ chamber_of_commerce: string | null;
23873
+ city: string | null;
23874
+ code: string | null;
23875
+ country: string | null;
23876
+ created_at: string;
23877
+ currency: string | null;
23878
+ division_code: number | null;
23879
+ email: string | null;
23880
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23881
+ exact_id: string;
23882
+ exact_modified: string | null;
23883
+ exact_timestamp: number | null;
23884
+ id: string;
23885
+ is_active: boolean;
23886
+ name: string | null;
23887
+ phone: string | null;
23888
+ postcode: string | null;
23889
+ raw: import("../integrations/supabase/types").Json | null;
23890
+ status: string | null;
23891
+ updated_at: string;
23892
+ vat_number: string | null;
23893
+ website: string | null;
23894
+ };
23895
+ Insert: {
23896
+ account_key?: string;
23897
+ address_line1?: string | null;
23898
+ chamber_of_commerce?: string | null;
23899
+ city?: string | null;
23900
+ code?: string | null;
23901
+ country?: string | null;
23902
+ created_at?: string;
23903
+ currency?: string | null;
23904
+ division_code?: number | null;
23905
+ email?: string | null;
23906
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23907
+ exact_id: string;
23908
+ exact_modified?: string | null;
23909
+ exact_timestamp?: number | null;
23910
+ id?: string;
23911
+ is_active?: boolean;
23912
+ name?: string | null;
23913
+ phone?: string | null;
23914
+ postcode?: string | null;
23915
+ raw?: import("../integrations/supabase/types").Json | null;
23916
+ status?: string | null;
23917
+ updated_at?: string;
23918
+ vat_number?: string | null;
23919
+ website?: string | null;
23920
+ };
23921
+ Update: {
23922
+ account_key?: string;
23923
+ address_line1?: string | null;
23924
+ chamber_of_commerce?: string | null;
23925
+ city?: string | null;
23926
+ code?: string | null;
23927
+ country?: string | null;
23928
+ created_at?: string;
23929
+ currency?: string | null;
23930
+ division_code?: number | null;
23931
+ email?: string | null;
23932
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23933
+ exact_id?: string;
23934
+ exact_modified?: string | null;
23935
+ exact_timestamp?: number | null;
23936
+ id?: string;
23937
+ is_active?: boolean;
23938
+ name?: string | null;
23939
+ phone?: string | null;
23940
+ postcode?: string | null;
23941
+ raw?: import("../integrations/supabase/types").Json | null;
23942
+ status?: string | null;
23943
+ updated_at?: string;
23944
+ vat_number?: string | null;
23945
+ website?: string | null;
23946
+ };
23947
+ Relationships: [];
23948
+ };
23949
+ exact_auth_divisions: {
23950
+ Row: {
23951
+ account_key: string;
23952
+ company_name: string | null;
23953
+ created_at: string;
23954
+ division_code: number | null;
23955
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23956
+ id: string;
23957
+ last_synced_at: string | null;
23958
+ updated_at: string;
23959
+ };
23960
+ Insert: {
23961
+ account_key?: string;
23962
+ company_name?: string | null;
23963
+ created_at?: string;
23964
+ division_code?: number | null;
23965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23966
+ id?: string;
23967
+ last_synced_at?: string | null;
23968
+ updated_at?: string;
23969
+ };
23970
+ Update: {
23971
+ account_key?: string;
23972
+ company_name?: string | null;
23973
+ created_at?: string;
23974
+ division_code?: number | null;
23975
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23976
+ id?: string;
23977
+ last_synced_at?: string | null;
23978
+ updated_at?: string;
23979
+ };
23980
+ Relationships: [];
23981
+ };
23982
+ exact_auth_invoice_lines: {
23983
+ Row: {
23984
+ account_key: string;
23985
+ amount_excl: number | null;
23986
+ created_at: string;
23987
+ description: string | null;
23988
+ discount: number | null;
23989
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23990
+ exact_id: string;
23991
+ exact_timestamp: number | null;
23992
+ id: string;
23993
+ invoice_exact_id: string;
23994
+ item_code: string | null;
23995
+ item_exact_id: string | null;
23996
+ line_number: number | null;
23997
+ quantity: number | null;
23998
+ raw: import("../integrations/supabase/types").Json | null;
23999
+ unit_price: number | null;
24000
+ updated_at: string;
24001
+ vat_amount: number | null;
24002
+ vat_code: string | null;
24003
+ };
24004
+ Insert: {
24005
+ account_key?: string;
24006
+ amount_excl?: number | null;
24007
+ created_at?: string;
24008
+ description?: string | null;
24009
+ discount?: number | null;
24010
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24011
+ exact_id: string;
24012
+ exact_timestamp?: number | null;
24013
+ id?: string;
24014
+ invoice_exact_id: string;
24015
+ item_code?: string | null;
24016
+ item_exact_id?: string | null;
24017
+ line_number?: number | null;
24018
+ quantity?: number | null;
24019
+ raw?: import("../integrations/supabase/types").Json | null;
24020
+ unit_price?: number | null;
24021
+ updated_at?: string;
24022
+ vat_amount?: number | null;
24023
+ vat_code?: string | null;
24024
+ };
24025
+ Update: {
24026
+ account_key?: string;
24027
+ amount_excl?: number | null;
24028
+ created_at?: string;
24029
+ description?: string | null;
24030
+ discount?: number | null;
24031
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24032
+ exact_id?: string;
24033
+ exact_timestamp?: number | null;
24034
+ id?: string;
24035
+ invoice_exact_id?: string;
24036
+ item_code?: string | null;
24037
+ item_exact_id?: string | null;
24038
+ line_number?: number | null;
24039
+ quantity?: number | null;
24040
+ raw?: import("../integrations/supabase/types").Json | null;
24041
+ unit_price?: number | null;
24042
+ updated_at?: string;
24043
+ vat_amount?: number | null;
24044
+ vat_code?: string | null;
24045
+ };
24046
+ Relationships: [];
24047
+ };
24048
+ exact_auth_invoices: {
24049
+ Row: {
24050
+ account_key: string;
24051
+ amount_excl: number | null;
24052
+ amount_incl: number | null;
24053
+ amount_open: number | null;
24054
+ created_at: string;
24055
+ currency: string | null;
24056
+ customer_code: string | null;
24057
+ customer_exact_id: string | null;
24058
+ customer_name: string | null;
24059
+ description: string | null;
24060
+ division_code: number | null;
24061
+ due_date: string | null;
24062
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24063
+ exact_id: string;
24064
+ exact_modified: string | null;
24065
+ exact_timestamp: number | null;
24066
+ id: string;
24067
+ invoice_date: string | null;
24068
+ invoice_number: string | null;
24069
+ order_number: string | null;
24070
+ paid_at: string | null;
24071
+ payment_status: string;
24072
+ raw: import("../integrations/supabase/types").Json | null;
24073
+ receivable_synced_at: string | null;
24074
+ status_code: number | null;
24075
+ updated_at: string;
24076
+ };
24077
+ Insert: {
24078
+ account_key?: string;
24079
+ amount_excl?: number | null;
24080
+ amount_incl?: number | null;
24081
+ amount_open?: number | null;
24082
+ created_at?: string;
24083
+ currency?: string | null;
24084
+ customer_code?: string | null;
24085
+ customer_exact_id?: string | null;
24086
+ customer_name?: string | null;
24087
+ description?: string | null;
24088
+ division_code?: number | null;
24089
+ due_date?: string | null;
24090
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24091
+ exact_id: string;
24092
+ exact_modified?: string | null;
24093
+ exact_timestamp?: number | null;
24094
+ id?: string;
24095
+ invoice_date?: string | null;
24096
+ invoice_number?: string | null;
24097
+ order_number?: string | null;
24098
+ paid_at?: string | null;
24099
+ payment_status?: string;
24100
+ raw?: import("../integrations/supabase/types").Json | null;
24101
+ receivable_synced_at?: string | null;
24102
+ status_code?: number | null;
24103
+ updated_at?: string;
24104
+ };
24105
+ Update: {
24106
+ account_key?: string;
24107
+ amount_excl?: number | null;
24108
+ amount_incl?: number | null;
24109
+ amount_open?: number | null;
24110
+ created_at?: string;
24111
+ currency?: string | null;
24112
+ customer_code?: string | null;
24113
+ customer_exact_id?: string | null;
24114
+ customer_name?: string | null;
24115
+ description?: string | null;
24116
+ division_code?: number | null;
24117
+ due_date?: string | null;
24118
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24119
+ exact_id?: string;
24120
+ exact_modified?: string | null;
24121
+ exact_timestamp?: number | null;
24122
+ id?: string;
24123
+ invoice_date?: string | null;
24124
+ invoice_number?: string | null;
24125
+ order_number?: string | null;
24126
+ paid_at?: string | null;
24127
+ payment_status?: string;
24128
+ raw?: import("../integrations/supabase/types").Json | null;
24129
+ receivable_synced_at?: string | null;
24130
+ status_code?: number | null;
24131
+ updated_at?: string;
24132
+ };
24133
+ Relationships: [];
24134
+ };
24135
+ exact_auth_items: {
24136
+ Row: {
24137
+ account_key: string;
24138
+ barcode: string | null;
24139
+ code: string | null;
24140
+ cost_price: number | null;
24141
+ created_at: string;
24142
+ description: string | null;
24143
+ division_code: number | null;
24144
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24145
+ exact_id: string;
24146
+ exact_modified: string | null;
24147
+ exact_timestamp: number | null;
24148
+ gl_account_code: string | null;
24149
+ id: string;
24150
+ is_active: boolean;
24151
+ is_sales_item: boolean | null;
24152
+ item_type: string | null;
24153
+ raw: import("../integrations/supabase/types").Json | null;
24154
+ sales_price: number | null;
24155
+ unit: string | null;
24156
+ updated_at: string;
24157
+ vat_code: string | null;
24158
+ };
24159
+ Insert: {
24160
+ account_key?: string;
24161
+ barcode?: string | null;
24162
+ code?: string | null;
24163
+ cost_price?: number | null;
24164
+ created_at?: string;
24165
+ description?: string | null;
24166
+ division_code?: number | null;
24167
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24168
+ exact_id: string;
24169
+ exact_modified?: string | null;
24170
+ exact_timestamp?: number | null;
24171
+ gl_account_code?: string | null;
24172
+ id?: string;
24173
+ is_active?: boolean;
24174
+ is_sales_item?: boolean | null;
24175
+ item_type?: string | null;
24176
+ raw?: import("../integrations/supabase/types").Json | null;
24177
+ sales_price?: number | null;
24178
+ unit?: string | null;
24179
+ updated_at?: string;
24180
+ vat_code?: string | null;
24181
+ };
24182
+ Update: {
24183
+ account_key?: string;
24184
+ barcode?: string | null;
24185
+ code?: string | null;
24186
+ cost_price?: number | null;
24187
+ created_at?: string;
24188
+ description?: string | null;
24189
+ division_code?: number | null;
24190
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24191
+ exact_id?: string;
24192
+ exact_modified?: string | null;
24193
+ exact_timestamp?: number | null;
24194
+ gl_account_code?: string | null;
24195
+ id?: string;
24196
+ is_active?: boolean;
24197
+ is_sales_item?: boolean | null;
24198
+ item_type?: string | null;
24199
+ raw?: import("../integrations/supabase/types").Json | null;
24200
+ sales_price?: number | null;
24201
+ unit?: string | null;
24202
+ updated_at?: string;
24203
+ vat_code?: string | null;
24204
+ };
24205
+ Relationships: [];
24206
+ };
24207
+ exact_auth_sync_log: {
24208
+ Row: {
24209
+ account_key: string;
24210
+ calls_used: number;
24211
+ created_at: string;
24212
+ domain: string;
24213
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24214
+ error: string | null;
24215
+ finished_at: string | null;
24216
+ id: string;
24217
+ ok: boolean;
24218
+ records: number;
24219
+ started_at: string;
24220
+ };
24221
+ Insert: {
24222
+ account_key?: string;
24223
+ calls_used?: number;
24224
+ created_at?: string;
24225
+ domain: string;
24226
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24227
+ error?: string | null;
24228
+ finished_at?: string | null;
24229
+ id?: string;
24230
+ ok?: boolean;
24231
+ records?: number;
24232
+ started_at?: string;
24233
+ };
24234
+ Update: {
24235
+ account_key?: string;
24236
+ calls_used?: number;
24237
+ created_at?: string;
24238
+ domain?: string;
24239
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24240
+ error?: string | null;
24241
+ finished_at?: string | null;
24242
+ id?: string;
24243
+ ok?: boolean;
24244
+ records?: number;
24245
+ started_at?: string;
24246
+ };
24247
+ Relationships: [];
24248
+ };
24249
+ exact_auth_sync_state: {
24250
+ Row: {
24251
+ account_key: string;
24252
+ created_at: string;
24253
+ cursor_timestamp: number;
24254
+ division_code: number | null;
24255
+ domain: string;
24256
+ duration_ms: number | null;
24257
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24258
+ initial_sync_done: boolean;
24259
+ last_error: string | null;
24260
+ last_run_at: string | null;
24261
+ last_success_at: string | null;
24262
+ locked_at: string | null;
24263
+ needs_initial_sync: boolean;
24264
+ record_count: number;
24265
+ updated_at: string;
24266
+ };
24267
+ Insert: {
24268
+ account_key?: string;
24269
+ created_at?: string;
24270
+ cursor_timestamp?: number;
24271
+ division_code?: number | null;
24272
+ domain: string;
24273
+ duration_ms?: number | null;
24274
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24275
+ initial_sync_done?: boolean;
24276
+ last_error?: string | null;
24277
+ last_run_at?: string | null;
24278
+ last_success_at?: string | null;
24279
+ locked_at?: string | null;
24280
+ needs_initial_sync?: boolean;
24281
+ record_count?: number;
24282
+ updated_at?: string;
24283
+ };
24284
+ Update: {
24285
+ account_key?: string;
24286
+ created_at?: string;
24287
+ cursor_timestamp?: number;
24288
+ division_code?: number | null;
24289
+ domain?: string;
24290
+ duration_ms?: number | null;
24291
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24292
+ initial_sync_done?: boolean;
24293
+ last_error?: string | null;
24294
+ last_run_at?: string | null;
24295
+ last_success_at?: string | null;
24296
+ locked_at?: string | null;
24297
+ needs_initial_sync?: boolean;
24298
+ record_count?: number;
24299
+ updated_at?: string;
24300
+ };
24301
+ Relationships: [];
24302
+ };
23286
24303
  exact_bulk_operation_items: {
23287
24304
  Row: {
23288
24305
  attempts: number;
@@ -37675,6 +38692,21 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
37675
38692
  Args: never;
37676
38693
  Returns: string;
37677
38694
  };
38695
+ exact_auth_consume_calls: {
38696
+ Args: {
38697
+ _account_key: string;
38698
+ _calls?: number;
38699
+ _day_limit?: number;
38700
+ _division_code: number;
38701
+ _environment: string;
38702
+ _minute_limit?: number;
38703
+ };
38704
+ Returns: import("../integrations/supabase/types").Json;
38705
+ };
38706
+ exact_auth_prune_sync_log: {
38707
+ Args: never;
38708
+ Returns: undefined;
38709
+ };
37678
38710
  exact_decrypt: {
37679
38711
  Args: {
37680
38712
  cipher: string;
@@ -41452,6 +42484,39 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
41452
42484
  referencedColumns: ["id"];
41453
42485
  }];
41454
42486
  };
42487
+ customer_notes: {
42488
+ Row: {
42489
+ created_at: string;
42490
+ customer_id: string | null;
42491
+ group_key: string | null;
42492
+ id: string;
42493
+ notes: string | null;
42494
+ updated_at: string;
42495
+ };
42496
+ Insert: {
42497
+ created_at?: string;
42498
+ customer_id?: string | null;
42499
+ group_key?: string | null;
42500
+ id?: string;
42501
+ notes?: string | null;
42502
+ updated_at?: string;
42503
+ };
42504
+ Update: {
42505
+ created_at?: string;
42506
+ customer_id?: string | null;
42507
+ group_key?: string | null;
42508
+ id?: string;
42509
+ notes?: string | null;
42510
+ updated_at?: string;
42511
+ };
42512
+ Relationships: [{
42513
+ foreignKeyName: "customer_notes_customer_id_fkey";
42514
+ columns: ["customer_id"];
42515
+ isOneToOne: true;
42516
+ referencedRelation: "customers";
42517
+ referencedColumns: ["id"];
42518
+ }];
42519
+ };
41455
42520
  customer_price_group_members: {
41456
42521
  Row: {
41457
42522
  created_at: string;
@@ -43096,6 +44161,474 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
43096
44161
  referencedColumns: ["id"];
43097
44162
  }];
43098
44163
  };
44164
+ exact_auth_call_budget: {
44165
+ Row: {
44166
+ account_key: string;
44167
+ day_count: number;
44168
+ day_date: string;
44169
+ division_code: number;
44170
+ environment: string;
44171
+ minute_count: number;
44172
+ minute_window: string;
44173
+ updated_at: string;
44174
+ };
44175
+ Insert: {
44176
+ account_key?: string;
44177
+ day_count?: number;
44178
+ day_date?: string;
44179
+ division_code?: number;
44180
+ environment: string;
44181
+ minute_count?: number;
44182
+ minute_window?: string;
44183
+ updated_at?: string;
44184
+ };
44185
+ Update: {
44186
+ account_key?: string;
44187
+ day_count?: number;
44188
+ day_date?: string;
44189
+ division_code?: number;
44190
+ environment?: string;
44191
+ minute_count?: number;
44192
+ minute_window?: string;
44193
+ updated_at?: string;
44194
+ };
44195
+ Relationships: [];
44196
+ };
44197
+ exact_auth_customers: {
44198
+ Row: {
44199
+ account_key: string;
44200
+ address_line1: string | null;
44201
+ chamber_of_commerce: string | null;
44202
+ city: string | null;
44203
+ code: string | null;
44204
+ country: string | null;
44205
+ created_at: string;
44206
+ currency: string | null;
44207
+ division_code: number | null;
44208
+ email: string | null;
44209
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44210
+ exact_id: string;
44211
+ exact_modified: string | null;
44212
+ exact_timestamp: number | null;
44213
+ id: string;
44214
+ is_active: boolean;
44215
+ name: string | null;
44216
+ phone: string | null;
44217
+ postcode: string | null;
44218
+ raw: import("../integrations/supabase/types").Json | null;
44219
+ status: string | null;
44220
+ updated_at: string;
44221
+ vat_number: string | null;
44222
+ website: string | null;
44223
+ };
44224
+ Insert: {
44225
+ account_key?: string;
44226
+ address_line1?: string | null;
44227
+ chamber_of_commerce?: string | null;
44228
+ city?: string | null;
44229
+ code?: string | null;
44230
+ country?: string | null;
44231
+ created_at?: string;
44232
+ currency?: string | null;
44233
+ division_code?: number | null;
44234
+ email?: string | null;
44235
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44236
+ exact_id: string;
44237
+ exact_modified?: string | null;
44238
+ exact_timestamp?: number | null;
44239
+ id?: string;
44240
+ is_active?: boolean;
44241
+ name?: string | null;
44242
+ phone?: string | null;
44243
+ postcode?: string | null;
44244
+ raw?: import("../integrations/supabase/types").Json | null;
44245
+ status?: string | null;
44246
+ updated_at?: string;
44247
+ vat_number?: string | null;
44248
+ website?: string | null;
44249
+ };
44250
+ Update: {
44251
+ account_key?: string;
44252
+ address_line1?: string | null;
44253
+ chamber_of_commerce?: string | null;
44254
+ city?: string | null;
44255
+ code?: string | null;
44256
+ country?: string | null;
44257
+ created_at?: string;
44258
+ currency?: string | null;
44259
+ division_code?: number | null;
44260
+ email?: string | null;
44261
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44262
+ exact_id?: string;
44263
+ exact_modified?: string | null;
44264
+ exact_timestamp?: number | null;
44265
+ id?: string;
44266
+ is_active?: boolean;
44267
+ name?: string | null;
44268
+ phone?: string | null;
44269
+ postcode?: string | null;
44270
+ raw?: import("../integrations/supabase/types").Json | null;
44271
+ status?: string | null;
44272
+ updated_at?: string;
44273
+ vat_number?: string | null;
44274
+ website?: string | null;
44275
+ };
44276
+ Relationships: [];
44277
+ };
44278
+ exact_auth_divisions: {
44279
+ Row: {
44280
+ account_key: string;
44281
+ company_name: string | null;
44282
+ created_at: string;
44283
+ division_code: number | null;
44284
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44285
+ id: string;
44286
+ last_synced_at: string | null;
44287
+ updated_at: string;
44288
+ };
44289
+ Insert: {
44290
+ account_key?: string;
44291
+ company_name?: string | null;
44292
+ created_at?: string;
44293
+ division_code?: number | null;
44294
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44295
+ id?: string;
44296
+ last_synced_at?: string | null;
44297
+ updated_at?: string;
44298
+ };
44299
+ Update: {
44300
+ account_key?: string;
44301
+ company_name?: string | null;
44302
+ created_at?: string;
44303
+ division_code?: number | null;
44304
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44305
+ id?: string;
44306
+ last_synced_at?: string | null;
44307
+ updated_at?: string;
44308
+ };
44309
+ Relationships: [];
44310
+ };
44311
+ exact_auth_invoice_lines: {
44312
+ Row: {
44313
+ account_key: string;
44314
+ amount_excl: number | null;
44315
+ created_at: string;
44316
+ description: string | null;
44317
+ discount: number | null;
44318
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44319
+ exact_id: string;
44320
+ exact_timestamp: number | null;
44321
+ id: string;
44322
+ invoice_exact_id: string;
44323
+ item_code: string | null;
44324
+ item_exact_id: string | null;
44325
+ line_number: number | null;
44326
+ quantity: number | null;
44327
+ raw: import("../integrations/supabase/types").Json | null;
44328
+ unit_price: number | null;
44329
+ updated_at: string;
44330
+ vat_amount: number | null;
44331
+ vat_code: string | null;
44332
+ };
44333
+ Insert: {
44334
+ account_key?: string;
44335
+ amount_excl?: number | null;
44336
+ created_at?: string;
44337
+ description?: string | null;
44338
+ discount?: number | null;
44339
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44340
+ exact_id: string;
44341
+ exact_timestamp?: number | null;
44342
+ id?: string;
44343
+ invoice_exact_id: string;
44344
+ item_code?: string | null;
44345
+ item_exact_id?: string | null;
44346
+ line_number?: number | null;
44347
+ quantity?: number | null;
44348
+ raw?: import("../integrations/supabase/types").Json | null;
44349
+ unit_price?: number | null;
44350
+ updated_at?: string;
44351
+ vat_amount?: number | null;
44352
+ vat_code?: string | null;
44353
+ };
44354
+ Update: {
44355
+ account_key?: string;
44356
+ amount_excl?: number | null;
44357
+ created_at?: string;
44358
+ description?: string | null;
44359
+ discount?: number | null;
44360
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44361
+ exact_id?: string;
44362
+ exact_timestamp?: number | null;
44363
+ id?: string;
44364
+ invoice_exact_id?: string;
44365
+ item_code?: string | null;
44366
+ item_exact_id?: string | null;
44367
+ line_number?: number | null;
44368
+ quantity?: number | null;
44369
+ raw?: import("../integrations/supabase/types").Json | null;
44370
+ unit_price?: number | null;
44371
+ updated_at?: string;
44372
+ vat_amount?: number | null;
44373
+ vat_code?: string | null;
44374
+ };
44375
+ Relationships: [];
44376
+ };
44377
+ exact_auth_invoices: {
44378
+ Row: {
44379
+ account_key: string;
44380
+ amount_excl: number | null;
44381
+ amount_incl: number | null;
44382
+ amount_open: number | null;
44383
+ created_at: string;
44384
+ currency: string | null;
44385
+ customer_code: string | null;
44386
+ customer_exact_id: string | null;
44387
+ customer_name: string | null;
44388
+ description: string | null;
44389
+ division_code: number | null;
44390
+ due_date: string | null;
44391
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44392
+ exact_id: string;
44393
+ exact_modified: string | null;
44394
+ exact_timestamp: number | null;
44395
+ id: string;
44396
+ invoice_date: string | null;
44397
+ invoice_number: string | null;
44398
+ order_number: string | null;
44399
+ paid_at: string | null;
44400
+ payment_status: string;
44401
+ raw: import("../integrations/supabase/types").Json | null;
44402
+ receivable_synced_at: string | null;
44403
+ status_code: number | null;
44404
+ updated_at: string;
44405
+ };
44406
+ Insert: {
44407
+ account_key?: string;
44408
+ amount_excl?: number | null;
44409
+ amount_incl?: number | null;
44410
+ amount_open?: number | null;
44411
+ created_at?: string;
44412
+ currency?: string | null;
44413
+ customer_code?: string | null;
44414
+ customer_exact_id?: string | null;
44415
+ customer_name?: string | null;
44416
+ description?: string | null;
44417
+ division_code?: number | null;
44418
+ due_date?: string | null;
44419
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44420
+ exact_id: string;
44421
+ exact_modified?: string | null;
44422
+ exact_timestamp?: number | null;
44423
+ id?: string;
44424
+ invoice_date?: string | null;
44425
+ invoice_number?: string | null;
44426
+ order_number?: string | null;
44427
+ paid_at?: string | null;
44428
+ payment_status?: string;
44429
+ raw?: import("../integrations/supabase/types").Json | null;
44430
+ receivable_synced_at?: string | null;
44431
+ status_code?: number | null;
44432
+ updated_at?: string;
44433
+ };
44434
+ Update: {
44435
+ account_key?: string;
44436
+ amount_excl?: number | null;
44437
+ amount_incl?: number | null;
44438
+ amount_open?: number | null;
44439
+ created_at?: string;
44440
+ currency?: string | null;
44441
+ customer_code?: string | null;
44442
+ customer_exact_id?: string | null;
44443
+ customer_name?: string | null;
44444
+ description?: string | null;
44445
+ division_code?: number | null;
44446
+ due_date?: string | null;
44447
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44448
+ exact_id?: string;
44449
+ exact_modified?: string | null;
44450
+ exact_timestamp?: number | null;
44451
+ id?: string;
44452
+ invoice_date?: string | null;
44453
+ invoice_number?: string | null;
44454
+ order_number?: string | null;
44455
+ paid_at?: string | null;
44456
+ payment_status?: string;
44457
+ raw?: import("../integrations/supabase/types").Json | null;
44458
+ receivable_synced_at?: string | null;
44459
+ status_code?: number | null;
44460
+ updated_at?: string;
44461
+ };
44462
+ Relationships: [];
44463
+ };
44464
+ exact_auth_items: {
44465
+ Row: {
44466
+ account_key: string;
44467
+ barcode: string | null;
44468
+ code: string | null;
44469
+ cost_price: number | null;
44470
+ created_at: string;
44471
+ description: string | null;
44472
+ division_code: number | null;
44473
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44474
+ exact_id: string;
44475
+ exact_modified: string | null;
44476
+ exact_timestamp: number | null;
44477
+ gl_account_code: string | null;
44478
+ id: string;
44479
+ is_active: boolean;
44480
+ is_sales_item: boolean | null;
44481
+ item_type: string | null;
44482
+ raw: import("../integrations/supabase/types").Json | null;
44483
+ sales_price: number | null;
44484
+ unit: string | null;
44485
+ updated_at: string;
44486
+ vat_code: string | null;
44487
+ };
44488
+ Insert: {
44489
+ account_key?: string;
44490
+ barcode?: string | null;
44491
+ code?: string | null;
44492
+ cost_price?: number | null;
44493
+ created_at?: string;
44494
+ description?: string | null;
44495
+ division_code?: number | null;
44496
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44497
+ exact_id: string;
44498
+ exact_modified?: string | null;
44499
+ exact_timestamp?: number | null;
44500
+ gl_account_code?: string | null;
44501
+ id?: string;
44502
+ is_active?: boolean;
44503
+ is_sales_item?: boolean | null;
44504
+ item_type?: string | null;
44505
+ raw?: import("../integrations/supabase/types").Json | null;
44506
+ sales_price?: number | null;
44507
+ unit?: string | null;
44508
+ updated_at?: string;
44509
+ vat_code?: string | null;
44510
+ };
44511
+ Update: {
44512
+ account_key?: string;
44513
+ barcode?: string | null;
44514
+ code?: string | null;
44515
+ cost_price?: number | null;
44516
+ created_at?: string;
44517
+ description?: string | null;
44518
+ division_code?: number | null;
44519
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44520
+ exact_id?: string;
44521
+ exact_modified?: string | null;
44522
+ exact_timestamp?: number | null;
44523
+ gl_account_code?: string | null;
44524
+ id?: string;
44525
+ is_active?: boolean;
44526
+ is_sales_item?: boolean | null;
44527
+ item_type?: string | null;
44528
+ raw?: import("../integrations/supabase/types").Json | null;
44529
+ sales_price?: number | null;
44530
+ unit?: string | null;
44531
+ updated_at?: string;
44532
+ vat_code?: string | null;
44533
+ };
44534
+ Relationships: [];
44535
+ };
44536
+ exact_auth_sync_log: {
44537
+ Row: {
44538
+ account_key: string;
44539
+ calls_used: number;
44540
+ created_at: string;
44541
+ domain: string;
44542
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44543
+ error: string | null;
44544
+ finished_at: string | null;
44545
+ id: string;
44546
+ ok: boolean;
44547
+ records: number;
44548
+ started_at: string;
44549
+ };
44550
+ Insert: {
44551
+ account_key?: string;
44552
+ calls_used?: number;
44553
+ created_at?: string;
44554
+ domain: string;
44555
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44556
+ error?: string | null;
44557
+ finished_at?: string | null;
44558
+ id?: string;
44559
+ ok?: boolean;
44560
+ records?: number;
44561
+ started_at?: string;
44562
+ };
44563
+ Update: {
44564
+ account_key?: string;
44565
+ calls_used?: number;
44566
+ created_at?: string;
44567
+ domain?: string;
44568
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44569
+ error?: string | null;
44570
+ finished_at?: string | null;
44571
+ id?: string;
44572
+ ok?: boolean;
44573
+ records?: number;
44574
+ started_at?: string;
44575
+ };
44576
+ Relationships: [];
44577
+ };
44578
+ exact_auth_sync_state: {
44579
+ Row: {
44580
+ account_key: string;
44581
+ created_at: string;
44582
+ cursor_timestamp: number;
44583
+ division_code: number | null;
44584
+ domain: string;
44585
+ duration_ms: number | null;
44586
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44587
+ initial_sync_done: boolean;
44588
+ last_error: string | null;
44589
+ last_run_at: string | null;
44590
+ last_success_at: string | null;
44591
+ locked_at: string | null;
44592
+ needs_initial_sync: boolean;
44593
+ record_count: number;
44594
+ updated_at: string;
44595
+ };
44596
+ Insert: {
44597
+ account_key?: string;
44598
+ created_at?: string;
44599
+ cursor_timestamp?: number;
44600
+ division_code?: number | null;
44601
+ domain: string;
44602
+ duration_ms?: number | null;
44603
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44604
+ initial_sync_done?: boolean;
44605
+ last_error?: string | null;
44606
+ last_run_at?: string | null;
44607
+ last_success_at?: string | null;
44608
+ locked_at?: string | null;
44609
+ needs_initial_sync?: boolean;
44610
+ record_count?: number;
44611
+ updated_at?: string;
44612
+ };
44613
+ Update: {
44614
+ account_key?: string;
44615
+ created_at?: string;
44616
+ cursor_timestamp?: number;
44617
+ division_code?: number | null;
44618
+ domain?: string;
44619
+ duration_ms?: number | null;
44620
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44621
+ initial_sync_done?: boolean;
44622
+ last_error?: string | null;
44623
+ last_run_at?: string | null;
44624
+ last_success_at?: string | null;
44625
+ locked_at?: string | null;
44626
+ needs_initial_sync?: boolean;
44627
+ record_count?: number;
44628
+ updated_at?: string;
44629
+ };
44630
+ Relationships: [];
44631
+ };
43099
44632
  exact_bulk_operation_items: {
43100
44633
  Row: {
43101
44634
  attempts: number;
@@ -57488,6 +59021,21 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
57488
59021
  Args: never;
57489
59022
  Returns: string;
57490
59023
  };
59024
+ exact_auth_consume_calls: {
59025
+ Args: {
59026
+ _account_key: string;
59027
+ _calls?: number;
59028
+ _day_limit?: number;
59029
+ _division_code: number;
59030
+ _environment: string;
59031
+ _minute_limit?: number;
59032
+ };
59033
+ Returns: import("../integrations/supabase/types").Json;
59034
+ };
59035
+ exact_auth_prune_sync_log: {
59036
+ Args: never;
59037
+ Returns: undefined;
59038
+ };
57491
59039
  exact_decrypt: {
57492
59040
  Args: {
57493
59041
  cipher: string;