@flowselections/scan-module 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-lib/components/ScanModulePage.d.ts.map +1 -1
  2. package/dist-lib/components/ScanModulePage.js +71 -16
  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 +2482 -311
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +2482 -311
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +2482 -311
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +2557 -366
  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/shellHost.functions.d.ts +3 -0
  27. package/dist-lib/lib/shellHost.functions.d.ts.map +1 -0
  28. package/dist-lib/lib/shellHost.functions.js +5 -0
  29. package/dist-lib/lib/shellHost.server.d.ts +12 -0
  30. package/dist-lib/lib/shellHost.server.d.ts.map +1 -0
  31. package/dist-lib/lib/shellHost.server.js +91 -0
  32. package/dist-lib/lib/veilingbonPrint.d.ts +43 -0
  33. package/dist-lib/lib/veilingbonPrint.d.ts.map +1 -0
  34. package/dist-lib/lib/veilingbonPrint.js +124 -0
  35. package/package.json +105 -103
@@ -872,6 +872,126 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
872
872
  };
873
873
  Relationships: [];
874
874
  };
875
+ cao_holidays: {
876
+ Row: {
877
+ created_at: string;
878
+ description: string | null;
879
+ holiday_date: string;
880
+ id: string;
881
+ updated_at: string;
882
+ };
883
+ Insert: {
884
+ created_at?: string;
885
+ description?: string | null;
886
+ holiday_date: string;
887
+ id?: string;
888
+ updated_at?: string;
889
+ };
890
+ Update: {
891
+ created_at?: string;
892
+ description?: string | null;
893
+ holiday_date?: string;
894
+ id?: string;
895
+ updated_at?: string;
896
+ };
897
+ Relationships: [];
898
+ };
899
+ cao_settings: {
900
+ Row: {
901
+ auto_break_after_hours: number;
902
+ auto_break_minutes: number;
903
+ auto_break_unpaid: boolean;
904
+ auto_stop_after_hours: number;
905
+ callout_fee: number;
906
+ created_at: string;
907
+ daily_regular_hours: number;
908
+ default_hourly_rate: number;
909
+ id: string;
910
+ materials_markup_percent: number;
911
+ max_daily_hours: number;
912
+ max_weekly_hours: number;
913
+ meal_allowance_amount: number;
914
+ overtime_pct_178: number;
915
+ overtime_pct_189: number;
916
+ overtime_pct_212: number;
917
+ reminder_after_hours: number;
918
+ standby_evening_amount: number;
919
+ standby_weekend_amount: number;
920
+ travel_cost_per_km: number | null;
921
+ travel_cost_threshold_km: number | null;
922
+ travel_counts_as_work: boolean;
923
+ travel_hourly_rate: number;
924
+ travel_rate_per_hour: number;
925
+ travel_threshold_minutes: number;
926
+ updated_at: string;
927
+ weekend_always_212: boolean;
928
+ window_end: string;
929
+ window_start: string;
930
+ };
931
+ Insert: {
932
+ auto_break_after_hours?: number;
933
+ auto_break_minutes?: number;
934
+ auto_break_unpaid?: boolean;
935
+ auto_stop_after_hours?: number;
936
+ callout_fee?: number;
937
+ created_at?: string;
938
+ daily_regular_hours?: number;
939
+ default_hourly_rate?: number;
940
+ id?: string;
941
+ materials_markup_percent?: number;
942
+ max_daily_hours?: number;
943
+ max_weekly_hours?: number;
944
+ meal_allowance_amount?: number;
945
+ overtime_pct_178?: number;
946
+ overtime_pct_189?: number;
947
+ overtime_pct_212?: number;
948
+ reminder_after_hours?: number;
949
+ standby_evening_amount?: number;
950
+ standby_weekend_amount?: number;
951
+ travel_cost_per_km?: number | null;
952
+ travel_cost_threshold_km?: number | null;
953
+ travel_counts_as_work?: boolean;
954
+ travel_hourly_rate?: number;
955
+ travel_rate_per_hour?: number;
956
+ travel_threshold_minutes?: number;
957
+ updated_at?: string;
958
+ weekend_always_212?: boolean;
959
+ window_end?: string;
960
+ window_start?: string;
961
+ };
962
+ Update: {
963
+ auto_break_after_hours?: number;
964
+ auto_break_minutes?: number;
965
+ auto_break_unpaid?: boolean;
966
+ auto_stop_after_hours?: number;
967
+ callout_fee?: number;
968
+ created_at?: string;
969
+ daily_regular_hours?: number;
970
+ default_hourly_rate?: number;
971
+ id?: string;
972
+ materials_markup_percent?: number;
973
+ max_daily_hours?: number;
974
+ max_weekly_hours?: number;
975
+ meal_allowance_amount?: number;
976
+ overtime_pct_178?: number;
977
+ overtime_pct_189?: number;
978
+ overtime_pct_212?: number;
979
+ reminder_after_hours?: number;
980
+ standby_evening_amount?: number;
981
+ standby_weekend_amount?: number;
982
+ travel_cost_per_km?: number | null;
983
+ travel_cost_threshold_km?: number | null;
984
+ travel_counts_as_work?: boolean;
985
+ travel_hourly_rate?: number;
986
+ travel_rate_per_hour?: number;
987
+ travel_threshold_minutes?: number;
988
+ updated_at?: string;
989
+ weekend_always_212?: boolean;
990
+ window_end?: string;
991
+ window_start?: string;
992
+ };
993
+ Relationships: [];
994
+ };
875
995
  carrier_shipping_rates: {
876
996
  Row: {
877
997
  carrier_id: string;
@@ -1684,7 +1804,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1684
1804
  city: string | null;
1685
1805
  country: string | null;
1686
1806
  created_at: string;
1687
- customer_id: string | null;
1807
+ customer_id: string;
1688
1808
  external_key: string | null;
1689
1809
  external_provider: string | null;
1690
1810
  floriday_location_id: string | null;
@@ -1708,7 +1828,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1708
1828
  city?: string | null;
1709
1829
  country?: string | null;
1710
1830
  created_at?: string;
1711
- customer_id?: string | null;
1831
+ customer_id: string;
1712
1832
  external_key?: string | null;
1713
1833
  external_provider?: string | null;
1714
1834
  floriday_location_id?: string | null;
@@ -1732,7 +1852,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1852
  city?: string | null;
1733
1853
  country?: string | null;
1734
1854
  created_at?: string;
1735
- customer_id?: string | null;
1855
+ customer_id?: string;
1736
1856
  external_key?: string | null;
1737
1857
  external_provider?: string | null;
1738
1858
  floriday_location_id?: string | null;
@@ -3536,153 +3656,588 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3536
3656
  referencedColumns: ["id"];
3537
3657
  }];
3538
3658
  };
3539
- exact_auth_divisions: {
3659
+ exact_auth_call_budget: {
3540
3660
  Row: {
3541
3661
  account_key: string;
3542
- company_name: string | null;
3662
+ day_count: number;
3663
+ day_date: string;
3664
+ division_code: number;
3665
+ environment: string;
3666
+ minute_count: number;
3667
+ minute_window: string;
3668
+ updated_at: string;
3669
+ };
3670
+ Insert: {
3671
+ account_key?: string;
3672
+ day_count?: number;
3673
+ day_date?: string;
3674
+ division_code?: number;
3675
+ environment: string;
3676
+ minute_count?: number;
3677
+ minute_window?: string;
3678
+ updated_at?: string;
3679
+ };
3680
+ Update: {
3681
+ account_key?: string;
3682
+ day_count?: number;
3683
+ day_date?: string;
3684
+ division_code?: number;
3685
+ environment?: string;
3686
+ minute_count?: number;
3687
+ minute_window?: string;
3688
+ updated_at?: string;
3689
+ };
3690
+ Relationships: [];
3691
+ };
3692
+ exact_auth_customers: {
3693
+ Row: {
3694
+ account_key: string;
3695
+ address_line1: string | null;
3696
+ chamber_of_commerce: string | null;
3697
+ city: string | null;
3698
+ code: string | null;
3699
+ country: string | null;
3543
3700
  created_at: string;
3701
+ currency: string | null;
3544
3702
  division_code: number | null;
3703
+ email: string | null;
3545
3704
  environment: Database["public"]["Enums"]["exact_env"];
3705
+ exact_id: string;
3706
+ exact_modified: string | null;
3707
+ exact_timestamp: number | null;
3546
3708
  id: string;
3547
- last_synced_at: string | null;
3709
+ is_active: boolean;
3710
+ name: string | null;
3711
+ phone: string | null;
3712
+ postcode: string | null;
3713
+ raw: import("./types").Json | null;
3714
+ status: string | null;
3548
3715
  updated_at: string;
3716
+ vat_number: string | null;
3717
+ website: string | null;
3549
3718
  };
3550
3719
  Insert: {
3551
3720
  account_key?: string;
3552
- company_name?: string | null;
3721
+ address_line1?: string | null;
3722
+ chamber_of_commerce?: string | null;
3723
+ city?: string | null;
3724
+ code?: string | null;
3725
+ country?: string | null;
3553
3726
  created_at?: string;
3727
+ currency?: string | null;
3554
3728
  division_code?: number | null;
3729
+ email?: string | null;
3555
3730
  environment: Database["public"]["Enums"]["exact_env"];
3731
+ exact_id: string;
3732
+ exact_modified?: string | null;
3733
+ exact_timestamp?: number | null;
3556
3734
  id?: string;
3557
- last_synced_at?: string | null;
3735
+ is_active?: boolean;
3736
+ name?: string | null;
3737
+ phone?: string | null;
3738
+ postcode?: string | null;
3739
+ raw?: import("./types").Json | null;
3740
+ status?: string | null;
3558
3741
  updated_at?: string;
3742
+ vat_number?: string | null;
3743
+ website?: string | null;
3559
3744
  };
3560
3745
  Update: {
3561
3746
  account_key?: string;
3562
- company_name?: string | null;
3747
+ address_line1?: string | null;
3748
+ chamber_of_commerce?: string | null;
3749
+ city?: string | null;
3750
+ code?: string | null;
3751
+ country?: string | null;
3563
3752
  created_at?: string;
3753
+ currency?: string | null;
3564
3754
  division_code?: number | null;
3755
+ email?: string | null;
3565
3756
  environment?: Database["public"]["Enums"]["exact_env"];
3757
+ exact_id?: string;
3758
+ exact_modified?: string | null;
3759
+ exact_timestamp?: number | null;
3566
3760
  id?: string;
3567
- last_synced_at?: string | null;
3761
+ is_active?: boolean;
3762
+ name?: string | null;
3763
+ phone?: string | null;
3764
+ postcode?: string | null;
3765
+ raw?: import("./types").Json | null;
3766
+ status?: string | null;
3568
3767
  updated_at?: string;
3768
+ vat_number?: string | null;
3769
+ website?: string | null;
3569
3770
  };
3570
3771
  Relationships: [];
3571
3772
  };
3572
- exact_bulk_operation_items: {
3773
+ exact_auth_divisions: {
3573
3774
  Row: {
3574
- attempts: number;
3575
- bulk_operation_id: string;
3775
+ account_key: string;
3776
+ company_name: string | null;
3576
3777
  created_at: string;
3577
- error_message: string | null;
3778
+ division_code: number | null;
3779
+ environment: Database["public"]["Enums"]["exact_env"];
3578
3780
  id: string;
3579
- invoice_cache_id: string | null;
3580
- invoice_exact_id: string | null;
3581
- processed_at: string | null;
3582
- result_data: import("./types").Json | null;
3583
- status: string;
3781
+ last_synced_at: string | null;
3782
+ updated_at: string;
3584
3783
  };
3585
3784
  Insert: {
3586
- attempts?: number;
3587
- bulk_operation_id: string;
3785
+ account_key?: string;
3786
+ company_name?: string | null;
3588
3787
  created_at?: string;
3589
- error_message?: string | null;
3788
+ division_code?: number | null;
3789
+ environment: Database["public"]["Enums"]["exact_env"];
3590
3790
  id?: string;
3591
- invoice_cache_id?: string | null;
3592
- invoice_exact_id?: string | null;
3593
- processed_at?: string | null;
3594
- result_data?: import("./types").Json | null;
3595
- status?: string;
3791
+ last_synced_at?: string | null;
3792
+ updated_at?: string;
3596
3793
  };
3597
3794
  Update: {
3598
- attempts?: number;
3599
- bulk_operation_id?: string;
3795
+ account_key?: string;
3796
+ company_name?: string | null;
3600
3797
  created_at?: string;
3601
- error_message?: string | null;
3798
+ division_code?: number | null;
3799
+ environment?: Database["public"]["Enums"]["exact_env"];
3602
3800
  id?: string;
3603
- invoice_cache_id?: string | null;
3604
- invoice_exact_id?: string | null;
3605
- processed_at?: string | null;
3606
- result_data?: import("./types").Json | null;
3607
- status?: string;
3801
+ last_synced_at?: string | null;
3802
+ updated_at?: string;
3608
3803
  };
3609
- Relationships: [{
3610
- foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
3611
- columns: ["bulk_operation_id"];
3612
- isOneToOne: false;
3613
- referencedRelation: "exact_bulk_operations";
3614
- referencedColumns: ["id"];
3615
- }, {
3616
- foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
3617
- columns: ["invoice_cache_id"];
3618
- isOneToOne: false;
3619
- referencedRelation: "exact_invoices_cache";
3620
- referencedColumns: ["id"];
3621
- }];
3804
+ Relationships: [];
3622
3805
  };
3623
- exact_bulk_operations: {
3806
+ exact_auth_invoice_lines: {
3624
3807
  Row: {
3625
- completed_at: string | null;
3626
- connection_id: string;
3808
+ account_key: string;
3809
+ amount_excl: number | null;
3627
3810
  created_at: string;
3628
- created_by: string | null;
3629
- error_message: string | null;
3630
- failed_count: number | null;
3811
+ description: string | null;
3812
+ discount: number | null;
3813
+ environment: Database["public"]["Enums"]["exact_env"];
3814
+ exact_id: string;
3815
+ exact_timestamp: number | null;
3631
3816
  id: string;
3632
- operation_type: string;
3633
- processed_count: number | null;
3634
- result_data: import("./types").Json | null;
3635
- started_at: string | null;
3636
- status: string;
3637
- total_count: number | null;
3817
+ invoice_exact_id: string;
3818
+ item_code: string | null;
3819
+ item_exact_id: string | null;
3820
+ line_number: number | null;
3821
+ quantity: number | null;
3822
+ raw: import("./types").Json | null;
3823
+ unit_price: number | null;
3638
3824
  updated_at: string;
3825
+ vat_amount: number | null;
3826
+ vat_code: string | null;
3639
3827
  };
3640
3828
  Insert: {
3641
- completed_at?: string | null;
3642
- connection_id: string;
3829
+ account_key?: string;
3830
+ amount_excl?: number | null;
3643
3831
  created_at?: string;
3644
- created_by?: string | null;
3645
- error_message?: string | null;
3646
- failed_count?: number | null;
3832
+ description?: string | null;
3833
+ discount?: number | null;
3834
+ environment: Database["public"]["Enums"]["exact_env"];
3835
+ exact_id: string;
3836
+ exact_timestamp?: number | null;
3647
3837
  id?: string;
3648
- operation_type: string;
3649
- processed_count?: number | null;
3650
- result_data?: import("./types").Json | null;
3651
- started_at?: string | null;
3652
- status?: string;
3653
- total_count?: number | null;
3838
+ invoice_exact_id: string;
3839
+ item_code?: string | null;
3840
+ item_exact_id?: string | null;
3841
+ line_number?: number | null;
3842
+ quantity?: number | null;
3843
+ raw?: import("./types").Json | null;
3844
+ unit_price?: number | null;
3654
3845
  updated_at?: string;
3846
+ vat_amount?: number | null;
3847
+ vat_code?: string | null;
3655
3848
  };
3656
3849
  Update: {
3657
- completed_at?: string | null;
3658
- connection_id?: string;
3850
+ account_key?: string;
3851
+ amount_excl?: number | null;
3659
3852
  created_at?: string;
3660
- created_by?: string | null;
3661
- error_message?: string | null;
3662
- failed_count?: number | null;
3853
+ description?: string | null;
3854
+ discount?: number | null;
3855
+ environment?: Database["public"]["Enums"]["exact_env"];
3856
+ exact_id?: string;
3857
+ exact_timestamp?: number | null;
3663
3858
  id?: string;
3664
- operation_type?: string;
3665
- processed_count?: number | null;
3666
- result_data?: import("./types").Json | null;
3667
- started_at?: string | null;
3668
- status?: string;
3669
- total_count?: number | null;
3859
+ invoice_exact_id?: string;
3860
+ item_code?: string | null;
3861
+ item_exact_id?: string | null;
3862
+ line_number?: number | null;
3863
+ quantity?: number | null;
3864
+ raw?: import("./types").Json | null;
3865
+ unit_price?: number | null;
3670
3866
  updated_at?: string;
3867
+ vat_amount?: number | null;
3868
+ vat_code?: string | null;
3671
3869
  };
3672
- Relationships: [{
3673
- foreignKeyName: "exact_bulk_operations_connection_id_fkey";
3674
- columns: ["connection_id"];
3675
- isOneToOne: false;
3676
- referencedRelation: "exact_connections";
3677
- referencedColumns: ["id"];
3678
- }];
3870
+ Relationships: [];
3679
3871
  };
3680
- exact_connections: {
3872
+ exact_auth_invoices: {
3681
3873
  Row: {
3682
- access_token_encrypted: string;
3683
- company_name: string | null;
3684
- connected_at: string;
3685
- connected_by: string | null;
3874
+ account_key: string;
3875
+ amount_excl: number | null;
3876
+ amount_incl: number | null;
3877
+ amount_open: number | null;
3878
+ created_at: string;
3879
+ currency: string | null;
3880
+ customer_code: string | null;
3881
+ customer_exact_id: string | null;
3882
+ customer_name: string | null;
3883
+ description: string | null;
3884
+ division_code: number | null;
3885
+ due_date: string | null;
3886
+ environment: Database["public"]["Enums"]["exact_env"];
3887
+ exact_id: string;
3888
+ exact_modified: string | null;
3889
+ exact_timestamp: number | null;
3890
+ id: string;
3891
+ invoice_date: string | null;
3892
+ invoice_number: string | null;
3893
+ order_number: string | null;
3894
+ paid_at: string | null;
3895
+ payment_status: string;
3896
+ raw: import("./types").Json | null;
3897
+ receivable_synced_at: string | null;
3898
+ status_code: number | null;
3899
+ updated_at: string;
3900
+ };
3901
+ Insert: {
3902
+ account_key?: string;
3903
+ amount_excl?: number | null;
3904
+ amount_incl?: number | null;
3905
+ amount_open?: number | null;
3906
+ created_at?: string;
3907
+ currency?: string | null;
3908
+ customer_code?: string | null;
3909
+ customer_exact_id?: string | null;
3910
+ customer_name?: string | null;
3911
+ description?: string | null;
3912
+ division_code?: number | null;
3913
+ due_date?: string | null;
3914
+ environment: Database["public"]["Enums"]["exact_env"];
3915
+ exact_id: string;
3916
+ exact_modified?: string | null;
3917
+ exact_timestamp?: number | null;
3918
+ id?: string;
3919
+ invoice_date?: string | null;
3920
+ invoice_number?: string | null;
3921
+ order_number?: string | null;
3922
+ paid_at?: string | null;
3923
+ payment_status?: string;
3924
+ raw?: import("./types").Json | null;
3925
+ receivable_synced_at?: string | null;
3926
+ status_code?: number | null;
3927
+ updated_at?: string;
3928
+ };
3929
+ Update: {
3930
+ account_key?: string;
3931
+ amount_excl?: number | null;
3932
+ amount_incl?: number | null;
3933
+ amount_open?: number | null;
3934
+ created_at?: string;
3935
+ currency?: string | null;
3936
+ customer_code?: string | null;
3937
+ customer_exact_id?: string | null;
3938
+ customer_name?: string | null;
3939
+ description?: string | null;
3940
+ division_code?: number | null;
3941
+ due_date?: string | null;
3942
+ environment?: Database["public"]["Enums"]["exact_env"];
3943
+ exact_id?: string;
3944
+ exact_modified?: string | null;
3945
+ exact_timestamp?: number | null;
3946
+ id?: string;
3947
+ invoice_date?: string | null;
3948
+ invoice_number?: string | null;
3949
+ order_number?: string | null;
3950
+ paid_at?: string | null;
3951
+ payment_status?: string;
3952
+ raw?: import("./types").Json | null;
3953
+ receivable_synced_at?: string | null;
3954
+ status_code?: number | null;
3955
+ updated_at?: string;
3956
+ };
3957
+ Relationships: [];
3958
+ };
3959
+ exact_auth_items: {
3960
+ Row: {
3961
+ account_key: string;
3962
+ barcode: string | null;
3963
+ code: string | null;
3964
+ cost_price: number | null;
3965
+ created_at: string;
3966
+ description: string | null;
3967
+ division_code: number | null;
3968
+ environment: Database["public"]["Enums"]["exact_env"];
3969
+ exact_id: string;
3970
+ exact_modified: string | null;
3971
+ exact_timestamp: number | null;
3972
+ gl_account_code: string | null;
3973
+ id: string;
3974
+ is_active: boolean;
3975
+ is_sales_item: boolean | null;
3976
+ item_type: string | null;
3977
+ raw: import("./types").Json | null;
3978
+ sales_price: number | null;
3979
+ unit: string | null;
3980
+ updated_at: string;
3981
+ vat_code: string | null;
3982
+ };
3983
+ Insert: {
3984
+ account_key?: string;
3985
+ barcode?: string | null;
3986
+ code?: string | null;
3987
+ cost_price?: number | null;
3988
+ created_at?: string;
3989
+ description?: string | null;
3990
+ division_code?: number | null;
3991
+ environment: Database["public"]["Enums"]["exact_env"];
3992
+ exact_id: string;
3993
+ exact_modified?: string | null;
3994
+ exact_timestamp?: number | null;
3995
+ gl_account_code?: string | null;
3996
+ id?: string;
3997
+ is_active?: boolean;
3998
+ is_sales_item?: boolean | null;
3999
+ item_type?: string | null;
4000
+ raw?: import("./types").Json | null;
4001
+ sales_price?: number | null;
4002
+ unit?: string | null;
4003
+ updated_at?: string;
4004
+ vat_code?: string | null;
4005
+ };
4006
+ Update: {
4007
+ account_key?: string;
4008
+ barcode?: string | null;
4009
+ code?: string | null;
4010
+ cost_price?: number | null;
4011
+ created_at?: string;
4012
+ description?: string | null;
4013
+ division_code?: number | null;
4014
+ environment?: Database["public"]["Enums"]["exact_env"];
4015
+ exact_id?: string;
4016
+ exact_modified?: string | null;
4017
+ exact_timestamp?: number | null;
4018
+ gl_account_code?: string | null;
4019
+ id?: string;
4020
+ is_active?: boolean;
4021
+ is_sales_item?: boolean | null;
4022
+ item_type?: string | null;
4023
+ raw?: import("./types").Json | null;
4024
+ sales_price?: number | null;
4025
+ unit?: string | null;
4026
+ updated_at?: string;
4027
+ vat_code?: string | null;
4028
+ };
4029
+ Relationships: [];
4030
+ };
4031
+ exact_auth_sync_log: {
4032
+ Row: {
4033
+ account_key: string;
4034
+ calls_used: number;
4035
+ created_at: string;
4036
+ domain: string;
4037
+ environment: Database["public"]["Enums"]["exact_env"];
4038
+ error: string | null;
4039
+ finished_at: string | null;
4040
+ id: string;
4041
+ ok: boolean;
4042
+ records: number;
4043
+ started_at: string;
4044
+ };
4045
+ Insert: {
4046
+ account_key?: string;
4047
+ calls_used?: number;
4048
+ created_at?: string;
4049
+ domain: string;
4050
+ environment: Database["public"]["Enums"]["exact_env"];
4051
+ error?: string | null;
4052
+ finished_at?: string | null;
4053
+ id?: string;
4054
+ ok?: boolean;
4055
+ records?: number;
4056
+ started_at?: string;
4057
+ };
4058
+ Update: {
4059
+ account_key?: string;
4060
+ calls_used?: number;
4061
+ created_at?: string;
4062
+ domain?: string;
4063
+ environment?: Database["public"]["Enums"]["exact_env"];
4064
+ error?: string | null;
4065
+ finished_at?: string | null;
4066
+ id?: string;
4067
+ ok?: boolean;
4068
+ records?: number;
4069
+ started_at?: string;
4070
+ };
4071
+ Relationships: [];
4072
+ };
4073
+ exact_auth_sync_state: {
4074
+ Row: {
4075
+ account_key: string;
4076
+ created_at: string;
4077
+ cursor_timestamp: number;
4078
+ division_code: number | null;
4079
+ domain: string;
4080
+ duration_ms: number | null;
4081
+ environment: Database["public"]["Enums"]["exact_env"];
4082
+ initial_sync_done: boolean;
4083
+ last_error: string | null;
4084
+ last_run_at: string | null;
4085
+ last_success_at: string | null;
4086
+ locked_at: string | null;
4087
+ needs_initial_sync: boolean;
4088
+ record_count: number;
4089
+ updated_at: string;
4090
+ };
4091
+ Insert: {
4092
+ account_key?: string;
4093
+ created_at?: string;
4094
+ cursor_timestamp?: number;
4095
+ division_code?: number | null;
4096
+ domain: string;
4097
+ duration_ms?: number | null;
4098
+ environment: Database["public"]["Enums"]["exact_env"];
4099
+ initial_sync_done?: boolean;
4100
+ last_error?: string | null;
4101
+ last_run_at?: string | null;
4102
+ last_success_at?: string | null;
4103
+ locked_at?: string | null;
4104
+ needs_initial_sync?: boolean;
4105
+ record_count?: number;
4106
+ updated_at?: string;
4107
+ };
4108
+ Update: {
4109
+ account_key?: string;
4110
+ created_at?: string;
4111
+ cursor_timestamp?: number;
4112
+ division_code?: number | null;
4113
+ domain?: string;
4114
+ duration_ms?: number | null;
4115
+ environment?: Database["public"]["Enums"]["exact_env"];
4116
+ initial_sync_done?: boolean;
4117
+ last_error?: string | null;
4118
+ last_run_at?: string | null;
4119
+ last_success_at?: string | null;
4120
+ locked_at?: string | null;
4121
+ needs_initial_sync?: boolean;
4122
+ record_count?: number;
4123
+ updated_at?: string;
4124
+ };
4125
+ Relationships: [];
4126
+ };
4127
+ exact_bulk_operation_items: {
4128
+ Row: {
4129
+ attempts: number;
4130
+ bulk_operation_id: string;
4131
+ created_at: string;
4132
+ error_message: string | null;
4133
+ id: string;
4134
+ invoice_cache_id: string | null;
4135
+ invoice_exact_id: string | null;
4136
+ processed_at: string | null;
4137
+ result_data: import("./types").Json | null;
4138
+ status: string;
4139
+ };
4140
+ Insert: {
4141
+ attempts?: number;
4142
+ bulk_operation_id: string;
4143
+ created_at?: string;
4144
+ error_message?: string | null;
4145
+ id?: string;
4146
+ invoice_cache_id?: string | null;
4147
+ invoice_exact_id?: string | null;
4148
+ processed_at?: string | null;
4149
+ result_data?: import("./types").Json | null;
4150
+ status?: string;
4151
+ };
4152
+ Update: {
4153
+ attempts?: number;
4154
+ bulk_operation_id?: string;
4155
+ created_at?: string;
4156
+ error_message?: string | null;
4157
+ id?: string;
4158
+ invoice_cache_id?: string | null;
4159
+ invoice_exact_id?: string | null;
4160
+ processed_at?: string | null;
4161
+ result_data?: import("./types").Json | null;
4162
+ status?: string;
4163
+ };
4164
+ Relationships: [{
4165
+ foreignKeyName: "exact_bulk_operation_items_bulk_operation_id_fkey";
4166
+ columns: ["bulk_operation_id"];
4167
+ isOneToOne: false;
4168
+ referencedRelation: "exact_bulk_operations";
4169
+ referencedColumns: ["id"];
4170
+ }, {
4171
+ foreignKeyName: "exact_bulk_operation_items_invoice_cache_id_fkey";
4172
+ columns: ["invoice_cache_id"];
4173
+ isOneToOne: false;
4174
+ referencedRelation: "exact_invoices_cache";
4175
+ referencedColumns: ["id"];
4176
+ }];
4177
+ };
4178
+ exact_bulk_operations: {
4179
+ Row: {
4180
+ completed_at: string | null;
4181
+ connection_id: string;
4182
+ created_at: string;
4183
+ created_by: string | null;
4184
+ error_message: string | null;
4185
+ failed_count: number | null;
4186
+ id: string;
4187
+ operation_type: string;
4188
+ processed_count: number | null;
4189
+ result_data: import("./types").Json | null;
4190
+ started_at: string | null;
4191
+ status: string;
4192
+ total_count: number | null;
4193
+ updated_at: string;
4194
+ };
4195
+ Insert: {
4196
+ completed_at?: string | null;
4197
+ connection_id: string;
4198
+ created_at?: string;
4199
+ created_by?: string | null;
4200
+ error_message?: string | null;
4201
+ failed_count?: number | null;
4202
+ id?: string;
4203
+ operation_type: string;
4204
+ processed_count?: number | null;
4205
+ result_data?: import("./types").Json | null;
4206
+ started_at?: string | null;
4207
+ status?: string;
4208
+ total_count?: number | null;
4209
+ updated_at?: string;
4210
+ };
4211
+ Update: {
4212
+ completed_at?: string | null;
4213
+ connection_id?: string;
4214
+ created_at?: string;
4215
+ created_by?: string | null;
4216
+ error_message?: string | null;
4217
+ failed_count?: number | null;
4218
+ id?: string;
4219
+ operation_type?: string;
4220
+ processed_count?: number | null;
4221
+ result_data?: import("./types").Json | null;
4222
+ started_at?: string | null;
4223
+ status?: string;
4224
+ total_count?: number | null;
4225
+ updated_at?: string;
4226
+ };
4227
+ Relationships: [{
4228
+ foreignKeyName: "exact_bulk_operations_connection_id_fkey";
4229
+ columns: ["connection_id"];
4230
+ isOneToOne: false;
4231
+ referencedRelation: "exact_connections";
4232
+ referencedColumns: ["id"];
4233
+ }];
4234
+ };
4235
+ exact_connections: {
4236
+ Row: {
4237
+ access_token_encrypted: string;
4238
+ company_name: string | null;
4239
+ connected_at: string;
4240
+ connected_by: string | null;
3686
4241
  division_code: number | null;
3687
4242
  environment: Database["public"]["Enums"]["exact_env"];
3688
4243
  expires_at: string;
@@ -5260,12 +5815,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5260
5815
  attempts: number;
5261
5816
  connection_id: string;
5262
5817
  created_at: string;
5818
+ desired_available: boolean | null;
5263
5819
  gateway_attempt_id: string | null;
5264
5820
  id: string;
5265
5821
  last_error: string | null;
5822
+ locked_at: string | null;
5823
+ locked_by: string | null;
5824
+ next_attempt_at: string;
5266
5825
  number_of_pieces: number;
5267
5826
  sent_at: string | null;
5268
5827
  status: string;
5828
+ superseded_by: string | null;
5269
5829
  trade_item_id: string;
5270
5830
  updated_at: string;
5271
5831
  user_id: string;
@@ -5274,12 +5834,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5274
5834
  attempts?: number;
5275
5835
  connection_id: string;
5276
5836
  created_at?: string;
5837
+ desired_available?: boolean | null;
5277
5838
  gateway_attempt_id?: string | null;
5278
5839
  id?: string;
5279
5840
  last_error?: string | null;
5841
+ locked_at?: string | null;
5842
+ locked_by?: string | null;
5843
+ next_attempt_at?: string;
5280
5844
  number_of_pieces?: number;
5281
5845
  sent_at?: string | null;
5282
5846
  status?: string;
5847
+ superseded_by?: string | null;
5283
5848
  trade_item_id: string;
5284
5849
  updated_at?: string;
5285
5850
  user_id: string;
@@ -5288,12 +5853,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5288
5853
  attempts?: number;
5289
5854
  connection_id?: string;
5290
5855
  created_at?: string;
5856
+ desired_available?: boolean | null;
5291
5857
  gateway_attempt_id?: string | null;
5292
5858
  id?: string;
5293
5859
  last_error?: string | null;
5860
+ locked_at?: string | null;
5861
+ locked_by?: string | null;
5862
+ next_attempt_at?: string;
5294
5863
  number_of_pieces?: number;
5295
5864
  sent_at?: string | null;
5296
5865
  status?: string;
5866
+ superseded_by?: string | null;
5297
5867
  trade_item_id?: string;
5298
5868
  updated_at?: string;
5299
5869
  user_id?: string;
@@ -6030,6 +6600,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6030
6600
  Row: {
6031
6601
  buyer_organization_id: string | null;
6032
6602
  connection_id: string;
6603
+ controlled_at: string | null;
6033
6604
  created_at: string;
6034
6605
  data: import("./types").Json;
6035
6606
  floriday_id: string;
@@ -6041,6 +6612,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6041
6612
  Insert: {
6042
6613
  buyer_organization_id?: string | null;
6043
6614
  connection_id: string;
6615
+ controlled_at?: string | null;
6044
6616
  created_at?: string;
6045
6617
  data: import("./types").Json;
6046
6618
  floriday_id: string;
@@ -6052,6 +6624,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6052
6624
  Update: {
6053
6625
  buyer_organization_id?: string | null;
6054
6626
  connection_id?: string;
6627
+ controlled_at?: string | null;
6055
6628
  created_at?: string;
6056
6629
  data?: import("./types").Json;
6057
6630
  floriday_id?: string;
@@ -6953,6 +7526,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6953
7526
  };
6954
7527
  Relationships: [];
6955
7528
  };
7529
+ invoice_timing_settings: {
7530
+ Row: {
7531
+ anchor: string;
7532
+ business_days_only: boolean;
7533
+ created_at: string;
7534
+ enabled: boolean;
7535
+ id: string;
7536
+ offset_days: number;
7537
+ pickup_anchor: string;
7538
+ pickup_business_days_only: boolean;
7539
+ pickup_offset_days: number;
7540
+ pickup_time_of_day: string;
7541
+ singleton: boolean;
7542
+ time_of_day: string;
7543
+ updated_at: string;
7544
+ };
7545
+ Insert: {
7546
+ anchor?: string;
7547
+ business_days_only?: boolean;
7548
+ created_at?: string;
7549
+ enabled?: boolean;
7550
+ id?: string;
7551
+ offset_days?: number;
7552
+ pickup_anchor?: string;
7553
+ pickup_business_days_only?: boolean;
7554
+ pickup_offset_days?: number;
7555
+ pickup_time_of_day?: string;
7556
+ singleton?: boolean;
7557
+ time_of_day?: string;
7558
+ updated_at?: string;
7559
+ };
7560
+ Update: {
7561
+ anchor?: string;
7562
+ business_days_only?: boolean;
7563
+ created_at?: string;
7564
+ enabled?: boolean;
7565
+ id?: string;
7566
+ offset_days?: number;
7567
+ pickup_anchor?: string;
7568
+ pickup_business_days_only?: boolean;
7569
+ pickup_offset_days?: number;
7570
+ pickup_time_of_day?: string;
7571
+ singleton?: boolean;
7572
+ time_of_day?: string;
7573
+ updated_at?: string;
7574
+ };
7575
+ Relationships: [];
7576
+ };
6956
7577
  itk_contact_persons: {
6957
7578
  Row: {
6958
7579
  created_at: string;
@@ -7018,135 +7639,378 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7018
7639
  value?: string | null;
7019
7640
  };
7020
7641
  Relationships: [{
7021
- foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
7022
- columns: ["customer_id"];
7023
- isOneToOne: false;
7024
- referencedRelation: "itk_customers";
7025
- referencedColumns: ["id"];
7026
- }, {
7027
- foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
7028
- columns: ["field_id"];
7642
+ foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
7643
+ columns: ["customer_id"];
7644
+ isOneToOne: false;
7645
+ referencedRelation: "itk_customers";
7646
+ referencedColumns: ["id"];
7647
+ }, {
7648
+ foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
7649
+ columns: ["field_id"];
7650
+ isOneToOne: false;
7651
+ referencedRelation: "itk_dynamic_fields";
7652
+ referencedColumns: ["id"];
7653
+ }];
7654
+ };
7655
+ itk_customer_notes: {
7656
+ Row: {
7657
+ body: string;
7658
+ created_at: string;
7659
+ created_by: string | null;
7660
+ customer_id: string;
7661
+ id: string;
7662
+ note_type: string;
7663
+ updated_at: string;
7664
+ };
7665
+ Insert: {
7666
+ body: string;
7667
+ created_at?: string;
7668
+ created_by?: string | null;
7669
+ customer_id: string;
7670
+ id?: string;
7671
+ note_type?: string;
7672
+ updated_at?: string;
7673
+ };
7674
+ Update: {
7675
+ body?: string;
7676
+ created_at?: string;
7677
+ created_by?: string | null;
7678
+ customer_id?: string;
7679
+ id?: string;
7680
+ note_type?: string;
7681
+ updated_at?: string;
7682
+ };
7683
+ Relationships: [{
7684
+ foreignKeyName: "itk_customer_notes_customer_id_fkey";
7685
+ columns: ["customer_id"];
7686
+ isOneToOne: false;
7687
+ referencedRelation: "itk_customers";
7688
+ referencedColumns: ["id"];
7689
+ }];
7690
+ };
7691
+ itk_customers: {
7692
+ Row: {
7693
+ billing_city: string | null;
7694
+ billing_postcode: string | null;
7695
+ billing_street: string | null;
7696
+ created_at: string;
7697
+ customer_number: string | null;
7698
+ general_email: string | null;
7699
+ general_phone: string | null;
7700
+ id: string;
7701
+ legacy_customer_id: string | null;
7702
+ name: string;
7703
+ segment: Database["public"]["Enums"]["itk_customer_segment"];
7704
+ updated_at: string;
7705
+ };
7706
+ Insert: {
7707
+ billing_city?: string | null;
7708
+ billing_postcode?: string | null;
7709
+ billing_street?: string | null;
7710
+ created_at?: string;
7711
+ customer_number?: string | null;
7712
+ general_email?: string | null;
7713
+ general_phone?: string | null;
7714
+ id?: string;
7715
+ legacy_customer_id?: string | null;
7716
+ name: string;
7717
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
7718
+ updated_at?: string;
7719
+ };
7720
+ Update: {
7721
+ billing_city?: string | null;
7722
+ billing_postcode?: string | null;
7723
+ billing_street?: string | null;
7724
+ created_at?: string;
7725
+ customer_number?: string | null;
7726
+ general_email?: string | null;
7727
+ general_phone?: string | null;
7728
+ id?: string;
7729
+ legacy_customer_id?: string | null;
7730
+ name?: string;
7731
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
7732
+ updated_at?: string;
7733
+ };
7734
+ Relationships: [{
7735
+ foreignKeyName: "itk_customers_legacy_customer_id_fkey";
7736
+ columns: ["legacy_customer_id"];
7737
+ isOneToOne: false;
7738
+ referencedRelation: "customers";
7739
+ referencedColumns: ["id"];
7740
+ }];
7741
+ };
7742
+ itk_dynamic_fields: {
7743
+ Row: {
7744
+ created_at: string;
7745
+ field_name: string;
7746
+ field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
7747
+ id: string;
7748
+ options: import("./types").Json;
7749
+ sort_order: number;
7750
+ updated_at: string;
7751
+ };
7752
+ Insert: {
7753
+ created_at?: string;
7754
+ field_name: string;
7755
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
7756
+ id?: string;
7757
+ options?: import("./types").Json;
7758
+ sort_order?: number;
7759
+ updated_at?: string;
7760
+ };
7761
+ Update: {
7762
+ created_at?: string;
7763
+ field_name?: string;
7764
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
7765
+ id?: string;
7766
+ options?: import("./types").Json;
7767
+ sort_order?: number;
7768
+ updated_at?: string;
7769
+ };
7770
+ Relationships: [];
7771
+ };
7772
+ itk_offerte_events: {
7773
+ Row: {
7774
+ created_at: string;
7775
+ event_type: string;
7776
+ id: string;
7777
+ metadata: import("./types").Json;
7778
+ offerte_id: string;
7779
+ omschrijving: string | null;
7780
+ user_id: string | null;
7781
+ };
7782
+ Insert: {
7783
+ created_at?: string;
7784
+ event_type: string;
7785
+ id?: string;
7786
+ metadata?: import("./types").Json;
7787
+ offerte_id: string;
7788
+ omschrijving?: string | null;
7789
+ user_id?: string | null;
7790
+ };
7791
+ Update: {
7792
+ created_at?: string;
7793
+ event_type?: string;
7794
+ id?: string;
7795
+ metadata?: import("./types").Json;
7796
+ offerte_id?: string;
7797
+ omschrijving?: string | null;
7798
+ user_id?: string | null;
7799
+ };
7800
+ Relationships: [{
7801
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7802
+ columns: ["offerte_id"];
7029
7803
  isOneToOne: false;
7030
- referencedRelation: "itk_dynamic_fields";
7804
+ referencedRelation: "itk_offertes";
7031
7805
  referencedColumns: ["id"];
7032
7806
  }];
7033
7807
  };
7034
- itk_customer_notes: {
7808
+ itk_offerte_regels: {
7035
7809
  Row: {
7036
- body: string;
7037
7810
  created_at: string;
7038
- created_by: string | null;
7039
- customer_id: string;
7040
7811
  id: string;
7041
- note_type: string;
7812
+ line_total_cents: number;
7813
+ offerte_id: string;
7814
+ omschrijving: string;
7815
+ package_id: string | null;
7816
+ quantity: number;
7817
+ sort_order: number;
7818
+ source: string;
7819
+ unit_price_cents: number;
7042
7820
  updated_at: string;
7043
7821
  };
7044
7822
  Insert: {
7045
- body: string;
7046
7823
  created_at?: string;
7047
- created_by?: string | null;
7048
- customer_id: string;
7049
7824
  id?: string;
7050
- note_type?: string;
7825
+ line_total_cents?: number;
7826
+ offerte_id: string;
7827
+ omschrijving?: string;
7828
+ package_id?: string | null;
7829
+ quantity?: number;
7830
+ sort_order?: number;
7831
+ source?: string;
7832
+ unit_price_cents?: number;
7051
7833
  updated_at?: string;
7052
7834
  };
7053
7835
  Update: {
7054
- body?: string;
7055
7836
  created_at?: string;
7056
- created_by?: string | null;
7057
- customer_id?: string;
7058
7837
  id?: string;
7059
- note_type?: string;
7838
+ line_total_cents?: number;
7839
+ offerte_id?: string;
7840
+ omschrijving?: string;
7841
+ package_id?: string | null;
7842
+ quantity?: number;
7843
+ sort_order?: number;
7844
+ source?: string;
7845
+ unit_price_cents?: number;
7060
7846
  updated_at?: string;
7061
7847
  };
7062
7848
  Relationships: [{
7063
- foreignKeyName: "itk_customer_notes_customer_id_fkey";
7064
- columns: ["customer_id"];
7849
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7850
+ columns: ["offerte_id"];
7065
7851
  isOneToOne: false;
7066
- referencedRelation: "itk_customers";
7852
+ referencedRelation: "itk_offertes";
7853
+ referencedColumns: ["id"];
7854
+ }, {
7855
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7856
+ columns: ["package_id"];
7857
+ isOneToOne: false;
7858
+ referencedRelation: "werkbon_packages";
7067
7859
  referencedColumns: ["id"];
7068
7860
  }];
7069
7861
  };
7070
- itk_customers: {
7862
+ itk_offerte_settings: {
7071
7863
  Row: {
7072
- billing_city: string | null;
7073
- billing_postcode: string | null;
7074
- billing_street: string | null;
7864
+ auto_convert_binnen_mandaat: boolean;
7075
7865
  created_at: string;
7076
- customer_number: string | null;
7077
- general_email: string | null;
7078
- general_phone: string | null;
7866
+ default_geldigheid_dagen: number;
7867
+ default_vat_rate: number;
7079
7868
  id: string;
7080
- legacy_customer_id: string | null;
7081
- name: string;
7082
- segment: Database["public"]["Enums"]["itk_customer_segment"];
7869
+ singleton: boolean;
7083
7870
  updated_at: string;
7084
7871
  };
7085
7872
  Insert: {
7086
- billing_city?: string | null;
7087
- billing_postcode?: string | null;
7088
- billing_street?: string | null;
7873
+ auto_convert_binnen_mandaat?: boolean;
7089
7874
  created_at?: string;
7090
- customer_number?: string | null;
7091
- general_email?: string | null;
7092
- general_phone?: string | null;
7875
+ default_geldigheid_dagen?: number;
7876
+ default_vat_rate?: number;
7093
7877
  id?: string;
7094
- legacy_customer_id?: string | null;
7095
- name: string;
7096
- segment?: Database["public"]["Enums"]["itk_customer_segment"];
7878
+ singleton?: boolean;
7097
7879
  updated_at?: string;
7098
7880
  };
7099
7881
  Update: {
7100
- billing_city?: string | null;
7101
- billing_postcode?: string | null;
7102
- billing_street?: string | null;
7882
+ auto_convert_binnen_mandaat?: boolean;
7103
7883
  created_at?: string;
7104
- customer_number?: string | null;
7105
- general_email?: string | null;
7106
- general_phone?: string | null;
7884
+ default_geldigheid_dagen?: number;
7885
+ default_vat_rate?: number;
7107
7886
  id?: string;
7108
- legacy_customer_id?: string | null;
7109
- name?: string;
7110
- segment?: Database["public"]["Enums"]["itk_customer_segment"];
7887
+ singleton?: boolean;
7111
7888
  updated_at?: string;
7112
7889
  };
7113
- Relationships: [{
7114
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
7115
- columns: ["legacy_customer_id"];
7116
- isOneToOne: false;
7117
- referencedRelation: "customers";
7118
- referencedColumns: ["id"];
7119
- }];
7890
+ Relationships: [];
7120
7891
  };
7121
- itk_dynamic_fields: {
7892
+ itk_offertes: {
7122
7893
  Row: {
7894
+ ai_generated: boolean;
7895
+ approved_at: string | null;
7896
+ binnen_mandaat: boolean;
7897
+ contact_id: string | null;
7898
+ converted_at: string | null;
7123
7899
  created_at: string;
7124
- field_name: string;
7125
- field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
7900
+ created_by: string | null;
7901
+ customer_id: string | null;
7902
+ follow_up_werkbon_id: string | null;
7126
7903
  id: string;
7127
- options: import("./types").Json;
7128
- sort_order: number;
7904
+ jaar: number;
7905
+ mandaat_restant_cents: number;
7906
+ notities: string | null;
7907
+ offerte_number: string | null;
7908
+ omschrijving: string;
7909
+ rejected_at: string | null;
7910
+ sent_at: string | null;
7911
+ status: string;
7912
+ subtotal_cents: number;
7913
+ total_cents: number;
7129
7914
  updated_at: string;
7915
+ valid_until: string | null;
7916
+ vat_cents: number;
7917
+ vat_rate: number;
7918
+ viewed_at: string | null;
7919
+ volgnummer: number | null;
7920
+ werkbon_id: string | null;
7921
+ work_location_id: string | null;
7130
7922
  };
7131
7923
  Insert: {
7924
+ ai_generated?: boolean;
7925
+ approved_at?: string | null;
7926
+ binnen_mandaat?: boolean;
7927
+ contact_id?: string | null;
7928
+ converted_at?: string | null;
7132
7929
  created_at?: string;
7133
- field_name: string;
7134
- field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
7930
+ created_by?: string | null;
7931
+ customer_id?: string | null;
7932
+ follow_up_werkbon_id?: string | null;
7135
7933
  id?: string;
7136
- options?: import("./types").Json;
7137
- sort_order?: number;
7934
+ jaar?: number;
7935
+ mandaat_restant_cents?: number;
7936
+ notities?: string | null;
7937
+ offerte_number?: string | null;
7938
+ omschrijving?: string;
7939
+ rejected_at?: string | null;
7940
+ sent_at?: string | null;
7941
+ status?: string;
7942
+ subtotal_cents?: number;
7943
+ total_cents?: number;
7138
7944
  updated_at?: string;
7945
+ valid_until?: string | null;
7946
+ vat_cents?: number;
7947
+ vat_rate?: number;
7948
+ viewed_at?: string | null;
7949
+ volgnummer?: number | null;
7950
+ werkbon_id?: string | null;
7951
+ work_location_id?: string | null;
7139
7952
  };
7140
7953
  Update: {
7954
+ ai_generated?: boolean;
7955
+ approved_at?: string | null;
7956
+ binnen_mandaat?: boolean;
7957
+ contact_id?: string | null;
7958
+ converted_at?: string | null;
7141
7959
  created_at?: string;
7142
- field_name?: string;
7143
- field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
7960
+ created_by?: string | null;
7961
+ customer_id?: string | null;
7962
+ follow_up_werkbon_id?: string | null;
7144
7963
  id?: string;
7145
- options?: import("./types").Json;
7146
- sort_order?: number;
7964
+ jaar?: number;
7965
+ mandaat_restant_cents?: number;
7966
+ notities?: string | null;
7967
+ offerte_number?: string | null;
7968
+ omschrijving?: string;
7969
+ rejected_at?: string | null;
7970
+ sent_at?: string | null;
7971
+ status?: string;
7972
+ subtotal_cents?: number;
7973
+ total_cents?: number;
7147
7974
  updated_at?: string;
7975
+ valid_until?: string | null;
7976
+ vat_cents?: number;
7977
+ vat_rate?: number;
7978
+ viewed_at?: string | null;
7979
+ volgnummer?: number | null;
7980
+ werkbon_id?: string | null;
7981
+ work_location_id?: string | null;
7148
7982
  };
7149
- Relationships: [];
7983
+ Relationships: [{
7984
+ foreignKeyName: "itk_offertes_contact_id_fkey";
7985
+ columns: ["contact_id"];
7986
+ isOneToOne: false;
7987
+ referencedRelation: "itk_contact_persons";
7988
+ referencedColumns: ["id"];
7989
+ }, {
7990
+ foreignKeyName: "itk_offertes_customer_id_fkey";
7991
+ columns: ["customer_id"];
7992
+ isOneToOne: false;
7993
+ referencedRelation: "itk_customers";
7994
+ referencedColumns: ["id"];
7995
+ }, {
7996
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
7997
+ columns: ["follow_up_werkbon_id"];
7998
+ isOneToOne: false;
7999
+ referencedRelation: "werkbonnen";
8000
+ referencedColumns: ["id"];
8001
+ }, {
8002
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8003
+ columns: ["werkbon_id"];
8004
+ isOneToOne: false;
8005
+ referencedRelation: "werkbonnen";
8006
+ referencedColumns: ["id"];
8007
+ }, {
8008
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8009
+ columns: ["work_location_id"];
8010
+ isOneToOne: false;
8011
+ referencedRelation: "itk_work_locations";
8012
+ referencedColumns: ["id"];
8013
+ }];
7150
8014
  };
7151
8015
  itk_work_locations: {
7152
8016
  Row: {
@@ -7265,7 +8129,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7265
8129
  start_date: string;
7266
8130
  start_time: string | null;
7267
8131
  status: string;
7268
- tenant_id: string;
7269
8132
  updated_at: string;
7270
8133
  user_id: string;
7271
8134
  };
@@ -7283,7 +8146,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7283
8146
  start_date: string;
7284
8147
  start_time?: string | null;
7285
8148
  status?: string;
7286
- tenant_id?: string;
7287
8149
  updated_at?: string;
7288
8150
  user_id: string;
7289
8151
  };
@@ -7301,7 +8163,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7301
8163
  start_date?: string;
7302
8164
  start_time?: string | null;
7303
8165
  status?: string;
7304
- tenant_id?: string;
7305
8166
  updated_at?: string;
7306
8167
  user_id?: string;
7307
8168
  };
@@ -7309,13 +8170,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7309
8170
  foreignKeyName: "leave_requests_monteur_id_fkey";
7310
8171
  columns: ["monteur_id"];
7311
8172
  isOneToOne: false;
7312
- referencedRelation: "monteurs";
8173
+ referencedRelation: "profiles";
7313
8174
  referencedColumns: ["id"];
7314
8175
  }, {
7315
8176
  foreignKeyName: "leave_requests_user_id_fkey";
7316
8177
  columns: ["user_id"];
7317
8178
  isOneToOne: false;
7318
- referencedRelation: "monteurs";
8179
+ referencedRelation: "profiles";
7319
8180
  referencedColumns: ["id"];
7320
8181
  }];
7321
8182
  };
@@ -8042,6 +8903,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8042
8903
  };
8043
8904
  Relationships: [];
8044
8905
  };
8906
+ logistics_floriday_pushes: {
8907
+ Row: {
8908
+ attempts: number;
8909
+ created_at: string;
8910
+ first_queued_at: string;
8911
+ fulfillment_order_id: string | null;
8912
+ id: string;
8913
+ last_error: string | null;
8914
+ last_error_at: string | null;
8915
+ last_sent_hash: string | null;
8916
+ locked_by: string | null;
8917
+ locked_until: string | null;
8918
+ next_attempt_at: string;
8919
+ order_ref: string;
8920
+ payload: import("./types").Json;
8921
+ payload_hash: string | null;
8922
+ revision: number;
8923
+ sent_at: string | null;
8924
+ status: string;
8925
+ updated_at: string;
8926
+ };
8927
+ Insert: {
8928
+ attempts?: number;
8929
+ created_at?: string;
8930
+ first_queued_at?: string;
8931
+ fulfillment_order_id?: string | null;
8932
+ id?: string;
8933
+ last_error?: string | null;
8934
+ last_error_at?: string | null;
8935
+ last_sent_hash?: string | null;
8936
+ locked_by?: string | null;
8937
+ locked_until?: string | null;
8938
+ next_attempt_at?: string;
8939
+ order_ref: string;
8940
+ payload?: import("./types").Json;
8941
+ payload_hash?: string | null;
8942
+ revision?: number;
8943
+ sent_at?: string | null;
8944
+ status?: string;
8945
+ updated_at?: string;
8946
+ };
8947
+ Update: {
8948
+ attempts?: number;
8949
+ created_at?: string;
8950
+ first_queued_at?: string;
8951
+ fulfillment_order_id?: string | null;
8952
+ id?: string;
8953
+ last_error?: string | null;
8954
+ last_error_at?: string | null;
8955
+ last_sent_hash?: string | null;
8956
+ locked_by?: string | null;
8957
+ locked_until?: string | null;
8958
+ next_attempt_at?: string;
8959
+ order_ref?: string;
8960
+ payload?: import("./types").Json;
8961
+ payload_hash?: string | null;
8962
+ revision?: number;
8963
+ sent_at?: string | null;
8964
+ status?: string;
8965
+ updated_at?: string;
8966
+ };
8967
+ Relationships: [];
8968
+ };
8045
8969
  logistics_formulas: {
8046
8970
  Row: {
8047
8971
  created_at: string;
@@ -8105,18 +9029,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8105
9029
  pickup_time: string;
8106
9030
  sequence?: number;
8107
9031
  updated_at?: string;
8108
- user_id?: string;
9032
+ user_id?: string;
9033
+ };
9034
+ Update: {
9035
+ carrier_ref?: string | null;
9036
+ created_at?: string;
9037
+ id?: string;
9038
+ label?: string | null;
9039
+ moment_date?: string;
9040
+ pickup_time?: string;
9041
+ sequence?: number;
9042
+ updated_at?: string;
9043
+ user_id?: string;
9044
+ };
9045
+ Relationships: [];
9046
+ };
9047
+ logistics_plan_queue: {
9048
+ Row: {
9049
+ attempts: number;
9050
+ claimed_at: string | null;
9051
+ enqueued_at: string;
9052
+ error: string | null;
9053
+ id: string;
9054
+ next_attempt_at: string;
9055
+ order_id: string;
9056
+ reason: string;
9057
+ status: string;
9058
+ updated_at: string;
9059
+ };
9060
+ Insert: {
9061
+ attempts?: number;
9062
+ claimed_at?: string | null;
9063
+ enqueued_at?: string;
9064
+ error?: string | null;
9065
+ id?: string;
9066
+ next_attempt_at?: string;
9067
+ order_id: string;
9068
+ reason?: string;
9069
+ status?: string;
9070
+ updated_at?: string;
8109
9071
  };
8110
9072
  Update: {
8111
- carrier_ref?: string | null;
8112
- created_at?: string;
9073
+ attempts?: number;
9074
+ claimed_at?: string | null;
9075
+ enqueued_at?: string;
9076
+ error?: string | null;
8113
9077
  id?: string;
8114
- label?: string | null;
8115
- moment_date?: string;
8116
- pickup_time?: string;
8117
- sequence?: number;
9078
+ next_attempt_at?: string;
9079
+ order_id?: string;
9080
+ reason?: string;
9081
+ status?: string;
8118
9082
  updated_at?: string;
8119
- user_id?: string;
8120
9083
  };
8121
9084
  Relationships: [];
8122
9085
  };
@@ -8195,6 +9158,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8195
9158
  referencedColumns: ["id"];
8196
9159
  }];
8197
9160
  };
9161
+ logistics_plan_settings: {
9162
+ Row: {
9163
+ key: string;
9164
+ updated_at: string;
9165
+ value: string;
9166
+ };
9167
+ Insert: {
9168
+ key: string;
9169
+ updated_at?: string;
9170
+ value: string;
9171
+ };
9172
+ Update: {
9173
+ key?: string;
9174
+ updated_at?: string;
9175
+ value?: string;
9176
+ };
9177
+ Relationships: [];
9178
+ };
8198
9179
  logistics_rebuffer_state: {
8199
9180
  Row: {
8200
9181
  created_at: string;
@@ -8653,6 +9634,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8653
9634
  };
8654
9635
  logistics_tasks: {
8655
9636
  Row: {
9637
+ attempt_log: import("./types").Json;
9638
+ attempts: number;
8656
9639
  buffer_ref: string | null;
8657
9640
  claimed_at: string | null;
8658
9641
  claimed_by: string | null;
@@ -8662,6 +9645,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8662
9645
  due_at: string | null;
8663
9646
  error: string | null;
8664
9647
  id: string;
9648
+ last_error: string | null;
9649
+ next_attempt_at: string | null;
8665
9650
  order_ref: string;
8666
9651
  owner_module: string;
8667
9652
  payload: import("./types").Json;
@@ -8682,6 +9667,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8682
9667
  user_id: string;
8683
9668
  };
8684
9669
  Insert: {
9670
+ attempt_log?: import("./types").Json;
9671
+ attempts?: number;
8685
9672
  buffer_ref?: string | null;
8686
9673
  claimed_at?: string | null;
8687
9674
  claimed_by?: string | null;
@@ -8691,6 +9678,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8691
9678
  due_at?: string | null;
8692
9679
  error?: string | null;
8693
9680
  id?: string;
9681
+ last_error?: string | null;
9682
+ next_attempt_at?: string | null;
8694
9683
  order_ref: string;
8695
9684
  owner_module: string;
8696
9685
  payload?: import("./types").Json;
@@ -8711,6 +9700,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8711
9700
  user_id?: string;
8712
9701
  };
8713
9702
  Update: {
9703
+ attempt_log?: import("./types").Json;
9704
+ attempts?: number;
8714
9705
  buffer_ref?: string | null;
8715
9706
  claimed_at?: string | null;
8716
9707
  claimed_by?: string | null;
@@ -8720,6 +9711,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8720
9711
  due_at?: string | null;
8721
9712
  error?: string | null;
8722
9713
  id?: string;
9714
+ last_error?: string | null;
9715
+ next_attempt_at?: string | null;
8723
9716
  order_ref?: string;
8724
9717
  owner_module?: string;
8725
9718
  payload?: import("./types").Json;
@@ -8893,14 +9886,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8893
9886
  };
8894
9887
  mailbox_messages: {
8895
9888
  Row: {
9889
+ attachments: import("./types").Json;
8896
9890
  body_html: string | null;
8897
9891
  body_text: string | null;
9892
+ cc_recipients: import("./types").Json;
8898
9893
  connection_id: string | null;
8899
9894
  created_at: string;
8900
9895
  error_message: string | null;
8901
9896
  external_id: string | null;
8902
9897
  from_email: string | null;
8903
9898
  from_name: string | null;
9899
+ has_attachments: boolean;
8904
9900
  id: string;
8905
9901
  message_id: string | null;
8906
9902
  profile_id: string | null;
@@ -8908,18 +9904,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8908
9904
  received_at: string | null;
8909
9905
  status: string;
8910
9906
  subject: string | null;
9907
+ to_recipients: import("./types").Json;
8911
9908
  uid: number | null;
8912
9909
  updated_at: string;
8913
9910
  };
8914
9911
  Insert: {
9912
+ attachments?: import("./types").Json;
8915
9913
  body_html?: string | null;
8916
9914
  body_text?: string | null;
9915
+ cc_recipients?: import("./types").Json;
8917
9916
  connection_id?: string | null;
8918
9917
  created_at?: string;
8919
9918
  error_message?: string | null;
8920
9919
  external_id?: string | null;
8921
9920
  from_email?: string | null;
8922
9921
  from_name?: string | null;
9922
+ has_attachments?: boolean;
8923
9923
  id?: string;
8924
9924
  message_id?: string | null;
8925
9925
  profile_id?: string | null;
@@ -8927,18 +9927,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8927
9927
  received_at?: string | null;
8928
9928
  status?: string;
8929
9929
  subject?: string | null;
9930
+ to_recipients?: import("./types").Json;
8930
9931
  uid?: number | null;
8931
9932
  updated_at?: string;
8932
9933
  };
8933
9934
  Update: {
9935
+ attachments?: import("./types").Json;
8934
9936
  body_html?: string | null;
8935
9937
  body_text?: string | null;
9938
+ cc_recipients?: import("./types").Json;
8936
9939
  connection_id?: string | null;
8937
9940
  created_at?: string;
8938
9941
  error_message?: string | null;
8939
9942
  external_id?: string | null;
8940
9943
  from_email?: string | null;
8941
9944
  from_name?: string | null;
9945
+ has_attachments?: boolean;
8942
9946
  id?: string;
8943
9947
  message_id?: string | null;
8944
9948
  profile_id?: string | null;
@@ -8946,6 +9950,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8946
9950
  received_at?: string | null;
8947
9951
  status?: string;
8948
9952
  subject?: string | null;
9953
+ to_recipients?: import("./types").Json;
8949
9954
  uid?: number | null;
8950
9955
  updated_at?: string;
8951
9956
  };
@@ -9326,6 +10331,147 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9326
10331
  };
9327
10332
  Relationships: [];
9328
10333
  };
10334
+ material_usage: {
10335
+ Row: {
10336
+ created_at: string;
10337
+ id: string;
10338
+ material_name: string;
10339
+ monteur_id: string | null;
10340
+ price_at_time: number;
10341
+ quantity_used: number;
10342
+ updated_at: string;
10343
+ van_inventory_id: string | null;
10344
+ work_order_id: string;
10345
+ };
10346
+ Insert: {
10347
+ created_at?: string;
10348
+ id?: string;
10349
+ material_name: string;
10350
+ monteur_id?: string | null;
10351
+ price_at_time?: number;
10352
+ quantity_used?: number;
10353
+ updated_at?: string;
10354
+ van_inventory_id?: string | null;
10355
+ work_order_id: string;
10356
+ };
10357
+ Update: {
10358
+ created_at?: string;
10359
+ id?: string;
10360
+ material_name?: string;
10361
+ monteur_id?: string | null;
10362
+ price_at_time?: number;
10363
+ quantity_used?: number;
10364
+ updated_at?: string;
10365
+ van_inventory_id?: string | null;
10366
+ work_order_id?: string;
10367
+ };
10368
+ Relationships: [{
10369
+ foreignKeyName: "material_usage_monteur_id_fkey";
10370
+ columns: ["monteur_id"];
10371
+ isOneToOne: false;
10372
+ referencedRelation: "profiles";
10373
+ referencedColumns: ["id"];
10374
+ }, {
10375
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10376
+ columns: ["van_inventory_id"];
10377
+ isOneToOne: false;
10378
+ referencedRelation: "van_inventories";
10379
+ referencedColumns: ["id"];
10380
+ }, {
10381
+ foreignKeyName: "material_usage_work_order_id_fkey";
10382
+ columns: ["work_order_id"];
10383
+ isOneToOne: false;
10384
+ referencedRelation: "work_orders";
10385
+ referencedColumns: ["id"];
10386
+ }];
10387
+ };
10388
+ medewerker_details: {
10389
+ Row: {
10390
+ color: string | null;
10391
+ created_at: string;
10392
+ hours_fri: number | null;
10393
+ hours_mon: number | null;
10394
+ hours_thu: number | null;
10395
+ hours_tue: number | null;
10396
+ hours_wed: number | null;
10397
+ id: string;
10398
+ is_active: boolean;
10399
+ leave_balance_hours: number;
10400
+ persnr: string | null;
10401
+ phone: string | null;
10402
+ profile_id: string;
10403
+ updated_at: string;
10404
+ };
10405
+ Insert: {
10406
+ color?: string | null;
10407
+ created_at?: string;
10408
+ hours_fri?: number | null;
10409
+ hours_mon?: number | null;
10410
+ hours_thu?: number | null;
10411
+ hours_tue?: number | null;
10412
+ hours_wed?: number | null;
10413
+ id?: string;
10414
+ is_active?: boolean;
10415
+ leave_balance_hours?: number;
10416
+ persnr?: string | null;
10417
+ phone?: string | null;
10418
+ profile_id: string;
10419
+ updated_at?: string;
10420
+ };
10421
+ Update: {
10422
+ color?: string | null;
10423
+ created_at?: string;
10424
+ hours_fri?: number | null;
10425
+ hours_mon?: number | null;
10426
+ hours_thu?: number | null;
10427
+ hours_tue?: number | null;
10428
+ hours_wed?: number | null;
10429
+ id?: string;
10430
+ is_active?: boolean;
10431
+ leave_balance_hours?: number;
10432
+ persnr?: string | null;
10433
+ phone?: string | null;
10434
+ profile_id?: string;
10435
+ updated_at?: string;
10436
+ };
10437
+ Relationships: [{
10438
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10439
+ columns: ["profile_id"];
10440
+ isOneToOne: true;
10441
+ referencedRelation: "profiles";
10442
+ referencedColumns: ["id"];
10443
+ }];
10444
+ };
10445
+ module_features: {
10446
+ Row: {
10447
+ created_at: string;
10448
+ feature_id: string;
10449
+ id: string;
10450
+ is_active: boolean;
10451
+ last_seen_at: string;
10452
+ module_id: string;
10453
+ name: string;
10454
+ };
10455
+ Insert: {
10456
+ created_at?: string;
10457
+ feature_id: string;
10458
+ id?: string;
10459
+ is_active?: boolean;
10460
+ last_seen_at?: string;
10461
+ module_id: string;
10462
+ name: string;
10463
+ };
10464
+ Update: {
10465
+ created_at?: string;
10466
+ feature_id?: string;
10467
+ id?: string;
10468
+ is_active?: boolean;
10469
+ last_seen_at?: string;
10470
+ module_id?: string;
10471
+ name?: string;
10472
+ };
10473
+ Relationships: [];
10474
+ };
9329
10475
  module_permissions: {
9330
10476
  Row: {
9331
10477
  created_at: string;
@@ -9353,6 +10499,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9353
10499
  };
9354
10500
  Relationships: [];
9355
10501
  };
10502
+ module_registry: {
10503
+ Row: {
10504
+ created_at: string;
10505
+ enforce: boolean;
10506
+ is_active: boolean;
10507
+ last_seen_at: string;
10508
+ module_id: string;
10509
+ name: string;
10510
+ shell_id: string | null;
10511
+ sort_order: number | null;
10512
+ };
10513
+ Insert: {
10514
+ created_at?: string;
10515
+ enforce?: boolean;
10516
+ is_active?: boolean;
10517
+ last_seen_at?: string;
10518
+ module_id: string;
10519
+ name: string;
10520
+ shell_id?: string | null;
10521
+ sort_order?: number | null;
10522
+ };
10523
+ Update: {
10524
+ created_at?: string;
10525
+ enforce?: boolean;
10526
+ is_active?: boolean;
10527
+ last_seen_at?: string;
10528
+ module_id?: string;
10529
+ name?: string;
10530
+ shell_id?: string | null;
10531
+ sort_order?: number | null;
10532
+ };
10533
+ Relationships: [];
10534
+ };
9356
10535
  module_runtime_config: {
9357
10536
  Row: {
9358
10537
  key: string;
@@ -9404,63 +10583,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9404
10583
  };
9405
10584
  Relationships: [];
9406
10585
  };
9407
- monteurs: {
9408
- Row: {
9409
- avatar_url: string | null;
9410
- color: string | null;
9411
- created_at: string;
9412
- email: string | null;
9413
- id: string;
9414
- is_active: boolean;
9415
- leave_balance_hours: number;
9416
- name: string;
9417
- persnr: number | null;
9418
- phone: string | null;
9419
- role: string;
9420
- tenant_id: string;
9421
- updated_at: string;
9422
- user_id: string | null;
9423
- };
9424
- Insert: {
9425
- avatar_url?: string | null;
9426
- color?: string | null;
9427
- created_at?: string;
9428
- email?: string | null;
9429
- id?: string;
9430
- is_active?: boolean;
9431
- leave_balance_hours?: number;
9432
- name: string;
9433
- persnr?: number | null;
9434
- phone?: string | null;
9435
- role?: string;
9436
- tenant_id: string;
9437
- updated_at?: string;
9438
- user_id?: string | null;
9439
- };
9440
- Update: {
9441
- avatar_url?: string | null;
9442
- color?: string | null;
9443
- created_at?: string;
9444
- email?: string | null;
9445
- id?: string;
9446
- is_active?: boolean;
9447
- leave_balance_hours?: number;
9448
- name?: string;
9449
- persnr?: number | null;
9450
- phone?: string | null;
9451
- role?: string;
9452
- tenant_id?: string;
9453
- updated_at?: string;
9454
- user_id?: string | null;
9455
- };
9456
- Relationships: [{
9457
- foreignKeyName: "monteurs_tenant_id_fkey";
9458
- columns: ["tenant_id"];
9459
- isOneToOne: false;
9460
- referencedRelation: "tenants";
9461
- referencedColumns: ["id"];
9462
- }];
9463
- };
9464
10586
  nmbrs_component_mapping: {
9465
10587
  Row: {
9466
10588
  created_at: string;
@@ -9531,13 +10653,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9531
10653
  nmbrs_employee_number?: string;
9532
10654
  updated_at?: string;
9533
10655
  };
9534
- Relationships: [{
9535
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9536
- columns: ["monteur_id"];
9537
- isOneToOne: true;
9538
- referencedRelation: "monteurs";
9539
- referencedColumns: ["id"];
9540
- }];
10656
+ Relationships: [];
9541
10657
  };
9542
10658
  nmbrs_export_lines: {
9543
10659
  Row: {
@@ -9586,12 +10702,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9586
10702
  wage_code?: string;
9587
10703
  };
9588
10704
  Relationships: [{
9589
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
9590
- columns: ["monteur_id"];
9591
- isOneToOne: false;
9592
- referencedRelation: "monteurs";
9593
- referencedColumns: ["id"];
9594
- }, {
9595
10705
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
9596
10706
  columns: ["run_id"];
9597
10707
  isOneToOne: false;
@@ -10069,6 +11179,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10069
11179
  };
10070
11180
  offer_settings: {
10071
11181
  Row: {
11182
+ brand_name: string | null;
10072
11183
  button_color: string;
10073
11184
  created_at: string;
10074
11185
  default_countries: string[];
@@ -10090,6 +11201,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10090
11201
  updated_at: string;
10091
11202
  };
10092
11203
  Insert: {
11204
+ brand_name?: string | null;
10093
11205
  button_color?: string;
10094
11206
  created_at?: string;
10095
11207
  default_countries?: string[];
@@ -10111,6 +11223,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10111
11223
  updated_at?: string;
10112
11224
  };
10113
11225
  Update: {
11226
+ brand_name?: string | null;
10114
11227
  button_color?: string;
10115
11228
  created_at?: string;
10116
11229
  default_countries?: string[];
@@ -10409,6 +11522,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10409
11522
  };
10410
11523
  Relationships: [];
10411
11524
  };
11525
+ order_invoice_links: {
11526
+ Row: {
11527
+ attempts: number;
11528
+ created_at: string;
11529
+ error_message: string | null;
11530
+ id: string;
11531
+ invoice_number: string | null;
11532
+ next_attempt_at: string;
11533
+ order_id: string;
11534
+ processed_at: string | null;
11535
+ status: string;
11536
+ updated_at: string;
11537
+ };
11538
+ Insert: {
11539
+ attempts?: number;
11540
+ created_at?: string;
11541
+ error_message?: string | null;
11542
+ id?: string;
11543
+ invoice_number?: string | null;
11544
+ next_attempt_at?: string;
11545
+ order_id: string;
11546
+ processed_at?: string | null;
11547
+ status?: string;
11548
+ updated_at?: string;
11549
+ };
11550
+ Update: {
11551
+ attempts?: number;
11552
+ created_at?: string;
11553
+ error_message?: string | null;
11554
+ id?: string;
11555
+ invoice_number?: string | null;
11556
+ next_attempt_at?: string;
11557
+ order_id?: string;
11558
+ processed_at?: string | null;
11559
+ status?: string;
11560
+ updated_at?: string;
11561
+ };
11562
+ Relationships: [];
11563
+ };
10412
11564
  order_items: {
10413
11565
  Row: {
10414
11566
  crates_per_layer: number | null;
@@ -10591,6 +11743,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10591
11743
  delivery_date: string | null;
10592
11744
  floriday_sales_order_id: string | null;
10593
11745
  id: string;
11746
+ invoice_due_at: string | null;
10594
11747
  is_reservation: boolean;
10595
11748
  notes: string | null;
10596
11749
  order_date: string;
@@ -10612,6 +11765,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10612
11765
  delivery_date?: string | null;
10613
11766
  floriday_sales_order_id?: string | null;
10614
11767
  id?: string;
11768
+ invoice_due_at?: string | null;
10615
11769
  is_reservation?: boolean;
10616
11770
  notes?: string | null;
10617
11771
  order_date?: string;
@@ -10633,6 +11787,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10633
11787
  delivery_date?: string | null;
10634
11788
  floriday_sales_order_id?: string | null;
10635
11789
  id?: string;
11790
+ invoice_due_at?: string | null;
10636
11791
  is_reservation?: boolean;
10637
11792
  notes?: string | null;
10638
11793
  order_date?: string;
@@ -11829,22 +12984,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11829
12984
  created_at: string;
11830
12985
  documentnaam: string;
11831
12986
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12987
+ extern_job_id: string | null;
11832
12988
  foutmelding: string | null;
11833
12989
  gebruiker_id: string | null;
11834
12990
  gebruiker_naam: string;
11835
12991
  gestart_op: string | null;
11836
12992
  id: string;
12993
+ idempotentie_sleutel: string | null;
11837
12994
  is_herprint: boolean;
11838
12995
  kopieen: number;
11839
12996
  layout_id: string | null;
11840
12997
  opgepakt_op: string | null;
11841
12998
  paginas: number;
11842
12999
  payload: import("./types").Json;
13000
+ pdf_base64: string | null;
13001
+ pdf_url: string | null;
11843
13002
  pogingen: number;
11844
13003
  printer_id: string | null;
11845
13004
  render_html: string | null;
11846
13005
  status: Database["public"]["Enums"]["print_job_status"];
11847
13006
  updated_at: string;
13007
+ volgende_poging: string | null;
11848
13008
  voltooid_op: string | null;
11849
13009
  };
11850
13010
  Insert: {
@@ -11853,22 +13013,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11853
13013
  created_at?: string;
11854
13014
  documentnaam?: string;
11855
13015
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
13016
+ extern_job_id?: string | null;
11856
13017
  foutmelding?: string | null;
11857
13018
  gebruiker_id?: string | null;
11858
13019
  gebruiker_naam?: string;
11859
13020
  gestart_op?: string | null;
11860
13021
  id?: string;
13022
+ idempotentie_sleutel?: string | null;
11861
13023
  is_herprint?: boolean;
11862
13024
  kopieen?: number;
11863
13025
  layout_id?: string | null;
11864
13026
  opgepakt_op?: string | null;
11865
13027
  paginas?: number;
11866
13028
  payload?: import("./types").Json;
13029
+ pdf_base64?: string | null;
13030
+ pdf_url?: string | null;
11867
13031
  pogingen?: number;
11868
13032
  printer_id?: string | null;
11869
13033
  render_html?: string | null;
11870
13034
  status?: Database["public"]["Enums"]["print_job_status"];
11871
13035
  updated_at?: string;
13036
+ volgende_poging?: string | null;
11872
13037
  voltooid_op?: string | null;
11873
13038
  };
11874
13039
  Update: {
@@ -11877,22 +13042,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11877
13042
  created_at?: string;
11878
13043
  documentnaam?: string;
11879
13044
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
13045
+ extern_job_id?: string | null;
11880
13046
  foutmelding?: string | null;
11881
13047
  gebruiker_id?: string | null;
11882
13048
  gebruiker_naam?: string;
11883
13049
  gestart_op?: string | null;
11884
13050
  id?: string;
13051
+ idempotentie_sleutel?: string | null;
11885
13052
  is_herprint?: boolean;
11886
13053
  kopieen?: number;
11887
13054
  layout_id?: string | null;
11888
13055
  opgepakt_op?: string | null;
11889
13056
  paginas?: number;
11890
13057
  payload?: import("./types").Json;
13058
+ pdf_base64?: string | null;
13059
+ pdf_url?: string | null;
11891
13060
  pogingen?: number;
11892
13061
  printer_id?: string | null;
11893
13062
  render_html?: string | null;
11894
13063
  status?: Database["public"]["Enums"]["print_job_status"];
11895
13064
  updated_at?: string;
13065
+ volgende_poging?: string | null;
11896
13066
  voltooid_op?: string | null;
11897
13067
  };
11898
13068
  Relationships: [{
@@ -11915,6 +13085,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11915
13085
  referencedColumns: ["id"];
11916
13086
  }];
11917
13087
  };
13088
+ print_queue_runners: {
13089
+ Row: {
13090
+ actief: boolean;
13091
+ basis_url: string;
13092
+ created_at: string;
13093
+ id: string;
13094
+ laatst_gezien: string;
13095
+ laatste_fout: string | null;
13096
+ laatste_request_id: number | null;
13097
+ mislukte_posts: number;
13098
+ tick_sleutel: string;
13099
+ updated_at: string;
13100
+ };
13101
+ Insert: {
13102
+ actief?: boolean;
13103
+ basis_url: string;
13104
+ created_at?: string;
13105
+ id?: string;
13106
+ laatst_gezien?: string;
13107
+ laatste_fout?: string | null;
13108
+ laatste_request_id?: number | null;
13109
+ mislukte_posts?: number;
13110
+ tick_sleutel?: string;
13111
+ updated_at?: string;
13112
+ };
13113
+ Update: {
13114
+ actief?: boolean;
13115
+ basis_url?: string;
13116
+ created_at?: string;
13117
+ id?: string;
13118
+ laatst_gezien?: string;
13119
+ laatste_fout?: string | null;
13120
+ laatste_request_id?: number | null;
13121
+ mislukte_posts?: number;
13122
+ tick_sleutel?: string;
13123
+ updated_at?: string;
13124
+ };
13125
+ Relationships: [];
13126
+ };
13127
+ print_queue_settings: {
13128
+ Row: {
13129
+ bewaar_bestanden_dagen: number;
13130
+ bewaar_opdrachten_dagen: number;
13131
+ created_at: string;
13132
+ dubbel_venster_minuten: number;
13133
+ id: string;
13134
+ updated_at: string;
13135
+ };
13136
+ Insert: {
13137
+ bewaar_bestanden_dagen?: number;
13138
+ bewaar_opdrachten_dagen?: number;
13139
+ created_at?: string;
13140
+ dubbel_venster_minuten?: number;
13141
+ id?: string;
13142
+ updated_at?: string;
13143
+ };
13144
+ Update: {
13145
+ bewaar_bestanden_dagen?: number;
13146
+ bewaar_opdrachten_dagen?: number;
13147
+ created_at?: string;
13148
+ dubbel_venster_minuten?: number;
13149
+ id?: string;
13150
+ updated_at?: string;
13151
+ };
13152
+ Relationships: [];
13153
+ };
11918
13154
  print_rules: {
11919
13155
  Row: {
11920
13156
  actief: boolean;
@@ -12075,6 +13311,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12075
13311
  agent_id: string | null;
12076
13312
  created_at: string;
12077
13313
  driver: string;
13314
+ extern_printer_id: string | null;
12078
13315
  id: string;
12079
13316
  ip_adres: string | null;
12080
13317
  laatst_gezien: string | null;
@@ -12096,6 +13333,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12096
13333
  agent_id?: string | null;
12097
13334
  created_at?: string;
12098
13335
  driver?: string;
13336
+ extern_printer_id?: string | null;
12099
13337
  id?: string;
12100
13338
  ip_adres?: string | null;
12101
13339
  laatst_gezien?: string | null;
@@ -12117,6 +13355,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12117
13355
  agent_id?: string | null;
12118
13356
  created_at?: string;
12119
13357
  driver?: string;
13358
+ extern_printer_id?: string | null;
12120
13359
  id?: string;
12121
13360
  ip_adres?: string | null;
12122
13361
  laatst_gezien?: string | null;
@@ -13388,6 +14627,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13388
14627
  referencedColumns: ["id"];
13389
14628
  }];
13390
14629
  };
14630
+ role_assignments: {
14631
+ Row: {
14632
+ created_at: string;
14633
+ id: string;
14634
+ role_id: string;
14635
+ user_id: string;
14636
+ };
14637
+ Insert: {
14638
+ created_at?: string;
14639
+ id?: string;
14640
+ role_id: string;
14641
+ user_id: string;
14642
+ };
14643
+ Update: {
14644
+ created_at?: string;
14645
+ id?: string;
14646
+ role_id?: string;
14647
+ user_id?: string;
14648
+ };
14649
+ Relationships: [{
14650
+ foreignKeyName: "role_assignments_role_id_fkey";
14651
+ columns: ["role_id"];
14652
+ isOneToOne: false;
14653
+ referencedRelation: "roles";
14654
+ referencedColumns: ["id"];
14655
+ }];
14656
+ };
14657
+ role_permissions: {
14658
+ Row: {
14659
+ can_edit: boolean;
14660
+ can_view: boolean;
14661
+ feature_id: string;
14662
+ id: string;
14663
+ module_id: string;
14664
+ role_id: string;
14665
+ updated_at: string;
14666
+ };
14667
+ Insert: {
14668
+ can_edit?: boolean;
14669
+ can_view?: boolean;
14670
+ feature_id?: string;
14671
+ id?: string;
14672
+ module_id: string;
14673
+ role_id: string;
14674
+ updated_at?: string;
14675
+ };
14676
+ Update: {
14677
+ can_edit?: boolean;
14678
+ can_view?: boolean;
14679
+ feature_id?: string;
14680
+ id?: string;
14681
+ module_id?: string;
14682
+ role_id?: string;
14683
+ updated_at?: string;
14684
+ };
14685
+ Relationships: [{
14686
+ foreignKeyName: "role_permissions_role_id_fkey";
14687
+ columns: ["role_id"];
14688
+ isOneToOne: false;
14689
+ referencedRelation: "roles";
14690
+ referencedColumns: ["id"];
14691
+ }];
14692
+ };
14693
+ roles: {
14694
+ Row: {
14695
+ created_at: string;
14696
+ id: string;
14697
+ is_protected: boolean;
14698
+ key: string;
14699
+ name: string;
14700
+ updated_at: string;
14701
+ };
14702
+ Insert: {
14703
+ created_at?: string;
14704
+ id?: string;
14705
+ is_protected?: boolean;
14706
+ key: string;
14707
+ name: string;
14708
+ updated_at?: string;
14709
+ };
14710
+ Update: {
14711
+ created_at?: string;
14712
+ id?: string;
14713
+ is_protected?: boolean;
14714
+ key?: string;
14715
+ name?: string;
14716
+ updated_at?: string;
14717
+ };
14718
+ Relationships: [];
14719
+ };
13391
14720
  rooms: {
13392
14721
  Row: {
13393
14722
  capacity: number;
@@ -13731,6 +15060,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13731
15060
  type: string;
13732
15061
  updated_at: string;
13733
15062
  vereist_medewerker: boolean;
15063
+ werkplek: string | null;
13734
15064
  };
13735
15065
  Insert: {
13736
15066
  actief?: boolean;
@@ -13744,6 +15074,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13744
15074
  type?: string;
13745
15075
  updated_at?: string;
13746
15076
  vereist_medewerker?: boolean;
15077
+ werkplek?: string | null;
13747
15078
  };
13748
15079
  Update: {
13749
15080
  actief?: boolean;
@@ -13757,9 +15088,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13757
15088
  type?: string;
13758
15089
  updated_at?: string;
13759
15090
  vereist_medewerker?: boolean;
15091
+ werkplek?: string | null;
13760
15092
  };
13761
15093
  Relationships: [];
13762
15094
  };
15095
+ sick_periods: {
15096
+ Row: {
15097
+ created_at: string;
15098
+ employee_id: string;
15099
+ end_date: string | null;
15100
+ id: string;
15101
+ notes: string | null;
15102
+ start_date: string;
15103
+ updated_at: string;
15104
+ };
15105
+ Insert: {
15106
+ created_at?: string;
15107
+ employee_id: string;
15108
+ end_date?: string | null;
15109
+ id?: string;
15110
+ notes?: string | null;
15111
+ start_date: string;
15112
+ updated_at?: string;
15113
+ };
15114
+ Update: {
15115
+ created_at?: string;
15116
+ employee_id?: string;
15117
+ end_date?: string | null;
15118
+ id?: string;
15119
+ notes?: string | null;
15120
+ start_date?: string;
15121
+ updated_at?: string;
15122
+ };
15123
+ Relationships: [{
15124
+ foreignKeyName: "sick_periods_employee_id_fkey";
15125
+ columns: ["employee_id"];
15126
+ isOneToOne: false;
15127
+ referencedRelation: "profiles";
15128
+ referencedColumns: ["id"];
15129
+ }];
15130
+ };
13763
15131
  sidebar_config: {
13764
15132
  Row: {
13765
15133
  id: string;
@@ -14057,6 +15425,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14057
15425
  };
14058
15426
  Relationships: [];
14059
15427
  };
15428
+ time_compensation_entries: {
15429
+ Row: {
15430
+ created_at: string;
15431
+ employee_id: string;
15432
+ entry_date: string;
15433
+ id: string;
15434
+ km: number;
15435
+ meal_allowance: number;
15436
+ notes: string | null;
15437
+ standby_evening: number;
15438
+ standby_weekend: number;
15439
+ tvt_change: number;
15440
+ updated_at: string;
15441
+ };
15442
+ Insert: {
15443
+ created_at?: string;
15444
+ employee_id: string;
15445
+ entry_date: string;
15446
+ id?: string;
15447
+ km?: number;
15448
+ meal_allowance?: number;
15449
+ notes?: string | null;
15450
+ standby_evening?: number;
15451
+ standby_weekend?: number;
15452
+ tvt_change?: number;
15453
+ updated_at?: string;
15454
+ };
15455
+ Update: {
15456
+ created_at?: string;
15457
+ employee_id?: string;
15458
+ entry_date?: string;
15459
+ id?: string;
15460
+ km?: number;
15461
+ meal_allowance?: number;
15462
+ notes?: string | null;
15463
+ standby_evening?: number;
15464
+ standby_weekend?: number;
15465
+ tvt_change?: number;
15466
+ updated_at?: string;
15467
+ };
15468
+ Relationships: [{
15469
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15470
+ columns: ["employee_id"];
15471
+ isOneToOne: false;
15472
+ referencedRelation: "profiles";
15473
+ referencedColumns: ["id"];
15474
+ }];
15475
+ };
14060
15476
  time_entries: {
14061
15477
  Row: {
14062
15478
  created_at: string;
@@ -14091,65 +15507,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14091
15507
  undertime?: number;
14092
15508
  updated_at?: string;
14093
15509
  };
15510
+ Relationships: [];
15511
+ };
15512
+ time_log_week_approvals: {
15513
+ Row: {
15514
+ approved_at: string | null;
15515
+ approved_by: string | null;
15516
+ created_at: string;
15517
+ employee_id: string;
15518
+ id: string;
15519
+ locked: boolean;
15520
+ notes: string | null;
15521
+ status: string;
15522
+ submitted_at: string | null;
15523
+ updated_at: string;
15524
+ week_start: string;
15525
+ };
15526
+ Insert: {
15527
+ approved_at?: string | null;
15528
+ approved_by?: string | null;
15529
+ created_at?: string;
15530
+ employee_id: string;
15531
+ id?: string;
15532
+ locked?: boolean;
15533
+ notes?: string | null;
15534
+ status?: string;
15535
+ submitted_at?: string | null;
15536
+ updated_at?: string;
15537
+ week_start: string;
15538
+ };
15539
+ Update: {
15540
+ approved_at?: string | null;
15541
+ approved_by?: string | null;
15542
+ created_at?: string;
15543
+ employee_id?: string;
15544
+ id?: string;
15545
+ locked?: boolean;
15546
+ notes?: string | null;
15547
+ status?: string;
15548
+ submitted_at?: string | null;
15549
+ updated_at?: string;
15550
+ week_start?: string;
15551
+ };
14094
15552
  Relationships: [{
14095
- foreignKeyName: "time_entries_employee_id_fkey";
15553
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14096
15554
  columns: ["employee_id"];
14097
15555
  isOneToOne: false;
14098
- referencedRelation: "monteurs";
15556
+ referencedRelation: "profiles";
14099
15557
  referencedColumns: ["id"];
14100
15558
  }];
14101
15559
  };
14102
15560
  time_logs: {
14103
15561
  Row: {
15562
+ auto_stop_reason: string | null;
15563
+ auto_stopped: boolean;
14104
15564
  created_at: string;
15565
+ current_latitude: number | null;
15566
+ current_longitude: number | null;
15567
+ current_position_updated_at: string | null;
14105
15568
  employee_id: string;
15569
+ end_latitude: number | null;
15570
+ end_longitude: number | null;
14106
15571
  end_time: string | null;
15572
+ eta_distance_km: number | null;
15573
+ eta_minutes: number | null;
15574
+ eta_updated_at: string | null;
15575
+ hour_category: string | null;
14107
15576
  id: string;
15577
+ last_reminder_at: string | null;
14108
15578
  notes: string | null;
14109
15579
  overtime_hours: number;
14110
15580
  overtime_type: string | null;
14111
15581
  regular_hours: number;
15582
+ reminder_count: number;
15583
+ requires_review: boolean;
15584
+ start_latitude: number | null;
15585
+ start_longitude: number | null;
14112
15586
  start_time: string;
14113
15587
  travel_cost: number | null;
14114
15588
  travel_distance_km: number | null;
15589
+ travel_duration_min: number | null;
15590
+ travel_time_minutes: number | null;
14115
15591
  type: string;
14116
15592
  updated_at: string;
15593
+ work_order_id: string | null;
14117
15594
  };
14118
15595
  Insert: {
15596
+ auto_stop_reason?: string | null;
15597
+ auto_stopped?: boolean;
14119
15598
  created_at?: string;
15599
+ current_latitude?: number | null;
15600
+ current_longitude?: number | null;
15601
+ current_position_updated_at?: string | null;
14120
15602
  employee_id: string;
15603
+ end_latitude?: number | null;
15604
+ end_longitude?: number | null;
14121
15605
  end_time?: string | null;
15606
+ eta_distance_km?: number | null;
15607
+ eta_minutes?: number | null;
15608
+ eta_updated_at?: string | null;
15609
+ hour_category?: string | null;
14122
15610
  id?: string;
15611
+ last_reminder_at?: string | null;
14123
15612
  notes?: string | null;
14124
15613
  overtime_hours?: number;
14125
15614
  overtime_type?: string | null;
14126
15615
  regular_hours?: number;
15616
+ reminder_count?: number;
15617
+ requires_review?: boolean;
15618
+ start_latitude?: number | null;
15619
+ start_longitude?: number | null;
14127
15620
  start_time?: string;
14128
15621
  travel_cost?: number | null;
14129
15622
  travel_distance_km?: number | null;
15623
+ travel_duration_min?: number | null;
15624
+ travel_time_minutes?: number | null;
14130
15625
  type: string;
14131
15626
  updated_at?: string;
15627
+ work_order_id?: string | null;
14132
15628
  };
14133
15629
  Update: {
15630
+ auto_stop_reason?: string | null;
15631
+ auto_stopped?: boolean;
14134
15632
  created_at?: string;
15633
+ current_latitude?: number | null;
15634
+ current_longitude?: number | null;
15635
+ current_position_updated_at?: string | null;
14135
15636
  employee_id?: string;
15637
+ end_latitude?: number | null;
15638
+ end_longitude?: number | null;
14136
15639
  end_time?: string | null;
15640
+ eta_distance_km?: number | null;
15641
+ eta_minutes?: number | null;
15642
+ eta_updated_at?: string | null;
15643
+ hour_category?: string | null;
14137
15644
  id?: string;
15645
+ last_reminder_at?: string | null;
14138
15646
  notes?: string | null;
14139
15647
  overtime_hours?: number;
14140
15648
  overtime_type?: string | null;
14141
15649
  regular_hours?: number;
15650
+ reminder_count?: number;
15651
+ requires_review?: boolean;
15652
+ start_latitude?: number | null;
15653
+ start_longitude?: number | null;
14142
15654
  start_time?: string;
14143
15655
  travel_cost?: number | null;
14144
15656
  travel_distance_km?: number | null;
15657
+ travel_duration_min?: number | null;
15658
+ travel_time_minutes?: number | null;
14145
15659
  type?: string;
14146
15660
  updated_at?: string;
15661
+ work_order_id?: string | null;
14147
15662
  };
14148
15663
  Relationships: [{
14149
15664
  foreignKeyName: "time_logs_employee_id_fkey";
14150
15665
  columns: ["employee_id"];
14151
15666
  isOneToOne: false;
14152
- referencedRelation: "monteurs";
15667
+ referencedRelation: "profiles";
15668
+ referencedColumns: ["id"];
15669
+ }, {
15670
+ foreignKeyName: "time_logs_work_order_id_fkey";
15671
+ columns: ["work_order_id"];
15672
+ isOneToOne: false;
15673
+ referencedRelation: "work_orders";
14153
15674
  referencedColumns: ["id"];
14154
15675
  }];
14155
15676
  };
@@ -14188,7 +15709,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14188
15709
  foreignKeyName: "time_off_entries_employee_id_fkey";
14189
15710
  columns: ["employee_id"];
14190
15711
  isOneToOne: false;
14191
- referencedRelation: "monteurs";
15712
+ referencedRelation: "profiles";
14192
15713
  referencedColumns: ["id"];
14193
15714
  }];
14194
15715
  };
@@ -14498,6 +16019,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14498
16019
  };
14499
16020
  Relationships: [];
14500
16021
  };
16022
+ twinfield_cron_locks: {
16023
+ Row: {
16024
+ created_at: string;
16025
+ heartbeat_at: string;
16026
+ job_name: string;
16027
+ last_error: string | null;
16028
+ last_finished_at: string | null;
16029
+ locked_at: string;
16030
+ run_id: string;
16031
+ updated_at: string;
16032
+ };
16033
+ Insert: {
16034
+ created_at?: string;
16035
+ heartbeat_at?: string;
16036
+ job_name: string;
16037
+ last_error?: string | null;
16038
+ last_finished_at?: string | null;
16039
+ locked_at?: string;
16040
+ run_id?: string;
16041
+ updated_at?: string;
16042
+ };
16043
+ Update: {
16044
+ created_at?: string;
16045
+ heartbeat_at?: string;
16046
+ job_name?: string;
16047
+ last_error?: string | null;
16048
+ last_finished_at?: string | null;
16049
+ locked_at?: string;
16050
+ run_id?: string;
16051
+ updated_at?: string;
16052
+ };
16053
+ Relationships: [];
16054
+ };
14501
16055
  twinfield_customers: {
14502
16056
  Row: {
14503
16057
  address: string | null;
@@ -14752,6 +16306,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14752
16306
  };
14753
16307
  twinfield_invoice_settings: {
14754
16308
  Row: {
16309
+ auto_invoice_enabled: boolean;
16310
+ auto_invoice_trigger_statuses: string[];
14755
16311
  created_at: string;
14756
16312
  debtor_gl_account: string;
14757
16313
  default_credit_invoice_type: string | null;
@@ -14772,6 +16328,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14772
16328
  vat_code_export: string | null;
14773
16329
  };
14774
16330
  Insert: {
16331
+ auto_invoice_enabled?: boolean;
16332
+ auto_invoice_trigger_statuses?: string[];
14775
16333
  created_at?: string;
14776
16334
  debtor_gl_account?: string;
14777
16335
  default_credit_invoice_type?: string | null;
@@ -14792,6 +16350,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14792
16350
  vat_code_export?: string | null;
14793
16351
  };
14794
16352
  Update: {
16353
+ auto_invoice_enabled?: boolean;
16354
+ auto_invoice_trigger_statuses?: string[];
14795
16355
  created_at?: string;
14796
16356
  debtor_gl_account?: string;
14797
16357
  default_credit_invoice_type?: string | null;
@@ -15092,6 +16652,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15092
16652
  twinfield_push_queue: {
15093
16653
  Row: {
15094
16654
  action: string;
16655
+ attempt_started_at: string | null;
15095
16656
  attempts: number;
15096
16657
  connection_id: string | null;
15097
16658
  created_at: string;
@@ -15108,6 +16669,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15108
16669
  };
15109
16670
  Insert: {
15110
16671
  action?: string;
16672
+ attempt_started_at?: string | null;
15111
16673
  attempts?: number;
15112
16674
  connection_id?: string | null;
15113
16675
  created_at?: string;
@@ -15124,6 +16686,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15124
16686
  };
15125
16687
  Update: {
15126
16688
  action?: string;
16689
+ attempt_started_at?: string | null;
15127
16690
  attempts?: number;
15128
16691
  connection_id?: string | null;
15129
16692
  created_at?: string;
@@ -15321,13 +16884,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15321
16884
  workday_end?: string | null;
15322
16885
  workday_start?: string | null;
15323
16886
  };
15324
- Relationships: [{
15325
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15326
- columns: ["monteur_id"];
15327
- isOneToOne: true;
15328
- referencedRelation: "monteurs";
15329
- referencedColumns: ["id"];
15330
- }];
16887
+ Relationships: [];
15331
16888
  };
15332
16889
  uren_entries: {
15333
16890
  Row: {
@@ -15371,14 +16928,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15371
16928
  travel_km?: number;
15372
16929
  updated_at?: string;
15373
16930
  werkbon_id?: string | null;
15374
- };
15375
- Relationships: [{
15376
- foreignKeyName: "uren_entries_monteur_id_fkey";
15377
- columns: ["monteur_id"];
15378
- isOneToOne: false;
15379
- referencedRelation: "monteurs";
15380
- referencedColumns: ["id"];
15381
- }, {
16931
+ };
16932
+ Relationships: [{
15382
16933
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15383
16934
  columns: ["werkbon_id"];
15384
16935
  isOneToOne: false;
@@ -15846,13 +17397,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15846
17397
  submitted_at?: string | null;
15847
17398
  updated_at?: string;
15848
17399
  };
15849
- Relationships: [{
15850
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
15851
- columns: ["monteur_id"];
15852
- isOneToOne: false;
15853
- referencedRelation: "monteurs";
15854
- referencedColumns: ["id"];
15855
- }];
17400
+ Relationships: [];
17401
+ };
17402
+ user_module_permissions: {
17403
+ Row: {
17404
+ created_at: string;
17405
+ feature_id: string;
17406
+ id: string;
17407
+ module_id: string;
17408
+ permission: string;
17409
+ updated_at: string;
17410
+ user_id: string;
17411
+ };
17412
+ Insert: {
17413
+ created_at?: string;
17414
+ feature_id?: string;
17415
+ id?: string;
17416
+ module_id: string;
17417
+ permission: string;
17418
+ updated_at?: string;
17419
+ user_id: string;
17420
+ };
17421
+ Update: {
17422
+ created_at?: string;
17423
+ feature_id?: string;
17424
+ id?: string;
17425
+ module_id?: string;
17426
+ permission?: string;
17427
+ updated_at?: string;
17428
+ user_id?: string;
17429
+ };
17430
+ Relationships: [];
15856
17431
  };
15857
17432
  user_roles: {
15858
17433
  Row: {
@@ -15881,6 +17456,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15881
17456
  referencedColumns: ["id"];
15882
17457
  }];
15883
17458
  };
17459
+ van_inventories: {
17460
+ Row: {
17461
+ barcode: string | null;
17462
+ created_at: string;
17463
+ id: string;
17464
+ monteur_id: string | null;
17465
+ price_per_unit: number;
17466
+ product_name: string;
17467
+ quantity_current: number;
17468
+ quantity_min: number;
17469
+ unit: string;
17470
+ updated_at: string;
17471
+ };
17472
+ Insert: {
17473
+ barcode?: string | null;
17474
+ created_at?: string;
17475
+ id?: string;
17476
+ monteur_id?: string | null;
17477
+ price_per_unit?: number;
17478
+ product_name: string;
17479
+ quantity_current?: number;
17480
+ quantity_min?: number;
17481
+ unit?: string;
17482
+ updated_at?: string;
17483
+ };
17484
+ Update: {
17485
+ barcode?: string | null;
17486
+ created_at?: string;
17487
+ id?: string;
17488
+ monteur_id?: string | null;
17489
+ price_per_unit?: number;
17490
+ product_name?: string;
17491
+ quantity_current?: number;
17492
+ quantity_min?: number;
17493
+ unit?: string;
17494
+ updated_at?: string;
17495
+ };
17496
+ Relationships: [{
17497
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17498
+ columns: ["monteur_id"];
17499
+ isOneToOne: false;
17500
+ referencedRelation: "profiles";
17501
+ referencedColumns: ["id"];
17502
+ }];
17503
+ };
15884
17504
  voorraad_custom_fields: {
15885
17505
  Row: {
15886
17506
  created_at: string;
@@ -16831,7 +18451,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16831
18451
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
16832
18452
  columns: ["monteur_id"];
16833
18453
  isOneToOne: false;
16834
- referencedRelation: "monteurs";
18454
+ referencedRelation: "profiles";
16835
18455
  referencedColumns: ["id"];
16836
18456
  }, {
16837
18457
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -16841,6 +18461,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16841
18461
  referencedColumns: ["id"];
16842
18462
  }];
16843
18463
  };
18464
+ work_order_photos: {
18465
+ Row: {
18466
+ ai_caption: string | null;
18467
+ ai_categorized_at: string | null;
18468
+ ai_labels: import("./types").Json | null;
18469
+ caption: string | null;
18470
+ created_at: string;
18471
+ id: string;
18472
+ monteur_id: string | null;
18473
+ photo_type: string;
18474
+ storage_path: string;
18475
+ updated_at: string;
18476
+ work_order_id: string;
18477
+ };
18478
+ Insert: {
18479
+ ai_caption?: string | null;
18480
+ ai_categorized_at?: string | null;
18481
+ ai_labels?: import("./types").Json | null;
18482
+ caption?: string | null;
18483
+ created_at?: string;
18484
+ id?: string;
18485
+ monteur_id?: string | null;
18486
+ photo_type?: string;
18487
+ storage_path: string;
18488
+ updated_at?: string;
18489
+ work_order_id: string;
18490
+ };
18491
+ Update: {
18492
+ ai_caption?: string | null;
18493
+ ai_categorized_at?: string | null;
18494
+ ai_labels?: import("./types").Json | null;
18495
+ caption?: string | null;
18496
+ created_at?: string;
18497
+ id?: string;
18498
+ monteur_id?: string | null;
18499
+ photo_type?: string;
18500
+ storage_path?: string;
18501
+ updated_at?: string;
18502
+ work_order_id?: string;
18503
+ };
18504
+ Relationships: [{
18505
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18506
+ columns: ["monteur_id"];
18507
+ isOneToOne: false;
18508
+ referencedRelation: "profiles";
18509
+ referencedColumns: ["id"];
18510
+ }, {
18511
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18512
+ columns: ["work_order_id"];
18513
+ isOneToOne: false;
18514
+ referencedRelation: "work_orders";
18515
+ referencedColumns: ["id"];
18516
+ }];
18517
+ };
16844
18518
  work_orders: {
16845
18519
  Row: {
16846
18520
  assigned_to: string | null;
@@ -16872,7 +18546,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16872
18546
  scheduled_end_time: string | null;
16873
18547
  scheduled_start_time: string | null;
16874
18548
  status: string;
16875
- tenant_id: string;
16876
18549
  total_hours_worked: number | null;
16877
18550
  total_price: number | null;
16878
18551
  travel_time_minutes: number | null;
@@ -16910,7 +18583,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16910
18583
  scheduled_end_time?: string | null;
16911
18584
  scheduled_start_time?: string | null;
16912
18585
  status?: string;
16913
- tenant_id: string;
16914
18586
  total_hours_worked?: number | null;
16915
18587
  total_price?: number | null;
16916
18588
  travel_time_minutes?: number | null;
@@ -16948,7 +18620,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16948
18620
  scheduled_end_time?: string | null;
16949
18621
  scheduled_start_time?: string | null;
16950
18622
  status?: string;
16951
- tenant_id?: string;
16952
18623
  total_hours_worked?: number | null;
16953
18624
  total_price?: number | null;
16954
18625
  travel_time_minutes?: number | null;
@@ -16962,12 +18633,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16962
18633
  isOneToOne: false;
16963
18634
  referencedRelation: "work_orders";
16964
18635
  referencedColumns: ["id"];
16965
- }, {
16966
- foreignKeyName: "work_orders_tenant_id_fkey";
16967
- columns: ["tenant_id"];
16968
- isOneToOne: false;
16969
- referencedRelation: "tenants";
16970
- referencedColumns: ["id"];
16971
18636
  }];
16972
18637
  };
16973
18638
  };
@@ -17652,6 +19317,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17652
19317
  };
17653
19318
  Returns: undefined;
17654
19319
  };
19320
+ approve_mailbox_order_proposal: {
19321
+ Args: {
19322
+ p_custom_fields: import("./types").Json;
19323
+ p_customer_id: string;
19324
+ p_delivery_date: string;
19325
+ p_field_values?: import("./types").Json;
19326
+ p_lines: import("./types").Json;
19327
+ p_notes: string;
19328
+ p_proposal_id: string;
19329
+ p_reviewed_by: string;
19330
+ };
19331
+ Returns: import("./types").Json;
19332
+ };
17655
19333
  assign_cart_numbers: {
17656
19334
  Args: {
17657
19335
  p_carts: import("./types").Json;
@@ -17687,6 +19365,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17687
19365
  processed_items: number;
17688
19366
  }[];
17689
19367
  };
19368
+ backfill_order_auto_invoice_queue: {
19369
+ Args: never;
19370
+ Returns: number;
19371
+ };
17690
19372
  calculate_layer_stock: {
17691
19373
  Args: {
17692
19374
  p_product_id: string;
@@ -17699,6 +19381,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17699
19381
  };
17700
19382
  Returns: number;
17701
19383
  };
19384
+ can_manage_hours: {
19385
+ Args: never;
19386
+ Returns: boolean;
19387
+ };
17702
19388
  check_offer_product_available_stock: {
17703
19389
  Args: {
17704
19390
  p_campaign_product_id: string;
@@ -17721,6 +19407,125 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17721
19407
  };
17722
19408
  Returns: import("./types").Json;
17723
19409
  };
19410
+ claim_cloud_print_jobs: {
19411
+ Args: {
19412
+ _max?: number;
19413
+ };
19414
+ Returns: {
19415
+ agent_id: string | null;
19416
+ bron_job_id: string | null;
19417
+ created_at: string;
19418
+ documentnaam: string;
19419
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19420
+ extern_job_id: string | null;
19421
+ foutmelding: string | null;
19422
+ gebruiker_id: string | null;
19423
+ gebruiker_naam: string;
19424
+ gestart_op: string | null;
19425
+ id: string;
19426
+ idempotentie_sleutel: string | null;
19427
+ is_herprint: boolean;
19428
+ kopieen: number;
19429
+ layout_id: string | null;
19430
+ opgepakt_op: string | null;
19431
+ paginas: number;
19432
+ payload: import("./types").Json;
19433
+ pdf_base64: string | null;
19434
+ pdf_url: string | null;
19435
+ pogingen: number;
19436
+ printer_id: string | null;
19437
+ render_html: string | null;
19438
+ status: Database["public"]["Enums"]["print_job_status"];
19439
+ updated_at: string;
19440
+ volgende_poging: string | null;
19441
+ voltooid_op: string | null;
19442
+ }[];
19443
+ SetofOptions: {
19444
+ from: "*";
19445
+ to: "print_jobs";
19446
+ isOneToOne: false;
19447
+ isSetofReturn: true;
19448
+ };
19449
+ };
19450
+ claim_floriday_stock_queue: {
19451
+ Args: {
19452
+ p_limit?: number;
19453
+ p_worker?: string;
19454
+ };
19455
+ Returns: {
19456
+ attempts: number;
19457
+ connection_id: string;
19458
+ created_at: string;
19459
+ desired_available: boolean | null;
19460
+ gateway_attempt_id: string | null;
19461
+ id: string;
19462
+ last_error: string | null;
19463
+ locked_at: string | null;
19464
+ locked_by: string | null;
19465
+ next_attempt_at: string;
19466
+ number_of_pieces: number;
19467
+ sent_at: string | null;
19468
+ status: string;
19469
+ superseded_by: string | null;
19470
+ trade_item_id: string;
19471
+ updated_at: string;
19472
+ user_id: string;
19473
+ }[];
19474
+ SetofOptions: {
19475
+ from: "*";
19476
+ to: "floriday_continuous_stock_queue";
19477
+ isOneToOne: false;
19478
+ isSetofReturn: true;
19479
+ };
19480
+ };
19481
+ claim_logistics_tasks: {
19482
+ Args: {
19483
+ _limit?: number;
19484
+ _owner_module: string;
19485
+ _stale_minutes?: number;
19486
+ _task_type: string;
19487
+ _worker: string;
19488
+ };
19489
+ Returns: {
19490
+ attempt_log: import("./types").Json;
19491
+ attempts: number;
19492
+ buffer_ref: string | null;
19493
+ claimed_at: string | null;
19494
+ claimed_by: string | null;
19495
+ completed_at: string | null;
19496
+ created_at: string;
19497
+ depends_on: string[];
19498
+ due_at: string | null;
19499
+ error: string | null;
19500
+ id: string;
19501
+ last_error: string | null;
19502
+ next_attempt_at: string | null;
19503
+ order_ref: string;
19504
+ owner_module: string;
19505
+ payload: import("./types").Json;
19506
+ plan_run_id: string | null;
19507
+ planned_end: string | null;
19508
+ planned_start: string | null;
19509
+ priority: number;
19510
+ result: import("./types").Json | null;
19511
+ rule_config_id: string | null;
19512
+ rule_version: number | null;
19513
+ sequence: number;
19514
+ shadow: boolean;
19515
+ started_at: string | null;
19516
+ status: string;
19517
+ strategy_id: string | null;
19518
+ task_type: string;
19519
+ updated_at: string;
19520
+ user_id: string;
19521
+ }[];
19522
+ SetofOptions: {
19523
+ from: "*";
19524
+ to: "logistics_tasks";
19525
+ isOneToOne: false;
19526
+ isSetofReturn: true;
19527
+ };
19528
+ };
17724
19529
  claim_print_jobs: {
17725
19530
  Args: {
17726
19531
  _agent_id: string;
@@ -17732,22 +19537,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17732
19537
  created_at: string;
17733
19538
  documentnaam: string;
17734
19539
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19540
+ extern_job_id: string | null;
17735
19541
  foutmelding: string | null;
17736
19542
  gebruiker_id: string | null;
17737
19543
  gebruiker_naam: string;
17738
19544
  gestart_op: string | null;
17739
19545
  id: string;
19546
+ idempotentie_sleutel: string | null;
17740
19547
  is_herprint: boolean;
17741
19548
  kopieen: number;
17742
19549
  layout_id: string | null;
17743
19550
  opgepakt_op: string | null;
17744
19551
  paginas: number;
17745
19552
  payload: import("./types").Json;
19553
+ pdf_base64: string | null;
19554
+ pdf_url: string | null;
17746
19555
  pogingen: number;
17747
19556
  printer_id: string | null;
17748
19557
  render_html: string | null;
17749
19558
  status: Database["public"]["Enums"]["print_job_status"];
17750
19559
  updated_at: string;
19560
+ volgende_poging: string | null;
17751
19561
  voltooid_op: string | null;
17752
19562
  }[];
17753
19563
  SetofOptions: {
@@ -17764,6 +19574,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17764
19574
  };
17765
19575
  Returns: {
17766
19576
  action: string;
19577
+ attempt_started_at: string | null;
17767
19578
  attempts: number;
17768
19579
  connection_id: string | null;
17769
19580
  created_at: string;
@@ -17785,10 +19596,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17785
19596
  isSetofReturn: true;
17786
19597
  };
17787
19598
  };
19599
+ cleanup_floriday_stock_queue: {
19600
+ Args: never;
19601
+ Returns: undefined;
19602
+ };
17788
19603
  cleanup_old_bookings: {
17789
19604
  Args: never;
17790
19605
  Returns: undefined;
17791
19606
  };
19607
+ cleanup_voorraad_module_history: {
19608
+ Args: never;
19609
+ Returns: undefined;
19610
+ };
19611
+ complete_floriday_stock_queue: {
19612
+ Args: {
19613
+ p_attempt_id?: string;
19614
+ p_error?: string;
19615
+ p_id: string;
19616
+ p_ok: boolean;
19617
+ p_permanent?: boolean;
19618
+ };
19619
+ Returns: undefined;
19620
+ };
17792
19621
  consume_bom_for_production: {
17793
19622
  Args: {
17794
19623
  p_connection_id: string;
@@ -17828,10 +19657,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17828
19657
  _pairing_hash: string;
17829
19658
  _token_hash: string;
17830
19659
  };
17831
- Returns: {
17832
- agent_id: string;
17833
- agent_naam: string;
17834
- }[];
19660
+ Returns: {
19661
+ agent_id: string;
19662
+ agent_naam: string;
19663
+ }[];
19664
+ };
19665
+ consume_van_inventory: {
19666
+ Args: {
19667
+ p_inventory_id: string;
19668
+ p_quantity: number;
19669
+ };
19670
+ Returns: {
19671
+ barcode: string | null;
19672
+ created_at: string;
19673
+ id: string;
19674
+ monteur_id: string | null;
19675
+ price_per_unit: number;
19676
+ product_name: string;
19677
+ quantity_current: number;
19678
+ quantity_min: number;
19679
+ unit: string;
19680
+ updated_at: string;
19681
+ };
19682
+ SetofOptions: {
19683
+ from: "*";
19684
+ to: "van_inventories";
19685
+ isOneToOne: true;
19686
+ isSetofReturn: false;
19687
+ };
17835
19688
  };
17836
19689
  control_get_todays_carts: {
17837
19690
  Args: never;
@@ -17900,6 +19753,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17900
19753
  };
17901
19754
  Returns: import("./types").Json;
17902
19755
  };
19756
+ effective_module_permission: {
19757
+ Args: {
19758
+ _module_id: string;
19759
+ _user_id: string;
19760
+ };
19761
+ Returns: string;
19762
+ } | {
19763
+ Args: {
19764
+ _feature_id: string;
19765
+ _module_id: string;
19766
+ _user_id: string;
19767
+ };
19768
+ Returns: string;
19769
+ };
17903
19770
  email_auth_decrypt: {
17904
19771
  Args: {
17905
19772
  cipher: string;
@@ -17945,6 +19812,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17945
19812
  };
17946
19813
  Returns: string;
17947
19814
  };
19815
+ employee_day_hours: {
19816
+ Args: {
19817
+ _day: string;
19818
+ _employee_id: string;
19819
+ };
19820
+ Returns: number;
19821
+ };
17948
19822
  enqueue_cart_replan_if_unlocked: {
17949
19823
  Args: {
17950
19824
  p_order_id: string;
@@ -17961,6 +19835,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17961
19835
  Args: never;
17962
19836
  Returns: string;
17963
19837
  };
19838
+ exact_auth_consume_calls: {
19839
+ Args: {
19840
+ _account_key: string;
19841
+ _calls?: number;
19842
+ _day_limit?: number;
19843
+ _division_code: number;
19844
+ _environment: string;
19845
+ _minute_limit?: number;
19846
+ };
19847
+ Returns: import("./types").Json;
19848
+ };
19849
+ exact_auth_prune_sync_log: {
19850
+ Args: never;
19851
+ Returns: undefined;
19852
+ };
17964
19853
  exact_decrypt: {
17965
19854
  Args: {
17966
19855
  cipher: string;
@@ -18170,6 +20059,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18170
20059
  };
18171
20060
  Returns: number;
18172
20061
  };
20062
+ get_offer_branding: {
20063
+ Args: never;
20064
+ Returns: import("./types").Json;
20065
+ };
18173
20066
  get_offer_by_link_code: {
18174
20067
  Args: {
18175
20068
  p_code: string;
@@ -18231,12 +20124,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18231
20124
  Args: never;
18232
20125
  Returns: string;
18233
20126
  };
18234
- get_work_order_tenant_id: {
18235
- Args: {
18236
- wo_id: string;
18237
- };
18238
- Returns: string;
18239
- };
18240
20127
  has_module_permission: {
18241
20128
  Args: {
18242
20129
  _min: string;
@@ -18270,6 +20157,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18270
20157
  };
18271
20158
  Returns: boolean;
18272
20159
  };
20160
+ is_time_log_week_locked: {
20161
+ Args: {
20162
+ p_employee_id: string;
20163
+ p_start_time: string;
20164
+ };
20165
+ Returns: boolean;
20166
+ };
18273
20167
  is_user_admin: {
18274
20168
  Args: never;
18275
20169
  Returns: boolean;
@@ -18278,19 +20172,43 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18278
20172
  Args: never;
18279
20173
  Returns: boolean;
18280
20174
  };
20175
+ itk_offerte_naar_werkbon: {
20176
+ Args: {
20177
+ _offerte_id: string;
20178
+ };
20179
+ Returns: string;
20180
+ };
20181
+ itk_offerte_restant_mandaat: {
20182
+ Args: {
20183
+ _exclude_offerte_id?: string;
20184
+ _werkbon_id: string;
20185
+ };
20186
+ Returns: number;
20187
+ };
18281
20188
  jwt_has_role: {
18282
20189
  Args: {
18283
20190
  _role: Database["public"]["Enums"]["app_role"];
18284
20191
  };
18285
20192
  Returns: boolean;
18286
20193
  };
18287
- list_monteurs: {
20194
+ list_medewerkers: {
18288
20195
  Args: never;
18289
20196
  Returns: {
18290
20197
  avatar_url: string;
20198
+ color: string;
18291
20199
  display_name: string;
18292
20200
  email: string;
20201
+ hours_fri: number;
20202
+ hours_mon: number;
20203
+ hours_thu: number;
20204
+ hours_tue: number;
20205
+ hours_wed: number;
18293
20206
  id: string;
20207
+ is_active: boolean;
20208
+ leave_balance_hours: number;
20209
+ persnr: string;
20210
+ phone: string;
20211
+ roles: string[];
18294
20212
  }[];
18295
20213
  };
18296
20214
  list_my_planning_items: {
@@ -18461,6 +20379,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18461
20379
  p_worker?: string;
18462
20380
  };
18463
20381
  Returns: {
20382
+ attempt_log: import("./types").Json;
20383
+ attempts: number;
18464
20384
  buffer_ref: string | null;
18465
20385
  claimed_at: string | null;
18466
20386
  claimed_by: string | null;
@@ -18470,6 +20390,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18470
20390
  due_at: string | null;
18471
20391
  error: string | null;
18472
20392
  id: string;
20393
+ last_error: string | null;
20394
+ next_attempt_at: string | null;
18473
20395
  order_ref: string;
18474
20396
  owner_module: string;
18475
20397
  payload: import("./types").Json;
@@ -18502,6 +20424,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18502
20424
  p_worker?: string;
18503
20425
  };
18504
20426
  Returns: {
20427
+ attempt_log: import("./types").Json;
20428
+ attempts: number;
18505
20429
  buffer_ref: string | null;
18506
20430
  claimed_at: string | null;
18507
20431
  claimed_by: string | null;
@@ -18511,6 +20435,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18511
20435
  due_at: string | null;
18512
20436
  error: string | null;
18513
20437
  id: string;
20438
+ last_error: string | null;
20439
+ next_attempt_at: string | null;
18514
20440
  order_ref: string;
18515
20441
  owner_module: string;
18516
20442
  payload: import("./types").Json;
@@ -18543,6 +20469,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18543
20469
  p_task_id: string;
18544
20470
  };
18545
20471
  Returns: {
20472
+ attempt_log: import("./types").Json;
20473
+ attempts: number;
18546
20474
  buffer_ref: string | null;
18547
20475
  claimed_at: string | null;
18548
20476
  claimed_by: string | null;
@@ -18552,6 +20480,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18552
20480
  due_at: string | null;
18553
20481
  error: string | null;
18554
20482
  id: string;
20483
+ last_error: string | null;
20484
+ next_attempt_at: string | null;
18555
20485
  order_ref: string;
18556
20486
  owner_module: string;
18557
20487
  payload: import("./types").Json;
@@ -18604,17 +20534,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18604
20534
  Returns: string;
18605
20535
  };
18606
20536
  logistics_emit_event: {
18607
- Args: {
18608
- p_event_type: string;
18609
- p_idempotency_key?: string;
18610
- p_order_ref: string;
18611
- p_payload?: import("./types").Json;
18612
- p_shadow?: boolean;
18613
- p_source_module: string;
18614
- p_strategy_id?: string;
18615
- };
18616
- Returns: import("./types").Json;
18617
- } | {
18618
20537
  Args: {
18619
20538
  p_event_type: string;
18620
20539
  p_idempotency_key?: string;
@@ -18633,6 +20552,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18633
20552
  p_task_id: string;
18634
20553
  };
18635
20554
  Returns: {
20555
+ attempt_log: import("./types").Json;
20556
+ attempts: number;
18636
20557
  buffer_ref: string | null;
18637
20558
  claimed_at: string | null;
18638
20559
  claimed_by: string | null;
@@ -18642,6 +20563,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18642
20563
  due_at: string | null;
18643
20564
  error: string | null;
18644
20565
  id: string;
20566
+ last_error: string | null;
20567
+ next_attempt_at: string | null;
18645
20568
  order_ref: string;
18646
20569
  owner_module: string;
18647
20570
  payload: import("./types").Json;
@@ -18668,6 +20591,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18668
20591
  isSetofReturn: false;
18669
20592
  };
18670
20593
  };
20594
+ logistics_floriday_claim_pushes: {
20595
+ Args: {
20596
+ _lease_seconds?: number;
20597
+ _limit?: number;
20598
+ _worker?: string;
20599
+ };
20600
+ Returns: {
20601
+ attempts: number;
20602
+ fulfillment_order_id: string;
20603
+ id: string;
20604
+ last_sent_hash: string;
20605
+ order_ref: string;
20606
+ payload: import("./types").Json;
20607
+ payload_hash: string;
20608
+ revision: number;
20609
+ }[];
20610
+ };
20611
+ logistics_floriday_finish_push: {
20612
+ Args: {
20613
+ _error?: string;
20614
+ _fulfillment_order_id?: string;
20615
+ _id: string;
20616
+ _max_age_hours?: number;
20617
+ _max_attempts?: number;
20618
+ _ok: boolean;
20619
+ _permanent?: boolean;
20620
+ _revision: number;
20621
+ _sent_hash?: string;
20622
+ };
20623
+ Returns: string;
20624
+ };
20625
+ logistics_floriday_prune_pushes: {
20626
+ Args: {
20627
+ _days?: number;
20628
+ };
20629
+ Returns: number;
20630
+ };
20631
+ logistics_floriday_queue_push: {
20632
+ Args: {
20633
+ _order_ref: string;
20634
+ _payload?: import("./types").Json;
20635
+ _payload_hash?: string;
20636
+ };
20637
+ Returns: string;
20638
+ };
18671
20639
  logistics_live_carriers: {
18672
20640
  Args: {
18673
20641
  p_order_ref: string;
@@ -18720,6 +20688,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
20688
  };
18721
20689
  Returns: number;
18722
20690
  };
20691
+ logistics_plan_claim: {
20692
+ Args: {
20693
+ p_limit?: number;
20694
+ };
20695
+ Returns: {
20696
+ attempts: number;
20697
+ id: string;
20698
+ order_id: string;
20699
+ }[];
20700
+ };
20701
+ logistics_plan_enqueue: {
20702
+ Args: {
20703
+ p_order_id: string;
20704
+ p_reason?: string;
20705
+ };
20706
+ Returns: undefined;
20707
+ };
20708
+ logistics_plan_ensure_event: {
20709
+ Args: {
20710
+ p_order_id: string;
20711
+ };
20712
+ Returns: boolean;
20713
+ };
20714
+ logistics_plan_finish: {
20715
+ Args: {
20716
+ p_error?: string;
20717
+ p_id: string;
20718
+ };
20719
+ Returns: undefined;
20720
+ };
20721
+ logistics_plan_impact_orders: {
20722
+ Args: {
20723
+ p_order_id: string;
20724
+ };
20725
+ Returns: {
20726
+ buffer_id: string;
20727
+ order_id: string;
20728
+ plan_date: string;
20729
+ }[];
20730
+ };
20731
+ logistics_plan_kick: {
20732
+ Args: never;
20733
+ Returns: undefined;
20734
+ };
20735
+ logistics_plan_prune: {
20736
+ Args: never;
20737
+ Returns: number;
20738
+ };
20739
+ logistics_plan_release_stale: {
20740
+ Args: never;
20741
+ Returns: number;
20742
+ };
20743
+ logistics_plan_setting: {
20744
+ Args: {
20745
+ p_default: number;
20746
+ p_key: string;
20747
+ };
20748
+ Returns: number;
20749
+ };
18723
20750
  logistics_queue_capacity_email: {
18724
20751
  Args: {
18725
20752
  p_alert_id: string;
@@ -18958,6 +20985,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18958
20985
  };
18959
20986
  Returns: undefined;
18960
20987
  };
20988
+ my_module_permissions: {
20989
+ Args: never;
20990
+ Returns: {
20991
+ feature_id: string;
20992
+ module_id: string;
20993
+ permission: string;
20994
+ }[];
20995
+ };
18961
20996
  next_manufacture_partij: {
18962
20997
  Args: {
18963
20998
  _tenant_id: string;
@@ -19008,6 +21043,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19008
21043
  };
19009
21044
  Returns: boolean;
19010
21045
  };
21046
+ opruim_print_historie: {
21047
+ Args: never;
21048
+ Returns: {
21049
+ ontdaan: number;
21050
+ verwijderd: number;
21051
+ }[];
21052
+ };
19011
21053
  order_number_prefix: {
19012
21054
  Args: {
19013
21055
  p_custom_fields?: import("./types").Json;
@@ -19015,6 +21057,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19015
21057
  };
19016
21058
  Returns: string;
19017
21059
  };
21060
+ pick_active_printers: {
21061
+ Args: never;
21062
+ Returns: {
21063
+ id: string;
21064
+ locatie: string;
21065
+ naam: string;
21066
+ online: boolean;
21067
+ }[];
21068
+ };
19018
21069
  pick_claim_document: {
19019
21070
  Args: {
19020
21071
  _queue_item_id: string;
@@ -19201,6 +21252,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19201
21252
  };
19202
21253
  Returns: undefined;
19203
21254
  };
21255
+ pick_reset_print: {
21256
+ Args: {
21257
+ _queue_item_id: string;
21258
+ _session_id: string;
21259
+ };
21260
+ Returns: {
21261
+ announced_at: string;
21262
+ assigned_user_id: string | null;
21263
+ barcode: string | null;
21264
+ cancelled_at: string | null;
21265
+ cart_count: number;
21266
+ completed_at: string | null;
21267
+ country_code: string | null;
21268
+ created_at: string;
21269
+ customer_name: string | null;
21270
+ delivery_address: string | null;
21271
+ document_number: string | null;
21272
+ document_type_id: string | null;
21273
+ due_at: string | null;
21274
+ id: string;
21275
+ is_urgent: boolean;
21276
+ line_count: number;
21277
+ order_number: string | null;
21278
+ order_type: string | null;
21279
+ payload: import("./types").Json;
21280
+ print_count: number;
21281
+ print_job_id: string | null;
21282
+ printed_at: string | null;
21283
+ printed_by: string | null;
21284
+ printer_id: string | null;
21285
+ priority: number;
21286
+ reference: string | null;
21287
+ route: string | null;
21288
+ screen_id: string | null;
21289
+ station_id: string | null;
21290
+ status_id: string | null;
21291
+ updated_at: string;
21292
+ warnings: import("./types").Json;
21293
+ };
21294
+ SetofOptions: {
21295
+ from: "*";
21296
+ to: "pick_queue";
21297
+ isOneToOne: true;
21298
+ isSetofReturn: false;
21299
+ };
21300
+ };
19204
21301
  pick_station_dashboard: {
19205
21302
  Args: never;
19206
21303
  Returns: {
@@ -19347,6 +21444,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19347
21444
  };
19348
21445
  Returns: undefined;
19349
21446
  };
21447
+ reset_stalled_floriday_stock_queue: {
21448
+ Args: {
21449
+ p_include_failed?: boolean;
21450
+ };
21451
+ Returns: number;
21452
+ };
19350
21453
  resolve_group_allocation: {
19351
21454
  Args: {
19352
21455
  _needed: number;
@@ -19391,10 +21494,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19391
21494
  };
19392
21495
  Returns: import("./types").Json;
19393
21496
  };
21497
+ ruim_print_jobs_op: {
21498
+ Args: {
21499
+ _bewaar_dagen?: number;
21500
+ };
21501
+ Returns: number;
21502
+ };
19394
21503
  run_floriday_continuous_stock_sync: {
19395
21504
  Args: never;
19396
21505
  Returns: undefined;
19397
21506
  };
21507
+ run_floriday_stock_queue_process: {
21508
+ Args: never;
21509
+ Returns: undefined;
21510
+ };
21511
+ run_logistics_tasks_dispatch: {
21512
+ Args: never;
21513
+ Returns: undefined;
21514
+ };
21515
+ run_print_queue_ticks: {
21516
+ Args: never;
21517
+ Returns: number;
21518
+ };
19398
21519
  run_twinfield_queue_tick: {
19399
21520
  Args: never;
19400
21521
  Returns: undefined;
@@ -19635,6 +21756,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19635
21756
  };
19636
21757
  Returns: number;
19637
21758
  };
21759
+ schedule_floriday_stock_queue_process: {
21760
+ Args: {
21761
+ p_apikey: string;
21762
+ p_url: string;
21763
+ };
21764
+ Returns: number;
21765
+ };
19638
21766
  schedule_floriday_token_refresh: {
19639
21767
  Args: {
19640
21768
  p_apikey: string;
@@ -19741,6 +21869,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19741
21869
  };
19742
21870
  Returns: string[];
19743
21871
  };
21872
+ switch_time_log: {
21873
+ Args: {
21874
+ p_employee_id: string;
21875
+ p_start_lat?: number;
21876
+ p_start_lng?: number;
21877
+ p_type: string;
21878
+ p_work_order_id?: string;
21879
+ };
21880
+ Returns: import("./types").Json;
21881
+ };
19744
21882
  sync_all_layer_stocks: {
19745
21883
  Args: never;
19746
21884
  Returns: undefined;
@@ -19775,6 +21913,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19775
21913
  };
19776
21914
  Returns: undefined;
19777
21915
  };
21916
+ sync_sick_time_off: {
21917
+ Args: {
21918
+ _period_id: string;
21919
+ };
21920
+ Returns: number;
21921
+ };
21922
+ trade_item_stock_duplicates: {
21923
+ Args: never;
21924
+ Returns: {
21925
+ keys: string[];
21926
+ product_id: string;
21927
+ product_name: string;
21928
+ row_count: number;
21929
+ }[];
21930
+ };
19778
21931
  try_debtor_lock: {
19779
21932
  Args: {
19780
21933
  _group_key: string;
@@ -19782,6 +21935,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19782
21935
  };
19783
21936
  Returns: boolean;
19784
21937
  };
21938
+ twinfield_cron_lock_acquire: {
21939
+ Args: {
21940
+ _job_name: string;
21941
+ _stale_seconds?: number;
21942
+ };
21943
+ Returns: boolean;
21944
+ };
21945
+ twinfield_cron_lock_release: {
21946
+ Args: {
21947
+ _error?: string;
21948
+ _job_name: string;
21949
+ };
21950
+ Returns: undefined;
21951
+ };
21952
+ twinfield_prune_push_queue: {
21953
+ Args: never;
21954
+ Returns: number;
21955
+ };
19785
21956
  twinfield_register_cron: {
19786
21957
  Args: {
19787
21958
  apikey?: string;
@@ -19824,8 +21995,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19824
21995
  };
19825
21996
  Enums: {
19826
21997
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
19827
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
19828
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
21998
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21999
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
19829
22000
  doc_orientation: "portrait" | "landscape";
19830
22001
  exact_env: "staging" | "live";
19831
22002
  exact_push_status: "pending" | "sent" | "error";