@flowselections/scan-module 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist-lib/components/ScanModulePage.d.ts.map +1 -1
  2. package/dist-lib/components/ScanModulePage.js +31 -9
  3. package/dist-lib/components/scanners/KarScannerPage.d.ts +3 -1
  4. package/dist-lib/components/scanners/KarScannerPage.d.ts.map +1 -1
  5. package/dist-lib/components/scanners/KarScannerPage.js +87 -8
  6. package/dist-lib/components/scanners/PublicScannerPage.d.ts +2 -1
  7. package/dist-lib/components/scanners/PublicScannerPage.d.ts.map +1 -1
  8. package/dist-lib/components/scanners/PublicScannerPage.js +2 -2
  9. package/dist-lib/components/scanners/ScannerBySlug.d.ts.map +1 -1
  10. package/dist-lib/components/scanners/ScannerBySlug.js +3 -2
  11. package/dist-lib/hooks/useScanners.d.ts +3 -1
  12. package/dist-lib/hooks/useScanners.d.ts.map +1 -1
  13. package/dist-lib/hooks/useScanners.js +1 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2284 -229
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +2284 -229
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +2284 -229
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +2363 -292
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.js +15 -1
  23. package/dist-lib/lib/scanI18n.d.ts +1 -1
  24. package/dist-lib/lib/scanI18n.d.ts.map +1 -1
  25. package/dist-lib/lib/scanI18n.js +139 -1
  26. package/dist-lib/lib/veilingbonPrint.d.ts +43 -0
  27. package/dist-lib/lib/veilingbonPrint.d.ts.map +1 -0
  28. package/dist-lib/lib/veilingbonPrint.js +124 -0
  29. package/package.json +105 -103
@@ -872,6 +872,126 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
872
872
  };
873
873
  Relationships: [];
874
874
  };
875
+ cao_holidays: {
876
+ Row: {
877
+ created_at: string;
878
+ description: string | null;
879
+ holiday_date: string;
880
+ id: string;
881
+ updated_at: string;
882
+ };
883
+ Insert: {
884
+ created_at?: string;
885
+ description?: string | null;
886
+ holiday_date: string;
887
+ id?: string;
888
+ updated_at?: string;
889
+ };
890
+ Update: {
891
+ created_at?: string;
892
+ description?: string | null;
893
+ holiday_date?: string;
894
+ id?: string;
895
+ updated_at?: string;
896
+ };
897
+ Relationships: [];
898
+ };
899
+ cao_settings: {
900
+ Row: {
901
+ auto_break_after_hours: number;
902
+ auto_break_minutes: number;
903
+ auto_break_unpaid: boolean;
904
+ auto_stop_after_hours: number;
905
+ callout_fee: number;
906
+ created_at: string;
907
+ daily_regular_hours: number;
908
+ default_hourly_rate: number;
909
+ id: string;
910
+ materials_markup_percent: number;
911
+ max_daily_hours: number;
912
+ max_weekly_hours: number;
913
+ meal_allowance_amount: number;
914
+ overtime_pct_178: number;
915
+ overtime_pct_189: number;
916
+ overtime_pct_212: number;
917
+ reminder_after_hours: number;
918
+ standby_evening_amount: number;
919
+ standby_weekend_amount: number;
920
+ travel_cost_per_km: number | null;
921
+ travel_cost_threshold_km: number | null;
922
+ travel_counts_as_work: boolean;
923
+ travel_hourly_rate: number;
924
+ travel_rate_per_hour: number;
925
+ travel_threshold_minutes: number;
926
+ updated_at: string;
927
+ weekend_always_212: boolean;
928
+ window_end: string;
929
+ window_start: string;
930
+ };
931
+ Insert: {
932
+ auto_break_after_hours?: number;
933
+ auto_break_minutes?: number;
934
+ auto_break_unpaid?: boolean;
935
+ auto_stop_after_hours?: number;
936
+ callout_fee?: number;
937
+ created_at?: string;
938
+ daily_regular_hours?: number;
939
+ default_hourly_rate?: number;
940
+ id?: string;
941
+ materials_markup_percent?: number;
942
+ max_daily_hours?: number;
943
+ max_weekly_hours?: number;
944
+ meal_allowance_amount?: number;
945
+ overtime_pct_178?: number;
946
+ overtime_pct_189?: number;
947
+ overtime_pct_212?: number;
948
+ reminder_after_hours?: number;
949
+ standby_evening_amount?: number;
950
+ standby_weekend_amount?: number;
951
+ travel_cost_per_km?: number | null;
952
+ travel_cost_threshold_km?: number | null;
953
+ travel_counts_as_work?: boolean;
954
+ travel_hourly_rate?: number;
955
+ travel_rate_per_hour?: number;
956
+ travel_threshold_minutes?: number;
957
+ updated_at?: string;
958
+ weekend_always_212?: boolean;
959
+ window_end?: string;
960
+ window_start?: string;
961
+ };
962
+ Update: {
963
+ auto_break_after_hours?: number;
964
+ auto_break_minutes?: number;
965
+ auto_break_unpaid?: boolean;
966
+ auto_stop_after_hours?: number;
967
+ callout_fee?: number;
968
+ created_at?: string;
969
+ daily_regular_hours?: number;
970
+ default_hourly_rate?: number;
971
+ id?: string;
972
+ materials_markup_percent?: number;
973
+ max_daily_hours?: number;
974
+ max_weekly_hours?: number;
975
+ meal_allowance_amount?: number;
976
+ overtime_pct_178?: number;
977
+ overtime_pct_189?: number;
978
+ overtime_pct_212?: number;
979
+ reminder_after_hours?: number;
980
+ standby_evening_amount?: number;
981
+ standby_weekend_amount?: number;
982
+ travel_cost_per_km?: number | null;
983
+ travel_cost_threshold_km?: number | null;
984
+ travel_counts_as_work?: boolean;
985
+ travel_hourly_rate?: number;
986
+ travel_rate_per_hour?: number;
987
+ travel_threshold_minutes?: number;
988
+ updated_at?: string;
989
+ weekend_always_212?: boolean;
990
+ window_end?: string;
991
+ window_start?: string;
992
+ };
993
+ Relationships: [];
994
+ };
875
995
  carrier_shipping_rates: {
876
996
  Row: {
877
997
  carrier_id: string;
@@ -1684,7 +1804,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1684
1804
  city: string | null;
1685
1805
  country: string | null;
1686
1806
  created_at: string;
1687
- customer_id: string | null;
1807
+ customer_id: string;
1688
1808
  external_key: string | null;
1689
1809
  external_provider: string | null;
1690
1810
  floriday_location_id: string | null;
@@ -1708,7 +1828,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1708
1828
  city?: string | null;
1709
1829
  country?: string | null;
1710
1830
  created_at?: string;
1711
- customer_id?: string | null;
1831
+ customer_id: string;
1712
1832
  external_key?: string | null;
1713
1833
  external_provider?: string | null;
1714
1834
  floriday_location_id?: string | null;
@@ -1732,7 +1852,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1852
  city?: string | null;
1733
1853
  country?: string | null;
1734
1854
  created_at?: string;
1735
- customer_id?: string | null;
1855
+ customer_id?: string;
1736
1856
  external_key?: string | null;
1737
1857
  external_provider?: string | null;
1738
1858
  floriday_location_id?: string | null;
@@ -3536,153 +3656,588 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3536
3656
  referencedColumns: ["id"];
3537
3657
  }];
3538
3658
  };
3539
- exact_auth_divisions: {
3659
+ exact_auth_call_budget: {
3540
3660
  Row: {
3541
3661
  account_key: string;
3542
- company_name: string | null;
3662
+ day_count: number;
3663
+ day_date: string;
3664
+ division_code: number;
3665
+ environment: string;
3666
+ minute_count: number;
3667
+ minute_window: string;
3668
+ updated_at: string;
3669
+ };
3670
+ Insert: {
3671
+ account_key?: string;
3672
+ day_count?: number;
3673
+ day_date?: string;
3674
+ division_code?: number;
3675
+ environment: string;
3676
+ minute_count?: number;
3677
+ minute_window?: string;
3678
+ updated_at?: string;
3679
+ };
3680
+ Update: {
3681
+ account_key?: string;
3682
+ day_count?: number;
3683
+ day_date?: string;
3684
+ division_code?: number;
3685
+ environment?: string;
3686
+ minute_count?: number;
3687
+ minute_window?: string;
3688
+ updated_at?: string;
3689
+ };
3690
+ Relationships: [];
3691
+ };
3692
+ exact_auth_customers: {
3693
+ Row: {
3694
+ account_key: string;
3695
+ address_line1: string | null;
3696
+ chamber_of_commerce: string | null;
3697
+ city: string | null;
3698
+ code: string | null;
3699
+ country: string | null;
3543
3700
  created_at: string;
3701
+ currency: string | null;
3544
3702
  division_code: number | null;
3703
+ email: string | null;
3545
3704
  environment: Database["public"]["Enums"]["exact_env"];
3705
+ exact_id: string;
3706
+ exact_modified: string | null;
3707
+ exact_timestamp: number | null;
3546
3708
  id: string;
3547
- last_synced_at: string | null;
3709
+ is_active: boolean;
3710
+ name: string | null;
3711
+ phone: string | null;
3712
+ postcode: string | null;
3713
+ raw: import("./types").Json | null;
3714
+ status: string | null;
3548
3715
  updated_at: string;
3716
+ vat_number: string | null;
3717
+ website: string | null;
3549
3718
  };
3550
3719
  Insert: {
3551
3720
  account_key?: string;
3552
- company_name?: string | null;
3721
+ address_line1?: string | null;
3722
+ chamber_of_commerce?: string | null;
3723
+ city?: string | null;
3724
+ code?: string | null;
3725
+ country?: string | null;
3553
3726
  created_at?: string;
3727
+ currency?: string | null;
3554
3728
  division_code?: number | null;
3729
+ email?: string | null;
3555
3730
  environment: Database["public"]["Enums"]["exact_env"];
3731
+ exact_id: string;
3732
+ exact_modified?: string | null;
3733
+ exact_timestamp?: number | null;
3556
3734
  id?: string;
3557
- last_synced_at?: string | null;
3735
+ is_active?: boolean;
3736
+ name?: string | null;
3737
+ phone?: string | null;
3738
+ postcode?: string | null;
3739
+ raw?: import("./types").Json | null;
3740
+ status?: string | null;
3558
3741
  updated_at?: string;
3742
+ vat_number?: string | null;
3743
+ website?: string | null;
3559
3744
  };
3560
3745
  Update: {
3561
3746
  account_key?: string;
3562
- company_name?: string | null;
3747
+ address_line1?: string | null;
3748
+ chamber_of_commerce?: string | null;
3749
+ city?: string | null;
3750
+ code?: string | null;
3751
+ country?: string | null;
3563
3752
  created_at?: string;
3753
+ currency?: string | null;
3564
3754
  division_code?: number | null;
3755
+ email?: string | null;
3565
3756
  environment?: Database["public"]["Enums"]["exact_env"];
3757
+ exact_id?: string;
3758
+ exact_modified?: string | null;
3759
+ exact_timestamp?: number | null;
3566
3760
  id?: string;
3567
- last_synced_at?: string | null;
3761
+ is_active?: boolean;
3762
+ name?: string | null;
3763
+ phone?: string | null;
3764
+ postcode?: string | null;
3765
+ raw?: import("./types").Json | null;
3766
+ status?: string | null;
3568
3767
  updated_at?: string;
3768
+ vat_number?: string | null;
3769
+ website?: string | null;
3569
3770
  };
3570
3771
  Relationships: [];
3571
3772
  };
3572
- exact_bulk_operation_items: {
3773
+ exact_auth_divisions: {
3573
3774
  Row: {
3574
- attempts: number;
3575
- bulk_operation_id: string;
3775
+ account_key: string;
3776
+ company_name: string | null;
3576
3777
  created_at: string;
3577
- error_message: string | null;
3778
+ division_code: number | null;
3779
+ environment: Database["public"]["Enums"]["exact_env"];
3578
3780
  id: string;
3579
- invoice_cache_id: string | null;
3580
- invoice_exact_id: string | null;
3581
- processed_at: string | null;
3582
- result_data: import("./types").Json | null;
3583
- status: string;
3781
+ last_synced_at: string | null;
3782
+ updated_at: string;
3584
3783
  };
3585
3784
  Insert: {
3586
- attempts?: number;
3587
- bulk_operation_id: string;
3785
+ account_key?: string;
3786
+ company_name?: string | null;
3588
3787
  created_at?: string;
3589
- error_message?: string | null;
3788
+ division_code?: number | null;
3789
+ environment: Database["public"]["Enums"]["exact_env"];
3590
3790
  id?: string;
3591
- invoice_cache_id?: string | null;
3592
- invoice_exact_id?: string | null;
3593
- processed_at?: string | null;
3594
- result_data?: import("./types").Json | null;
3595
- status?: string;
3791
+ last_synced_at?: string | null;
3792
+ updated_at?: string;
3596
3793
  };
3597
3794
  Update: {
3598
- attempts?: number;
3599
- bulk_operation_id?: string;
3795
+ account_key?: string;
3796
+ company_name?: string | null;
3600
3797
  created_at?: string;
3601
- error_message?: string | null;
3798
+ division_code?: number | null;
3799
+ environment?: Database["public"]["Enums"]["exact_env"];
3602
3800
  id?: string;
3603
- invoice_cache_id?: string | null;
3604
- invoice_exact_id?: string | null;
3605
- processed_at?: string | null;
3606
- result_data?: import("./types").Json | null;
3607
- status?: string;
3801
+ last_synced_at?: string | null;
3802
+ updated_at?: string;
3608
3803
  };
3609
- Relationships: [{
3610
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
3611
- columns: ["bulk_operation_id"];
3612
- isOneToOne: false;
3613
- referencedRelation: "exact_bulk_operations";
3614
- referencedColumns: ["id"];
3615
- }, {
3616
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
3617
- columns: ["invoice_cache_id"];
3618
- isOneToOne: false;
3619
- referencedRelation: "exact_invoices_cache";
3620
- referencedColumns: ["id"];
3621
- }];
3804
+ Relationships: [];
3622
3805
  };
3623
- exact_bulk_operations: {
3806
+ exact_auth_invoice_lines: {
3624
3807
  Row: {
3625
- completed_at: string | null;
3626
- connection_id: string;
3808
+ account_key: string;
3809
+ amount_excl: number | null;
3627
3810
  created_at: string;
3628
- created_by: string | null;
3629
- error_message: string | null;
3630
- failed_count: number | null;
3811
+ description: string | null;
3812
+ discount: number | null;
3813
+ environment: Database["public"]["Enums"]["exact_env"];
3814
+ exact_id: string;
3815
+ exact_timestamp: number | null;
3631
3816
  id: string;
3632
- operation_type: string;
3633
- processed_count: number | null;
3634
- result_data: import("./types").Json | null;
3635
- started_at: string | null;
3636
- status: string;
3637
- total_count: number | null;
3817
+ invoice_exact_id: string;
3818
+ item_code: string | null;
3819
+ item_exact_id: string | null;
3820
+ line_number: number | null;
3821
+ quantity: number | null;
3822
+ raw: import("./types").Json | null;
3823
+ unit_price: number | null;
3638
3824
  updated_at: string;
3825
+ vat_amount: number | null;
3826
+ vat_code: string | null;
3639
3827
  };
3640
3828
  Insert: {
3641
- completed_at?: string | null;
3642
- connection_id: string;
3829
+ account_key?: string;
3830
+ amount_excl?: number | null;
3643
3831
  created_at?: string;
3644
- created_by?: string | null;
3645
- error_message?: string | null;
3646
- failed_count?: number | null;
3832
+ description?: string | null;
3833
+ discount?: number | null;
3834
+ environment: Database["public"]["Enums"]["exact_env"];
3835
+ exact_id: string;
3836
+ exact_timestamp?: number | null;
3647
3837
  id?: string;
3648
- operation_type: string;
3649
- processed_count?: number | null;
3650
- result_data?: import("./types").Json | null;
3651
- started_at?: string | null;
3652
- status?: string;
3653
- total_count?: number | null;
3838
+ invoice_exact_id: string;
3839
+ item_code?: string | null;
3840
+ item_exact_id?: string | null;
3841
+ line_number?: number | null;
3842
+ quantity?: number | null;
3843
+ raw?: import("./types").Json | null;
3844
+ unit_price?: number | null;
3654
3845
  updated_at?: string;
3846
+ vat_amount?: number | null;
3847
+ vat_code?: string | null;
3655
3848
  };
3656
3849
  Update: {
3657
- completed_at?: string | null;
3658
- connection_id?: string;
3850
+ account_key?: string;
3851
+ amount_excl?: number | null;
3659
3852
  created_at?: string;
3660
- created_by?: string | null;
3661
- error_message?: string | null;
3662
- failed_count?: number | null;
3853
+ description?: string | null;
3854
+ discount?: number | null;
3855
+ environment?: Database["public"]["Enums"]["exact_env"];
3856
+ exact_id?: string;
3857
+ exact_timestamp?: number | null;
3663
3858
  id?: string;
3664
- operation_type?: string;
3665
- processed_count?: number | null;
3666
- result_data?: import("./types").Json | null;
3667
- started_at?: string | null;
3668
- status?: string;
3669
- total_count?: number | null;
3859
+ invoice_exact_id?: string;
3860
+ item_code?: string | null;
3861
+ item_exact_id?: string | null;
3862
+ line_number?: number | null;
3863
+ quantity?: number | null;
3864
+ raw?: import("./types").Json | null;
3865
+ unit_price?: number | null;
3670
3866
  updated_at?: string;
3867
+ vat_amount?: number | null;
3868
+ vat_code?: string | null;
3671
3869
  };
3672
- Relationships: [{
3673
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
3674
- columns: ["connection_id"];
3675
- isOneToOne: false;
3676
- referencedRelation: "exact_connections";
3677
- referencedColumns: ["id"];
3678
- }];
3870
+ Relationships: [];
3679
3871
  };
3680
- exact_connections: {
3872
+ exact_auth_invoices: {
3681
3873
  Row: {
3682
- access_token_encrypted: string;
3683
- company_name: string | null;
3684
- connected_at: string;
3685
- connected_by: string | null;
3874
+ account_key: string;
3875
+ amount_excl: number | null;
3876
+ amount_incl: number | null;
3877
+ amount_open: number | null;
3878
+ created_at: string;
3879
+ currency: string | null;
3880
+ customer_code: string | null;
3881
+ customer_exact_id: string | null;
3882
+ customer_name: string | null;
3883
+ description: string | null;
3884
+ division_code: number | null;
3885
+ due_date: string | null;
3886
+ environment: Database["public"]["Enums"]["exact_env"];
3887
+ exact_id: string;
3888
+ exact_modified: string | null;
3889
+ exact_timestamp: number | null;
3890
+ id: string;
3891
+ invoice_date: string | null;
3892
+ invoice_number: string | null;
3893
+ order_number: string | null;
3894
+ paid_at: string | null;
3895
+ payment_status: string;
3896
+ raw: import("./types").Json | null;
3897
+ receivable_synced_at: string | null;
3898
+ status_code: number | null;
3899
+ updated_at: string;
3900
+ };
3901
+ Insert: {
3902
+ account_key?: string;
3903
+ amount_excl?: number | null;
3904
+ amount_incl?: number | null;
3905
+ amount_open?: number | null;
3906
+ created_at?: string;
3907
+ currency?: string | null;
3908
+ customer_code?: string | null;
3909
+ customer_exact_id?: string | null;
3910
+ customer_name?: string | null;
3911
+ description?: string | null;
3912
+ division_code?: number | null;
3913
+ due_date?: string | null;
3914
+ environment: Database["public"]["Enums"]["exact_env"];
3915
+ exact_id: string;
3916
+ exact_modified?: string | null;
3917
+ exact_timestamp?: number | null;
3918
+ id?: string;
3919
+ invoice_date?: string | null;
3920
+ invoice_number?: string | null;
3921
+ order_number?: string | null;
3922
+ paid_at?: string | null;
3923
+ payment_status?: string;
3924
+ raw?: import("./types").Json | null;
3925
+ receivable_synced_at?: string | null;
3926
+ status_code?: number | null;
3927
+ updated_at?: string;
3928
+ };
3929
+ Update: {
3930
+ account_key?: string;
3931
+ amount_excl?: number | null;
3932
+ amount_incl?: number | null;
3933
+ amount_open?: number | null;
3934
+ created_at?: string;
3935
+ currency?: string | null;
3936
+ customer_code?: string | null;
3937
+ customer_exact_id?: string | null;
3938
+ customer_name?: string | null;
3939
+ description?: string | null;
3940
+ division_code?: number | null;
3941
+ due_date?: string | null;
3942
+ environment?: Database["public"]["Enums"]["exact_env"];
3943
+ exact_id?: string;
3944
+ exact_modified?: string | null;
3945
+ exact_timestamp?: number | null;
3946
+ id?: string;
3947
+ invoice_date?: string | null;
3948
+ invoice_number?: string | null;
3949
+ order_number?: string | null;
3950
+ paid_at?: string | null;
3951
+ payment_status?: string;
3952
+ raw?: import("./types").Json | null;
3953
+ receivable_synced_at?: string | null;
3954
+ status_code?: number | null;
3955
+ updated_at?: string;
3956
+ };
3957
+ Relationships: [];
3958
+ };
3959
+ exact_auth_items: {
3960
+ Row: {
3961
+ account_key: string;
3962
+ barcode: string | null;
3963
+ code: string | null;
3964
+ cost_price: number | null;
3965
+ created_at: string;
3966
+ description: string | null;
3967
+ division_code: number | null;
3968
+ environment: Database["public"]["Enums"]["exact_env"];
3969
+ exact_id: string;
3970
+ exact_modified: string | null;
3971
+ exact_timestamp: number | null;
3972
+ gl_account_code: string | null;
3973
+ id: string;
3974
+ is_active: boolean;
3975
+ is_sales_item: boolean | null;
3976
+ item_type: string | null;
3977
+ raw: import("./types").Json | null;
3978
+ sales_price: number | null;
3979
+ unit: string | null;
3980
+ updated_at: string;
3981
+ vat_code: string | null;
3982
+ };
3983
+ Insert: {
3984
+ account_key?: string;
3985
+ barcode?: string | null;
3986
+ code?: string | null;
3987
+ cost_price?: number | null;
3988
+ created_at?: string;
3989
+ description?: string | null;
3990
+ division_code?: number | null;
3991
+ environment: Database["public"]["Enums"]["exact_env"];
3992
+ exact_id: string;
3993
+ exact_modified?: string | null;
3994
+ exact_timestamp?: number | null;
3995
+ gl_account_code?: string | null;
3996
+ id?: string;
3997
+ is_active?: boolean;
3998
+ is_sales_item?: boolean | null;
3999
+ item_type?: string | null;
4000
+ raw?: import("./types").Json | null;
4001
+ sales_price?: number | null;
4002
+ unit?: string | null;
4003
+ updated_at?: string;
4004
+ vat_code?: string | null;
4005
+ };
4006
+ Update: {
4007
+ account_key?: string;
4008
+ barcode?: string | null;
4009
+ code?: string | null;
4010
+ cost_price?: number | null;
4011
+ created_at?: string;
4012
+ description?: string | null;
4013
+ division_code?: number | null;
4014
+ environment?: Database["public"]["Enums"]["exact_env"];
4015
+ exact_id?: string;
4016
+ exact_modified?: string | null;
4017
+ exact_timestamp?: number | null;
4018
+ gl_account_code?: string | null;
4019
+ id?: string;
4020
+ is_active?: boolean;
4021
+ is_sales_item?: boolean | null;
4022
+ item_type?: string | null;
4023
+ raw?: import("./types").Json | null;
4024
+ sales_price?: number | null;
4025
+ unit?: string | null;
4026
+ updated_at?: string;
4027
+ vat_code?: string | null;
4028
+ };
4029
+ Relationships: [];
4030
+ };
4031
+ exact_auth_sync_log: {
4032
+ Row: {
4033
+ account_key: string;
4034
+ calls_used: number;
4035
+ created_at: string;
4036
+ domain: string;
4037
+ environment: Database["public"]["Enums"]["exact_env"];
4038
+ error: string | null;
4039
+ finished_at: string | null;
4040
+ id: string;
4041
+ ok: boolean;
4042
+ records: number;
4043
+ started_at: string;
4044
+ };
4045
+ Insert: {
4046
+ account_key?: string;
4047
+ calls_used?: number;
4048
+ created_at?: string;
4049
+ domain: string;
4050
+ environment: Database["public"]["Enums"]["exact_env"];
4051
+ error?: string | null;
4052
+ finished_at?: string | null;
4053
+ id?: string;
4054
+ ok?: boolean;
4055
+ records?: number;
4056
+ started_at?: string;
4057
+ };
4058
+ Update: {
4059
+ account_key?: string;
4060
+ calls_used?: number;
4061
+ created_at?: string;
4062
+ domain?: string;
4063
+ environment?: Database["public"]["Enums"]["exact_env"];
4064
+ error?: string | null;
4065
+ finished_at?: string | null;
4066
+ id?: string;
4067
+ ok?: boolean;
4068
+ records?: number;
4069
+ started_at?: string;
4070
+ };
4071
+ Relationships: [];
4072
+ };
4073
+ exact_auth_sync_state: {
4074
+ Row: {
4075
+ account_key: string;
4076
+ created_at: string;
4077
+ cursor_timestamp: number;
4078
+ division_code: number | null;
4079
+ domain: string;
4080
+ duration_ms: number | null;
4081
+ environment: Database["public"]["Enums"]["exact_env"];
4082
+ initial_sync_done: boolean;
4083
+ last_error: string | null;
4084
+ last_run_at: string | null;
4085
+ last_success_at: string | null;
4086
+ locked_at: string | null;
4087
+ needs_initial_sync: boolean;
4088
+ record_count: number;
4089
+ updated_at: string;
4090
+ };
4091
+ Insert: {
4092
+ account_key?: string;
4093
+ created_at?: string;
4094
+ cursor_timestamp?: number;
4095
+ division_code?: number | null;
4096
+ domain: string;
4097
+ duration_ms?: number | null;
4098
+ environment: Database["public"]["Enums"]["exact_env"];
4099
+ initial_sync_done?: boolean;
4100
+ last_error?: string | null;
4101
+ last_run_at?: string | null;
4102
+ last_success_at?: string | null;
4103
+ locked_at?: string | null;
4104
+ needs_initial_sync?: boolean;
4105
+ record_count?: number;
4106
+ updated_at?: string;
4107
+ };
4108
+ Update: {
4109
+ account_key?: string;
4110
+ created_at?: string;
4111
+ cursor_timestamp?: number;
4112
+ division_code?: number | null;
4113
+ domain?: string;
4114
+ duration_ms?: number | null;
4115
+ environment?: Database["public"]["Enums"]["exact_env"];
4116
+ initial_sync_done?: boolean;
4117
+ last_error?: string | null;
4118
+ last_run_at?: string | null;
4119
+ last_success_at?: string | null;
4120
+ locked_at?: string | null;
4121
+ needs_initial_sync?: boolean;
4122
+ record_count?: number;
4123
+ updated_at?: string;
4124
+ };
4125
+ Relationships: [];
4126
+ };
4127
+ exact_bulk_operation_items: {
4128
+ Row: {
4129
+ attempts: number;
4130
+ bulk_operation_id: string;
4131
+ created_at: string;
4132
+ error_message: string | null;
4133
+ id: string;
4134
+ invoice_cache_id: string | null;
4135
+ invoice_exact_id: string | null;
4136
+ processed_at: string | null;
4137
+ result_data: import("./types").Json | null;
4138
+ status: string;
4139
+ };
4140
+ Insert: {
4141
+ attempts?: number;
4142
+ bulk_operation_id: string;
4143
+ created_at?: string;
4144
+ error_message?: string | null;
4145
+ id?: string;
4146
+ invoice_cache_id?: string | null;
4147
+ invoice_exact_id?: string | null;
4148
+ processed_at?: string | null;
4149
+ result_data?: import("./types").Json | null;
4150
+ status?: string;
4151
+ };
4152
+ Update: {
4153
+ attempts?: number;
4154
+ bulk_operation_id?: string;
4155
+ created_at?: string;
4156
+ error_message?: string | null;
4157
+ id?: string;
4158
+ invoice_cache_id?: string | null;
4159
+ invoice_exact_id?: string | null;
4160
+ processed_at?: string | null;
4161
+ result_data?: import("./types").Json | null;
4162
+ status?: string;
4163
+ };
4164
+ Relationships: [{
4165
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
4166
+ columns: ["bulk_operation_id"];
4167
+ isOneToOne: false;
4168
+ referencedRelation: "exact_bulk_operations";
4169
+ referencedColumns: ["id"];
4170
+ }, {
4171
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
4172
+ columns: ["invoice_cache_id"];
4173
+ isOneToOne: false;
4174
+ referencedRelation: "exact_invoices_cache";
4175
+ referencedColumns: ["id"];
4176
+ }];
4177
+ };
4178
+ exact_bulk_operations: {
4179
+ Row: {
4180
+ completed_at: string | null;
4181
+ connection_id: string;
4182
+ created_at: string;
4183
+ created_by: string | null;
4184
+ error_message: string | null;
4185
+ failed_count: number | null;
4186
+ id: string;
4187
+ operation_type: string;
4188
+ processed_count: number | null;
4189
+ result_data: import("./types").Json | null;
4190
+ started_at: string | null;
4191
+ status: string;
4192
+ total_count: number | null;
4193
+ updated_at: string;
4194
+ };
4195
+ Insert: {
4196
+ completed_at?: string | null;
4197
+ connection_id: string;
4198
+ created_at?: string;
4199
+ created_by?: string | null;
4200
+ error_message?: string | null;
4201
+ failed_count?: number | null;
4202
+ id?: string;
4203
+ operation_type: string;
4204
+ processed_count?: number | null;
4205
+ result_data?: import("./types").Json | null;
4206
+ started_at?: string | null;
4207
+ status?: string;
4208
+ total_count?: number | null;
4209
+ updated_at?: string;
4210
+ };
4211
+ Update: {
4212
+ completed_at?: string | null;
4213
+ connection_id?: string;
4214
+ created_at?: string;
4215
+ created_by?: string | null;
4216
+ error_message?: string | null;
4217
+ failed_count?: number | null;
4218
+ id?: string;
4219
+ operation_type?: string;
4220
+ processed_count?: number | null;
4221
+ result_data?: import("./types").Json | null;
4222
+ started_at?: string | null;
4223
+ status?: string;
4224
+ total_count?: number | null;
4225
+ updated_at?: string;
4226
+ };
4227
+ Relationships: [{
4228
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
4229
+ columns: ["connection_id"];
4230
+ isOneToOne: false;
4231
+ referencedRelation: "exact_connections";
4232
+ referencedColumns: ["id"];
4233
+ }];
4234
+ };
4235
+ exact_connections: {
4236
+ Row: {
4237
+ access_token_encrypted: string;
4238
+ company_name: string | null;
4239
+ connected_at: string;
4240
+ connected_by: string | null;
3686
4241
  division_code: number | null;
3687
4242
  environment: Database["public"]["Enums"]["exact_env"];
3688
4243
  expires_at: string;
@@ -5260,12 +5815,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5260
5815
  attempts: number;
5261
5816
  connection_id: string;
5262
5817
  created_at: string;
5818
+ desired_available: boolean | null;
5263
5819
  gateway_attempt_id: string | null;
5264
5820
  id: string;
5265
5821
  last_error: string | null;
5822
+ locked_at: string | null;
5823
+ locked_by: string | null;
5824
+ next_attempt_at: string;
5266
5825
  number_of_pieces: number;
5267
5826
  sent_at: string | null;
5268
5827
  status: string;
5828
+ superseded_by: string | null;
5269
5829
  trade_item_id: string;
5270
5830
  updated_at: string;
5271
5831
  user_id: string;
@@ -5274,12 +5834,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5274
5834
  attempts?: number;
5275
5835
  connection_id: string;
5276
5836
  created_at?: string;
5837
+ desired_available?: boolean | null;
5277
5838
  gateway_attempt_id?: string | null;
5278
5839
  id?: string;
5279
5840
  last_error?: string | null;
5841
+ locked_at?: string | null;
5842
+ locked_by?: string | null;
5843
+ next_attempt_at?: string;
5280
5844
  number_of_pieces?: number;
5281
5845
  sent_at?: string | null;
5282
5846
  status?: string;
5847
+ superseded_by?: string | null;
5283
5848
  trade_item_id: string;
5284
5849
  updated_at?: string;
5285
5850
  user_id: string;
@@ -5288,12 +5853,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5288
5853
  attempts?: number;
5289
5854
  connection_id?: string;
5290
5855
  created_at?: string;
5856
+ desired_available?: boolean | null;
5291
5857
  gateway_attempt_id?: string | null;
5292
5858
  id?: string;
5293
5859
  last_error?: string | null;
5860
+ locked_at?: string | null;
5861
+ locked_by?: string | null;
5862
+ next_attempt_at?: string;
5294
5863
  number_of_pieces?: number;
5295
5864
  sent_at?: string | null;
5296
5865
  status?: string;
5866
+ superseded_by?: string | null;
5297
5867
  trade_item_id?: string;
5298
5868
  updated_at?: string;
5299
5869
  user_id?: string;
@@ -6030,6 +6600,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6030
6600
  Row: {
6031
6601
  buyer_organization_id: string | null;
6032
6602
  connection_id: string;
6603
+ controlled_at: string | null;
6033
6604
  created_at: string;
6034
6605
  data: import("./types").Json;
6035
6606
  floriday_id: string;
@@ -6041,6 +6612,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6041
6612
  Insert: {
6042
6613
  buyer_organization_id?: string | null;
6043
6614
  connection_id: string;
6615
+ controlled_at?: string | null;
6044
6616
  created_at?: string;
6045
6617
  data: import("./types").Json;
6046
6618
  floriday_id: string;
@@ -6052,6 +6624,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6052
6624
  Update: {
6053
6625
  buyer_organization_id?: string | null;
6054
6626
  connection_id?: string;
6627
+ controlled_at?: string | null;
6055
6628
  created_at?: string;
6056
6629
  data?: import("./types").Json;
6057
6630
  floriday_id?: string;
@@ -6953,6 +7526,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6953
7526
  };
6954
7527
  Relationships: [];
6955
7528
  };
7529
+ invoice_timing_settings: {
7530
+ Row: {
7531
+ anchor: string;
7532
+ business_days_only: boolean;
7533
+ created_at: string;
7534
+ enabled: boolean;
7535
+ id: string;
7536
+ offset_days: number;
7537
+ pickup_anchor: string;
7538
+ pickup_business_days_only: boolean;
7539
+ pickup_offset_days: number;
7540
+ pickup_time_of_day: string;
7541
+ singleton: boolean;
7542
+ time_of_day: string;
7543
+ updated_at: string;
7544
+ };
7545
+ Insert: {
7546
+ anchor?: string;
7547
+ business_days_only?: boolean;
7548
+ created_at?: string;
7549
+ enabled?: boolean;
7550
+ id?: string;
7551
+ offset_days?: number;
7552
+ pickup_anchor?: string;
7553
+ pickup_business_days_only?: boolean;
7554
+ pickup_offset_days?: number;
7555
+ pickup_time_of_day?: string;
7556
+ singleton?: boolean;
7557
+ time_of_day?: string;
7558
+ updated_at?: string;
7559
+ };
7560
+ Update: {
7561
+ anchor?: string;
7562
+ business_days_only?: boolean;
7563
+ created_at?: string;
7564
+ enabled?: boolean;
7565
+ id?: string;
7566
+ offset_days?: number;
7567
+ pickup_anchor?: string;
7568
+ pickup_business_days_only?: boolean;
7569
+ pickup_offset_days?: number;
7570
+ pickup_time_of_day?: string;
7571
+ singleton?: boolean;
7572
+ time_of_day?: string;
7573
+ updated_at?: string;
7574
+ };
7575
+ Relationships: [];
7576
+ };
6956
7577
  itk_contact_persons: {
6957
7578
  Row: {
6958
7579
  created_at: string;
@@ -7148,6 +7769,249 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7148
7769
  };
7149
7770
  Relationships: [];
7150
7771
  };
7772
+ itk_offerte_events: {
7773
+ Row: {
7774
+ created_at: string;
7775
+ event_type: string;
7776
+ id: string;
7777
+ metadata: import("./types").Json;
7778
+ offerte_id: string;
7779
+ omschrijving: string | null;
7780
+ user_id: string | null;
7781
+ };
7782
+ Insert: {
7783
+ created_at?: string;
7784
+ event_type: string;
7785
+ id?: string;
7786
+ metadata?: import("./types").Json;
7787
+ offerte_id: string;
7788
+ omschrijving?: string | null;
7789
+ user_id?: string | null;
7790
+ };
7791
+ Update: {
7792
+ created_at?: string;
7793
+ event_type?: string;
7794
+ id?: string;
7795
+ metadata?: import("./types").Json;
7796
+ offerte_id?: string;
7797
+ omschrijving?: string | null;
7798
+ user_id?: string | null;
7799
+ };
7800
+ Relationships: [{
7801
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7802
+ columns: ["offerte_id"];
7803
+ isOneToOne: false;
7804
+ referencedRelation: "itk_offertes";
7805
+ referencedColumns: ["id"];
7806
+ }];
7807
+ };
7808
+ itk_offerte_regels: {
7809
+ Row: {
7810
+ created_at: string;
7811
+ id: string;
7812
+ line_total_cents: number;
7813
+ offerte_id: string;
7814
+ omschrijving: string;
7815
+ package_id: string | null;
7816
+ quantity: number;
7817
+ sort_order: number;
7818
+ source: string;
7819
+ unit_price_cents: number;
7820
+ updated_at: string;
7821
+ };
7822
+ Insert: {
7823
+ created_at?: string;
7824
+ id?: string;
7825
+ line_total_cents?: number;
7826
+ offerte_id: string;
7827
+ omschrijving?: string;
7828
+ package_id?: string | null;
7829
+ quantity?: number;
7830
+ sort_order?: number;
7831
+ source?: string;
7832
+ unit_price_cents?: number;
7833
+ updated_at?: string;
7834
+ };
7835
+ Update: {
7836
+ created_at?: string;
7837
+ id?: string;
7838
+ line_total_cents?: number;
7839
+ offerte_id?: string;
7840
+ omschrijving?: string;
7841
+ package_id?: string | null;
7842
+ quantity?: number;
7843
+ sort_order?: number;
7844
+ source?: string;
7845
+ unit_price_cents?: number;
7846
+ updated_at?: string;
7847
+ };
7848
+ Relationships: [{
7849
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7850
+ columns: ["offerte_id"];
7851
+ isOneToOne: false;
7852
+ referencedRelation: "itk_offertes";
7853
+ referencedColumns: ["id"];
7854
+ }, {
7855
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7856
+ columns: ["package_id"];
7857
+ isOneToOne: false;
7858
+ referencedRelation: "werkbon_packages";
7859
+ referencedColumns: ["id"];
7860
+ }];
7861
+ };
7862
+ itk_offerte_settings: {
7863
+ Row: {
7864
+ auto_convert_binnen_mandaat: boolean;
7865
+ created_at: string;
7866
+ default_geldigheid_dagen: number;
7867
+ default_vat_rate: number;
7868
+ id: string;
7869
+ singleton: boolean;
7870
+ updated_at: string;
7871
+ };
7872
+ Insert: {
7873
+ auto_convert_binnen_mandaat?: boolean;
7874
+ created_at?: string;
7875
+ default_geldigheid_dagen?: number;
7876
+ default_vat_rate?: number;
7877
+ id?: string;
7878
+ singleton?: boolean;
7879
+ updated_at?: string;
7880
+ };
7881
+ Update: {
7882
+ auto_convert_binnen_mandaat?: boolean;
7883
+ created_at?: string;
7884
+ default_geldigheid_dagen?: number;
7885
+ default_vat_rate?: number;
7886
+ id?: string;
7887
+ singleton?: boolean;
7888
+ updated_at?: string;
7889
+ };
7890
+ Relationships: [];
7891
+ };
7892
+ itk_offertes: {
7893
+ Row: {
7894
+ ai_generated: boolean;
7895
+ approved_at: string | null;
7896
+ binnen_mandaat: boolean;
7897
+ contact_id: string | null;
7898
+ converted_at: string | null;
7899
+ created_at: string;
7900
+ created_by: string | null;
7901
+ customer_id: string | null;
7902
+ follow_up_werkbon_id: string | null;
7903
+ id: string;
7904
+ jaar: number;
7905
+ mandaat_restant_cents: number;
7906
+ notities: string | null;
7907
+ offerte_number: string | null;
7908
+ omschrijving: string;
7909
+ rejected_at: string | null;
7910
+ sent_at: string | null;
7911
+ status: string;
7912
+ subtotal_cents: number;
7913
+ total_cents: number;
7914
+ updated_at: string;
7915
+ valid_until: string | null;
7916
+ vat_cents: number;
7917
+ vat_rate: number;
7918
+ viewed_at: string | null;
7919
+ volgnummer: number | null;
7920
+ werkbon_id: string | null;
7921
+ work_location_id: string | null;
7922
+ };
7923
+ Insert: {
7924
+ ai_generated?: boolean;
7925
+ approved_at?: string | null;
7926
+ binnen_mandaat?: boolean;
7927
+ contact_id?: string | null;
7928
+ converted_at?: string | null;
7929
+ created_at?: string;
7930
+ created_by?: string | null;
7931
+ customer_id?: string | null;
7932
+ follow_up_werkbon_id?: string | null;
7933
+ id?: string;
7934
+ jaar?: number;
7935
+ mandaat_restant_cents?: number;
7936
+ notities?: string | null;
7937
+ offerte_number?: string | null;
7938
+ omschrijving?: string;
7939
+ rejected_at?: string | null;
7940
+ sent_at?: string | null;
7941
+ status?: string;
7942
+ subtotal_cents?: number;
7943
+ total_cents?: number;
7944
+ updated_at?: string;
7945
+ valid_until?: string | null;
7946
+ vat_cents?: number;
7947
+ vat_rate?: number;
7948
+ viewed_at?: string | null;
7949
+ volgnummer?: number | null;
7950
+ werkbon_id?: string | null;
7951
+ work_location_id?: string | null;
7952
+ };
7953
+ Update: {
7954
+ ai_generated?: boolean;
7955
+ approved_at?: string | null;
7956
+ binnen_mandaat?: boolean;
7957
+ contact_id?: string | null;
7958
+ converted_at?: string | null;
7959
+ created_at?: string;
7960
+ created_by?: string | null;
7961
+ customer_id?: string | null;
7962
+ follow_up_werkbon_id?: string | null;
7963
+ id?: string;
7964
+ jaar?: number;
7965
+ mandaat_restant_cents?: number;
7966
+ notities?: string | null;
7967
+ offerte_number?: string | null;
7968
+ omschrijving?: string;
7969
+ rejected_at?: string | null;
7970
+ sent_at?: string | null;
7971
+ status?: string;
7972
+ subtotal_cents?: number;
7973
+ total_cents?: number;
7974
+ updated_at?: string;
7975
+ valid_until?: string | null;
7976
+ vat_cents?: number;
7977
+ vat_rate?: number;
7978
+ viewed_at?: string | null;
7979
+ volgnummer?: number | null;
7980
+ werkbon_id?: string | null;
7981
+ work_location_id?: string | null;
7982
+ };
7983
+ Relationships: [{
7984
+ foreignKeyName: "itk_offertes_contact_id_fkey";
7985
+ columns: ["contact_id"];
7986
+ isOneToOne: false;
7987
+ referencedRelation: "itk_contact_persons";
7988
+ referencedColumns: ["id"];
7989
+ }, {
7990
+ foreignKeyName: "itk_offertes_customer_id_fkey";
7991
+ columns: ["customer_id"];
7992
+ isOneToOne: false;
7993
+ referencedRelation: "itk_customers";
7994
+ referencedColumns: ["id"];
7995
+ }, {
7996
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
7997
+ columns: ["follow_up_werkbon_id"];
7998
+ isOneToOne: false;
7999
+ referencedRelation: "werkbonnen";
8000
+ referencedColumns: ["id"];
8001
+ }, {
8002
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8003
+ columns: ["werkbon_id"];
8004
+ isOneToOne: false;
8005
+ referencedRelation: "werkbonnen";
8006
+ referencedColumns: ["id"];
8007
+ }, {
8008
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8009
+ columns: ["work_location_id"];
8010
+ isOneToOne: false;
8011
+ referencedRelation: "itk_work_locations";
8012
+ referencedColumns: ["id"];
8013
+ }];
8014
+ };
7151
8015
  itk_work_locations: {
7152
8016
  Row: {
7153
8017
  city: string | null;
@@ -7265,7 +8129,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7265
8129
  start_date: string;
7266
8130
  start_time: string | null;
7267
8131
  status: string;
7268
- tenant_id: string;
7269
8132
  updated_at: string;
7270
8133
  user_id: string;
7271
8134
  };
@@ -7283,7 +8146,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7283
8146
  start_date: string;
7284
8147
  start_time?: string | null;
7285
8148
  status?: string;
7286
- tenant_id?: string;
7287
8149
  updated_at?: string;
7288
8150
  user_id: string;
7289
8151
  };
@@ -7301,7 +8163,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7301
8163
  start_date?: string;
7302
8164
  start_time?: string | null;
7303
8165
  status?: string;
7304
- tenant_id?: string;
7305
8166
  updated_at?: string;
7306
8167
  user_id?: string;
7307
8168
  };
@@ -7309,13 +8170,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7309
8170
  foreignKeyName: "leave_requests_monteur_id_fkey";
7310
8171
  columns: ["monteur_id"];
7311
8172
  isOneToOne: false;
7312
- referencedRelation: "monteurs";
8173
+ referencedRelation: "profiles";
7313
8174
  referencedColumns: ["id"];
7314
8175
  }, {
7315
8176
  foreignKeyName: "leave_requests_user_id_fkey";
7316
8177
  columns: ["user_id"];
7317
8178
  isOneToOne: false;
7318
- referencedRelation: "monteurs";
8179
+ referencedRelation: "profiles";
7319
8180
  referencedColumns: ["id"];
7320
8181
  }];
7321
8182
  };
@@ -8042,6 +8903,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8042
8903
  };
8043
8904
  Relationships: [];
8044
8905
  };
8906
+ logistics_floriday_pushes: {
8907
+ Row: {
8908
+ attempts: number;
8909
+ created_at: string;
8910
+ first_queued_at: string;
8911
+ fulfillment_order_id: string | null;
8912
+ id: string;
8913
+ last_error: string | null;
8914
+ last_error_at: string | null;
8915
+ last_sent_hash: string | null;
8916
+ locked_by: string | null;
8917
+ locked_until: string | null;
8918
+ next_attempt_at: string;
8919
+ order_ref: string;
8920
+ payload: import("./types").Json;
8921
+ payload_hash: string | null;
8922
+ revision: number;
8923
+ sent_at: string | null;
8924
+ status: string;
8925
+ updated_at: string;
8926
+ };
8927
+ Insert: {
8928
+ attempts?: number;
8929
+ created_at?: string;
8930
+ first_queued_at?: string;
8931
+ fulfillment_order_id?: string | null;
8932
+ id?: string;
8933
+ last_error?: string | null;
8934
+ last_error_at?: string | null;
8935
+ last_sent_hash?: string | null;
8936
+ locked_by?: string | null;
8937
+ locked_until?: string | null;
8938
+ next_attempt_at?: string;
8939
+ order_ref: string;
8940
+ payload?: import("./types").Json;
8941
+ payload_hash?: string | null;
8942
+ revision?: number;
8943
+ sent_at?: string | null;
8944
+ status?: string;
8945
+ updated_at?: string;
8946
+ };
8947
+ Update: {
8948
+ attempts?: number;
8949
+ created_at?: string;
8950
+ first_queued_at?: string;
8951
+ fulfillment_order_id?: string | null;
8952
+ id?: string;
8953
+ last_error?: string | null;
8954
+ last_error_at?: string | null;
8955
+ last_sent_hash?: string | null;
8956
+ locked_by?: string | null;
8957
+ locked_until?: string | null;
8958
+ next_attempt_at?: string;
8959
+ order_ref?: string;
8960
+ payload?: import("./types").Json;
8961
+ payload_hash?: string | null;
8962
+ revision?: number;
8963
+ sent_at?: string | null;
8964
+ status?: string;
8965
+ updated_at?: string;
8966
+ };
8967
+ Relationships: [];
8968
+ };
8045
8969
  logistics_formulas: {
8046
8970
  Row: {
8047
8971
  created_at: string;
@@ -8120,6 +9044,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8120
9044
  };
8121
9045
  Relationships: [];
8122
9046
  };
9047
+ logistics_plan_queue: {
9048
+ Row: {
9049
+ attempts: number;
9050
+ claimed_at: string | null;
9051
+ enqueued_at: string;
9052
+ error: string | null;
9053
+ id: string;
9054
+ next_attempt_at: string;
9055
+ order_id: string;
9056
+ reason: string;
9057
+ status: string;
9058
+ updated_at: string;
9059
+ };
9060
+ Insert: {
9061
+ attempts?: number;
9062
+ claimed_at?: string | null;
9063
+ enqueued_at?: string;
9064
+ error?: string | null;
9065
+ id?: string;
9066
+ next_attempt_at?: string;
9067
+ order_id: string;
9068
+ reason?: string;
9069
+ status?: string;
9070
+ updated_at?: string;
9071
+ };
9072
+ Update: {
9073
+ attempts?: number;
9074
+ claimed_at?: string | null;
9075
+ enqueued_at?: string;
9076
+ error?: string | null;
9077
+ id?: string;
9078
+ next_attempt_at?: string;
9079
+ order_id?: string;
9080
+ reason?: string;
9081
+ status?: string;
9082
+ updated_at?: string;
9083
+ };
9084
+ Relationships: [];
9085
+ };
8123
9086
  logistics_plan_runs: {
8124
9087
  Row: {
8125
9088
  created_at: string;
@@ -8195,6 +9158,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8195
9158
  referencedColumns: ["id"];
8196
9159
  }];
8197
9160
  };
9161
+ logistics_plan_settings: {
9162
+ Row: {
9163
+ key: string;
9164
+ updated_at: string;
9165
+ value: string;
9166
+ };
9167
+ Insert: {
9168
+ key: string;
9169
+ updated_at?: string;
9170
+ value: string;
9171
+ };
9172
+ Update: {
9173
+ key?: string;
9174
+ updated_at?: string;
9175
+ value?: string;
9176
+ };
9177
+ Relationships: [];
9178
+ };
8198
9179
  logistics_rebuffer_state: {
8199
9180
  Row: {
8200
9181
  created_at: string;
@@ -8653,6 +9634,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8653
9634
  };
8654
9635
  logistics_tasks: {
8655
9636
  Row: {
9637
+ attempt_log: import("./types").Json;
9638
+ attempts: number;
8656
9639
  buffer_ref: string | null;
8657
9640
  claimed_at: string | null;
8658
9641
  claimed_by: string | null;
@@ -8662,6 +9645,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8662
9645
  due_at: string | null;
8663
9646
  error: string | null;
8664
9647
  id: string;
9648
+ last_error: string | null;
9649
+ next_attempt_at: string | null;
8665
9650
  order_ref: string;
8666
9651
  owner_module: string;
8667
9652
  payload: import("./types").Json;
@@ -8682,6 +9667,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8682
9667
  user_id: string;
8683
9668
  };
8684
9669
  Insert: {
9670
+ attempt_log?: import("./types").Json;
9671
+ attempts?: number;
8685
9672
  buffer_ref?: string | null;
8686
9673
  claimed_at?: string | null;
8687
9674
  claimed_by?: string | null;
@@ -8691,6 +9678,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8691
9678
  due_at?: string | null;
8692
9679
  error?: string | null;
8693
9680
  id?: string;
9681
+ last_error?: string | null;
9682
+ next_attempt_at?: string | null;
8694
9683
  order_ref: string;
8695
9684
  owner_module: string;
8696
9685
  payload?: import("./types").Json;
@@ -8711,6 +9700,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8711
9700
  user_id?: string;
8712
9701
  };
8713
9702
  Update: {
9703
+ attempt_log?: import("./types").Json;
9704
+ attempts?: number;
8714
9705
  buffer_ref?: string | null;
8715
9706
  claimed_at?: string | null;
8716
9707
  claimed_by?: string | null;
@@ -8720,6 +9711,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8720
9711
  due_at?: string | null;
8721
9712
  error?: string | null;
8722
9713
  id?: string;
9714
+ last_error?: string | null;
9715
+ next_attempt_at?: string | null;
8723
9716
  order_ref?: string;
8724
9717
  owner_module?: string;
8725
9718
  payload?: import("./types").Json;
@@ -8893,14 +9886,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8893
9886
  };
8894
9887
  mailbox_messages: {
8895
9888
  Row: {
9889
+ attachments: import("./types").Json;
8896
9890
  body_html: string | null;
8897
9891
  body_text: string | null;
9892
+ cc_recipients: import("./types").Json;
8898
9893
  connection_id: string | null;
8899
9894
  created_at: string;
8900
9895
  error_message: string | null;
8901
9896
  external_id: string | null;
8902
9897
  from_email: string | null;
8903
9898
  from_name: string | null;
9899
+ has_attachments: boolean;
8904
9900
  id: string;
8905
9901
  message_id: string | null;
8906
9902
  profile_id: string | null;
@@ -8908,18 +9904,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8908
9904
  received_at: string | null;
8909
9905
  status: string;
8910
9906
  subject: string | null;
9907
+ to_recipients: import("./types").Json;
8911
9908
  uid: number | null;
8912
9909
  updated_at: string;
8913
9910
  };
8914
9911
  Insert: {
9912
+ attachments?: import("./types").Json;
8915
9913
  body_html?: string | null;
8916
9914
  body_text?: string | null;
9915
+ cc_recipients?: import("./types").Json;
8917
9916
  connection_id?: string | null;
8918
9917
  created_at?: string;
8919
9918
  error_message?: string | null;
8920
9919
  external_id?: string | null;
8921
9920
  from_email?: string | null;
8922
9921
  from_name?: string | null;
9922
+ has_attachments?: boolean;
8923
9923
  id?: string;
8924
9924
  message_id?: string | null;
8925
9925
  profile_id?: string | null;
@@ -8927,18 +9927,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8927
9927
  received_at?: string | null;
8928
9928
  status?: string;
8929
9929
  subject?: string | null;
9930
+ to_recipients?: import("./types").Json;
8930
9931
  uid?: number | null;
8931
9932
  updated_at?: string;
8932
9933
  };
8933
9934
  Update: {
9935
+ attachments?: import("./types").Json;
8934
9936
  body_html?: string | null;
8935
9937
  body_text?: string | null;
9938
+ cc_recipients?: import("./types").Json;
8936
9939
  connection_id?: string | null;
8937
9940
  created_at?: string;
8938
9941
  error_message?: string | null;
8939
9942
  external_id?: string | null;
8940
9943
  from_email?: string | null;
8941
9944
  from_name?: string | null;
9945
+ has_attachments?: boolean;
8942
9946
  id?: string;
8943
9947
  message_id?: string | null;
8944
9948
  profile_id?: string | null;
@@ -8946,6 +9950,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8946
9950
  received_at?: string | null;
8947
9951
  status?: string;
8948
9952
  subject?: string | null;
9953
+ to_recipients?: import("./types").Json;
8949
9954
  uid?: number | null;
8950
9955
  updated_at?: string;
8951
9956
  };
@@ -9326,6 +10331,90 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9326
10331
  };
9327
10332
  Relationships: [];
9328
10333
  };
10334
+ material_usage: {
10335
+ Row: {
10336
+ created_at: string;
10337
+ id: string;
10338
+ material_name: string;
10339
+ monteur_id: string | null;
10340
+ price_at_time: number;
10341
+ quantity_used: number;
10342
+ updated_at: string;
10343
+ van_inventory_id: string | null;
10344
+ work_order_id: string;
10345
+ };
10346
+ Insert: {
10347
+ created_at?: string;
10348
+ id?: string;
10349
+ material_name: string;
10350
+ monteur_id?: string | null;
10351
+ price_at_time?: number;
10352
+ quantity_used?: number;
10353
+ updated_at?: string;
10354
+ van_inventory_id?: string | null;
10355
+ work_order_id: string;
10356
+ };
10357
+ Update: {
10358
+ created_at?: string;
10359
+ id?: string;
10360
+ material_name?: string;
10361
+ monteur_id?: string | null;
10362
+ price_at_time?: number;
10363
+ quantity_used?: number;
10364
+ updated_at?: string;
10365
+ van_inventory_id?: string | null;
10366
+ work_order_id?: string;
10367
+ };
10368
+ Relationships: [{
10369
+ foreignKeyName: "material_usage_monteur_id_fkey";
10370
+ columns: ["monteur_id"];
10371
+ isOneToOne: false;
10372
+ referencedRelation: "profiles";
10373
+ referencedColumns: ["id"];
10374
+ }, {
10375
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10376
+ columns: ["van_inventory_id"];
10377
+ isOneToOne: false;
10378
+ referencedRelation: "van_inventories";
10379
+ referencedColumns: ["id"];
10380
+ }, {
10381
+ foreignKeyName: "material_usage_work_order_id_fkey";
10382
+ columns: ["work_order_id"];
10383
+ isOneToOne: false;
10384
+ referencedRelation: "work_orders";
10385
+ referencedColumns: ["id"];
10386
+ }];
10387
+ };
10388
+ module_features: {
10389
+ Row: {
10390
+ created_at: string;
10391
+ feature_id: string;
10392
+ id: string;
10393
+ is_active: boolean;
10394
+ last_seen_at: string;
10395
+ module_id: string;
10396
+ name: string;
10397
+ };
10398
+ Insert: {
10399
+ created_at?: string;
10400
+ feature_id: string;
10401
+ id?: string;
10402
+ is_active?: boolean;
10403
+ last_seen_at?: string;
10404
+ module_id: string;
10405
+ name: string;
10406
+ };
10407
+ Update: {
10408
+ created_at?: string;
10409
+ feature_id?: string;
10410
+ id?: string;
10411
+ is_active?: boolean;
10412
+ last_seen_at?: string;
10413
+ module_id?: string;
10414
+ name?: string;
10415
+ };
10416
+ Relationships: [];
10417
+ };
9329
10418
  module_permissions: {
9330
10419
  Row: {
9331
10420
  created_at: string;
@@ -9353,6 +10442,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9353
10442
  };
9354
10443
  Relationships: [];
9355
10444
  };
10445
+ module_registry: {
10446
+ Row: {
10447
+ created_at: string;
10448
+ enforce: boolean;
10449
+ is_active: boolean;
10450
+ last_seen_at: string;
10451
+ module_id: string;
10452
+ name: string;
10453
+ shell_id: string | null;
10454
+ sort_order: number | null;
10455
+ };
10456
+ Insert: {
10457
+ created_at?: string;
10458
+ enforce?: boolean;
10459
+ is_active?: boolean;
10460
+ last_seen_at?: string;
10461
+ module_id: string;
10462
+ name: string;
10463
+ shell_id?: string | null;
10464
+ sort_order?: number | null;
10465
+ };
10466
+ Update: {
10467
+ created_at?: string;
10468
+ enforce?: boolean;
10469
+ is_active?: boolean;
10470
+ last_seen_at?: string;
10471
+ module_id?: string;
10472
+ name?: string;
10473
+ shell_id?: string | null;
10474
+ sort_order?: number | null;
10475
+ };
10476
+ Relationships: [];
10477
+ };
9356
10478
  module_runtime_config: {
9357
10479
  Row: {
9358
10480
  key: string;
@@ -9399,67 +10521,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9399
10521
  is_active?: boolean;
9400
10522
  last_seen_at?: string | null;
9401
10523
  module_key?: string;
9402
- module_name?: string;
9403
- updated_at?: string;
9404
- };
9405
- Relationships: [];
9406
- };
9407
- monteurs: {
9408
- Row: {
9409
- avatar_url: string | null;
9410
- color: string | null;
9411
- created_at: string;
9412
- email: string | null;
9413
- id: string;
9414
- is_active: boolean;
9415
- leave_balance_hours: number;
9416
- name: string;
9417
- persnr: number | null;
9418
- phone: string | null;
9419
- role: string;
9420
- tenant_id: string;
9421
- updated_at: string;
9422
- user_id: string | null;
9423
- };
9424
- Insert: {
9425
- avatar_url?: string | null;
9426
- color?: string | null;
9427
- created_at?: string;
9428
- email?: string | null;
9429
- id?: string;
9430
- is_active?: boolean;
9431
- leave_balance_hours?: number;
9432
- name: string;
9433
- persnr?: number | null;
9434
- phone?: string | null;
9435
- role?: string;
9436
- tenant_id: string;
9437
- updated_at?: string;
9438
- user_id?: string | null;
9439
- };
9440
- Update: {
9441
- avatar_url?: string | null;
9442
- color?: string | null;
9443
- created_at?: string;
9444
- email?: string | null;
9445
- id?: string;
9446
- is_active?: boolean;
9447
- leave_balance_hours?: number;
9448
- name?: string;
9449
- persnr?: number | null;
9450
- phone?: string | null;
9451
- role?: string;
9452
- tenant_id?: string;
9453
- updated_at?: string;
9454
- user_id?: string | null;
9455
- };
9456
- Relationships: [{
9457
- foreignKeyName: "monteurs_tenant_id_fkey";
9458
- columns: ["tenant_id"];
9459
- isOneToOne: false;
9460
- referencedRelation: "tenants";
9461
- referencedColumns: ["id"];
9462
- }];
10524
+ module_name?: string;
10525
+ updated_at?: string;
10526
+ };
10527
+ Relationships: [];
9463
10528
  };
9464
10529
  nmbrs_component_mapping: {
9465
10530
  Row: {
@@ -9531,13 +10596,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9531
10596
  nmbrs_employee_number?: string;
9532
10597
  updated_at?: string;
9533
10598
  };
9534
- Relationships: [{
9535
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9536
- columns: ["monteur_id"];
9537
- isOneToOne: true;
9538
- referencedRelation: "monteurs";
9539
- referencedColumns: ["id"];
9540
- }];
10599
+ Relationships: [];
9541
10600
  };
9542
10601
  nmbrs_export_lines: {
9543
10602
  Row: {
@@ -9586,12 +10645,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9586
10645
  wage_code?: string;
9587
10646
  };
9588
10647
  Relationships: [{
9589
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
9590
- columns: ["monteur_id"];
9591
- isOneToOne: false;
9592
- referencedRelation: "monteurs";
9593
- referencedColumns: ["id"];
9594
- }, {
9595
10648
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
9596
10649
  columns: ["run_id"];
9597
10650
  isOneToOne: false;
@@ -10069,6 +11122,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10069
11122
  };
10070
11123
  offer_settings: {
10071
11124
  Row: {
11125
+ brand_name: string | null;
10072
11126
  button_color: string;
10073
11127
  created_at: string;
10074
11128
  default_countries: string[];
@@ -10090,6 +11144,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10090
11144
  updated_at: string;
10091
11145
  };
10092
11146
  Insert: {
11147
+ brand_name?: string | null;
10093
11148
  button_color?: string;
10094
11149
  created_at?: string;
10095
11150
  default_countries?: string[];
@@ -10111,6 +11166,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10111
11166
  updated_at?: string;
10112
11167
  };
10113
11168
  Update: {
11169
+ brand_name?: string | null;
10114
11170
  button_color?: string;
10115
11171
  created_at?: string;
10116
11172
  default_countries?: string[];
@@ -10409,6 +11465,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10409
11465
  };
10410
11466
  Relationships: [];
10411
11467
  };
11468
+ order_invoice_links: {
11469
+ Row: {
11470
+ attempts: number;
11471
+ created_at: string;
11472
+ error_message: string | null;
11473
+ id: string;
11474
+ invoice_number: string | null;
11475
+ next_attempt_at: string;
11476
+ order_id: string;
11477
+ processed_at: string | null;
11478
+ status: string;
11479
+ updated_at: string;
11480
+ };
11481
+ Insert: {
11482
+ attempts?: number;
11483
+ created_at?: string;
11484
+ error_message?: string | null;
11485
+ id?: string;
11486
+ invoice_number?: string | null;
11487
+ next_attempt_at?: string;
11488
+ order_id: string;
11489
+ processed_at?: string | null;
11490
+ status?: string;
11491
+ updated_at?: string;
11492
+ };
11493
+ Update: {
11494
+ attempts?: number;
11495
+ created_at?: string;
11496
+ error_message?: string | null;
11497
+ id?: string;
11498
+ invoice_number?: string | null;
11499
+ next_attempt_at?: string;
11500
+ order_id?: string;
11501
+ processed_at?: string | null;
11502
+ status?: string;
11503
+ updated_at?: string;
11504
+ };
11505
+ Relationships: [];
11506
+ };
10412
11507
  order_items: {
10413
11508
  Row: {
10414
11509
  crates_per_layer: number | null;
@@ -10591,6 +11686,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10591
11686
  delivery_date: string | null;
10592
11687
  floriday_sales_order_id: string | null;
10593
11688
  id: string;
11689
+ invoice_due_at: string | null;
10594
11690
  is_reservation: boolean;
10595
11691
  notes: string | null;
10596
11692
  order_date: string;
@@ -10612,6 +11708,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10612
11708
  delivery_date?: string | null;
10613
11709
  floriday_sales_order_id?: string | null;
10614
11710
  id?: string;
11711
+ invoice_due_at?: string | null;
10615
11712
  is_reservation?: boolean;
10616
11713
  notes?: string | null;
10617
11714
  order_date?: string;
@@ -10633,6 +11730,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10633
11730
  delivery_date?: string | null;
10634
11731
  floriday_sales_order_id?: string | null;
10635
11732
  id?: string;
11733
+ invoice_due_at?: string | null;
10636
11734
  is_reservation?: boolean;
10637
11735
  notes?: string | null;
10638
11736
  order_date?: string;
@@ -11829,22 +12927,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11829
12927
  created_at: string;
11830
12928
  documentnaam: string;
11831
12929
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12930
+ extern_job_id: string | null;
11832
12931
  foutmelding: string | null;
11833
12932
  gebruiker_id: string | null;
11834
12933
  gebruiker_naam: string;
11835
12934
  gestart_op: string | null;
11836
12935
  id: string;
12936
+ idempotentie_sleutel: string | null;
11837
12937
  is_herprint: boolean;
11838
12938
  kopieen: number;
11839
12939
  layout_id: string | null;
11840
12940
  opgepakt_op: string | null;
11841
12941
  paginas: number;
11842
12942
  payload: import("./types").Json;
12943
+ pdf_base64: string | null;
12944
+ pdf_url: string | null;
11843
12945
  pogingen: number;
11844
12946
  printer_id: string | null;
11845
12947
  render_html: string | null;
11846
12948
  status: Database["public"]["Enums"]["print_job_status"];
11847
12949
  updated_at: string;
12950
+ volgende_poging: string | null;
11848
12951
  voltooid_op: string | null;
11849
12952
  };
11850
12953
  Insert: {
@@ -11853,22 +12956,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11853
12956
  created_at?: string;
11854
12957
  documentnaam?: string;
11855
12958
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12959
+ extern_job_id?: string | null;
11856
12960
  foutmelding?: string | null;
11857
12961
  gebruiker_id?: string | null;
11858
12962
  gebruiker_naam?: string;
11859
12963
  gestart_op?: string | null;
11860
12964
  id?: string;
12965
+ idempotentie_sleutel?: string | null;
11861
12966
  is_herprint?: boolean;
11862
12967
  kopieen?: number;
11863
12968
  layout_id?: string | null;
11864
12969
  opgepakt_op?: string | null;
11865
12970
  paginas?: number;
11866
12971
  payload?: import("./types").Json;
12972
+ pdf_base64?: string | null;
12973
+ pdf_url?: string | null;
11867
12974
  pogingen?: number;
11868
12975
  printer_id?: string | null;
11869
12976
  render_html?: string | null;
11870
12977
  status?: Database["public"]["Enums"]["print_job_status"];
11871
12978
  updated_at?: string;
12979
+ volgende_poging?: string | null;
11872
12980
  voltooid_op?: string | null;
11873
12981
  };
11874
12982
  Update: {
@@ -11877,22 +12985,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11877
12985
  created_at?: string;
11878
12986
  documentnaam?: string;
11879
12987
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12988
+ extern_job_id?: string | null;
11880
12989
  foutmelding?: string | null;
11881
12990
  gebruiker_id?: string | null;
11882
12991
  gebruiker_naam?: string;
11883
12992
  gestart_op?: string | null;
11884
12993
  id?: string;
12994
+ idempotentie_sleutel?: string | null;
11885
12995
  is_herprint?: boolean;
11886
12996
  kopieen?: number;
11887
12997
  layout_id?: string | null;
11888
12998
  opgepakt_op?: string | null;
11889
12999
  paginas?: number;
11890
13000
  payload?: import("./types").Json;
13001
+ pdf_base64?: string | null;
13002
+ pdf_url?: string | null;
11891
13003
  pogingen?: number;
11892
13004
  printer_id?: string | null;
11893
13005
  render_html?: string | null;
11894
13006
  status?: Database["public"]["Enums"]["print_job_status"];
11895
13007
  updated_at?: string;
13008
+ volgende_poging?: string | null;
11896
13009
  voltooid_op?: string | null;
11897
13010
  };
11898
13011
  Relationships: [{
@@ -11915,6 +13028,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11915
13028
  referencedColumns: ["id"];
11916
13029
  }];
11917
13030
  };
13031
+ print_queue_runners: {
13032
+ Row: {
13033
+ actief: boolean;
13034
+ basis_url: string;
13035
+ created_at: string;
13036
+ id: string;
13037
+ laatst_gezien: string;
13038
+ laatste_fout: string | null;
13039
+ laatste_request_id: number | null;
13040
+ mislukte_posts: number;
13041
+ tick_sleutel: string;
13042
+ updated_at: string;
13043
+ };
13044
+ Insert: {
13045
+ actief?: boolean;
13046
+ basis_url: string;
13047
+ created_at?: string;
13048
+ id?: string;
13049
+ laatst_gezien?: string;
13050
+ laatste_fout?: string | null;
13051
+ laatste_request_id?: number | null;
13052
+ mislukte_posts?: number;
13053
+ tick_sleutel?: string;
13054
+ updated_at?: string;
13055
+ };
13056
+ Update: {
13057
+ actief?: boolean;
13058
+ basis_url?: string;
13059
+ created_at?: string;
13060
+ id?: string;
13061
+ laatst_gezien?: string;
13062
+ laatste_fout?: string | null;
13063
+ laatste_request_id?: number | null;
13064
+ mislukte_posts?: number;
13065
+ tick_sleutel?: string;
13066
+ updated_at?: string;
13067
+ };
13068
+ Relationships: [];
13069
+ };
13070
+ print_queue_settings: {
13071
+ Row: {
13072
+ bewaar_bestanden_dagen: number;
13073
+ bewaar_opdrachten_dagen: number;
13074
+ created_at: string;
13075
+ dubbel_venster_minuten: number;
13076
+ id: string;
13077
+ updated_at: string;
13078
+ };
13079
+ Insert: {
13080
+ bewaar_bestanden_dagen?: number;
13081
+ bewaar_opdrachten_dagen?: number;
13082
+ created_at?: string;
13083
+ dubbel_venster_minuten?: number;
13084
+ id?: string;
13085
+ updated_at?: string;
13086
+ };
13087
+ Update: {
13088
+ bewaar_bestanden_dagen?: number;
13089
+ bewaar_opdrachten_dagen?: number;
13090
+ created_at?: string;
13091
+ dubbel_venster_minuten?: number;
13092
+ id?: string;
13093
+ updated_at?: string;
13094
+ };
13095
+ Relationships: [];
13096
+ };
11918
13097
  print_rules: {
11919
13098
  Row: {
11920
13099
  actief: boolean;
@@ -12075,6 +13254,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12075
13254
  agent_id: string | null;
12076
13255
  created_at: string;
12077
13256
  driver: string;
13257
+ extern_printer_id: string | null;
12078
13258
  id: string;
12079
13259
  ip_adres: string | null;
12080
13260
  laatst_gezien: string | null;
@@ -12096,6 +13276,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12096
13276
  agent_id?: string | null;
12097
13277
  created_at?: string;
12098
13278
  driver?: string;
13279
+ extern_printer_id?: string | null;
12099
13280
  id?: string;
12100
13281
  ip_adres?: string | null;
12101
13282
  laatst_gezien?: string | null;
@@ -12117,6 +13298,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12117
13298
  agent_id?: string | null;
12118
13299
  created_at?: string;
12119
13300
  driver?: string;
13301
+ extern_printer_id?: string | null;
12120
13302
  id?: string;
12121
13303
  ip_adres?: string | null;
12122
13304
  laatst_gezien?: string | null;
@@ -13388,6 +14570,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13388
14570
  referencedColumns: ["id"];
13389
14571
  }];
13390
14572
  };
14573
+ role_assignments: {
14574
+ Row: {
14575
+ created_at: string;
14576
+ id: string;
14577
+ role_id: string;
14578
+ user_id: string;
14579
+ };
14580
+ Insert: {
14581
+ created_at?: string;
14582
+ id?: string;
14583
+ role_id: string;
14584
+ user_id: string;
14585
+ };
14586
+ Update: {
14587
+ created_at?: string;
14588
+ id?: string;
14589
+ role_id?: string;
14590
+ user_id?: string;
14591
+ };
14592
+ Relationships: [{
14593
+ foreignKeyName: "role_assignments_role_id_fkey";
14594
+ columns: ["role_id"];
14595
+ isOneToOne: false;
14596
+ referencedRelation: "roles";
14597
+ referencedColumns: ["id"];
14598
+ }];
14599
+ };
14600
+ role_permissions: {
14601
+ Row: {
14602
+ can_edit: boolean;
14603
+ can_view: boolean;
14604
+ feature_id: string;
14605
+ id: string;
14606
+ module_id: string;
14607
+ role_id: string;
14608
+ updated_at: string;
14609
+ };
14610
+ Insert: {
14611
+ can_edit?: boolean;
14612
+ can_view?: boolean;
14613
+ feature_id?: string;
14614
+ id?: string;
14615
+ module_id: string;
14616
+ role_id: string;
14617
+ updated_at?: string;
14618
+ };
14619
+ Update: {
14620
+ can_edit?: boolean;
14621
+ can_view?: boolean;
14622
+ feature_id?: string;
14623
+ id?: string;
14624
+ module_id?: string;
14625
+ role_id?: string;
14626
+ updated_at?: string;
14627
+ };
14628
+ Relationships: [{
14629
+ foreignKeyName: "role_permissions_role_id_fkey";
14630
+ columns: ["role_id"];
14631
+ isOneToOne: false;
14632
+ referencedRelation: "roles";
14633
+ referencedColumns: ["id"];
14634
+ }];
14635
+ };
14636
+ roles: {
14637
+ Row: {
14638
+ created_at: string;
14639
+ id: string;
14640
+ is_protected: boolean;
14641
+ key: string;
14642
+ name: string;
14643
+ updated_at: string;
14644
+ };
14645
+ Insert: {
14646
+ created_at?: string;
14647
+ id?: string;
14648
+ is_protected?: boolean;
14649
+ key: string;
14650
+ name: string;
14651
+ updated_at?: string;
14652
+ };
14653
+ Update: {
14654
+ created_at?: string;
14655
+ id?: string;
14656
+ is_protected?: boolean;
14657
+ key?: string;
14658
+ name?: string;
14659
+ updated_at?: string;
14660
+ };
14661
+ Relationships: [];
14662
+ };
13391
14663
  rooms: {
13392
14664
  Row: {
13393
14665
  capacity: number;
@@ -13731,6 +15003,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13731
15003
  type: string;
13732
15004
  updated_at: string;
13733
15005
  vereist_medewerker: boolean;
15006
+ werkplek: string | null;
13734
15007
  };
13735
15008
  Insert: {
13736
15009
  actief?: boolean;
@@ -13744,6 +15017,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13744
15017
  type?: string;
13745
15018
  updated_at?: string;
13746
15019
  vereist_medewerker?: boolean;
15020
+ werkplek?: string | null;
13747
15021
  };
13748
15022
  Update: {
13749
15023
  actief?: boolean;
@@ -13757,6 +15031,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13757
15031
  type?: string;
13758
15032
  updated_at?: string;
13759
15033
  vereist_medewerker?: boolean;
15034
+ werkplek?: string | null;
13760
15035
  };
13761
15036
  Relationships: [];
13762
15037
  };
@@ -14057,6 +15332,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14057
15332
  };
14058
15333
  Relationships: [];
14059
15334
  };
15335
+ time_compensation_entries: {
15336
+ Row: {
15337
+ created_at: string;
15338
+ employee_id: string;
15339
+ entry_date: string;
15340
+ id: string;
15341
+ km: number;
15342
+ meal_allowance: number;
15343
+ notes: string | null;
15344
+ standby_evening: number;
15345
+ standby_weekend: number;
15346
+ tvt_change: number;
15347
+ updated_at: string;
15348
+ };
15349
+ Insert: {
15350
+ created_at?: string;
15351
+ employee_id: string;
15352
+ entry_date: string;
15353
+ id?: string;
15354
+ km?: number;
15355
+ meal_allowance?: number;
15356
+ notes?: string | null;
15357
+ standby_evening?: number;
15358
+ standby_weekend?: number;
15359
+ tvt_change?: number;
15360
+ updated_at?: string;
15361
+ };
15362
+ Update: {
15363
+ created_at?: string;
15364
+ employee_id?: string;
15365
+ entry_date?: string;
15366
+ id?: string;
15367
+ km?: number;
15368
+ meal_allowance?: number;
15369
+ notes?: string | null;
15370
+ standby_evening?: number;
15371
+ standby_weekend?: number;
15372
+ tvt_change?: number;
15373
+ updated_at?: string;
15374
+ };
15375
+ Relationships: [{
15376
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15377
+ columns: ["employee_id"];
15378
+ isOneToOne: false;
15379
+ referencedRelation: "profiles";
15380
+ referencedColumns: ["id"];
15381
+ }];
15382
+ };
14060
15383
  time_entries: {
14061
15384
  Row: {
14062
15385
  created_at: string;
@@ -14091,65 +15414,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14091
15414
  undertime?: number;
14092
15415
  updated_at?: string;
14093
15416
  };
15417
+ Relationships: [];
15418
+ };
15419
+ time_log_week_approvals: {
15420
+ Row: {
15421
+ approved_at: string | null;
15422
+ approved_by: string | null;
15423
+ created_at: string;
15424
+ employee_id: string;
15425
+ id: string;
15426
+ locked: boolean;
15427
+ notes: string | null;
15428
+ status: string;
15429
+ submitted_at: string | null;
15430
+ updated_at: string;
15431
+ week_start: string;
15432
+ };
15433
+ Insert: {
15434
+ approved_at?: string | null;
15435
+ approved_by?: string | null;
15436
+ created_at?: string;
15437
+ employee_id: string;
15438
+ id?: string;
15439
+ locked?: boolean;
15440
+ notes?: string | null;
15441
+ status?: string;
15442
+ submitted_at?: string | null;
15443
+ updated_at?: string;
15444
+ week_start: string;
15445
+ };
15446
+ Update: {
15447
+ approved_at?: string | null;
15448
+ approved_by?: string | null;
15449
+ created_at?: string;
15450
+ employee_id?: string;
15451
+ id?: string;
15452
+ locked?: boolean;
15453
+ notes?: string | null;
15454
+ status?: string;
15455
+ submitted_at?: string | null;
15456
+ updated_at?: string;
15457
+ week_start?: string;
15458
+ };
14094
15459
  Relationships: [{
14095
- foreignKeyName: "time_entries_employee_id_fkey";
15460
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14096
15461
  columns: ["employee_id"];
14097
15462
  isOneToOne: false;
14098
- referencedRelation: "monteurs";
15463
+ referencedRelation: "profiles";
14099
15464
  referencedColumns: ["id"];
14100
15465
  }];
14101
15466
  };
14102
15467
  time_logs: {
14103
15468
  Row: {
15469
+ auto_stop_reason: string | null;
15470
+ auto_stopped: boolean;
14104
15471
  created_at: string;
15472
+ current_latitude: number | null;
15473
+ current_longitude: number | null;
15474
+ current_position_updated_at: string | null;
14105
15475
  employee_id: string;
15476
+ end_latitude: number | null;
15477
+ end_longitude: number | null;
14106
15478
  end_time: string | null;
15479
+ eta_distance_km: number | null;
15480
+ eta_minutes: number | null;
15481
+ eta_updated_at: string | null;
15482
+ hour_category: string | null;
14107
15483
  id: string;
15484
+ last_reminder_at: string | null;
14108
15485
  notes: string | null;
14109
15486
  overtime_hours: number;
14110
15487
  overtime_type: string | null;
14111
15488
  regular_hours: number;
15489
+ reminder_count: number;
15490
+ requires_review: boolean;
15491
+ start_latitude: number | null;
15492
+ start_longitude: number | null;
14112
15493
  start_time: string;
14113
15494
  travel_cost: number | null;
14114
15495
  travel_distance_km: number | null;
15496
+ travel_duration_min: number | null;
15497
+ travel_time_minutes: number | null;
14115
15498
  type: string;
14116
15499
  updated_at: string;
15500
+ work_order_id: string | null;
14117
15501
  };
14118
15502
  Insert: {
15503
+ auto_stop_reason?: string | null;
15504
+ auto_stopped?: boolean;
14119
15505
  created_at?: string;
15506
+ current_latitude?: number | null;
15507
+ current_longitude?: number | null;
15508
+ current_position_updated_at?: string | null;
14120
15509
  employee_id: string;
15510
+ end_latitude?: number | null;
15511
+ end_longitude?: number | null;
14121
15512
  end_time?: string | null;
15513
+ eta_distance_km?: number | null;
15514
+ eta_minutes?: number | null;
15515
+ eta_updated_at?: string | null;
15516
+ hour_category?: string | null;
14122
15517
  id?: string;
15518
+ last_reminder_at?: string | null;
14123
15519
  notes?: string | null;
14124
15520
  overtime_hours?: number;
14125
15521
  overtime_type?: string | null;
14126
15522
  regular_hours?: number;
15523
+ reminder_count?: number;
15524
+ requires_review?: boolean;
15525
+ start_latitude?: number | null;
15526
+ start_longitude?: number | null;
14127
15527
  start_time?: string;
14128
15528
  travel_cost?: number | null;
14129
15529
  travel_distance_km?: number | null;
15530
+ travel_duration_min?: number | null;
15531
+ travel_time_minutes?: number | null;
14130
15532
  type: string;
14131
15533
  updated_at?: string;
15534
+ work_order_id?: string | null;
14132
15535
  };
14133
15536
  Update: {
15537
+ auto_stop_reason?: string | null;
15538
+ auto_stopped?: boolean;
14134
15539
  created_at?: string;
15540
+ current_latitude?: number | null;
15541
+ current_longitude?: number | null;
15542
+ current_position_updated_at?: string | null;
14135
15543
  employee_id?: string;
15544
+ end_latitude?: number | null;
15545
+ end_longitude?: number | null;
14136
15546
  end_time?: string | null;
15547
+ eta_distance_km?: number | null;
15548
+ eta_minutes?: number | null;
15549
+ eta_updated_at?: string | null;
15550
+ hour_category?: string | null;
14137
15551
  id?: string;
15552
+ last_reminder_at?: string | null;
14138
15553
  notes?: string | null;
14139
15554
  overtime_hours?: number;
14140
15555
  overtime_type?: string | null;
14141
15556
  regular_hours?: number;
15557
+ reminder_count?: number;
15558
+ requires_review?: boolean;
15559
+ start_latitude?: number | null;
15560
+ start_longitude?: number | null;
14142
15561
  start_time?: string;
14143
15562
  travel_cost?: number | null;
14144
15563
  travel_distance_km?: number | null;
15564
+ travel_duration_min?: number | null;
15565
+ travel_time_minutes?: number | null;
14145
15566
  type?: string;
14146
15567
  updated_at?: string;
15568
+ work_order_id?: string | null;
14147
15569
  };
14148
15570
  Relationships: [{
14149
15571
  foreignKeyName: "time_logs_employee_id_fkey";
14150
15572
  columns: ["employee_id"];
14151
15573
  isOneToOne: false;
14152
- referencedRelation: "monteurs";
15574
+ referencedRelation: "profiles";
15575
+ referencedColumns: ["id"];
15576
+ }, {
15577
+ foreignKeyName: "time_logs_work_order_id_fkey";
15578
+ columns: ["work_order_id"];
15579
+ isOneToOne: false;
15580
+ referencedRelation: "work_orders";
14153
15581
  referencedColumns: ["id"];
14154
15582
  }];
14155
15583
  };
@@ -14188,7 +15616,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14188
15616
  foreignKeyName: "time_off_entries_employee_id_fkey";
14189
15617
  columns: ["employee_id"];
14190
15618
  isOneToOne: false;
14191
- referencedRelation: "monteurs";
15619
+ referencedRelation: "profiles";
14192
15620
  referencedColumns: ["id"];
14193
15621
  }];
14194
15622
  };
@@ -14493,8 +15921,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14493
15921
  };
14494
15922
  Update: {
14495
15923
  created_at?: string;
14496
- id?: number;
14497
- secret?: string;
15924
+ id?: number;
15925
+ secret?: string;
15926
+ };
15927
+ Relationships: [];
15928
+ };
15929
+ twinfield_cron_locks: {
15930
+ Row: {
15931
+ created_at: string;
15932
+ heartbeat_at: string;
15933
+ job_name: string;
15934
+ last_error: string | null;
15935
+ last_finished_at: string | null;
15936
+ locked_at: string;
15937
+ run_id: string;
15938
+ updated_at: string;
15939
+ };
15940
+ Insert: {
15941
+ created_at?: string;
15942
+ heartbeat_at?: string;
15943
+ job_name: string;
15944
+ last_error?: string | null;
15945
+ last_finished_at?: string | null;
15946
+ locked_at?: string;
15947
+ run_id?: string;
15948
+ updated_at?: string;
15949
+ };
15950
+ Update: {
15951
+ created_at?: string;
15952
+ heartbeat_at?: string;
15953
+ job_name?: string;
15954
+ last_error?: string | null;
15955
+ last_finished_at?: string | null;
15956
+ locked_at?: string;
15957
+ run_id?: string;
15958
+ updated_at?: string;
14498
15959
  };
14499
15960
  Relationships: [];
14500
15961
  };
@@ -14752,6 +16213,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14752
16213
  };
14753
16214
  twinfield_invoice_settings: {
14754
16215
  Row: {
16216
+ auto_invoice_enabled: boolean;
16217
+ auto_invoice_trigger_statuses: string[];
14755
16218
  created_at: string;
14756
16219
  debtor_gl_account: string;
14757
16220
  default_credit_invoice_type: string | null;
@@ -14772,6 +16235,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14772
16235
  vat_code_export: string | null;
14773
16236
  };
14774
16237
  Insert: {
16238
+ auto_invoice_enabled?: boolean;
16239
+ auto_invoice_trigger_statuses?: string[];
14775
16240
  created_at?: string;
14776
16241
  debtor_gl_account?: string;
14777
16242
  default_credit_invoice_type?: string | null;
@@ -14792,6 +16257,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14792
16257
  vat_code_export?: string | null;
14793
16258
  };
14794
16259
  Update: {
16260
+ auto_invoice_enabled?: boolean;
16261
+ auto_invoice_trigger_statuses?: string[];
14795
16262
  created_at?: string;
14796
16263
  debtor_gl_account?: string;
14797
16264
  default_credit_invoice_type?: string | null;
@@ -15092,6 +16559,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15092
16559
  twinfield_push_queue: {
15093
16560
  Row: {
15094
16561
  action: string;
16562
+ attempt_started_at: string | null;
15095
16563
  attempts: number;
15096
16564
  connection_id: string | null;
15097
16565
  created_at: string;
@@ -15108,6 +16576,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15108
16576
  };
15109
16577
  Insert: {
15110
16578
  action?: string;
16579
+ attempt_started_at?: string | null;
15111
16580
  attempts?: number;
15112
16581
  connection_id?: string | null;
15113
16582
  created_at?: string;
@@ -15124,6 +16593,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15124
16593
  };
15125
16594
  Update: {
15126
16595
  action?: string;
16596
+ attempt_started_at?: string | null;
15127
16597
  attempts?: number;
15128
16598
  connection_id?: string | null;
15129
16599
  created_at?: string;
@@ -15321,13 +16791,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15321
16791
  workday_end?: string | null;
15322
16792
  workday_start?: string | null;
15323
16793
  };
15324
- Relationships: [{
15325
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15326
- columns: ["monteur_id"];
15327
- isOneToOne: true;
15328
- referencedRelation: "monteurs";
15329
- referencedColumns: ["id"];
15330
- }];
16794
+ Relationships: [];
15331
16795
  };
15332
16796
  uren_entries: {
15333
16797
  Row: {
@@ -15373,12 +16837,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15373
16837
  werkbon_id?: string | null;
15374
16838
  };
15375
16839
  Relationships: [{
15376
- foreignKeyName: "uren_entries_monteur_id_fkey";
15377
- columns: ["monteur_id"];
15378
- isOneToOne: false;
15379
- referencedRelation: "monteurs";
15380
- referencedColumns: ["id"];
15381
- }, {
15382
16840
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15383
16841
  columns: ["werkbon_id"];
15384
16842
  isOneToOne: false;
@@ -15846,13 +17304,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15846
17304
  submitted_at?: string | null;
15847
17305
  updated_at?: string;
15848
17306
  };
15849
- Relationships: [{
15850
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
15851
- columns: ["monteur_id"];
15852
- isOneToOne: false;
15853
- referencedRelation: "monteurs";
15854
- referencedColumns: ["id"];
15855
- }];
17307
+ Relationships: [];
17308
+ };
17309
+ user_module_permissions: {
17310
+ Row: {
17311
+ created_at: string;
17312
+ feature_id: string;
17313
+ id: string;
17314
+ module_id: string;
17315
+ permission: string;
17316
+ updated_at: string;
17317
+ user_id: string;
17318
+ };
17319
+ Insert: {
17320
+ created_at?: string;
17321
+ feature_id?: string;
17322
+ id?: string;
17323
+ module_id: string;
17324
+ permission: string;
17325
+ updated_at?: string;
17326
+ user_id: string;
17327
+ };
17328
+ Update: {
17329
+ created_at?: string;
17330
+ feature_id?: string;
17331
+ id?: string;
17332
+ module_id?: string;
17333
+ permission?: string;
17334
+ updated_at?: string;
17335
+ user_id?: string;
17336
+ };
17337
+ Relationships: [];
15856
17338
  };
15857
17339
  user_roles: {
15858
17340
  Row: {
@@ -15881,6 +17363,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15881
17363
  referencedColumns: ["id"];
15882
17364
  }];
15883
17365
  };
17366
+ van_inventories: {
17367
+ Row: {
17368
+ barcode: string | null;
17369
+ created_at: string;
17370
+ id: string;
17371
+ monteur_id: string | null;
17372
+ price_per_unit: number;
17373
+ product_name: string;
17374
+ quantity_current: number;
17375
+ quantity_min: number;
17376
+ unit: string;
17377
+ updated_at: string;
17378
+ };
17379
+ Insert: {
17380
+ barcode?: string | null;
17381
+ created_at?: string;
17382
+ id?: string;
17383
+ monteur_id?: string | null;
17384
+ price_per_unit?: number;
17385
+ product_name: string;
17386
+ quantity_current?: number;
17387
+ quantity_min?: number;
17388
+ unit?: string;
17389
+ updated_at?: string;
17390
+ };
17391
+ Update: {
17392
+ barcode?: string | null;
17393
+ created_at?: string;
17394
+ id?: string;
17395
+ monteur_id?: string | null;
17396
+ price_per_unit?: number;
17397
+ product_name?: string;
17398
+ quantity_current?: number;
17399
+ quantity_min?: number;
17400
+ unit?: string;
17401
+ updated_at?: string;
17402
+ };
17403
+ Relationships: [{
17404
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17405
+ columns: ["monteur_id"];
17406
+ isOneToOne: false;
17407
+ referencedRelation: "profiles";
17408
+ referencedColumns: ["id"];
17409
+ }];
17410
+ };
15884
17411
  voorraad_custom_fields: {
15885
17412
  Row: {
15886
17413
  created_at: string;
@@ -16831,7 +18358,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16831
18358
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
16832
18359
  columns: ["monteur_id"];
16833
18360
  isOneToOne: false;
16834
- referencedRelation: "monteurs";
18361
+ referencedRelation: "profiles";
16835
18362
  referencedColumns: ["id"];
16836
18363
  }, {
16837
18364
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -16841,6 +18368,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16841
18368
  referencedColumns: ["id"];
16842
18369
  }];
16843
18370
  };
18371
+ work_order_photos: {
18372
+ Row: {
18373
+ ai_caption: string | null;
18374
+ ai_categorized_at: string | null;
18375
+ ai_labels: import("./types").Json | null;
18376
+ caption: string | null;
18377
+ created_at: string;
18378
+ id: string;
18379
+ monteur_id: string | null;
18380
+ photo_type: string;
18381
+ storage_path: string;
18382
+ updated_at: string;
18383
+ work_order_id: string;
18384
+ };
18385
+ Insert: {
18386
+ ai_caption?: string | null;
18387
+ ai_categorized_at?: string | null;
18388
+ ai_labels?: import("./types").Json | null;
18389
+ caption?: string | null;
18390
+ created_at?: string;
18391
+ id?: string;
18392
+ monteur_id?: string | null;
18393
+ photo_type?: string;
18394
+ storage_path: string;
18395
+ updated_at?: string;
18396
+ work_order_id: string;
18397
+ };
18398
+ Update: {
18399
+ ai_caption?: string | null;
18400
+ ai_categorized_at?: string | null;
18401
+ ai_labels?: import("./types").Json | null;
18402
+ caption?: string | null;
18403
+ created_at?: string;
18404
+ id?: string;
18405
+ monteur_id?: string | null;
18406
+ photo_type?: string;
18407
+ storage_path?: string;
18408
+ updated_at?: string;
18409
+ work_order_id?: string;
18410
+ };
18411
+ Relationships: [{
18412
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18413
+ columns: ["monteur_id"];
18414
+ isOneToOne: false;
18415
+ referencedRelation: "profiles";
18416
+ referencedColumns: ["id"];
18417
+ }, {
18418
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18419
+ columns: ["work_order_id"];
18420
+ isOneToOne: false;
18421
+ referencedRelation: "work_orders";
18422
+ referencedColumns: ["id"];
18423
+ }];
18424
+ };
16844
18425
  work_orders: {
16845
18426
  Row: {
16846
18427
  assigned_to: string | null;
@@ -16872,7 +18453,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16872
18453
  scheduled_end_time: string | null;
16873
18454
  scheduled_start_time: string | null;
16874
18455
  status: string;
16875
- tenant_id: string;
16876
18456
  total_hours_worked: number | null;
16877
18457
  total_price: number | null;
16878
18458
  travel_time_minutes: number | null;
@@ -16910,7 +18490,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16910
18490
  scheduled_end_time?: string | null;
16911
18491
  scheduled_start_time?: string | null;
16912
18492
  status?: string;
16913
- tenant_id: string;
16914
18493
  total_hours_worked?: number | null;
16915
18494
  total_price?: number | null;
16916
18495
  travel_time_minutes?: number | null;
@@ -16948,7 +18527,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16948
18527
  scheduled_end_time?: string | null;
16949
18528
  scheduled_start_time?: string | null;
16950
18529
  status?: string;
16951
- tenant_id?: string;
16952
18530
  total_hours_worked?: number | null;
16953
18531
  total_price?: number | null;
16954
18532
  travel_time_minutes?: number | null;
@@ -16962,12 +18540,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16962
18540
  isOneToOne: false;
16963
18541
  referencedRelation: "work_orders";
16964
18542
  referencedColumns: ["id"];
16965
- }, {
16966
- foreignKeyName: "work_orders_tenant_id_fkey";
16967
- columns: ["tenant_id"];
16968
- isOneToOne: false;
16969
- referencedRelation: "tenants";
16970
- referencedColumns: ["id"];
16971
18543
  }];
16972
18544
  };
16973
18545
  };
@@ -17652,6 +19224,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17652
19224
  };
17653
19225
  Returns: undefined;
17654
19226
  };
19227
+ approve_mailbox_order_proposal: {
19228
+ Args: {
19229
+ p_custom_fields: import("./types").Json;
19230
+ p_customer_id: string;
19231
+ p_delivery_date: string;
19232
+ p_field_values?: import("./types").Json;
19233
+ p_lines: import("./types").Json;
19234
+ p_notes: string;
19235
+ p_proposal_id: string;
19236
+ p_reviewed_by: string;
19237
+ };
19238
+ Returns: import("./types").Json;
19239
+ };
17655
19240
  assign_cart_numbers: {
17656
19241
  Args: {
17657
19242
  p_carts: import("./types").Json;
@@ -17687,6 +19272,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17687
19272
  processed_items: number;
17688
19273
  }[];
17689
19274
  };
19275
+ backfill_order_auto_invoice_queue: {
19276
+ Args: never;
19277
+ Returns: number;
19278
+ };
17690
19279
  calculate_layer_stock: {
17691
19280
  Args: {
17692
19281
  p_product_id: string;
@@ -17699,6 +19288,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17699
19288
  };
17700
19289
  Returns: number;
17701
19290
  };
19291
+ can_manage_hours: {
19292
+ Args: never;
19293
+ Returns: boolean;
19294
+ };
17702
19295
  check_offer_product_available_stock: {
17703
19296
  Args: {
17704
19297
  p_campaign_product_id: string;
@@ -17721,6 +19314,125 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17721
19314
  };
17722
19315
  Returns: import("./types").Json;
17723
19316
  };
19317
+ claim_cloud_print_jobs: {
19318
+ Args: {
19319
+ _max?: number;
19320
+ };
19321
+ Returns: {
19322
+ agent_id: string | null;
19323
+ bron_job_id: string | null;
19324
+ created_at: string;
19325
+ documentnaam: string;
19326
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19327
+ extern_job_id: string | null;
19328
+ foutmelding: string | null;
19329
+ gebruiker_id: string | null;
19330
+ gebruiker_naam: string;
19331
+ gestart_op: string | null;
19332
+ id: string;
19333
+ idempotentie_sleutel: string | null;
19334
+ is_herprint: boolean;
19335
+ kopieen: number;
19336
+ layout_id: string | null;
19337
+ opgepakt_op: string | null;
19338
+ paginas: number;
19339
+ payload: import("./types").Json;
19340
+ pdf_base64: string | null;
19341
+ pdf_url: string | null;
19342
+ pogingen: number;
19343
+ printer_id: string | null;
19344
+ render_html: string | null;
19345
+ status: Database["public"]["Enums"]["print_job_status"];
19346
+ updated_at: string;
19347
+ volgende_poging: string | null;
19348
+ voltooid_op: string | null;
19349
+ }[];
19350
+ SetofOptions: {
19351
+ from: "*";
19352
+ to: "print_jobs";
19353
+ isOneToOne: false;
19354
+ isSetofReturn: true;
19355
+ };
19356
+ };
19357
+ claim_floriday_stock_queue: {
19358
+ Args: {
19359
+ p_limit?: number;
19360
+ p_worker?: string;
19361
+ };
19362
+ Returns: {
19363
+ attempts: number;
19364
+ connection_id: string;
19365
+ created_at: string;
19366
+ desired_available: boolean | null;
19367
+ gateway_attempt_id: string | null;
19368
+ id: string;
19369
+ last_error: string | null;
19370
+ locked_at: string | null;
19371
+ locked_by: string | null;
19372
+ next_attempt_at: string;
19373
+ number_of_pieces: number;
19374
+ sent_at: string | null;
19375
+ status: string;
19376
+ superseded_by: string | null;
19377
+ trade_item_id: string;
19378
+ updated_at: string;
19379
+ user_id: string;
19380
+ }[];
19381
+ SetofOptions: {
19382
+ from: "*";
19383
+ to: "floriday_continuous_stock_queue";
19384
+ isOneToOne: false;
19385
+ isSetofReturn: true;
19386
+ };
19387
+ };
19388
+ claim_logistics_tasks: {
19389
+ Args: {
19390
+ _limit?: number;
19391
+ _owner_module: string;
19392
+ _stale_minutes?: number;
19393
+ _task_type: string;
19394
+ _worker: string;
19395
+ };
19396
+ Returns: {
19397
+ attempt_log: import("./types").Json;
19398
+ attempts: number;
19399
+ buffer_ref: string | null;
19400
+ claimed_at: string | null;
19401
+ claimed_by: string | null;
19402
+ completed_at: string | null;
19403
+ created_at: string;
19404
+ depends_on: string[];
19405
+ due_at: string | null;
19406
+ error: string | null;
19407
+ id: string;
19408
+ last_error: string | null;
19409
+ next_attempt_at: string | null;
19410
+ order_ref: string;
19411
+ owner_module: string;
19412
+ payload: import("./types").Json;
19413
+ plan_run_id: string | null;
19414
+ planned_end: string | null;
19415
+ planned_start: string | null;
19416
+ priority: number;
19417
+ result: import("./types").Json | null;
19418
+ rule_config_id: string | null;
19419
+ rule_version: number | null;
19420
+ sequence: number;
19421
+ shadow: boolean;
19422
+ started_at: string | null;
19423
+ status: string;
19424
+ strategy_id: string | null;
19425
+ task_type: string;
19426
+ updated_at: string;
19427
+ user_id: string;
19428
+ }[];
19429
+ SetofOptions: {
19430
+ from: "*";
19431
+ to: "logistics_tasks";
19432
+ isOneToOne: false;
19433
+ isSetofReturn: true;
19434
+ };
19435
+ };
17724
19436
  claim_print_jobs: {
17725
19437
  Args: {
17726
19438
  _agent_id: string;
@@ -17732,22 +19444,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17732
19444
  created_at: string;
17733
19445
  documentnaam: string;
17734
19446
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19447
+ extern_job_id: string | null;
17735
19448
  foutmelding: string | null;
17736
19449
  gebruiker_id: string | null;
17737
19450
  gebruiker_naam: string;
17738
19451
  gestart_op: string | null;
17739
19452
  id: string;
19453
+ idempotentie_sleutel: string | null;
17740
19454
  is_herprint: boolean;
17741
19455
  kopieen: number;
17742
19456
  layout_id: string | null;
17743
19457
  opgepakt_op: string | null;
17744
19458
  paginas: number;
17745
19459
  payload: import("./types").Json;
19460
+ pdf_base64: string | null;
19461
+ pdf_url: string | null;
17746
19462
  pogingen: number;
17747
19463
  printer_id: string | null;
17748
19464
  render_html: string | null;
17749
19465
  status: Database["public"]["Enums"]["print_job_status"];
17750
19466
  updated_at: string;
19467
+ volgende_poging: string | null;
17751
19468
  voltooid_op: string | null;
17752
19469
  }[];
17753
19470
  SetofOptions: {
@@ -17764,6 +19481,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17764
19481
  };
17765
19482
  Returns: {
17766
19483
  action: string;
19484
+ attempt_started_at: string | null;
17767
19485
  attempts: number;
17768
19486
  connection_id: string | null;
17769
19487
  created_at: string;
@@ -17785,10 +19503,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17785
19503
  isSetofReturn: true;
17786
19504
  };
17787
19505
  };
19506
+ cleanup_floriday_stock_queue: {
19507
+ Args: never;
19508
+ Returns: undefined;
19509
+ };
17788
19510
  cleanup_old_bookings: {
17789
19511
  Args: never;
17790
19512
  Returns: undefined;
17791
19513
  };
19514
+ cleanup_voorraad_module_history: {
19515
+ Args: never;
19516
+ Returns: undefined;
19517
+ };
19518
+ complete_floriday_stock_queue: {
19519
+ Args: {
19520
+ p_attempt_id?: string;
19521
+ p_error?: string;
19522
+ p_id: string;
19523
+ p_ok: boolean;
19524
+ p_permanent?: boolean;
19525
+ };
19526
+ Returns: undefined;
19527
+ };
17792
19528
  consume_bom_for_production: {
17793
19529
  Args: {
17794
19530
  p_connection_id: string;
@@ -17833,6 +19569,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17833
19569
  agent_naam: string;
17834
19570
  }[];
17835
19571
  };
19572
+ consume_van_inventory: {
19573
+ Args: {
19574
+ p_inventory_id: string;
19575
+ p_quantity: number;
19576
+ };
19577
+ Returns: {
19578
+ barcode: string | null;
19579
+ created_at: string;
19580
+ id: string;
19581
+ monteur_id: string | null;
19582
+ price_per_unit: number;
19583
+ product_name: string;
19584
+ quantity_current: number;
19585
+ quantity_min: number;
19586
+ unit: string;
19587
+ updated_at: string;
19588
+ };
19589
+ SetofOptions: {
19590
+ from: "*";
19591
+ to: "van_inventories";
19592
+ isOneToOne: true;
19593
+ isSetofReturn: false;
19594
+ };
19595
+ };
17836
19596
  control_get_todays_carts: {
17837
19597
  Args: never;
17838
19598
  Returns: {
@@ -17900,6 +19660,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17900
19660
  };
17901
19661
  Returns: import("./types").Json;
17902
19662
  };
19663
+ effective_module_permission: {
19664
+ Args: {
19665
+ _module_id: string;
19666
+ _user_id: string;
19667
+ };
19668
+ Returns: string;
19669
+ } | {
19670
+ Args: {
19671
+ _feature_id: string;
19672
+ _module_id: string;
19673
+ _user_id: string;
19674
+ };
19675
+ Returns: string;
19676
+ };
17903
19677
  email_auth_decrypt: {
17904
19678
  Args: {
17905
19679
  cipher: string;
@@ -17961,6 +19735,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17961
19735
  Args: never;
17962
19736
  Returns: string;
17963
19737
  };
19738
+ exact_auth_consume_calls: {
19739
+ Args: {
19740
+ _account_key: string;
19741
+ _calls?: number;
19742
+ _day_limit?: number;
19743
+ _division_code: number;
19744
+ _environment: string;
19745
+ _minute_limit?: number;
19746
+ };
19747
+ Returns: import("./types").Json;
19748
+ };
19749
+ exact_auth_prune_sync_log: {
19750
+ Args: never;
19751
+ Returns: undefined;
19752
+ };
17964
19753
  exact_decrypt: {
17965
19754
  Args: {
17966
19755
  cipher: string;
@@ -18170,6 +19959,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18170
19959
  };
18171
19960
  Returns: number;
18172
19961
  };
19962
+ get_offer_branding: {
19963
+ Args: never;
19964
+ Returns: import("./types").Json;
19965
+ };
18173
19966
  get_offer_by_link_code: {
18174
19967
  Args: {
18175
19968
  p_code: string;
@@ -18231,12 +20024,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18231
20024
  Args: never;
18232
20025
  Returns: string;
18233
20026
  };
18234
- get_work_order_tenant_id: {
18235
- Args: {
18236
- wo_id: string;
18237
- };
18238
- Returns: string;
18239
- };
18240
20027
  has_module_permission: {
18241
20028
  Args: {
18242
20029
  _min: string;
@@ -18270,6 +20057,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18270
20057
  };
18271
20058
  Returns: boolean;
18272
20059
  };
20060
+ is_time_log_week_locked: {
20061
+ Args: {
20062
+ p_employee_id: string;
20063
+ p_start_time: string;
20064
+ };
20065
+ Returns: boolean;
20066
+ };
18273
20067
  is_user_admin: {
18274
20068
  Args: never;
18275
20069
  Returns: boolean;
@@ -18278,19 +20072,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18278
20072
  Args: never;
18279
20073
  Returns: boolean;
18280
20074
  };
20075
+ itk_offerte_naar_werkbon: {
20076
+ Args: {
20077
+ _offerte_id: string;
20078
+ };
20079
+ Returns: string;
20080
+ };
20081
+ itk_offerte_restant_mandaat: {
20082
+ Args: {
20083
+ _exclude_offerte_id?: string;
20084
+ _werkbon_id: string;
20085
+ };
20086
+ Returns: number;
20087
+ };
18281
20088
  jwt_has_role: {
18282
20089
  Args: {
18283
20090
  _role: Database["public"]["Enums"]["app_role"];
18284
20091
  };
18285
20092
  Returns: boolean;
18286
20093
  };
18287
- list_monteurs: {
20094
+ list_medewerkers: {
18288
20095
  Args: never;
18289
20096
  Returns: {
18290
20097
  avatar_url: string;
18291
20098
  display_name: string;
18292
20099
  email: string;
18293
20100
  id: string;
20101
+ roles: string[];
18294
20102
  }[];
18295
20103
  };
18296
20104
  list_my_planning_items: {
@@ -18461,6 +20269,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18461
20269
  p_worker?: string;
18462
20270
  };
18463
20271
  Returns: {
20272
+ attempt_log: import("./types").Json;
20273
+ attempts: number;
18464
20274
  buffer_ref: string | null;
18465
20275
  claimed_at: string | null;
18466
20276
  claimed_by: string | null;
@@ -18470,6 +20280,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18470
20280
  due_at: string | null;
18471
20281
  error: string | null;
18472
20282
  id: string;
20283
+ last_error: string | null;
20284
+ next_attempt_at: string | null;
18473
20285
  order_ref: string;
18474
20286
  owner_module: string;
18475
20287
  payload: import("./types").Json;
@@ -18502,6 +20314,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18502
20314
  p_worker?: string;
18503
20315
  };
18504
20316
  Returns: {
20317
+ attempt_log: import("./types").Json;
20318
+ attempts: number;
18505
20319
  buffer_ref: string | null;
18506
20320
  claimed_at: string | null;
18507
20321
  claimed_by: string | null;
@@ -18511,6 +20325,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18511
20325
  due_at: string | null;
18512
20326
  error: string | null;
18513
20327
  id: string;
20328
+ last_error: string | null;
20329
+ next_attempt_at: string | null;
18514
20330
  order_ref: string;
18515
20331
  owner_module: string;
18516
20332
  payload: import("./types").Json;
@@ -18543,6 +20359,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18543
20359
  p_task_id: string;
18544
20360
  };
18545
20361
  Returns: {
20362
+ attempt_log: import("./types").Json;
20363
+ attempts: number;
18546
20364
  buffer_ref: string | null;
18547
20365
  claimed_at: string | null;
18548
20366
  claimed_by: string | null;
@@ -18552,6 +20370,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18552
20370
  due_at: string | null;
18553
20371
  error: string | null;
18554
20372
  id: string;
20373
+ last_error: string | null;
20374
+ next_attempt_at: string | null;
18555
20375
  order_ref: string;
18556
20376
  owner_module: string;
18557
20377
  payload: import("./types").Json;
@@ -18604,17 +20424,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18604
20424
  Returns: string;
18605
20425
  };
18606
20426
  logistics_emit_event: {
18607
- Args: {
18608
- p_event_type: string;
18609
- p_idempotency_key?: string;
18610
- p_order_ref: string;
18611
- p_payload?: import("./types").Json;
18612
- p_shadow?: boolean;
18613
- p_source_module: string;
18614
- p_strategy_id?: string;
18615
- };
18616
- Returns: import("./types").Json;
18617
- } | {
18618
20427
  Args: {
18619
20428
  p_event_type: string;
18620
20429
  p_idempotency_key?: string;
@@ -18633,6 +20442,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18633
20442
  p_task_id: string;
18634
20443
  };
18635
20444
  Returns: {
20445
+ attempt_log: import("./types").Json;
20446
+ attempts: number;
18636
20447
  buffer_ref: string | null;
18637
20448
  claimed_at: string | null;
18638
20449
  claimed_by: string | null;
@@ -18642,6 +20453,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18642
20453
  due_at: string | null;
18643
20454
  error: string | null;
18644
20455
  id: string;
20456
+ last_error: string | null;
20457
+ next_attempt_at: string | null;
18645
20458
  order_ref: string;
18646
20459
  owner_module: string;
18647
20460
  payload: import("./types").Json;
@@ -18668,6 +20481,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18668
20481
  isSetofReturn: false;
18669
20482
  };
18670
20483
  };
20484
+ logistics_floriday_claim_pushes: {
20485
+ Args: {
20486
+ _lease_seconds?: number;
20487
+ _limit?: number;
20488
+ _worker?: string;
20489
+ };
20490
+ Returns: {
20491
+ attempts: number;
20492
+ fulfillment_order_id: string;
20493
+ id: string;
20494
+ last_sent_hash: string;
20495
+ order_ref: string;
20496
+ payload: import("./types").Json;
20497
+ payload_hash: string;
20498
+ revision: number;
20499
+ }[];
20500
+ };
20501
+ logistics_floriday_finish_push: {
20502
+ Args: {
20503
+ _error?: string;
20504
+ _fulfillment_order_id?: string;
20505
+ _id: string;
20506
+ _max_age_hours?: number;
20507
+ _max_attempts?: number;
20508
+ _ok: boolean;
20509
+ _permanent?: boolean;
20510
+ _revision: number;
20511
+ _sent_hash?: string;
20512
+ };
20513
+ Returns: string;
20514
+ };
20515
+ logistics_floriday_prune_pushes: {
20516
+ Args: {
20517
+ _days?: number;
20518
+ };
20519
+ Returns: number;
20520
+ };
20521
+ logistics_floriday_queue_push: {
20522
+ Args: {
20523
+ _order_ref: string;
20524
+ _payload?: import("./types").Json;
20525
+ _payload_hash?: string;
20526
+ };
20527
+ Returns: string;
20528
+ };
18671
20529
  logistics_live_carriers: {
18672
20530
  Args: {
18673
20531
  p_order_ref: string;
@@ -18720,6 +20578,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
20578
  };
18721
20579
  Returns: number;
18722
20580
  };
20581
+ logistics_plan_claim: {
20582
+ Args: {
20583
+ p_limit?: number;
20584
+ };
20585
+ Returns: {
20586
+ attempts: number;
20587
+ id: string;
20588
+ order_id: string;
20589
+ }[];
20590
+ };
20591
+ logistics_plan_enqueue: {
20592
+ Args: {
20593
+ p_order_id: string;
20594
+ p_reason?: string;
20595
+ };
20596
+ Returns: undefined;
20597
+ };
20598
+ logistics_plan_ensure_event: {
20599
+ Args: {
20600
+ p_order_id: string;
20601
+ };
20602
+ Returns: boolean;
20603
+ };
20604
+ logistics_plan_finish: {
20605
+ Args: {
20606
+ p_error?: string;
20607
+ p_id: string;
20608
+ };
20609
+ Returns: undefined;
20610
+ };
20611
+ logistics_plan_impact_orders: {
20612
+ Args: {
20613
+ p_order_id: string;
20614
+ };
20615
+ Returns: {
20616
+ buffer_id: string;
20617
+ order_id: string;
20618
+ plan_date: string;
20619
+ }[];
20620
+ };
20621
+ logistics_plan_kick: {
20622
+ Args: never;
20623
+ Returns: undefined;
20624
+ };
20625
+ logistics_plan_prune: {
20626
+ Args: never;
20627
+ Returns: number;
20628
+ };
20629
+ logistics_plan_release_stale: {
20630
+ Args: never;
20631
+ Returns: number;
20632
+ };
20633
+ logistics_plan_setting: {
20634
+ Args: {
20635
+ p_default: number;
20636
+ p_key: string;
20637
+ };
20638
+ Returns: number;
20639
+ };
18723
20640
  logistics_queue_capacity_email: {
18724
20641
  Args: {
18725
20642
  p_alert_id: string;
@@ -18958,6 +20875,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18958
20875
  };
18959
20876
  Returns: undefined;
18960
20877
  };
20878
+ my_module_permissions: {
20879
+ Args: never;
20880
+ Returns: {
20881
+ feature_id: string;
20882
+ module_id: string;
20883
+ permission: string;
20884
+ }[];
20885
+ };
18961
20886
  next_manufacture_partij: {
18962
20887
  Args: {
18963
20888
  _tenant_id: string;
@@ -19008,6 +20933,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19008
20933
  };
19009
20934
  Returns: boolean;
19010
20935
  };
20936
+ opruim_print_historie: {
20937
+ Args: never;
20938
+ Returns: {
20939
+ ontdaan: number;
20940
+ verwijderd: number;
20941
+ }[];
20942
+ };
19011
20943
  order_number_prefix: {
19012
20944
  Args: {
19013
20945
  p_custom_fields?: import("./types").Json;
@@ -19015,6 +20947,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19015
20947
  };
19016
20948
  Returns: string;
19017
20949
  };
20950
+ pick_active_printers: {
20951
+ Args: never;
20952
+ Returns: {
20953
+ id: string;
20954
+ locatie: string;
20955
+ naam: string;
20956
+ online: boolean;
20957
+ }[];
20958
+ };
19018
20959
  pick_claim_document: {
19019
20960
  Args: {
19020
20961
  _queue_item_id: string;
@@ -19201,6 +21142,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19201
21142
  };
19202
21143
  Returns: undefined;
19203
21144
  };
21145
+ pick_reset_print: {
21146
+ Args: {
21147
+ _queue_item_id: string;
21148
+ _session_id: string;
21149
+ };
21150
+ Returns: {
21151
+ announced_at: string;
21152
+ assigned_user_id: string | null;
21153
+ barcode: string | null;
21154
+ cancelled_at: string | null;
21155
+ cart_count: number;
21156
+ completed_at: string | null;
21157
+ country_code: string | null;
21158
+ created_at: string;
21159
+ customer_name: string | null;
21160
+ delivery_address: string | null;
21161
+ document_number: string | null;
21162
+ document_type_id: string | null;
21163
+ due_at: string | null;
21164
+ id: string;
21165
+ is_urgent: boolean;
21166
+ line_count: number;
21167
+ order_number: string | null;
21168
+ order_type: string | null;
21169
+ payload: import("./types").Json;
21170
+ print_count: number;
21171
+ print_job_id: string | null;
21172
+ printed_at: string | null;
21173
+ printed_by: string | null;
21174
+ printer_id: string | null;
21175
+ priority: number;
21176
+ reference: string | null;
21177
+ route: string | null;
21178
+ screen_id: string | null;
21179
+ station_id: string | null;
21180
+ status_id: string | null;
21181
+ updated_at: string;
21182
+ warnings: import("./types").Json;
21183
+ };
21184
+ SetofOptions: {
21185
+ from: "*";
21186
+ to: "pick_queue";
21187
+ isOneToOne: true;
21188
+ isSetofReturn: false;
21189
+ };
21190
+ };
19204
21191
  pick_station_dashboard: {
19205
21192
  Args: never;
19206
21193
  Returns: {
@@ -19347,6 +21334,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19347
21334
  };
19348
21335
  Returns: undefined;
19349
21336
  };
21337
+ reset_stalled_floriday_stock_queue: {
21338
+ Args: {
21339
+ p_include_failed?: boolean;
21340
+ };
21341
+ Returns: number;
21342
+ };
19350
21343
  resolve_group_allocation: {
19351
21344
  Args: {
19352
21345
  _needed: number;
@@ -19391,10 +21384,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19391
21384
  };
19392
21385
  Returns: import("./types").Json;
19393
21386
  };
21387
+ ruim_print_jobs_op: {
21388
+ Args: {
21389
+ _bewaar_dagen?: number;
21390
+ };
21391
+ Returns: number;
21392
+ };
19394
21393
  run_floriday_continuous_stock_sync: {
19395
21394
  Args: never;
19396
21395
  Returns: undefined;
19397
21396
  };
21397
+ run_floriday_stock_queue_process: {
21398
+ Args: never;
21399
+ Returns: undefined;
21400
+ };
21401
+ run_logistics_tasks_dispatch: {
21402
+ Args: never;
21403
+ Returns: undefined;
21404
+ };
21405
+ run_print_queue_ticks: {
21406
+ Args: never;
21407
+ Returns: number;
21408
+ };
19398
21409
  run_twinfield_queue_tick: {
19399
21410
  Args: never;
19400
21411
  Returns: undefined;
@@ -19635,6 +21646,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19635
21646
  };
19636
21647
  Returns: number;
19637
21648
  };
21649
+ schedule_floriday_stock_queue_process: {
21650
+ Args: {
21651
+ p_apikey: string;
21652
+ p_url: string;
21653
+ };
21654
+ Returns: number;
21655
+ };
19638
21656
  schedule_floriday_token_refresh: {
19639
21657
  Args: {
19640
21658
  p_apikey: string;
@@ -19741,6 +21759,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19741
21759
  };
19742
21760
  Returns: string[];
19743
21761
  };
21762
+ switch_time_log: {
21763
+ Args: {
21764
+ p_employee_id: string;
21765
+ p_start_lat?: number;
21766
+ p_start_lng?: number;
21767
+ p_type: string;
21768
+ p_work_order_id?: string;
21769
+ };
21770
+ Returns: import("./types").Json;
21771
+ };
19744
21772
  sync_all_layer_stocks: {
19745
21773
  Args: never;
19746
21774
  Returns: undefined;
@@ -19775,6 +21803,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19775
21803
  };
19776
21804
  Returns: undefined;
19777
21805
  };
21806
+ trade_item_stock_duplicates: {
21807
+ Args: never;
21808
+ Returns: {
21809
+ keys: string[];
21810
+ product_id: string;
21811
+ product_name: string;
21812
+ row_count: number;
21813
+ }[];
21814
+ };
19778
21815
  try_debtor_lock: {
19779
21816
  Args: {
19780
21817
  _group_key: string;
@@ -19782,6 +21819,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19782
21819
  };
19783
21820
  Returns: boolean;
19784
21821
  };
21822
+ twinfield_cron_lock_acquire: {
21823
+ Args: {
21824
+ _job_name: string;
21825
+ _stale_seconds?: number;
21826
+ };
21827
+ Returns: boolean;
21828
+ };
21829
+ twinfield_cron_lock_release: {
21830
+ Args: {
21831
+ _error?: string;
21832
+ _job_name: string;
21833
+ };
21834
+ Returns: undefined;
21835
+ };
21836
+ twinfield_prune_push_queue: {
21837
+ Args: never;
21838
+ Returns: number;
21839
+ };
19785
21840
  twinfield_register_cron: {
19786
21841
  Args: {
19787
21842
  apikey?: string;
@@ -19824,8 +21879,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19824
21879
  };
19825
21880
  Enums: {
19826
21881
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
19827
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
19828
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
21882
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21883
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
19829
21884
  doc_orientation: "portrait" | "landscape";
19830
21885
  exact_env: "staging" | "live";
19831
21886
  exact_push_status: "pending" | "sent" | "error";