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