@flowselections/pick-schermen-kwekers 1.0.10 → 1.0.11

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 (34) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/PickPublicPage.js +1 -1
  3. package/dist-lib/components/TemplateModulePage.d.ts +2 -0
  4. package/dist-lib/components/TemplateModulePage.d.ts.map +1 -0
  5. package/dist-lib/components/TemplateModulePage.js +44 -0
  6. package/dist-lib/components/pick/LanguageTiles.d.ts.map +1 -1
  7. package/dist-lib/components/pick/LanguageTiles.js +3 -3
  8. package/dist-lib/components/pick/PickScherm.d.ts.map +1 -1
  9. package/dist-lib/components/pick/PickScherm.js +71 -10
  10. package/dist-lib/components/pick/QueueTable.d.ts.map +1 -1
  11. package/dist-lib/components/pick/QueueTable.js +22 -12
  12. package/dist-lib/hooks/usePickQueue.d.ts +4 -0
  13. package/dist-lib/hooks/usePickQueue.d.ts.map +1 -1
  14. package/dist-lib/hooks/usePickQueue.js +38 -7
  15. package/dist-lib/hooks/usePrintJob.d.ts.map +1 -1
  16. package/dist-lib/hooks/usePrintJob.js +13 -2
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1788 -311
  18. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.d.ts +1788 -311
  20. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.server.d.ts +1788 -311
  22. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.d.ts +1888 -375
  24. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.js +3 -0
  26. package/dist-lib/lib/layoutMaker/pakbonHtml.js +49 -49
  27. package/dist-lib/lib/layoutRenderer.js +17 -17
  28. package/dist-lib/lib/pickApi.d.ts +11 -4
  29. package/dist-lib/lib/pickApi.d.ts.map +1 -1
  30. package/dist-lib/lib/pickApi.js +46 -17
  31. package/dist-lib/lib/pickUiText.d.ts +29 -0
  32. package/dist-lib/lib/pickUiText.d.ts.map +1 -0
  33. package/dist-lib/lib/pickUiText.js +71 -0
  34. package/package.json +1 -1
@@ -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;
@@ -2639,6 +2759,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2639
2759
  };
2640
2760
  Relationships: [];
2641
2761
  };
2762
+ document_bronregels: {
2763
+ Row: {
2764
+ bron: string;
2765
+ created_at: string;
2766
+ documenttype: string;
2767
+ herkomst: string;
2768
+ id: string;
2769
+ layout_id: string | null;
2770
+ updated_at: string;
2771
+ };
2772
+ Insert: {
2773
+ bron?: string;
2774
+ created_at?: string;
2775
+ documenttype: string;
2776
+ herkomst: string;
2777
+ id?: string;
2778
+ layout_id?: string | null;
2779
+ updated_at?: string;
2780
+ };
2781
+ Update: {
2782
+ bron?: string;
2783
+ created_at?: string;
2784
+ documenttype?: string;
2785
+ herkomst?: string;
2786
+ id?: string;
2787
+ layout_id?: string | null;
2788
+ updated_at?: string;
2789
+ };
2790
+ Relationships: [{
2791
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2792
+ columns: ["layout_id"];
2793
+ isOneToOne: false;
2794
+ referencedRelation: "document_layouts";
2795
+ referencedColumns: ["id"];
2796
+ }];
2797
+ };
2642
2798
  document_formaat_printers: {
2643
2799
  Row: {
2644
2800
  created_at: string;
@@ -2916,6 +3072,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2916
3072
  Row: {
2917
3073
  actief: boolean;
2918
3074
  breedte_mm: number;
3075
+ bron: string;
2919
3076
  config: import("./types").Json;
2920
3077
  created_at: string;
2921
3078
  created_by: string | null;
@@ -2933,12 +3090,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2933
3090
  orientatie: Database["public"]["Enums"]["doc_orientation"];
2934
3091
  page_settings: import("./types").Json;
2935
3092
  papierformaat: string;
3093
+ systeem: boolean;
2936
3094
  thumbnail_url: string | null;
2937
3095
  updated_at: string;
2938
3096
  };
2939
3097
  Insert: {
2940
3098
  actief?: boolean;
2941
3099
  breedte_mm?: number;
3100
+ bron?: string;
2942
3101
  config?: import("./types").Json;
2943
3102
  created_at?: string;
2944
3103
  created_by?: string | null;
@@ -2956,12 +3115,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2956
3115
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
2957
3116
  page_settings?: import("./types").Json;
2958
3117
  papierformaat?: string;
3118
+ systeem?: boolean;
2959
3119
  thumbnail_url?: string | null;
2960
3120
  updated_at?: string;
2961
3121
  };
2962
3122
  Update: {
2963
3123
  actief?: boolean;
2964
3124
  breedte_mm?: number;
3125
+ bron?: string;
2965
3126
  config?: import("./types").Json;
2966
3127
  created_at?: string;
2967
3128
  created_by?: string | null;
@@ -2979,11 +3140,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2979
3140
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
2980
3141
  page_settings?: import("./types").Json;
2981
3142
  papierformaat?: string;
3143
+ systeem?: boolean;
2982
3144
  thumbnail_url?: string | null;
2983
3145
  updated_at?: string;
2984
3146
  };
2985
3147
  Relationships: [];
2986
3148
  };
3149
+ document_werkplek_printers: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ documenttype: string;
3153
+ id: string;
3154
+ papierformaat: string | null;
3155
+ printer_id: string | null;
3156
+ updated_at: string;
3157
+ werkplek: string;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ documenttype: string;
3162
+ id?: string;
3163
+ papierformaat?: string | null;
3164
+ printer_id?: string | null;
3165
+ updated_at?: string;
3166
+ werkplek: string;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ documenttype?: string;
3171
+ id?: string;
3172
+ papierformaat?: string | null;
3173
+ printer_id?: string | null;
3174
+ updated_at?: string;
3175
+ werkplek?: string;
3176
+ };
3177
+ Relationships: [{
3178
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3179
+ columns: ["printer_id"];
3180
+ isOneToOne: false;
3181
+ referencedRelation: "printers";
3182
+ referencedColumns: ["id"];
3183
+ }];
3184
+ };
2987
3185
  email_auth_connections: {
2988
3186
  Row: {
2989
3187
  access_token_encrypted: string | null;
@@ -7229,8 +7427,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7229
7427
  };
7230
7428
  Relationships: [];
7231
7429
  };
7430
+ invoice_items: {
7431
+ Row: {
7432
+ created_at: string;
7433
+ description: string;
7434
+ id: string;
7435
+ invoice_id: string;
7436
+ kind: string;
7437
+ quantity: number;
7438
+ sort_order: number;
7439
+ source_line_ref: string | null;
7440
+ total_cents: number;
7441
+ unit: string;
7442
+ unit_price_cents: number;
7443
+ };
7444
+ Insert: {
7445
+ created_at?: string;
7446
+ description?: string;
7447
+ id?: string;
7448
+ invoice_id: string;
7449
+ kind?: string;
7450
+ quantity?: number;
7451
+ sort_order?: number;
7452
+ source_line_ref?: string | null;
7453
+ total_cents?: number;
7454
+ unit?: string;
7455
+ unit_price_cents?: number;
7456
+ };
7457
+ Update: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id?: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Relationships: [{
7471
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7472
+ columns: ["invoice_id"];
7473
+ isOneToOne: false;
7474
+ referencedRelation: "invoices";
7475
+ referencedColumns: ["id"];
7476
+ }, {
7477
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7478
+ columns: ["invoice_id"];
7479
+ isOneToOne: false;
7480
+ referencedRelation: "uren_facturen";
7481
+ referencedColumns: ["id"];
7482
+ }];
7483
+ };
7232
7484
  invoice_post_idempotency: {
7233
7485
  Row: {
7486
+ administration_code: string;
7234
7487
  client_request_id: string;
7235
7488
  completed_at: string | null;
7236
7489
  created_at: string;
@@ -7240,6 +7493,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7240
7493
  user_id: string;
7241
7494
  };
7242
7495
  Insert: {
7496
+ administration_code?: string;
7243
7497
  client_request_id: string;
7244
7498
  completed_at?: string | null;
7245
7499
  created_at?: string;
@@ -7249,6 +7503,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7249
7503
  user_id: string;
7250
7504
  };
7251
7505
  Update: {
7506
+ administration_code?: string;
7252
7507
  client_request_id?: string;
7253
7508
  completed_at?: string | null;
7254
7509
  created_at?: string;
@@ -7454,6 +7709,75 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7454
7709
  };
7455
7710
  Relationships: [];
7456
7711
  };
7712
+ invoices: {
7713
+ Row: {
7714
+ created_at: string;
7715
+ created_by: string | null;
7716
+ customer_id: string | null;
7717
+ customer_name: string | null;
7718
+ due_date: string | null;
7719
+ id: string;
7720
+ invoice_date: string;
7721
+ invoice_number: string | null;
7722
+ note: string | null;
7723
+ source_number: string | null;
7724
+ source_ref: string | null;
7725
+ source_type: string;
7726
+ status: string;
7727
+ subtotal_cents: number;
7728
+ total_cents: number;
7729
+ updated_at: string;
7730
+ vat_cents: number;
7731
+ vat_rate: number;
7732
+ };
7733
+ Insert: {
7734
+ created_at?: string;
7735
+ created_by?: string | null;
7736
+ customer_id?: string | null;
7737
+ customer_name?: string | null;
7738
+ due_date?: string | null;
7739
+ id?: string;
7740
+ invoice_date?: string;
7741
+ invoice_number?: string | null;
7742
+ note?: string | null;
7743
+ source_number?: string | null;
7744
+ source_ref?: string | null;
7745
+ source_type?: string;
7746
+ status?: string;
7747
+ subtotal_cents?: number;
7748
+ total_cents?: number;
7749
+ updated_at?: string;
7750
+ vat_cents?: number;
7751
+ vat_rate?: number;
7752
+ };
7753
+ Update: {
7754
+ created_at?: string;
7755
+ created_by?: string | null;
7756
+ customer_id?: string | null;
7757
+ customer_name?: string | null;
7758
+ due_date?: string | null;
7759
+ id?: string;
7760
+ invoice_date?: string;
7761
+ invoice_number?: string | null;
7762
+ note?: string | null;
7763
+ source_number?: string | null;
7764
+ source_ref?: string | null;
7765
+ source_type?: string;
7766
+ status?: string;
7767
+ subtotal_cents?: number;
7768
+ total_cents?: number;
7769
+ updated_at?: string;
7770
+ vat_cents?: number;
7771
+ vat_rate?: number;
7772
+ };
7773
+ Relationships: [{
7774
+ foreignKeyName: "invoices_customer_id_fkey";
7775
+ columns: ["customer_id"];
7776
+ isOneToOne: false;
7777
+ referencedRelation: "itk_customers";
7778
+ referencedColumns: ["id"];
7779
+ }];
7780
+ };
7457
7781
  itk_contact_persons: {
7458
7782
  Row: {
7459
7783
  created_at: string;
@@ -7649,77 +7973,329 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7649
7973
  };
7650
7974
  Relationships: [];
7651
7975
  };
7652
- itk_work_locations: {
7976
+ itk_offerte_events: {
7653
7977
  Row: {
7654
- city: string | null;
7655
7978
  created_at: string;
7656
- customer_id: string;
7979
+ event_type: string;
7657
7980
  id: string;
7658
- instructions: string | null;
7659
- label: string;
7660
- latitude: number | null;
7661
- longitude: number | null;
7662
- postcode: string | null;
7663
- street: string | null;
7664
- updated_at: string;
7981
+ metadata: import("./types").Json;
7982
+ offerte_id: string;
7983
+ omschrijving: string | null;
7984
+ user_id: string | null;
7665
7985
  };
7666
7986
  Insert: {
7667
- city?: string | null;
7668
7987
  created_at?: string;
7669
- customer_id: string;
7988
+ event_type: string;
7670
7989
  id?: string;
7671
- instructions?: string | null;
7672
- label: string;
7673
- latitude?: number | null;
7674
- longitude?: number | null;
7675
- postcode?: string | null;
7676
- street?: string | null;
7677
- updated_at?: string;
7990
+ metadata?: import("./types").Json;
7991
+ offerte_id: string;
7992
+ omschrijving?: string | null;
7993
+ user_id?: string | null;
7678
7994
  };
7679
7995
  Update: {
7680
- city?: string | null;
7681
7996
  created_at?: string;
7682
- customer_id?: string;
7997
+ event_type?: string;
7683
7998
  id?: string;
7684
- instructions?: string | null;
7685
- label?: string;
7686
- latitude?: number | null;
7687
- longitude?: number | null;
7688
- postcode?: string | null;
7689
- street?: string | null;
7690
- updated_at?: string;
7999
+ metadata?: import("./types").Json;
8000
+ offerte_id?: string;
8001
+ omschrijving?: string | null;
8002
+ user_id?: string | null;
7691
8003
  };
7692
8004
  Relationships: [{
7693
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7694
- columns: ["customer_id"];
8005
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8006
+ columns: ["offerte_id"];
7695
8007
  isOneToOne: false;
7696
- referencedRelation: "itk_customers";
8008
+ referencedRelation: "itk_offertes";
7697
8009
  referencedColumns: ["id"];
7698
8010
  }];
7699
8011
  };
7700
- layout_logos: {
8012
+ itk_offerte_regels: {
7701
8013
  Row: {
7702
- bestand_url: string;
7703
- bestandsgrootte: number;
7704
- bestandspad: string | null;
7705
- bestandstype: string;
7706
- breedte: number;
7707
- categorie: string;
7708
8014
  created_at: string;
7709
- hash: string | null;
7710
- hoogte: number;
7711
8015
  id: string;
7712
- is_standaard: boolean;
7713
- naam: string;
8016
+ line_total_cents: number;
8017
+ offerte_id: string;
7714
8018
  omschrijving: string;
7715
- transparant: boolean;
8019
+ package_id: string | null;
8020
+ quantity: number;
8021
+ sort_order: number;
8022
+ source: string;
8023
+ unit_price_cents: number;
7716
8024
  updated_at: string;
7717
8025
  };
7718
8026
  Insert: {
7719
- bestand_url: string;
7720
- bestandsgrootte?: number;
7721
- bestandspad?: string | null;
7722
- bestandstype?: string;
8027
+ created_at?: string;
8028
+ id?: string;
8029
+ line_total_cents?: number;
8030
+ offerte_id: string;
8031
+ omschrijving?: string;
8032
+ package_id?: string | null;
8033
+ quantity?: number;
8034
+ sort_order?: number;
8035
+ source?: string;
8036
+ unit_price_cents?: number;
8037
+ updated_at?: string;
8038
+ };
8039
+ Update: {
8040
+ created_at?: string;
8041
+ id?: string;
8042
+ line_total_cents?: number;
8043
+ offerte_id?: string;
8044
+ omschrijving?: string;
8045
+ package_id?: string | null;
8046
+ quantity?: number;
8047
+ sort_order?: number;
8048
+ source?: string;
8049
+ unit_price_cents?: number;
8050
+ updated_at?: string;
8051
+ };
8052
+ Relationships: [{
8053
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8054
+ columns: ["offerte_id"];
8055
+ isOneToOne: false;
8056
+ referencedRelation: "itk_offertes";
8057
+ referencedColumns: ["id"];
8058
+ }, {
8059
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8060
+ columns: ["package_id"];
8061
+ isOneToOne: false;
8062
+ referencedRelation: "werkbon_packages";
8063
+ referencedColumns: ["id"];
8064
+ }];
8065
+ };
8066
+ itk_offerte_settings: {
8067
+ Row: {
8068
+ auto_convert_binnen_mandaat: boolean;
8069
+ created_at: string;
8070
+ default_geldigheid_dagen: number;
8071
+ default_vat_rate: number;
8072
+ id: string;
8073
+ singleton: boolean;
8074
+ updated_at: string;
8075
+ };
8076
+ Insert: {
8077
+ auto_convert_binnen_mandaat?: boolean;
8078
+ created_at?: string;
8079
+ default_geldigheid_dagen?: number;
8080
+ default_vat_rate?: number;
8081
+ id?: string;
8082
+ singleton?: boolean;
8083
+ updated_at?: string;
8084
+ };
8085
+ Update: {
8086
+ auto_convert_binnen_mandaat?: boolean;
8087
+ created_at?: string;
8088
+ default_geldigheid_dagen?: number;
8089
+ default_vat_rate?: number;
8090
+ id?: string;
8091
+ singleton?: boolean;
8092
+ updated_at?: string;
8093
+ };
8094
+ Relationships: [];
8095
+ };
8096
+ itk_offertes: {
8097
+ Row: {
8098
+ ai_generated: boolean;
8099
+ approved_at: string | null;
8100
+ binnen_mandaat: boolean;
8101
+ contact_id: string | null;
8102
+ converted_at: string | null;
8103
+ created_at: string;
8104
+ created_by: string | null;
8105
+ customer_id: string | null;
8106
+ follow_up_werkbon_id: string | null;
8107
+ id: string;
8108
+ jaar: number;
8109
+ mandaat_restant_cents: number;
8110
+ notities: string | null;
8111
+ offerte_number: string | null;
8112
+ omschrijving: string;
8113
+ rejected_at: string | null;
8114
+ sent_at: string | null;
8115
+ source_number: string | null;
8116
+ source_ref: string | null;
8117
+ source_type: string;
8118
+ status: string;
8119
+ subtotal_cents: number;
8120
+ total_cents: number;
8121
+ updated_at: string;
8122
+ valid_until: string | null;
8123
+ vat_cents: number;
8124
+ vat_rate: number;
8125
+ viewed_at: string | null;
8126
+ volgnummer: number | null;
8127
+ werkbon_id: string | null;
8128
+ work_location_id: string | null;
8129
+ };
8130
+ Insert: {
8131
+ ai_generated?: boolean;
8132
+ approved_at?: string | null;
8133
+ binnen_mandaat?: boolean;
8134
+ contact_id?: string | null;
8135
+ converted_at?: string | null;
8136
+ created_at?: string;
8137
+ created_by?: string | null;
8138
+ customer_id?: string | null;
8139
+ follow_up_werkbon_id?: string | null;
8140
+ id?: string;
8141
+ jaar?: number;
8142
+ mandaat_restant_cents?: number;
8143
+ notities?: string | null;
8144
+ offerte_number?: string | null;
8145
+ omschrijving?: string;
8146
+ rejected_at?: string | null;
8147
+ sent_at?: string | null;
8148
+ source_number?: string | null;
8149
+ source_ref?: string | null;
8150
+ source_type?: string;
8151
+ status?: string;
8152
+ subtotal_cents?: number;
8153
+ total_cents?: number;
8154
+ updated_at?: string;
8155
+ valid_until?: string | null;
8156
+ vat_cents?: number;
8157
+ vat_rate?: number;
8158
+ viewed_at?: string | null;
8159
+ volgnummer?: number | null;
8160
+ werkbon_id?: string | null;
8161
+ work_location_id?: string | null;
8162
+ };
8163
+ Update: {
8164
+ ai_generated?: boolean;
8165
+ approved_at?: string | null;
8166
+ binnen_mandaat?: boolean;
8167
+ contact_id?: string | null;
8168
+ converted_at?: string | null;
8169
+ created_at?: string;
8170
+ created_by?: string | null;
8171
+ customer_id?: string | null;
8172
+ follow_up_werkbon_id?: string | null;
8173
+ id?: string;
8174
+ jaar?: number;
8175
+ mandaat_restant_cents?: number;
8176
+ notities?: string | null;
8177
+ offerte_number?: string | null;
8178
+ omschrijving?: string;
8179
+ rejected_at?: string | null;
8180
+ sent_at?: string | null;
8181
+ source_number?: string | null;
8182
+ source_ref?: string | null;
8183
+ source_type?: string;
8184
+ status?: string;
8185
+ subtotal_cents?: number;
8186
+ total_cents?: number;
8187
+ updated_at?: string;
8188
+ valid_until?: string | null;
8189
+ vat_cents?: number;
8190
+ vat_rate?: number;
8191
+ viewed_at?: string | null;
8192
+ volgnummer?: number | null;
8193
+ werkbon_id?: string | null;
8194
+ work_location_id?: string | null;
8195
+ };
8196
+ Relationships: [{
8197
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8198
+ columns: ["contact_id"];
8199
+ isOneToOne: false;
8200
+ referencedRelation: "itk_contact_persons";
8201
+ referencedColumns: ["id"];
8202
+ }, {
8203
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8204
+ columns: ["customer_id"];
8205
+ isOneToOne: false;
8206
+ referencedRelation: "itk_customers";
8207
+ referencedColumns: ["id"];
8208
+ }, {
8209
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8210
+ columns: ["follow_up_werkbon_id"];
8211
+ isOneToOne: false;
8212
+ referencedRelation: "werkbonnen";
8213
+ referencedColumns: ["id"];
8214
+ }, {
8215
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8216
+ columns: ["werkbon_id"];
8217
+ isOneToOne: false;
8218
+ referencedRelation: "werkbonnen";
8219
+ referencedColumns: ["id"];
8220
+ }, {
8221
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8222
+ columns: ["work_location_id"];
8223
+ isOneToOne: false;
8224
+ referencedRelation: "itk_work_locations";
8225
+ referencedColumns: ["id"];
8226
+ }];
8227
+ };
8228
+ itk_work_locations: {
8229
+ Row: {
8230
+ city: string | null;
8231
+ created_at: string;
8232
+ customer_id: string;
8233
+ id: string;
8234
+ instructions: string | null;
8235
+ label: string;
8236
+ latitude: number | null;
8237
+ longitude: number | null;
8238
+ postcode: string | null;
8239
+ street: string | null;
8240
+ updated_at: string;
8241
+ };
8242
+ Insert: {
8243
+ city?: string | null;
8244
+ created_at?: string;
8245
+ customer_id: string;
8246
+ id?: string;
8247
+ instructions?: string | null;
8248
+ label: string;
8249
+ latitude?: number | null;
8250
+ longitude?: number | null;
8251
+ postcode?: string | null;
8252
+ street?: string | null;
8253
+ updated_at?: string;
8254
+ };
8255
+ Update: {
8256
+ city?: string | null;
8257
+ created_at?: string;
8258
+ customer_id?: string;
8259
+ id?: string;
8260
+ instructions?: string | null;
8261
+ label?: string;
8262
+ latitude?: number | null;
8263
+ longitude?: number | null;
8264
+ postcode?: string | null;
8265
+ street?: string | null;
8266
+ updated_at?: string;
8267
+ };
8268
+ Relationships: [{
8269
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8270
+ columns: ["customer_id"];
8271
+ isOneToOne: false;
8272
+ referencedRelation: "itk_customers";
8273
+ referencedColumns: ["id"];
8274
+ }];
8275
+ };
8276
+ layout_logos: {
8277
+ Row: {
8278
+ bestand_url: string;
8279
+ bestandsgrootte: number;
8280
+ bestandspad: string | null;
8281
+ bestandstype: string;
8282
+ breedte: number;
8283
+ categorie: string;
8284
+ created_at: string;
8285
+ hash: string | null;
8286
+ hoogte: number;
8287
+ id: string;
8288
+ is_standaard: boolean;
8289
+ naam: string;
8290
+ omschrijving: string;
8291
+ transparant: boolean;
8292
+ updated_at: string;
8293
+ };
8294
+ Insert: {
8295
+ bestand_url: string;
8296
+ bestandsgrootte?: number;
8297
+ bestandspad?: string | null;
8298
+ bestandstype?: string;
7723
8299
  breedte?: number;
7724
8300
  categorie?: string;
7725
8301
  created_at?: string;
@@ -7766,7 +8342,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7766
8342
  start_date: string;
7767
8343
  start_time: string | null;
7768
8344
  status: string;
7769
- tenant_id: string;
7770
8345
  updated_at: string;
7771
8346
  user_id: string;
7772
8347
  };
@@ -7784,7 +8359,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7784
8359
  start_date: string;
7785
8360
  start_time?: string | null;
7786
8361
  status?: string;
7787
- tenant_id?: string;
7788
8362
  updated_at?: string;
7789
8363
  user_id: string;
7790
8364
  };
@@ -7802,7 +8376,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7802
8376
  start_date?: string;
7803
8377
  start_time?: string | null;
7804
8378
  status?: string;
7805
- tenant_id?: string;
7806
8379
  updated_at?: string;
7807
8380
  user_id?: string;
7808
8381
  };
@@ -7810,13 +8383,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7810
8383
  foreignKeyName: "leave_requests_monteur_id_fkey";
7811
8384
  columns: ["monteur_id"];
7812
8385
  isOneToOne: false;
7813
- referencedRelation: "monteurs";
8386
+ referencedRelation: "profiles";
7814
8387
  referencedColumns: ["id"];
7815
8388
  }, {
7816
8389
  foreignKeyName: "leave_requests_user_id_fkey";
7817
8390
  columns: ["user_id"];
7818
8391
  isOneToOne: false;
7819
- referencedRelation: "monteurs";
8392
+ referencedRelation: "profiles";
7820
8393
  referencedColumns: ["id"];
7821
8394
  }];
7822
8395
  };
@@ -9971,47 +10544,192 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9971
10544
  };
9972
10545
  Relationships: [];
9973
10546
  };
9974
- module_permissions: {
10547
+ material_usage: {
9975
10548
  Row: {
9976
10549
  created_at: string;
9977
10550
  id: string;
9978
- module_id: string;
9979
- permission: string;
9980
- role: Database["public"]["Enums"]["app_role"];
10551
+ material_name: string;
10552
+ monteur_id: string | null;
10553
+ price_at_time: number;
10554
+ quantity_used: number;
9981
10555
  updated_at: string;
10556
+ van_inventory_id: string | null;
10557
+ work_order_id: string;
9982
10558
  };
9983
10559
  Insert: {
9984
10560
  created_at?: string;
9985
10561
  id?: string;
9986
- module_id: string;
9987
- permission: string;
9988
- role: Database["public"]["Enums"]["app_role"];
10562
+ material_name: string;
10563
+ monteur_id?: string | null;
10564
+ price_at_time?: number;
10565
+ quantity_used?: number;
9989
10566
  updated_at?: string;
10567
+ van_inventory_id?: string | null;
10568
+ work_order_id: string;
9990
10569
  };
9991
10570
  Update: {
9992
10571
  created_at?: string;
9993
10572
  id?: string;
9994
- module_id?: string;
9995
- permission?: string;
9996
- role?: Database["public"]["Enums"]["app_role"];
10573
+ material_name?: string;
10574
+ monteur_id?: string | null;
10575
+ price_at_time?: number;
10576
+ quantity_used?: number;
9997
10577
  updated_at?: string;
10578
+ van_inventory_id?: string | null;
10579
+ work_order_id?: string;
9998
10580
  };
9999
- Relationships: [];
10581
+ Relationships: [{
10582
+ foreignKeyName: "material_usage_monteur_id_fkey";
10583
+ columns: ["monteur_id"];
10584
+ isOneToOne: false;
10585
+ referencedRelation: "profiles";
10586
+ referencedColumns: ["id"];
10587
+ }, {
10588
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10589
+ columns: ["van_inventory_id"];
10590
+ isOneToOne: false;
10591
+ referencedRelation: "van_inventories";
10592
+ referencedColumns: ["id"];
10593
+ }, {
10594
+ foreignKeyName: "material_usage_work_order_id_fkey";
10595
+ columns: ["work_order_id"];
10596
+ isOneToOne: false;
10597
+ referencedRelation: "work_orders";
10598
+ referencedColumns: ["id"];
10599
+ }];
10000
10600
  };
10001
- module_registry: {
10601
+ medewerker_details: {
10002
10602
  Row: {
10603
+ color: string | null;
10003
10604
  created_at: string;
10605
+ hours_fri: number | null;
10606
+ hours_mon: number | null;
10607
+ hours_thu: number | null;
10608
+ hours_tue: number | null;
10609
+ hours_wed: number | null;
10610
+ id: string;
10004
10611
  is_active: boolean;
10005
- last_seen_at: string;
10006
- module_id: string;
10007
- name: string;
10008
- shell_id: string | null;
10009
- sort_order: number | null;
10612
+ leave_balance_hours: number;
10613
+ persnr: string | null;
10614
+ phone: string | null;
10615
+ profile_id: string;
10616
+ updated_at: string;
10010
10617
  };
10011
10618
  Insert: {
10619
+ color?: string | null;
10012
10620
  created_at?: string;
10621
+ hours_fri?: number | null;
10622
+ hours_mon?: number | null;
10623
+ hours_thu?: number | null;
10624
+ hours_tue?: number | null;
10625
+ hours_wed?: number | null;
10626
+ id?: string;
10627
+ is_active?: boolean;
10628
+ leave_balance_hours?: number;
10629
+ persnr?: string | null;
10630
+ phone?: string | null;
10631
+ profile_id: string;
10632
+ updated_at?: string;
10633
+ };
10634
+ Update: {
10635
+ color?: string | null;
10636
+ created_at?: string;
10637
+ hours_fri?: number | null;
10638
+ hours_mon?: number | null;
10639
+ hours_thu?: number | null;
10640
+ hours_tue?: number | null;
10641
+ hours_wed?: number | null;
10642
+ id?: string;
10643
+ is_active?: boolean;
10644
+ leave_balance_hours?: number;
10645
+ persnr?: string | null;
10646
+ phone?: string | null;
10647
+ profile_id?: string;
10648
+ updated_at?: string;
10649
+ };
10650
+ Relationships: [{
10651
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10652
+ columns: ["profile_id"];
10653
+ isOneToOne: true;
10654
+ referencedRelation: "profiles";
10655
+ referencedColumns: ["id"];
10656
+ }];
10657
+ };
10658
+ module_features: {
10659
+ Row: {
10660
+ created_at: string;
10661
+ feature_id: string;
10662
+ id: string;
10663
+ is_active: boolean;
10664
+ last_seen_at: string;
10665
+ module_id: string;
10666
+ name: string;
10667
+ };
10668
+ Insert: {
10669
+ created_at?: string;
10670
+ feature_id: string;
10671
+ id?: string;
10672
+ is_active?: boolean;
10673
+ last_seen_at?: string;
10674
+ module_id: string;
10675
+ name: string;
10676
+ };
10677
+ Update: {
10678
+ created_at?: string;
10679
+ feature_id?: string;
10680
+ id?: string;
10681
+ is_active?: boolean;
10682
+ last_seen_at?: string;
10683
+ module_id?: string;
10684
+ name?: string;
10685
+ };
10686
+ Relationships: [];
10687
+ };
10688
+ module_permissions: {
10689
+ Row: {
10690
+ created_at: string;
10691
+ id: string;
10692
+ module_id: string;
10693
+ permission: string;
10694
+ role: Database["public"]["Enums"]["app_role"];
10695
+ updated_at: string;
10696
+ };
10697
+ Insert: {
10698
+ created_at?: string;
10699
+ id?: string;
10700
+ module_id: string;
10701
+ permission: string;
10702
+ role: Database["public"]["Enums"]["app_role"];
10703
+ updated_at?: string;
10704
+ };
10705
+ Update: {
10706
+ created_at?: string;
10707
+ id?: string;
10708
+ module_id?: string;
10709
+ permission?: string;
10710
+ role?: Database["public"]["Enums"]["app_role"];
10711
+ updated_at?: string;
10712
+ };
10713
+ Relationships: [];
10714
+ };
10715
+ module_registry: {
10716
+ Row: {
10717
+ created_at: string;
10718
+ enforce: boolean;
10719
+ is_active: boolean;
10720
+ last_seen_at: string;
10721
+ missing_count: number;
10722
+ module_id: string;
10723
+ name: string;
10724
+ shell_id: string | null;
10725
+ sort_order: number | null;
10726
+ };
10727
+ Insert: {
10728
+ created_at?: string;
10729
+ enforce?: boolean;
10013
10730
  is_active?: boolean;
10014
10731
  last_seen_at?: string;
10732
+ missing_count?: number;
10015
10733
  module_id: string;
10016
10734
  name: string;
10017
10735
  shell_id?: string | null;
@@ -10019,8 +10737,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10019
10737
  };
10020
10738
  Update: {
10021
10739
  created_at?: string;
10740
+ enforce?: boolean;
10022
10741
  is_active?: boolean;
10023
10742
  last_seen_at?: string;
10743
+ missing_count?: number;
10024
10744
  module_id?: string;
10025
10745
  name?: string;
10026
10746
  shell_id?: string | null;
@@ -10079,63 +10799,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10079
10799
  };
10080
10800
  Relationships: [];
10081
10801
  };
10082
- monteurs: {
10083
- Row: {
10084
- avatar_url: string | null;
10085
- color: string | null;
10086
- created_at: string;
10087
- email: string | null;
10088
- id: string;
10089
- is_active: boolean;
10090
- leave_balance_hours: number;
10091
- name: string;
10092
- persnr: number | null;
10093
- phone: string | null;
10094
- role: string;
10095
- tenant_id: string;
10096
- updated_at: string;
10097
- user_id: string | null;
10098
- };
10099
- Insert: {
10100
- avatar_url?: string | null;
10101
- color?: string | null;
10102
- created_at?: string;
10103
- email?: string | null;
10104
- id?: string;
10105
- is_active?: boolean;
10106
- leave_balance_hours?: number;
10107
- name: string;
10108
- persnr?: number | null;
10109
- phone?: string | null;
10110
- role?: string;
10111
- tenant_id: string;
10112
- updated_at?: string;
10113
- user_id?: string | null;
10114
- };
10115
- Update: {
10116
- avatar_url?: string | null;
10117
- color?: string | null;
10118
- created_at?: string;
10119
- email?: string | null;
10120
- id?: string;
10121
- is_active?: boolean;
10122
- leave_balance_hours?: number;
10123
- name?: string;
10124
- persnr?: number | null;
10125
- phone?: string | null;
10126
- role?: string;
10127
- tenant_id?: string;
10128
- updated_at?: string;
10129
- user_id?: string | null;
10130
- };
10131
- Relationships: [{
10132
- foreignKeyName: "monteurs_tenant_id_fkey";
10133
- columns: ["tenant_id"];
10134
- isOneToOne: false;
10135
- referencedRelation: "tenants";
10136
- referencedColumns: ["id"];
10137
- }];
10138
- };
10139
10802
  nmbrs_component_mapping: {
10140
10803
  Row: {
10141
10804
  created_at: string;
@@ -10206,13 +10869,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10206
10869
  nmbrs_employee_number?: string;
10207
10870
  updated_at?: string;
10208
10871
  };
10209
- Relationships: [{
10210
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10211
- columns: ["monteur_id"];
10212
- isOneToOne: true;
10213
- referencedRelation: "monteurs";
10214
- referencedColumns: ["id"];
10215
- }];
10872
+ Relationships: [];
10216
10873
  };
10217
10874
  nmbrs_export_lines: {
10218
10875
  Row: {
@@ -10261,12 +10918,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10261
10918
  wage_code?: string;
10262
10919
  };
10263
10920
  Relationships: [{
10264
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10265
- columns: ["monteur_id"];
10266
- isOneToOne: false;
10267
- referencedRelation: "monteurs";
10268
- referencedColumns: ["id"];
10269
- }, {
10270
10921
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10271
10922
  columns: ["run_id"];
10272
10923
  isOneToOne: false;
@@ -11089,6 +11740,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11089
11740
  };
11090
11741
  order_invoice_links: {
11091
11742
  Row: {
11743
+ administration_code: string | null;
11092
11744
  attempts: number;
11093
11745
  created_at: string;
11094
11746
  error_message: string | null;
@@ -11101,6 +11753,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11101
11753
  updated_at: string;
11102
11754
  };
11103
11755
  Insert: {
11756
+ administration_code?: string | null;
11104
11757
  attempts?: number;
11105
11758
  created_at?: string;
11106
11759
  error_message?: string | null;
@@ -11113,6 +11766,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11113
11766
  updated_at?: string;
11114
11767
  };
11115
11768
  Update: {
11769
+ administration_code?: string | null;
11116
11770
  attempts?: number;
11117
11771
  created_at?: string;
11118
11772
  error_message?: string | null;
@@ -11300,6 +11954,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11300
11954
  orders: {
11301
11955
  Row: {
11302
11956
  buffer_id: string | null;
11957
+ cancel_reason: string | null;
11958
+ cancelled_at: string | null;
11303
11959
  created_at: string;
11304
11960
  custom_fields: import("./types").Json;
11305
11961
  customer_id: string | null;
@@ -11322,6 +11978,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11322
11978
  };
11323
11979
  Insert: {
11324
11980
  buffer_id?: string | null;
11981
+ cancel_reason?: string | null;
11982
+ cancelled_at?: string | null;
11325
11983
  created_at?: string;
11326
11984
  custom_fields?: import("./types").Json;
11327
11985
  customer_id?: string | null;
@@ -11344,6 +12002,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11344
12002
  };
11345
12003
  Update: {
11346
12004
  buffer_id?: string | null;
12005
+ cancel_reason?: string | null;
12006
+ cancelled_at?: string | null;
11347
12007
  created_at?: string;
11348
12008
  custom_fields?: import("./types").Json;
11349
12009
  customer_id?: string | null;
@@ -12272,6 +12932,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12272
12932
  referencedColumns: ["id"];
12273
12933
  }];
12274
12934
  };
12935
+ pick_sync_state: {
12936
+ Row: {
12937
+ id: boolean;
12938
+ last_cleanup_at: string | null;
12939
+ last_sync_at: string | null;
12940
+ updated_at: string;
12941
+ };
12942
+ Insert: {
12943
+ id?: boolean;
12944
+ last_cleanup_at?: string | null;
12945
+ last_sync_at?: string | null;
12946
+ updated_at?: string;
12947
+ };
12948
+ Update: {
12949
+ id?: boolean;
12950
+ last_cleanup_at?: string | null;
12951
+ last_sync_at?: string | null;
12952
+ updated_at?: string;
12953
+ };
12954
+ Relationships: [];
12955
+ };
12275
12956
  pick_task_document_types: {
12276
12957
  Row: {
12277
12958
  created_at: string;
@@ -12554,6 +13235,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12554
13235
  gebruiker_id: string | null;
12555
13236
  gebruiker_naam: string;
12556
13237
  gestart_op: string | null;
13238
+ herkomst: string | null;
12557
13239
  id: string;
12558
13240
  idempotentie_sleutel: string | null;
12559
13241
  is_herprint: boolean;
@@ -12583,6 +13265,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12583
13265
  gebruiker_id?: string | null;
12584
13266
  gebruiker_naam?: string;
12585
13267
  gestart_op?: string | null;
13268
+ herkomst?: string | null;
12586
13269
  id?: string;
12587
13270
  idempotentie_sleutel?: string | null;
12588
13271
  is_herprint?: boolean;
@@ -12612,6 +13295,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12612
13295
  gebruiker_id?: string | null;
12613
13296
  gebruiker_naam?: string;
12614
13297
  gestart_op?: string | null;
13298
+ herkomst?: string | null;
12615
13299
  id?: string;
12616
13300
  idempotentie_sleutel?: string | null;
12617
13301
  is_herprint?: boolean;
@@ -12657,6 +13341,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12657
13341
  created_at: string;
12658
13342
  id: string;
12659
13343
  laatst_gezien: string;
13344
+ laatste_fout: string | null;
13345
+ laatste_request_id: number | null;
13346
+ mislukte_posts: number;
12660
13347
  tick_sleutel: string;
12661
13348
  updated_at: string;
12662
13349
  };
@@ -12666,6 +13353,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12666
13353
  created_at?: string;
12667
13354
  id?: string;
12668
13355
  laatst_gezien?: string;
13356
+ laatste_fout?: string | null;
13357
+ laatste_request_id?: number | null;
13358
+ mislukte_posts?: number;
12669
13359
  tick_sleutel?: string;
12670
13360
  updated_at?: string;
12671
13361
  };
@@ -12675,6 +13365,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12675
13365
  created_at?: string;
12676
13366
  id?: string;
12677
13367
  laatst_gezien?: string;
13368
+ laatste_fout?: string | null;
13369
+ laatste_request_id?: number | null;
13370
+ mislukte_posts?: number;
12678
13371
  tick_sleutel?: string;
12679
13372
  updated_at?: string;
12680
13373
  };
@@ -13397,6 +14090,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13397
14090
  };
13398
14091
  Relationships: [];
13399
14092
  };
14093
+ profile_modules: {
14094
+ Row: {
14095
+ created_at: string;
14096
+ id: string;
14097
+ module_id: string;
14098
+ profile_id: string;
14099
+ };
14100
+ Insert: {
14101
+ created_at?: string;
14102
+ id?: string;
14103
+ module_id: string;
14104
+ profile_id: string;
14105
+ };
14106
+ Update: {
14107
+ created_at?: string;
14108
+ id?: string;
14109
+ module_id?: string;
14110
+ profile_id?: string;
14111
+ };
14112
+ Relationships: [{
14113
+ foreignKeyName: "profile_modules_profile_id_fkey";
14114
+ columns: ["profile_id"];
14115
+ isOneToOne: false;
14116
+ referencedRelation: "profiles_org";
14117
+ referencedColumns: ["id"];
14118
+ }];
14119
+ };
14120
+ profile_roles: {
14121
+ Row: {
14122
+ created_at: string;
14123
+ id: string;
14124
+ profile_id: string;
14125
+ role_id: string;
14126
+ };
14127
+ Insert: {
14128
+ created_at?: string;
14129
+ id?: string;
14130
+ profile_id: string;
14131
+ role_id: string;
14132
+ };
14133
+ Update: {
14134
+ created_at?: string;
14135
+ id?: string;
14136
+ profile_id?: string;
14137
+ role_id?: string;
14138
+ };
14139
+ Relationships: [{
14140
+ foreignKeyName: "profile_roles_profile_id_fkey";
14141
+ columns: ["profile_id"];
14142
+ isOneToOne: false;
14143
+ referencedRelation: "profiles_org";
14144
+ referencedColumns: ["id"];
14145
+ }, {
14146
+ foreignKeyName: "profile_roles_role_id_fkey";
14147
+ columns: ["role_id"];
14148
+ isOneToOne: false;
14149
+ referencedRelation: "roles";
14150
+ referencedColumns: ["id"];
14151
+ }];
14152
+ };
13400
14153
  profiles: {
13401
14154
  Row: {
13402
14155
  address: string | null;
@@ -13442,6 +14195,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13442
14195
  referencedColumns: ["id"];
13443
14196
  }];
13444
14197
  };
14198
+ profiles_org: {
14199
+ Row: {
14200
+ created_at: string;
14201
+ id: string;
14202
+ is_default: boolean;
14203
+ name: string;
14204
+ tenant_id: string | null;
14205
+ updated_at: string;
14206
+ };
14207
+ Insert: {
14208
+ created_at?: string;
14209
+ id?: string;
14210
+ is_default?: boolean;
14211
+ name: string;
14212
+ tenant_id?: string | null;
14213
+ updated_at?: string;
14214
+ };
14215
+ Update: {
14216
+ created_at?: string;
14217
+ id?: string;
14218
+ is_default?: boolean;
14219
+ name?: string;
14220
+ tenant_id?: string | null;
14221
+ updated_at?: string;
14222
+ };
14223
+ Relationships: [{
14224
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14225
+ columns: ["tenant_id"];
14226
+ isOneToOne: false;
14227
+ referencedRelation: "tenants";
14228
+ referencedColumns: ["id"];
14229
+ }];
14230
+ };
13445
14231
  projects: {
13446
14232
  Row: {
13447
14233
  contact_name: string | null;
@@ -14183,6 +14969,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14183
14969
  referencedColumns: ["id"];
14184
14970
  }];
14185
14971
  };
14972
+ role_assignments: {
14973
+ Row: {
14974
+ created_at: string;
14975
+ id: string;
14976
+ role_id: string;
14977
+ user_id: string;
14978
+ };
14979
+ Insert: {
14980
+ created_at?: string;
14981
+ id?: string;
14982
+ role_id: string;
14983
+ user_id: string;
14984
+ };
14985
+ Update: {
14986
+ created_at?: string;
14987
+ id?: string;
14988
+ role_id?: string;
14989
+ user_id?: string;
14990
+ };
14991
+ Relationships: [{
14992
+ foreignKeyName: "role_assignments_role_id_fkey";
14993
+ columns: ["role_id"];
14994
+ isOneToOne: false;
14995
+ referencedRelation: "roles";
14996
+ referencedColumns: ["id"];
14997
+ }];
14998
+ };
14999
+ role_permissions: {
15000
+ Row: {
15001
+ can_edit: boolean;
15002
+ can_view: boolean;
15003
+ feature_id: string;
15004
+ id: string;
15005
+ module_id: string;
15006
+ role_id: string;
15007
+ updated_at: string;
15008
+ };
15009
+ Insert: {
15010
+ can_edit?: boolean;
15011
+ can_view?: boolean;
15012
+ feature_id?: string;
15013
+ id?: string;
15014
+ module_id: string;
15015
+ role_id: string;
15016
+ updated_at?: string;
15017
+ };
15018
+ Update: {
15019
+ can_edit?: boolean;
15020
+ can_view?: boolean;
15021
+ feature_id?: string;
15022
+ id?: string;
15023
+ module_id?: string;
15024
+ role_id?: string;
15025
+ updated_at?: string;
15026
+ };
15027
+ Relationships: [{
15028
+ foreignKeyName: "role_permissions_role_id_fkey";
15029
+ columns: ["role_id"];
15030
+ isOneToOne: false;
15031
+ referencedRelation: "roles";
15032
+ referencedColumns: ["id"];
15033
+ }];
15034
+ };
15035
+ roles: {
15036
+ Row: {
15037
+ created_at: string;
15038
+ id: string;
15039
+ is_protected: boolean;
15040
+ key: string;
15041
+ name: string;
15042
+ updated_at: string;
15043
+ };
15044
+ Insert: {
15045
+ created_at?: string;
15046
+ id?: string;
15047
+ is_protected?: boolean;
15048
+ key: string;
15049
+ name: string;
15050
+ updated_at?: string;
15051
+ };
15052
+ Update: {
15053
+ created_at?: string;
15054
+ id?: string;
15055
+ is_protected?: boolean;
15056
+ key?: string;
15057
+ name?: string;
15058
+ updated_at?: string;
15059
+ };
15060
+ Relationships: [];
15061
+ };
14186
15062
  rooms: {
14187
15063
  Row: {
14188
15064
  capacity: number;
@@ -14526,6 +15402,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14526
15402
  type: string;
14527
15403
  updated_at: string;
14528
15404
  vereist_medewerker: boolean;
15405
+ werkplek: string | null;
14529
15406
  };
14530
15407
  Insert: {
14531
15408
  actief?: boolean;
@@ -14539,6 +15416,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14539
15416
  type?: string;
14540
15417
  updated_at?: string;
14541
15418
  vereist_medewerker?: boolean;
15419
+ werkplek?: string | null;
14542
15420
  };
14543
15421
  Update: {
14544
15422
  actief?: boolean;
@@ -14552,9 +15430,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14552
15430
  type?: string;
14553
15431
  updated_at?: string;
14554
15432
  vereist_medewerker?: boolean;
15433
+ werkplek?: string | null;
14555
15434
  };
14556
15435
  Relationships: [];
14557
15436
  };
15437
+ sick_periods: {
15438
+ Row: {
15439
+ created_at: string;
15440
+ employee_id: string;
15441
+ end_date: string | null;
15442
+ id: string;
15443
+ notes: string | null;
15444
+ start_date: string;
15445
+ updated_at: string;
15446
+ };
15447
+ Insert: {
15448
+ created_at?: string;
15449
+ employee_id: string;
15450
+ end_date?: string | null;
15451
+ id?: string;
15452
+ notes?: string | null;
15453
+ start_date: string;
15454
+ updated_at?: string;
15455
+ };
15456
+ Update: {
15457
+ created_at?: string;
15458
+ employee_id?: string;
15459
+ end_date?: string | null;
15460
+ id?: string;
15461
+ notes?: string | null;
15462
+ start_date?: string;
15463
+ updated_at?: string;
15464
+ };
15465
+ Relationships: [{
15466
+ foreignKeyName: "sick_periods_employee_id_fkey";
15467
+ columns: ["employee_id"];
15468
+ isOneToOne: false;
15469
+ referencedRelation: "profiles";
15470
+ referencedColumns: ["id"];
15471
+ }];
15472
+ };
14558
15473
  sidebar_config: {
14559
15474
  Row: {
14560
15475
  id: string;
@@ -14852,6 +15767,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14852
15767
  };
14853
15768
  Relationships: [];
14854
15769
  };
15770
+ time_compensation_entries: {
15771
+ Row: {
15772
+ created_at: string;
15773
+ employee_id: string;
15774
+ entry_date: string;
15775
+ id: string;
15776
+ km: number;
15777
+ meal_allowance: number;
15778
+ notes: string | null;
15779
+ standby_evening: number;
15780
+ standby_weekend: number;
15781
+ tvt_change: number;
15782
+ updated_at: string;
15783
+ };
15784
+ Insert: {
15785
+ created_at?: string;
15786
+ employee_id: string;
15787
+ entry_date: string;
15788
+ id?: string;
15789
+ km?: number;
15790
+ meal_allowance?: number;
15791
+ notes?: string | null;
15792
+ standby_evening?: number;
15793
+ standby_weekend?: number;
15794
+ tvt_change?: number;
15795
+ updated_at?: string;
15796
+ };
15797
+ Update: {
15798
+ created_at?: string;
15799
+ employee_id?: string;
15800
+ entry_date?: string;
15801
+ id?: string;
15802
+ km?: number;
15803
+ meal_allowance?: number;
15804
+ notes?: string | null;
15805
+ standby_evening?: number;
15806
+ standby_weekend?: number;
15807
+ tvt_change?: number;
15808
+ updated_at?: string;
15809
+ };
15810
+ Relationships: [{
15811
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15812
+ columns: ["employee_id"];
15813
+ isOneToOne: false;
15814
+ referencedRelation: "profiles";
15815
+ referencedColumns: ["id"];
15816
+ }];
15817
+ };
14855
15818
  time_entries: {
14856
15819
  Row: {
14857
15820
  created_at: string;
@@ -14886,65 +15849,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14886
15849
  undertime?: number;
14887
15850
  updated_at?: string;
14888
15851
  };
15852
+ Relationships: [];
15853
+ };
15854
+ time_log_week_approvals: {
15855
+ Row: {
15856
+ approved_at: string | null;
15857
+ approved_by: string | null;
15858
+ created_at: string;
15859
+ employee_id: string;
15860
+ id: string;
15861
+ locked: boolean;
15862
+ notes: string | null;
15863
+ status: string;
15864
+ submitted_at: string | null;
15865
+ updated_at: string;
15866
+ week_start: string;
15867
+ };
15868
+ Insert: {
15869
+ approved_at?: string | null;
15870
+ approved_by?: string | null;
15871
+ created_at?: string;
15872
+ employee_id: string;
15873
+ id?: string;
15874
+ locked?: boolean;
15875
+ notes?: string | null;
15876
+ status?: string;
15877
+ submitted_at?: string | null;
15878
+ updated_at?: string;
15879
+ week_start: string;
15880
+ };
15881
+ Update: {
15882
+ approved_at?: string | null;
15883
+ approved_by?: string | null;
15884
+ created_at?: string;
15885
+ employee_id?: string;
15886
+ id?: string;
15887
+ locked?: boolean;
15888
+ notes?: string | null;
15889
+ status?: string;
15890
+ submitted_at?: string | null;
15891
+ updated_at?: string;
15892
+ week_start?: string;
15893
+ };
14889
15894
  Relationships: [{
14890
- foreignKeyName: "time_entries_employee_id_fkey";
15895
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14891
15896
  columns: ["employee_id"];
14892
15897
  isOneToOne: false;
14893
- referencedRelation: "monteurs";
15898
+ referencedRelation: "profiles";
14894
15899
  referencedColumns: ["id"];
14895
15900
  }];
14896
15901
  };
14897
15902
  time_logs: {
14898
15903
  Row: {
15904
+ auto_stop_reason: string | null;
15905
+ auto_stopped: boolean;
14899
15906
  created_at: string;
15907
+ current_latitude: number | null;
15908
+ current_longitude: number | null;
15909
+ current_position_updated_at: string | null;
14900
15910
  employee_id: string;
15911
+ end_latitude: number | null;
15912
+ end_longitude: number | null;
14901
15913
  end_time: string | null;
15914
+ eta_distance_km: number | null;
15915
+ eta_minutes: number | null;
15916
+ eta_updated_at: string | null;
15917
+ hour_category: string | null;
14902
15918
  id: string;
15919
+ last_reminder_at: string | null;
14903
15920
  notes: string | null;
14904
15921
  overtime_hours: number;
14905
15922
  overtime_type: string | null;
14906
15923
  regular_hours: number;
15924
+ reminder_count: number;
15925
+ requires_review: boolean;
15926
+ start_latitude: number | null;
15927
+ start_longitude: number | null;
14907
15928
  start_time: string;
14908
15929
  travel_cost: number | null;
14909
15930
  travel_distance_km: number | null;
15931
+ travel_duration_min: number | null;
15932
+ travel_time_minutes: number | null;
14910
15933
  type: string;
14911
15934
  updated_at: string;
15935
+ work_order_id: string | null;
14912
15936
  };
14913
15937
  Insert: {
15938
+ auto_stop_reason?: string | null;
15939
+ auto_stopped?: boolean;
14914
15940
  created_at?: string;
15941
+ current_latitude?: number | null;
15942
+ current_longitude?: number | null;
15943
+ current_position_updated_at?: string | null;
14915
15944
  employee_id: string;
15945
+ end_latitude?: number | null;
15946
+ end_longitude?: number | null;
14916
15947
  end_time?: string | null;
15948
+ eta_distance_km?: number | null;
15949
+ eta_minutes?: number | null;
15950
+ eta_updated_at?: string | null;
15951
+ hour_category?: string | null;
14917
15952
  id?: string;
15953
+ last_reminder_at?: string | null;
14918
15954
  notes?: string | null;
14919
15955
  overtime_hours?: number;
14920
15956
  overtime_type?: string | null;
14921
15957
  regular_hours?: number;
15958
+ reminder_count?: number;
15959
+ requires_review?: boolean;
15960
+ start_latitude?: number | null;
15961
+ start_longitude?: number | null;
14922
15962
  start_time?: string;
14923
15963
  travel_cost?: number | null;
14924
15964
  travel_distance_km?: number | null;
15965
+ travel_duration_min?: number | null;
15966
+ travel_time_minutes?: number | null;
14925
15967
  type: string;
14926
15968
  updated_at?: string;
15969
+ work_order_id?: string | null;
14927
15970
  };
14928
15971
  Update: {
15972
+ auto_stop_reason?: string | null;
15973
+ auto_stopped?: boolean;
14929
15974
  created_at?: string;
15975
+ current_latitude?: number | null;
15976
+ current_longitude?: number | null;
15977
+ current_position_updated_at?: string | null;
14930
15978
  employee_id?: string;
15979
+ end_latitude?: number | null;
15980
+ end_longitude?: number | null;
14931
15981
  end_time?: string | null;
15982
+ eta_distance_km?: number | null;
15983
+ eta_minutes?: number | null;
15984
+ eta_updated_at?: string | null;
15985
+ hour_category?: string | null;
14932
15986
  id?: string;
15987
+ last_reminder_at?: string | null;
14933
15988
  notes?: string | null;
14934
15989
  overtime_hours?: number;
14935
15990
  overtime_type?: string | null;
14936
15991
  regular_hours?: number;
15992
+ reminder_count?: number;
15993
+ requires_review?: boolean;
15994
+ start_latitude?: number | null;
15995
+ start_longitude?: number | null;
14937
15996
  start_time?: string;
14938
15997
  travel_cost?: number | null;
14939
15998
  travel_distance_km?: number | null;
15999
+ travel_duration_min?: number | null;
16000
+ travel_time_minutes?: number | null;
14940
16001
  type?: string;
14941
16002
  updated_at?: string;
16003
+ work_order_id?: string | null;
14942
16004
  };
14943
16005
  Relationships: [{
14944
16006
  foreignKeyName: "time_logs_employee_id_fkey";
14945
16007
  columns: ["employee_id"];
14946
16008
  isOneToOne: false;
14947
- referencedRelation: "monteurs";
16009
+ referencedRelation: "profiles";
16010
+ referencedColumns: ["id"];
16011
+ }, {
16012
+ foreignKeyName: "time_logs_work_order_id_fkey";
16013
+ columns: ["work_order_id"];
16014
+ isOneToOne: false;
16015
+ referencedRelation: "work_orders";
14948
16016
  referencedColumns: ["id"];
14949
16017
  }];
14950
16018
  };
@@ -14983,7 +16051,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14983
16051
  foreignKeyName: "time_off_entries_employee_id_fkey";
14984
16052
  columns: ["employee_id"];
14985
16053
  isOneToOne: false;
14986
- referencedRelation: "monteurs";
16054
+ referencedRelation: "profiles";
14987
16055
  referencedColumns: ["id"];
14988
16056
  }];
14989
16057
  };
@@ -15232,12 +16300,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15232
16300
  company_name: string | null;
15233
16301
  connected_at: string | null;
15234
16302
  created_at: string;
16303
+ disconnected_at: string | null;
15235
16304
  environment: string;
15236
16305
  id: string;
16306
+ initial_sync_completed_at: string | null;
16307
+ initial_sync_started_at: string | null;
15237
16308
  is_active: boolean;
15238
16309
  label: string | null;
15239
16310
  office_code: string | null;
15240
16311
  redirect_uri: string | null;
16312
+ superseded_at: string | null;
15241
16313
  updated_at: string;
15242
16314
  user_id: string;
15243
16315
  };
@@ -15248,12 +16320,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15248
16320
  company_name?: string | null;
15249
16321
  connected_at?: string | null;
15250
16322
  created_at?: string;
16323
+ disconnected_at?: string | null;
15251
16324
  environment: string;
15252
16325
  id?: string;
16326
+ initial_sync_completed_at?: string | null;
16327
+ initial_sync_started_at?: string | null;
15253
16328
  is_active?: boolean;
15254
16329
  label?: string | null;
15255
16330
  office_code?: string | null;
15256
16331
  redirect_uri?: string | null;
16332
+ superseded_at?: string | null;
15257
16333
  updated_at?: string;
15258
16334
  user_id: string;
15259
16335
  };
@@ -15264,12 +16340,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15264
16340
  company_name?: string | null;
15265
16341
  connected_at?: string | null;
15266
16342
  created_at?: string;
16343
+ disconnected_at?: string | null;
15267
16344
  environment?: string;
15268
16345
  id?: string;
16346
+ initial_sync_completed_at?: string | null;
16347
+ initial_sync_started_at?: string | null;
15269
16348
  is_active?: boolean;
15270
16349
  label?: string | null;
15271
16350
  office_code?: string | null;
15272
16351
  redirect_uri?: string | null;
16352
+ superseded_at?: string | null;
15273
16353
  updated_at?: string;
15274
16354
  user_id?: string;
15275
16355
  };
@@ -15283,19 +16363,53 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15283
16363
  };
15284
16364
  Insert: {
15285
16365
  created_at?: string;
15286
- id?: number;
15287
- secret?: string;
16366
+ id?: number;
16367
+ secret?: string;
16368
+ };
16369
+ Update: {
16370
+ created_at?: string;
16371
+ id?: number;
16372
+ secret?: string;
16373
+ };
16374
+ Relationships: [];
16375
+ };
16376
+ twinfield_cron_locks: {
16377
+ Row: {
16378
+ created_at: string;
16379
+ heartbeat_at: string;
16380
+ job_name: string;
16381
+ last_error: string | null;
16382
+ last_finished_at: string | null;
16383
+ locked_at: string;
16384
+ run_id: string;
16385
+ updated_at: string;
16386
+ };
16387
+ Insert: {
16388
+ created_at?: string;
16389
+ heartbeat_at?: string;
16390
+ job_name: string;
16391
+ last_error?: string | null;
16392
+ last_finished_at?: string | null;
16393
+ locked_at?: string;
16394
+ run_id?: string;
16395
+ updated_at?: string;
15288
16396
  };
15289
16397
  Update: {
15290
16398
  created_at?: string;
15291
- id?: number;
15292
- secret?: string;
16399
+ heartbeat_at?: string;
16400
+ job_name?: string;
16401
+ last_error?: string | null;
16402
+ last_finished_at?: string | null;
16403
+ locked_at?: string;
16404
+ run_id?: string;
16405
+ updated_at?: string;
15293
16406
  };
15294
16407
  Relationships: [];
15295
16408
  };
15296
16409
  twinfield_customers: {
15297
16410
  Row: {
15298
16411
  address: string | null;
16412
+ administration_code: string;
15299
16413
  city: string | null;
15300
16414
  country: string | null;
15301
16415
  created_at: string;
@@ -15315,6 +16429,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15315
16429
  };
15316
16430
  Insert: {
15317
16431
  address?: string | null;
16432
+ administration_code?: string;
15318
16433
  city?: string | null;
15319
16434
  country?: string | null;
15320
16435
  created_at?: string;
@@ -15334,6 +16449,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15334
16449
  };
15335
16450
  Update: {
15336
16451
  address?: string | null;
16452
+ administration_code?: string;
15337
16453
  city?: string | null;
15338
16454
  country?: string | null;
15339
16455
  created_at?: string;
@@ -15547,7 +16663,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15547
16663
  };
15548
16664
  twinfield_invoice_settings: {
15549
16665
  Row: {
16666
+ administration_code: string | null;
15550
16667
  auto_invoice_enabled: boolean;
16668
+ auto_invoice_start_date: string | null;
15551
16669
  auto_invoice_trigger_statuses: string[];
15552
16670
  created_at: string;
15553
16671
  debtor_gl_account: string;
@@ -15561,15 +16679,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15561
16679
  invoice_enabled_fo: boolean;
15562
16680
  invoice_enabled_ho: boolean;
15563
16681
  invoice_enabled_mo: boolean;
16682
+ needs_review: boolean;
15564
16683
  payment_gl_account: string;
15565
16684
  payment_journal_code: string;
16685
+ settings_confirmed_at: string | null;
15566
16686
  updated_at: string;
15567
16687
  user_id: string;
15568
16688
  vat_code_eu_reverse: string | null;
15569
16689
  vat_code_export: string | null;
15570
16690
  };
15571
16691
  Insert: {
16692
+ administration_code?: string | null;
15572
16693
  auto_invoice_enabled?: boolean;
16694
+ auto_invoice_start_date?: string | null;
15573
16695
  auto_invoice_trigger_statuses?: string[];
15574
16696
  created_at?: string;
15575
16697
  debtor_gl_account?: string;
@@ -15583,15 +16705,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15583
16705
  invoice_enabled_fo?: boolean;
15584
16706
  invoice_enabled_ho?: boolean;
15585
16707
  invoice_enabled_mo?: boolean;
16708
+ needs_review?: boolean;
15586
16709
  payment_gl_account?: string;
15587
16710
  payment_journal_code?: string;
16711
+ settings_confirmed_at?: string | null;
15588
16712
  updated_at?: string;
15589
16713
  user_id: string;
15590
16714
  vat_code_eu_reverse?: string | null;
15591
16715
  vat_code_export?: string | null;
15592
16716
  };
15593
16717
  Update: {
16718
+ administration_code?: string | null;
15594
16719
  auto_invoice_enabled?: boolean;
16720
+ auto_invoice_start_date?: string | null;
15595
16721
  auto_invoice_trigger_statuses?: string[];
15596
16722
  created_at?: string;
15597
16723
  debtor_gl_account?: string;
@@ -15605,8 +16731,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15605
16731
  invoice_enabled_fo?: boolean;
15606
16732
  invoice_enabled_ho?: boolean;
15607
16733
  invoice_enabled_mo?: boolean;
16734
+ needs_review?: boolean;
15608
16735
  payment_gl_account?: string;
15609
16736
  payment_journal_code?: string;
16737
+ settings_confirmed_at?: string | null;
15610
16738
  updated_at?: string;
15611
16739
  user_id?: string;
15612
16740
  vat_code_eu_reverse?: string | null;
@@ -15893,6 +17021,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15893
17021
  twinfield_push_queue: {
15894
17022
  Row: {
15895
17023
  action: string;
17024
+ attempt_started_at: string | null;
15896
17025
  attempts: number;
15897
17026
  connection_id: string | null;
15898
17027
  created_at: string;
@@ -15909,6 +17038,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15909
17038
  };
15910
17039
  Insert: {
15911
17040
  action?: string;
17041
+ attempt_started_at?: string | null;
15912
17042
  attempts?: number;
15913
17043
  connection_id?: string | null;
15914
17044
  created_at?: string;
@@ -15925,6 +17055,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15925
17055
  };
15926
17056
  Update: {
15927
17057
  action?: string;
17058
+ attempt_started_at?: string | null;
15928
17059
  attempts?: number;
15929
17060
  connection_id?: string | null;
15930
17061
  created_at?: string;
@@ -16122,13 +17253,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16122
17253
  workday_end?: string | null;
16123
17254
  workday_start?: string | null;
16124
17255
  };
16125
- Relationships: [{
16126
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16127
- columns: ["monteur_id"];
16128
- isOneToOne: true;
16129
- referencedRelation: "monteurs";
16130
- referencedColumns: ["id"];
16131
- }];
17256
+ Relationships: [];
16132
17257
  };
16133
17258
  uren_entries: {
16134
17259
  Row: {
@@ -16174,12 +17299,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16174
17299
  werkbon_id?: string | null;
16175
17300
  };
16176
17301
  Relationships: [{
16177
- foreignKeyName: "uren_entries_monteur_id_fkey";
16178
- columns: ["monteur_id"];
16179
- isOneToOne: false;
16180
- referencedRelation: "monteurs";
16181
- referencedColumns: ["id"];
16182
- }, {
16183
17302
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16184
17303
  columns: ["werkbon_id"];
16185
17304
  isOneToOne: false;
@@ -16220,114 +17339,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16220
17339
  };
16221
17340
  Relationships: [];
16222
17341
  };
16223
- uren_facturen: {
16224
- Row: {
16225
- created_at: string;
16226
- created_by: string | null;
16227
- customer_id: string | null;
16228
- customer_name: string | null;
16229
- id: string;
16230
- invoice_number: string | null;
16231
- note: string | null;
16232
- status: string;
16233
- total_excl_cents: number;
16234
- total_incl_cents: number;
16235
- updated_at: string;
16236
- vat_cents: number;
16237
- vat_percentage: number;
16238
- werkbon_id: string | null;
16239
- };
16240
- Insert: {
16241
- created_at?: string;
16242
- created_by?: string | null;
16243
- customer_id?: string | null;
16244
- customer_name?: string | null;
16245
- id?: string;
16246
- invoice_number?: string | null;
16247
- note?: string | null;
16248
- status?: string;
16249
- total_excl_cents?: number;
16250
- total_incl_cents?: number;
16251
- updated_at?: string;
16252
- vat_cents?: number;
16253
- vat_percentage?: number;
16254
- werkbon_id?: string | null;
16255
- };
16256
- Update: {
16257
- created_at?: string;
16258
- created_by?: string | null;
16259
- customer_id?: string | null;
16260
- customer_name?: string | null;
16261
- id?: string;
16262
- invoice_number?: string | null;
16263
- note?: string | null;
16264
- status?: string;
16265
- total_excl_cents?: number;
16266
- total_incl_cents?: number;
16267
- updated_at?: string;
16268
- vat_cents?: number;
16269
- vat_percentage?: number;
16270
- werkbon_id?: string | null;
16271
- };
16272
- Relationships: [{
16273
- foreignKeyName: "uren_facturen_customer_id_fkey";
16274
- columns: ["customer_id"];
16275
- isOneToOne: false;
16276
- referencedRelation: "itk_customers";
16277
- referencedColumns: ["id"];
16278
- }, {
16279
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16280
- columns: ["werkbon_id"];
16281
- isOneToOne: true;
16282
- referencedRelation: "werkbonnen";
16283
- referencedColumns: ["id"];
16284
- }];
16285
- };
16286
- uren_factuur_regels: {
16287
- Row: {
16288
- created_at: string;
16289
- description: string;
16290
- factuur_id: string;
16291
- id: string;
16292
- kind: string | null;
16293
- quantity: number;
16294
- sort_order: number;
16295
- total_cents: number;
16296
- unit: string;
16297
- unit_price_cents: number;
16298
- };
16299
- Insert: {
16300
- created_at?: string;
16301
- description: string;
16302
- factuur_id: string;
16303
- id?: string;
16304
- kind?: string | null;
16305
- quantity?: number;
16306
- sort_order?: number;
16307
- total_cents?: number;
16308
- unit?: string;
16309
- unit_price_cents?: number;
16310
- };
16311
- Update: {
16312
- created_at?: string;
16313
- description?: string;
16314
- factuur_id?: string;
16315
- id?: string;
16316
- kind?: string | null;
16317
- quantity?: number;
16318
- sort_order?: number;
16319
- total_cents?: number;
16320
- unit?: string;
16321
- unit_price_cents?: number;
16322
- };
16323
- Relationships: [{
16324
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16325
- columns: ["factuur_id"];
16326
- isOneToOne: false;
16327
- referencedRelation: "uren_facturen";
16328
- referencedColumns: ["id"];
16329
- }];
16330
- };
16331
17342
  uren_offerte_regels: {
16332
17343
  Row: {
16333
17344
  created_at: string;
@@ -16647,17 +17658,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16647
17658
  submitted_at?: string | null;
16648
17659
  updated_at?: string;
16649
17660
  };
16650
- Relationships: [{
16651
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16652
- columns: ["monteur_id"];
16653
- isOneToOne: false;
16654
- referencedRelation: "monteurs";
16655
- referencedColumns: ["id"];
16656
- }];
17661
+ Relationships: [];
16657
17662
  };
16658
17663
  user_module_permissions: {
16659
17664
  Row: {
16660
17665
  created_at: string;
17666
+ feature_id: string;
16661
17667
  id: string;
16662
17668
  module_id: string;
16663
17669
  permission: string;
@@ -16666,6 +17672,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16666
17672
  };
16667
17673
  Insert: {
16668
17674
  created_at?: string;
17675
+ feature_id?: string;
16669
17676
  id?: string;
16670
17677
  module_id: string;
16671
17678
  permission: string;
@@ -16674,6 +17681,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16674
17681
  };
16675
17682
  Update: {
16676
17683
  created_at?: string;
17684
+ feature_id?: string;
16677
17685
  id?: string;
16678
17686
  module_id?: string;
16679
17687
  permission?: string;
@@ -16709,6 +17717,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16709
17717
  referencedColumns: ["id"];
16710
17718
  }];
16711
17719
  };
17720
+ van_inventories: {
17721
+ Row: {
17722
+ barcode: string | null;
17723
+ created_at: string;
17724
+ id: string;
17725
+ monteur_id: string | null;
17726
+ price_per_unit: number;
17727
+ product_name: string;
17728
+ quantity_current: number;
17729
+ quantity_min: number;
17730
+ unit: string;
17731
+ updated_at: string;
17732
+ };
17733
+ Insert: {
17734
+ barcode?: string | null;
17735
+ created_at?: string;
17736
+ id?: string;
17737
+ monteur_id?: string | null;
17738
+ price_per_unit?: number;
17739
+ product_name: string;
17740
+ quantity_current?: number;
17741
+ quantity_min?: number;
17742
+ unit?: string;
17743
+ updated_at?: string;
17744
+ };
17745
+ Update: {
17746
+ barcode?: string | null;
17747
+ created_at?: string;
17748
+ id?: string;
17749
+ monteur_id?: string | null;
17750
+ price_per_unit?: number;
17751
+ product_name?: string;
17752
+ quantity_current?: number;
17753
+ quantity_min?: number;
17754
+ unit?: string;
17755
+ updated_at?: string;
17756
+ };
17757
+ Relationships: [{
17758
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17759
+ columns: ["monteur_id"];
17760
+ isOneToOne: false;
17761
+ referencedRelation: "profiles";
17762
+ referencedColumns: ["id"];
17763
+ }];
17764
+ };
16712
17765
  voorraad_custom_fields: {
16713
17766
  Row: {
16714
17767
  created_at: string;
@@ -17659,7 +18712,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17659
18712
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17660
18713
  columns: ["monteur_id"];
17661
18714
  isOneToOne: false;
17662
- referencedRelation: "monteurs";
18715
+ referencedRelation: "profiles";
17663
18716
  referencedColumns: ["id"];
17664
18717
  }, {
17665
18718
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17669,6 +18722,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17669
18722
  referencedColumns: ["id"];
17670
18723
  }];
17671
18724
  };
18725
+ work_order_photos: {
18726
+ Row: {
18727
+ ai_caption: string | null;
18728
+ ai_categorized_at: string | null;
18729
+ ai_labels: import("./types").Json | null;
18730
+ caption: string | null;
18731
+ created_at: string;
18732
+ id: string;
18733
+ monteur_id: string | null;
18734
+ photo_type: string;
18735
+ storage_path: string;
18736
+ updated_at: string;
18737
+ work_order_id: string;
18738
+ };
18739
+ Insert: {
18740
+ ai_caption?: string | null;
18741
+ ai_categorized_at?: string | null;
18742
+ ai_labels?: import("./types").Json | null;
18743
+ caption?: string | null;
18744
+ created_at?: string;
18745
+ id?: string;
18746
+ monteur_id?: string | null;
18747
+ photo_type?: string;
18748
+ storage_path: string;
18749
+ updated_at?: string;
18750
+ work_order_id: string;
18751
+ };
18752
+ Update: {
18753
+ ai_caption?: string | null;
18754
+ ai_categorized_at?: string | null;
18755
+ ai_labels?: import("./types").Json | null;
18756
+ caption?: string | null;
18757
+ created_at?: string;
18758
+ id?: string;
18759
+ monteur_id?: string | null;
18760
+ photo_type?: string;
18761
+ storage_path?: string;
18762
+ updated_at?: string;
18763
+ work_order_id?: string;
18764
+ };
18765
+ Relationships: [{
18766
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18767
+ columns: ["monteur_id"];
18768
+ isOneToOne: false;
18769
+ referencedRelation: "profiles";
18770
+ referencedColumns: ["id"];
18771
+ }, {
18772
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18773
+ columns: ["work_order_id"];
18774
+ isOneToOne: false;
18775
+ referencedRelation: "work_orders";
18776
+ referencedColumns: ["id"];
18777
+ }];
18778
+ };
17672
18779
  work_orders: {
17673
18780
  Row: {
17674
18781
  assigned_to: string | null;
@@ -17700,7 +18807,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17700
18807
  scheduled_end_time: string | null;
17701
18808
  scheduled_start_time: string | null;
17702
18809
  status: string;
17703
- tenant_id: string;
17704
18810
  total_hours_worked: number | null;
17705
18811
  total_price: number | null;
17706
18812
  travel_time_minutes: number | null;
@@ -17738,7 +18844,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17738
18844
  scheduled_end_time?: string | null;
17739
18845
  scheduled_start_time?: string | null;
17740
18846
  status?: string;
17741
- tenant_id: string;
17742
18847
  total_hours_worked?: number | null;
17743
18848
  total_price?: number | null;
17744
18849
  travel_time_minutes?: number | null;
@@ -17776,7 +18881,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17776
18881
  scheduled_end_time?: string | null;
17777
18882
  scheduled_start_time?: string | null;
17778
18883
  status?: string;
17779
- tenant_id?: string;
17780
18884
  total_hours_worked?: number | null;
17781
18885
  total_price?: number | null;
17782
18886
  travel_time_minutes?: number | null;
@@ -17790,12 +18894,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17790
18894
  isOneToOne: false;
17791
18895
  referencedRelation: "work_orders";
17792
18896
  referencedColumns: ["id"];
17793
- }, {
17794
- foreignKeyName: "work_orders_tenant_id_fkey";
17795
- columns: ["tenant_id"];
17796
- isOneToOne: false;
17797
- referencedRelation: "tenants";
17798
- referencedColumns: ["id"];
17799
18897
  }];
17800
18898
  };
17801
18899
  };
@@ -18066,19 +19164,127 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18066
19164
  total_stock: number | null;
18067
19165
  };
18068
19166
  Relationships: [{
18069
- foreignKeyName: "product_group_items_product_group_id_fkey";
18070
- columns: ["product_group_id"];
19167
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19168
+ columns: ["product_group_id"];
19169
+ isOneToOne: false;
19170
+ referencedRelation: "product_groups";
19171
+ referencedColumns: ["id"];
19172
+ }];
19173
+ };
19174
+ trade_item_stock_view: {
19175
+ Row: {
19176
+ stock: number | null;
19177
+ trade_item_id: string | null;
19178
+ };
19179
+ Relationships: [];
19180
+ };
19181
+ uren_facturen: {
19182
+ Row: {
19183
+ created_at: string | null;
19184
+ created_by: string | null;
19185
+ customer_id: string | null;
19186
+ customer_name: string | null;
19187
+ id: string | null;
19188
+ invoice_number: string | null;
19189
+ note: string | null;
19190
+ status: string | null;
19191
+ total_excl_cents: number | null;
19192
+ total_incl_cents: number | null;
19193
+ updated_at: string | null;
19194
+ vat_cents: number | null;
19195
+ vat_percentage: number | null;
19196
+ werkbon_id: string | null;
19197
+ };
19198
+ Insert: {
19199
+ created_at?: string | null;
19200
+ created_by?: string | null;
19201
+ customer_id?: string | null;
19202
+ customer_name?: string | null;
19203
+ id?: string | null;
19204
+ invoice_number?: string | null;
19205
+ note?: string | null;
19206
+ status?: string | null;
19207
+ total_excl_cents?: number | null;
19208
+ total_incl_cents?: number | null;
19209
+ updated_at?: string | null;
19210
+ vat_cents?: number | null;
19211
+ vat_percentage?: number | null;
19212
+ werkbon_id?: never;
19213
+ };
19214
+ Update: {
19215
+ created_at?: string | null;
19216
+ created_by?: string | null;
19217
+ customer_id?: string | null;
19218
+ customer_name?: string | null;
19219
+ id?: string | null;
19220
+ invoice_number?: string | null;
19221
+ note?: string | null;
19222
+ status?: string | null;
19223
+ total_excl_cents?: number | null;
19224
+ total_incl_cents?: number | null;
19225
+ updated_at?: string | null;
19226
+ vat_cents?: number | null;
19227
+ vat_percentage?: number | null;
19228
+ werkbon_id?: never;
19229
+ };
19230
+ Relationships: [{
19231
+ foreignKeyName: "invoices_customer_id_fkey";
19232
+ columns: ["customer_id"];
18071
19233
  isOneToOne: false;
18072
- referencedRelation: "product_groups";
19234
+ referencedRelation: "itk_customers";
18073
19235
  referencedColumns: ["id"];
18074
19236
  }];
18075
19237
  };
18076
- trade_item_stock_view: {
19238
+ uren_factuur_regels: {
18077
19239
  Row: {
18078
- stock: number | null;
18079
- trade_item_id: string | null;
19240
+ created_at: string | null;
19241
+ description: string | null;
19242
+ factuur_id: string | null;
19243
+ id: string | null;
19244
+ kind: string | null;
19245
+ quantity: number | null;
19246
+ sort_order: number | null;
19247
+ total_cents: number | null;
19248
+ unit: string | null;
19249
+ unit_price_cents: number | null;
18080
19250
  };
18081
- Relationships: [];
19251
+ Insert: {
19252
+ created_at?: string | null;
19253
+ description?: string | null;
19254
+ factuur_id?: string | null;
19255
+ id?: string | null;
19256
+ kind?: string | null;
19257
+ quantity?: number | null;
19258
+ sort_order?: number | null;
19259
+ total_cents?: number | null;
19260
+ unit?: string | null;
19261
+ unit_price_cents?: number | null;
19262
+ };
19263
+ Update: {
19264
+ created_at?: string | null;
19265
+ description?: string | null;
19266
+ factuur_id?: string | null;
19267
+ id?: string | null;
19268
+ kind?: string | null;
19269
+ quantity?: number | null;
19270
+ sort_order?: number | null;
19271
+ total_cents?: number | null;
19272
+ unit?: string | null;
19273
+ unit_price_cents?: number | null;
19274
+ };
19275
+ Relationships: [{
19276
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19277
+ columns: ["factuur_id"];
19278
+ isOneToOne: false;
19279
+ referencedRelation: "invoices";
19280
+ referencedColumns: ["id"];
19281
+ }, {
19282
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19283
+ columns: ["factuur_id"];
19284
+ isOneToOne: false;
19285
+ referencedRelation: "uren_facturen";
19286
+ referencedColumns: ["id"];
19287
+ }];
18082
19288
  };
18083
19289
  v_external_customers_exact: {
18084
19290
  Row: {
@@ -18480,6 +19686,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18480
19686
  };
18481
19687
  Returns: undefined;
18482
19688
  };
19689
+ approve_mailbox_order_proposal: {
19690
+ Args: {
19691
+ p_custom_fields: import("./types").Json;
19692
+ p_customer_id: string;
19693
+ p_delivery_date: string;
19694
+ p_field_values?: import("./types").Json;
19695
+ p_lines: import("./types").Json;
19696
+ p_notes: string;
19697
+ p_proposal_id: string;
19698
+ p_reviewed_by: string;
19699
+ };
19700
+ Returns: import("./types").Json;
19701
+ };
18483
19702
  assign_cart_numbers: {
18484
19703
  Args: {
18485
19704
  p_carts: import("./types").Json;
@@ -18531,6 +19750,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18531
19750
  };
18532
19751
  Returns: number;
18533
19752
  };
19753
+ can_manage_hours: {
19754
+ Args: never;
19755
+ Returns: boolean;
19756
+ };
18534
19757
  check_offer_product_available_stock: {
18535
19758
  Args: {
18536
19759
  p_campaign_product_id: string;
@@ -18568,6 +19791,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18568
19791
  gebruiker_id: string | null;
18569
19792
  gebruiker_naam: string;
18570
19793
  gestart_op: string | null;
19794
+ herkomst: string | null;
18571
19795
  id: string;
18572
19796
  idempotentie_sleutel: string | null;
18573
19797
  is_herprint: boolean;
@@ -18688,6 +19912,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18688
19912
  gebruiker_id: string | null;
18689
19913
  gebruiker_naam: string;
18690
19914
  gestart_op: string | null;
19915
+ herkomst: string | null;
18691
19916
  id: string;
18692
19917
  idempotentie_sleutel: string | null;
18693
19918
  is_herprint: boolean;
@@ -18720,6 +19945,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
19945
  };
18721
19946
  Returns: {
18722
19947
  action: string;
19948
+ attempt_started_at: string | null;
18723
19949
  attempts: number;
18724
19950
  connection_id: string | null;
18725
19951
  created_at: string;
@@ -18807,6 +20033,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18807
20033
  agent_naam: string;
18808
20034
  }[];
18809
20035
  };
20036
+ consume_van_inventory: {
20037
+ Args: {
20038
+ p_inventory_id: string;
20039
+ p_quantity: number;
20040
+ };
20041
+ Returns: {
20042
+ barcode: string | null;
20043
+ created_at: string;
20044
+ id: string;
20045
+ monteur_id: string | null;
20046
+ price_per_unit: number;
20047
+ product_name: string;
20048
+ quantity_current: number;
20049
+ quantity_min: number;
20050
+ unit: string;
20051
+ updated_at: string;
20052
+ };
20053
+ SetofOptions: {
20054
+ from: "*";
20055
+ to: "van_inventories";
20056
+ isOneToOne: true;
20057
+ isSetofReturn: false;
20058
+ };
20059
+ };
18810
20060
  control_get_todays_carts: {
18811
20061
  Args: never;
18812
20062
  Returns: {
@@ -18880,6 +20130,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18880
20130
  _user_id: string;
18881
20131
  };
18882
20132
  Returns: string;
20133
+ } | {
20134
+ Args: {
20135
+ _feature_id: string;
20136
+ _module_id: string;
20137
+ _user_id: string;
20138
+ };
20139
+ Returns: string;
18883
20140
  };
18884
20141
  email_auth_decrypt: {
18885
20142
  Args: {
@@ -18926,6 +20183,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18926
20183
  };
18927
20184
  Returns: string;
18928
20185
  };
20186
+ employee_day_hours: {
20187
+ Args: {
20188
+ _day: string;
20189
+ _employee_id: string;
20190
+ };
20191
+ Returns: number;
20192
+ };
18929
20193
  enqueue_cart_replan_if_unlocked: {
18930
20194
  Args: {
18931
20195
  p_order_id: string;
@@ -19231,12 +20495,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19231
20495
  Args: never;
19232
20496
  Returns: string;
19233
20497
  };
19234
- get_work_order_tenant_id: {
19235
- Args: {
19236
- wo_id: string;
19237
- };
19238
- Returns: string;
19239
- };
19240
20498
  has_module_permission: {
19241
20499
  Args: {
19242
20500
  _min: string;
@@ -19256,6 +20514,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19256
20514
  Args: never;
19257
20515
  Returns: boolean;
19258
20516
  };
20517
+ invoice_create_from_source: {
20518
+ Args: {
20519
+ _payload?: import("./types").Json;
20520
+ _source_id: string;
20521
+ _source_type: string;
20522
+ };
20523
+ Returns: import("./types").Json;
20524
+ };
20525
+ invoice_get_billable_lines: {
20526
+ Args: {
20527
+ _invoice_id: string;
20528
+ };
20529
+ Returns: import("./types").Json;
20530
+ };
20531
+ invoice_get_for_source: {
20532
+ Args: {
20533
+ _source_id: string;
20534
+ _source_type: string;
20535
+ };
20536
+ Returns: import("./types").Json;
20537
+ };
20538
+ invoice_get_summary: {
20539
+ Args: {
20540
+ _invoice_id: string;
20541
+ };
20542
+ Returns: import("./types").Json;
20543
+ };
20544
+ invoice_list_sources: {
20545
+ Args: {
20546
+ _limit?: number;
20547
+ _source_type?: string;
20548
+ };
20549
+ Returns: import("./types").Json;
20550
+ };
20551
+ invoice_recalc_totals: {
20552
+ Args: {
20553
+ _invoice_id: string;
20554
+ };
20555
+ Returns: import("./types").Json;
20556
+ };
19259
20557
  is_authenticated: {
19260
20558
  Args: never;
19261
20559
  Returns: boolean;
@@ -19270,6 +20568,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19270
20568
  };
19271
20569
  Returns: boolean;
19272
20570
  };
20571
+ is_time_log_week_locked: {
20572
+ Args: {
20573
+ p_employee_id: string;
20574
+ p_start_time: string;
20575
+ };
20576
+ Returns: boolean;
20577
+ };
19273
20578
  is_user_admin: {
19274
20579
  Args: never;
19275
20580
  Returns: boolean;
@@ -19278,12 +20583,59 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19278
20583
  Args: never;
19279
20584
  Returns: boolean;
19280
20585
  };
20586
+ itk_offerte_naar_werkbon: {
20587
+ Args: {
20588
+ _offerte_id: string;
20589
+ };
20590
+ Returns: string;
20591
+ };
20592
+ itk_offerte_restant_mandaat: {
20593
+ Args: {
20594
+ _exclude_offerte_id?: string;
20595
+ _werkbon_id: string;
20596
+ };
20597
+ Returns: number;
20598
+ };
19281
20599
  jwt_has_role: {
19282
20600
  Args: {
19283
20601
  _role: Database["public"]["Enums"]["app_role"];
19284
20602
  };
19285
20603
  Returns: boolean;
19286
20604
  };
20605
+ list_medewerkers: {
20606
+ Args: never;
20607
+ Returns: {
20608
+ avatar_url: string;
20609
+ color: string;
20610
+ display_name: string;
20611
+ email: string;
20612
+ hours_fri: number;
20613
+ hours_mon: number;
20614
+ hours_thu: number;
20615
+ hours_tue: number;
20616
+ hours_wed: number;
20617
+ id: string;
20618
+ is_active: boolean;
20619
+ leave_balance_hours: number;
20620
+ persnr: string;
20621
+ phone: string;
20622
+ roles: string[];
20623
+ }[];
20624
+ };
20625
+ list_monteur_absences: {
20626
+ Args: {
20627
+ _from: string;
20628
+ _to: string;
20629
+ };
20630
+ Returns: {
20631
+ absence_date: string;
20632
+ end_time: string;
20633
+ full_day: boolean;
20634
+ kind: string;
20635
+ monteur_id: string;
20636
+ start_time: string;
20637
+ }[];
20638
+ };
19287
20639
  list_monteurs: {
19288
20640
  Args: never;
19289
20641
  Returns: {
@@ -19616,17 +20968,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19616
20968
  Returns: string;
19617
20969
  };
19618
20970
  logistics_emit_event: {
19619
- Args: {
19620
- p_event_type: string;
19621
- p_idempotency_key?: string;
19622
- p_order_ref: string;
19623
- p_payload?: import("./types").Json;
19624
- p_shadow?: boolean;
19625
- p_source_module: string;
19626
- p_strategy_id?: string;
19627
- };
19628
- Returns: import("./types").Json;
19629
- } | {
19630
20971
  Args: {
19631
20972
  p_event_type: string;
19632
20973
  p_idempotency_key?: string;
@@ -20081,6 +21422,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20081
21422
  my_module_permissions: {
20082
21423
  Args: never;
20083
21424
  Returns: {
21425
+ feature_id: string;
20084
21426
  module_id: string;
20085
21427
  permission: string;
20086
21428
  }[];
@@ -20256,6 +21598,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20256
21598
  isSetofReturn: false;
20257
21599
  };
20258
21600
  };
21601
+ pick_cleanup_maintenance: {
21602
+ Args: {
21603
+ _heartbeat_hours?: number;
21604
+ _log_days?: number;
21605
+ };
21606
+ Returns: import("./types").Json;
21607
+ };
20259
21608
  pick_complete_print: {
20260
21609
  Args: {
20261
21610
  _printer_id: string;
@@ -20307,6 +21656,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20307
21656
  Args: never;
20308
21657
  Returns: string;
20309
21658
  };
21659
+ pick_day_counts: {
21660
+ Args: {
21661
+ _pick_day?: string;
21662
+ _screen_id?: string;
21663
+ _station_id?: string;
21664
+ };
21665
+ Returns: import("./types").Json;
21666
+ };
20310
21667
  pick_document_layout_data: {
20311
21668
  Args: {
20312
21669
  _layout_id: string;
@@ -20344,6 +21701,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20344
21701
  };
20345
21702
  Returns: undefined;
20346
21703
  };
21704
+ pick_reprint_document: {
21705
+ Args: {
21706
+ _queue_item_id: string;
21707
+ _session_id: string;
21708
+ _throttle_seconds?: number;
21709
+ };
21710
+ Returns: string;
21711
+ };
20347
21712
  pick_reset_print: {
20348
21713
  Args: {
20349
21714
  _queue_item_id: string;
@@ -20409,6 +21774,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20409
21774
  };
20410
21775
  Returns: string;
20411
21776
  };
21777
+ pick_sync_queue_throttled: {
21778
+ Args: {
21779
+ _min_seconds?: number;
21780
+ };
21781
+ Returns: import("./types").Json;
21782
+ };
20412
21783
  pickstation_get_orders_raw: {
20413
21784
  Args: never;
20414
21785
  Returns: import("./types").Json;
@@ -20470,6 +21841,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20470
21841
  };
20471
21842
  Returns: undefined;
20472
21843
  };
21844
+ quote_create_from_source: {
21845
+ Args: {
21846
+ _payload?: import("./types").Json;
21847
+ _source_id: string;
21848
+ _source_type: string;
21849
+ };
21850
+ Returns: string;
21851
+ };
21852
+ quote_get_billable_lines: {
21853
+ Args: {
21854
+ _quotation_id: string;
21855
+ };
21856
+ Returns: import("./types").Json;
21857
+ };
21858
+ quote_get_summary: {
21859
+ Args: {
21860
+ _quotation_id: string;
21861
+ };
21862
+ Returns: import("./types").Json;
21863
+ };
21864
+ quote_list_packages: {
21865
+ Args: never;
21866
+ Returns: import("./types").Json;
21867
+ };
21868
+ quote_list_sources: {
21869
+ Args: {
21870
+ _limit?: number;
21871
+ _source_type?: string;
21872
+ };
21873
+ Returns: import("./types").Json;
21874
+ };
20473
21875
  recompute_all_reserved_stock: {
20474
21876
  Args: never;
20475
21877
  Returns: undefined;
@@ -20523,6 +21925,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20523
21925
  };
20524
21926
  Returns: boolean;
20525
21927
  };
21928
+ release_stale_order_invoice_links: {
21929
+ Args: {
21930
+ _minutes?: number;
21931
+ };
21932
+ Returns: number;
21933
+ };
20526
21934
  reorder_customer_price_groups: {
20527
21935
  Args: {
20528
21936
  _ids: string[];
@@ -20961,6 +22369,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20961
22369
  };
20962
22370
  Returns: string[];
20963
22371
  };
22372
+ switch_time_log: {
22373
+ Args: {
22374
+ p_employee_id: string;
22375
+ p_start_lat?: number;
22376
+ p_start_lng?: number;
22377
+ p_type: string;
22378
+ p_work_order_id?: string;
22379
+ };
22380
+ Returns: import("./types").Json;
22381
+ };
20964
22382
  sync_all_layer_stocks: {
20965
22383
  Args: never;
20966
22384
  Returns: undefined;
@@ -20995,6 +22413,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20995
22413
  };
20996
22414
  Returns: undefined;
20997
22415
  };
22416
+ sync_sick_time_off: {
22417
+ Args: {
22418
+ _period_id: string;
22419
+ };
22420
+ Returns: number;
22421
+ };
20998
22422
  trade_item_stock_duplicates: {
20999
22423
  Args: never;
21000
22424
  Returns: {
@@ -21011,6 +22435,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21011
22435
  };
21012
22436
  Returns: boolean;
21013
22437
  };
22438
+ twinfield_cron_lock_acquire: {
22439
+ Args: {
22440
+ _job_name: string;
22441
+ _stale_seconds?: number;
22442
+ };
22443
+ Returns: boolean;
22444
+ };
22445
+ twinfield_cron_lock_release: {
22446
+ Args: {
22447
+ _error?: string;
22448
+ _job_name: string;
22449
+ };
22450
+ Returns: undefined;
22451
+ };
22452
+ twinfield_deactivate_connection: {
22453
+ Args: {
22454
+ p_connection_id: string;
22455
+ p_user_id: string;
22456
+ };
22457
+ Returns: import("./types").Json;
22458
+ };
22459
+ twinfield_handle_administration_change: {
22460
+ Args: {
22461
+ _administration_code: string;
22462
+ _user_id: string;
22463
+ };
22464
+ Returns: undefined;
22465
+ };
22466
+ twinfield_prune_push_queue: {
22467
+ Args: never;
22468
+ Returns: number;
22469
+ };
21014
22470
  twinfield_register_cron: {
21015
22471
  Args: {
21016
22472
  apikey?: string;
@@ -21026,10 +22482,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21026
22482
  p_company_name?: string;
21027
22483
  p_environment: string;
21028
22484
  p_office_code?: string;
22485
+ p_reset_sync?: boolean;
21029
22486
  p_status?: string;
21030
22487
  p_user_id: string;
21031
22488
  };
21032
- Returns: string;
22489
+ Returns: import("./types").Json;
21033
22490
  };
21034
22491
  upsert_auto_fulfillment_log: {
21035
22492
  Args: {
@@ -21050,11 +22507,31 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21050
22507
  Args: never;
21051
22508
  Returns: string;
21052
22509
  };
22510
+ wo_create_from_source: {
22511
+ Args: {
22512
+ _payload?: import("./types").Json;
22513
+ _source_id: string;
22514
+ _source_type: string;
22515
+ };
22516
+ Returns: string;
22517
+ };
22518
+ wo_get_billable_lines: {
22519
+ Args: {
22520
+ _work_order_id: string;
22521
+ };
22522
+ Returns: import("./types").Json;
22523
+ };
22524
+ wo_get_summary: {
22525
+ Args: {
22526
+ _work_order_id: string;
22527
+ };
22528
+ Returns: import("./types").Json;
22529
+ };
21053
22530
  };
21054
22531
  Enums: {
21055
22532
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21056
22533
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21057
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22534
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21058
22535
  doc_orientation: "portrait" | "landscape";
21059
22536
  exact_env: "staging" | "live";
21060
22537
  exact_push_status: "pending" | "sent" | "error";