@flowselections/floriday-authenticatie-module 1.0.38 → 1.0.40

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 (37) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1672 -300
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +1672 -300
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +1672 -300
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +1752 -348
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.js +3 -0
  10. package/dist-lib/lib/cron/process-stock-queue.js +2 -2
  11. package/dist-lib/lib/floricode.functions.d.ts +11263 -1659
  12. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1672 -300
  14. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-labels.functions.d.ts +1672 -300
  16. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-public.functions.d.ts +9654 -1422
  18. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-stickers.functions.d.ts +1672 -300
  20. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-sync.functions.d.ts +49879 -7347
  22. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-writes.functions.d.ts +9654 -1422
  24. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday.functions.d.ts +30574 -4503
  26. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.js +46 -3
  28. package/dist-lib/lib/print/floriday-print.d.ts +36 -0
  29. package/dist-lib/lib/print/floriday-print.d.ts.map +1 -0
  30. package/dist-lib/lib/print/floriday-print.js +204 -0
  31. package/dist-lib/lib/print/index.d.ts +3 -0
  32. package/dist-lib/lib/print/index.d.ts.map +1 -0
  33. package/dist-lib/lib/print/index.js +2 -0
  34. package/dist-lib/lib/print/pdf-to-base64.d.ts +5 -0
  35. package/dist-lib/lib/print/pdf-to-base64.d.ts.map +1 -0
  36. package/dist-lib/lib/print/pdf-to-base64.js +27 -0
  37. package/package.json +12 -2
@@ -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.js").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.js").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.js").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.js").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.js").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.js").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.js").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.js").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.js").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
  };
@@ -8552,6 +9125,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8552
9125
  id: string;
8553
9126
  last_error: string | null;
8554
9127
  last_error_at: string | null;
9128
+ last_error_code: string | null;
9129
+ last_gateway_status: number | null;
9130
+ last_response: import("./types.js").Json | null;
8555
9131
  last_sent_hash: string | null;
8556
9132
  locked_by: string | null;
8557
9133
  locked_until: string | null;
@@ -8572,6 +9148,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8572
9148
  id?: string;
8573
9149
  last_error?: string | null;
8574
9150
  last_error_at?: string | null;
9151
+ last_error_code?: string | null;
9152
+ last_gateway_status?: number | null;
9153
+ last_response?: import("./types.js").Json | null;
8575
9154
  last_sent_hash?: string | null;
8576
9155
  locked_by?: string | null;
8577
9156
  locked_until?: string | null;
@@ -8592,6 +9171,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8592
9171
  id?: string;
8593
9172
  last_error?: string | null;
8594
9173
  last_error_at?: string | null;
9174
+ last_error_code?: string | null;
9175
+ last_gateway_status?: number | null;
9176
+ last_response?: import("./types.js").Json | null;
8595
9177
  last_sent_hash?: string | null;
8596
9178
  locked_by?: string | null;
8597
9179
  locked_until?: string | null;
@@ -9971,6 +10553,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9971
10553
  };
9972
10554
  Relationships: [];
9973
10555
  };
10556
+ material_usage: {
10557
+ Row: {
10558
+ created_at: string;
10559
+ id: string;
10560
+ material_name: string;
10561
+ monteur_id: string | null;
10562
+ price_at_time: number;
10563
+ quantity_used: number;
10564
+ updated_at: string;
10565
+ van_inventory_id: string | null;
10566
+ work_order_id: string;
10567
+ };
10568
+ Insert: {
10569
+ created_at?: string;
10570
+ id?: string;
10571
+ material_name: string;
10572
+ monteur_id?: string | null;
10573
+ price_at_time?: number;
10574
+ quantity_used?: number;
10575
+ updated_at?: string;
10576
+ van_inventory_id?: string | null;
10577
+ work_order_id: string;
10578
+ };
10579
+ Update: {
10580
+ created_at?: string;
10581
+ id?: string;
10582
+ material_name?: string;
10583
+ monteur_id?: string | null;
10584
+ price_at_time?: number;
10585
+ quantity_used?: number;
10586
+ updated_at?: string;
10587
+ van_inventory_id?: string | null;
10588
+ work_order_id?: string;
10589
+ };
10590
+ Relationships: [{
10591
+ foreignKeyName: "material_usage_monteur_id_fkey";
10592
+ columns: ["monteur_id"];
10593
+ isOneToOne: false;
10594
+ referencedRelation: "profiles";
10595
+ referencedColumns: ["id"];
10596
+ }, {
10597
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10598
+ columns: ["van_inventory_id"];
10599
+ isOneToOne: false;
10600
+ referencedRelation: "van_inventories";
10601
+ referencedColumns: ["id"];
10602
+ }, {
10603
+ foreignKeyName: "material_usage_work_order_id_fkey";
10604
+ columns: ["work_order_id"];
10605
+ isOneToOne: false;
10606
+ referencedRelation: "work_orders";
10607
+ referencedColumns: ["id"];
10608
+ }];
10609
+ };
10610
+ medewerker_details: {
10611
+ Row: {
10612
+ color: string | null;
10613
+ created_at: string;
10614
+ hours_fri: number | null;
10615
+ hours_mon: number | null;
10616
+ hours_thu: number | null;
10617
+ hours_tue: number | null;
10618
+ hours_wed: number | null;
10619
+ id: string;
10620
+ is_active: boolean;
10621
+ leave_balance_hours: number;
10622
+ persnr: string | null;
10623
+ phone: string | null;
10624
+ profile_id: string;
10625
+ updated_at: string;
10626
+ };
10627
+ Insert: {
10628
+ color?: string | null;
10629
+ created_at?: string;
10630
+ hours_fri?: number | null;
10631
+ hours_mon?: number | null;
10632
+ hours_thu?: number | null;
10633
+ hours_tue?: number | null;
10634
+ hours_wed?: number | null;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ leave_balance_hours?: number;
10638
+ persnr?: string | null;
10639
+ phone?: string | null;
10640
+ profile_id: string;
10641
+ updated_at?: string;
10642
+ };
10643
+ Update: {
10644
+ color?: string | null;
10645
+ created_at?: string;
10646
+ hours_fri?: number | null;
10647
+ hours_mon?: number | null;
10648
+ hours_thu?: number | null;
10649
+ hours_tue?: number | null;
10650
+ hours_wed?: number | null;
10651
+ id?: string;
10652
+ is_active?: boolean;
10653
+ leave_balance_hours?: number;
10654
+ persnr?: string | null;
10655
+ phone?: string | null;
10656
+ profile_id?: string;
10657
+ updated_at?: string;
10658
+ };
10659
+ Relationships: [{
10660
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10661
+ columns: ["profile_id"];
10662
+ isOneToOne: true;
10663
+ referencedRelation: "profiles";
10664
+ referencedColumns: ["id"];
10665
+ }];
10666
+ };
9974
10667
  module_features: {
9975
10668
  Row: {
9976
10669
  created_at: string;
@@ -10031,8 +10724,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10031
10724
  module_registry: {
10032
10725
  Row: {
10033
10726
  created_at: string;
10727
+ enforce: boolean;
10034
10728
  is_active: boolean;
10035
10729
  last_seen_at: string;
10730
+ missing_count: number;
10036
10731
  module_id: string;
10037
10732
  name: string;
10038
10733
  shell_id: string | null;
@@ -10040,8 +10735,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10040
10735
  };
10041
10736
  Insert: {
10042
10737
  created_at?: string;
10738
+ enforce?: boolean;
10043
10739
  is_active?: boolean;
10044
10740
  last_seen_at?: string;
10741
+ missing_count?: number;
10045
10742
  module_id: string;
10046
10743
  name: string;
10047
10744
  shell_id?: string | null;
@@ -10049,8 +10746,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10049
10746
  };
10050
10747
  Update: {
10051
10748
  created_at?: string;
10749
+ enforce?: boolean;
10052
10750
  is_active?: boolean;
10053
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10054
10753
  module_id?: string;
10055
10754
  name?: string;
10056
10755
  shell_id?: string | null;
@@ -10099,72 +10798,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10099
10798
  };
10100
10799
  Update: {
10101
10800
  created_at?: string;
10102
- description?: string | null;
10103
- id?: string;
10104
- is_active?: boolean;
10105
- last_seen_at?: string | null;
10106
- module_key?: string;
10107
- module_name?: string;
10108
- updated_at?: string;
10109
- };
10110
- Relationships: [];
10111
- };
10112
- monteurs: {
10113
- Row: {
10114
- avatar_url: string | null;
10115
- color: string | null;
10116
- created_at: string;
10117
- email: string | null;
10118
- id: string;
10119
- is_active: boolean;
10120
- leave_balance_hours: number;
10121
- name: string;
10122
- persnr: number | null;
10123
- phone: string | null;
10124
- role: string;
10125
- tenant_id: string;
10126
- updated_at: string;
10127
- user_id: string | null;
10128
- };
10129
- Insert: {
10130
- avatar_url?: string | null;
10131
- color?: string | null;
10132
- created_at?: string;
10133
- email?: string | null;
10134
- id?: string;
10135
- is_active?: boolean;
10136
- leave_balance_hours?: number;
10137
- name: string;
10138
- persnr?: number | null;
10139
- phone?: string | null;
10140
- role?: string;
10141
- tenant_id: string;
10142
- updated_at?: string;
10143
- user_id?: string | null;
10144
- };
10145
- Update: {
10146
- avatar_url?: string | null;
10147
- color?: string | null;
10148
- created_at?: string;
10149
- email?: string | null;
10150
- id?: string;
10151
- is_active?: boolean;
10152
- leave_balance_hours?: number;
10153
- name?: string;
10154
- persnr?: number | null;
10155
- phone?: string | null;
10156
- role?: string;
10157
- tenant_id?: string;
10801
+ description?: string | null;
10802
+ id?: string;
10803
+ is_active?: boolean;
10804
+ last_seen_at?: string | null;
10805
+ module_key?: string;
10806
+ module_name?: string;
10158
10807
  updated_at?: string;
10159
- user_id?: string | null;
10160
10808
  };
10161
- Relationships: [{
10162
- foreignKeyName: "monteurs_tenant_id_fkey";
10163
- columns: ["tenant_id"];
10164
- isOneToOne: false;
10165
- referencedRelation: "tenants";
10166
- referencedColumns: ["id"];
10167
- }];
10809
+ Relationships: [];
10168
10810
  };
10169
10811
  nmbrs_component_mapping: {
10170
10812
  Row: {
@@ -10236,13 +10878,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10236
10878
  nmbrs_employee_number?: string;
10237
10879
  updated_at?: string;
10238
10880
  };
10239
- Relationships: [{
10240
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10241
- columns: ["monteur_id"];
10242
- isOneToOne: true;
10243
- referencedRelation: "monteurs";
10244
- referencedColumns: ["id"];
10245
- }];
10881
+ Relationships: [];
10246
10882
  };
10247
10883
  nmbrs_export_lines: {
10248
10884
  Row: {
@@ -10291,12 +10927,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10291
10927
  wage_code?: string;
10292
10928
  };
10293
10929
  Relationships: [{
10294
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10295
- columns: ["monteur_id"];
10296
- isOneToOne: false;
10297
- referencedRelation: "monteurs";
10298
- referencedColumns: ["id"];
10299
- }, {
10300
10930
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10301
10931
  columns: ["run_id"];
10302
10932
  isOneToOne: false;
@@ -11119,6 +11749,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11119
11749
  };
11120
11750
  order_invoice_links: {
11121
11751
  Row: {
11752
+ administration_code: string | null;
11122
11753
  attempts: number;
11123
11754
  created_at: string;
11124
11755
  error_message: string | null;
@@ -11131,6 +11762,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11131
11762
  updated_at: string;
11132
11763
  };
11133
11764
  Insert: {
11765
+ administration_code?: string | null;
11134
11766
  attempts?: number;
11135
11767
  created_at?: string;
11136
11768
  error_message?: string | null;
@@ -11143,6 +11775,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11143
11775
  updated_at?: string;
11144
11776
  };
11145
11777
  Update: {
11778
+ administration_code?: string | null;
11146
11779
  attempts?: number;
11147
11780
  created_at?: string;
11148
11781
  error_message?: string | null;
@@ -11330,6 +11963,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11330
11963
  orders: {
11331
11964
  Row: {
11332
11965
  buffer_id: string | null;
11966
+ cancel_reason: string | null;
11967
+ cancelled_at: string | null;
11333
11968
  created_at: string;
11334
11969
  custom_fields: import("./types.js").Json;
11335
11970
  customer_id: string | null;
@@ -11352,6 +11987,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11352
11987
  };
11353
11988
  Insert: {
11354
11989
  buffer_id?: string | null;
11990
+ cancel_reason?: string | null;
11991
+ cancelled_at?: string | null;
11355
11992
  created_at?: string;
11356
11993
  custom_fields?: import("./types.js").Json;
11357
11994
  customer_id?: string | null;
@@ -11374,6 +12011,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11374
12011
  };
11375
12012
  Update: {
11376
12013
  buffer_id?: string | null;
12014
+ cancel_reason?: string | null;
12015
+ cancelled_at?: string | null;
11377
12016
  created_at?: string;
11378
12017
  custom_fields?: import("./types.js").Json;
11379
12018
  customer_id?: string | null;
@@ -12302,6 +12941,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12302
12941
  referencedColumns: ["id"];
12303
12942
  }];
12304
12943
  };
12944
+ pick_sync_state: {
12945
+ Row: {
12946
+ id: boolean;
12947
+ last_cleanup_at: string | null;
12948
+ last_sync_at: string | null;
12949
+ updated_at: string;
12950
+ };
12951
+ Insert: {
12952
+ id?: boolean;
12953
+ last_cleanup_at?: string | null;
12954
+ last_sync_at?: string | null;
12955
+ updated_at?: string;
12956
+ };
12957
+ Update: {
12958
+ id?: boolean;
12959
+ last_cleanup_at?: string | null;
12960
+ last_sync_at?: string | null;
12961
+ updated_at?: string;
12962
+ };
12963
+ Relationships: [];
12964
+ };
12305
12965
  pick_task_document_types: {
12306
12966
  Row: {
12307
12967
  created_at: string;
@@ -12584,6 +13244,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12584
13244
  gebruiker_id: string | null;
12585
13245
  gebruiker_naam: string;
12586
13246
  gestart_op: string | null;
13247
+ herkomst: string | null;
12587
13248
  id: string;
12588
13249
  idempotentie_sleutel: string | null;
12589
13250
  is_herprint: boolean;
@@ -12613,6 +13274,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12613
13274
  gebruiker_id?: string | null;
12614
13275
  gebruiker_naam?: string;
12615
13276
  gestart_op?: string | null;
13277
+ herkomst?: string | null;
12616
13278
  id?: string;
12617
13279
  idempotentie_sleutel?: string | null;
12618
13280
  is_herprint?: boolean;
@@ -12642,6 +13304,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12642
13304
  gebruiker_id?: string | null;
12643
13305
  gebruiker_naam?: string;
12644
13306
  gestart_op?: string | null;
13307
+ herkomst?: string | null;
12645
13308
  id?: string;
12646
13309
  idempotentie_sleutel?: string | null;
12647
13310
  is_herprint?: boolean;
@@ -13436,6 +14099,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13436
14099
  };
13437
14100
  Relationships: [];
13438
14101
  };
14102
+ profile_modules: {
14103
+ Row: {
14104
+ created_at: string;
14105
+ id: string;
14106
+ module_id: string;
14107
+ profile_id: string;
14108
+ };
14109
+ Insert: {
14110
+ created_at?: string;
14111
+ id?: string;
14112
+ module_id: string;
14113
+ profile_id: string;
14114
+ };
14115
+ Update: {
14116
+ created_at?: string;
14117
+ id?: string;
14118
+ module_id?: string;
14119
+ profile_id?: string;
14120
+ };
14121
+ Relationships: [{
14122
+ foreignKeyName: "profile_modules_profile_id_fkey";
14123
+ columns: ["profile_id"];
14124
+ isOneToOne: false;
14125
+ referencedRelation: "profiles_org";
14126
+ referencedColumns: ["id"];
14127
+ }];
14128
+ };
14129
+ profile_roles: {
14130
+ Row: {
14131
+ created_at: string;
14132
+ id: string;
14133
+ profile_id: string;
14134
+ role_id: string;
14135
+ };
14136
+ Insert: {
14137
+ created_at?: string;
14138
+ id?: string;
14139
+ profile_id: string;
14140
+ role_id: string;
14141
+ };
14142
+ Update: {
14143
+ created_at?: string;
14144
+ id?: string;
14145
+ profile_id?: string;
14146
+ role_id?: string;
14147
+ };
14148
+ Relationships: [{
14149
+ foreignKeyName: "profile_roles_profile_id_fkey";
14150
+ columns: ["profile_id"];
14151
+ isOneToOne: false;
14152
+ referencedRelation: "profiles_org";
14153
+ referencedColumns: ["id"];
14154
+ }, {
14155
+ foreignKeyName: "profile_roles_role_id_fkey";
14156
+ columns: ["role_id"];
14157
+ isOneToOne: false;
14158
+ referencedRelation: "roles";
14159
+ referencedColumns: ["id"];
14160
+ }];
14161
+ };
13439
14162
  profiles: {
13440
14163
  Row: {
13441
14164
  address: string | null;
@@ -13481,6 +14204,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13481
14204
  referencedColumns: ["id"];
13482
14205
  }];
13483
14206
  };
14207
+ profiles_org: {
14208
+ Row: {
14209
+ created_at: string;
14210
+ id: string;
14211
+ is_default: boolean;
14212
+ name: string;
14213
+ tenant_id: string | null;
14214
+ updated_at: string;
14215
+ };
14216
+ Insert: {
14217
+ created_at?: string;
14218
+ id?: string;
14219
+ is_default?: boolean;
14220
+ name: string;
14221
+ tenant_id?: string | null;
14222
+ updated_at?: string;
14223
+ };
14224
+ Update: {
14225
+ created_at?: string;
14226
+ id?: string;
14227
+ is_default?: boolean;
14228
+ name?: string;
14229
+ tenant_id?: string | null;
14230
+ updated_at?: string;
14231
+ };
14232
+ Relationships: [{
14233
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14234
+ columns: ["tenant_id"];
14235
+ isOneToOne: false;
14236
+ referencedRelation: "tenants";
14237
+ referencedColumns: ["id"];
14238
+ }];
14239
+ };
13484
14240
  projects: {
13485
14241
  Row: {
13486
14242
  contact_name: string | null;
@@ -14655,6 +15411,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14655
15411
  type: string;
14656
15412
  updated_at: string;
14657
15413
  vereist_medewerker: boolean;
15414
+ werkplek: string | null;
14658
15415
  };
14659
15416
  Insert: {
14660
15417
  actief?: boolean;
@@ -14668,6 +15425,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14668
15425
  type?: string;
14669
15426
  updated_at?: string;
14670
15427
  vereist_medewerker?: boolean;
15428
+ werkplek?: string | null;
14671
15429
  };
14672
15430
  Update: {
14673
15431
  actief?: boolean;
@@ -14681,9 +15439,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14681
15439
  type?: string;
14682
15440
  updated_at?: string;
14683
15441
  vereist_medewerker?: boolean;
15442
+ werkplek?: string | null;
14684
15443
  };
14685
15444
  Relationships: [];
14686
15445
  };
15446
+ sick_periods: {
15447
+ Row: {
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
+ Insert: {
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
+ Update: {
15466
+ created_at?: string;
15467
+ employee_id?: string;
15468
+ end_date?: string | null;
15469
+ id?: string;
15470
+ notes?: string | null;
15471
+ start_date?: string;
15472
+ updated_at?: string;
15473
+ };
15474
+ Relationships: [{
15475
+ foreignKeyName: "sick_periods_employee_id_fkey";
15476
+ columns: ["employee_id"];
15477
+ isOneToOne: false;
15478
+ referencedRelation: "profiles";
15479
+ referencedColumns: ["id"];
15480
+ }];
15481
+ };
14687
15482
  sidebar_config: {
14688
15483
  Row: {
14689
15484
  id: string;
@@ -14981,6 +15776,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14981
15776
  };
14982
15777
  Relationships: [];
14983
15778
  };
15779
+ time_compensation_entries: {
15780
+ Row: {
15781
+ created_at: string;
15782
+ employee_id: string;
15783
+ entry_date: string;
15784
+ id: string;
15785
+ km: number;
15786
+ meal_allowance: number;
15787
+ notes: string | null;
15788
+ standby_evening: number;
15789
+ standby_weekend: number;
15790
+ tvt_change: number;
15791
+ updated_at: string;
15792
+ };
15793
+ Insert: {
15794
+ created_at?: string;
15795
+ employee_id: string;
15796
+ entry_date: string;
15797
+ id?: string;
15798
+ km?: number;
15799
+ meal_allowance?: number;
15800
+ notes?: string | null;
15801
+ standby_evening?: number;
15802
+ standby_weekend?: number;
15803
+ tvt_change?: number;
15804
+ updated_at?: string;
15805
+ };
15806
+ Update: {
15807
+ created_at?: string;
15808
+ employee_id?: string;
15809
+ entry_date?: string;
15810
+ id?: string;
15811
+ km?: number;
15812
+ meal_allowance?: number;
15813
+ notes?: string | null;
15814
+ standby_evening?: number;
15815
+ standby_weekend?: number;
15816
+ tvt_change?: number;
15817
+ updated_at?: string;
15818
+ };
15819
+ Relationships: [{
15820
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15821
+ columns: ["employee_id"];
15822
+ isOneToOne: false;
15823
+ referencedRelation: "profiles";
15824
+ referencedColumns: ["id"];
15825
+ }];
15826
+ };
14984
15827
  time_entries: {
14985
15828
  Row: {
14986
15829
  created_at: string;
@@ -15015,65 +15858,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15015
15858
  undertime?: number;
15016
15859
  updated_at?: string;
15017
15860
  };
15861
+ Relationships: [];
15862
+ };
15863
+ time_log_week_approvals: {
15864
+ Row: {
15865
+ approved_at: string | null;
15866
+ approved_by: string | null;
15867
+ created_at: string;
15868
+ employee_id: string;
15869
+ id: string;
15870
+ locked: boolean;
15871
+ notes: string | null;
15872
+ status: string;
15873
+ submitted_at: string | null;
15874
+ updated_at: string;
15875
+ week_start: string;
15876
+ };
15877
+ Insert: {
15878
+ approved_at?: string | null;
15879
+ approved_by?: string | null;
15880
+ created_at?: string;
15881
+ employee_id: string;
15882
+ id?: string;
15883
+ locked?: boolean;
15884
+ notes?: string | null;
15885
+ status?: string;
15886
+ submitted_at?: string | null;
15887
+ updated_at?: string;
15888
+ week_start: string;
15889
+ };
15890
+ Update: {
15891
+ approved_at?: string | null;
15892
+ approved_by?: string | null;
15893
+ created_at?: string;
15894
+ employee_id?: string;
15895
+ id?: string;
15896
+ locked?: boolean;
15897
+ notes?: string | null;
15898
+ status?: string;
15899
+ submitted_at?: string | null;
15900
+ updated_at?: string;
15901
+ week_start?: string;
15902
+ };
15018
15903
  Relationships: [{
15019
- foreignKeyName: "time_entries_employee_id_fkey";
15904
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15020
15905
  columns: ["employee_id"];
15021
15906
  isOneToOne: false;
15022
- referencedRelation: "monteurs";
15907
+ referencedRelation: "profiles";
15023
15908
  referencedColumns: ["id"];
15024
15909
  }];
15025
15910
  };
15026
15911
  time_logs: {
15027
15912
  Row: {
15913
+ auto_stop_reason: string | null;
15914
+ auto_stopped: boolean;
15028
15915
  created_at: string;
15916
+ current_latitude: number | null;
15917
+ current_longitude: number | null;
15918
+ current_position_updated_at: string | null;
15029
15919
  employee_id: string;
15920
+ end_latitude: number | null;
15921
+ end_longitude: number | null;
15030
15922
  end_time: string | null;
15923
+ eta_distance_km: number | null;
15924
+ eta_minutes: number | null;
15925
+ eta_updated_at: string | null;
15926
+ hour_category: string | null;
15031
15927
  id: string;
15928
+ last_reminder_at: string | null;
15032
15929
  notes: string | null;
15033
15930
  overtime_hours: number;
15034
15931
  overtime_type: string | null;
15035
15932
  regular_hours: number;
15933
+ reminder_count: number;
15934
+ requires_review: boolean;
15935
+ start_latitude: number | null;
15936
+ start_longitude: number | null;
15036
15937
  start_time: string;
15037
15938
  travel_cost: number | null;
15038
15939
  travel_distance_km: number | null;
15940
+ travel_duration_min: number | null;
15941
+ travel_time_minutes: number | null;
15039
15942
  type: string;
15040
15943
  updated_at: string;
15944
+ work_order_id: string | null;
15041
15945
  };
15042
15946
  Insert: {
15947
+ auto_stop_reason?: string | null;
15948
+ auto_stopped?: boolean;
15043
15949
  created_at?: string;
15950
+ current_latitude?: number | null;
15951
+ current_longitude?: number | null;
15952
+ current_position_updated_at?: string | null;
15044
15953
  employee_id: string;
15954
+ end_latitude?: number | null;
15955
+ end_longitude?: number | null;
15045
15956
  end_time?: string | null;
15957
+ eta_distance_km?: number | null;
15958
+ eta_minutes?: number | null;
15959
+ eta_updated_at?: string | null;
15960
+ hour_category?: string | null;
15046
15961
  id?: string;
15962
+ last_reminder_at?: string | null;
15047
15963
  notes?: string | null;
15048
15964
  overtime_hours?: number;
15049
15965
  overtime_type?: string | null;
15050
15966
  regular_hours?: number;
15967
+ reminder_count?: number;
15968
+ requires_review?: boolean;
15969
+ start_latitude?: number | null;
15970
+ start_longitude?: number | null;
15051
15971
  start_time?: string;
15052
15972
  travel_cost?: number | null;
15053
15973
  travel_distance_km?: number | null;
15974
+ travel_duration_min?: number | null;
15975
+ travel_time_minutes?: number | null;
15054
15976
  type: string;
15055
15977
  updated_at?: string;
15978
+ work_order_id?: string | null;
15056
15979
  };
15057
15980
  Update: {
15981
+ auto_stop_reason?: string | null;
15982
+ auto_stopped?: boolean;
15058
15983
  created_at?: string;
15984
+ current_latitude?: number | null;
15985
+ current_longitude?: number | null;
15986
+ current_position_updated_at?: string | null;
15059
15987
  employee_id?: string;
15988
+ end_latitude?: number | null;
15989
+ end_longitude?: number | null;
15060
15990
  end_time?: string | null;
15991
+ eta_distance_km?: number | null;
15992
+ eta_minutes?: number | null;
15993
+ eta_updated_at?: string | null;
15994
+ hour_category?: string | null;
15061
15995
  id?: string;
15996
+ last_reminder_at?: string | null;
15062
15997
  notes?: string | null;
15063
15998
  overtime_hours?: number;
15064
15999
  overtime_type?: string | null;
15065
16000
  regular_hours?: number;
16001
+ reminder_count?: number;
16002
+ requires_review?: boolean;
16003
+ start_latitude?: number | null;
16004
+ start_longitude?: number | null;
15066
16005
  start_time?: string;
15067
16006
  travel_cost?: number | null;
15068
16007
  travel_distance_km?: number | null;
16008
+ travel_duration_min?: number | null;
16009
+ travel_time_minutes?: number | null;
15069
16010
  type?: string;
15070
16011
  updated_at?: string;
16012
+ work_order_id?: string | null;
15071
16013
  };
15072
16014
  Relationships: [{
15073
16015
  foreignKeyName: "time_logs_employee_id_fkey";
15074
16016
  columns: ["employee_id"];
15075
16017
  isOneToOne: false;
15076
- referencedRelation: "monteurs";
16018
+ referencedRelation: "profiles";
16019
+ referencedColumns: ["id"];
16020
+ }, {
16021
+ foreignKeyName: "time_logs_work_order_id_fkey";
16022
+ columns: ["work_order_id"];
16023
+ isOneToOne: false;
16024
+ referencedRelation: "work_orders";
15077
16025
  referencedColumns: ["id"];
15078
16026
  }];
15079
16027
  };
@@ -15112,7 +16060,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15112
16060
  foreignKeyName: "time_off_entries_employee_id_fkey";
15113
16061
  columns: ["employee_id"];
15114
16062
  isOneToOne: false;
15115
- referencedRelation: "monteurs";
16063
+ referencedRelation: "profiles";
15116
16064
  referencedColumns: ["id"];
15117
16065
  }];
15118
16066
  };
@@ -15361,12 +16309,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15361
16309
  company_name: string | null;
15362
16310
  connected_at: string | null;
15363
16311
  created_at: string;
16312
+ disconnected_at: string | null;
15364
16313
  environment: string;
15365
16314
  id: string;
16315
+ initial_sync_completed_at: string | null;
16316
+ initial_sync_started_at: string | null;
15366
16317
  is_active: boolean;
15367
16318
  label: string | null;
15368
16319
  office_code: string | null;
15369
16320
  redirect_uri: string | null;
16321
+ superseded_at: string | null;
15370
16322
  updated_at: string;
15371
16323
  user_id: string;
15372
16324
  };
@@ -15377,12 +16329,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15377
16329
  company_name?: string | null;
15378
16330
  connected_at?: string | null;
15379
16331
  created_at?: string;
16332
+ disconnected_at?: string | null;
15380
16333
  environment: string;
15381
16334
  id?: string;
16335
+ initial_sync_completed_at?: string | null;
16336
+ initial_sync_started_at?: string | null;
15382
16337
  is_active?: boolean;
15383
16338
  label?: string | null;
15384
16339
  office_code?: string | null;
15385
16340
  redirect_uri?: string | null;
16341
+ superseded_at?: string | null;
15386
16342
  updated_at?: string;
15387
16343
  user_id: string;
15388
16344
  };
@@ -15393,12 +16349,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15393
16349
  company_name?: string | null;
15394
16350
  connected_at?: string | null;
15395
16351
  created_at?: string;
16352
+ disconnected_at?: string | null;
15396
16353
  environment?: string;
15397
16354
  id?: string;
16355
+ initial_sync_completed_at?: string | null;
16356
+ initial_sync_started_at?: string | null;
15398
16357
  is_active?: boolean;
15399
16358
  label?: string | null;
15400
16359
  office_code?: string | null;
15401
16360
  redirect_uri?: string | null;
16361
+ superseded_at?: string | null;
15402
16362
  updated_at?: string;
15403
16363
  user_id?: string;
15404
16364
  };
@@ -15417,14 +16377,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15417
16377
  };
15418
16378
  Update: {
15419
16379
  created_at?: string;
15420
- id?: number;
15421
- secret?: string;
16380
+ id?: number;
16381
+ secret?: string;
16382
+ };
16383
+ Relationships: [];
16384
+ };
16385
+ twinfield_cron_locks: {
16386
+ Row: {
16387
+ created_at: string;
16388
+ heartbeat_at: string;
16389
+ job_name: string;
16390
+ last_error: string | null;
16391
+ last_finished_at: string | null;
16392
+ locked_at: string;
16393
+ run_id: string;
16394
+ updated_at: string;
16395
+ };
16396
+ Insert: {
16397
+ created_at?: string;
16398
+ heartbeat_at?: string;
16399
+ job_name: string;
16400
+ last_error?: string | null;
16401
+ last_finished_at?: string | null;
16402
+ locked_at?: string;
16403
+ run_id?: string;
16404
+ updated_at?: string;
16405
+ };
16406
+ Update: {
16407
+ created_at?: string;
16408
+ heartbeat_at?: string;
16409
+ job_name?: string;
16410
+ last_error?: string | null;
16411
+ last_finished_at?: string | null;
16412
+ locked_at?: string;
16413
+ run_id?: string;
16414
+ updated_at?: string;
15422
16415
  };
15423
16416
  Relationships: [];
15424
16417
  };
15425
16418
  twinfield_customers: {
15426
16419
  Row: {
15427
16420
  address: string | null;
16421
+ administration_code: string;
15428
16422
  city: string | null;
15429
16423
  country: string | null;
15430
16424
  created_at: string;
@@ -15444,6 +16438,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15444
16438
  };
15445
16439
  Insert: {
15446
16440
  address?: string | null;
16441
+ administration_code?: string;
15447
16442
  city?: string | null;
15448
16443
  country?: string | null;
15449
16444
  created_at?: string;
@@ -15463,6 +16458,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15463
16458
  };
15464
16459
  Update: {
15465
16460
  address?: string | null;
16461
+ administration_code?: string;
15466
16462
  city?: string | null;
15467
16463
  country?: string | null;
15468
16464
  created_at?: string;
@@ -15676,7 +16672,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15676
16672
  };
15677
16673
  twinfield_invoice_settings: {
15678
16674
  Row: {
16675
+ administration_code: string | null;
15679
16676
  auto_invoice_enabled: boolean;
16677
+ auto_invoice_start_date: string | null;
15680
16678
  auto_invoice_trigger_statuses: string[];
15681
16679
  created_at: string;
15682
16680
  debtor_gl_account: string;
@@ -15690,15 +16688,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15690
16688
  invoice_enabled_fo: boolean;
15691
16689
  invoice_enabled_ho: boolean;
15692
16690
  invoice_enabled_mo: boolean;
16691
+ needs_review: boolean;
15693
16692
  payment_gl_account: string;
15694
16693
  payment_journal_code: string;
16694
+ settings_confirmed_at: string | null;
15695
16695
  updated_at: string;
15696
16696
  user_id: string;
15697
16697
  vat_code_eu_reverse: string | null;
15698
16698
  vat_code_export: string | null;
15699
16699
  };
15700
16700
  Insert: {
16701
+ administration_code?: string | null;
15701
16702
  auto_invoice_enabled?: boolean;
16703
+ auto_invoice_start_date?: string | null;
15702
16704
  auto_invoice_trigger_statuses?: string[];
15703
16705
  created_at?: string;
15704
16706
  debtor_gl_account?: string;
@@ -15712,15 +16714,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15712
16714
  invoice_enabled_fo?: boolean;
15713
16715
  invoice_enabled_ho?: boolean;
15714
16716
  invoice_enabled_mo?: boolean;
16717
+ needs_review?: boolean;
15715
16718
  payment_gl_account?: string;
15716
16719
  payment_journal_code?: string;
16720
+ settings_confirmed_at?: string | null;
15717
16721
  updated_at?: string;
15718
16722
  user_id: string;
15719
16723
  vat_code_eu_reverse?: string | null;
15720
16724
  vat_code_export?: string | null;
15721
16725
  };
15722
16726
  Update: {
16727
+ administration_code?: string | null;
15723
16728
  auto_invoice_enabled?: boolean;
16729
+ auto_invoice_start_date?: string | null;
15724
16730
  auto_invoice_trigger_statuses?: string[];
15725
16731
  created_at?: string;
15726
16732
  debtor_gl_account?: string;
@@ -15734,8 +16740,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15734
16740
  invoice_enabled_fo?: boolean;
15735
16741
  invoice_enabled_ho?: boolean;
15736
16742
  invoice_enabled_mo?: boolean;
16743
+ needs_review?: boolean;
15737
16744
  payment_gl_account?: string;
15738
16745
  payment_journal_code?: string;
16746
+ settings_confirmed_at?: string | null;
15739
16747
  updated_at?: string;
15740
16748
  user_id?: string;
15741
16749
  vat_code_eu_reverse?: string | null;
@@ -16022,6 +17030,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16022
17030
  twinfield_push_queue: {
16023
17031
  Row: {
16024
17032
  action: string;
17033
+ attempt_started_at: string | null;
16025
17034
  attempts: number;
16026
17035
  connection_id: string | null;
16027
17036
  created_at: string;
@@ -16038,6 +17047,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16038
17047
  };
16039
17048
  Insert: {
16040
17049
  action?: string;
17050
+ attempt_started_at?: string | null;
16041
17051
  attempts?: number;
16042
17052
  connection_id?: string | null;
16043
17053
  created_at?: string;
@@ -16054,6 +17064,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16054
17064
  };
16055
17065
  Update: {
16056
17066
  action?: string;
17067
+ attempt_started_at?: string | null;
16057
17068
  attempts?: number;
16058
17069
  connection_id?: string | null;
16059
17070
  created_at?: string;
@@ -16251,13 +17262,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16251
17262
  workday_end?: string | null;
16252
17263
  workday_start?: string | null;
16253
17264
  };
16254
- Relationships: [{
16255
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16256
- columns: ["monteur_id"];
16257
- isOneToOne: true;
16258
- referencedRelation: "monteurs";
16259
- referencedColumns: ["id"];
16260
- }];
17265
+ Relationships: [];
16261
17266
  };
16262
17267
  uren_entries: {
16263
17268
  Row: {
@@ -16303,12 +17308,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16303
17308
  werkbon_id?: string | null;
16304
17309
  };
16305
17310
  Relationships: [{
16306
- foreignKeyName: "uren_entries_monteur_id_fkey";
16307
- columns: ["monteur_id"];
16308
- isOneToOne: false;
16309
- referencedRelation: "monteurs";
16310
- referencedColumns: ["id"];
16311
- }, {
16312
17311
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16313
17312
  columns: ["werkbon_id"];
16314
17313
  isOneToOne: false;
@@ -16349,114 +17348,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16349
17348
  };
16350
17349
  Relationships: [];
16351
17350
  };
16352
- uren_facturen: {
16353
- Row: {
16354
- created_at: string;
16355
- created_by: string | null;
16356
- customer_id: string | null;
16357
- customer_name: string | null;
16358
- id: string;
16359
- invoice_number: string | null;
16360
- note: string | null;
16361
- status: string;
16362
- total_excl_cents: number;
16363
- total_incl_cents: number;
16364
- updated_at: string;
16365
- vat_cents: number;
16366
- vat_percentage: number;
16367
- werkbon_id: string | null;
16368
- };
16369
- Insert: {
16370
- created_at?: string;
16371
- created_by?: string | null;
16372
- customer_id?: string | null;
16373
- customer_name?: string | null;
16374
- id?: string;
16375
- invoice_number?: string | null;
16376
- note?: string | null;
16377
- status?: string;
16378
- total_excl_cents?: number;
16379
- total_incl_cents?: number;
16380
- updated_at?: string;
16381
- vat_cents?: number;
16382
- vat_percentage?: number;
16383
- werkbon_id?: string | null;
16384
- };
16385
- Update: {
16386
- created_at?: string;
16387
- created_by?: string | null;
16388
- customer_id?: string | null;
16389
- customer_name?: string | null;
16390
- id?: string;
16391
- invoice_number?: string | null;
16392
- note?: string | null;
16393
- status?: string;
16394
- total_excl_cents?: number;
16395
- total_incl_cents?: number;
16396
- updated_at?: string;
16397
- vat_cents?: number;
16398
- vat_percentage?: number;
16399
- werkbon_id?: string | null;
16400
- };
16401
- Relationships: [{
16402
- foreignKeyName: "uren_facturen_customer_id_fkey";
16403
- columns: ["customer_id"];
16404
- isOneToOne: false;
16405
- referencedRelation: "itk_customers";
16406
- referencedColumns: ["id"];
16407
- }, {
16408
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16409
- columns: ["werkbon_id"];
16410
- isOneToOne: true;
16411
- referencedRelation: "werkbonnen";
16412
- referencedColumns: ["id"];
16413
- }];
16414
- };
16415
- uren_factuur_regels: {
16416
- Row: {
16417
- created_at: string;
16418
- description: string;
16419
- factuur_id: string;
16420
- id: string;
16421
- kind: string | null;
16422
- quantity: number;
16423
- sort_order: number;
16424
- total_cents: number;
16425
- unit: string;
16426
- unit_price_cents: number;
16427
- };
16428
- Insert: {
16429
- created_at?: string;
16430
- description: string;
16431
- factuur_id: string;
16432
- id?: string;
16433
- kind?: string | null;
16434
- quantity?: number;
16435
- sort_order?: number;
16436
- total_cents?: number;
16437
- unit?: string;
16438
- unit_price_cents?: number;
16439
- };
16440
- Update: {
16441
- created_at?: string;
16442
- description?: string;
16443
- factuur_id?: string;
16444
- id?: string;
16445
- kind?: string | null;
16446
- quantity?: number;
16447
- sort_order?: number;
16448
- total_cents?: number;
16449
- unit?: string;
16450
- unit_price_cents?: number;
16451
- };
16452
- Relationships: [{
16453
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16454
- columns: ["factuur_id"];
16455
- isOneToOne: false;
16456
- referencedRelation: "uren_facturen";
16457
- referencedColumns: ["id"];
16458
- }];
16459
- };
16460
17351
  uren_offerte_regels: {
16461
17352
  Row: {
16462
17353
  created_at: string;
@@ -16776,13 +17667,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16776
17667
  submitted_at?: string | null;
16777
17668
  updated_at?: string;
16778
17669
  };
16779
- Relationships: [{
16780
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16781
- columns: ["monteur_id"];
16782
- isOneToOne: false;
16783
- referencedRelation: "monteurs";
16784
- referencedColumns: ["id"];
16785
- }];
17670
+ Relationships: [];
16786
17671
  };
16787
17672
  user_module_permissions: {
16788
17673
  Row: {
@@ -16841,6 +17726,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16841
17726
  referencedColumns: ["id"];
16842
17727
  }];
16843
17728
  };
17729
+ van_inventories: {
17730
+ Row: {
17731
+ barcode: string | null;
17732
+ created_at: string;
17733
+ id: string;
17734
+ monteur_id: string | null;
17735
+ price_per_unit: number;
17736
+ product_name: string;
17737
+ quantity_current: number;
17738
+ quantity_min: number;
17739
+ unit: string;
17740
+ updated_at: string;
17741
+ };
17742
+ Insert: {
17743
+ barcode?: string | null;
17744
+ created_at?: string;
17745
+ id?: string;
17746
+ monteur_id?: string | null;
17747
+ price_per_unit?: number;
17748
+ product_name: string;
17749
+ quantity_current?: number;
17750
+ quantity_min?: number;
17751
+ unit?: string;
17752
+ updated_at?: string;
17753
+ };
17754
+ Update: {
17755
+ barcode?: string | null;
17756
+ created_at?: string;
17757
+ id?: string;
17758
+ monteur_id?: string | null;
17759
+ price_per_unit?: number;
17760
+ product_name?: string;
17761
+ quantity_current?: number;
17762
+ quantity_min?: number;
17763
+ unit?: string;
17764
+ updated_at?: string;
17765
+ };
17766
+ Relationships: [{
17767
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17768
+ columns: ["monteur_id"];
17769
+ isOneToOne: false;
17770
+ referencedRelation: "profiles";
17771
+ referencedColumns: ["id"];
17772
+ }];
17773
+ };
16844
17774
  voorraad_custom_fields: {
16845
17775
  Row: {
16846
17776
  created_at: string;
@@ -17671,6 +18601,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17671
18601
  scheduled_end_time: string | null;
17672
18602
  scheduled_start_time: string | null;
17673
18603
  sequence_number: number;
18604
+ signature_accepted_at: string | null;
18605
+ signature_by_user_id: string | null;
18606
+ signature_name: string | null;
17674
18607
  source_email_meta: import("./types.js").Json | null;
17675
18608
  source_mailbox_message_id: string | null;
17676
18609
  source_pdf_path: string | null;
@@ -17706,6 +18639,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17706
18639
  scheduled_end_time?: string | null;
17707
18640
  scheduled_start_time?: string | null;
17708
18641
  sequence_number: number;
18642
+ signature_accepted_at?: string | null;
18643
+ signature_by_user_id?: string | null;
18644
+ signature_name?: string | null;
17709
18645
  source_email_meta?: import("./types.js").Json | null;
17710
18646
  source_mailbox_message_id?: string | null;
17711
18647
  source_pdf_path?: string | null;
@@ -17741,6 +18677,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17741
18677
  scheduled_end_time?: string | null;
17742
18678
  scheduled_start_time?: string | null;
17743
18679
  sequence_number?: number;
18680
+ signature_accepted_at?: string | null;
18681
+ signature_by_user_id?: string | null;
18682
+ signature_name?: string | null;
17744
18683
  source_email_meta?: import("./types.js").Json | null;
17745
18684
  source_mailbox_message_id?: string | null;
17746
18685
  source_pdf_path?: string | null;
@@ -17791,7 +18730,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17791
18730
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17792
18731
  columns: ["monteur_id"];
17793
18732
  isOneToOne: false;
17794
- referencedRelation: "monteurs";
18733
+ referencedRelation: "profiles";
17795
18734
  referencedColumns: ["id"];
17796
18735
  }, {
17797
18736
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17801,6 +18740,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17801
18740
  referencedColumns: ["id"];
17802
18741
  }];
17803
18742
  };
18743
+ work_order_photos: {
18744
+ Row: {
18745
+ ai_caption: string | null;
18746
+ ai_categorized_at: string | null;
18747
+ ai_labels: import("./types.js").Json | null;
18748
+ caption: string | null;
18749
+ created_at: string;
18750
+ id: string;
18751
+ monteur_id: string | null;
18752
+ photo_type: string;
18753
+ storage_path: string;
18754
+ updated_at: string;
18755
+ work_order_id: string;
18756
+ };
18757
+ Insert: {
18758
+ ai_caption?: string | null;
18759
+ ai_categorized_at?: string | null;
18760
+ ai_labels?: import("./types.js").Json | null;
18761
+ caption?: string | null;
18762
+ created_at?: string;
18763
+ id?: string;
18764
+ monteur_id?: string | null;
18765
+ photo_type?: string;
18766
+ storage_path: string;
18767
+ updated_at?: string;
18768
+ work_order_id: string;
18769
+ };
18770
+ Update: {
18771
+ ai_caption?: string | null;
18772
+ ai_categorized_at?: string | null;
18773
+ ai_labels?: import("./types.js").Json | null;
18774
+ caption?: string | null;
18775
+ created_at?: string;
18776
+ id?: string;
18777
+ monteur_id?: string | null;
18778
+ photo_type?: string;
18779
+ storage_path?: string;
18780
+ updated_at?: string;
18781
+ work_order_id?: string;
18782
+ };
18783
+ Relationships: [{
18784
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18785
+ columns: ["monteur_id"];
18786
+ isOneToOne: false;
18787
+ referencedRelation: "profiles";
18788
+ referencedColumns: ["id"];
18789
+ }, {
18790
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18791
+ columns: ["work_order_id"];
18792
+ isOneToOne: false;
18793
+ referencedRelation: "work_orders";
18794
+ referencedColumns: ["id"];
18795
+ }];
18796
+ };
17804
18797
  work_orders: {
17805
18798
  Row: {
17806
18799
  assigned_to: string | null;
@@ -17832,7 +18825,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17832
18825
  scheduled_end_time: string | null;
17833
18826
  scheduled_start_time: string | null;
17834
18827
  status: string;
17835
- tenant_id: string;
17836
18828
  total_hours_worked: number | null;
17837
18829
  total_price: number | null;
17838
18830
  travel_time_minutes: number | null;
@@ -17870,7 +18862,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17870
18862
  scheduled_end_time?: string | null;
17871
18863
  scheduled_start_time?: string | null;
17872
18864
  status?: string;
17873
- tenant_id: string;
17874
18865
  total_hours_worked?: number | null;
17875
18866
  total_price?: number | null;
17876
18867
  travel_time_minutes?: number | null;
@@ -17908,7 +18899,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17908
18899
  scheduled_end_time?: string | null;
17909
18900
  scheduled_start_time?: string | null;
17910
18901
  status?: string;
17911
- tenant_id?: string;
17912
18902
  total_hours_worked?: number | null;
17913
18903
  total_price?: number | null;
17914
18904
  travel_time_minutes?: number | null;
@@ -17922,12 +18912,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17922
18912
  isOneToOne: false;
17923
18913
  referencedRelation: "work_orders";
17924
18914
  referencedColumns: ["id"];
17925
- }, {
17926
- foreignKeyName: "work_orders_tenant_id_fkey";
17927
- columns: ["tenant_id"];
17928
- isOneToOne: false;
17929
- referencedRelation: "tenants";
17930
- referencedColumns: ["id"];
17931
18915
  }];
17932
18916
  };
17933
18917
  };
@@ -18198,19 +19182,127 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18198
19182
  total_stock: number | null;
18199
19183
  };
18200
19184
  Relationships: [{
18201
- foreignKeyName: "product_group_items_product_group_id_fkey";
18202
- columns: ["product_group_id"];
19185
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19186
+ columns: ["product_group_id"];
19187
+ isOneToOne: false;
19188
+ referencedRelation: "product_groups";
19189
+ referencedColumns: ["id"];
19190
+ }];
19191
+ };
19192
+ trade_item_stock_view: {
19193
+ Row: {
19194
+ stock: number | null;
19195
+ trade_item_id: string | null;
19196
+ };
19197
+ Relationships: [];
19198
+ };
19199
+ uren_facturen: {
19200
+ Row: {
19201
+ created_at: string | null;
19202
+ created_by: string | null;
19203
+ customer_id: string | null;
19204
+ customer_name: string | null;
19205
+ id: string | null;
19206
+ invoice_number: string | null;
19207
+ note: string | null;
19208
+ status: string | null;
19209
+ total_excl_cents: number | null;
19210
+ total_incl_cents: number | null;
19211
+ updated_at: string | null;
19212
+ vat_cents: number | null;
19213
+ vat_percentage: number | null;
19214
+ werkbon_id: string | null;
19215
+ };
19216
+ Insert: {
19217
+ created_at?: string | null;
19218
+ created_by?: string | null;
19219
+ customer_id?: string | null;
19220
+ customer_name?: string | null;
19221
+ id?: string | null;
19222
+ invoice_number?: string | null;
19223
+ note?: string | null;
19224
+ status?: string | null;
19225
+ total_excl_cents?: number | null;
19226
+ total_incl_cents?: number | null;
19227
+ updated_at?: string | null;
19228
+ vat_cents?: number | null;
19229
+ vat_percentage?: number | null;
19230
+ werkbon_id?: never;
19231
+ };
19232
+ Update: {
19233
+ created_at?: string | null;
19234
+ created_by?: string | null;
19235
+ customer_id?: string | null;
19236
+ customer_name?: string | null;
19237
+ id?: string | null;
19238
+ invoice_number?: string | null;
19239
+ note?: string | null;
19240
+ status?: string | null;
19241
+ total_excl_cents?: number | null;
19242
+ total_incl_cents?: number | null;
19243
+ updated_at?: string | null;
19244
+ vat_cents?: number | null;
19245
+ vat_percentage?: number | null;
19246
+ werkbon_id?: never;
19247
+ };
19248
+ Relationships: [{
19249
+ foreignKeyName: "invoices_customer_id_fkey";
19250
+ columns: ["customer_id"];
18203
19251
  isOneToOne: false;
18204
- referencedRelation: "product_groups";
19252
+ referencedRelation: "itk_customers";
18205
19253
  referencedColumns: ["id"];
18206
19254
  }];
18207
19255
  };
18208
- trade_item_stock_view: {
19256
+ uren_factuur_regels: {
18209
19257
  Row: {
18210
- stock: number | null;
18211
- trade_item_id: string | null;
19258
+ created_at: string | null;
19259
+ description: string | null;
19260
+ factuur_id: string | null;
19261
+ id: string | null;
19262
+ kind: string | null;
19263
+ quantity: number | null;
19264
+ sort_order: number | null;
19265
+ total_cents: number | null;
19266
+ unit: string | null;
19267
+ unit_price_cents: number | null;
18212
19268
  };
18213
- Relationships: [];
19269
+ Insert: {
19270
+ created_at?: string | null;
19271
+ description?: string | null;
19272
+ factuur_id?: string | null;
19273
+ id?: string | null;
19274
+ kind?: string | null;
19275
+ quantity?: number | null;
19276
+ sort_order?: number | null;
19277
+ total_cents?: number | null;
19278
+ unit?: string | null;
19279
+ unit_price_cents?: number | null;
19280
+ };
19281
+ Update: {
19282
+ created_at?: string | null;
19283
+ description?: string | null;
19284
+ factuur_id?: string | null;
19285
+ id?: string | null;
19286
+ kind?: string | null;
19287
+ quantity?: number | null;
19288
+ sort_order?: number | null;
19289
+ total_cents?: number | null;
19290
+ unit?: string | null;
19291
+ unit_price_cents?: number | null;
19292
+ };
19293
+ Relationships: [{
19294
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19295
+ columns: ["factuur_id"];
19296
+ isOneToOne: false;
19297
+ referencedRelation: "invoices";
19298
+ referencedColumns: ["id"];
19299
+ }, {
19300
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19301
+ columns: ["factuur_id"];
19302
+ isOneToOne: false;
19303
+ referencedRelation: "uren_facturen";
19304
+ referencedColumns: ["id"];
19305
+ }];
18214
19306
  };
18215
19307
  v_external_customers_exact: {
18216
19308
  Row: {
@@ -18612,6 +19704,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18612
19704
  };
18613
19705
  Returns: undefined;
18614
19706
  };
19707
+ approve_mailbox_order_proposal: {
19708
+ Args: {
19709
+ p_custom_fields: import("./types.js").Json;
19710
+ p_customer_id: string;
19711
+ p_delivery_date: string;
19712
+ p_field_values?: import("./types.js").Json;
19713
+ p_lines: import("./types.js").Json;
19714
+ p_notes: string;
19715
+ p_proposal_id: string;
19716
+ p_reviewed_by: string;
19717
+ };
19718
+ Returns: import("./types.js").Json;
19719
+ };
18615
19720
  assign_cart_numbers: {
18616
19721
  Args: {
18617
19722
  p_carts: import("./types.js").Json;
@@ -18663,6 +19768,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18663
19768
  };
18664
19769
  Returns: number;
18665
19770
  };
19771
+ can_manage_hours: {
19772
+ Args: never;
19773
+ Returns: boolean;
19774
+ };
18666
19775
  check_offer_product_available_stock: {
18667
19776
  Args: {
18668
19777
  p_campaign_product_id: string;
@@ -18700,6 +19809,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18700
19809
  gebruiker_id: string | null;
18701
19810
  gebruiker_naam: string;
18702
19811
  gestart_op: string | null;
19812
+ herkomst: string | null;
18703
19813
  id: string;
18704
19814
  idempotentie_sleutel: string | null;
18705
19815
  is_herprint: boolean;
@@ -18820,6 +19930,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18820
19930
  gebruiker_id: string | null;
18821
19931
  gebruiker_naam: string;
18822
19932
  gestart_op: string | null;
19933
+ herkomst: string | null;
18823
19934
  id: string;
18824
19935
  idempotentie_sleutel: string | null;
18825
19936
  is_herprint: boolean;
@@ -18852,6 +19963,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18852
19963
  };
18853
19964
  Returns: {
18854
19965
  action: string;
19966
+ attempt_started_at: string | null;
18855
19967
  attempts: number;
18856
19968
  connection_id: string | null;
18857
19969
  created_at: string;
@@ -18939,6 +20051,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18939
20051
  agent_naam: string;
18940
20052
  }[];
18941
20053
  };
20054
+ consume_van_inventory: {
20055
+ Args: {
20056
+ p_inventory_id: string;
20057
+ p_quantity: number;
20058
+ };
20059
+ Returns: {
20060
+ barcode: string | null;
20061
+ created_at: string;
20062
+ id: string;
20063
+ monteur_id: string | null;
20064
+ price_per_unit: number;
20065
+ product_name: string;
20066
+ quantity_current: number;
20067
+ quantity_min: number;
20068
+ unit: string;
20069
+ updated_at: string;
20070
+ };
20071
+ SetofOptions: {
20072
+ from: "*";
20073
+ to: "van_inventories";
20074
+ isOneToOne: true;
20075
+ isSetofReturn: false;
20076
+ };
20077
+ };
18942
20078
  control_get_todays_carts: {
18943
20079
  Args: never;
18944
20080
  Returns: {
@@ -19014,7 +20150,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19014
20150
  Returns: string;
19015
20151
  } | {
19016
20152
  Args: {
19017
- _feature_id?: string;
20153
+ _feature_id: string;
19018
20154
  _module_id: string;
19019
20155
  _user_id: string;
19020
20156
  };
@@ -19065,6 +20201,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19065
20201
  };
19066
20202
  Returns: string;
19067
20203
  };
20204
+ employee_day_hours: {
20205
+ Args: {
20206
+ _day: string;
20207
+ _employee_id: string;
20208
+ };
20209
+ Returns: number;
20210
+ };
19068
20211
  enqueue_cart_replan_if_unlocked: {
19069
20212
  Args: {
19070
20213
  p_order_id: string;
@@ -19370,12 +20513,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19370
20513
  Args: never;
19371
20514
  Returns: string;
19372
20515
  };
19373
- get_work_order_tenant_id: {
19374
- Args: {
19375
- wo_id: string;
19376
- };
19377
- Returns: string;
19378
- };
19379
20516
  has_module_permission: {
19380
20517
  Args: {
19381
20518
  _min: string;
@@ -19395,6 +20532,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19395
20532
  Args: never;
19396
20533
  Returns: boolean;
19397
20534
  };
20535
+ invoice_create_from_source: {
20536
+ Args: {
20537
+ _payload?: import("./types.js").Json;
20538
+ _source_id: string;
20539
+ _source_type: string;
20540
+ };
20541
+ Returns: import("./types.js").Json;
20542
+ };
20543
+ invoice_get_billable_lines: {
20544
+ Args: {
20545
+ _invoice_id: string;
20546
+ };
20547
+ Returns: import("./types.js").Json;
20548
+ };
20549
+ invoice_get_for_source: {
20550
+ Args: {
20551
+ _source_id: string;
20552
+ _source_type: string;
20553
+ };
20554
+ Returns: import("./types.js").Json;
20555
+ };
20556
+ invoice_get_summary: {
20557
+ Args: {
20558
+ _invoice_id: string;
20559
+ };
20560
+ Returns: import("./types.js").Json;
20561
+ };
20562
+ invoice_list_sources: {
20563
+ Args: {
20564
+ _limit?: number;
20565
+ _source_type?: string;
20566
+ };
20567
+ Returns: import("./types.js").Json;
20568
+ };
20569
+ invoice_recalc_totals: {
20570
+ Args: {
20571
+ _invoice_id: string;
20572
+ };
20573
+ Returns: import("./types.js").Json;
20574
+ };
19398
20575
  is_authenticated: {
19399
20576
  Args: never;
19400
20577
  Returns: boolean;
@@ -19409,6 +20586,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19409
20586
  };
19410
20587
  Returns: boolean;
19411
20588
  };
20589
+ is_time_log_week_locked: {
20590
+ Args: {
20591
+ p_employee_id: string;
20592
+ p_start_time: string;
20593
+ };
20594
+ Returns: boolean;
20595
+ };
19412
20596
  is_user_admin: {
19413
20597
  Args: never;
19414
20598
  Returns: boolean;
@@ -19417,12 +20601,59 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19417
20601
  Args: never;
19418
20602
  Returns: boolean;
19419
20603
  };
20604
+ itk_offerte_naar_werkbon: {
20605
+ Args: {
20606
+ _offerte_id: string;
20607
+ };
20608
+ Returns: string;
20609
+ };
20610
+ itk_offerte_restant_mandaat: {
20611
+ Args: {
20612
+ _exclude_offerte_id?: string;
20613
+ _werkbon_id: string;
20614
+ };
20615
+ Returns: number;
20616
+ };
19420
20617
  jwt_has_role: {
19421
20618
  Args: {
19422
20619
  _role: Database["public"]["Enums"]["app_role"];
19423
20620
  };
19424
20621
  Returns: boolean;
19425
20622
  };
20623
+ list_medewerkers: {
20624
+ Args: never;
20625
+ Returns: {
20626
+ avatar_url: string;
20627
+ color: string;
20628
+ display_name: string;
20629
+ email: string;
20630
+ hours_fri: number;
20631
+ hours_mon: number;
20632
+ hours_thu: number;
20633
+ hours_tue: number;
20634
+ hours_wed: number;
20635
+ id: string;
20636
+ is_active: boolean;
20637
+ leave_balance_hours: number;
20638
+ persnr: string;
20639
+ phone: string;
20640
+ roles: string[];
20641
+ }[];
20642
+ };
20643
+ list_monteur_absences: {
20644
+ Args: {
20645
+ _from: string;
20646
+ _to: string;
20647
+ };
20648
+ Returns: {
20649
+ absence_date: string;
20650
+ end_time: string;
20651
+ full_day: boolean;
20652
+ kind: string;
20653
+ monteur_id: string;
20654
+ start_time: string;
20655
+ }[];
20656
+ };
19426
20657
  list_monteurs: {
19427
20658
  Args: never;
19428
20659
  Returns: {
@@ -19755,17 +20986,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19755
20986
  Returns: string;
19756
20987
  };
19757
20988
  logistics_emit_event: {
19758
- Args: {
19759
- p_event_type: string;
19760
- p_idempotency_key?: string;
19761
- p_order_ref: string;
19762
- p_payload?: import("./types.js").Json;
19763
- p_shadow?: boolean;
19764
- p_source_module: string;
19765
- p_strategy_id?: string;
19766
- };
19767
- Returns: import("./types.js").Json;
19768
- } | {
19769
20989
  Args: {
19770
20990
  p_event_type: string;
19771
20991
  p_idempotency_key?: string;
@@ -19854,6 +21074,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19854
21074
  };
19855
21075
  Returns: string;
19856
21076
  };
21077
+ logistics_floriday_finish_push_v2: {
21078
+ Args: {
21079
+ _error?: string;
21080
+ _error_code?: string;
21081
+ _fulfillment_order_id?: string;
21082
+ _gateway_status?: number;
21083
+ _id: string;
21084
+ _max_age_hours?: number;
21085
+ _max_attempts?: number;
21086
+ _ok: boolean;
21087
+ _permanent?: boolean;
21088
+ _response?: import("./types.js").Json;
21089
+ _revision: number;
21090
+ _sent_hash?: string;
21091
+ };
21092
+ Returns: string;
21093
+ };
19857
21094
  logistics_floriday_prune_pushes: {
19858
21095
  Args: {
19859
21096
  _days?: number;
@@ -20396,6 +21633,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20396
21633
  isSetofReturn: false;
20397
21634
  };
20398
21635
  };
21636
+ pick_cleanup_maintenance: {
21637
+ Args: {
21638
+ _heartbeat_hours?: number;
21639
+ _log_days?: number;
21640
+ };
21641
+ Returns: import("./types.js").Json;
21642
+ };
20399
21643
  pick_complete_print: {
20400
21644
  Args: {
20401
21645
  _printer_id: string;
@@ -20447,6 +21691,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20447
21691
  Args: never;
20448
21692
  Returns: string;
20449
21693
  };
21694
+ pick_day_counts: {
21695
+ Args: {
21696
+ _pick_day?: string;
21697
+ _screen_id?: string;
21698
+ _station_id?: string;
21699
+ };
21700
+ Returns: import("./types.js").Json;
21701
+ };
20450
21702
  pick_document_layout_data: {
20451
21703
  Args: {
20452
21704
  _layout_id: string;
@@ -20484,6 +21736,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20484
21736
  };
20485
21737
  Returns: undefined;
20486
21738
  };
21739
+ pick_reprint_document: {
21740
+ Args: {
21741
+ _queue_item_id: string;
21742
+ _session_id: string;
21743
+ _throttle_seconds?: number;
21744
+ };
21745
+ Returns: string;
21746
+ };
20487
21747
  pick_reset_print: {
20488
21748
  Args: {
20489
21749
  _queue_item_id: string;
@@ -20549,6 +21809,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20549
21809
  };
20550
21810
  Returns: string;
20551
21811
  };
21812
+ pick_sync_queue_throttled: {
21813
+ Args: {
21814
+ _min_seconds?: number;
21815
+ };
21816
+ Returns: import("./types.js").Json;
21817
+ };
20552
21818
  pickstation_get_orders_raw: {
20553
21819
  Args: never;
20554
21820
  Returns: import("./types.js").Json;
@@ -20610,6 +21876,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20610
21876
  };
20611
21877
  Returns: undefined;
20612
21878
  };
21879
+ quote_create_from_source: {
21880
+ Args: {
21881
+ _payload?: import("./types.js").Json;
21882
+ _source_id: string;
21883
+ _source_type: string;
21884
+ };
21885
+ Returns: string;
21886
+ };
21887
+ quote_get_billable_lines: {
21888
+ Args: {
21889
+ _quotation_id: string;
21890
+ };
21891
+ Returns: import("./types.js").Json;
21892
+ };
21893
+ quote_get_summary: {
21894
+ Args: {
21895
+ _quotation_id: string;
21896
+ };
21897
+ Returns: import("./types.js").Json;
21898
+ };
21899
+ quote_list_packages: {
21900
+ Args: never;
21901
+ Returns: import("./types.js").Json;
21902
+ };
21903
+ quote_list_sources: {
21904
+ Args: {
21905
+ _limit?: number;
21906
+ _source_type?: string;
21907
+ };
21908
+ Returns: import("./types.js").Json;
21909
+ };
20613
21910
  recompute_all_reserved_stock: {
20614
21911
  Args: never;
20615
21912
  Returns: undefined;
@@ -20663,6 +21960,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20663
21960
  };
20664
21961
  Returns: boolean;
20665
21962
  };
21963
+ release_stale_order_invoice_links: {
21964
+ Args: {
21965
+ _minutes?: number;
21966
+ };
21967
+ Returns: number;
21968
+ };
20666
21969
  reorder_customer_price_groups: {
20667
21970
  Args: {
20668
21971
  _ids: string[];
@@ -21101,6 +22404,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21101
22404
  };
21102
22405
  Returns: string[];
21103
22406
  };
22407
+ switch_time_log: {
22408
+ Args: {
22409
+ p_employee_id: string;
22410
+ p_start_lat?: number;
22411
+ p_start_lng?: number;
22412
+ p_type: string;
22413
+ p_work_order_id?: string;
22414
+ };
22415
+ Returns: import("./types.js").Json;
22416
+ };
21104
22417
  sync_all_layer_stocks: {
21105
22418
  Args: never;
21106
22419
  Returns: undefined;
@@ -21135,6 +22448,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21135
22448
  };
21136
22449
  Returns: undefined;
21137
22450
  };
22451
+ sync_sick_time_off: {
22452
+ Args: {
22453
+ _period_id: string;
22454
+ };
22455
+ Returns: number;
22456
+ };
21138
22457
  trade_item_stock_duplicates: {
21139
22458
  Args: never;
21140
22459
  Returns: {
@@ -21151,6 +22470,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21151
22470
  };
21152
22471
  Returns: boolean;
21153
22472
  };
22473
+ twinfield_cron_lock_acquire: {
22474
+ Args: {
22475
+ _job_name: string;
22476
+ _stale_seconds?: number;
22477
+ };
22478
+ Returns: boolean;
22479
+ };
22480
+ twinfield_cron_lock_release: {
22481
+ Args: {
22482
+ _error?: string;
22483
+ _job_name: string;
22484
+ };
22485
+ Returns: undefined;
22486
+ };
22487
+ twinfield_deactivate_connection: {
22488
+ Args: {
22489
+ p_connection_id: string;
22490
+ p_user_id: string;
22491
+ };
22492
+ Returns: import("./types.js").Json;
22493
+ };
22494
+ twinfield_handle_administration_change: {
22495
+ Args: {
22496
+ _administration_code: string;
22497
+ _user_id: string;
22498
+ };
22499
+ Returns: undefined;
22500
+ };
22501
+ twinfield_prune_push_queue: {
22502
+ Args: never;
22503
+ Returns: number;
22504
+ };
21154
22505
  twinfield_register_cron: {
21155
22506
  Args: {
21156
22507
  apikey?: string;
@@ -21166,10 +22517,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21166
22517
  p_company_name?: string;
21167
22518
  p_environment: string;
21168
22519
  p_office_code?: string;
22520
+ p_reset_sync?: boolean;
21169
22521
  p_status?: string;
21170
22522
  p_user_id: string;
21171
22523
  };
21172
- Returns: string;
22524
+ Returns: import("./types.js").Json;
21173
22525
  };
21174
22526
  upsert_auto_fulfillment_log: {
21175
22527
  Args: {
@@ -21190,11 +22542,31 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21190
22542
  Args: never;
21191
22543
  Returns: string;
21192
22544
  };
22545
+ wo_create_from_source: {
22546
+ Args: {
22547
+ _payload?: import("./types.js").Json;
22548
+ _source_id: string;
22549
+ _source_type: string;
22550
+ };
22551
+ Returns: string;
22552
+ };
22553
+ wo_get_billable_lines: {
22554
+ Args: {
22555
+ _work_order_id: string;
22556
+ };
22557
+ Returns: import("./types.js").Json;
22558
+ };
22559
+ wo_get_summary: {
22560
+ Args: {
22561
+ _work_order_id: string;
22562
+ };
22563
+ Returns: import("./types.js").Json;
22564
+ };
21193
22565
  };
21194
22566
  Enums: {
21195
22567
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21196
22568
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21197
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22569
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21198
22570
  doc_orientation: "portrait" | "landscape";
21199
22571
  exact_env: "staging" | "live";
21200
22572
  exact_push_status: "pending" | "sent" | "error";