@flowselections/floriday-verkoop-module 1.0.38 → 1.0.40

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 (58) hide show
  1. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +50 -87
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +849 -60
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +849 -60
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +849 -60
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +830 -39
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-lock.functions.d.ts +849 -60
  12. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-planning-settings.functions.d.ts +8679 -0
  14. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-replan.functions.d.ts +2565 -198
  16. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/create-order.functions.d.ts +11835 -0
  18. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +2565 -198
  20. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +849 -60
  22. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-mirror.functions.d.ts +849 -60
  24. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-public.functions.d.ts +5523 -0
  26. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-writes.functions.d.ts +4505 -560
  28. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/load-carriers.functions.d.ts +849 -60
  30. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logistics-engine.functions.d.ts +4511 -562
  32. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-stock.functions.d.ts +1578 -0
  34. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/order-addresses.functions.d.ts +849 -60
  36. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/order-buffers.functions.d.ts +2565 -198
  38. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/order-carrier.functions.d.ts +1578 -0
  40. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/order-pickup.functions.d.ts +1578 -0
  42. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/order-shipments.functions.d.ts +3535 -379
  44. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/salesorders-list.functions.d.ts +20393 -0
  46. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -0
  47. package/dist-lib/lib/salesorders-list.functions.js +21 -0
  48. package/dist-lib/lib/salesorders-list.server.d.ts +28 -0
  49. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -0
  50. package/dist-lib/lib/salesorders-list.server.js +713 -0
  51. package/dist-lib/lib/salesorders.functions.d.ts +4505 -560
  52. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/tradeitems.functions.d.ts +849 -60
  54. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/useSalesOrdersQuery.d.ts +24 -3
  56. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  57. package/dist-lib/lib/useSalesOrdersQuery.js +49 -594
  58. package/package.json +2 -2
@@ -1894,6 +1894,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
1894
1894
  referencedColumns: ["id"];
1895
1895
  }];
1896
1896
  };
1897
+ customer_notes: {
1898
+ Row: {
1899
+ created_at: string;
1900
+ customer_id: string | null;
1901
+ group_key: string | null;
1902
+ id: string;
1903
+ notes: string | null;
1904
+ updated_at: string;
1905
+ };
1906
+ Insert: {
1907
+ created_at?: string;
1908
+ customer_id?: string | null;
1909
+ group_key?: string | null;
1910
+ id?: string;
1911
+ notes?: string | null;
1912
+ updated_at?: string;
1913
+ };
1914
+ Update: {
1915
+ created_at?: string;
1916
+ customer_id?: string | null;
1917
+ group_key?: string | null;
1918
+ id?: string;
1919
+ notes?: string | null;
1920
+ updated_at?: string;
1921
+ };
1922
+ Relationships: [{
1923
+ foreignKeyName: "customer_notes_customer_id_fkey";
1924
+ columns: ["customer_id"];
1925
+ isOneToOne: true;
1926
+ referencedRelation: "customers";
1927
+ referencedColumns: ["id"];
1928
+ }];
1929
+ };
1897
1930
  customer_price_group_members: {
1898
1931
  Row: {
1899
1932
  created_at: string;
@@ -3538,6 +3571,474 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3538
3571
  referencedColumns: ["id"];
3539
3572
  }];
3540
3573
  };
3574
+ exact_auth_call_budget: {
3575
+ Row: {
3576
+ account_key: string;
3577
+ day_count: number;
3578
+ day_date: string;
3579
+ division_code: number;
3580
+ environment: string;
3581
+ minute_count: number;
3582
+ minute_window: string;
3583
+ updated_at: string;
3584
+ };
3585
+ Insert: {
3586
+ account_key?: string;
3587
+ day_count?: number;
3588
+ day_date?: string;
3589
+ division_code?: number;
3590
+ environment: string;
3591
+ minute_count?: number;
3592
+ minute_window?: string;
3593
+ updated_at?: string;
3594
+ };
3595
+ Update: {
3596
+ account_key?: string;
3597
+ day_count?: number;
3598
+ day_date?: string;
3599
+ division_code?: number;
3600
+ environment?: string;
3601
+ minute_count?: number;
3602
+ minute_window?: string;
3603
+ updated_at?: string;
3604
+ };
3605
+ Relationships: [];
3606
+ };
3607
+ exact_auth_customers: {
3608
+ Row: {
3609
+ account_key: string;
3610
+ address_line1: string | null;
3611
+ chamber_of_commerce: string | null;
3612
+ city: string | null;
3613
+ code: string | null;
3614
+ country: string | null;
3615
+ created_at: string;
3616
+ currency: string | null;
3617
+ division_code: number | null;
3618
+ email: string | null;
3619
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3620
+ exact_id: string;
3621
+ exact_modified: string | null;
3622
+ exact_timestamp: number | null;
3623
+ id: string;
3624
+ is_active: boolean;
3625
+ name: string | null;
3626
+ phone: string | null;
3627
+ postcode: string | null;
3628
+ raw: import("../integrations/supabase/types").Json | null;
3629
+ status: string | null;
3630
+ updated_at: string;
3631
+ vat_number: string | null;
3632
+ website: string | null;
3633
+ };
3634
+ Insert: {
3635
+ account_key?: string;
3636
+ address_line1?: string | null;
3637
+ chamber_of_commerce?: string | null;
3638
+ city?: string | null;
3639
+ code?: string | null;
3640
+ country?: string | null;
3641
+ created_at?: string;
3642
+ currency?: string | null;
3643
+ division_code?: number | null;
3644
+ email?: string | null;
3645
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3646
+ exact_id: string;
3647
+ exact_modified?: string | null;
3648
+ exact_timestamp?: number | null;
3649
+ id?: string;
3650
+ is_active?: boolean;
3651
+ name?: string | null;
3652
+ phone?: string | null;
3653
+ postcode?: string | null;
3654
+ raw?: import("../integrations/supabase/types").Json | null;
3655
+ status?: string | null;
3656
+ updated_at?: string;
3657
+ vat_number?: string | null;
3658
+ website?: string | null;
3659
+ };
3660
+ Update: {
3661
+ account_key?: string;
3662
+ address_line1?: string | null;
3663
+ chamber_of_commerce?: string | null;
3664
+ city?: string | null;
3665
+ code?: string | null;
3666
+ country?: string | null;
3667
+ created_at?: string;
3668
+ currency?: string | null;
3669
+ division_code?: number | null;
3670
+ email?: string | null;
3671
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3672
+ exact_id?: string;
3673
+ exact_modified?: string | null;
3674
+ exact_timestamp?: number | null;
3675
+ id?: string;
3676
+ is_active?: boolean;
3677
+ name?: string | null;
3678
+ phone?: string | null;
3679
+ postcode?: string | null;
3680
+ raw?: import("../integrations/supabase/types").Json | null;
3681
+ status?: string | null;
3682
+ updated_at?: string;
3683
+ vat_number?: string | null;
3684
+ website?: string | null;
3685
+ };
3686
+ Relationships: [];
3687
+ };
3688
+ exact_auth_divisions: {
3689
+ Row: {
3690
+ account_key: string;
3691
+ company_name: string | null;
3692
+ created_at: string;
3693
+ division_code: number | null;
3694
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3695
+ id: string;
3696
+ last_synced_at: string | null;
3697
+ updated_at: string;
3698
+ };
3699
+ Insert: {
3700
+ account_key?: string;
3701
+ company_name?: string | null;
3702
+ created_at?: string;
3703
+ division_code?: number | null;
3704
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3705
+ id?: string;
3706
+ last_synced_at?: string | null;
3707
+ updated_at?: string;
3708
+ };
3709
+ Update: {
3710
+ account_key?: string;
3711
+ company_name?: string | null;
3712
+ created_at?: string;
3713
+ division_code?: number | null;
3714
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3715
+ id?: string;
3716
+ last_synced_at?: string | null;
3717
+ updated_at?: string;
3718
+ };
3719
+ Relationships: [];
3720
+ };
3721
+ exact_auth_invoice_lines: {
3722
+ Row: {
3723
+ account_key: string;
3724
+ amount_excl: number | null;
3725
+ created_at: string;
3726
+ description: string | null;
3727
+ discount: number | null;
3728
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3729
+ exact_id: string;
3730
+ exact_timestamp: number | null;
3731
+ id: string;
3732
+ invoice_exact_id: string;
3733
+ item_code: string | null;
3734
+ item_exact_id: string | null;
3735
+ line_number: number | null;
3736
+ quantity: number | null;
3737
+ raw: import("../integrations/supabase/types").Json | null;
3738
+ unit_price: number | null;
3739
+ updated_at: string;
3740
+ vat_amount: number | null;
3741
+ vat_code: string | null;
3742
+ };
3743
+ Insert: {
3744
+ account_key?: string;
3745
+ amount_excl?: number | null;
3746
+ created_at?: string;
3747
+ description?: string | null;
3748
+ discount?: number | null;
3749
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3750
+ exact_id: string;
3751
+ exact_timestamp?: number | null;
3752
+ id?: string;
3753
+ invoice_exact_id: string;
3754
+ item_code?: string | null;
3755
+ item_exact_id?: string | null;
3756
+ line_number?: number | null;
3757
+ quantity?: number | null;
3758
+ raw?: import("../integrations/supabase/types").Json | null;
3759
+ unit_price?: number | null;
3760
+ updated_at?: string;
3761
+ vat_amount?: number | null;
3762
+ vat_code?: string | null;
3763
+ };
3764
+ Update: {
3765
+ account_key?: string;
3766
+ amount_excl?: number | null;
3767
+ created_at?: string;
3768
+ description?: string | null;
3769
+ discount?: number | null;
3770
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3771
+ exact_id?: string;
3772
+ exact_timestamp?: number | null;
3773
+ id?: string;
3774
+ invoice_exact_id?: string;
3775
+ item_code?: string | null;
3776
+ item_exact_id?: string | null;
3777
+ line_number?: number | null;
3778
+ quantity?: number | null;
3779
+ raw?: import("../integrations/supabase/types").Json | null;
3780
+ unit_price?: number | null;
3781
+ updated_at?: string;
3782
+ vat_amount?: number | null;
3783
+ vat_code?: string | null;
3784
+ };
3785
+ Relationships: [];
3786
+ };
3787
+ exact_auth_invoices: {
3788
+ Row: {
3789
+ account_key: string;
3790
+ amount_excl: number | null;
3791
+ amount_incl: number | null;
3792
+ amount_open: number | null;
3793
+ created_at: string;
3794
+ currency: string | null;
3795
+ customer_code: string | null;
3796
+ customer_exact_id: string | null;
3797
+ customer_name: string | null;
3798
+ description: string | null;
3799
+ division_code: number | null;
3800
+ due_date: string | null;
3801
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3802
+ exact_id: string;
3803
+ exact_modified: string | null;
3804
+ exact_timestamp: number | null;
3805
+ id: string;
3806
+ invoice_date: string | null;
3807
+ invoice_number: string | null;
3808
+ order_number: string | null;
3809
+ paid_at: string | null;
3810
+ payment_status: string;
3811
+ raw: import("../integrations/supabase/types").Json | null;
3812
+ receivable_synced_at: string | null;
3813
+ status_code: number | null;
3814
+ updated_at: string;
3815
+ };
3816
+ Insert: {
3817
+ account_key?: string;
3818
+ amount_excl?: number | null;
3819
+ amount_incl?: number | null;
3820
+ amount_open?: number | null;
3821
+ created_at?: string;
3822
+ currency?: string | null;
3823
+ customer_code?: string | null;
3824
+ customer_exact_id?: string | null;
3825
+ customer_name?: string | null;
3826
+ description?: string | null;
3827
+ division_code?: number | null;
3828
+ due_date?: string | null;
3829
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3830
+ exact_id: string;
3831
+ exact_modified?: string | null;
3832
+ exact_timestamp?: number | null;
3833
+ id?: string;
3834
+ invoice_date?: string | null;
3835
+ invoice_number?: string | null;
3836
+ order_number?: string | null;
3837
+ paid_at?: string | null;
3838
+ payment_status?: string;
3839
+ raw?: import("../integrations/supabase/types").Json | null;
3840
+ receivable_synced_at?: string | null;
3841
+ status_code?: number | null;
3842
+ updated_at?: string;
3843
+ };
3844
+ Update: {
3845
+ account_key?: string;
3846
+ amount_excl?: number | null;
3847
+ amount_incl?: number | null;
3848
+ amount_open?: number | null;
3849
+ created_at?: string;
3850
+ currency?: string | null;
3851
+ customer_code?: string | null;
3852
+ customer_exact_id?: string | null;
3853
+ customer_name?: string | null;
3854
+ description?: string | null;
3855
+ division_code?: number | null;
3856
+ due_date?: string | null;
3857
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3858
+ exact_id?: string;
3859
+ exact_modified?: string | null;
3860
+ exact_timestamp?: number | null;
3861
+ id?: string;
3862
+ invoice_date?: string | null;
3863
+ invoice_number?: string | null;
3864
+ order_number?: string | null;
3865
+ paid_at?: string | null;
3866
+ payment_status?: string;
3867
+ raw?: import("../integrations/supabase/types").Json | null;
3868
+ receivable_synced_at?: string | null;
3869
+ status_code?: number | null;
3870
+ updated_at?: string;
3871
+ };
3872
+ Relationships: [];
3873
+ };
3874
+ exact_auth_items: {
3875
+ Row: {
3876
+ account_key: string;
3877
+ barcode: string | null;
3878
+ code: string | null;
3879
+ cost_price: number | null;
3880
+ created_at: string;
3881
+ description: string | null;
3882
+ division_code: number | null;
3883
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3884
+ exact_id: string;
3885
+ exact_modified: string | null;
3886
+ exact_timestamp: number | null;
3887
+ gl_account_code: string | null;
3888
+ id: string;
3889
+ is_active: boolean;
3890
+ is_sales_item: boolean | null;
3891
+ item_type: string | null;
3892
+ raw: import("../integrations/supabase/types").Json | null;
3893
+ sales_price: number | null;
3894
+ unit: string | null;
3895
+ updated_at: string;
3896
+ vat_code: string | null;
3897
+ };
3898
+ Insert: {
3899
+ account_key?: string;
3900
+ barcode?: string | null;
3901
+ code?: string | null;
3902
+ cost_price?: number | null;
3903
+ created_at?: string;
3904
+ description?: string | null;
3905
+ division_code?: number | null;
3906
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3907
+ exact_id: string;
3908
+ exact_modified?: string | null;
3909
+ exact_timestamp?: number | null;
3910
+ gl_account_code?: string | null;
3911
+ id?: string;
3912
+ is_active?: boolean;
3913
+ is_sales_item?: boolean | null;
3914
+ item_type?: string | null;
3915
+ raw?: import("../integrations/supabase/types").Json | null;
3916
+ sales_price?: number | null;
3917
+ unit?: string | null;
3918
+ updated_at?: string;
3919
+ vat_code?: string | null;
3920
+ };
3921
+ Update: {
3922
+ account_key?: string;
3923
+ barcode?: string | null;
3924
+ code?: string | null;
3925
+ cost_price?: number | null;
3926
+ created_at?: string;
3927
+ description?: string | null;
3928
+ division_code?: number | null;
3929
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3930
+ exact_id?: string;
3931
+ exact_modified?: string | null;
3932
+ exact_timestamp?: number | null;
3933
+ gl_account_code?: string | null;
3934
+ id?: string;
3935
+ is_active?: boolean;
3936
+ is_sales_item?: boolean | null;
3937
+ item_type?: string | null;
3938
+ raw?: import("../integrations/supabase/types").Json | null;
3939
+ sales_price?: number | null;
3940
+ unit?: string | null;
3941
+ updated_at?: string;
3942
+ vat_code?: string | null;
3943
+ };
3944
+ Relationships: [];
3945
+ };
3946
+ exact_auth_sync_log: {
3947
+ Row: {
3948
+ account_key: string;
3949
+ calls_used: number;
3950
+ created_at: string;
3951
+ domain: string;
3952
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3953
+ error: string | null;
3954
+ finished_at: string | null;
3955
+ id: string;
3956
+ ok: boolean;
3957
+ records: number;
3958
+ started_at: string;
3959
+ };
3960
+ Insert: {
3961
+ account_key?: string;
3962
+ calls_used?: number;
3963
+ created_at?: string;
3964
+ domain: string;
3965
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3966
+ error?: string | null;
3967
+ finished_at?: string | null;
3968
+ id?: string;
3969
+ ok?: boolean;
3970
+ records?: number;
3971
+ started_at?: string;
3972
+ };
3973
+ Update: {
3974
+ account_key?: string;
3975
+ calls_used?: number;
3976
+ created_at?: string;
3977
+ domain?: string;
3978
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3979
+ error?: string | null;
3980
+ finished_at?: string | null;
3981
+ id?: string;
3982
+ ok?: boolean;
3983
+ records?: number;
3984
+ started_at?: string;
3985
+ };
3986
+ Relationships: [];
3987
+ };
3988
+ exact_auth_sync_state: {
3989
+ Row: {
3990
+ account_key: string;
3991
+ created_at: string;
3992
+ cursor_timestamp: number;
3993
+ division_code: number | null;
3994
+ domain: string;
3995
+ duration_ms: number | null;
3996
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3997
+ initial_sync_done: boolean;
3998
+ last_error: string | null;
3999
+ last_run_at: string | null;
4000
+ last_success_at: string | null;
4001
+ locked_at: string | null;
4002
+ needs_initial_sync: boolean;
4003
+ record_count: number;
4004
+ updated_at: string;
4005
+ };
4006
+ Insert: {
4007
+ account_key?: string;
4008
+ created_at?: string;
4009
+ cursor_timestamp?: number;
4010
+ division_code?: number | null;
4011
+ domain: string;
4012
+ duration_ms?: number | null;
4013
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4014
+ initial_sync_done?: boolean;
4015
+ last_error?: string | null;
4016
+ last_run_at?: string | null;
4017
+ last_success_at?: string | null;
4018
+ locked_at?: string | null;
4019
+ needs_initial_sync?: boolean;
4020
+ record_count?: number;
4021
+ updated_at?: string;
4022
+ };
4023
+ Update: {
4024
+ account_key?: string;
4025
+ created_at?: string;
4026
+ cursor_timestamp?: number;
4027
+ division_code?: number | null;
4028
+ domain?: string;
4029
+ duration_ms?: number | null;
4030
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4031
+ initial_sync_done?: boolean;
4032
+ last_error?: string | null;
4033
+ last_run_at?: string | null;
4034
+ last_success_at?: string | null;
4035
+ locked_at?: string | null;
4036
+ needs_initial_sync?: boolean;
4037
+ record_count?: number;
4038
+ updated_at?: string;
4039
+ };
4040
+ Relationships: [];
4041
+ };
3541
4042
  exact_bulk_operation_items: {
3542
4043
  Row: {
3543
4044
  attempts: number;
@@ -8200,6 +8701,66 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8200
8701
  };
8201
8702
  Relationships: [];
8202
8703
  };
8704
+ logistics_recalc_jobs: {
8705
+ Row: {
8706
+ carts_created: number;
8707
+ created_at: string;
8708
+ cursor: string | null;
8709
+ errors: import("../integrations/supabase/types").Json;
8710
+ failed: number;
8711
+ finished_at: string | null;
8712
+ id: string;
8713
+ last_tick_at: string | null;
8714
+ phase: string;
8715
+ processed: number;
8716
+ skipped_locked: number;
8717
+ started_by: string | null;
8718
+ status: string;
8719
+ steps: import("../integrations/supabase/types").Json;
8720
+ strategy_id: string | null;
8721
+ tasks_updated: number;
8722
+ updated_at: string;
8723
+ };
8724
+ Insert: {
8725
+ carts_created?: number;
8726
+ created_at?: string;
8727
+ cursor?: string | null;
8728
+ errors?: import("../integrations/supabase/types").Json;
8729
+ failed?: number;
8730
+ finished_at?: string | null;
8731
+ id?: string;
8732
+ last_tick_at?: string | null;
8733
+ phase?: string;
8734
+ processed?: number;
8735
+ skipped_locked?: number;
8736
+ started_by?: string | null;
8737
+ status?: string;
8738
+ steps?: import("../integrations/supabase/types").Json;
8739
+ strategy_id?: string | null;
8740
+ tasks_updated?: number;
8741
+ updated_at?: string;
8742
+ };
8743
+ Update: {
8744
+ carts_created?: number;
8745
+ created_at?: string;
8746
+ cursor?: string | null;
8747
+ errors?: import("../integrations/supabase/types").Json;
8748
+ failed?: number;
8749
+ finished_at?: string | null;
8750
+ id?: string;
8751
+ last_tick_at?: string | null;
8752
+ phase?: string;
8753
+ processed?: number;
8754
+ skipped_locked?: number;
8755
+ started_by?: string | null;
8756
+ status?: string;
8757
+ steps?: import("../integrations/supabase/types").Json;
8758
+ strategy_id?: string | null;
8759
+ tasks_updated?: number;
8760
+ updated_at?: string;
8761
+ };
8762
+ Relationships: [];
8763
+ };
8203
8764
  logistics_reschedules: {
8204
8765
  Row: {
8205
8766
  created_at: string;
@@ -8562,6 +9123,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8562
9123
  };
8563
9124
  logistics_tasks: {
8564
9125
  Row: {
9126
+ attempt_log: import("../integrations/supabase/types").Json;
9127
+ attempts: number;
8565
9128
  buffer_ref: string | null;
8566
9129
  claimed_at: string | null;
8567
9130
  claimed_by: string | null;
@@ -8571,6 +9134,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8571
9134
  due_at: string | null;
8572
9135
  error: string | null;
8573
9136
  id: string;
9137
+ last_error: string | null;
9138
+ next_attempt_at: string | null;
8574
9139
  order_ref: string;
8575
9140
  owner_module: string;
8576
9141
  payload: import("../integrations/supabase/types").Json;
@@ -8591,6 +9156,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8591
9156
  user_id: string;
8592
9157
  };
8593
9158
  Insert: {
9159
+ attempt_log?: import("../integrations/supabase/types").Json;
9160
+ attempts?: number;
8594
9161
  buffer_ref?: string | null;
8595
9162
  claimed_at?: string | null;
8596
9163
  claimed_by?: string | null;
@@ -8600,6 +9167,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8600
9167
  due_at?: string | null;
8601
9168
  error?: string | null;
8602
9169
  id?: string;
9170
+ last_error?: string | null;
9171
+ next_attempt_at?: string | null;
8603
9172
  order_ref: string;
8604
9173
  owner_module: string;
8605
9174
  payload?: import("../integrations/supabase/types").Json;
@@ -8620,6 +9189,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8620
9189
  user_id?: string;
8621
9190
  };
8622
9191
  Update: {
9192
+ attempt_log?: import("../integrations/supabase/types").Json;
9193
+ attempts?: number;
8623
9194
  buffer_ref?: string | null;
8624
9195
  claimed_at?: string | null;
8625
9196
  claimed_by?: string | null;
@@ -8629,6 +9200,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8629
9200
  due_at?: string | null;
8630
9201
  error?: string | null;
8631
9202
  id?: string;
9203
+ last_error?: string | null;
9204
+ next_attempt_at?: string | null;
8632
9205
  order_ref?: string;
8633
9206
  owner_module?: string;
8634
9207
  payload?: import("../integrations/supabase/types").Json;
@@ -9978,6 +10551,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9978
10551
  };
9979
10552
  offer_settings: {
9980
10553
  Row: {
10554
+ brand_name: string | null;
9981
10555
  button_color: string;
9982
10556
  created_at: string;
9983
10557
  default_countries: string[];
@@ -9999,6 +10573,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9999
10573
  updated_at: string;
10000
10574
  };
10001
10575
  Insert: {
10576
+ brand_name?: string | null;
10002
10577
  button_color?: string;
10003
10578
  created_at?: string;
10004
10579
  default_countries?: string[];
@@ -10020,6 +10595,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10020
10595
  updated_at?: string;
10021
10596
  };
10022
10597
  Update: {
10598
+ brand_name?: string | null;
10023
10599
  button_color?: string;
10024
10600
  created_at?: string;
10025
10601
  default_countries?: string[];
@@ -13429,6 +14005,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13429
14005
  buffer_key: string | null;
13430
14006
  created_at: string;
13431
14007
  customer_names: string[];
14008
+ device_id: string | null;
13432
14009
  geprint: boolean;
13433
14010
  geprint_op: string | null;
13434
14011
  id: string;
@@ -13438,6 +14015,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13438
14015
  naar_pickstation: boolean;
13439
14016
  naar_pickstation_op: string | null;
13440
14017
  order_number: string | null;
14018
+ scanner_id: string | null;
13441
14019
  scanner_key: string;
13442
14020
  status: string;
13443
14021
  totaal_producten: number;
@@ -13448,6 +14026,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13448
14026
  buffer_key?: string | null;
13449
14027
  created_at?: string;
13450
14028
  customer_names?: string[];
14029
+ device_id?: string | null;
13451
14030
  geprint?: boolean;
13452
14031
  geprint_op?: string | null;
13453
14032
  id?: string;
@@ -13457,6 +14036,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13457
14036
  naar_pickstation?: boolean;
13458
14037
  naar_pickstation_op?: string | null;
13459
14038
  order_number?: string | null;
14039
+ scanner_id?: string | null;
13460
14040
  scanner_key?: string;
13461
14041
  status?: string;
13462
14042
  totaal_producten?: number;
@@ -13467,6 +14047,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13467
14047
  buffer_key?: string | null;
13468
14048
  created_at?: string;
13469
14049
  customer_names?: string[];
14050
+ device_id?: string | null;
13470
14051
  geprint?: boolean;
13471
14052
  geprint_op?: string | null;
13472
14053
  id?: string;
@@ -13476,6 +14057,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13476
14057
  naar_pickstation?: boolean;
13477
14058
  naar_pickstation_op?: string | null;
13478
14059
  order_number?: string | null;
14060
+ scanner_id?: string | null;
13479
14061
  scanner_key?: string;
13480
14062
  status?: string;
13481
14063
  totaal_producten?: number;
@@ -13487,31 +14069,46 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13487
14069
  Row: {
13488
14070
  code: string;
13489
14071
  created_at: string;
14072
+ device_id: string | null;
13490
14073
  id: string;
13491
14074
  kar_id: string | null;
14075
+ latency_ms: number | null;
14076
+ medewerker_naam: string | null;
13492
14077
  message: string | null;
13493
14078
  result: string;
14079
+ retry_count: number;
13494
14080
  scanner_key: string;
14081
+ session_id: string | null;
13495
14082
  user_id: string | null;
13496
14083
  };
13497
14084
  Insert: {
13498
14085
  code: string;
13499
14086
  created_at?: string;
14087
+ device_id?: string | null;
13500
14088
  id?: string;
13501
14089
  kar_id?: string | null;
14090
+ latency_ms?: number | null;
14091
+ medewerker_naam?: string | null;
13502
14092
  message?: string | null;
13503
14093
  result: string;
14094
+ retry_count?: number;
13504
14095
  scanner_key?: string;
14096
+ session_id?: string | null;
13505
14097
  user_id?: string | null;
13506
14098
  };
13507
14099
  Update: {
13508
14100
  code?: string;
13509
14101
  created_at?: string;
14102
+ device_id?: string | null;
13510
14103
  id?: string;
13511
14104
  kar_id?: string | null;
14105
+ latency_ms?: number | null;
14106
+ medewerker_naam?: string | null;
13512
14107
  message?: string | null;
13513
14108
  result?: string;
14109
+ retry_count?: number;
13514
14110
  scanner_key?: string;
14111
+ session_id?: string | null;
13515
14112
  user_id?: string | null;
13516
14113
  };
13517
14114
  Relationships: [];
@@ -13568,6 +14165,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13568
14165
  printed_at: string;
13569
14166
  status: string;
13570
14167
  updated_at: string;
14168
+ vergrendeld_door: string | null;
14169
+ vergrendeld_sessie: string | null;
14170
+ vergrendeld_tot: string | null;
13571
14171
  };
13572
14172
  Insert: {
13573
14173
  barcode: string;
@@ -13581,6 +14181,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13581
14181
  printed_at?: string;
13582
14182
  status?: string;
13583
14183
  updated_at?: string;
14184
+ vergrendeld_door?: string | null;
14185
+ vergrendeld_sessie?: string | null;
14186
+ vergrendeld_tot?: string | null;
13584
14187
  };
13585
14188
  Update: {
13586
14189
  barcode?: string;
@@ -13594,6 +14197,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13594
14197
  printed_at?: string;
13595
14198
  status?: string;
13596
14199
  updated_at?: string;
14200
+ vergrendeld_door?: string | null;
14201
+ vergrendeld_sessie?: string | null;
14202
+ vergrendeld_tot?: string | null;
13597
14203
  };
13598
14204
  Relationships: [];
13599
14205
  };
@@ -13602,31 +14208,40 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13602
14208
  actief: boolean;
13603
14209
  created_at: string;
13604
14210
  id: string;
14211
+ max_producten_per_kar: number | null;
13605
14212
  naam: string;
13606
14213
  omschrijving: string | null;
14214
+ pincode: string | null;
13607
14215
  slug: string;
13608
14216
  type: string;
13609
14217
  updated_at: string;
14218
+ vereist_medewerker: boolean;
13610
14219
  };
13611
14220
  Insert: {
13612
14221
  actief?: boolean;
13613
14222
  created_at?: string;
13614
14223
  id?: string;
14224
+ max_producten_per_kar?: number | null;
13615
14225
  naam: string;
13616
14226
  omschrijving?: string | null;
14227
+ pincode?: string | null;
13617
14228
  slug: string;
13618
14229
  type?: string;
13619
14230
  updated_at?: string;
14231
+ vereist_medewerker?: boolean;
13620
14232
  };
13621
14233
  Update: {
13622
14234
  actief?: boolean;
13623
14235
  created_at?: string;
13624
14236
  id?: string;
14237
+ max_producten_per_kar?: number | null;
13625
14238
  naam?: string;
13626
14239
  omschrijving?: string | null;
14240
+ pincode?: string | null;
13627
14241
  slug?: string;
13628
14242
  type?: string;
13629
14243
  updated_at?: string;
14244
+ vereist_medewerker?: boolean;
13630
14245
  };
13631
14246
  Relationships: [];
13632
14247
  };
@@ -17591,6 +18206,54 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17591
18206
  };
17592
18207
  Returns: import("../integrations/supabase/types").Json;
17593
18208
  };
18209
+ claim_logistics_tasks: {
18210
+ Args: {
18211
+ _limit?: number;
18212
+ _owner_module: string;
18213
+ _stale_minutes?: number;
18214
+ _task_type: string;
18215
+ _worker: string;
18216
+ };
18217
+ Returns: {
18218
+ attempt_log: import("../integrations/supabase/types").Json;
18219
+ attempts: number;
18220
+ buffer_ref: string | null;
18221
+ claimed_at: string | null;
18222
+ claimed_by: string | null;
18223
+ completed_at: string | null;
18224
+ created_at: string;
18225
+ depends_on: string[];
18226
+ due_at: string | null;
18227
+ error: string | null;
18228
+ id: string;
18229
+ last_error: string | null;
18230
+ next_attempt_at: string | null;
18231
+ order_ref: string;
18232
+ owner_module: string;
18233
+ payload: import("../integrations/supabase/types").Json;
18234
+ plan_run_id: string | null;
18235
+ planned_end: string | null;
18236
+ planned_start: string | null;
18237
+ priority: number;
18238
+ result: import("../integrations/supabase/types").Json | null;
18239
+ rule_config_id: string | null;
18240
+ rule_version: number | null;
18241
+ sequence: number;
18242
+ shadow: boolean;
18243
+ started_at: string | null;
18244
+ status: string;
18245
+ strategy_id: string | null;
18246
+ task_type: string;
18247
+ updated_at: string;
18248
+ user_id: string;
18249
+ }[];
18250
+ SetofOptions: {
18251
+ from: "*";
18252
+ to: "logistics_tasks";
18253
+ isOneToOne: false;
18254
+ isSetofReturn: true;
18255
+ };
18256
+ };
17594
18257
  claim_print_jobs: {
17595
18258
  Args: {
17596
18259
  _agent_id: string;
@@ -17831,6 +18494,21 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17831
18494
  Args: never;
17832
18495
  Returns: string;
17833
18496
  };
18497
+ exact_auth_consume_calls: {
18498
+ Args: {
18499
+ _account_key: string;
18500
+ _calls?: number;
18501
+ _day_limit?: number;
18502
+ _division_code: number;
18503
+ _environment: string;
18504
+ _minute_limit?: number;
18505
+ };
18506
+ Returns: import("../integrations/supabase/types").Json;
18507
+ };
18508
+ exact_auth_prune_sync_log: {
18509
+ Args: never;
18510
+ Returns: undefined;
18511
+ };
17834
18512
  exact_decrypt: {
17835
18513
  Args: {
17836
18514
  cipher: string;
@@ -18040,6 +18718,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18040
18718
  };
18041
18719
  Returns: number;
18042
18720
  };
18721
+ get_offer_branding: {
18722
+ Args: never;
18723
+ Returns: import("../integrations/supabase/types").Json;
18724
+ };
18043
18725
  get_offer_by_link_code: {
18044
18726
  Args: {
18045
18727
  p_code: string;
@@ -18211,6 +18893,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18211
18893
  };
18212
18894
  Returns: string;
18213
18895
  };
18896
+ logistics_active_pick_workdays: {
18897
+ Args: never;
18898
+ Returns: string[];
18899
+ };
18214
18900
  logistics_address_key: {
18215
18901
  Args: {
18216
18902
  p_location: string;
@@ -18327,6 +19013,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18327
19013
  p_worker?: string;
18328
19014
  };
18329
19015
  Returns: {
19016
+ attempt_log: import("../integrations/supabase/types").Json;
19017
+ attempts: number;
18330
19018
  buffer_ref: string | null;
18331
19019
  claimed_at: string | null;
18332
19020
  claimed_by: string | null;
@@ -18336,6 +19024,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18336
19024
  due_at: string | null;
18337
19025
  error: string | null;
18338
19026
  id: string;
19027
+ last_error: string | null;
19028
+ next_attempt_at: string | null;
18339
19029
  order_ref: string;
18340
19030
  owner_module: string;
18341
19031
  payload: import("../integrations/supabase/types").Json;
@@ -18368,6 +19058,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18368
19058
  p_worker?: string;
18369
19059
  };
18370
19060
  Returns: {
19061
+ attempt_log: import("../integrations/supabase/types").Json;
19062
+ attempts: number;
18371
19063
  buffer_ref: string | null;
18372
19064
  claimed_at: string | null;
18373
19065
  claimed_by: string | null;
@@ -18377,6 +19069,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18377
19069
  due_at: string | null;
18378
19070
  error: string | null;
18379
19071
  id: string;
19072
+ last_error: string | null;
19073
+ next_attempt_at: string | null;
18380
19074
  order_ref: string;
18381
19075
  owner_module: string;
18382
19076
  payload: import("../integrations/supabase/types").Json;
@@ -18409,6 +19103,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18409
19103
  p_task_id: string;
18410
19104
  };
18411
19105
  Returns: {
19106
+ attempt_log: import("../integrations/supabase/types").Json;
19107
+ attempts: number;
18412
19108
  buffer_ref: string | null;
18413
19109
  claimed_at: string | null;
18414
19110
  claimed_by: string | null;
@@ -18418,6 +19114,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18418
19114
  due_at: string | null;
18419
19115
  error: string | null;
18420
19116
  id: string;
19117
+ last_error: string | null;
19118
+ next_attempt_at: string | null;
18421
19119
  order_ref: string;
18422
19120
  owner_module: string;
18423
19121
  payload: import("../integrations/supabase/types").Json;
@@ -18499,6 +19197,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18499
19197
  p_task_id: string;
18500
19198
  };
18501
19199
  Returns: {
19200
+ attempt_log: import("../integrations/supabase/types").Json;
19201
+ attempts: number;
18502
19202
  buffer_ref: string | null;
18503
19203
  claimed_at: string | null;
18504
19204
  claimed_by: string | null;
@@ -18508,6 +19208,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18508
19208
  due_at: string | null;
18509
19209
  error: string | null;
18510
19210
  id: string;
19211
+ last_error: string | null;
19212
+ next_attempt_at: string | null;
18511
19213
  order_ref: string;
18512
19214
  owner_module: string;
18513
19215
  payload: import("../integrations/supabase/types").Json;
@@ -18534,12 +19236,30 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18534
19236
  isSetofReturn: false;
18535
19237
  };
18536
19238
  };
19239
+ logistics_live_carriers: {
19240
+ Args: {
19241
+ p_order_ref: string;
19242
+ };
19243
+ Returns: import("../integrations/supabase/types").Json;
19244
+ };
19245
+ logistics_live_cart_count: {
19246
+ Args: {
19247
+ p_order_ref: string;
19248
+ };
19249
+ Returns: number;
19250
+ };
18537
19251
  logistics_not_past: {
18538
19252
  Args: {
18539
19253
  p_ts: string;
18540
19254
  };
18541
19255
  Returns: string;
18542
19256
  };
19257
+ logistics_order_cart_count: {
19258
+ Args: {
19259
+ p_order_ref: string;
19260
+ };
19261
+ Returns: number;
19262
+ };
18543
19263
  logistics_order_pick_day: {
18544
19264
  Args: {
18545
19265
  p_order_ref: string;
@@ -18716,6 +19436,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18716
19436
  };
18717
19437
  Returns: import("../integrations/supabase/types").Json;
18718
19438
  };
19439
+ logistics_shift_to_workday: {
19440
+ Args: {
19441
+ p_days: string[];
19442
+ p_ts: string;
19443
+ };
19444
+ Returns: string;
19445
+ };
18719
19446
  logistics_supersede_stale_tasks: {
18720
19447
  Args: {
18721
19448
  p_keep: string[];
@@ -19001,6 +19728,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19001
19728
  isSetofReturn: false;
19002
19729
  };
19003
19730
  };
19731
+ pick_current_pick_day: {
19732
+ Args: never;
19733
+ Returns: string;
19734
+ };
19004
19735
  pick_document_layout_data: {
19005
19736
  Args: {
19006
19737
  _layout_id: string;
@@ -19232,10 +19963,68 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19232
19963
  Args: never;
19233
19964
  Returns: undefined;
19234
19965
  };
19966
+ run_logistics_tasks_dispatch: {
19967
+ Args: never;
19968
+ Returns: undefined;
19969
+ };
19235
19970
  run_twinfield_queue_tick: {
19236
19971
  Args: never;
19237
19972
  Returns: undefined;
19238
19973
  };
19974
+ scan_cancel_kar: {
19975
+ Args: {
19976
+ p_kar_id: string;
19977
+ };
19978
+ Returns: import("../integrations/supabase/types").Json;
19979
+ };
19980
+ scan_dashboard_stats: {
19981
+ Args: {
19982
+ p_dagen?: number;
19983
+ };
19984
+ Returns: import("../integrations/supabase/types").Json;
19985
+ };
19986
+ scan_finish_kar: {
19987
+ Args: {
19988
+ p_kar_id: string;
19989
+ };
19990
+ Returns: import("../integrations/supabase/types").Json;
19991
+ };
19992
+ scan_register_item: {
19993
+ Args: {
19994
+ p_kar_id: string;
19995
+ p_pakbon_item_id: string;
19996
+ p_scanned_by?: string;
19997
+ };
19998
+ Returns: import("../integrations/supabase/types").Json;
19999
+ };
20000
+ scan_release_expired_locks: {
20001
+ Args: never;
20002
+ Returns: import("../integrations/supabase/types").Json;
20003
+ };
20004
+ scan_remove_item: {
20005
+ Args: {
20006
+ p_kar_item_id: string;
20007
+ };
20008
+ Returns: import("../integrations/supabase/types").Json;
20009
+ };
20010
+ scan_start_kar: {
20011
+ Args: {
20012
+ p_medewerker_id?: string;
20013
+ p_medewerker_naam?: string;
20014
+ p_pakbon_ids: string[];
20015
+ p_scanner_key?: string;
20016
+ };
20017
+ Returns: import("../integrations/supabase/types").Json;
20018
+ } | {
20019
+ Args: {
20020
+ p_medewerker_id?: string;
20021
+ p_medewerker_naam?: string;
20022
+ p_pakbon_ids: string[];
20023
+ p_scanner_key?: string;
20024
+ p_sessie?: string;
20025
+ };
20026
+ Returns: import("../integrations/supabase/types").Json;
20027
+ };
19239
20028
  schedule_floriday_additional_services_sync: {
19240
20029
  Args: {
19241
20030
  p_apikey: string;
@@ -21507,6 +22296,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
21507
22296
  referencedColumns: ["id"];
21508
22297
  }];
21509
22298
  };
22299
+ customer_notes: {
22300
+ Row: {
22301
+ created_at: string;
22302
+ customer_id: string | null;
22303
+ group_key: string | null;
22304
+ id: string;
22305
+ notes: string | null;
22306
+ updated_at: string;
22307
+ };
22308
+ Insert: {
22309
+ created_at?: string;
22310
+ customer_id?: string | null;
22311
+ group_key?: string | null;
22312
+ id?: string;
22313
+ notes?: string | null;
22314
+ updated_at?: string;
22315
+ };
22316
+ Update: {
22317
+ created_at?: string;
22318
+ customer_id?: string | null;
22319
+ group_key?: string | null;
22320
+ id?: string;
22321
+ notes?: string | null;
22322
+ updated_at?: string;
22323
+ };
22324
+ Relationships: [{
22325
+ foreignKeyName: "customer_notes_customer_id_fkey";
22326
+ columns: ["customer_id"];
22327
+ isOneToOne: true;
22328
+ referencedRelation: "customers";
22329
+ referencedColumns: ["id"];
22330
+ }];
22331
+ };
21510
22332
  customer_price_group_members: {
21511
22333
  Row: {
21512
22334
  created_at: string;
@@ -23151,6 +23973,474 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
23151
23973
  referencedColumns: ["id"];
23152
23974
  }];
23153
23975
  };
23976
+ exact_auth_call_budget: {
23977
+ Row: {
23978
+ account_key: string;
23979
+ day_count: number;
23980
+ day_date: string;
23981
+ division_code: number;
23982
+ environment: string;
23983
+ minute_count: number;
23984
+ minute_window: string;
23985
+ updated_at: string;
23986
+ };
23987
+ Insert: {
23988
+ account_key?: string;
23989
+ day_count?: number;
23990
+ day_date?: string;
23991
+ division_code?: number;
23992
+ environment: string;
23993
+ minute_count?: number;
23994
+ minute_window?: string;
23995
+ updated_at?: string;
23996
+ };
23997
+ Update: {
23998
+ account_key?: string;
23999
+ day_count?: number;
24000
+ day_date?: string;
24001
+ division_code?: number;
24002
+ environment?: string;
24003
+ minute_count?: number;
24004
+ minute_window?: string;
24005
+ updated_at?: string;
24006
+ };
24007
+ Relationships: [];
24008
+ };
24009
+ exact_auth_customers: {
24010
+ Row: {
24011
+ account_key: string;
24012
+ address_line1: string | null;
24013
+ chamber_of_commerce: string | null;
24014
+ city: string | null;
24015
+ code: string | null;
24016
+ country: string | null;
24017
+ created_at: string;
24018
+ currency: string | null;
24019
+ division_code: number | null;
24020
+ email: string | null;
24021
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24022
+ exact_id: string;
24023
+ exact_modified: string | null;
24024
+ exact_timestamp: number | null;
24025
+ id: string;
24026
+ is_active: boolean;
24027
+ name: string | null;
24028
+ phone: string | null;
24029
+ postcode: string | null;
24030
+ raw: import("../integrations/supabase/types").Json | null;
24031
+ status: string | null;
24032
+ updated_at: string;
24033
+ vat_number: string | null;
24034
+ website: string | null;
24035
+ };
24036
+ Insert: {
24037
+ account_key?: string;
24038
+ address_line1?: string | null;
24039
+ chamber_of_commerce?: string | null;
24040
+ city?: string | null;
24041
+ code?: string | null;
24042
+ country?: string | null;
24043
+ created_at?: string;
24044
+ currency?: string | null;
24045
+ division_code?: number | null;
24046
+ email?: string | null;
24047
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24048
+ exact_id: string;
24049
+ exact_modified?: string | null;
24050
+ exact_timestamp?: number | null;
24051
+ id?: string;
24052
+ is_active?: boolean;
24053
+ name?: string | null;
24054
+ phone?: string | null;
24055
+ postcode?: string | null;
24056
+ raw?: import("../integrations/supabase/types").Json | null;
24057
+ status?: string | null;
24058
+ updated_at?: string;
24059
+ vat_number?: string | null;
24060
+ website?: string | null;
24061
+ };
24062
+ Update: {
24063
+ account_key?: string;
24064
+ address_line1?: string | null;
24065
+ chamber_of_commerce?: string | null;
24066
+ city?: string | null;
24067
+ code?: string | null;
24068
+ country?: string | null;
24069
+ created_at?: string;
24070
+ currency?: string | null;
24071
+ division_code?: number | null;
24072
+ email?: string | null;
24073
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24074
+ exact_id?: string;
24075
+ exact_modified?: string | null;
24076
+ exact_timestamp?: number | null;
24077
+ id?: string;
24078
+ is_active?: boolean;
24079
+ name?: string | null;
24080
+ phone?: string | null;
24081
+ postcode?: string | null;
24082
+ raw?: import("../integrations/supabase/types").Json | null;
24083
+ status?: string | null;
24084
+ updated_at?: string;
24085
+ vat_number?: string | null;
24086
+ website?: string | null;
24087
+ };
24088
+ Relationships: [];
24089
+ };
24090
+ exact_auth_divisions: {
24091
+ Row: {
24092
+ account_key: string;
24093
+ company_name: string | null;
24094
+ created_at: string;
24095
+ division_code: number | null;
24096
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24097
+ id: string;
24098
+ last_synced_at: string | null;
24099
+ updated_at: string;
24100
+ };
24101
+ Insert: {
24102
+ account_key?: string;
24103
+ company_name?: string | null;
24104
+ created_at?: string;
24105
+ division_code?: number | null;
24106
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24107
+ id?: string;
24108
+ last_synced_at?: string | null;
24109
+ updated_at?: string;
24110
+ };
24111
+ Update: {
24112
+ account_key?: string;
24113
+ company_name?: string | null;
24114
+ created_at?: string;
24115
+ division_code?: number | null;
24116
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24117
+ id?: string;
24118
+ last_synced_at?: string | null;
24119
+ updated_at?: string;
24120
+ };
24121
+ Relationships: [];
24122
+ };
24123
+ exact_auth_invoice_lines: {
24124
+ Row: {
24125
+ account_key: string;
24126
+ amount_excl: number | null;
24127
+ created_at: string;
24128
+ description: string | null;
24129
+ discount: number | null;
24130
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24131
+ exact_id: string;
24132
+ exact_timestamp: number | null;
24133
+ id: string;
24134
+ invoice_exact_id: string;
24135
+ item_code: string | null;
24136
+ item_exact_id: string | null;
24137
+ line_number: number | null;
24138
+ quantity: number | null;
24139
+ raw: import("../integrations/supabase/types").Json | null;
24140
+ unit_price: number | null;
24141
+ updated_at: string;
24142
+ vat_amount: number | null;
24143
+ vat_code: string | null;
24144
+ };
24145
+ Insert: {
24146
+ account_key?: string;
24147
+ amount_excl?: number | null;
24148
+ created_at?: string;
24149
+ description?: string | null;
24150
+ discount?: number | null;
24151
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24152
+ exact_id: string;
24153
+ exact_timestamp?: number | null;
24154
+ id?: string;
24155
+ invoice_exact_id: string;
24156
+ item_code?: string | null;
24157
+ item_exact_id?: string | null;
24158
+ line_number?: number | null;
24159
+ quantity?: number | null;
24160
+ raw?: import("../integrations/supabase/types").Json | null;
24161
+ unit_price?: number | null;
24162
+ updated_at?: string;
24163
+ vat_amount?: number | null;
24164
+ vat_code?: string | null;
24165
+ };
24166
+ Update: {
24167
+ account_key?: string;
24168
+ amount_excl?: number | null;
24169
+ created_at?: string;
24170
+ description?: string | null;
24171
+ discount?: number | null;
24172
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24173
+ exact_id?: string;
24174
+ exact_timestamp?: number | null;
24175
+ id?: string;
24176
+ invoice_exact_id?: string;
24177
+ item_code?: string | null;
24178
+ item_exact_id?: string | null;
24179
+ line_number?: number | null;
24180
+ quantity?: number | null;
24181
+ raw?: import("../integrations/supabase/types").Json | null;
24182
+ unit_price?: number | null;
24183
+ updated_at?: string;
24184
+ vat_amount?: number | null;
24185
+ vat_code?: string | null;
24186
+ };
24187
+ Relationships: [];
24188
+ };
24189
+ exact_auth_invoices: {
24190
+ Row: {
24191
+ account_key: string;
24192
+ amount_excl: number | null;
24193
+ amount_incl: number | null;
24194
+ amount_open: number | null;
24195
+ created_at: string;
24196
+ currency: string | null;
24197
+ customer_code: string | null;
24198
+ customer_exact_id: string | null;
24199
+ customer_name: string | null;
24200
+ description: string | null;
24201
+ division_code: number | null;
24202
+ due_date: string | null;
24203
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24204
+ exact_id: string;
24205
+ exact_modified: string | null;
24206
+ exact_timestamp: number | null;
24207
+ id: string;
24208
+ invoice_date: string | null;
24209
+ invoice_number: string | null;
24210
+ order_number: string | null;
24211
+ paid_at: string | null;
24212
+ payment_status: string;
24213
+ raw: import("../integrations/supabase/types").Json | null;
24214
+ receivable_synced_at: string | null;
24215
+ status_code: number | null;
24216
+ updated_at: string;
24217
+ };
24218
+ Insert: {
24219
+ account_key?: string;
24220
+ amount_excl?: number | null;
24221
+ amount_incl?: number | null;
24222
+ amount_open?: number | null;
24223
+ created_at?: string;
24224
+ currency?: string | null;
24225
+ customer_code?: string | null;
24226
+ customer_exact_id?: string | null;
24227
+ customer_name?: string | null;
24228
+ description?: string | null;
24229
+ division_code?: number | null;
24230
+ due_date?: string | null;
24231
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24232
+ exact_id: string;
24233
+ exact_modified?: string | null;
24234
+ exact_timestamp?: number | null;
24235
+ id?: string;
24236
+ invoice_date?: string | null;
24237
+ invoice_number?: string | null;
24238
+ order_number?: string | null;
24239
+ paid_at?: string | null;
24240
+ payment_status?: string;
24241
+ raw?: import("../integrations/supabase/types").Json | null;
24242
+ receivable_synced_at?: string | null;
24243
+ status_code?: number | null;
24244
+ updated_at?: string;
24245
+ };
24246
+ Update: {
24247
+ account_key?: string;
24248
+ amount_excl?: number | null;
24249
+ amount_incl?: number | null;
24250
+ amount_open?: number | null;
24251
+ created_at?: string;
24252
+ currency?: string | null;
24253
+ customer_code?: string | null;
24254
+ customer_exact_id?: string | null;
24255
+ customer_name?: string | null;
24256
+ description?: string | null;
24257
+ division_code?: number | null;
24258
+ due_date?: string | null;
24259
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24260
+ exact_id?: string;
24261
+ exact_modified?: string | null;
24262
+ exact_timestamp?: number | null;
24263
+ id?: string;
24264
+ invoice_date?: string | null;
24265
+ invoice_number?: string | null;
24266
+ order_number?: string | null;
24267
+ paid_at?: string | null;
24268
+ payment_status?: string;
24269
+ raw?: import("../integrations/supabase/types").Json | null;
24270
+ receivable_synced_at?: string | null;
24271
+ status_code?: number | null;
24272
+ updated_at?: string;
24273
+ };
24274
+ Relationships: [];
24275
+ };
24276
+ exact_auth_items: {
24277
+ Row: {
24278
+ account_key: string;
24279
+ barcode: string | null;
24280
+ code: string | null;
24281
+ cost_price: number | null;
24282
+ created_at: string;
24283
+ description: string | null;
24284
+ division_code: number | null;
24285
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24286
+ exact_id: string;
24287
+ exact_modified: string | null;
24288
+ exact_timestamp: number | null;
24289
+ gl_account_code: string | null;
24290
+ id: string;
24291
+ is_active: boolean;
24292
+ is_sales_item: boolean | null;
24293
+ item_type: string | null;
24294
+ raw: import("../integrations/supabase/types").Json | null;
24295
+ sales_price: number | null;
24296
+ unit: string | null;
24297
+ updated_at: string;
24298
+ vat_code: string | null;
24299
+ };
24300
+ Insert: {
24301
+ account_key?: string;
24302
+ barcode?: string | null;
24303
+ code?: string | null;
24304
+ cost_price?: number | null;
24305
+ created_at?: string;
24306
+ description?: string | null;
24307
+ division_code?: number | null;
24308
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24309
+ exact_id: string;
24310
+ exact_modified?: string | null;
24311
+ exact_timestamp?: number | null;
24312
+ gl_account_code?: string | null;
24313
+ id?: string;
24314
+ is_active?: boolean;
24315
+ is_sales_item?: boolean | null;
24316
+ item_type?: string | null;
24317
+ raw?: import("../integrations/supabase/types").Json | null;
24318
+ sales_price?: number | null;
24319
+ unit?: string | null;
24320
+ updated_at?: string;
24321
+ vat_code?: string | null;
24322
+ };
24323
+ Update: {
24324
+ account_key?: string;
24325
+ barcode?: string | null;
24326
+ code?: string | null;
24327
+ cost_price?: number | null;
24328
+ created_at?: string;
24329
+ description?: string | null;
24330
+ division_code?: number | null;
24331
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24332
+ exact_id?: string;
24333
+ exact_modified?: string | null;
24334
+ exact_timestamp?: number | null;
24335
+ gl_account_code?: string | null;
24336
+ id?: string;
24337
+ is_active?: boolean;
24338
+ is_sales_item?: boolean | null;
24339
+ item_type?: string | null;
24340
+ raw?: import("../integrations/supabase/types").Json | null;
24341
+ sales_price?: number | null;
24342
+ unit?: string | null;
24343
+ updated_at?: string;
24344
+ vat_code?: string | null;
24345
+ };
24346
+ Relationships: [];
24347
+ };
24348
+ exact_auth_sync_log: {
24349
+ Row: {
24350
+ account_key: string;
24351
+ calls_used: number;
24352
+ created_at: string;
24353
+ domain: string;
24354
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24355
+ error: string | null;
24356
+ finished_at: string | null;
24357
+ id: string;
24358
+ ok: boolean;
24359
+ records: number;
24360
+ started_at: string;
24361
+ };
24362
+ Insert: {
24363
+ account_key?: string;
24364
+ calls_used?: number;
24365
+ created_at?: string;
24366
+ domain: string;
24367
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24368
+ error?: string | null;
24369
+ finished_at?: string | null;
24370
+ id?: string;
24371
+ ok?: boolean;
24372
+ records?: number;
24373
+ started_at?: string;
24374
+ };
24375
+ Update: {
24376
+ account_key?: string;
24377
+ calls_used?: number;
24378
+ created_at?: string;
24379
+ domain?: string;
24380
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24381
+ error?: string | null;
24382
+ finished_at?: string | null;
24383
+ id?: string;
24384
+ ok?: boolean;
24385
+ records?: number;
24386
+ started_at?: string;
24387
+ };
24388
+ Relationships: [];
24389
+ };
24390
+ exact_auth_sync_state: {
24391
+ Row: {
24392
+ account_key: string;
24393
+ created_at: string;
24394
+ cursor_timestamp: number;
24395
+ division_code: number | null;
24396
+ domain: string;
24397
+ duration_ms: number | null;
24398
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24399
+ initial_sync_done: boolean;
24400
+ last_error: string | null;
24401
+ last_run_at: string | null;
24402
+ last_success_at: string | null;
24403
+ locked_at: string | null;
24404
+ needs_initial_sync: boolean;
24405
+ record_count: number;
24406
+ updated_at: string;
24407
+ };
24408
+ Insert: {
24409
+ account_key?: string;
24410
+ created_at?: string;
24411
+ cursor_timestamp?: number;
24412
+ division_code?: number | null;
24413
+ domain: string;
24414
+ duration_ms?: number | null;
24415
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24416
+ initial_sync_done?: boolean;
24417
+ last_error?: string | null;
24418
+ last_run_at?: string | null;
24419
+ last_success_at?: string | null;
24420
+ locked_at?: string | null;
24421
+ needs_initial_sync?: boolean;
24422
+ record_count?: number;
24423
+ updated_at?: string;
24424
+ };
24425
+ Update: {
24426
+ account_key?: string;
24427
+ created_at?: string;
24428
+ cursor_timestamp?: number;
24429
+ division_code?: number | null;
24430
+ domain?: string;
24431
+ duration_ms?: number | null;
24432
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24433
+ initial_sync_done?: boolean;
24434
+ last_error?: string | null;
24435
+ last_run_at?: string | null;
24436
+ last_success_at?: string | null;
24437
+ locked_at?: string | null;
24438
+ needs_initial_sync?: boolean;
24439
+ record_count?: number;
24440
+ updated_at?: string;
24441
+ };
24442
+ Relationships: [];
24443
+ };
23154
24444
  exact_bulk_operation_items: {
23155
24445
  Row: {
23156
24446
  attempts: number;
@@ -27813,6 +29103,66 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
27813
29103
  };
27814
29104
  Relationships: [];
27815
29105
  };
29106
+ logistics_recalc_jobs: {
29107
+ Row: {
29108
+ carts_created: number;
29109
+ created_at: string;
29110
+ cursor: string | null;
29111
+ errors: import("../integrations/supabase/types").Json;
29112
+ failed: number;
29113
+ finished_at: string | null;
29114
+ id: string;
29115
+ last_tick_at: string | null;
29116
+ phase: string;
29117
+ processed: number;
29118
+ skipped_locked: number;
29119
+ started_by: string | null;
29120
+ status: string;
29121
+ steps: import("../integrations/supabase/types").Json;
29122
+ strategy_id: string | null;
29123
+ tasks_updated: number;
29124
+ updated_at: string;
29125
+ };
29126
+ Insert: {
29127
+ carts_created?: number;
29128
+ created_at?: string;
29129
+ cursor?: string | null;
29130
+ errors?: import("../integrations/supabase/types").Json;
29131
+ failed?: number;
29132
+ finished_at?: string | null;
29133
+ id?: string;
29134
+ last_tick_at?: string | null;
29135
+ phase?: string;
29136
+ processed?: number;
29137
+ skipped_locked?: number;
29138
+ started_by?: string | null;
29139
+ status?: string;
29140
+ steps?: import("../integrations/supabase/types").Json;
29141
+ strategy_id?: string | null;
29142
+ tasks_updated?: number;
29143
+ updated_at?: string;
29144
+ };
29145
+ Update: {
29146
+ carts_created?: number;
29147
+ created_at?: string;
29148
+ cursor?: string | null;
29149
+ errors?: import("../integrations/supabase/types").Json;
29150
+ failed?: number;
29151
+ finished_at?: string | null;
29152
+ id?: string;
29153
+ last_tick_at?: string | null;
29154
+ phase?: string;
29155
+ processed?: number;
29156
+ skipped_locked?: number;
29157
+ started_by?: string | null;
29158
+ status?: string;
29159
+ steps?: import("../integrations/supabase/types").Json;
29160
+ strategy_id?: string | null;
29161
+ tasks_updated?: number;
29162
+ updated_at?: string;
29163
+ };
29164
+ Relationships: [];
29165
+ };
27816
29166
  logistics_reschedules: {
27817
29167
  Row: {
27818
29168
  created_at: string;
@@ -28175,6 +29525,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28175
29525
  };
28176
29526
  logistics_tasks: {
28177
29527
  Row: {
29528
+ attempt_log: import("../integrations/supabase/types").Json;
29529
+ attempts: number;
28178
29530
  buffer_ref: string | null;
28179
29531
  claimed_at: string | null;
28180
29532
  claimed_by: string | null;
@@ -28184,6 +29536,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28184
29536
  due_at: string | null;
28185
29537
  error: string | null;
28186
29538
  id: string;
29539
+ last_error: string | null;
29540
+ next_attempt_at: string | null;
28187
29541
  order_ref: string;
28188
29542
  owner_module: string;
28189
29543
  payload: import("../integrations/supabase/types").Json;
@@ -28204,6 +29558,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28204
29558
  user_id: string;
28205
29559
  };
28206
29560
  Insert: {
29561
+ attempt_log?: import("../integrations/supabase/types").Json;
29562
+ attempts?: number;
28207
29563
  buffer_ref?: string | null;
28208
29564
  claimed_at?: string | null;
28209
29565
  claimed_by?: string | null;
@@ -28213,6 +29569,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28213
29569
  due_at?: string | null;
28214
29570
  error?: string | null;
28215
29571
  id?: string;
29572
+ last_error?: string | null;
29573
+ next_attempt_at?: string | null;
28216
29574
  order_ref: string;
28217
29575
  owner_module: string;
28218
29576
  payload?: import("../integrations/supabase/types").Json;
@@ -28233,6 +29591,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28233
29591
  user_id?: string;
28234
29592
  };
28235
29593
  Update: {
29594
+ attempt_log?: import("../integrations/supabase/types").Json;
29595
+ attempts?: number;
28236
29596
  buffer_ref?: string | null;
28237
29597
  claimed_at?: string | null;
28238
29598
  claimed_by?: string | null;
@@ -28242,6 +29602,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
28242
29602
  due_at?: string | null;
28243
29603
  error?: string | null;
28244
29604
  id?: string;
29605
+ last_error?: string | null;
29606
+ next_attempt_at?: string | null;
28245
29607
  order_ref?: string;
28246
29608
  owner_module?: string;
28247
29609
  payload?: import("../integrations/supabase/types").Json;
@@ -29591,6 +30953,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29591
30953
  };
29592
30954
  offer_settings: {
29593
30955
  Row: {
30956
+ brand_name: string | null;
29594
30957
  button_color: string;
29595
30958
  created_at: string;
29596
30959
  default_countries: string[];
@@ -29612,6 +30975,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29612
30975
  updated_at: string;
29613
30976
  };
29614
30977
  Insert: {
30978
+ brand_name?: string | null;
29615
30979
  button_color?: string;
29616
30980
  created_at?: string;
29617
30981
  default_countries?: string[];
@@ -29633,6 +30997,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29633
30997
  updated_at?: string;
29634
30998
  };
29635
30999
  Update: {
31000
+ brand_name?: string | null;
29636
31001
  button_color?: string;
29637
31002
  created_at?: string;
29638
31003
  default_countries?: string[];
@@ -33042,6 +34407,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33042
34407
  buffer_key: string | null;
33043
34408
  created_at: string;
33044
34409
  customer_names: string[];
34410
+ device_id: string | null;
33045
34411
  geprint: boolean;
33046
34412
  geprint_op: string | null;
33047
34413
  id: string;
@@ -33051,6 +34417,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33051
34417
  naar_pickstation: boolean;
33052
34418
  naar_pickstation_op: string | null;
33053
34419
  order_number: string | null;
34420
+ scanner_id: string | null;
33054
34421
  scanner_key: string;
33055
34422
  status: string;
33056
34423
  totaal_producten: number;
@@ -33061,6 +34428,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33061
34428
  buffer_key?: string | null;
33062
34429
  created_at?: string;
33063
34430
  customer_names?: string[];
34431
+ device_id?: string | null;
33064
34432
  geprint?: boolean;
33065
34433
  geprint_op?: string | null;
33066
34434
  id?: string;
@@ -33070,6 +34438,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33070
34438
  naar_pickstation?: boolean;
33071
34439
  naar_pickstation_op?: string | null;
33072
34440
  order_number?: string | null;
34441
+ scanner_id?: string | null;
33073
34442
  scanner_key?: string;
33074
34443
  status?: string;
33075
34444
  totaal_producten?: number;
@@ -33080,6 +34449,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33080
34449
  buffer_key?: string | null;
33081
34450
  created_at?: string;
33082
34451
  customer_names?: string[];
34452
+ device_id?: string | null;
33083
34453
  geprint?: boolean;
33084
34454
  geprint_op?: string | null;
33085
34455
  id?: string;
@@ -33089,6 +34459,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33089
34459
  naar_pickstation?: boolean;
33090
34460
  naar_pickstation_op?: string | null;
33091
34461
  order_number?: string | null;
34462
+ scanner_id?: string | null;
33092
34463
  scanner_key?: string;
33093
34464
  status?: string;
33094
34465
  totaal_producten?: number;
@@ -33100,31 +34471,46 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33100
34471
  Row: {
33101
34472
  code: string;
33102
34473
  created_at: string;
34474
+ device_id: string | null;
33103
34475
  id: string;
33104
34476
  kar_id: string | null;
34477
+ latency_ms: number | null;
34478
+ medewerker_naam: string | null;
33105
34479
  message: string | null;
33106
34480
  result: string;
34481
+ retry_count: number;
33107
34482
  scanner_key: string;
34483
+ session_id: string | null;
33108
34484
  user_id: string | null;
33109
34485
  };
33110
34486
  Insert: {
33111
34487
  code: string;
33112
34488
  created_at?: string;
34489
+ device_id?: string | null;
33113
34490
  id?: string;
33114
34491
  kar_id?: string | null;
34492
+ latency_ms?: number | null;
34493
+ medewerker_naam?: string | null;
33115
34494
  message?: string | null;
33116
34495
  result: string;
34496
+ retry_count?: number;
33117
34497
  scanner_key?: string;
34498
+ session_id?: string | null;
33118
34499
  user_id?: string | null;
33119
34500
  };
33120
34501
  Update: {
33121
34502
  code?: string;
33122
34503
  created_at?: string;
34504
+ device_id?: string | null;
33123
34505
  id?: string;
33124
34506
  kar_id?: string | null;
34507
+ latency_ms?: number | null;
34508
+ medewerker_naam?: string | null;
33125
34509
  message?: string | null;
33126
34510
  result?: string;
34511
+ retry_count?: number;
33127
34512
  scanner_key?: string;
34513
+ session_id?: string | null;
33128
34514
  user_id?: string | null;
33129
34515
  };
33130
34516
  Relationships: [];
@@ -33181,6 +34567,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33181
34567
  printed_at: string;
33182
34568
  status: string;
33183
34569
  updated_at: string;
34570
+ vergrendeld_door: string | null;
34571
+ vergrendeld_sessie: string | null;
34572
+ vergrendeld_tot: string | null;
33184
34573
  };
33185
34574
  Insert: {
33186
34575
  barcode: string;
@@ -33194,6 +34583,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33194
34583
  printed_at?: string;
33195
34584
  status?: string;
33196
34585
  updated_at?: string;
34586
+ vergrendeld_door?: string | null;
34587
+ vergrendeld_sessie?: string | null;
34588
+ vergrendeld_tot?: string | null;
33197
34589
  };
33198
34590
  Update: {
33199
34591
  barcode?: string;
@@ -33207,6 +34599,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33207
34599
  printed_at?: string;
33208
34600
  status?: string;
33209
34601
  updated_at?: string;
34602
+ vergrendeld_door?: string | null;
34603
+ vergrendeld_sessie?: string | null;
34604
+ vergrendeld_tot?: string | null;
33210
34605
  };
33211
34606
  Relationships: [];
33212
34607
  };
@@ -33215,31 +34610,40 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33215
34610
  actief: boolean;
33216
34611
  created_at: string;
33217
34612
  id: string;
34613
+ max_producten_per_kar: number | null;
33218
34614
  naam: string;
33219
34615
  omschrijving: string | null;
34616
+ pincode: string | null;
33220
34617
  slug: string;
33221
34618
  type: string;
33222
34619
  updated_at: string;
34620
+ vereist_medewerker: boolean;
33223
34621
  };
33224
34622
  Insert: {
33225
34623
  actief?: boolean;
33226
34624
  created_at?: string;
33227
34625
  id?: string;
34626
+ max_producten_per_kar?: number | null;
33228
34627
  naam: string;
33229
34628
  omschrijving?: string | null;
34629
+ pincode?: string | null;
33230
34630
  slug: string;
33231
34631
  type?: string;
33232
34632
  updated_at?: string;
34633
+ vereist_medewerker?: boolean;
33233
34634
  };
33234
34635
  Update: {
33235
34636
  actief?: boolean;
33236
34637
  created_at?: string;
33237
34638
  id?: string;
34639
+ max_producten_per_kar?: number | null;
33238
34640
  naam?: string;
33239
34641
  omschrijving?: string | null;
34642
+ pincode?: string | null;
33240
34643
  slug?: string;
33241
34644
  type?: string;
33242
34645
  updated_at?: string;
34646
+ vereist_medewerker?: boolean;
33243
34647
  };
33244
34648
  Relationships: [];
33245
34649
  };
@@ -37204,6 +38608,54 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37204
38608
  };
37205
38609
  Returns: import("../integrations/supabase/types").Json;
37206
38610
  };
38611
+ claim_logistics_tasks: {
38612
+ Args: {
38613
+ _limit?: number;
38614
+ _owner_module: string;
38615
+ _stale_minutes?: number;
38616
+ _task_type: string;
38617
+ _worker: string;
38618
+ };
38619
+ Returns: {
38620
+ attempt_log: import("../integrations/supabase/types").Json;
38621
+ attempts: number;
38622
+ buffer_ref: string | null;
38623
+ claimed_at: string | null;
38624
+ claimed_by: string | null;
38625
+ completed_at: string | null;
38626
+ created_at: string;
38627
+ depends_on: string[];
38628
+ due_at: string | null;
38629
+ error: string | null;
38630
+ id: string;
38631
+ last_error: string | null;
38632
+ next_attempt_at: string | null;
38633
+ order_ref: string;
38634
+ owner_module: string;
38635
+ payload: import("../integrations/supabase/types").Json;
38636
+ plan_run_id: string | null;
38637
+ planned_end: string | null;
38638
+ planned_start: string | null;
38639
+ priority: number;
38640
+ result: import("../integrations/supabase/types").Json | null;
38641
+ rule_config_id: string | null;
38642
+ rule_version: number | null;
38643
+ sequence: number;
38644
+ shadow: boolean;
38645
+ started_at: string | null;
38646
+ status: string;
38647
+ strategy_id: string | null;
38648
+ task_type: string;
38649
+ updated_at: string;
38650
+ user_id: string;
38651
+ }[];
38652
+ SetofOptions: {
38653
+ from: "*";
38654
+ to: "logistics_tasks";
38655
+ isOneToOne: false;
38656
+ isSetofReturn: true;
38657
+ };
38658
+ };
37207
38659
  claim_print_jobs: {
37208
38660
  Args: {
37209
38661
  _agent_id: string;
@@ -37444,6 +38896,21 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37444
38896
  Args: never;
37445
38897
  Returns: string;
37446
38898
  };
38899
+ exact_auth_consume_calls: {
38900
+ Args: {
38901
+ _account_key: string;
38902
+ _calls?: number;
38903
+ _day_limit?: number;
38904
+ _division_code: number;
38905
+ _environment: string;
38906
+ _minute_limit?: number;
38907
+ };
38908
+ Returns: import("../integrations/supabase/types").Json;
38909
+ };
38910
+ exact_auth_prune_sync_log: {
38911
+ Args: never;
38912
+ Returns: undefined;
38913
+ };
37447
38914
  exact_decrypt: {
37448
38915
  Args: {
37449
38916
  cipher: string;
@@ -37653,6 +39120,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37653
39120
  };
37654
39121
  Returns: number;
37655
39122
  };
39123
+ get_offer_branding: {
39124
+ Args: never;
39125
+ Returns: import("../integrations/supabase/types").Json;
39126
+ };
37656
39127
  get_offer_by_link_code: {
37657
39128
  Args: {
37658
39129
  p_code: string;
@@ -37824,6 +39295,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37824
39295
  };
37825
39296
  Returns: string;
37826
39297
  };
39298
+ logistics_active_pick_workdays: {
39299
+ Args: never;
39300
+ Returns: string[];
39301
+ };
37827
39302
  logistics_address_key: {
37828
39303
  Args: {
37829
39304
  p_location: string;
@@ -37940,6 +39415,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37940
39415
  p_worker?: string;
37941
39416
  };
37942
39417
  Returns: {
39418
+ attempt_log: import("../integrations/supabase/types").Json;
39419
+ attempts: number;
37943
39420
  buffer_ref: string | null;
37944
39421
  claimed_at: string | null;
37945
39422
  claimed_by: string | null;
@@ -37949,6 +39426,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37949
39426
  due_at: string | null;
37950
39427
  error: string | null;
37951
39428
  id: string;
39429
+ last_error: string | null;
39430
+ next_attempt_at: string | null;
37952
39431
  order_ref: string;
37953
39432
  owner_module: string;
37954
39433
  payload: import("../integrations/supabase/types").Json;
@@ -37981,6 +39460,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37981
39460
  p_worker?: string;
37982
39461
  };
37983
39462
  Returns: {
39463
+ attempt_log: import("../integrations/supabase/types").Json;
39464
+ attempts: number;
37984
39465
  buffer_ref: string | null;
37985
39466
  claimed_at: string | null;
37986
39467
  claimed_by: string | null;
@@ -37990,6 +39471,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37990
39471
  due_at: string | null;
37991
39472
  error: string | null;
37992
39473
  id: string;
39474
+ last_error: string | null;
39475
+ next_attempt_at: string | null;
37993
39476
  order_ref: string;
37994
39477
  owner_module: string;
37995
39478
  payload: import("../integrations/supabase/types").Json;
@@ -38022,6 +39505,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38022
39505
  p_task_id: string;
38023
39506
  };
38024
39507
  Returns: {
39508
+ attempt_log: import("../integrations/supabase/types").Json;
39509
+ attempts: number;
38025
39510
  buffer_ref: string | null;
38026
39511
  claimed_at: string | null;
38027
39512
  claimed_by: string | null;
@@ -38031,6 +39516,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38031
39516
  due_at: string | null;
38032
39517
  error: string | null;
38033
39518
  id: string;
39519
+ last_error: string | null;
39520
+ next_attempt_at: string | null;
38034
39521
  order_ref: string;
38035
39522
  owner_module: string;
38036
39523
  payload: import("../integrations/supabase/types").Json;
@@ -38112,6 +39599,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38112
39599
  p_task_id: string;
38113
39600
  };
38114
39601
  Returns: {
39602
+ attempt_log: import("../integrations/supabase/types").Json;
39603
+ attempts: number;
38115
39604
  buffer_ref: string | null;
38116
39605
  claimed_at: string | null;
38117
39606
  claimed_by: string | null;
@@ -38121,6 +39610,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38121
39610
  due_at: string | null;
38122
39611
  error: string | null;
38123
39612
  id: string;
39613
+ last_error: string | null;
39614
+ next_attempt_at: string | null;
38124
39615
  order_ref: string;
38125
39616
  owner_module: string;
38126
39617
  payload: import("../integrations/supabase/types").Json;
@@ -38147,12 +39638,30 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38147
39638
  isSetofReturn: false;
38148
39639
  };
38149
39640
  };
39641
+ logistics_live_carriers: {
39642
+ Args: {
39643
+ p_order_ref: string;
39644
+ };
39645
+ Returns: import("../integrations/supabase/types").Json;
39646
+ };
39647
+ logistics_live_cart_count: {
39648
+ Args: {
39649
+ p_order_ref: string;
39650
+ };
39651
+ Returns: number;
39652
+ };
38150
39653
  logistics_not_past: {
38151
39654
  Args: {
38152
39655
  p_ts: string;
38153
39656
  };
38154
39657
  Returns: string;
38155
39658
  };
39659
+ logistics_order_cart_count: {
39660
+ Args: {
39661
+ p_order_ref: string;
39662
+ };
39663
+ Returns: number;
39664
+ };
38156
39665
  logistics_order_pick_day: {
38157
39666
  Args: {
38158
39667
  p_order_ref: string;
@@ -38329,6 +39838,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38329
39838
  };
38330
39839
  Returns: import("../integrations/supabase/types").Json;
38331
39840
  };
39841
+ logistics_shift_to_workday: {
39842
+ Args: {
39843
+ p_days: string[];
39844
+ p_ts: string;
39845
+ };
39846
+ Returns: string;
39847
+ };
38332
39848
  logistics_supersede_stale_tasks: {
38333
39849
  Args: {
38334
39850
  p_keep: string[];
@@ -38614,6 +40130,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38614
40130
  isSetofReturn: false;
38615
40131
  };
38616
40132
  };
40133
+ pick_current_pick_day: {
40134
+ Args: never;
40135
+ Returns: string;
40136
+ };
38617
40137
  pick_document_layout_data: {
38618
40138
  Args: {
38619
40139
  _layout_id: string;
@@ -38845,10 +40365,68 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38845
40365
  Args: never;
38846
40366
  Returns: undefined;
38847
40367
  };
40368
+ run_logistics_tasks_dispatch: {
40369
+ Args: never;
40370
+ Returns: undefined;
40371
+ };
38848
40372
  run_twinfield_queue_tick: {
38849
40373
  Args: never;
38850
40374
  Returns: undefined;
38851
40375
  };
40376
+ scan_cancel_kar: {
40377
+ Args: {
40378
+ p_kar_id: string;
40379
+ };
40380
+ Returns: import("../integrations/supabase/types").Json;
40381
+ };
40382
+ scan_dashboard_stats: {
40383
+ Args: {
40384
+ p_dagen?: number;
40385
+ };
40386
+ Returns: import("../integrations/supabase/types").Json;
40387
+ };
40388
+ scan_finish_kar: {
40389
+ Args: {
40390
+ p_kar_id: string;
40391
+ };
40392
+ Returns: import("../integrations/supabase/types").Json;
40393
+ };
40394
+ scan_register_item: {
40395
+ Args: {
40396
+ p_kar_id: string;
40397
+ p_pakbon_item_id: string;
40398
+ p_scanned_by?: string;
40399
+ };
40400
+ Returns: import("../integrations/supabase/types").Json;
40401
+ };
40402
+ scan_release_expired_locks: {
40403
+ Args: never;
40404
+ Returns: import("../integrations/supabase/types").Json;
40405
+ };
40406
+ scan_remove_item: {
40407
+ Args: {
40408
+ p_kar_item_id: string;
40409
+ };
40410
+ Returns: import("../integrations/supabase/types").Json;
40411
+ };
40412
+ scan_start_kar: {
40413
+ Args: {
40414
+ p_medewerker_id?: string;
40415
+ p_medewerker_naam?: string;
40416
+ p_pakbon_ids: string[];
40417
+ p_scanner_key?: string;
40418
+ };
40419
+ Returns: import("../integrations/supabase/types").Json;
40420
+ } | {
40421
+ Args: {
40422
+ p_medewerker_id?: string;
40423
+ p_medewerker_naam?: string;
40424
+ p_pakbon_ids: string[];
40425
+ p_scanner_key?: string;
40426
+ p_sessie?: string;
40427
+ };
40428
+ Returns: import("../integrations/supabase/types").Json;
40429
+ };
38852
40430
  schedule_floriday_additional_services_sync: {
38853
40431
  Args: {
38854
40432
  p_apikey: string;
@@ -41128,6 +42706,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
41128
42706
  referencedColumns: ["id"];
41129
42707
  }];
41130
42708
  };
42709
+ customer_notes: {
42710
+ Row: {
42711
+ created_at: string;
42712
+ customer_id: string | null;
42713
+ group_key: string | null;
42714
+ id: string;
42715
+ notes: string | null;
42716
+ updated_at: string;
42717
+ };
42718
+ Insert: {
42719
+ created_at?: string;
42720
+ customer_id?: string | null;
42721
+ group_key?: string | null;
42722
+ id?: string;
42723
+ notes?: string | null;
42724
+ updated_at?: string;
42725
+ };
42726
+ Update: {
42727
+ created_at?: string;
42728
+ customer_id?: string | null;
42729
+ group_key?: string | null;
42730
+ id?: string;
42731
+ notes?: string | null;
42732
+ updated_at?: string;
42733
+ };
42734
+ Relationships: [{
42735
+ foreignKeyName: "customer_notes_customer_id_fkey";
42736
+ columns: ["customer_id"];
42737
+ isOneToOne: true;
42738
+ referencedRelation: "customers";
42739
+ referencedColumns: ["id"];
42740
+ }];
42741
+ };
41131
42742
  customer_price_group_members: {
41132
42743
  Row: {
41133
42744
  created_at: string;
@@ -42526,251 +44137,719 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
42526
44137
  connection_id?: string;
42527
44138
  error_message?: string | null;
42528
44139
  id?: string;
42529
- refreshed_at?: string;
42530
- success?: boolean;
42531
- trigger_source?: string;
44140
+ refreshed_at?: string;
44141
+ success?: boolean;
44142
+ trigger_source?: string;
44143
+ };
44144
+ Relationships: [{
44145
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
44146
+ columns: ["connection_id"];
44147
+ isOneToOne: false;
44148
+ referencedRelation: "email_auth_connections";
44149
+ referencedColumns: ["id"];
44150
+ }, {
44151
+ foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
44152
+ columns: ["connection_id"];
44153
+ isOneToOne: false;
44154
+ referencedRelation: "email_auth_connections_safe";
44155
+ referencedColumns: ["id"];
44156
+ }];
44157
+ };
44158
+ email_auth_watch_folders: {
44159
+ Row: {
44160
+ connection_id: string;
44161
+ created_at: string;
44162
+ folder_id: string;
44163
+ folder_name: string | null;
44164
+ gmail_history_id: string | null;
44165
+ graph_subscription_expires_at: string | null;
44166
+ graph_subscription_id: string | null;
44167
+ id: string;
44168
+ imap_last_uid: number | null;
44169
+ imap_uid_validity: number | null;
44170
+ mailbox: string;
44171
+ provider: string;
44172
+ updated_at: string;
44173
+ webhook_last_error: string | null;
44174
+ webhook_status: string | null;
44175
+ };
44176
+ Insert: {
44177
+ connection_id: string;
44178
+ created_at?: string;
44179
+ folder_id: string;
44180
+ folder_name?: string | null;
44181
+ gmail_history_id?: string | null;
44182
+ graph_subscription_expires_at?: string | null;
44183
+ graph_subscription_id?: string | null;
44184
+ id?: string;
44185
+ imap_last_uid?: number | null;
44186
+ imap_uid_validity?: number | null;
44187
+ mailbox?: string;
44188
+ provider: string;
44189
+ updated_at?: string;
44190
+ webhook_last_error?: string | null;
44191
+ webhook_status?: string | null;
44192
+ };
44193
+ Update: {
44194
+ connection_id?: string;
44195
+ created_at?: string;
44196
+ folder_id?: string;
44197
+ folder_name?: string | null;
44198
+ gmail_history_id?: string | null;
44199
+ graph_subscription_expires_at?: string | null;
44200
+ graph_subscription_id?: string | null;
44201
+ id?: string;
44202
+ imap_last_uid?: number | null;
44203
+ imap_uid_validity?: number | null;
44204
+ mailbox?: string;
44205
+ provider?: string;
44206
+ updated_at?: string;
44207
+ webhook_last_error?: string | null;
44208
+ webhook_status?: string | null;
44209
+ };
44210
+ Relationships: [{
44211
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
44212
+ columns: ["connection_id"];
44213
+ isOneToOne: false;
44214
+ referencedRelation: "email_auth_connections";
44215
+ referencedColumns: ["id"];
44216
+ }, {
44217
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
44218
+ columns: ["connection_id"];
44219
+ isOneToOne: false;
44220
+ referencedRelation: "email_auth_connections_safe";
44221
+ referencedColumns: ["id"];
44222
+ }];
44223
+ };
44224
+ email_auth_webhook_log: {
44225
+ Row: {
44226
+ body_sample: string | null;
44227
+ connection_id: string | null;
44228
+ created_at: string;
44229
+ error_message: string | null;
44230
+ headers_sample: import("../integrations/supabase/types").Json | null;
44231
+ id: string;
44232
+ notification_count: number | null;
44233
+ provider: string | null;
44234
+ source: string | null;
44235
+ status: string;
44236
+ subscription_id: string | null;
44237
+ };
44238
+ Insert: {
44239
+ body_sample?: string | null;
44240
+ connection_id?: string | null;
44241
+ created_at?: string;
44242
+ error_message?: string | null;
44243
+ headers_sample?: import("../integrations/supabase/types").Json | null;
44244
+ id?: string;
44245
+ notification_count?: number | null;
44246
+ provider?: string | null;
44247
+ source?: string | null;
44248
+ status: string;
44249
+ subscription_id?: string | null;
44250
+ };
44251
+ Update: {
44252
+ body_sample?: string | null;
44253
+ connection_id?: string | null;
44254
+ created_at?: string;
44255
+ error_message?: string | null;
44256
+ headers_sample?: import("../integrations/supabase/types").Json | null;
44257
+ id?: string;
44258
+ notification_count?: number | null;
44259
+ provider?: string | null;
44260
+ source?: string | null;
44261
+ status?: string;
44262
+ subscription_id?: string | null;
44263
+ };
44264
+ Relationships: [{
44265
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
44266
+ columns: ["connection_id"];
44267
+ isOneToOne: false;
44268
+ referencedRelation: "email_auth_connections";
44269
+ referencedColumns: ["id"];
44270
+ }, {
44271
+ foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
44272
+ columns: ["connection_id"];
44273
+ isOneToOne: false;
44274
+ referencedRelation: "email_auth_connections_safe";
44275
+ referencedColumns: ["id"];
44276
+ }];
44277
+ };
44278
+ exact_account_analytics_cache: {
44279
+ Row: {
44280
+ account_id: string;
44281
+ account_name: string | null;
44282
+ avg_payment_days: number | null;
44283
+ computed_at: string;
44284
+ connection_id: string;
44285
+ expires_at: string | null;
44286
+ id: string;
44287
+ invoice_count: number | null;
44288
+ last_invoice_date: string | null;
44289
+ last_payment_date: string | null;
44290
+ open_balance: number | null;
44291
+ overdue_balance: number | null;
44292
+ total_revenue: number | null;
44293
+ };
44294
+ Insert: {
44295
+ account_id: string;
44296
+ account_name?: string | null;
44297
+ avg_payment_days?: number | null;
44298
+ computed_at?: string;
44299
+ connection_id: string;
44300
+ expires_at?: string | null;
44301
+ id?: string;
44302
+ invoice_count?: number | null;
44303
+ last_invoice_date?: string | null;
44304
+ last_payment_date?: string | null;
44305
+ open_balance?: number | null;
44306
+ overdue_balance?: number | null;
44307
+ total_revenue?: number | null;
44308
+ };
44309
+ Update: {
44310
+ account_id?: string;
44311
+ account_name?: string | null;
44312
+ avg_payment_days?: number | null;
44313
+ computed_at?: string;
44314
+ connection_id?: string;
44315
+ expires_at?: string | null;
44316
+ id?: string;
44317
+ invoice_count?: number | null;
44318
+ last_invoice_date?: string | null;
44319
+ last_payment_date?: string | null;
44320
+ open_balance?: number | null;
44321
+ overdue_balance?: number | null;
44322
+ total_revenue?: number | null;
44323
+ };
44324
+ Relationships: [{
44325
+ foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
44326
+ columns: ["connection_id"];
44327
+ isOneToOne: false;
44328
+ referencedRelation: "exact_connections";
44329
+ referencedColumns: ["id"];
44330
+ }];
44331
+ };
44332
+ exact_analytics_cache: {
44333
+ Row: {
44334
+ analytics_type: string;
44335
+ avg_payment_days: number | null;
44336
+ computed_at: string;
44337
+ connection_id: string;
44338
+ data_raw: import("../integrations/supabase/types").Json | null;
44339
+ expires_at: string | null;
44340
+ id: string;
44341
+ open_count: number | null;
44342
+ overdue_amount: number | null;
44343
+ paid_this_month: number | null;
44344
+ period_key: string;
44345
+ total_invoiced: number | null;
44346
+ total_open: number | null;
44347
+ };
44348
+ Insert: {
44349
+ analytics_type: string;
44350
+ avg_payment_days?: number | null;
44351
+ computed_at?: string;
44352
+ connection_id: string;
44353
+ data_raw?: import("../integrations/supabase/types").Json | null;
44354
+ expires_at?: string | null;
44355
+ id?: string;
44356
+ open_count?: number | null;
44357
+ overdue_amount?: number | null;
44358
+ paid_this_month?: number | null;
44359
+ period_key: string;
44360
+ total_invoiced?: number | null;
44361
+ total_open?: number | null;
44362
+ };
44363
+ Update: {
44364
+ analytics_type?: string;
44365
+ avg_payment_days?: number | null;
44366
+ computed_at?: string;
44367
+ connection_id?: string;
44368
+ data_raw?: import("../integrations/supabase/types").Json | null;
44369
+ expires_at?: string | null;
44370
+ id?: string;
44371
+ open_count?: number | null;
44372
+ overdue_amount?: number | null;
44373
+ paid_this_month?: number | null;
44374
+ period_key?: string;
44375
+ total_invoiced?: number | null;
44376
+ total_open?: number | null;
44377
+ };
44378
+ Relationships: [{
44379
+ foreignKeyName: "exact_analytics_cache_connection_id_fkey";
44380
+ columns: ["connection_id"];
44381
+ isOneToOne: false;
44382
+ referencedRelation: "exact_connections";
44383
+ referencedColumns: ["id"];
44384
+ }];
44385
+ };
44386
+ exact_auth_call_budget: {
44387
+ Row: {
44388
+ account_key: string;
44389
+ day_count: number;
44390
+ day_date: string;
44391
+ division_code: number;
44392
+ environment: string;
44393
+ minute_count: number;
44394
+ minute_window: string;
44395
+ updated_at: string;
44396
+ };
44397
+ Insert: {
44398
+ account_key?: string;
44399
+ day_count?: number;
44400
+ day_date?: string;
44401
+ division_code?: number;
44402
+ environment: string;
44403
+ minute_count?: number;
44404
+ minute_window?: string;
44405
+ updated_at?: string;
44406
+ };
44407
+ Update: {
44408
+ account_key?: string;
44409
+ day_count?: number;
44410
+ day_date?: string;
44411
+ division_code?: number;
44412
+ environment?: string;
44413
+ minute_count?: number;
44414
+ minute_window?: string;
44415
+ updated_at?: string;
44416
+ };
44417
+ Relationships: [];
44418
+ };
44419
+ exact_auth_customers: {
44420
+ Row: {
44421
+ account_key: string;
44422
+ address_line1: string | null;
44423
+ chamber_of_commerce: string | null;
44424
+ city: string | null;
44425
+ code: string | null;
44426
+ country: string | null;
44427
+ created_at: string;
44428
+ currency: string | null;
44429
+ division_code: number | null;
44430
+ email: string | null;
44431
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44432
+ exact_id: string;
44433
+ exact_modified: string | null;
44434
+ exact_timestamp: number | null;
44435
+ id: string;
44436
+ is_active: boolean;
44437
+ name: string | null;
44438
+ phone: string | null;
44439
+ postcode: string | null;
44440
+ raw: import("../integrations/supabase/types").Json | null;
44441
+ status: string | null;
44442
+ updated_at: string;
44443
+ vat_number: string | null;
44444
+ website: string | null;
44445
+ };
44446
+ Insert: {
44447
+ account_key?: string;
44448
+ address_line1?: string | null;
44449
+ chamber_of_commerce?: string | null;
44450
+ city?: string | null;
44451
+ code?: string | null;
44452
+ country?: string | null;
44453
+ created_at?: string;
44454
+ currency?: string | null;
44455
+ division_code?: number | null;
44456
+ email?: string | null;
44457
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44458
+ exact_id: string;
44459
+ exact_modified?: string | null;
44460
+ exact_timestamp?: number | null;
44461
+ id?: string;
44462
+ is_active?: boolean;
44463
+ name?: string | null;
44464
+ phone?: string | null;
44465
+ postcode?: string | null;
44466
+ raw?: import("../integrations/supabase/types").Json | null;
44467
+ status?: string | null;
44468
+ updated_at?: string;
44469
+ vat_number?: string | null;
44470
+ website?: string | null;
44471
+ };
44472
+ Update: {
44473
+ account_key?: string;
44474
+ address_line1?: string | null;
44475
+ chamber_of_commerce?: string | null;
44476
+ city?: string | null;
44477
+ code?: string | null;
44478
+ country?: string | null;
44479
+ created_at?: string;
44480
+ currency?: string | null;
44481
+ division_code?: number | null;
44482
+ email?: string | null;
44483
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44484
+ exact_id?: string;
44485
+ exact_modified?: string | null;
44486
+ exact_timestamp?: number | null;
44487
+ id?: string;
44488
+ is_active?: boolean;
44489
+ name?: string | null;
44490
+ phone?: string | null;
44491
+ postcode?: string | null;
44492
+ raw?: import("../integrations/supabase/types").Json | null;
44493
+ status?: string | null;
44494
+ updated_at?: string;
44495
+ vat_number?: string | null;
44496
+ website?: string | null;
44497
+ };
44498
+ Relationships: [];
44499
+ };
44500
+ exact_auth_divisions: {
44501
+ Row: {
44502
+ account_key: string;
44503
+ company_name: string | null;
44504
+ created_at: string;
44505
+ division_code: number | null;
44506
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44507
+ id: string;
44508
+ last_synced_at: string | null;
44509
+ updated_at: string;
44510
+ };
44511
+ Insert: {
44512
+ account_key?: string;
44513
+ company_name?: string | null;
44514
+ created_at?: string;
44515
+ division_code?: number | null;
44516
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44517
+ id?: string;
44518
+ last_synced_at?: string | null;
44519
+ updated_at?: string;
44520
+ };
44521
+ Update: {
44522
+ account_key?: string;
44523
+ company_name?: string | null;
44524
+ created_at?: string;
44525
+ division_code?: number | null;
44526
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44527
+ id?: string;
44528
+ last_synced_at?: string | null;
44529
+ updated_at?: string;
44530
+ };
44531
+ Relationships: [];
44532
+ };
44533
+ exact_auth_invoice_lines: {
44534
+ Row: {
44535
+ account_key: string;
44536
+ amount_excl: number | null;
44537
+ created_at: string;
44538
+ description: string | null;
44539
+ discount: number | null;
44540
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44541
+ exact_id: string;
44542
+ exact_timestamp: number | null;
44543
+ id: string;
44544
+ invoice_exact_id: string;
44545
+ item_code: string | null;
44546
+ item_exact_id: string | null;
44547
+ line_number: number | null;
44548
+ quantity: number | null;
44549
+ raw: import("../integrations/supabase/types").Json | null;
44550
+ unit_price: number | null;
44551
+ updated_at: string;
44552
+ vat_amount: number | null;
44553
+ vat_code: string | null;
44554
+ };
44555
+ Insert: {
44556
+ account_key?: string;
44557
+ amount_excl?: number | null;
44558
+ created_at?: string;
44559
+ description?: string | null;
44560
+ discount?: number | null;
44561
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44562
+ exact_id: string;
44563
+ exact_timestamp?: number | null;
44564
+ id?: string;
44565
+ invoice_exact_id: string;
44566
+ item_code?: string | null;
44567
+ item_exact_id?: string | null;
44568
+ line_number?: number | null;
44569
+ quantity?: number | null;
44570
+ raw?: import("../integrations/supabase/types").Json | null;
44571
+ unit_price?: number | null;
44572
+ updated_at?: string;
44573
+ vat_amount?: number | null;
44574
+ vat_code?: string | null;
44575
+ };
44576
+ Update: {
44577
+ account_key?: string;
44578
+ amount_excl?: number | null;
44579
+ created_at?: string;
44580
+ description?: string | null;
44581
+ discount?: number | null;
44582
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44583
+ exact_id?: string;
44584
+ exact_timestamp?: number | null;
44585
+ id?: string;
44586
+ invoice_exact_id?: string;
44587
+ item_code?: string | null;
44588
+ item_exact_id?: string | null;
44589
+ line_number?: number | null;
44590
+ quantity?: number | null;
44591
+ raw?: import("../integrations/supabase/types").Json | null;
44592
+ unit_price?: number | null;
44593
+ updated_at?: string;
44594
+ vat_amount?: number | null;
44595
+ vat_code?: string | null;
42532
44596
  };
42533
- Relationships: [{
42534
- foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
42535
- columns: ["connection_id"];
42536
- isOneToOne: false;
42537
- referencedRelation: "email_auth_connections";
42538
- referencedColumns: ["id"];
42539
- }, {
42540
- foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
42541
- columns: ["connection_id"];
42542
- isOneToOne: false;
42543
- referencedRelation: "email_auth_connections_safe";
42544
- referencedColumns: ["id"];
42545
- }];
44597
+ Relationships: [];
42546
44598
  };
42547
- email_auth_watch_folders: {
44599
+ exact_auth_invoices: {
42548
44600
  Row: {
42549
- connection_id: string;
44601
+ account_key: string;
44602
+ amount_excl: number | null;
44603
+ amount_incl: number | null;
44604
+ amount_open: number | null;
42550
44605
  created_at: string;
42551
- folder_id: string;
42552
- folder_name: string | null;
42553
- gmail_history_id: string | null;
42554
- graph_subscription_expires_at: string | null;
42555
- graph_subscription_id: string | null;
44606
+ currency: string | null;
44607
+ customer_code: string | null;
44608
+ customer_exact_id: string | null;
44609
+ customer_name: string | null;
44610
+ description: string | null;
44611
+ division_code: number | null;
44612
+ due_date: string | null;
44613
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44614
+ exact_id: string;
44615
+ exact_modified: string | null;
44616
+ exact_timestamp: number | null;
42556
44617
  id: string;
42557
- imap_last_uid: number | null;
42558
- imap_uid_validity: number | null;
42559
- mailbox: string;
42560
- provider: string;
44618
+ invoice_date: string | null;
44619
+ invoice_number: string | null;
44620
+ order_number: string | null;
44621
+ paid_at: string | null;
44622
+ payment_status: string;
44623
+ raw: import("../integrations/supabase/types").Json | null;
44624
+ receivable_synced_at: string | null;
44625
+ status_code: number | null;
42561
44626
  updated_at: string;
42562
- webhook_last_error: string | null;
42563
- webhook_status: string | null;
42564
44627
  };
42565
44628
  Insert: {
42566
- connection_id: string;
44629
+ account_key?: string;
44630
+ amount_excl?: number | null;
44631
+ amount_incl?: number | null;
44632
+ amount_open?: number | null;
42567
44633
  created_at?: string;
42568
- folder_id: string;
42569
- folder_name?: string | null;
42570
- gmail_history_id?: string | null;
42571
- graph_subscription_expires_at?: string | null;
42572
- graph_subscription_id?: string | null;
44634
+ currency?: string | null;
44635
+ customer_code?: string | null;
44636
+ customer_exact_id?: string | null;
44637
+ customer_name?: string | null;
44638
+ description?: string | null;
44639
+ division_code?: number | null;
44640
+ due_date?: string | null;
44641
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44642
+ exact_id: string;
44643
+ exact_modified?: string | null;
44644
+ exact_timestamp?: number | null;
42573
44645
  id?: string;
42574
- imap_last_uid?: number | null;
42575
- imap_uid_validity?: number | null;
42576
- mailbox?: string;
42577
- provider: string;
44646
+ invoice_date?: string | null;
44647
+ invoice_number?: string | null;
44648
+ order_number?: string | null;
44649
+ paid_at?: string | null;
44650
+ payment_status?: string;
44651
+ raw?: import("../integrations/supabase/types").Json | null;
44652
+ receivable_synced_at?: string | null;
44653
+ status_code?: number | null;
42578
44654
  updated_at?: string;
42579
- webhook_last_error?: string | null;
42580
- webhook_status?: string | null;
42581
44655
  };
42582
44656
  Update: {
42583
- connection_id?: string;
44657
+ account_key?: string;
44658
+ amount_excl?: number | null;
44659
+ amount_incl?: number | null;
44660
+ amount_open?: number | null;
42584
44661
  created_at?: string;
42585
- folder_id?: string;
42586
- folder_name?: string | null;
42587
- gmail_history_id?: string | null;
42588
- graph_subscription_expires_at?: string | null;
42589
- graph_subscription_id?: string | null;
44662
+ currency?: string | null;
44663
+ customer_code?: string | null;
44664
+ customer_exact_id?: string | null;
44665
+ customer_name?: string | null;
44666
+ description?: string | null;
44667
+ division_code?: number | null;
44668
+ due_date?: string | null;
44669
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44670
+ exact_id?: string;
44671
+ exact_modified?: string | null;
44672
+ exact_timestamp?: number | null;
42590
44673
  id?: string;
42591
- imap_last_uid?: number | null;
42592
- imap_uid_validity?: number | null;
42593
- mailbox?: string;
42594
- provider?: string;
44674
+ invoice_date?: string | null;
44675
+ invoice_number?: string | null;
44676
+ order_number?: string | null;
44677
+ paid_at?: string | null;
44678
+ payment_status?: string;
44679
+ raw?: import("../integrations/supabase/types").Json | null;
44680
+ receivable_synced_at?: string | null;
44681
+ status_code?: number | null;
42595
44682
  updated_at?: string;
42596
- webhook_last_error?: string | null;
42597
- webhook_status?: string | null;
42598
44683
  };
42599
- Relationships: [{
42600
- foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
42601
- columns: ["connection_id"];
42602
- isOneToOne: false;
42603
- referencedRelation: "email_auth_connections";
42604
- referencedColumns: ["id"];
42605
- }, {
42606
- foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
42607
- columns: ["connection_id"];
42608
- isOneToOne: false;
42609
- referencedRelation: "email_auth_connections_safe";
42610
- referencedColumns: ["id"];
42611
- }];
44684
+ Relationships: [];
42612
44685
  };
42613
- email_auth_webhook_log: {
44686
+ exact_auth_items: {
42614
44687
  Row: {
42615
- body_sample: string | null;
42616
- connection_id: string | null;
44688
+ account_key: string;
44689
+ barcode: string | null;
44690
+ code: string | null;
44691
+ cost_price: number | null;
42617
44692
  created_at: string;
42618
- error_message: string | null;
42619
- headers_sample: import("../integrations/supabase/types").Json | null;
44693
+ description: string | null;
44694
+ division_code: number | null;
44695
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44696
+ exact_id: string;
44697
+ exact_modified: string | null;
44698
+ exact_timestamp: number | null;
44699
+ gl_account_code: string | null;
42620
44700
  id: string;
42621
- notification_count: number | null;
42622
- provider: string | null;
42623
- source: string | null;
42624
- status: string;
42625
- subscription_id: string | null;
44701
+ is_active: boolean;
44702
+ is_sales_item: boolean | null;
44703
+ item_type: string | null;
44704
+ raw: import("../integrations/supabase/types").Json | null;
44705
+ sales_price: number | null;
44706
+ unit: string | null;
44707
+ updated_at: string;
44708
+ vat_code: string | null;
42626
44709
  };
42627
44710
  Insert: {
42628
- body_sample?: string | null;
42629
- connection_id?: string | null;
44711
+ account_key?: string;
44712
+ barcode?: string | null;
44713
+ code?: string | null;
44714
+ cost_price?: number | null;
42630
44715
  created_at?: string;
42631
- error_message?: string | null;
42632
- headers_sample?: import("../integrations/supabase/types").Json | null;
44716
+ description?: string | null;
44717
+ division_code?: number | null;
44718
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44719
+ exact_id: string;
44720
+ exact_modified?: string | null;
44721
+ exact_timestamp?: number | null;
44722
+ gl_account_code?: string | null;
42633
44723
  id?: string;
42634
- notification_count?: number | null;
42635
- provider?: string | null;
42636
- source?: string | null;
42637
- status: string;
42638
- subscription_id?: string | null;
44724
+ is_active?: boolean;
44725
+ is_sales_item?: boolean | null;
44726
+ item_type?: string | null;
44727
+ raw?: import("../integrations/supabase/types").Json | null;
44728
+ sales_price?: number | null;
44729
+ unit?: string | null;
44730
+ updated_at?: string;
44731
+ vat_code?: string | null;
42639
44732
  };
42640
44733
  Update: {
42641
- body_sample?: string | null;
42642
- connection_id?: string | null;
44734
+ account_key?: string;
44735
+ barcode?: string | null;
44736
+ code?: string | null;
44737
+ cost_price?: number | null;
42643
44738
  created_at?: string;
42644
- error_message?: string | null;
42645
- headers_sample?: import("../integrations/supabase/types").Json | null;
44739
+ description?: string | null;
44740
+ division_code?: number | null;
44741
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44742
+ exact_id?: string;
44743
+ exact_modified?: string | null;
44744
+ exact_timestamp?: number | null;
44745
+ gl_account_code?: string | null;
42646
44746
  id?: string;
42647
- notification_count?: number | null;
42648
- provider?: string | null;
42649
- source?: string | null;
42650
- status?: string;
42651
- subscription_id?: string | null;
44747
+ is_active?: boolean;
44748
+ is_sales_item?: boolean | null;
44749
+ item_type?: string | null;
44750
+ raw?: import("../integrations/supabase/types").Json | null;
44751
+ sales_price?: number | null;
44752
+ unit?: string | null;
44753
+ updated_at?: string;
44754
+ vat_code?: string | null;
42652
44755
  };
42653
- Relationships: [{
42654
- foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
42655
- columns: ["connection_id"];
42656
- isOneToOne: false;
42657
- referencedRelation: "email_auth_connections";
42658
- referencedColumns: ["id"];
42659
- }, {
42660
- foreignKeyName: "email_auth_webhook_log_connection_id_fkey";
42661
- columns: ["connection_id"];
42662
- isOneToOne: false;
42663
- referencedRelation: "email_auth_connections_safe";
42664
- referencedColumns: ["id"];
42665
- }];
44756
+ Relationships: [];
42666
44757
  };
42667
- exact_account_analytics_cache: {
44758
+ exact_auth_sync_log: {
42668
44759
  Row: {
42669
- account_id: string;
42670
- account_name: string | null;
42671
- avg_payment_days: number | null;
42672
- computed_at: string;
42673
- connection_id: string;
42674
- expires_at: string | null;
44760
+ account_key: string;
44761
+ calls_used: number;
44762
+ created_at: string;
44763
+ domain: string;
44764
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44765
+ error: string | null;
44766
+ finished_at: string | null;
42675
44767
  id: string;
42676
- invoice_count: number | null;
42677
- last_invoice_date: string | null;
42678
- last_payment_date: string | null;
42679
- open_balance: number | null;
42680
- overdue_balance: number | null;
42681
- total_revenue: number | null;
44768
+ ok: boolean;
44769
+ records: number;
44770
+ started_at: string;
42682
44771
  };
42683
44772
  Insert: {
42684
- account_id: string;
42685
- account_name?: string | null;
42686
- avg_payment_days?: number | null;
42687
- computed_at?: string;
42688
- connection_id: string;
42689
- expires_at?: string | null;
44773
+ account_key?: string;
44774
+ calls_used?: number;
44775
+ created_at?: string;
44776
+ domain: string;
44777
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44778
+ error?: string | null;
44779
+ finished_at?: string | null;
42690
44780
  id?: string;
42691
- invoice_count?: number | null;
42692
- last_invoice_date?: string | null;
42693
- last_payment_date?: string | null;
42694
- open_balance?: number | null;
42695
- overdue_balance?: number | null;
42696
- total_revenue?: number | null;
44781
+ ok?: boolean;
44782
+ records?: number;
44783
+ started_at?: string;
42697
44784
  };
42698
44785
  Update: {
42699
- account_id?: string;
42700
- account_name?: string | null;
42701
- avg_payment_days?: number | null;
42702
- computed_at?: string;
42703
- connection_id?: string;
42704
- expires_at?: string | null;
44786
+ account_key?: string;
44787
+ calls_used?: number;
44788
+ created_at?: string;
44789
+ domain?: string;
44790
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44791
+ error?: string | null;
44792
+ finished_at?: string | null;
42705
44793
  id?: string;
42706
- invoice_count?: number | null;
42707
- last_invoice_date?: string | null;
42708
- last_payment_date?: string | null;
42709
- open_balance?: number | null;
42710
- overdue_balance?: number | null;
42711
- total_revenue?: number | null;
44794
+ ok?: boolean;
44795
+ records?: number;
44796
+ started_at?: string;
42712
44797
  };
42713
- Relationships: [{
42714
- foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
42715
- columns: ["connection_id"];
42716
- isOneToOne: false;
42717
- referencedRelation: "exact_connections";
42718
- referencedColumns: ["id"];
42719
- }];
44798
+ Relationships: [];
42720
44799
  };
42721
- exact_analytics_cache: {
44800
+ exact_auth_sync_state: {
42722
44801
  Row: {
42723
- analytics_type: string;
42724
- avg_payment_days: number | null;
42725
- computed_at: string;
42726
- connection_id: string;
42727
- data_raw: import("../integrations/supabase/types").Json | null;
42728
- expires_at: string | null;
42729
- id: string;
42730
- open_count: number | null;
42731
- overdue_amount: number | null;
42732
- paid_this_month: number | null;
42733
- period_key: string;
42734
- total_invoiced: number | null;
42735
- total_open: number | null;
44802
+ account_key: string;
44803
+ created_at: string;
44804
+ cursor_timestamp: number;
44805
+ division_code: number | null;
44806
+ domain: string;
44807
+ duration_ms: number | null;
44808
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44809
+ initial_sync_done: boolean;
44810
+ last_error: string | null;
44811
+ last_run_at: string | null;
44812
+ last_success_at: string | null;
44813
+ locked_at: string | null;
44814
+ needs_initial_sync: boolean;
44815
+ record_count: number;
44816
+ updated_at: string;
42736
44817
  };
42737
44818
  Insert: {
42738
- analytics_type: string;
42739
- avg_payment_days?: number | null;
42740
- computed_at?: string;
42741
- connection_id: string;
42742
- data_raw?: import("../integrations/supabase/types").Json | null;
42743
- expires_at?: string | null;
42744
- id?: string;
42745
- open_count?: number | null;
42746
- overdue_amount?: number | null;
42747
- paid_this_month?: number | null;
42748
- period_key: string;
42749
- total_invoiced?: number | null;
42750
- total_open?: number | null;
44819
+ account_key?: string;
44820
+ created_at?: string;
44821
+ cursor_timestamp?: number;
44822
+ division_code?: number | null;
44823
+ domain: string;
44824
+ duration_ms?: number | null;
44825
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44826
+ initial_sync_done?: boolean;
44827
+ last_error?: string | null;
44828
+ last_run_at?: string | null;
44829
+ last_success_at?: string | null;
44830
+ locked_at?: string | null;
44831
+ needs_initial_sync?: boolean;
44832
+ record_count?: number;
44833
+ updated_at?: string;
42751
44834
  };
42752
44835
  Update: {
42753
- analytics_type?: string;
42754
- avg_payment_days?: number | null;
42755
- computed_at?: string;
42756
- connection_id?: string;
42757
- data_raw?: import("../integrations/supabase/types").Json | null;
42758
- expires_at?: string | null;
42759
- id?: string;
42760
- open_count?: number | null;
42761
- overdue_amount?: number | null;
42762
- paid_this_month?: number | null;
42763
- period_key?: string;
42764
- total_invoiced?: number | null;
42765
- total_open?: number | null;
44836
+ account_key?: string;
44837
+ created_at?: string;
44838
+ cursor_timestamp?: number;
44839
+ division_code?: number | null;
44840
+ domain?: string;
44841
+ duration_ms?: number | null;
44842
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
44843
+ initial_sync_done?: boolean;
44844
+ last_error?: string | null;
44845
+ last_run_at?: string | null;
44846
+ last_success_at?: string | null;
44847
+ locked_at?: string | null;
44848
+ needs_initial_sync?: boolean;
44849
+ record_count?: number;
44850
+ updated_at?: string;
42766
44851
  };
42767
- Relationships: [{
42768
- foreignKeyName: "exact_analytics_cache_connection_id_fkey";
42769
- columns: ["connection_id"];
42770
- isOneToOne: false;
42771
- referencedRelation: "exact_connections";
42772
- referencedColumns: ["id"];
42773
- }];
44852
+ Relationships: [];
42774
44853
  };
42775
44854
  exact_bulk_operation_items: {
42776
44855
  Row: {
@@ -47434,6 +49513,66 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47434
49513
  };
47435
49514
  Relationships: [];
47436
49515
  };
49516
+ logistics_recalc_jobs: {
49517
+ Row: {
49518
+ carts_created: number;
49519
+ created_at: string;
49520
+ cursor: string | null;
49521
+ errors: import("../integrations/supabase/types").Json;
49522
+ failed: number;
49523
+ finished_at: string | null;
49524
+ id: string;
49525
+ last_tick_at: string | null;
49526
+ phase: string;
49527
+ processed: number;
49528
+ skipped_locked: number;
49529
+ started_by: string | null;
49530
+ status: string;
49531
+ steps: import("../integrations/supabase/types").Json;
49532
+ strategy_id: string | null;
49533
+ tasks_updated: number;
49534
+ updated_at: string;
49535
+ };
49536
+ Insert: {
49537
+ carts_created?: number;
49538
+ created_at?: string;
49539
+ cursor?: string | null;
49540
+ errors?: import("../integrations/supabase/types").Json;
49541
+ failed?: number;
49542
+ finished_at?: string | null;
49543
+ id?: string;
49544
+ last_tick_at?: string | null;
49545
+ phase?: string;
49546
+ processed?: number;
49547
+ skipped_locked?: number;
49548
+ started_by?: string | null;
49549
+ status?: string;
49550
+ steps?: import("../integrations/supabase/types").Json;
49551
+ strategy_id?: string | null;
49552
+ tasks_updated?: number;
49553
+ updated_at?: string;
49554
+ };
49555
+ Update: {
49556
+ carts_created?: number;
49557
+ created_at?: string;
49558
+ cursor?: string | null;
49559
+ errors?: import("../integrations/supabase/types").Json;
49560
+ failed?: number;
49561
+ finished_at?: string | null;
49562
+ id?: string;
49563
+ last_tick_at?: string | null;
49564
+ phase?: string;
49565
+ processed?: number;
49566
+ skipped_locked?: number;
49567
+ started_by?: string | null;
49568
+ status?: string;
49569
+ steps?: import("../integrations/supabase/types").Json;
49570
+ strategy_id?: string | null;
49571
+ tasks_updated?: number;
49572
+ updated_at?: string;
49573
+ };
49574
+ Relationships: [];
49575
+ };
47437
49576
  logistics_reschedules: {
47438
49577
  Row: {
47439
49578
  created_at: string;
@@ -47796,6 +49935,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47796
49935
  };
47797
49936
  logistics_tasks: {
47798
49937
  Row: {
49938
+ attempt_log: import("../integrations/supabase/types").Json;
49939
+ attempts: number;
47799
49940
  buffer_ref: string | null;
47800
49941
  claimed_at: string | null;
47801
49942
  claimed_by: string | null;
@@ -47805,6 +49946,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47805
49946
  due_at: string | null;
47806
49947
  error: string | null;
47807
49948
  id: string;
49949
+ last_error: string | null;
49950
+ next_attempt_at: string | null;
47808
49951
  order_ref: string;
47809
49952
  owner_module: string;
47810
49953
  payload: import("../integrations/supabase/types").Json;
@@ -47825,6 +49968,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47825
49968
  user_id: string;
47826
49969
  };
47827
49970
  Insert: {
49971
+ attempt_log?: import("../integrations/supabase/types").Json;
49972
+ attempts?: number;
47828
49973
  buffer_ref?: string | null;
47829
49974
  claimed_at?: string | null;
47830
49975
  claimed_by?: string | null;
@@ -47834,6 +49979,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47834
49979
  due_at?: string | null;
47835
49980
  error?: string | null;
47836
49981
  id?: string;
49982
+ last_error?: string | null;
49983
+ next_attempt_at?: string | null;
47837
49984
  order_ref: string;
47838
49985
  owner_module: string;
47839
49986
  payload?: import("../integrations/supabase/types").Json;
@@ -47854,6 +50001,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47854
50001
  user_id?: string;
47855
50002
  };
47856
50003
  Update: {
50004
+ attempt_log?: import("../integrations/supabase/types").Json;
50005
+ attempts?: number;
47857
50006
  buffer_ref?: string | null;
47858
50007
  claimed_at?: string | null;
47859
50008
  claimed_by?: string | null;
@@ -47863,6 +50012,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47863
50012
  due_at?: string | null;
47864
50013
  error?: string | null;
47865
50014
  id?: string;
50015
+ last_error?: string | null;
50016
+ next_attempt_at?: string | null;
47866
50017
  order_ref?: string;
47867
50018
  owner_module?: string;
47868
50019
  payload?: import("../integrations/supabase/types").Json;
@@ -49212,6 +51363,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49212
51363
  };
49213
51364
  offer_settings: {
49214
51365
  Row: {
51366
+ brand_name: string | null;
49215
51367
  button_color: string;
49216
51368
  created_at: string;
49217
51369
  default_countries: string[];
@@ -49233,6 +51385,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49233
51385
  updated_at: string;
49234
51386
  };
49235
51387
  Insert: {
51388
+ brand_name?: string | null;
49236
51389
  button_color?: string;
49237
51390
  created_at?: string;
49238
51391
  default_countries?: string[];
@@ -49254,6 +51407,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49254
51407
  updated_at?: string;
49255
51408
  };
49256
51409
  Update: {
51410
+ brand_name?: string | null;
49257
51411
  button_color?: string;
49258
51412
  created_at?: string;
49259
51413
  default_countries?: string[];
@@ -52663,6 +54817,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52663
54817
  buffer_key: string | null;
52664
54818
  created_at: string;
52665
54819
  customer_names: string[];
54820
+ device_id: string | null;
52666
54821
  geprint: boolean;
52667
54822
  geprint_op: string | null;
52668
54823
  id: string;
@@ -52672,6 +54827,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52672
54827
  naar_pickstation: boolean;
52673
54828
  naar_pickstation_op: string | null;
52674
54829
  order_number: string | null;
54830
+ scanner_id: string | null;
52675
54831
  scanner_key: string;
52676
54832
  status: string;
52677
54833
  totaal_producten: number;
@@ -52682,6 +54838,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52682
54838
  buffer_key?: string | null;
52683
54839
  created_at?: string;
52684
54840
  customer_names?: string[];
54841
+ device_id?: string | null;
52685
54842
  geprint?: boolean;
52686
54843
  geprint_op?: string | null;
52687
54844
  id?: string;
@@ -52691,6 +54848,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52691
54848
  naar_pickstation?: boolean;
52692
54849
  naar_pickstation_op?: string | null;
52693
54850
  order_number?: string | null;
54851
+ scanner_id?: string | null;
52694
54852
  scanner_key?: string;
52695
54853
  status?: string;
52696
54854
  totaal_producten?: number;
@@ -52701,6 +54859,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52701
54859
  buffer_key?: string | null;
52702
54860
  created_at?: string;
52703
54861
  customer_names?: string[];
54862
+ device_id?: string | null;
52704
54863
  geprint?: boolean;
52705
54864
  geprint_op?: string | null;
52706
54865
  id?: string;
@@ -52710,6 +54869,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52710
54869
  naar_pickstation?: boolean;
52711
54870
  naar_pickstation_op?: string | null;
52712
54871
  order_number?: string | null;
54872
+ scanner_id?: string | null;
52713
54873
  scanner_key?: string;
52714
54874
  status?: string;
52715
54875
  totaal_producten?: number;
@@ -52721,31 +54881,46 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52721
54881
  Row: {
52722
54882
  code: string;
52723
54883
  created_at: string;
54884
+ device_id: string | null;
52724
54885
  id: string;
52725
54886
  kar_id: string | null;
54887
+ latency_ms: number | null;
54888
+ medewerker_naam: string | null;
52726
54889
  message: string | null;
52727
54890
  result: string;
54891
+ retry_count: number;
52728
54892
  scanner_key: string;
54893
+ session_id: string | null;
52729
54894
  user_id: string | null;
52730
54895
  };
52731
54896
  Insert: {
52732
54897
  code: string;
52733
54898
  created_at?: string;
54899
+ device_id?: string | null;
52734
54900
  id?: string;
52735
54901
  kar_id?: string | null;
54902
+ latency_ms?: number | null;
54903
+ medewerker_naam?: string | null;
52736
54904
  message?: string | null;
52737
54905
  result: string;
54906
+ retry_count?: number;
52738
54907
  scanner_key?: string;
54908
+ session_id?: string | null;
52739
54909
  user_id?: string | null;
52740
54910
  };
52741
54911
  Update: {
52742
54912
  code?: string;
52743
54913
  created_at?: string;
54914
+ device_id?: string | null;
52744
54915
  id?: string;
52745
54916
  kar_id?: string | null;
54917
+ latency_ms?: number | null;
54918
+ medewerker_naam?: string | null;
52746
54919
  message?: string | null;
52747
54920
  result?: string;
54921
+ retry_count?: number;
52748
54922
  scanner_key?: string;
54923
+ session_id?: string | null;
52749
54924
  user_id?: string | null;
52750
54925
  };
52751
54926
  Relationships: [];
@@ -52802,6 +54977,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52802
54977
  printed_at: string;
52803
54978
  status: string;
52804
54979
  updated_at: string;
54980
+ vergrendeld_door: string | null;
54981
+ vergrendeld_sessie: string | null;
54982
+ vergrendeld_tot: string | null;
52805
54983
  };
52806
54984
  Insert: {
52807
54985
  barcode: string;
@@ -52815,6 +54993,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52815
54993
  printed_at?: string;
52816
54994
  status?: string;
52817
54995
  updated_at?: string;
54996
+ vergrendeld_door?: string | null;
54997
+ vergrendeld_sessie?: string | null;
54998
+ vergrendeld_tot?: string | null;
52818
54999
  };
52819
55000
  Update: {
52820
55001
  barcode?: string;
@@ -52828,6 +55009,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52828
55009
  printed_at?: string;
52829
55010
  status?: string;
52830
55011
  updated_at?: string;
55012
+ vergrendeld_door?: string | null;
55013
+ vergrendeld_sessie?: string | null;
55014
+ vergrendeld_tot?: string | null;
52831
55015
  };
52832
55016
  Relationships: [];
52833
55017
  };
@@ -52836,31 +55020,40 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52836
55020
  actief: boolean;
52837
55021
  created_at: string;
52838
55022
  id: string;
55023
+ max_producten_per_kar: number | null;
52839
55024
  naam: string;
52840
55025
  omschrijving: string | null;
55026
+ pincode: string | null;
52841
55027
  slug: string;
52842
55028
  type: string;
52843
55029
  updated_at: string;
55030
+ vereist_medewerker: boolean;
52844
55031
  };
52845
55032
  Insert: {
52846
55033
  actief?: boolean;
52847
55034
  created_at?: string;
52848
55035
  id?: string;
55036
+ max_producten_per_kar?: number | null;
52849
55037
  naam: string;
52850
55038
  omschrijving?: string | null;
55039
+ pincode?: string | null;
52851
55040
  slug: string;
52852
55041
  type?: string;
52853
55042
  updated_at?: string;
55043
+ vereist_medewerker?: boolean;
52854
55044
  };
52855
55045
  Update: {
52856
55046
  actief?: boolean;
52857
55047
  created_at?: string;
52858
55048
  id?: string;
55049
+ max_producten_per_kar?: number | null;
52859
55050
  naam?: string;
52860
55051
  omschrijving?: string | null;
55052
+ pincode?: string | null;
52861
55053
  slug?: string;
52862
55054
  type?: string;
52863
55055
  updated_at?: string;
55056
+ vereist_medewerker?: boolean;
52864
55057
  };
52865
55058
  Relationships: [];
52866
55059
  };
@@ -56825,6 +59018,54 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56825
59018
  };
56826
59019
  Returns: import("../integrations/supabase/types").Json;
56827
59020
  };
59021
+ claim_logistics_tasks: {
59022
+ Args: {
59023
+ _limit?: number;
59024
+ _owner_module: string;
59025
+ _stale_minutes?: number;
59026
+ _task_type: string;
59027
+ _worker: string;
59028
+ };
59029
+ Returns: {
59030
+ attempt_log: import("../integrations/supabase/types").Json;
59031
+ attempts: number;
59032
+ buffer_ref: string | null;
59033
+ claimed_at: string | null;
59034
+ claimed_by: string | null;
59035
+ completed_at: string | null;
59036
+ created_at: string;
59037
+ depends_on: string[];
59038
+ due_at: string | null;
59039
+ error: string | null;
59040
+ id: string;
59041
+ last_error: string | null;
59042
+ next_attempt_at: string | null;
59043
+ order_ref: string;
59044
+ owner_module: string;
59045
+ payload: import("../integrations/supabase/types").Json;
59046
+ plan_run_id: string | null;
59047
+ planned_end: string | null;
59048
+ planned_start: string | null;
59049
+ priority: number;
59050
+ result: import("../integrations/supabase/types").Json | null;
59051
+ rule_config_id: string | null;
59052
+ rule_version: number | null;
59053
+ sequence: number;
59054
+ shadow: boolean;
59055
+ started_at: string | null;
59056
+ status: string;
59057
+ strategy_id: string | null;
59058
+ task_type: string;
59059
+ updated_at: string;
59060
+ user_id: string;
59061
+ }[];
59062
+ SetofOptions: {
59063
+ from: "*";
59064
+ to: "logistics_tasks";
59065
+ isOneToOne: false;
59066
+ isSetofReturn: true;
59067
+ };
59068
+ };
56828
59069
  claim_print_jobs: {
56829
59070
  Args: {
56830
59071
  _agent_id: string;
@@ -57065,6 +59306,21 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57065
59306
  Args: never;
57066
59307
  Returns: string;
57067
59308
  };
59309
+ exact_auth_consume_calls: {
59310
+ Args: {
59311
+ _account_key: string;
59312
+ _calls?: number;
59313
+ _day_limit?: number;
59314
+ _division_code: number;
59315
+ _environment: string;
59316
+ _minute_limit?: number;
59317
+ };
59318
+ Returns: import("../integrations/supabase/types").Json;
59319
+ };
59320
+ exact_auth_prune_sync_log: {
59321
+ Args: never;
59322
+ Returns: undefined;
59323
+ };
57068
59324
  exact_decrypt: {
57069
59325
  Args: {
57070
59326
  cipher: string;
@@ -57274,6 +59530,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57274
59530
  };
57275
59531
  Returns: number;
57276
59532
  };
59533
+ get_offer_branding: {
59534
+ Args: never;
59535
+ Returns: import("../integrations/supabase/types").Json;
59536
+ };
57277
59537
  get_offer_by_link_code: {
57278
59538
  Args: {
57279
59539
  p_code: string;
@@ -57445,6 +59705,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57445
59705
  };
57446
59706
  Returns: string;
57447
59707
  };
59708
+ logistics_active_pick_workdays: {
59709
+ Args: never;
59710
+ Returns: string[];
59711
+ };
57448
59712
  logistics_address_key: {
57449
59713
  Args: {
57450
59714
  p_location: string;
@@ -57561,6 +59825,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57561
59825
  p_worker?: string;
57562
59826
  };
57563
59827
  Returns: {
59828
+ attempt_log: import("../integrations/supabase/types").Json;
59829
+ attempts: number;
57564
59830
  buffer_ref: string | null;
57565
59831
  claimed_at: string | null;
57566
59832
  claimed_by: string | null;
@@ -57570,6 +59836,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57570
59836
  due_at: string | null;
57571
59837
  error: string | null;
57572
59838
  id: string;
59839
+ last_error: string | null;
59840
+ next_attempt_at: string | null;
57573
59841
  order_ref: string;
57574
59842
  owner_module: string;
57575
59843
  payload: import("../integrations/supabase/types").Json;
@@ -57602,6 +59870,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57602
59870
  p_worker?: string;
57603
59871
  };
57604
59872
  Returns: {
59873
+ attempt_log: import("../integrations/supabase/types").Json;
59874
+ attempts: number;
57605
59875
  buffer_ref: string | null;
57606
59876
  claimed_at: string | null;
57607
59877
  claimed_by: string | null;
@@ -57611,6 +59881,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57611
59881
  due_at: string | null;
57612
59882
  error: string | null;
57613
59883
  id: string;
59884
+ last_error: string | null;
59885
+ next_attempt_at: string | null;
57614
59886
  order_ref: string;
57615
59887
  owner_module: string;
57616
59888
  payload: import("../integrations/supabase/types").Json;
@@ -57643,6 +59915,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57643
59915
  p_task_id: string;
57644
59916
  };
57645
59917
  Returns: {
59918
+ attempt_log: import("../integrations/supabase/types").Json;
59919
+ attempts: number;
57646
59920
  buffer_ref: string | null;
57647
59921
  claimed_at: string | null;
57648
59922
  claimed_by: string | null;
@@ -57652,6 +59926,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57652
59926
  due_at: string | null;
57653
59927
  error: string | null;
57654
59928
  id: string;
59929
+ last_error: string | null;
59930
+ next_attempt_at: string | null;
57655
59931
  order_ref: string;
57656
59932
  owner_module: string;
57657
59933
  payload: import("../integrations/supabase/types").Json;
@@ -57733,6 +60009,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57733
60009
  p_task_id: string;
57734
60010
  };
57735
60011
  Returns: {
60012
+ attempt_log: import("../integrations/supabase/types").Json;
60013
+ attempts: number;
57736
60014
  buffer_ref: string | null;
57737
60015
  claimed_at: string | null;
57738
60016
  claimed_by: string | null;
@@ -57742,6 +60020,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57742
60020
  due_at: string | null;
57743
60021
  error: string | null;
57744
60022
  id: string;
60023
+ last_error: string | null;
60024
+ next_attempt_at: string | null;
57745
60025
  order_ref: string;
57746
60026
  owner_module: string;
57747
60027
  payload: import("../integrations/supabase/types").Json;
@@ -57768,12 +60048,30 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57768
60048
  isSetofReturn: false;
57769
60049
  };
57770
60050
  };
60051
+ logistics_live_carriers: {
60052
+ Args: {
60053
+ p_order_ref: string;
60054
+ };
60055
+ Returns: import("../integrations/supabase/types").Json;
60056
+ };
60057
+ logistics_live_cart_count: {
60058
+ Args: {
60059
+ p_order_ref: string;
60060
+ };
60061
+ Returns: number;
60062
+ };
57771
60063
  logistics_not_past: {
57772
60064
  Args: {
57773
60065
  p_ts: string;
57774
60066
  };
57775
60067
  Returns: string;
57776
60068
  };
60069
+ logistics_order_cart_count: {
60070
+ Args: {
60071
+ p_order_ref: string;
60072
+ };
60073
+ Returns: number;
60074
+ };
57777
60075
  logistics_order_pick_day: {
57778
60076
  Args: {
57779
60077
  p_order_ref: string;
@@ -57950,6 +60248,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57950
60248
  };
57951
60249
  Returns: import("../integrations/supabase/types").Json;
57952
60250
  };
60251
+ logistics_shift_to_workday: {
60252
+ Args: {
60253
+ p_days: string[];
60254
+ p_ts: string;
60255
+ };
60256
+ Returns: string;
60257
+ };
57953
60258
  logistics_supersede_stale_tasks: {
57954
60259
  Args: {
57955
60260
  p_keep: string[];
@@ -58235,6 +60540,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
58235
60540
  isSetofReturn: false;
58236
60541
  };
58237
60542
  };
60543
+ pick_current_pick_day: {
60544
+ Args: never;
60545
+ Returns: string;
60546
+ };
58238
60547
  pick_document_layout_data: {
58239
60548
  Args: {
58240
60549
  _layout_id: string;
@@ -58466,10 +60775,68 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
58466
60775
  Args: never;
58467
60776
  Returns: undefined;
58468
60777
  };
60778
+ run_logistics_tasks_dispatch: {
60779
+ Args: never;
60780
+ Returns: undefined;
60781
+ };
58469
60782
  run_twinfield_queue_tick: {
58470
60783
  Args: never;
58471
60784
  Returns: undefined;
58472
60785
  };
60786
+ scan_cancel_kar: {
60787
+ Args: {
60788
+ p_kar_id: string;
60789
+ };
60790
+ Returns: import("../integrations/supabase/types").Json;
60791
+ };
60792
+ scan_dashboard_stats: {
60793
+ Args: {
60794
+ p_dagen?: number;
60795
+ };
60796
+ Returns: import("../integrations/supabase/types").Json;
60797
+ };
60798
+ scan_finish_kar: {
60799
+ Args: {
60800
+ p_kar_id: string;
60801
+ };
60802
+ Returns: import("../integrations/supabase/types").Json;
60803
+ };
60804
+ scan_register_item: {
60805
+ Args: {
60806
+ p_kar_id: string;
60807
+ p_pakbon_item_id: string;
60808
+ p_scanned_by?: string;
60809
+ };
60810
+ Returns: import("../integrations/supabase/types").Json;
60811
+ };
60812
+ scan_release_expired_locks: {
60813
+ Args: never;
60814
+ Returns: import("../integrations/supabase/types").Json;
60815
+ };
60816
+ scan_remove_item: {
60817
+ Args: {
60818
+ p_kar_item_id: string;
60819
+ };
60820
+ Returns: import("../integrations/supabase/types").Json;
60821
+ };
60822
+ scan_start_kar: {
60823
+ Args: {
60824
+ p_medewerker_id?: string;
60825
+ p_medewerker_naam?: string;
60826
+ p_pakbon_ids: string[];
60827
+ p_scanner_key?: string;
60828
+ };
60829
+ Returns: import("../integrations/supabase/types").Json;
60830
+ } | {
60831
+ Args: {
60832
+ p_medewerker_id?: string;
60833
+ p_medewerker_naam?: string;
60834
+ p_pakbon_ids: string[];
60835
+ p_scanner_key?: string;
60836
+ p_sessie?: string;
60837
+ };
60838
+ Returns: import("../integrations/supabase/types").Json;
60839
+ };
58473
60840
  schedule_floriday_additional_services_sync: {
58474
60841
  Args: {
58475
60842
  p_apikey: string;