@flowselections/floriday-verkoop-module 1.0.37 → 1.0.39

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
@@ -1868,6 +1868,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
1868
1868
  referencedColumns: ["id"];
1869
1869
  }];
1870
1870
  };
1871
+ customer_notes: {
1872
+ Row: {
1873
+ created_at: string;
1874
+ customer_id: string | null;
1875
+ group_key: string | null;
1876
+ id: string;
1877
+ notes: string | null;
1878
+ updated_at: string;
1879
+ };
1880
+ Insert: {
1881
+ created_at?: string;
1882
+ customer_id?: string | null;
1883
+ group_key?: string | null;
1884
+ id?: string;
1885
+ notes?: string | null;
1886
+ updated_at?: string;
1887
+ };
1888
+ Update: {
1889
+ created_at?: string;
1890
+ customer_id?: string | null;
1891
+ group_key?: string | null;
1892
+ id?: string;
1893
+ notes?: string | null;
1894
+ updated_at?: string;
1895
+ };
1896
+ Relationships: [{
1897
+ foreignKeyName: "customer_notes_customer_id_fkey";
1898
+ columns: ["customer_id"];
1899
+ isOneToOne: true;
1900
+ referencedRelation: "customers";
1901
+ referencedColumns: ["id"];
1902
+ }];
1903
+ };
1871
1904
  customer_price_group_members: {
1872
1905
  Row: {
1873
1906
  created_at: string;
@@ -3512,6 +3545,474 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
3512
3545
  referencedColumns: ["id"];
3513
3546
  }];
3514
3547
  };
3548
+ exact_auth_call_budget: {
3549
+ Row: {
3550
+ account_key: string;
3551
+ day_count: number;
3552
+ day_date: string;
3553
+ division_code: number;
3554
+ environment: string;
3555
+ minute_count: number;
3556
+ minute_window: string;
3557
+ updated_at: string;
3558
+ };
3559
+ Insert: {
3560
+ account_key?: string;
3561
+ day_count?: number;
3562
+ day_date?: string;
3563
+ division_code?: number;
3564
+ environment: string;
3565
+ minute_count?: number;
3566
+ minute_window?: string;
3567
+ updated_at?: string;
3568
+ };
3569
+ Update: {
3570
+ account_key?: string;
3571
+ day_count?: number;
3572
+ day_date?: string;
3573
+ division_code?: number;
3574
+ environment?: string;
3575
+ minute_count?: number;
3576
+ minute_window?: string;
3577
+ updated_at?: string;
3578
+ };
3579
+ Relationships: [];
3580
+ };
3581
+ exact_auth_customers: {
3582
+ Row: {
3583
+ account_key: string;
3584
+ address_line1: string | null;
3585
+ chamber_of_commerce: string | null;
3586
+ city: string | null;
3587
+ code: string | null;
3588
+ country: string | null;
3589
+ created_at: string;
3590
+ currency: string | null;
3591
+ division_code: number | null;
3592
+ email: string | null;
3593
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3594
+ exact_id: string;
3595
+ exact_modified: string | null;
3596
+ exact_timestamp: number | null;
3597
+ id: string;
3598
+ is_active: boolean;
3599
+ name: string | null;
3600
+ phone: string | null;
3601
+ postcode: string | null;
3602
+ raw: import("../integrations/supabase/types").Json | null;
3603
+ status: string | null;
3604
+ updated_at: string;
3605
+ vat_number: string | null;
3606
+ website: string | null;
3607
+ };
3608
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
3661
+ };
3662
+ exact_auth_divisions: {
3663
+ Row: {
3664
+ account_key: string;
3665
+ company_name: string | null;
3666
+ created_at: string;
3667
+ division_code: number | null;
3668
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3669
+ id: string;
3670
+ last_synced_at: string | null;
3671
+ updated_at: string;
3672
+ };
3673
+ Insert: {
3674
+ account_key?: string;
3675
+ company_name?: string | null;
3676
+ created_at?: string;
3677
+ division_code?: number | null;
3678
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3679
+ id?: string;
3680
+ last_synced_at?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ account_key?: string;
3685
+ company_name?: string | null;
3686
+ created_at?: string;
3687
+ division_code?: number | null;
3688
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3689
+ id?: string;
3690
+ last_synced_at?: string | null;
3691
+ updated_at?: string;
3692
+ };
3693
+ Relationships: [];
3694
+ };
3695
+ exact_auth_invoice_lines: {
3696
+ Row: {
3697
+ account_key: string;
3698
+ amount_excl: number | null;
3699
+ created_at: string;
3700
+ description: string | null;
3701
+ discount: number | null;
3702
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3703
+ exact_id: string;
3704
+ exact_timestamp: number | null;
3705
+ id: string;
3706
+ invoice_exact_id: string;
3707
+ item_code: string | null;
3708
+ item_exact_id: string | null;
3709
+ line_number: number | null;
3710
+ quantity: number | null;
3711
+ raw: import("../integrations/supabase/types").Json | null;
3712
+ unit_price: number | null;
3713
+ updated_at: string;
3714
+ vat_amount: number | null;
3715
+ vat_code: string | null;
3716
+ };
3717
+ Insert: {
3718
+ account_key?: string;
3719
+ amount_excl?: number | null;
3720
+ created_at?: string;
3721
+ description?: string | null;
3722
+ discount?: number | null;
3723
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3724
+ exact_id: string;
3725
+ exact_timestamp?: number | null;
3726
+ id?: string;
3727
+ invoice_exact_id: string;
3728
+ item_code?: string | null;
3729
+ item_exact_id?: string | null;
3730
+ line_number?: number | null;
3731
+ quantity?: number | null;
3732
+ raw?: import("../integrations/supabase/types").Json | null;
3733
+ unit_price?: number | null;
3734
+ updated_at?: string;
3735
+ vat_amount?: number | null;
3736
+ vat_code?: string | null;
3737
+ };
3738
+ Update: {
3739
+ account_key?: string;
3740
+ amount_excl?: number | null;
3741
+ created_at?: string;
3742
+ description?: string | null;
3743
+ discount?: number | null;
3744
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3745
+ exact_id?: string;
3746
+ exact_timestamp?: number | null;
3747
+ id?: string;
3748
+ invoice_exact_id?: string;
3749
+ item_code?: string | null;
3750
+ item_exact_id?: string | null;
3751
+ line_number?: number | null;
3752
+ quantity?: number | null;
3753
+ raw?: import("../integrations/supabase/types").Json | null;
3754
+ unit_price?: number | null;
3755
+ updated_at?: string;
3756
+ vat_amount?: number | null;
3757
+ vat_code?: string | null;
3758
+ };
3759
+ Relationships: [];
3760
+ };
3761
+ exact_auth_invoices: {
3762
+ Row: {
3763
+ account_key: string;
3764
+ amount_excl: number | null;
3765
+ amount_incl: number | null;
3766
+ amount_open: number | null;
3767
+ created_at: string;
3768
+ currency: string | null;
3769
+ customer_code: string | null;
3770
+ customer_exact_id: string | null;
3771
+ customer_name: string | null;
3772
+ description: string | null;
3773
+ division_code: number | null;
3774
+ due_date: string | null;
3775
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3776
+ exact_id: string;
3777
+ exact_modified: string | null;
3778
+ exact_timestamp: number | null;
3779
+ id: string;
3780
+ invoice_date: string | null;
3781
+ invoice_number: string | null;
3782
+ order_number: string | null;
3783
+ paid_at: string | null;
3784
+ payment_status: string;
3785
+ raw: import("../integrations/supabase/types").Json | null;
3786
+ receivable_synced_at: string | null;
3787
+ status_code: number | null;
3788
+ updated_at: string;
3789
+ };
3790
+ Insert: {
3791
+ account_key?: string;
3792
+ amount_excl?: number | null;
3793
+ amount_incl?: number | null;
3794
+ amount_open?: number | null;
3795
+ created_at?: string;
3796
+ currency?: string | null;
3797
+ customer_code?: string | null;
3798
+ customer_exact_id?: string | null;
3799
+ customer_name?: string | null;
3800
+ description?: string | null;
3801
+ division_code?: number | null;
3802
+ due_date?: string | null;
3803
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3804
+ exact_id: string;
3805
+ exact_modified?: string | null;
3806
+ exact_timestamp?: number | null;
3807
+ id?: string;
3808
+ invoice_date?: string | null;
3809
+ invoice_number?: string | null;
3810
+ order_number?: string | null;
3811
+ paid_at?: string | null;
3812
+ payment_status?: string;
3813
+ raw?: import("../integrations/supabase/types").Json | null;
3814
+ receivable_synced_at?: string | null;
3815
+ status_code?: number | null;
3816
+ updated_at?: string;
3817
+ };
3818
+ Update: {
3819
+ account_key?: string;
3820
+ amount_excl?: number | null;
3821
+ amount_incl?: number | null;
3822
+ amount_open?: number | null;
3823
+ created_at?: string;
3824
+ currency?: string | null;
3825
+ customer_code?: string | null;
3826
+ customer_exact_id?: string | null;
3827
+ customer_name?: string | null;
3828
+ description?: string | null;
3829
+ division_code?: number | null;
3830
+ due_date?: string | null;
3831
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3832
+ exact_id?: string;
3833
+ exact_modified?: string | null;
3834
+ exact_timestamp?: number | null;
3835
+ id?: string;
3836
+ invoice_date?: string | null;
3837
+ invoice_number?: string | null;
3838
+ order_number?: string | null;
3839
+ paid_at?: string | null;
3840
+ payment_status?: string;
3841
+ raw?: import("../integrations/supabase/types").Json | null;
3842
+ receivable_synced_at?: string | null;
3843
+ status_code?: number | null;
3844
+ updated_at?: string;
3845
+ };
3846
+ Relationships: [];
3847
+ };
3848
+ exact_auth_items: {
3849
+ Row: {
3850
+ account_key: string;
3851
+ barcode: string | null;
3852
+ code: string | null;
3853
+ cost_price: number | null;
3854
+ created_at: string;
3855
+ description: string | null;
3856
+ division_code: number | 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
+ gl_account_code: string | null;
3862
+ id: string;
3863
+ is_active: boolean;
3864
+ is_sales_item: boolean | null;
3865
+ item_type: string | null;
3866
+ raw: import("../integrations/supabase/types").Json | null;
3867
+ sales_price: number | null;
3868
+ unit: string | null;
3869
+ updated_at: string;
3870
+ vat_code: string | null;
3871
+ };
3872
+ Insert: {
3873
+ account_key?: string;
3874
+ barcode?: string | null;
3875
+ code?: string | null;
3876
+ cost_price?: number | null;
3877
+ created_at?: string;
3878
+ description?: string | null;
3879
+ division_code?: number | null;
3880
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3881
+ exact_id: string;
3882
+ exact_modified?: string | null;
3883
+ exact_timestamp?: number | null;
3884
+ gl_account_code?: string | null;
3885
+ id?: string;
3886
+ is_active?: boolean;
3887
+ is_sales_item?: boolean | null;
3888
+ item_type?: string | null;
3889
+ raw?: import("../integrations/supabase/types").Json | null;
3890
+ sales_price?: number | null;
3891
+ unit?: string | null;
3892
+ updated_at?: string;
3893
+ vat_code?: string | null;
3894
+ };
3895
+ Update: {
3896
+ account_key?: string;
3897
+ barcode?: string | null;
3898
+ code?: string | null;
3899
+ cost_price?: number | null;
3900
+ created_at?: string;
3901
+ description?: string | null;
3902
+ division_code?: number | null;
3903
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3904
+ exact_id?: string;
3905
+ exact_modified?: string | null;
3906
+ exact_timestamp?: number | null;
3907
+ gl_account_code?: string | null;
3908
+ id?: string;
3909
+ is_active?: boolean;
3910
+ is_sales_item?: boolean | null;
3911
+ item_type?: string | null;
3912
+ raw?: import("../integrations/supabase/types").Json | null;
3913
+ sales_price?: number | null;
3914
+ unit?: string | null;
3915
+ updated_at?: string;
3916
+ vat_code?: string | null;
3917
+ };
3918
+ Relationships: [];
3919
+ };
3920
+ exact_auth_sync_log: {
3921
+ Row: {
3922
+ account_key: string;
3923
+ calls_used: number;
3924
+ created_at: string;
3925
+ domain: string;
3926
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3927
+ error: string | null;
3928
+ finished_at: string | null;
3929
+ id: string;
3930
+ ok: boolean;
3931
+ records: number;
3932
+ started_at: string;
3933
+ };
3934
+ Insert: {
3935
+ account_key?: string;
3936
+ calls_used?: number;
3937
+ created_at?: string;
3938
+ domain: string;
3939
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3940
+ error?: string | null;
3941
+ finished_at?: string | null;
3942
+ id?: string;
3943
+ ok?: boolean;
3944
+ records?: number;
3945
+ started_at?: string;
3946
+ };
3947
+ Update: {
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
+ Relationships: [];
3961
+ };
3962
+ exact_auth_sync_state: {
3963
+ Row: {
3964
+ account_key: string;
3965
+ created_at: string;
3966
+ cursor_timestamp: number;
3967
+ division_code: number | null;
3968
+ domain: string;
3969
+ duration_ms: number | null;
3970
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3971
+ initial_sync_done: boolean;
3972
+ last_error: string | null;
3973
+ last_run_at: string | null;
3974
+ last_success_at: string | null;
3975
+ locked_at: string | null;
3976
+ needs_initial_sync: boolean;
3977
+ record_count: number;
3978
+ updated_at: string;
3979
+ };
3980
+ Insert: {
3981
+ account_key?: string;
3982
+ created_at?: string;
3983
+ cursor_timestamp?: number;
3984
+ division_code?: number | null;
3985
+ domain: string;
3986
+ duration_ms?: number | null;
3987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3988
+ initial_sync_done?: boolean;
3989
+ last_error?: string | null;
3990
+ last_run_at?: string | null;
3991
+ last_success_at?: string | null;
3992
+ locked_at?: string | null;
3993
+ needs_initial_sync?: boolean;
3994
+ record_count?: number;
3995
+ updated_at?: string;
3996
+ };
3997
+ Update: {
3998
+ account_key?: string;
3999
+ created_at?: string;
4000
+ cursor_timestamp?: number;
4001
+ division_code?: number | null;
4002
+ domain?: string;
4003
+ duration_ms?: number | null;
4004
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4005
+ initial_sync_done?: boolean;
4006
+ last_error?: string | null;
4007
+ last_run_at?: string | null;
4008
+ last_success_at?: string | null;
4009
+ locked_at?: string | null;
4010
+ needs_initial_sync?: boolean;
4011
+ record_count?: number;
4012
+ updated_at?: string;
4013
+ };
4014
+ Relationships: [];
4015
+ };
3515
4016
  exact_bulk_operation_items: {
3516
4017
  Row: {
3517
4018
  attempts: number;
@@ -8174,6 +8675,66 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8174
8675
  };
8175
8676
  Relationships: [];
8176
8677
  };
8678
+ logistics_recalc_jobs: {
8679
+ Row: {
8680
+ carts_created: number;
8681
+ created_at: string;
8682
+ cursor: string | null;
8683
+ errors: import("../integrations/supabase/types").Json;
8684
+ failed: number;
8685
+ finished_at: string | null;
8686
+ id: string;
8687
+ last_tick_at: string | null;
8688
+ phase: string;
8689
+ processed: number;
8690
+ skipped_locked: number;
8691
+ started_by: string | null;
8692
+ status: string;
8693
+ steps: import("../integrations/supabase/types").Json;
8694
+ strategy_id: string | null;
8695
+ tasks_updated: number;
8696
+ updated_at: string;
8697
+ };
8698
+ Insert: {
8699
+ carts_created?: number;
8700
+ created_at?: string;
8701
+ cursor?: string | null;
8702
+ errors?: import("../integrations/supabase/types").Json;
8703
+ failed?: number;
8704
+ finished_at?: string | null;
8705
+ id?: string;
8706
+ last_tick_at?: string | null;
8707
+ phase?: string;
8708
+ processed?: number;
8709
+ skipped_locked?: number;
8710
+ started_by?: string | null;
8711
+ status?: string;
8712
+ steps?: import("../integrations/supabase/types").Json;
8713
+ strategy_id?: string | null;
8714
+ tasks_updated?: number;
8715
+ updated_at?: string;
8716
+ };
8717
+ Update: {
8718
+ carts_created?: number;
8719
+ created_at?: string;
8720
+ cursor?: string | null;
8721
+ errors?: import("../integrations/supabase/types").Json;
8722
+ failed?: number;
8723
+ finished_at?: string | null;
8724
+ id?: string;
8725
+ last_tick_at?: string | null;
8726
+ phase?: string;
8727
+ processed?: number;
8728
+ skipped_locked?: number;
8729
+ started_by?: string | null;
8730
+ status?: string;
8731
+ steps?: import("../integrations/supabase/types").Json;
8732
+ strategy_id?: string | null;
8733
+ tasks_updated?: number;
8734
+ updated_at?: string;
8735
+ };
8736
+ Relationships: [];
8737
+ };
8177
8738
  logistics_reschedules: {
8178
8739
  Row: {
8179
8740
  created_at: string;
@@ -8536,6 +9097,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8536
9097
  };
8537
9098
  logistics_tasks: {
8538
9099
  Row: {
9100
+ attempt_log: import("../integrations/supabase/types").Json;
9101
+ attempts: number;
8539
9102
  buffer_ref: string | null;
8540
9103
  claimed_at: string | null;
8541
9104
  claimed_by: string | null;
@@ -8545,6 +9108,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8545
9108
  due_at: string | null;
8546
9109
  error: string | null;
8547
9110
  id: string;
9111
+ last_error: string | null;
9112
+ next_attempt_at: string | null;
8548
9113
  order_ref: string;
8549
9114
  owner_module: string;
8550
9115
  payload: import("../integrations/supabase/types").Json;
@@ -8565,6 +9130,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8565
9130
  user_id: string;
8566
9131
  };
8567
9132
  Insert: {
9133
+ attempt_log?: import("../integrations/supabase/types").Json;
9134
+ attempts?: number;
8568
9135
  buffer_ref?: string | null;
8569
9136
  claimed_at?: string | null;
8570
9137
  claimed_by?: string | null;
@@ -8574,6 +9141,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8574
9141
  due_at?: string | null;
8575
9142
  error?: string | null;
8576
9143
  id?: string;
9144
+ last_error?: string | null;
9145
+ next_attempt_at?: string | null;
8577
9146
  order_ref: string;
8578
9147
  owner_module: string;
8579
9148
  payload?: import("../integrations/supabase/types").Json;
@@ -8594,6 +9163,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8594
9163
  user_id?: string;
8595
9164
  };
8596
9165
  Update: {
9166
+ attempt_log?: import("../integrations/supabase/types").Json;
9167
+ attempts?: number;
8597
9168
  buffer_ref?: string | null;
8598
9169
  claimed_at?: string | null;
8599
9170
  claimed_by?: string | null;
@@ -8603,6 +9174,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8603
9174
  due_at?: string | null;
8604
9175
  error?: string | null;
8605
9176
  id?: string;
9177
+ last_error?: string | null;
9178
+ next_attempt_at?: string | null;
8606
9179
  order_ref?: string;
8607
9180
  owner_module?: string;
8608
9181
  payload?: import("../integrations/supabase/types").Json;
@@ -9952,6 +10525,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9952
10525
  };
9953
10526
  offer_settings: {
9954
10527
  Row: {
10528
+ brand_name: string | null;
9955
10529
  button_color: string;
9956
10530
  created_at: string;
9957
10531
  default_countries: string[];
@@ -9973,6 +10547,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9973
10547
  updated_at: string;
9974
10548
  };
9975
10549
  Insert: {
10550
+ brand_name?: string | null;
9976
10551
  button_color?: string;
9977
10552
  created_at?: string;
9978
10553
  default_countries?: string[];
@@ -9994,6 +10569,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9994
10569
  updated_at?: string;
9995
10570
  };
9996
10571
  Update: {
10572
+ brand_name?: string | null;
9997
10573
  button_color?: string;
9998
10574
  created_at?: string;
9999
10575
  default_countries?: string[];
@@ -13403,6 +13979,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13403
13979
  buffer_key: string | null;
13404
13980
  created_at: string;
13405
13981
  customer_names: string[];
13982
+ device_id: string | null;
13406
13983
  geprint: boolean;
13407
13984
  geprint_op: string | null;
13408
13985
  id: string;
@@ -13412,6 +13989,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13412
13989
  naar_pickstation: boolean;
13413
13990
  naar_pickstation_op: string | null;
13414
13991
  order_number: string | null;
13992
+ scanner_id: string | null;
13415
13993
  scanner_key: string;
13416
13994
  status: string;
13417
13995
  totaal_producten: number;
@@ -13422,6 +14000,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13422
14000
  buffer_key?: string | null;
13423
14001
  created_at?: string;
13424
14002
  customer_names?: string[];
14003
+ device_id?: string | null;
13425
14004
  geprint?: boolean;
13426
14005
  geprint_op?: string | null;
13427
14006
  id?: string;
@@ -13431,6 +14010,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13431
14010
  naar_pickstation?: boolean;
13432
14011
  naar_pickstation_op?: string | null;
13433
14012
  order_number?: string | null;
14013
+ scanner_id?: string | null;
13434
14014
  scanner_key?: string;
13435
14015
  status?: string;
13436
14016
  totaal_producten?: number;
@@ -13441,6 +14021,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13441
14021
  buffer_key?: string | null;
13442
14022
  created_at?: string;
13443
14023
  customer_names?: string[];
14024
+ device_id?: string | null;
13444
14025
  geprint?: boolean;
13445
14026
  geprint_op?: string | null;
13446
14027
  id?: string;
@@ -13450,6 +14031,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13450
14031
  naar_pickstation?: boolean;
13451
14032
  naar_pickstation_op?: string | null;
13452
14033
  order_number?: string | null;
14034
+ scanner_id?: string | null;
13453
14035
  scanner_key?: string;
13454
14036
  status?: string;
13455
14037
  totaal_producten?: number;
@@ -13461,31 +14043,46 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13461
14043
  Row: {
13462
14044
  code: string;
13463
14045
  created_at: string;
14046
+ device_id: string | null;
13464
14047
  id: string;
13465
14048
  kar_id: string | null;
14049
+ latency_ms: number | null;
14050
+ medewerker_naam: string | null;
13466
14051
  message: string | null;
13467
14052
  result: string;
14053
+ retry_count: number;
13468
14054
  scanner_key: string;
14055
+ session_id: string | null;
13469
14056
  user_id: string | null;
13470
14057
  };
13471
14058
  Insert: {
13472
14059
  code: string;
13473
14060
  created_at?: string;
14061
+ device_id?: string | null;
13474
14062
  id?: string;
13475
14063
  kar_id?: string | null;
14064
+ latency_ms?: number | null;
14065
+ medewerker_naam?: string | null;
13476
14066
  message?: string | null;
13477
14067
  result: string;
14068
+ retry_count?: number;
13478
14069
  scanner_key?: string;
14070
+ session_id?: string | null;
13479
14071
  user_id?: string | null;
13480
14072
  };
13481
14073
  Update: {
13482
14074
  code?: string;
13483
14075
  created_at?: string;
14076
+ device_id?: string | null;
13484
14077
  id?: string;
13485
14078
  kar_id?: string | null;
14079
+ latency_ms?: number | null;
14080
+ medewerker_naam?: string | null;
13486
14081
  message?: string | null;
13487
14082
  result?: string;
14083
+ retry_count?: number;
13488
14084
  scanner_key?: string;
14085
+ session_id?: string | null;
13489
14086
  user_id?: string | null;
13490
14087
  };
13491
14088
  Relationships: [];
@@ -13542,6 +14139,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13542
14139
  printed_at: string;
13543
14140
  status: string;
13544
14141
  updated_at: string;
14142
+ vergrendeld_door: string | null;
14143
+ vergrendeld_sessie: string | null;
14144
+ vergrendeld_tot: string | null;
13545
14145
  };
13546
14146
  Insert: {
13547
14147
  barcode: string;
@@ -13555,6 +14155,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13555
14155
  printed_at?: string;
13556
14156
  status?: string;
13557
14157
  updated_at?: string;
14158
+ vergrendeld_door?: string | null;
14159
+ vergrendeld_sessie?: string | null;
14160
+ vergrendeld_tot?: string | null;
13558
14161
  };
13559
14162
  Update: {
13560
14163
  barcode?: string;
@@ -13568,6 +14171,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13568
14171
  printed_at?: string;
13569
14172
  status?: string;
13570
14173
  updated_at?: string;
14174
+ vergrendeld_door?: string | null;
14175
+ vergrendeld_sessie?: string | null;
14176
+ vergrendeld_tot?: string | null;
13571
14177
  };
13572
14178
  Relationships: [];
13573
14179
  };
@@ -13576,31 +14182,40 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13576
14182
  actief: boolean;
13577
14183
  created_at: string;
13578
14184
  id: string;
14185
+ max_producten_per_kar: number | null;
13579
14186
  naam: string;
13580
14187
  omschrijving: string | null;
14188
+ pincode: string | null;
13581
14189
  slug: string;
13582
14190
  type: string;
13583
14191
  updated_at: string;
14192
+ vereist_medewerker: boolean;
13584
14193
  };
13585
14194
  Insert: {
13586
14195
  actief?: boolean;
13587
14196
  created_at?: string;
13588
14197
  id?: string;
14198
+ max_producten_per_kar?: number | null;
13589
14199
  naam: string;
13590
14200
  omschrijving?: string | null;
14201
+ pincode?: string | null;
13591
14202
  slug: string;
13592
14203
  type?: string;
13593
14204
  updated_at?: string;
14205
+ vereist_medewerker?: boolean;
13594
14206
  };
13595
14207
  Update: {
13596
14208
  actief?: boolean;
13597
14209
  created_at?: string;
13598
14210
  id?: string;
14211
+ max_producten_per_kar?: number | null;
13599
14212
  naam?: string;
13600
14213
  omschrijving?: string | null;
14214
+ pincode?: string | null;
13601
14215
  slug?: string;
13602
14216
  type?: string;
13603
14217
  updated_at?: string;
14218
+ vereist_medewerker?: boolean;
13604
14219
  };
13605
14220
  Relationships: [];
13606
14221
  };
@@ -17565,6 +18180,54 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17565
18180
  };
17566
18181
  Returns: import("../integrations/supabase/types").Json;
17567
18182
  };
18183
+ claim_logistics_tasks: {
18184
+ Args: {
18185
+ _limit?: number;
18186
+ _owner_module: string;
18187
+ _stale_minutes?: number;
18188
+ _task_type: string;
18189
+ _worker: string;
18190
+ };
18191
+ Returns: {
18192
+ attempt_log: import("../integrations/supabase/types").Json;
18193
+ attempts: number;
18194
+ buffer_ref: string | null;
18195
+ claimed_at: string | null;
18196
+ claimed_by: string | null;
18197
+ completed_at: string | null;
18198
+ created_at: string;
18199
+ depends_on: string[];
18200
+ due_at: string | null;
18201
+ error: string | null;
18202
+ id: string;
18203
+ last_error: string | null;
18204
+ next_attempt_at: string | null;
18205
+ order_ref: string;
18206
+ owner_module: string;
18207
+ payload: import("../integrations/supabase/types").Json;
18208
+ plan_run_id: string | null;
18209
+ planned_end: string | null;
18210
+ planned_start: string | null;
18211
+ priority: number;
18212
+ result: import("../integrations/supabase/types").Json | null;
18213
+ rule_config_id: string | null;
18214
+ rule_version: number | null;
18215
+ sequence: number;
18216
+ shadow: boolean;
18217
+ started_at: string | null;
18218
+ status: string;
18219
+ strategy_id: string | null;
18220
+ task_type: string;
18221
+ updated_at: string;
18222
+ user_id: string;
18223
+ }[];
18224
+ SetofOptions: {
18225
+ from: "*";
18226
+ to: "logistics_tasks";
18227
+ isOneToOne: false;
18228
+ isSetofReturn: true;
18229
+ };
18230
+ };
17568
18231
  claim_print_jobs: {
17569
18232
  Args: {
17570
18233
  _agent_id: string;
@@ -17805,6 +18468,21 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17805
18468
  Args: never;
17806
18469
  Returns: string;
17807
18470
  };
18471
+ exact_auth_consume_calls: {
18472
+ Args: {
18473
+ _account_key: string;
18474
+ _calls?: number;
18475
+ _day_limit?: number;
18476
+ _division_code: number;
18477
+ _environment: string;
18478
+ _minute_limit?: number;
18479
+ };
18480
+ Returns: import("../integrations/supabase/types").Json;
18481
+ };
18482
+ exact_auth_prune_sync_log: {
18483
+ Args: never;
18484
+ Returns: undefined;
18485
+ };
17808
18486
  exact_decrypt: {
17809
18487
  Args: {
17810
18488
  cipher: string;
@@ -18014,6 +18692,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18014
18692
  };
18015
18693
  Returns: number;
18016
18694
  };
18695
+ get_offer_branding: {
18696
+ Args: never;
18697
+ Returns: import("../integrations/supabase/types").Json;
18698
+ };
18017
18699
  get_offer_by_link_code: {
18018
18700
  Args: {
18019
18701
  p_code: string;
@@ -18185,6 +18867,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18185
18867
  };
18186
18868
  Returns: string;
18187
18869
  };
18870
+ logistics_active_pick_workdays: {
18871
+ Args: never;
18872
+ Returns: string[];
18873
+ };
18188
18874
  logistics_address_key: {
18189
18875
  Args: {
18190
18876
  p_location: string;
@@ -18301,6 +18987,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18301
18987
  p_worker?: string;
18302
18988
  };
18303
18989
  Returns: {
18990
+ attempt_log: import("../integrations/supabase/types").Json;
18991
+ attempts: number;
18304
18992
  buffer_ref: string | null;
18305
18993
  claimed_at: string | null;
18306
18994
  claimed_by: string | null;
@@ -18310,6 +18998,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18310
18998
  due_at: string | null;
18311
18999
  error: string | null;
18312
19000
  id: string;
19001
+ last_error: string | null;
19002
+ next_attempt_at: string | null;
18313
19003
  order_ref: string;
18314
19004
  owner_module: string;
18315
19005
  payload: import("../integrations/supabase/types").Json;
@@ -18342,6 +19032,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18342
19032
  p_worker?: string;
18343
19033
  };
18344
19034
  Returns: {
19035
+ attempt_log: import("../integrations/supabase/types").Json;
19036
+ attempts: number;
18345
19037
  buffer_ref: string | null;
18346
19038
  claimed_at: string | null;
18347
19039
  claimed_by: string | null;
@@ -18351,6 +19043,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18351
19043
  due_at: string | null;
18352
19044
  error: string | null;
18353
19045
  id: string;
19046
+ last_error: string | null;
19047
+ next_attempt_at: string | null;
18354
19048
  order_ref: string;
18355
19049
  owner_module: string;
18356
19050
  payload: import("../integrations/supabase/types").Json;
@@ -18383,6 +19077,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18383
19077
  p_task_id: string;
18384
19078
  };
18385
19079
  Returns: {
19080
+ attempt_log: import("../integrations/supabase/types").Json;
19081
+ attempts: number;
18386
19082
  buffer_ref: string | null;
18387
19083
  claimed_at: string | null;
18388
19084
  claimed_by: string | null;
@@ -18392,6 +19088,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18392
19088
  due_at: string | null;
18393
19089
  error: string | null;
18394
19090
  id: string;
19091
+ last_error: string | null;
19092
+ next_attempt_at: string | null;
18395
19093
  order_ref: string;
18396
19094
  owner_module: string;
18397
19095
  payload: import("../integrations/supabase/types").Json;
@@ -18473,6 +19171,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18473
19171
  p_task_id: string;
18474
19172
  };
18475
19173
  Returns: {
19174
+ attempt_log: import("../integrations/supabase/types").Json;
19175
+ attempts: number;
18476
19176
  buffer_ref: string | null;
18477
19177
  claimed_at: string | null;
18478
19178
  claimed_by: string | null;
@@ -18482,6 +19182,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18482
19182
  due_at: string | null;
18483
19183
  error: string | null;
18484
19184
  id: string;
19185
+ last_error: string | null;
19186
+ next_attempt_at: string | null;
18485
19187
  order_ref: string;
18486
19188
  owner_module: string;
18487
19189
  payload: import("../integrations/supabase/types").Json;
@@ -18508,12 +19210,30 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18508
19210
  isSetofReturn: false;
18509
19211
  };
18510
19212
  };
19213
+ logistics_live_carriers: {
19214
+ Args: {
19215
+ p_order_ref: string;
19216
+ };
19217
+ Returns: import("../integrations/supabase/types").Json;
19218
+ };
19219
+ logistics_live_cart_count: {
19220
+ Args: {
19221
+ p_order_ref: string;
19222
+ };
19223
+ Returns: number;
19224
+ };
18511
19225
  logistics_not_past: {
18512
19226
  Args: {
18513
19227
  p_ts: string;
18514
19228
  };
18515
19229
  Returns: string;
18516
19230
  };
19231
+ logistics_order_cart_count: {
19232
+ Args: {
19233
+ p_order_ref: string;
19234
+ };
19235
+ Returns: number;
19236
+ };
18517
19237
  logistics_order_pick_day: {
18518
19238
  Args: {
18519
19239
  p_order_ref: string;
@@ -18690,6 +19410,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18690
19410
  };
18691
19411
  Returns: import("../integrations/supabase/types").Json;
18692
19412
  };
19413
+ logistics_shift_to_workday: {
19414
+ Args: {
19415
+ p_days: string[];
19416
+ p_ts: string;
19417
+ };
19418
+ Returns: string;
19419
+ };
18693
19420
  logistics_supersede_stale_tasks: {
18694
19421
  Args: {
18695
19422
  p_keep: string[];
@@ -18975,6 +19702,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18975
19702
  isSetofReturn: false;
18976
19703
  };
18977
19704
  };
19705
+ pick_current_pick_day: {
19706
+ Args: never;
19707
+ Returns: string;
19708
+ };
18978
19709
  pick_document_layout_data: {
18979
19710
  Args: {
18980
19711
  _layout_id: string;
@@ -19206,10 +19937,68 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19206
19937
  Args: never;
19207
19938
  Returns: undefined;
19208
19939
  };
19940
+ run_logistics_tasks_dispatch: {
19941
+ Args: never;
19942
+ Returns: undefined;
19943
+ };
19209
19944
  run_twinfield_queue_tick: {
19210
19945
  Args: never;
19211
19946
  Returns: undefined;
19212
19947
  };
19948
+ scan_cancel_kar: {
19949
+ Args: {
19950
+ p_kar_id: string;
19951
+ };
19952
+ Returns: import("../integrations/supabase/types").Json;
19953
+ };
19954
+ scan_dashboard_stats: {
19955
+ Args: {
19956
+ p_dagen?: number;
19957
+ };
19958
+ Returns: import("../integrations/supabase/types").Json;
19959
+ };
19960
+ scan_finish_kar: {
19961
+ Args: {
19962
+ p_kar_id: string;
19963
+ };
19964
+ Returns: import("../integrations/supabase/types").Json;
19965
+ };
19966
+ scan_register_item: {
19967
+ Args: {
19968
+ p_kar_id: string;
19969
+ p_pakbon_item_id: string;
19970
+ p_scanned_by?: string;
19971
+ };
19972
+ Returns: import("../integrations/supabase/types").Json;
19973
+ };
19974
+ scan_release_expired_locks: {
19975
+ Args: never;
19976
+ Returns: import("../integrations/supabase/types").Json;
19977
+ };
19978
+ scan_remove_item: {
19979
+ Args: {
19980
+ p_kar_item_id: string;
19981
+ };
19982
+ Returns: import("../integrations/supabase/types").Json;
19983
+ };
19984
+ scan_start_kar: {
19985
+ Args: {
19986
+ p_medewerker_id?: string;
19987
+ p_medewerker_naam?: string;
19988
+ p_pakbon_ids: string[];
19989
+ p_scanner_key?: string;
19990
+ };
19991
+ Returns: import("../integrations/supabase/types").Json;
19992
+ } | {
19993
+ Args: {
19994
+ p_medewerker_id?: string;
19995
+ p_medewerker_naam?: string;
19996
+ p_pakbon_ids: string[];
19997
+ p_scanner_key?: string;
19998
+ p_sessie?: string;
19999
+ };
20000
+ Returns: import("../integrations/supabase/types").Json;
20001
+ };
19213
20002
  schedule_floriday_additional_services_sync: {
19214
20003
  Args: {
19215
20004
  p_apikey: string;
@@ -21473,6 +22262,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
21473
22262
  referencedColumns: ["id"];
21474
22263
  }];
21475
22264
  };
22265
+ customer_notes: {
22266
+ Row: {
22267
+ created_at: string;
22268
+ customer_id: string | null;
22269
+ group_key: string | null;
22270
+ id: string;
22271
+ notes: string | null;
22272
+ updated_at: string;
22273
+ };
22274
+ Insert: {
22275
+ created_at?: string;
22276
+ customer_id?: string | null;
22277
+ group_key?: string | null;
22278
+ id?: string;
22279
+ notes?: string | null;
22280
+ updated_at?: string;
22281
+ };
22282
+ Update: {
22283
+ created_at?: string;
22284
+ customer_id?: string | null;
22285
+ group_key?: string | null;
22286
+ id?: string;
22287
+ notes?: string | null;
22288
+ updated_at?: string;
22289
+ };
22290
+ Relationships: [{
22291
+ foreignKeyName: "customer_notes_customer_id_fkey";
22292
+ columns: ["customer_id"];
22293
+ isOneToOne: true;
22294
+ referencedRelation: "customers";
22295
+ referencedColumns: ["id"];
22296
+ }];
22297
+ };
21476
22298
  customer_price_group_members: {
21477
22299
  Row: {
21478
22300
  created_at: string;
@@ -23117,6 +23939,474 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
23117
23939
  referencedColumns: ["id"];
23118
23940
  }];
23119
23941
  };
23942
+ exact_auth_call_budget: {
23943
+ Row: {
23944
+ account_key: string;
23945
+ day_count: number;
23946
+ day_date: string;
23947
+ division_code: number;
23948
+ environment: string;
23949
+ minute_count: number;
23950
+ minute_window: string;
23951
+ updated_at: string;
23952
+ };
23953
+ Insert: {
23954
+ account_key?: string;
23955
+ day_count?: number;
23956
+ day_date?: string;
23957
+ division_code?: number;
23958
+ environment: string;
23959
+ minute_count?: number;
23960
+ minute_window?: string;
23961
+ updated_at?: string;
23962
+ };
23963
+ Update: {
23964
+ account_key?: string;
23965
+ day_count?: number;
23966
+ day_date?: string;
23967
+ division_code?: number;
23968
+ environment?: string;
23969
+ minute_count?: number;
23970
+ minute_window?: string;
23971
+ updated_at?: string;
23972
+ };
23973
+ Relationships: [];
23974
+ };
23975
+ exact_auth_customers: {
23976
+ Row: {
23977
+ account_key: string;
23978
+ address_line1: string | null;
23979
+ chamber_of_commerce: string | null;
23980
+ city: string | null;
23981
+ code: string | null;
23982
+ country: string | null;
23983
+ created_at: string;
23984
+ currency: string | null;
23985
+ division_code: number | null;
23986
+ email: string | null;
23987
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
23988
+ exact_id: string;
23989
+ exact_modified: string | null;
23990
+ exact_timestamp: number | null;
23991
+ id: string;
23992
+ is_active: boolean;
23993
+ name: string | null;
23994
+ phone: string | null;
23995
+ postcode: string | null;
23996
+ raw: import("../integrations/supabase/types").Json | null;
23997
+ status: string | null;
23998
+ updated_at: string;
23999
+ vat_number: string | null;
24000
+ website: string | null;
24001
+ };
24002
+ Insert: {
24003
+ account_key?: string;
24004
+ address_line1?: string | null;
24005
+ chamber_of_commerce?: string | null;
24006
+ city?: string | null;
24007
+ code?: string | null;
24008
+ country?: string | null;
24009
+ created_at?: string;
24010
+ currency?: string | null;
24011
+ division_code?: number | null;
24012
+ email?: string | null;
24013
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24014
+ exact_id: string;
24015
+ exact_modified?: string | null;
24016
+ exact_timestamp?: number | null;
24017
+ id?: string;
24018
+ is_active?: boolean;
24019
+ name?: string | null;
24020
+ phone?: string | null;
24021
+ postcode?: string | null;
24022
+ raw?: import("../integrations/supabase/types").Json | null;
24023
+ status?: string | null;
24024
+ updated_at?: string;
24025
+ vat_number?: string | null;
24026
+ website?: string | null;
24027
+ };
24028
+ Update: {
24029
+ account_key?: string;
24030
+ address_line1?: string | null;
24031
+ chamber_of_commerce?: string | null;
24032
+ city?: string | null;
24033
+ code?: string | null;
24034
+ country?: string | null;
24035
+ created_at?: string;
24036
+ currency?: string | null;
24037
+ division_code?: number | null;
24038
+ email?: string | null;
24039
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24040
+ exact_id?: string;
24041
+ exact_modified?: string | null;
24042
+ exact_timestamp?: number | null;
24043
+ id?: string;
24044
+ is_active?: boolean;
24045
+ name?: string | null;
24046
+ phone?: string | null;
24047
+ postcode?: string | null;
24048
+ raw?: import("../integrations/supabase/types").Json | null;
24049
+ status?: string | null;
24050
+ updated_at?: string;
24051
+ vat_number?: string | null;
24052
+ website?: string | null;
24053
+ };
24054
+ Relationships: [];
24055
+ };
24056
+ exact_auth_divisions: {
24057
+ Row: {
24058
+ account_key: string;
24059
+ company_name: string | null;
24060
+ created_at: string;
24061
+ division_code: number | null;
24062
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24063
+ id: string;
24064
+ last_synced_at: string | null;
24065
+ updated_at: string;
24066
+ };
24067
+ Insert: {
24068
+ account_key?: string;
24069
+ company_name?: string | null;
24070
+ created_at?: string;
24071
+ division_code?: number | null;
24072
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24073
+ id?: string;
24074
+ last_synced_at?: string | null;
24075
+ updated_at?: string;
24076
+ };
24077
+ Update: {
24078
+ account_key?: string;
24079
+ company_name?: string | null;
24080
+ created_at?: string;
24081
+ division_code?: number | null;
24082
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24083
+ id?: string;
24084
+ last_synced_at?: string | null;
24085
+ updated_at?: string;
24086
+ };
24087
+ Relationships: [];
24088
+ };
24089
+ exact_auth_invoice_lines: {
24090
+ Row: {
24091
+ account_key: string;
24092
+ amount_excl: number | null;
24093
+ created_at: string;
24094
+ description: string | null;
24095
+ discount: number | null;
24096
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24097
+ exact_id: string;
24098
+ exact_timestamp: number | null;
24099
+ id: string;
24100
+ invoice_exact_id: string;
24101
+ item_code: string | null;
24102
+ item_exact_id: string | null;
24103
+ line_number: number | null;
24104
+ quantity: number | null;
24105
+ raw: import("../integrations/supabase/types").Json | null;
24106
+ unit_price: number | null;
24107
+ updated_at: string;
24108
+ vat_amount: number | null;
24109
+ vat_code: string | null;
24110
+ };
24111
+ Insert: {
24112
+ account_key?: string;
24113
+ amount_excl?: number | null;
24114
+ created_at?: string;
24115
+ description?: string | null;
24116
+ discount?: number | null;
24117
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24118
+ exact_id: string;
24119
+ exact_timestamp?: number | null;
24120
+ id?: string;
24121
+ invoice_exact_id: string;
24122
+ item_code?: string | null;
24123
+ item_exact_id?: string | null;
24124
+ line_number?: number | null;
24125
+ quantity?: number | null;
24126
+ raw?: import("../integrations/supabase/types").Json | null;
24127
+ unit_price?: number | null;
24128
+ updated_at?: string;
24129
+ vat_amount?: number | null;
24130
+ vat_code?: string | null;
24131
+ };
24132
+ Update: {
24133
+ account_key?: string;
24134
+ amount_excl?: number | null;
24135
+ created_at?: string;
24136
+ description?: string | null;
24137
+ discount?: number | null;
24138
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24139
+ exact_id?: string;
24140
+ exact_timestamp?: number | null;
24141
+ id?: string;
24142
+ invoice_exact_id?: string;
24143
+ item_code?: string | null;
24144
+ item_exact_id?: string | null;
24145
+ line_number?: number | null;
24146
+ quantity?: number | null;
24147
+ raw?: import("../integrations/supabase/types").Json | null;
24148
+ unit_price?: number | null;
24149
+ updated_at?: string;
24150
+ vat_amount?: number | null;
24151
+ vat_code?: string | null;
24152
+ };
24153
+ Relationships: [];
24154
+ };
24155
+ exact_auth_invoices: {
24156
+ Row: {
24157
+ account_key: string;
24158
+ amount_excl: number | null;
24159
+ amount_incl: number | null;
24160
+ amount_open: number | null;
24161
+ created_at: string;
24162
+ currency: string | null;
24163
+ customer_code: string | null;
24164
+ customer_exact_id: string | null;
24165
+ customer_name: string | null;
24166
+ description: string | null;
24167
+ division_code: number | null;
24168
+ due_date: string | null;
24169
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24170
+ exact_id: string;
24171
+ exact_modified: string | null;
24172
+ exact_timestamp: number | null;
24173
+ id: string;
24174
+ invoice_date: string | null;
24175
+ invoice_number: string | null;
24176
+ order_number: string | null;
24177
+ paid_at: string | null;
24178
+ payment_status: string;
24179
+ raw: import("../integrations/supabase/types").Json | null;
24180
+ receivable_synced_at: string | null;
24181
+ status_code: number | null;
24182
+ updated_at: string;
24183
+ };
24184
+ Insert: {
24185
+ account_key?: string;
24186
+ amount_excl?: number | null;
24187
+ amount_incl?: number | null;
24188
+ amount_open?: number | null;
24189
+ created_at?: string;
24190
+ currency?: string | null;
24191
+ customer_code?: string | null;
24192
+ customer_exact_id?: string | null;
24193
+ customer_name?: string | null;
24194
+ description?: string | null;
24195
+ division_code?: number | null;
24196
+ due_date?: string | null;
24197
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24198
+ exact_id: string;
24199
+ exact_modified?: string | null;
24200
+ exact_timestamp?: number | null;
24201
+ id?: string;
24202
+ invoice_date?: string | null;
24203
+ invoice_number?: string | null;
24204
+ order_number?: string | null;
24205
+ paid_at?: string | null;
24206
+ payment_status?: string;
24207
+ raw?: import("../integrations/supabase/types").Json | null;
24208
+ receivable_synced_at?: string | null;
24209
+ status_code?: number | null;
24210
+ updated_at?: string;
24211
+ };
24212
+ Update: {
24213
+ account_key?: string;
24214
+ amount_excl?: number | null;
24215
+ amount_incl?: number | null;
24216
+ amount_open?: number | null;
24217
+ created_at?: string;
24218
+ currency?: string | null;
24219
+ customer_code?: string | null;
24220
+ customer_exact_id?: string | null;
24221
+ customer_name?: string | null;
24222
+ description?: string | null;
24223
+ division_code?: number | null;
24224
+ due_date?: string | null;
24225
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24226
+ exact_id?: string;
24227
+ exact_modified?: string | null;
24228
+ exact_timestamp?: number | null;
24229
+ id?: string;
24230
+ invoice_date?: string | null;
24231
+ invoice_number?: string | null;
24232
+ order_number?: string | null;
24233
+ paid_at?: string | null;
24234
+ payment_status?: string;
24235
+ raw?: import("../integrations/supabase/types").Json | null;
24236
+ receivable_synced_at?: string | null;
24237
+ status_code?: number | null;
24238
+ updated_at?: string;
24239
+ };
24240
+ Relationships: [];
24241
+ };
24242
+ exact_auth_items: {
24243
+ Row: {
24244
+ account_key: string;
24245
+ barcode: string | null;
24246
+ code: string | null;
24247
+ cost_price: number | null;
24248
+ created_at: string;
24249
+ description: string | null;
24250
+ division_code: number | null;
24251
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24252
+ exact_id: string;
24253
+ exact_modified: string | null;
24254
+ exact_timestamp: number | null;
24255
+ gl_account_code: string | null;
24256
+ id: string;
24257
+ is_active: boolean;
24258
+ is_sales_item: boolean | null;
24259
+ item_type: string | null;
24260
+ raw: import("../integrations/supabase/types").Json | null;
24261
+ sales_price: number | null;
24262
+ unit: string | null;
24263
+ updated_at: string;
24264
+ vat_code: string | null;
24265
+ };
24266
+ Insert: {
24267
+ account_key?: string;
24268
+ barcode?: string | null;
24269
+ code?: string | null;
24270
+ cost_price?: number | null;
24271
+ created_at?: string;
24272
+ description?: string | null;
24273
+ division_code?: number | null;
24274
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24275
+ exact_id: string;
24276
+ exact_modified?: string | null;
24277
+ exact_timestamp?: number | null;
24278
+ gl_account_code?: string | null;
24279
+ id?: string;
24280
+ is_active?: boolean;
24281
+ is_sales_item?: boolean | null;
24282
+ item_type?: string | null;
24283
+ raw?: import("../integrations/supabase/types").Json | null;
24284
+ sales_price?: number | null;
24285
+ unit?: string | null;
24286
+ updated_at?: string;
24287
+ vat_code?: string | null;
24288
+ };
24289
+ Update: {
24290
+ account_key?: string;
24291
+ barcode?: string | null;
24292
+ code?: string | null;
24293
+ cost_price?: number | null;
24294
+ created_at?: string;
24295
+ description?: string | null;
24296
+ division_code?: number | null;
24297
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24298
+ exact_id?: string;
24299
+ exact_modified?: string | null;
24300
+ exact_timestamp?: number | null;
24301
+ gl_account_code?: string | null;
24302
+ id?: string;
24303
+ is_active?: boolean;
24304
+ is_sales_item?: boolean | null;
24305
+ item_type?: string | null;
24306
+ raw?: import("../integrations/supabase/types").Json | null;
24307
+ sales_price?: number | null;
24308
+ unit?: string | null;
24309
+ updated_at?: string;
24310
+ vat_code?: string | null;
24311
+ };
24312
+ Relationships: [];
24313
+ };
24314
+ exact_auth_sync_log: {
24315
+ Row: {
24316
+ account_key: string;
24317
+ calls_used: number;
24318
+ created_at: string;
24319
+ domain: string;
24320
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24321
+ error: string | null;
24322
+ finished_at: string | null;
24323
+ id: string;
24324
+ ok: boolean;
24325
+ records: number;
24326
+ started_at: string;
24327
+ };
24328
+ Insert: {
24329
+ account_key?: string;
24330
+ calls_used?: number;
24331
+ created_at?: string;
24332
+ domain: string;
24333
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24334
+ error?: string | null;
24335
+ finished_at?: string | null;
24336
+ id?: string;
24337
+ ok?: boolean;
24338
+ records?: number;
24339
+ started_at?: string;
24340
+ };
24341
+ Update: {
24342
+ account_key?: string;
24343
+ calls_used?: number;
24344
+ created_at?: string;
24345
+ domain?: string;
24346
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24347
+ error?: string | null;
24348
+ finished_at?: string | null;
24349
+ id?: string;
24350
+ ok?: boolean;
24351
+ records?: number;
24352
+ started_at?: string;
24353
+ };
24354
+ Relationships: [];
24355
+ };
24356
+ exact_auth_sync_state: {
24357
+ Row: {
24358
+ account_key: string;
24359
+ created_at: string;
24360
+ cursor_timestamp: number;
24361
+ division_code: number | null;
24362
+ domain: string;
24363
+ duration_ms: number | null;
24364
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24365
+ initial_sync_done: boolean;
24366
+ last_error: string | null;
24367
+ last_run_at: string | null;
24368
+ last_success_at: string | null;
24369
+ locked_at: string | null;
24370
+ needs_initial_sync: boolean;
24371
+ record_count: number;
24372
+ updated_at: string;
24373
+ };
24374
+ Insert: {
24375
+ account_key?: string;
24376
+ created_at?: string;
24377
+ cursor_timestamp?: number;
24378
+ division_code?: number | null;
24379
+ domain: string;
24380
+ duration_ms?: number | null;
24381
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
24382
+ initial_sync_done?: boolean;
24383
+ last_error?: string | null;
24384
+ last_run_at?: string | null;
24385
+ last_success_at?: string | null;
24386
+ locked_at?: string | null;
24387
+ needs_initial_sync?: boolean;
24388
+ record_count?: number;
24389
+ updated_at?: string;
24390
+ };
24391
+ Update: {
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
+ Relationships: [];
24409
+ };
23120
24410
  exact_bulk_operation_items: {
23121
24411
  Row: {
23122
24412
  attempts: number;
@@ -27779,6 +29069,66 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
27779
29069
  };
27780
29070
  Relationships: [];
27781
29071
  };
29072
+ logistics_recalc_jobs: {
29073
+ Row: {
29074
+ carts_created: number;
29075
+ created_at: string;
29076
+ cursor: string | null;
29077
+ errors: import("../integrations/supabase/types").Json;
29078
+ failed: number;
29079
+ finished_at: string | null;
29080
+ id: string;
29081
+ last_tick_at: string | null;
29082
+ phase: string;
29083
+ processed: number;
29084
+ skipped_locked: number;
29085
+ started_by: string | null;
29086
+ status: string;
29087
+ steps: import("../integrations/supabase/types").Json;
29088
+ strategy_id: string | null;
29089
+ tasks_updated: number;
29090
+ updated_at: string;
29091
+ };
29092
+ Insert: {
29093
+ carts_created?: number;
29094
+ created_at?: string;
29095
+ cursor?: string | null;
29096
+ errors?: import("../integrations/supabase/types").Json;
29097
+ failed?: number;
29098
+ finished_at?: string | null;
29099
+ id?: string;
29100
+ last_tick_at?: string | null;
29101
+ phase?: string;
29102
+ processed?: number;
29103
+ skipped_locked?: number;
29104
+ started_by?: string | null;
29105
+ status?: string;
29106
+ steps?: import("../integrations/supabase/types").Json;
29107
+ strategy_id?: string | null;
29108
+ tasks_updated?: number;
29109
+ updated_at?: string;
29110
+ };
29111
+ Update: {
29112
+ carts_created?: number;
29113
+ created_at?: string;
29114
+ cursor?: string | null;
29115
+ errors?: import("../integrations/supabase/types").Json;
29116
+ failed?: number;
29117
+ finished_at?: string | null;
29118
+ id?: string;
29119
+ last_tick_at?: string | null;
29120
+ phase?: string;
29121
+ processed?: number;
29122
+ skipped_locked?: number;
29123
+ started_by?: string | null;
29124
+ status?: string;
29125
+ steps?: import("../integrations/supabase/types").Json;
29126
+ strategy_id?: string | null;
29127
+ tasks_updated?: number;
29128
+ updated_at?: string;
29129
+ };
29130
+ Relationships: [];
29131
+ };
27782
29132
  logistics_reschedules: {
27783
29133
  Row: {
27784
29134
  created_at: string;
@@ -28141,6 +29491,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28141
29491
  };
28142
29492
  logistics_tasks: {
28143
29493
  Row: {
29494
+ attempt_log: import("../integrations/supabase/types").Json;
29495
+ attempts: number;
28144
29496
  buffer_ref: string | null;
28145
29497
  claimed_at: string | null;
28146
29498
  claimed_by: string | null;
@@ -28150,6 +29502,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28150
29502
  due_at: string | null;
28151
29503
  error: string | null;
28152
29504
  id: string;
29505
+ last_error: string | null;
29506
+ next_attempt_at: string | null;
28153
29507
  order_ref: string;
28154
29508
  owner_module: string;
28155
29509
  payload: import("../integrations/supabase/types").Json;
@@ -28170,6 +29524,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28170
29524
  user_id: string;
28171
29525
  };
28172
29526
  Insert: {
29527
+ attempt_log?: import("../integrations/supabase/types").Json;
29528
+ attempts?: number;
28173
29529
  buffer_ref?: string | null;
28174
29530
  claimed_at?: string | null;
28175
29531
  claimed_by?: string | null;
@@ -28179,6 +29535,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28179
29535
  due_at?: string | null;
28180
29536
  error?: string | null;
28181
29537
  id?: string;
29538
+ last_error?: string | null;
29539
+ next_attempt_at?: string | null;
28182
29540
  order_ref: string;
28183
29541
  owner_module: string;
28184
29542
  payload?: import("../integrations/supabase/types").Json;
@@ -28199,6 +29557,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28199
29557
  user_id?: string;
28200
29558
  };
28201
29559
  Update: {
29560
+ attempt_log?: import("../integrations/supabase/types").Json;
29561
+ attempts?: number;
28202
29562
  buffer_ref?: string | null;
28203
29563
  claimed_at?: string | null;
28204
29564
  claimed_by?: string | null;
@@ -28208,6 +29568,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28208
29568
  due_at?: string | null;
28209
29569
  error?: string | null;
28210
29570
  id?: string;
29571
+ last_error?: string | null;
29572
+ next_attempt_at?: string | null;
28211
29573
  order_ref?: string;
28212
29574
  owner_module?: string;
28213
29575
  payload?: import("../integrations/supabase/types").Json;
@@ -29557,6 +30919,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29557
30919
  };
29558
30920
  offer_settings: {
29559
30921
  Row: {
30922
+ brand_name: string | null;
29560
30923
  button_color: string;
29561
30924
  created_at: string;
29562
30925
  default_countries: string[];
@@ -29578,6 +30941,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29578
30941
  updated_at: string;
29579
30942
  };
29580
30943
  Insert: {
30944
+ brand_name?: string | null;
29581
30945
  button_color?: string;
29582
30946
  created_at?: string;
29583
30947
  default_countries?: string[];
@@ -29599,6 +30963,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29599
30963
  updated_at?: string;
29600
30964
  };
29601
30965
  Update: {
30966
+ brand_name?: string | null;
29602
30967
  button_color?: string;
29603
30968
  created_at?: string;
29604
30969
  default_countries?: string[];
@@ -33008,6 +34373,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33008
34373
  buffer_key: string | null;
33009
34374
  created_at: string;
33010
34375
  customer_names: string[];
34376
+ device_id: string | null;
33011
34377
  geprint: boolean;
33012
34378
  geprint_op: string | null;
33013
34379
  id: string;
@@ -33017,6 +34383,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33017
34383
  naar_pickstation: boolean;
33018
34384
  naar_pickstation_op: string | null;
33019
34385
  order_number: string | null;
34386
+ scanner_id: string | null;
33020
34387
  scanner_key: string;
33021
34388
  status: string;
33022
34389
  totaal_producten: number;
@@ -33027,6 +34394,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33027
34394
  buffer_key?: string | null;
33028
34395
  created_at?: string;
33029
34396
  customer_names?: string[];
34397
+ device_id?: string | null;
33030
34398
  geprint?: boolean;
33031
34399
  geprint_op?: string | null;
33032
34400
  id?: string;
@@ -33036,6 +34404,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33036
34404
  naar_pickstation?: boolean;
33037
34405
  naar_pickstation_op?: string | null;
33038
34406
  order_number?: string | null;
34407
+ scanner_id?: string | null;
33039
34408
  scanner_key?: string;
33040
34409
  status?: string;
33041
34410
  totaal_producten?: number;
@@ -33046,6 +34415,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33046
34415
  buffer_key?: string | null;
33047
34416
  created_at?: string;
33048
34417
  customer_names?: string[];
34418
+ device_id?: string | null;
33049
34419
  geprint?: boolean;
33050
34420
  geprint_op?: string | null;
33051
34421
  id?: string;
@@ -33055,6 +34425,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33055
34425
  naar_pickstation?: boolean;
33056
34426
  naar_pickstation_op?: string | null;
33057
34427
  order_number?: string | null;
34428
+ scanner_id?: string | null;
33058
34429
  scanner_key?: string;
33059
34430
  status?: string;
33060
34431
  totaal_producten?: number;
@@ -33066,31 +34437,46 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33066
34437
  Row: {
33067
34438
  code: string;
33068
34439
  created_at: string;
34440
+ device_id: string | null;
33069
34441
  id: string;
33070
34442
  kar_id: string | null;
34443
+ latency_ms: number | null;
34444
+ medewerker_naam: string | null;
33071
34445
  message: string | null;
33072
34446
  result: string;
34447
+ retry_count: number;
33073
34448
  scanner_key: string;
34449
+ session_id: string | null;
33074
34450
  user_id: string | null;
33075
34451
  };
33076
34452
  Insert: {
33077
34453
  code: string;
33078
34454
  created_at?: string;
34455
+ device_id?: string | null;
33079
34456
  id?: string;
33080
34457
  kar_id?: string | null;
34458
+ latency_ms?: number | null;
34459
+ medewerker_naam?: string | null;
33081
34460
  message?: string | null;
33082
34461
  result: string;
34462
+ retry_count?: number;
33083
34463
  scanner_key?: string;
34464
+ session_id?: string | null;
33084
34465
  user_id?: string | null;
33085
34466
  };
33086
34467
  Update: {
33087
34468
  code?: string;
33088
34469
  created_at?: string;
34470
+ device_id?: string | null;
33089
34471
  id?: string;
33090
34472
  kar_id?: string | null;
34473
+ latency_ms?: number | null;
34474
+ medewerker_naam?: string | null;
33091
34475
  message?: string | null;
33092
34476
  result?: string;
34477
+ retry_count?: number;
33093
34478
  scanner_key?: string;
34479
+ session_id?: string | null;
33094
34480
  user_id?: string | null;
33095
34481
  };
33096
34482
  Relationships: [];
@@ -33147,6 +34533,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33147
34533
  printed_at: string;
33148
34534
  status: string;
33149
34535
  updated_at: string;
34536
+ vergrendeld_door: string | null;
34537
+ vergrendeld_sessie: string | null;
34538
+ vergrendeld_tot: string | null;
33150
34539
  };
33151
34540
  Insert: {
33152
34541
  barcode: string;
@@ -33160,6 +34549,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33160
34549
  printed_at?: string;
33161
34550
  status?: string;
33162
34551
  updated_at?: string;
34552
+ vergrendeld_door?: string | null;
34553
+ vergrendeld_sessie?: string | null;
34554
+ vergrendeld_tot?: string | null;
33163
34555
  };
33164
34556
  Update: {
33165
34557
  barcode?: string;
@@ -33173,6 +34565,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33173
34565
  printed_at?: string;
33174
34566
  status?: string;
33175
34567
  updated_at?: string;
34568
+ vergrendeld_door?: string | null;
34569
+ vergrendeld_sessie?: string | null;
34570
+ vergrendeld_tot?: string | null;
33176
34571
  };
33177
34572
  Relationships: [];
33178
34573
  };
@@ -33181,31 +34576,40 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
33181
34576
  actief: boolean;
33182
34577
  created_at: string;
33183
34578
  id: string;
34579
+ max_producten_per_kar: number | null;
33184
34580
  naam: string;
33185
34581
  omschrijving: string | null;
34582
+ pincode: string | null;
33186
34583
  slug: string;
33187
34584
  type: string;
33188
34585
  updated_at: string;
34586
+ vereist_medewerker: boolean;
33189
34587
  };
33190
34588
  Insert: {
33191
34589
  actief?: boolean;
33192
34590
  created_at?: string;
33193
34591
  id?: string;
34592
+ max_producten_per_kar?: number | null;
33194
34593
  naam: string;
33195
34594
  omschrijving?: string | null;
34595
+ pincode?: string | null;
33196
34596
  slug: string;
33197
34597
  type?: string;
33198
34598
  updated_at?: string;
34599
+ vereist_medewerker?: boolean;
33199
34600
  };
33200
34601
  Update: {
33201
34602
  actief?: boolean;
33202
34603
  created_at?: string;
33203
34604
  id?: string;
34605
+ max_producten_per_kar?: number | null;
33204
34606
  naam?: string;
33205
34607
  omschrijving?: string | null;
34608
+ pincode?: string | null;
33206
34609
  slug?: string;
33207
34610
  type?: string;
33208
34611
  updated_at?: string;
34612
+ vereist_medewerker?: boolean;
33209
34613
  };
33210
34614
  Relationships: [];
33211
34615
  };
@@ -37170,6 +38574,54 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37170
38574
  };
37171
38575
  Returns: import("../integrations/supabase/types").Json;
37172
38576
  };
38577
+ claim_logistics_tasks: {
38578
+ Args: {
38579
+ _limit?: number;
38580
+ _owner_module: string;
38581
+ _stale_minutes?: number;
38582
+ _task_type: string;
38583
+ _worker: string;
38584
+ };
38585
+ Returns: {
38586
+ attempt_log: import("../integrations/supabase/types").Json;
38587
+ attempts: number;
38588
+ buffer_ref: string | null;
38589
+ claimed_at: string | null;
38590
+ claimed_by: string | null;
38591
+ completed_at: string | null;
38592
+ created_at: string;
38593
+ depends_on: string[];
38594
+ due_at: string | null;
38595
+ error: string | null;
38596
+ id: string;
38597
+ last_error: string | null;
38598
+ next_attempt_at: string | null;
38599
+ order_ref: string;
38600
+ owner_module: string;
38601
+ payload: import("../integrations/supabase/types").Json;
38602
+ plan_run_id: string | null;
38603
+ planned_end: string | null;
38604
+ planned_start: string | null;
38605
+ priority: number;
38606
+ result: import("../integrations/supabase/types").Json | null;
38607
+ rule_config_id: string | null;
38608
+ rule_version: number | null;
38609
+ sequence: number;
38610
+ shadow: boolean;
38611
+ started_at: string | null;
38612
+ status: string;
38613
+ strategy_id: string | null;
38614
+ task_type: string;
38615
+ updated_at: string;
38616
+ user_id: string;
38617
+ }[];
38618
+ SetofOptions: {
38619
+ from: "*";
38620
+ to: "logistics_tasks";
38621
+ isOneToOne: false;
38622
+ isSetofReturn: true;
38623
+ };
38624
+ };
37173
38625
  claim_print_jobs: {
37174
38626
  Args: {
37175
38627
  _agent_id: string;
@@ -37410,6 +38862,21 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37410
38862
  Args: never;
37411
38863
  Returns: string;
37412
38864
  };
38865
+ exact_auth_consume_calls: {
38866
+ Args: {
38867
+ _account_key: string;
38868
+ _calls?: number;
38869
+ _day_limit?: number;
38870
+ _division_code: number;
38871
+ _environment: string;
38872
+ _minute_limit?: number;
38873
+ };
38874
+ Returns: import("../integrations/supabase/types").Json;
38875
+ };
38876
+ exact_auth_prune_sync_log: {
38877
+ Args: never;
38878
+ Returns: undefined;
38879
+ };
37413
38880
  exact_decrypt: {
37414
38881
  Args: {
37415
38882
  cipher: string;
@@ -37619,6 +39086,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37619
39086
  };
37620
39087
  Returns: number;
37621
39088
  };
39089
+ get_offer_branding: {
39090
+ Args: never;
39091
+ Returns: import("../integrations/supabase/types").Json;
39092
+ };
37622
39093
  get_offer_by_link_code: {
37623
39094
  Args: {
37624
39095
  p_code: string;
@@ -37790,6 +39261,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37790
39261
  };
37791
39262
  Returns: string;
37792
39263
  };
39264
+ logistics_active_pick_workdays: {
39265
+ Args: never;
39266
+ Returns: string[];
39267
+ };
37793
39268
  logistics_address_key: {
37794
39269
  Args: {
37795
39270
  p_location: string;
@@ -37906,6 +39381,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37906
39381
  p_worker?: string;
37907
39382
  };
37908
39383
  Returns: {
39384
+ attempt_log: import("../integrations/supabase/types").Json;
39385
+ attempts: number;
37909
39386
  buffer_ref: string | null;
37910
39387
  claimed_at: string | null;
37911
39388
  claimed_by: string | null;
@@ -37915,6 +39392,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37915
39392
  due_at: string | null;
37916
39393
  error: string | null;
37917
39394
  id: string;
39395
+ last_error: string | null;
39396
+ next_attempt_at: string | null;
37918
39397
  order_ref: string;
37919
39398
  owner_module: string;
37920
39399
  payload: import("../integrations/supabase/types").Json;
@@ -37947,6 +39426,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37947
39426
  p_worker?: string;
37948
39427
  };
37949
39428
  Returns: {
39429
+ attempt_log: import("../integrations/supabase/types").Json;
39430
+ attempts: number;
37950
39431
  buffer_ref: string | null;
37951
39432
  claimed_at: string | null;
37952
39433
  claimed_by: string | null;
@@ -37956,6 +39437,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37956
39437
  due_at: string | null;
37957
39438
  error: string | null;
37958
39439
  id: string;
39440
+ last_error: string | null;
39441
+ next_attempt_at: string | null;
37959
39442
  order_ref: string;
37960
39443
  owner_module: string;
37961
39444
  payload: import("../integrations/supabase/types").Json;
@@ -37988,6 +39471,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37988
39471
  p_task_id: string;
37989
39472
  };
37990
39473
  Returns: {
39474
+ attempt_log: import("../integrations/supabase/types").Json;
39475
+ attempts: number;
37991
39476
  buffer_ref: string | null;
37992
39477
  claimed_at: string | null;
37993
39478
  claimed_by: string | null;
@@ -37997,6 +39482,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37997
39482
  due_at: string | null;
37998
39483
  error: string | null;
37999
39484
  id: string;
39485
+ last_error: string | null;
39486
+ next_attempt_at: string | null;
38000
39487
  order_ref: string;
38001
39488
  owner_module: string;
38002
39489
  payload: import("../integrations/supabase/types").Json;
@@ -38078,6 +39565,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38078
39565
  p_task_id: string;
38079
39566
  };
38080
39567
  Returns: {
39568
+ attempt_log: import("../integrations/supabase/types").Json;
39569
+ attempts: number;
38081
39570
  buffer_ref: string | null;
38082
39571
  claimed_at: string | null;
38083
39572
  claimed_by: string | null;
@@ -38087,6 +39576,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38087
39576
  due_at: string | null;
38088
39577
  error: string | null;
38089
39578
  id: string;
39579
+ last_error: string | null;
39580
+ next_attempt_at: string | null;
38090
39581
  order_ref: string;
38091
39582
  owner_module: string;
38092
39583
  payload: import("../integrations/supabase/types").Json;
@@ -38113,12 +39604,30 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38113
39604
  isSetofReturn: false;
38114
39605
  };
38115
39606
  };
39607
+ logistics_live_carriers: {
39608
+ Args: {
39609
+ p_order_ref: string;
39610
+ };
39611
+ Returns: import("../integrations/supabase/types").Json;
39612
+ };
39613
+ logistics_live_cart_count: {
39614
+ Args: {
39615
+ p_order_ref: string;
39616
+ };
39617
+ Returns: number;
39618
+ };
38116
39619
  logistics_not_past: {
38117
39620
  Args: {
38118
39621
  p_ts: string;
38119
39622
  };
38120
39623
  Returns: string;
38121
39624
  };
39625
+ logistics_order_cart_count: {
39626
+ Args: {
39627
+ p_order_ref: string;
39628
+ };
39629
+ Returns: number;
39630
+ };
38122
39631
  logistics_order_pick_day: {
38123
39632
  Args: {
38124
39633
  p_order_ref: string;
@@ -38295,6 +39804,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38295
39804
  };
38296
39805
  Returns: import("../integrations/supabase/types").Json;
38297
39806
  };
39807
+ logistics_shift_to_workday: {
39808
+ Args: {
39809
+ p_days: string[];
39810
+ p_ts: string;
39811
+ };
39812
+ Returns: string;
39813
+ };
38298
39814
  logistics_supersede_stale_tasks: {
38299
39815
  Args: {
38300
39816
  p_keep: string[];
@@ -38580,6 +40096,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38580
40096
  isSetofReturn: false;
38581
40097
  };
38582
40098
  };
40099
+ pick_current_pick_day: {
40100
+ Args: never;
40101
+ Returns: string;
40102
+ };
38583
40103
  pick_document_layout_data: {
38584
40104
  Args: {
38585
40105
  _layout_id: string;
@@ -38811,10 +40331,68 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38811
40331
  Args: never;
38812
40332
  Returns: undefined;
38813
40333
  };
40334
+ run_logistics_tasks_dispatch: {
40335
+ Args: never;
40336
+ Returns: undefined;
40337
+ };
38814
40338
  run_twinfield_queue_tick: {
38815
40339
  Args: never;
38816
40340
  Returns: undefined;
38817
40341
  };
40342
+ scan_cancel_kar: {
40343
+ Args: {
40344
+ p_kar_id: string;
40345
+ };
40346
+ Returns: import("../integrations/supabase/types").Json;
40347
+ };
40348
+ scan_dashboard_stats: {
40349
+ Args: {
40350
+ p_dagen?: number;
40351
+ };
40352
+ Returns: import("../integrations/supabase/types").Json;
40353
+ };
40354
+ scan_finish_kar: {
40355
+ Args: {
40356
+ p_kar_id: string;
40357
+ };
40358
+ Returns: import("../integrations/supabase/types").Json;
40359
+ };
40360
+ scan_register_item: {
40361
+ Args: {
40362
+ p_kar_id: string;
40363
+ p_pakbon_item_id: string;
40364
+ p_scanned_by?: string;
40365
+ };
40366
+ Returns: import("../integrations/supabase/types").Json;
40367
+ };
40368
+ scan_release_expired_locks: {
40369
+ Args: never;
40370
+ Returns: import("../integrations/supabase/types").Json;
40371
+ };
40372
+ scan_remove_item: {
40373
+ Args: {
40374
+ p_kar_item_id: string;
40375
+ };
40376
+ Returns: import("../integrations/supabase/types").Json;
40377
+ };
40378
+ scan_start_kar: {
40379
+ Args: {
40380
+ p_medewerker_id?: string;
40381
+ p_medewerker_naam?: string;
40382
+ p_pakbon_ids: string[];
40383
+ p_scanner_key?: string;
40384
+ };
40385
+ Returns: import("../integrations/supabase/types").Json;
40386
+ } | {
40387
+ Args: {
40388
+ p_medewerker_id?: string;
40389
+ p_medewerker_naam?: string;
40390
+ p_pakbon_ids: string[];
40391
+ p_scanner_key?: string;
40392
+ p_sessie?: string;
40393
+ };
40394
+ Returns: import("../integrations/supabase/types").Json;
40395
+ };
38818
40396
  schedule_floriday_additional_services_sync: {
38819
40397
  Args: {
38820
40398
  p_apikey: string;