@flowselections/floriday-voorraad 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-lib/index.d.ts +0 -1
  2. package/dist-lib/index.d.ts.map +1 -1
  3. package/dist-lib/index.js +0 -3
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2698 -344
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.d.ts +2698 -344
  7. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.js +2 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +2698 -344
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  12. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  13. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  14. package/dist-lib/integrations/supabase/types.d.ts +2846 -443
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/types.js +3 -0
  17. package/dist-lib/lib/floricode-required-features.functions.d.ts +2698 -344
  18. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +2698 -344
  20. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-env.functions.d.ts +5182 -474
  22. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-gateway.functions.d.ts +15546 -1422
  24. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +5182 -474
  26. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-warehouse.functions.d.ts +7773 -711
  28. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-writes.functions.d.ts +5182 -474
  30. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/module-health.functions.d.ts +5182 -474
  32. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/stock-sync.functions.d.ts +5182 -474
  34. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -707,6 +707,99 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
707
707
  };
708
708
  Relationships: [];
709
709
  };
710
+ artikelen_cache: {
711
+ Row: {
712
+ artikelcode: string;
713
+ bron: string;
714
+ bruto_prijs_cent: number | null;
715
+ created_at: string;
716
+ eenheid: string;
717
+ fabrikant: string | null;
718
+ fetched_at: string;
719
+ gtin: string | null;
720
+ id: string;
721
+ naam: string;
722
+ netto_prijs_cent: number | null;
723
+ omschrijving: string | null;
724
+ raw: import("../integrations/supabase/types").Json;
725
+ updated_at: string;
726
+ valuta: string;
727
+ };
728
+ Insert: {
729
+ artikelcode: string;
730
+ bron?: string;
731
+ bruto_prijs_cent?: number | null;
732
+ created_at?: string;
733
+ eenheid?: string;
734
+ fabrikant?: string | null;
735
+ fetched_at?: string;
736
+ gtin?: string | null;
737
+ id?: string;
738
+ naam: string;
739
+ netto_prijs_cent?: number | null;
740
+ omschrijving?: string | null;
741
+ raw?: import("../integrations/supabase/types").Json;
742
+ updated_at?: string;
743
+ valuta?: string;
744
+ };
745
+ Update: {
746
+ artikelcode?: string;
747
+ bron?: string;
748
+ bruto_prijs_cent?: number | null;
749
+ created_at?: string;
750
+ eenheid?: string;
751
+ fabrikant?: string | null;
752
+ fetched_at?: string;
753
+ gtin?: string | null;
754
+ id?: string;
755
+ naam?: string;
756
+ netto_prijs_cent?: number | null;
757
+ omschrijving?: string | null;
758
+ raw?: import("../integrations/supabase/types").Json;
759
+ updated_at?: string;
760
+ valuta?: string;
761
+ };
762
+ Relationships: [];
763
+ };
764
+ artikelen_veldconfig: {
765
+ Row: {
766
+ bron_pad: string;
767
+ created_at: string;
768
+ id: string;
769
+ label: string;
770
+ sort_order: number;
771
+ type: string;
772
+ updated_at: string;
773
+ veld_key: string;
774
+ zichtbaar_in_detail: boolean;
775
+ zichtbaar_in_lijst: boolean;
776
+ };
777
+ Insert: {
778
+ bron_pad: string;
779
+ created_at?: string;
780
+ id?: string;
781
+ label: string;
782
+ sort_order?: number;
783
+ type?: string;
784
+ updated_at?: string;
785
+ veld_key: string;
786
+ zichtbaar_in_detail?: boolean;
787
+ zichtbaar_in_lijst?: boolean;
788
+ };
789
+ Update: {
790
+ bron_pad?: string;
791
+ created_at?: string;
792
+ id?: string;
793
+ label?: string;
794
+ sort_order?: number;
795
+ type?: string;
796
+ updated_at?: string;
797
+ veld_key?: string;
798
+ zichtbaar_in_detail?: boolean;
799
+ zichtbaar_in_lijst?: boolean;
800
+ };
801
+ Relationships: [];
802
+ };
710
803
  booking_items: {
711
804
  Row: {
712
805
  booking_id: string;
@@ -905,6 +998,126 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
905
998
  };
906
999
  Relationships: [];
907
1000
  };
1001
+ cao_holidays: {
1002
+ Row: {
1003
+ created_at: string;
1004
+ description: string | null;
1005
+ holiday_date: string;
1006
+ id: string;
1007
+ updated_at: string;
1008
+ };
1009
+ Insert: {
1010
+ created_at?: string;
1011
+ description?: string | null;
1012
+ holiday_date: string;
1013
+ id?: string;
1014
+ updated_at?: string;
1015
+ };
1016
+ Update: {
1017
+ created_at?: string;
1018
+ description?: string | null;
1019
+ holiday_date?: string;
1020
+ id?: string;
1021
+ updated_at?: string;
1022
+ };
1023
+ Relationships: [];
1024
+ };
1025
+ cao_settings: {
1026
+ Row: {
1027
+ auto_break_after_hours: number;
1028
+ auto_break_minutes: number;
1029
+ auto_break_unpaid: boolean;
1030
+ auto_stop_after_hours: number;
1031
+ callout_fee: number;
1032
+ created_at: string;
1033
+ daily_regular_hours: number;
1034
+ default_hourly_rate: number;
1035
+ id: string;
1036
+ materials_markup_percent: number;
1037
+ max_daily_hours: number;
1038
+ max_weekly_hours: number;
1039
+ meal_allowance_amount: number;
1040
+ overtime_pct_178: number;
1041
+ overtime_pct_189: number;
1042
+ overtime_pct_212: number;
1043
+ reminder_after_hours: number;
1044
+ standby_evening_amount: number;
1045
+ standby_weekend_amount: number;
1046
+ travel_cost_per_km: number | null;
1047
+ travel_cost_threshold_km: number | null;
1048
+ travel_counts_as_work: boolean;
1049
+ travel_hourly_rate: number;
1050
+ travel_rate_per_hour: number;
1051
+ travel_threshold_minutes: number;
1052
+ updated_at: string;
1053
+ weekend_always_212: boolean;
1054
+ window_end: string;
1055
+ window_start: string;
1056
+ };
1057
+ Insert: {
1058
+ auto_break_after_hours?: number;
1059
+ auto_break_minutes?: number;
1060
+ auto_break_unpaid?: boolean;
1061
+ auto_stop_after_hours?: number;
1062
+ callout_fee?: number;
1063
+ created_at?: string;
1064
+ daily_regular_hours?: number;
1065
+ default_hourly_rate?: number;
1066
+ id?: string;
1067
+ materials_markup_percent?: number;
1068
+ max_daily_hours?: number;
1069
+ max_weekly_hours?: number;
1070
+ meal_allowance_amount?: number;
1071
+ overtime_pct_178?: number;
1072
+ overtime_pct_189?: number;
1073
+ overtime_pct_212?: number;
1074
+ reminder_after_hours?: number;
1075
+ standby_evening_amount?: number;
1076
+ standby_weekend_amount?: number;
1077
+ travel_cost_per_km?: number | null;
1078
+ travel_cost_threshold_km?: number | null;
1079
+ travel_counts_as_work?: boolean;
1080
+ travel_hourly_rate?: number;
1081
+ travel_rate_per_hour?: number;
1082
+ travel_threshold_minutes?: number;
1083
+ updated_at?: string;
1084
+ weekend_always_212?: boolean;
1085
+ window_end?: string;
1086
+ window_start?: string;
1087
+ };
1088
+ Update: {
1089
+ auto_break_after_hours?: number;
1090
+ auto_break_minutes?: number;
1091
+ auto_break_unpaid?: boolean;
1092
+ auto_stop_after_hours?: number;
1093
+ callout_fee?: number;
1094
+ created_at?: string;
1095
+ daily_regular_hours?: number;
1096
+ default_hourly_rate?: number;
1097
+ id?: string;
1098
+ materials_markup_percent?: number;
1099
+ max_daily_hours?: number;
1100
+ max_weekly_hours?: number;
1101
+ meal_allowance_amount?: number;
1102
+ overtime_pct_178?: number;
1103
+ overtime_pct_189?: number;
1104
+ overtime_pct_212?: number;
1105
+ reminder_after_hours?: number;
1106
+ standby_evening_amount?: number;
1107
+ standby_weekend_amount?: number;
1108
+ travel_cost_per_km?: number | null;
1109
+ travel_cost_threshold_km?: number | null;
1110
+ travel_counts_as_work?: boolean;
1111
+ travel_hourly_rate?: number;
1112
+ travel_rate_per_hour?: number;
1113
+ travel_threshold_minutes?: number;
1114
+ updated_at?: string;
1115
+ weekend_always_212?: boolean;
1116
+ window_end?: string;
1117
+ window_start?: string;
1118
+ };
1119
+ Relationships: [];
1120
+ };
908
1121
  carrier_shipping_rates: {
909
1122
  Row: {
910
1123
  carrier_id: string;
@@ -2672,6 +2885,42 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2672
2885
  };
2673
2886
  Relationships: [];
2674
2887
  };
2888
+ document_bronregels: {
2889
+ Row: {
2890
+ bron: string;
2891
+ created_at: string;
2892
+ documenttype: string;
2893
+ herkomst: string;
2894
+ id: string;
2895
+ layout_id: string | null;
2896
+ updated_at: string;
2897
+ };
2898
+ Insert: {
2899
+ bron?: string;
2900
+ created_at?: string;
2901
+ documenttype: string;
2902
+ herkomst: string;
2903
+ id?: string;
2904
+ layout_id?: string | null;
2905
+ updated_at?: string;
2906
+ };
2907
+ Update: {
2908
+ bron?: string;
2909
+ created_at?: string;
2910
+ documenttype?: string;
2911
+ herkomst?: string;
2912
+ id?: string;
2913
+ layout_id?: string | null;
2914
+ updated_at?: string;
2915
+ };
2916
+ Relationships: [{
2917
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2918
+ columns: ["layout_id"];
2919
+ isOneToOne: false;
2920
+ referencedRelation: "document_layouts";
2921
+ referencedColumns: ["id"];
2922
+ }];
2923
+ };
2675
2924
  document_formaat_printers: {
2676
2925
  Row: {
2677
2926
  created_at: string;
@@ -2949,6 +3198,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2949
3198
  Row: {
2950
3199
  actief: boolean;
2951
3200
  breedte_mm: number;
3201
+ bron: string;
2952
3202
  config: import("../integrations/supabase/types").Json;
2953
3203
  created_at: string;
2954
3204
  created_by: string | null;
@@ -2966,12 +3216,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2966
3216
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2967
3217
  page_settings: import("../integrations/supabase/types").Json;
2968
3218
  papierformaat: string;
3219
+ systeem: boolean;
2969
3220
  thumbnail_url: string | null;
2970
3221
  updated_at: string;
2971
3222
  };
2972
3223
  Insert: {
2973
3224
  actief?: boolean;
2974
3225
  breedte_mm?: number;
3226
+ bron?: string;
2975
3227
  config?: import("../integrations/supabase/types").Json;
2976
3228
  created_at?: string;
2977
3229
  created_by?: string | null;
@@ -2989,12 +3241,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2989
3241
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
2990
3242
  page_settings?: import("../integrations/supabase/types").Json;
2991
3243
  papierformaat?: string;
3244
+ systeem?: boolean;
2992
3245
  thumbnail_url?: string | null;
2993
3246
  updated_at?: string;
2994
3247
  };
2995
3248
  Update: {
2996
3249
  actief?: boolean;
2997
3250
  breedte_mm?: number;
3251
+ bron?: string;
2998
3252
  config?: import("../integrations/supabase/types").Json;
2999
3253
  created_at?: string;
3000
3254
  created_by?: string | null;
@@ -3012,11 +3266,90 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3012
3266
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3013
3267
  page_settings?: import("../integrations/supabase/types").Json;
3014
3268
  papierformaat?: string;
3269
+ systeem?: boolean;
3015
3270
  thumbnail_url?: string | null;
3016
3271
  updated_at?: string;
3017
3272
  };
3018
3273
  Relationships: [];
3019
3274
  };
3275
+ document_printplek_printers: {
3276
+ Row: {
3277
+ created_at: string;
3278
+ documenttype: string;
3279
+ id: string;
3280
+ papierformaat: string | null;
3281
+ print_plek_id: string;
3282
+ printer_id: string | null;
3283
+ updated_at: string;
3284
+ };
3285
+ Insert: {
3286
+ created_at?: string;
3287
+ documenttype: string;
3288
+ id?: string;
3289
+ papierformaat?: string | null;
3290
+ print_plek_id: string;
3291
+ printer_id?: string | null;
3292
+ updated_at?: string;
3293
+ };
3294
+ Update: {
3295
+ created_at?: string;
3296
+ documenttype?: string;
3297
+ id?: string;
3298
+ papierformaat?: string | null;
3299
+ print_plek_id?: string;
3300
+ printer_id?: string | null;
3301
+ updated_at?: string;
3302
+ };
3303
+ Relationships: [{
3304
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3305
+ columns: ["print_plek_id"];
3306
+ isOneToOne: false;
3307
+ referencedRelation: "print_plekken";
3308
+ referencedColumns: ["id"];
3309
+ }, {
3310
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3311
+ columns: ["printer_id"];
3312
+ isOneToOne: false;
3313
+ referencedRelation: "printers";
3314
+ referencedColumns: ["id"];
3315
+ }];
3316
+ };
3317
+ document_werkplek_printers: {
3318
+ Row: {
3319
+ created_at: string;
3320
+ documenttype: string;
3321
+ id: string;
3322
+ papierformaat: string | null;
3323
+ printer_id: string | null;
3324
+ updated_at: string;
3325
+ werkplek: string;
3326
+ };
3327
+ Insert: {
3328
+ created_at?: string;
3329
+ documenttype: string;
3330
+ id?: string;
3331
+ papierformaat?: string | null;
3332
+ printer_id?: string | null;
3333
+ updated_at?: string;
3334
+ werkplek: string;
3335
+ };
3336
+ Update: {
3337
+ created_at?: string;
3338
+ documenttype?: string;
3339
+ id?: string;
3340
+ papierformaat?: string | null;
3341
+ printer_id?: string | null;
3342
+ updated_at?: string;
3343
+ werkplek?: string;
3344
+ };
3345
+ Relationships: [{
3346
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3347
+ columns: ["printer_id"];
3348
+ isOneToOne: false;
3349
+ referencedRelation: "printers";
3350
+ referencedColumns: ["id"];
3351
+ }];
3352
+ };
3020
3353
  email_auth_connections: {
3021
3354
  Row: {
3022
3355
  access_token_encrypted: string | null;
@@ -6513,6 +6846,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6513
6846
  Row: {
6514
6847
  buyer_organization_id: string | null;
6515
6848
  connection_id: string;
6849
+ controlled_at: string | null;
6516
6850
  created_at: string;
6517
6851
  data: import("../integrations/supabase/types").Json;
6518
6852
  floriday_id: string;
@@ -6524,6 +6858,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6524
6858
  Insert: {
6525
6859
  buyer_organization_id?: string | null;
6526
6860
  connection_id: string;
6861
+ controlled_at?: string | null;
6527
6862
  created_at?: string;
6528
6863
  data: import("../integrations/supabase/types").Json;
6529
6864
  floriday_id: string;
@@ -6535,6 +6870,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6535
6870
  Update: {
6536
6871
  buyer_organization_id?: string | null;
6537
6872
  connection_id?: string;
6873
+ controlled_at?: string | null;
6538
6874
  created_at?: string;
6539
6875
  data?: import("../integrations/supabase/types").Json;
6540
6876
  floriday_id?: string;
@@ -7259,8 +7595,63 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7259
7595
  };
7260
7596
  Relationships: [];
7261
7597
  };
7598
+ invoice_items: {
7599
+ Row: {
7600
+ created_at: string;
7601
+ description: string;
7602
+ id: string;
7603
+ invoice_id: string;
7604
+ kind: string;
7605
+ quantity: number;
7606
+ sort_order: number;
7607
+ source_line_ref: string | null;
7608
+ total_cents: number;
7609
+ unit: string;
7610
+ unit_price_cents: number;
7611
+ };
7612
+ Insert: {
7613
+ created_at?: string;
7614
+ description?: string;
7615
+ id?: string;
7616
+ invoice_id: string;
7617
+ kind?: string;
7618
+ quantity?: number;
7619
+ sort_order?: number;
7620
+ source_line_ref?: string | null;
7621
+ total_cents?: number;
7622
+ unit?: string;
7623
+ unit_price_cents?: number;
7624
+ };
7625
+ Update: {
7626
+ created_at?: string;
7627
+ description?: string;
7628
+ id?: string;
7629
+ invoice_id?: string;
7630
+ kind?: string;
7631
+ quantity?: number;
7632
+ sort_order?: number;
7633
+ source_line_ref?: string | null;
7634
+ total_cents?: number;
7635
+ unit?: string;
7636
+ unit_price_cents?: number;
7637
+ };
7638
+ Relationships: [{
7639
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7640
+ columns: ["invoice_id"];
7641
+ isOneToOne: false;
7642
+ referencedRelation: "invoices";
7643
+ referencedColumns: ["id"];
7644
+ }, {
7645
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7646
+ columns: ["invoice_id"];
7647
+ isOneToOne: false;
7648
+ referencedRelation: "uren_facturen";
7649
+ referencedColumns: ["id"];
7650
+ }];
7651
+ };
7262
7652
  invoice_post_idempotency: {
7263
7653
  Row: {
7654
+ administration_code: string;
7264
7655
  client_request_id: string;
7265
7656
  completed_at: string | null;
7266
7657
  created_at: string;
@@ -7270,6 +7661,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7270
7661
  user_id: string;
7271
7662
  };
7272
7663
  Insert: {
7664
+ administration_code?: string;
7273
7665
  client_request_id: string;
7274
7666
  completed_at?: string | null;
7275
7667
  created_at?: string;
@@ -7279,6 +7671,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7279
7671
  user_id: string;
7280
7672
  };
7281
7673
  Update: {
7674
+ administration_code?: string;
7282
7675
  client_request_id?: string;
7283
7676
  completed_at?: string | null;
7284
7677
  created_at?: string;
@@ -7436,52 +7829,169 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7436
7829
  };
7437
7830
  Relationships: [];
7438
7831
  };
7439
- itk_contact_persons: {
7832
+ invoice_timing_settings: {
7440
7833
  Row: {
7834
+ anchor: string;
7835
+ business_days_only: boolean;
7441
7836
  created_at: string;
7442
- customer_id: string;
7443
- email: string | null;
7837
+ enabled: boolean;
7444
7838
  id: string;
7445
- name: string;
7446
- phone: string | null;
7447
- role: string | null;
7839
+ offset_days: number;
7840
+ pickup_anchor: string;
7841
+ pickup_business_days_only: boolean;
7842
+ pickup_offset_days: number;
7843
+ pickup_time_of_day: string;
7844
+ singleton: boolean;
7845
+ time_of_day: string;
7448
7846
  updated_at: string;
7449
7847
  };
7450
7848
  Insert: {
7849
+ anchor?: string;
7850
+ business_days_only?: boolean;
7451
7851
  created_at?: string;
7452
- customer_id: string;
7453
- email?: string | null;
7852
+ enabled?: boolean;
7454
7853
  id?: string;
7455
- name: string;
7456
- phone?: string | null;
7457
- role?: string | null;
7854
+ offset_days?: number;
7855
+ pickup_anchor?: string;
7856
+ pickup_business_days_only?: boolean;
7857
+ pickup_offset_days?: number;
7858
+ pickup_time_of_day?: string;
7859
+ singleton?: boolean;
7860
+ time_of_day?: string;
7458
7861
  updated_at?: string;
7459
7862
  };
7460
7863
  Update: {
7864
+ anchor?: string;
7865
+ business_days_only?: boolean;
7461
7866
  created_at?: string;
7462
- customer_id?: string;
7463
- email?: string | null;
7867
+ enabled?: boolean;
7464
7868
  id?: string;
7465
- name?: string;
7466
- phone?: string | null;
7467
- role?: string | null;
7869
+ offset_days?: number;
7870
+ pickup_anchor?: string;
7871
+ pickup_business_days_only?: boolean;
7872
+ pickup_offset_days?: number;
7873
+ pickup_time_of_day?: string;
7874
+ singleton?: boolean;
7875
+ time_of_day?: string;
7468
7876
  updated_at?: string;
7469
7877
  };
7470
- Relationships: [{
7471
- foreignKeyName: "itk_contact_persons_customer_id_fkey";
7472
- columns: ["customer_id"];
7473
- isOneToOne: false;
7474
- referencedRelation: "itk_customers";
7475
- referencedColumns: ["id"];
7476
- }];
7878
+ Relationships: [];
7477
7879
  };
7478
- itk_customer_dynamic_values: {
7880
+ invoices: {
7479
7881
  Row: {
7480
7882
  created_at: string;
7481
- customer_id: string;
7482
- field_id: string;
7883
+ created_by: string | null;
7884
+ customer_id: string | null;
7885
+ customer_name: string | null;
7886
+ due_date: string | null;
7483
7887
  id: string;
7484
- updated_at: string;
7888
+ invoice_date: string;
7889
+ invoice_number: string | null;
7890
+ note: string | null;
7891
+ source_number: string | null;
7892
+ source_ref: string | null;
7893
+ source_type: string;
7894
+ status: string;
7895
+ subtotal_cents: number;
7896
+ total_cents: number;
7897
+ updated_at: string;
7898
+ vat_cents: number;
7899
+ vat_rate: number;
7900
+ };
7901
+ Insert: {
7902
+ created_at?: string;
7903
+ created_by?: string | null;
7904
+ customer_id?: string | null;
7905
+ customer_name?: string | null;
7906
+ due_date?: string | null;
7907
+ id?: string;
7908
+ invoice_date?: string;
7909
+ invoice_number?: string | null;
7910
+ note?: string | null;
7911
+ source_number?: string | null;
7912
+ source_ref?: string | null;
7913
+ source_type?: string;
7914
+ status?: string;
7915
+ subtotal_cents?: number;
7916
+ total_cents?: number;
7917
+ updated_at?: string;
7918
+ vat_cents?: number;
7919
+ vat_rate?: number;
7920
+ };
7921
+ Update: {
7922
+ created_at?: string;
7923
+ created_by?: string | null;
7924
+ customer_id?: string | null;
7925
+ customer_name?: string | null;
7926
+ due_date?: string | null;
7927
+ id?: string;
7928
+ invoice_date?: string;
7929
+ invoice_number?: string | null;
7930
+ note?: string | null;
7931
+ source_number?: string | null;
7932
+ source_ref?: string | null;
7933
+ source_type?: string;
7934
+ status?: string;
7935
+ subtotal_cents?: number;
7936
+ total_cents?: number;
7937
+ updated_at?: string;
7938
+ vat_cents?: number;
7939
+ vat_rate?: number;
7940
+ };
7941
+ Relationships: [{
7942
+ foreignKeyName: "invoices_customer_id_fkey";
7943
+ columns: ["customer_id"];
7944
+ isOneToOne: false;
7945
+ referencedRelation: "itk_customers";
7946
+ referencedColumns: ["id"];
7947
+ }];
7948
+ };
7949
+ itk_contact_persons: {
7950
+ Row: {
7951
+ created_at: string;
7952
+ customer_id: string;
7953
+ email: string | null;
7954
+ id: string;
7955
+ name: string;
7956
+ phone: string | null;
7957
+ role: string | null;
7958
+ updated_at: string;
7959
+ };
7960
+ Insert: {
7961
+ created_at?: string;
7962
+ customer_id: string;
7963
+ email?: string | null;
7964
+ id?: string;
7965
+ name: string;
7966
+ phone?: string | null;
7967
+ role?: string | null;
7968
+ updated_at?: string;
7969
+ };
7970
+ Update: {
7971
+ created_at?: string;
7972
+ customer_id?: string;
7973
+ email?: string | null;
7974
+ id?: string;
7975
+ name?: string;
7976
+ phone?: string | null;
7977
+ role?: string | null;
7978
+ updated_at?: string;
7979
+ };
7980
+ Relationships: [{
7981
+ foreignKeyName: "itk_contact_persons_customer_id_fkey";
7982
+ columns: ["customer_id"];
7983
+ isOneToOne: false;
7984
+ referencedRelation: "itk_customers";
7985
+ referencedColumns: ["id"];
7986
+ }];
7987
+ };
7988
+ itk_customer_dynamic_values: {
7989
+ Row: {
7990
+ created_at: string;
7991
+ customer_id: string;
7992
+ field_id: string;
7993
+ id: string;
7994
+ updated_at: string;
7485
7995
  value: string | null;
7486
7996
  };
7487
7997
  Insert: {
@@ -7631,6 +8141,258 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7631
8141
  };
7632
8142
  Relationships: [];
7633
8143
  };
8144
+ itk_offerte_events: {
8145
+ Row: {
8146
+ created_at: string;
8147
+ event_type: string;
8148
+ id: string;
8149
+ metadata: import("../integrations/supabase/types").Json;
8150
+ offerte_id: string;
8151
+ omschrijving: string | null;
8152
+ user_id: string | null;
8153
+ };
8154
+ Insert: {
8155
+ created_at?: string;
8156
+ event_type: string;
8157
+ id?: string;
8158
+ metadata?: import("../integrations/supabase/types").Json;
8159
+ offerte_id: string;
8160
+ omschrijving?: string | null;
8161
+ user_id?: string | null;
8162
+ };
8163
+ Update: {
8164
+ created_at?: string;
8165
+ event_type?: string;
8166
+ id?: string;
8167
+ metadata?: import("../integrations/supabase/types").Json;
8168
+ offerte_id?: string;
8169
+ omschrijving?: string | null;
8170
+ user_id?: string | null;
8171
+ };
8172
+ Relationships: [{
8173
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8174
+ columns: ["offerte_id"];
8175
+ isOneToOne: false;
8176
+ referencedRelation: "itk_offertes";
8177
+ referencedColumns: ["id"];
8178
+ }];
8179
+ };
8180
+ itk_offerte_regels: {
8181
+ Row: {
8182
+ created_at: string;
8183
+ id: string;
8184
+ line_total_cents: number;
8185
+ offerte_id: string;
8186
+ omschrijving: string;
8187
+ package_id: string | null;
8188
+ quantity: number;
8189
+ sort_order: number;
8190
+ source: string;
8191
+ unit_price_cents: number;
8192
+ updated_at: string;
8193
+ };
8194
+ Insert: {
8195
+ created_at?: string;
8196
+ id?: string;
8197
+ line_total_cents?: number;
8198
+ offerte_id: string;
8199
+ omschrijving?: string;
8200
+ package_id?: string | null;
8201
+ quantity?: number;
8202
+ sort_order?: number;
8203
+ source?: string;
8204
+ unit_price_cents?: number;
8205
+ updated_at?: string;
8206
+ };
8207
+ Update: {
8208
+ created_at?: string;
8209
+ id?: string;
8210
+ line_total_cents?: number;
8211
+ offerte_id?: string;
8212
+ omschrijving?: string;
8213
+ package_id?: string | null;
8214
+ quantity?: number;
8215
+ sort_order?: number;
8216
+ source?: string;
8217
+ unit_price_cents?: number;
8218
+ updated_at?: string;
8219
+ };
8220
+ Relationships: [{
8221
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8222
+ columns: ["offerte_id"];
8223
+ isOneToOne: false;
8224
+ referencedRelation: "itk_offertes";
8225
+ referencedColumns: ["id"];
8226
+ }, {
8227
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8228
+ columns: ["package_id"];
8229
+ isOneToOne: false;
8230
+ referencedRelation: "werkbon_packages";
8231
+ referencedColumns: ["id"];
8232
+ }];
8233
+ };
8234
+ itk_offerte_settings: {
8235
+ Row: {
8236
+ auto_convert_binnen_mandaat: boolean;
8237
+ created_at: string;
8238
+ default_geldigheid_dagen: number;
8239
+ default_vat_rate: number;
8240
+ id: string;
8241
+ singleton: boolean;
8242
+ updated_at: string;
8243
+ };
8244
+ Insert: {
8245
+ auto_convert_binnen_mandaat?: boolean;
8246
+ created_at?: string;
8247
+ default_geldigheid_dagen?: number;
8248
+ default_vat_rate?: number;
8249
+ id?: string;
8250
+ singleton?: boolean;
8251
+ updated_at?: string;
8252
+ };
8253
+ Update: {
8254
+ auto_convert_binnen_mandaat?: boolean;
8255
+ created_at?: string;
8256
+ default_geldigheid_dagen?: number;
8257
+ default_vat_rate?: number;
8258
+ id?: string;
8259
+ singleton?: boolean;
8260
+ updated_at?: string;
8261
+ };
8262
+ Relationships: [];
8263
+ };
8264
+ itk_offertes: {
8265
+ Row: {
8266
+ ai_generated: boolean;
8267
+ approved_at: string | null;
8268
+ binnen_mandaat: boolean;
8269
+ contact_id: string | null;
8270
+ converted_at: string | null;
8271
+ created_at: string;
8272
+ created_by: string | null;
8273
+ customer_id: string | null;
8274
+ follow_up_werkbon_id: string | null;
8275
+ id: string;
8276
+ jaar: number;
8277
+ mandaat_restant_cents: number;
8278
+ notities: string | null;
8279
+ offerte_number: string | null;
8280
+ omschrijving: string;
8281
+ rejected_at: string | null;
8282
+ sent_at: string | null;
8283
+ source_number: string | null;
8284
+ source_ref: string | null;
8285
+ source_type: string;
8286
+ status: string;
8287
+ subtotal_cents: number;
8288
+ total_cents: number;
8289
+ updated_at: string;
8290
+ valid_until: string | null;
8291
+ vat_cents: number;
8292
+ vat_rate: number;
8293
+ viewed_at: string | null;
8294
+ volgnummer: number | null;
8295
+ werkbon_id: string | null;
8296
+ work_location_id: string | null;
8297
+ };
8298
+ Insert: {
8299
+ ai_generated?: boolean;
8300
+ approved_at?: string | null;
8301
+ binnen_mandaat?: boolean;
8302
+ contact_id?: string | null;
8303
+ converted_at?: string | null;
8304
+ created_at?: string;
8305
+ created_by?: string | null;
8306
+ customer_id?: string | null;
8307
+ follow_up_werkbon_id?: string | null;
8308
+ id?: string;
8309
+ jaar?: number;
8310
+ mandaat_restant_cents?: number;
8311
+ notities?: string | null;
8312
+ offerte_number?: string | null;
8313
+ omschrijving?: string;
8314
+ rejected_at?: string | null;
8315
+ sent_at?: string | null;
8316
+ source_number?: string | null;
8317
+ source_ref?: string | null;
8318
+ source_type?: string;
8319
+ status?: string;
8320
+ subtotal_cents?: number;
8321
+ total_cents?: number;
8322
+ updated_at?: string;
8323
+ valid_until?: string | null;
8324
+ vat_cents?: number;
8325
+ vat_rate?: number;
8326
+ viewed_at?: string | null;
8327
+ volgnummer?: number | null;
8328
+ werkbon_id?: string | null;
8329
+ work_location_id?: string | null;
8330
+ };
8331
+ Update: {
8332
+ ai_generated?: boolean;
8333
+ approved_at?: string | null;
8334
+ binnen_mandaat?: boolean;
8335
+ contact_id?: string | null;
8336
+ converted_at?: string | null;
8337
+ created_at?: string;
8338
+ created_by?: string | null;
8339
+ customer_id?: string | null;
8340
+ follow_up_werkbon_id?: string | null;
8341
+ id?: string;
8342
+ jaar?: number;
8343
+ mandaat_restant_cents?: number;
8344
+ notities?: string | null;
8345
+ offerte_number?: string | null;
8346
+ omschrijving?: string;
8347
+ rejected_at?: string | null;
8348
+ sent_at?: string | null;
8349
+ source_number?: string | null;
8350
+ source_ref?: string | null;
8351
+ source_type?: string;
8352
+ status?: string;
8353
+ subtotal_cents?: number;
8354
+ total_cents?: number;
8355
+ updated_at?: string;
8356
+ valid_until?: string | null;
8357
+ vat_cents?: number;
8358
+ vat_rate?: number;
8359
+ viewed_at?: string | null;
8360
+ volgnummer?: number | null;
8361
+ werkbon_id?: string | null;
8362
+ work_location_id?: string | null;
8363
+ };
8364
+ Relationships: [{
8365
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8366
+ columns: ["contact_id"];
8367
+ isOneToOne: false;
8368
+ referencedRelation: "itk_contact_persons";
8369
+ referencedColumns: ["id"];
8370
+ }, {
8371
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8372
+ columns: ["customer_id"];
8373
+ isOneToOne: false;
8374
+ referencedRelation: "itk_customers";
8375
+ referencedColumns: ["id"];
8376
+ }, {
8377
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8378
+ columns: ["follow_up_werkbon_id"];
8379
+ isOneToOne: false;
8380
+ referencedRelation: "werkbonnen";
8381
+ referencedColumns: ["id"];
8382
+ }, {
8383
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8384
+ columns: ["werkbon_id"];
8385
+ isOneToOne: false;
8386
+ referencedRelation: "werkbonnen";
8387
+ referencedColumns: ["id"];
8388
+ }, {
8389
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8390
+ columns: ["work_location_id"];
8391
+ isOneToOne: false;
8392
+ referencedRelation: "itk_work_locations";
8393
+ referencedColumns: ["id"];
8394
+ }];
8395
+ };
7634
8396
  itk_work_locations: {
7635
8397
  Row: {
7636
8398
  city: string | null;
@@ -7748,7 +8510,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7748
8510
  start_date: string;
7749
8511
  start_time: string | null;
7750
8512
  status: string;
7751
- tenant_id: string;
7752
8513
  updated_at: string;
7753
8514
  user_id: string;
7754
8515
  };
@@ -7766,7 +8527,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7766
8527
  start_date: string;
7767
8528
  start_time?: string | null;
7768
8529
  status?: string;
7769
- tenant_id?: string;
7770
8530
  updated_at?: string;
7771
8531
  user_id: string;
7772
8532
  };
@@ -7784,7 +8544,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7784
8544
  start_date?: string;
7785
8545
  start_time?: string | null;
7786
8546
  status?: string;
7787
- tenant_id?: string;
7788
8547
  updated_at?: string;
7789
8548
  user_id?: string;
7790
8549
  };
@@ -7792,13 +8551,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7792
8551
  foreignKeyName: "leave_requests_monteur_id_fkey";
7793
8552
  columns: ["monteur_id"];
7794
8553
  isOneToOne: false;
7795
- referencedRelation: "monteurs";
8554
+ referencedRelation: "profiles";
7796
8555
  referencedColumns: ["id"];
7797
8556
  }, {
7798
8557
  foreignKeyName: "leave_requests_user_id_fkey";
7799
8558
  columns: ["user_id"];
7800
8559
  isOneToOne: false;
7801
- referencedRelation: "monteurs";
8560
+ referencedRelation: "profiles";
7802
8561
  referencedColumns: ["id"];
7803
8562
  }];
7804
8563
  };
@@ -8534,6 +9293,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8534
9293
  id: string;
8535
9294
  last_error: string | null;
8536
9295
  last_error_at: string | null;
9296
+ last_error_code: string | null;
9297
+ last_gateway_status: number | null;
9298
+ last_queued_at: string | null;
9299
+ last_response: import("../integrations/supabase/types").Json | null;
8537
9300
  last_sent_hash: string | null;
8538
9301
  locked_by: string | null;
8539
9302
  locked_until: string | null;
@@ -8554,6 +9317,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8554
9317
  id?: string;
8555
9318
  last_error?: string | null;
8556
9319
  last_error_at?: string | null;
9320
+ last_error_code?: string | null;
9321
+ last_gateway_status?: number | null;
9322
+ last_queued_at?: string | null;
9323
+ last_response?: import("../integrations/supabase/types").Json | null;
8557
9324
  last_sent_hash?: string | null;
8558
9325
  locked_by?: string | null;
8559
9326
  locked_until?: string | null;
@@ -8574,6 +9341,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8574
9341
  id?: string;
8575
9342
  last_error?: string | null;
8576
9343
  last_error_at?: string | null;
9344
+ last_error_code?: string | null;
9345
+ last_gateway_status?: number | null;
9346
+ last_queued_at?: string | null;
9347
+ last_response?: import("../integrations/supabase/types").Json | null;
8577
9348
  last_sent_hash?: string | null;
8578
9349
  locked_by?: string | null;
8579
9350
  locked_until?: string | null;
@@ -8666,6 +9437,45 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8666
9437
  };
8667
9438
  Relationships: [];
8668
9439
  };
9440
+ logistics_plan_queue: {
9441
+ Row: {
9442
+ attempts: number;
9443
+ claimed_at: string | null;
9444
+ enqueued_at: string;
9445
+ error: string | null;
9446
+ id: string;
9447
+ next_attempt_at: string;
9448
+ order_id: string;
9449
+ reason: string;
9450
+ status: string;
9451
+ updated_at: string;
9452
+ };
9453
+ Insert: {
9454
+ attempts?: number;
9455
+ claimed_at?: string | null;
9456
+ enqueued_at?: string;
9457
+ error?: string | null;
9458
+ id?: string;
9459
+ next_attempt_at?: string;
9460
+ order_id: string;
9461
+ reason?: string;
9462
+ status?: string;
9463
+ updated_at?: string;
9464
+ };
9465
+ Update: {
9466
+ attempts?: number;
9467
+ claimed_at?: string | null;
9468
+ enqueued_at?: string;
9469
+ error?: string | null;
9470
+ id?: string;
9471
+ next_attempt_at?: string;
9472
+ order_id?: string;
9473
+ reason?: string;
9474
+ status?: string;
9475
+ updated_at?: string;
9476
+ };
9477
+ Relationships: [];
9478
+ };
8669
9479
  logistics_plan_runs: {
8670
9480
  Row: {
8671
9481
  created_at: string;
@@ -8741,6 +9551,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8741
9551
  referencedColumns: ["id"];
8742
9552
  }];
8743
9553
  };
9554
+ logistics_plan_settings: {
9555
+ Row: {
9556
+ key: string;
9557
+ updated_at: string;
9558
+ value: string;
9559
+ };
9560
+ Insert: {
9561
+ key: string;
9562
+ updated_at?: string;
9563
+ value: string;
9564
+ };
9565
+ Update: {
9566
+ key?: string;
9567
+ updated_at?: string;
9568
+ value?: string;
9569
+ };
9570
+ Relationships: [];
9571
+ };
8744
9572
  logistics_rebuffer_state: {
8745
9573
  Row: {
8746
9574
  created_at: string;
@@ -9809,90 +10637,447 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9809
10637
  };
9810
10638
  Relationships: [];
9811
10639
  };
9812
- manufacture_product_components: {
10640
+ manufacture_product_components: {
10641
+ Row: {
10642
+ component_type: string;
10643
+ created_at: string;
10644
+ id: string;
10645
+ manufacture_product_id: string;
10646
+ product_group_id: string | null;
10647
+ quantity: number;
10648
+ trade_item_id: string | null;
10649
+ unit: string;
10650
+ };
10651
+ Insert: {
10652
+ component_type: string;
10653
+ created_at?: string;
10654
+ id?: string;
10655
+ manufacture_product_id: string;
10656
+ product_group_id?: string | null;
10657
+ quantity?: number;
10658
+ trade_item_id?: string | null;
10659
+ unit?: string;
10660
+ };
10661
+ Update: {
10662
+ component_type?: string;
10663
+ created_at?: string;
10664
+ id?: string;
10665
+ manufacture_product_id?: string;
10666
+ product_group_id?: string | null;
10667
+ quantity?: number;
10668
+ trade_item_id?: string | null;
10669
+ unit?: string;
10670
+ };
10671
+ Relationships: [{
10672
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
10673
+ columns: ["manufacture_product_id"];
10674
+ isOneToOne: false;
10675
+ referencedRelation: "manufacture_product_possible_stock_view";
10676
+ referencedColumns: ["manufacture_product_id"];
10677
+ }, {
10678
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
10679
+ columns: ["manufacture_product_id"];
10680
+ isOneToOne: false;
10681
+ referencedRelation: "manufacture_products";
10682
+ referencedColumns: ["id"];
10683
+ }, {
10684
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
10685
+ columns: ["product_group_id"];
10686
+ isOneToOne: false;
10687
+ referencedRelation: "product_groups";
10688
+ referencedColumns: ["id"];
10689
+ }];
10690
+ };
10691
+ manufacture_products: {
10692
+ Row: {
10693
+ created_at: string;
10694
+ description: string | null;
10695
+ id: string;
10696
+ is_active: boolean;
10697
+ name: string;
10698
+ produced_stock: number;
10699
+ product_code: string;
10700
+ tenant_id: string;
10701
+ updated_at: string;
10702
+ };
10703
+ Insert: {
10704
+ created_at?: string;
10705
+ description?: string | null;
10706
+ id?: string;
10707
+ is_active?: boolean;
10708
+ name: string;
10709
+ produced_stock?: number;
10710
+ product_code: string;
10711
+ tenant_id: string;
10712
+ updated_at?: string;
10713
+ };
10714
+ Update: {
10715
+ created_at?: string;
10716
+ description?: string | null;
10717
+ id?: string;
10718
+ is_active?: boolean;
10719
+ name?: string;
10720
+ produced_stock?: number;
10721
+ product_code?: string;
10722
+ tenant_id?: string;
10723
+ updated_at?: string;
10724
+ };
10725
+ Relationships: [];
10726
+ };
10727
+ maps_addresses: {
10728
+ Row: {
10729
+ address_hash: string;
10730
+ created_at: string;
10731
+ error_reason: string | null;
10732
+ formatted_address: string | null;
10733
+ id: string;
10734
+ lat: number | null;
10735
+ lng: number | null;
10736
+ place_id: string | null;
10737
+ raw_address: string;
10738
+ resolved_at: string | null;
10739
+ status: string;
10740
+ updated_at: string;
10741
+ };
10742
+ Insert: {
10743
+ address_hash: string;
10744
+ created_at?: string;
10745
+ error_reason?: string | null;
10746
+ formatted_address?: string | null;
10747
+ id?: string;
10748
+ lat?: number | null;
10749
+ lng?: number | null;
10750
+ place_id?: string | null;
10751
+ raw_address: string;
10752
+ resolved_at?: string | null;
10753
+ status?: string;
10754
+ updated_at?: string;
10755
+ };
10756
+ Update: {
10757
+ address_hash?: string;
10758
+ created_at?: string;
10759
+ error_reason?: string | null;
10760
+ formatted_address?: string | null;
10761
+ id?: string;
10762
+ lat?: number | null;
10763
+ lng?: number | null;
10764
+ place_id?: string | null;
10765
+ raw_address?: string;
10766
+ resolved_at?: string | null;
10767
+ status?: string;
10768
+ updated_at?: string;
10769
+ };
10770
+ Relationships: [];
10771
+ };
10772
+ maps_request_queue: {
10773
+ Row: {
10774
+ attempts: number;
10775
+ created_at: string;
10776
+ destination_hash: string | null;
10777
+ id: string;
10778
+ kind: string;
10779
+ last_error: string | null;
10780
+ mode: string;
10781
+ origin_hash: string | null;
10782
+ processed_at: string | null;
10783
+ raw_destination: string | null;
10784
+ raw_origin: string | null;
10785
+ requested_by: string | null;
10786
+ status: string;
10787
+ updated_at: string;
10788
+ };
10789
+ Insert: {
10790
+ attempts?: number;
10791
+ created_at?: string;
10792
+ destination_hash?: string | null;
10793
+ id?: string;
10794
+ kind: string;
10795
+ last_error?: string | null;
10796
+ mode?: string;
10797
+ origin_hash?: string | null;
10798
+ processed_at?: string | null;
10799
+ raw_destination?: string | null;
10800
+ raw_origin?: string | null;
10801
+ requested_by?: string | null;
10802
+ status?: string;
10803
+ updated_at?: string;
10804
+ };
10805
+ Update: {
10806
+ attempts?: number;
10807
+ created_at?: string;
10808
+ destination_hash?: string | null;
10809
+ id?: string;
10810
+ kind?: string;
10811
+ last_error?: string | null;
10812
+ mode?: string;
10813
+ origin_hash?: string | null;
10814
+ processed_at?: string | null;
10815
+ raw_destination?: string | null;
10816
+ raw_origin?: string | null;
10817
+ requested_by?: string | null;
10818
+ status?: string;
10819
+ updated_at?: string;
10820
+ };
10821
+ Relationships: [];
10822
+ };
10823
+ maps_settings: {
10824
+ Row: {
10825
+ allow_estimate_fallback: boolean;
10826
+ cache_ttl_days: number;
10827
+ created_at: string;
10828
+ daily_call_limit: number;
10829
+ id: string;
10830
+ last_error: string | null;
10831
+ last_error_at: string | null;
10832
+ last_success_at: string | null;
10833
+ updated_at: string;
10834
+ };
10835
+ Insert: {
10836
+ allow_estimate_fallback?: boolean;
10837
+ cache_ttl_days?: number;
10838
+ created_at?: string;
10839
+ daily_call_limit?: number;
10840
+ id?: string;
10841
+ last_error?: string | null;
10842
+ last_error_at?: string | null;
10843
+ last_success_at?: string | null;
10844
+ updated_at?: string;
10845
+ };
10846
+ Update: {
10847
+ allow_estimate_fallback?: boolean;
10848
+ cache_ttl_days?: number;
10849
+ created_at?: string;
10850
+ daily_call_limit?: number;
10851
+ id?: string;
10852
+ last_error?: string | null;
10853
+ last_error_at?: string | null;
10854
+ last_success_at?: string | null;
10855
+ updated_at?: string;
10856
+ };
10857
+ Relationships: [];
10858
+ };
10859
+ maps_travel_times: {
10860
+ Row: {
10861
+ created_at: string;
10862
+ destination_id: string;
10863
+ distance_m: number | null;
10864
+ duration_sec: number;
10865
+ expires_at: string;
10866
+ id: string;
10867
+ mode: string;
10868
+ origin_id: string;
10869
+ source: string;
10870
+ updated_at: string;
10871
+ };
10872
+ Insert: {
10873
+ created_at?: string;
10874
+ destination_id: string;
10875
+ distance_m?: number | null;
10876
+ duration_sec: number;
10877
+ expires_at?: string;
10878
+ id?: string;
10879
+ mode?: string;
10880
+ origin_id: string;
10881
+ source?: string;
10882
+ updated_at?: string;
10883
+ };
10884
+ Update: {
10885
+ created_at?: string;
10886
+ destination_id?: string;
10887
+ distance_m?: number | null;
10888
+ duration_sec?: number;
10889
+ expires_at?: string;
10890
+ id?: string;
10891
+ mode?: string;
10892
+ origin_id?: string;
10893
+ source?: string;
10894
+ updated_at?: string;
10895
+ };
10896
+ Relationships: [{
10897
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10898
+ columns: ["destination_id"];
10899
+ isOneToOne: false;
10900
+ referencedRelation: "maps_addresses";
10901
+ referencedColumns: ["id"];
10902
+ }, {
10903
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10904
+ columns: ["origin_id"];
10905
+ isOneToOne: false;
10906
+ referencedRelation: "maps_addresses";
10907
+ referencedColumns: ["id"];
10908
+ }];
10909
+ };
10910
+ maps_usage_log: {
10911
+ Row: {
10912
+ cache_hits: number;
10913
+ call_type: string;
10914
+ created_at: string;
10915
+ day: string;
10916
+ detail: string | null;
10917
+ elements: number;
10918
+ id: string;
10919
+ outcome: string;
10920
+ };
10921
+ Insert: {
10922
+ cache_hits?: number;
10923
+ call_type: string;
10924
+ created_at?: string;
10925
+ day?: string;
10926
+ detail?: string | null;
10927
+ elements?: number;
10928
+ id?: string;
10929
+ outcome?: string;
10930
+ };
10931
+ Update: {
10932
+ cache_hits?: number;
10933
+ call_type?: string;
10934
+ created_at?: string;
10935
+ day?: string;
10936
+ detail?: string | null;
10937
+ elements?: number;
10938
+ id?: string;
10939
+ outcome?: string;
10940
+ };
10941
+ Relationships: [];
10942
+ };
10943
+ material_usage: {
10944
+ Row: {
10945
+ created_at: string;
10946
+ id: string;
10947
+ material_name: string;
10948
+ monteur_id: string | null;
10949
+ price_at_time: number;
10950
+ quantity_used: number;
10951
+ updated_at: string;
10952
+ van_inventory_id: string | null;
10953
+ work_order_id: string;
10954
+ };
10955
+ Insert: {
10956
+ created_at?: string;
10957
+ id?: string;
10958
+ material_name: string;
10959
+ monteur_id?: string | null;
10960
+ price_at_time?: number;
10961
+ quantity_used?: number;
10962
+ updated_at?: string;
10963
+ van_inventory_id?: string | null;
10964
+ work_order_id: string;
10965
+ };
10966
+ Update: {
10967
+ created_at?: string;
10968
+ id?: string;
10969
+ material_name?: string;
10970
+ monteur_id?: string | null;
10971
+ price_at_time?: number;
10972
+ quantity_used?: number;
10973
+ updated_at?: string;
10974
+ van_inventory_id?: string | null;
10975
+ work_order_id?: string;
10976
+ };
10977
+ Relationships: [{
10978
+ foreignKeyName: "material_usage_monteur_id_fkey";
10979
+ columns: ["monteur_id"];
10980
+ isOneToOne: false;
10981
+ referencedRelation: "profiles";
10982
+ referencedColumns: ["id"];
10983
+ }, {
10984
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10985
+ columns: ["van_inventory_id"];
10986
+ isOneToOne: false;
10987
+ referencedRelation: "van_inventories";
10988
+ referencedColumns: ["id"];
10989
+ }, {
10990
+ foreignKeyName: "material_usage_work_order_id_fkey";
10991
+ columns: ["work_order_id"];
10992
+ isOneToOne: false;
10993
+ referencedRelation: "work_orders";
10994
+ referencedColumns: ["id"];
10995
+ }];
10996
+ };
10997
+ medewerker_details: {
9813
10998
  Row: {
9814
- component_type: string;
10999
+ color: string | null;
9815
11000
  created_at: string;
11001
+ hours_fri: number | null;
11002
+ hours_mon: number | null;
11003
+ hours_thu: number | null;
11004
+ hours_tue: number | null;
11005
+ hours_wed: number | null;
9816
11006
  id: string;
9817
- manufacture_product_id: string;
9818
- product_group_id: string | null;
9819
- quantity: number;
9820
- trade_item_id: string | null;
9821
- unit: string;
11007
+ is_active: boolean;
11008
+ leave_balance_hours: number;
11009
+ persnr: string | null;
11010
+ phone: string | null;
11011
+ profile_id: string;
11012
+ updated_at: string;
9822
11013
  };
9823
11014
  Insert: {
9824
- component_type: string;
11015
+ color?: string | null;
9825
11016
  created_at?: string;
11017
+ hours_fri?: number | null;
11018
+ hours_mon?: number | null;
11019
+ hours_thu?: number | null;
11020
+ hours_tue?: number | null;
11021
+ hours_wed?: number | null;
9826
11022
  id?: string;
9827
- manufacture_product_id: string;
9828
- product_group_id?: string | null;
9829
- quantity?: number;
9830
- trade_item_id?: string | null;
9831
- unit?: string;
11023
+ is_active?: boolean;
11024
+ leave_balance_hours?: number;
11025
+ persnr?: string | null;
11026
+ phone?: string | null;
11027
+ profile_id: string;
11028
+ updated_at?: string;
9832
11029
  };
9833
11030
  Update: {
9834
- component_type?: string;
11031
+ color?: string | null;
9835
11032
  created_at?: string;
11033
+ hours_fri?: number | null;
11034
+ hours_mon?: number | null;
11035
+ hours_thu?: number | null;
11036
+ hours_tue?: number | null;
11037
+ hours_wed?: number | null;
9836
11038
  id?: string;
9837
- manufacture_product_id?: string;
9838
- product_group_id?: string | null;
9839
- quantity?: number;
9840
- trade_item_id?: string | null;
9841
- unit?: string;
11039
+ is_active?: boolean;
11040
+ leave_balance_hours?: number;
11041
+ persnr?: string | null;
11042
+ phone?: string | null;
11043
+ profile_id?: string;
11044
+ updated_at?: string;
9842
11045
  };
9843
11046
  Relationships: [{
9844
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
9845
- columns: ["manufacture_product_id"];
9846
- isOneToOne: false;
9847
- referencedRelation: "manufacture_product_possible_stock_view";
9848
- referencedColumns: ["manufacture_product_id"];
9849
- }, {
9850
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
9851
- columns: ["manufacture_product_id"];
9852
- isOneToOne: false;
9853
- referencedRelation: "manufacture_products";
9854
- referencedColumns: ["id"];
9855
- }, {
9856
- foreignKeyName: "manufacture_product_components_product_group_id_fkey";
9857
- columns: ["product_group_id"];
9858
- isOneToOne: false;
9859
- referencedRelation: "product_groups";
11047
+ foreignKeyName: "medewerker_details_profile_id_fkey";
11048
+ columns: ["profile_id"];
11049
+ isOneToOne: true;
11050
+ referencedRelation: "profiles";
9860
11051
  referencedColumns: ["id"];
9861
11052
  }];
9862
11053
  };
9863
- manufacture_products: {
11054
+ module_features: {
9864
11055
  Row: {
9865
11056
  created_at: string;
9866
- description: string | null;
11057
+ feature_id: string;
9867
11058
  id: string;
9868
11059
  is_active: boolean;
11060
+ last_seen_at: string;
11061
+ module_id: string;
9869
11062
  name: string;
9870
- produced_stock: number;
9871
- product_code: string;
9872
- tenant_id: string;
9873
- updated_at: string;
9874
11063
  };
9875
11064
  Insert: {
9876
11065
  created_at?: string;
9877
- description?: string | null;
11066
+ feature_id: string;
9878
11067
  id?: string;
9879
11068
  is_active?: boolean;
11069
+ last_seen_at?: string;
11070
+ module_id: string;
9880
11071
  name: string;
9881
- produced_stock?: number;
9882
- product_code: string;
9883
- tenant_id: string;
9884
- updated_at?: string;
9885
11072
  };
9886
11073
  Update: {
9887
11074
  created_at?: string;
9888
- description?: string | null;
11075
+ feature_id?: string;
9889
11076
  id?: string;
9890
11077
  is_active?: boolean;
11078
+ last_seen_at?: string;
11079
+ module_id?: string;
9891
11080
  name?: string;
9892
- produced_stock?: number;
9893
- product_code?: string;
9894
- tenant_id?: string;
9895
- updated_at?: string;
9896
11081
  };
9897
11082
  Relationships: [];
9898
11083
  };
@@ -9926,8 +11111,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9926
11111
  module_registry: {
9927
11112
  Row: {
9928
11113
  created_at: string;
11114
+ enforce: boolean;
9929
11115
  is_active: boolean;
9930
11116
  last_seen_at: string;
11117
+ missing_count: number;
9931
11118
  module_id: string;
9932
11119
  name: string;
9933
11120
  shell_id: string | null;
@@ -9935,8 +11122,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9935
11122
  };
9936
11123
  Insert: {
9937
11124
  created_at?: string;
11125
+ enforce?: boolean;
9938
11126
  is_active?: boolean;
9939
11127
  last_seen_at?: string;
11128
+ missing_count?: number;
9940
11129
  module_id: string;
9941
11130
  name: string;
9942
11131
  shell_id?: string | null;
@@ -9944,8 +11133,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
9944
11133
  };
9945
11134
  Update: {
9946
11135
  created_at?: string;
11136
+ enforce?: boolean;
9947
11137
  is_active?: boolean;
9948
11138
  last_seen_at?: string;
11139
+ missing_count?: number;
9949
11140
  module_id?: string;
9950
11141
  name?: string;
9951
11142
  shell_id?: string | null;
@@ -10004,63 +11195,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10004
11195
  };
10005
11196
  Relationships: [];
10006
11197
  };
10007
- monteurs: {
10008
- Row: {
10009
- avatar_url: string | null;
10010
- color: string | null;
10011
- created_at: string;
10012
- email: string | null;
10013
- id: string;
10014
- is_active: boolean;
10015
- leave_balance_hours: number;
10016
- name: string;
10017
- persnr: number | null;
10018
- phone: string | null;
10019
- role: string;
10020
- tenant_id: string;
10021
- updated_at: string;
10022
- user_id: string | null;
10023
- };
10024
- Insert: {
10025
- avatar_url?: string | null;
10026
- color?: string | null;
10027
- created_at?: string;
10028
- email?: string | null;
10029
- id?: string;
10030
- is_active?: boolean;
10031
- leave_balance_hours?: number;
10032
- name: string;
10033
- persnr?: number | null;
10034
- phone?: string | null;
10035
- role?: string;
10036
- tenant_id: string;
10037
- updated_at?: string;
10038
- user_id?: string | null;
10039
- };
10040
- Update: {
10041
- avatar_url?: string | null;
10042
- color?: string | null;
10043
- created_at?: string;
10044
- email?: string | null;
10045
- id?: string;
10046
- is_active?: boolean;
10047
- leave_balance_hours?: number;
10048
- name?: string;
10049
- persnr?: number | null;
10050
- phone?: string | null;
10051
- role?: string;
10052
- tenant_id?: string;
10053
- updated_at?: string;
10054
- user_id?: string | null;
10055
- };
10056
- Relationships: [{
10057
- foreignKeyName: "monteurs_tenant_id_fkey";
10058
- columns: ["tenant_id"];
10059
- isOneToOne: false;
10060
- referencedRelation: "tenants";
10061
- referencedColumns: ["id"];
10062
- }];
10063
- };
10064
11198
  nmbrs_component_mapping: {
10065
11199
  Row: {
10066
11200
  created_at: string;
@@ -10131,13 +11265,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10131
11265
  nmbrs_employee_number?: string;
10132
11266
  updated_at?: string;
10133
11267
  };
10134
- Relationships: [{
10135
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10136
- columns: ["monteur_id"];
10137
- isOneToOne: true;
10138
- referencedRelation: "monteurs";
10139
- referencedColumns: ["id"];
10140
- }];
11268
+ Relationships: [];
10141
11269
  };
10142
11270
  nmbrs_export_lines: {
10143
11271
  Row: {
@@ -10186,12 +11314,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10186
11314
  wage_code?: string;
10187
11315
  };
10188
11316
  Relationships: [{
10189
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10190
- columns: ["monteur_id"];
10191
- isOneToOne: false;
10192
- referencedRelation: "monteurs";
10193
- referencedColumns: ["id"];
10194
- }, {
10195
11317
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10196
11318
  columns: ["run_id"];
10197
11319
  isOneToOne: false;
@@ -11012,6 +12134,48 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11012
12134
  };
11013
12135
  Relationships: [];
11014
12136
  };
12137
+ order_invoice_links: {
12138
+ Row: {
12139
+ administration_code: string | null;
12140
+ attempts: number;
12141
+ created_at: string;
12142
+ error_message: string | null;
12143
+ id: string;
12144
+ invoice_number: string | null;
12145
+ next_attempt_at: string;
12146
+ order_id: string;
12147
+ processed_at: string | null;
12148
+ status: string;
12149
+ updated_at: string;
12150
+ };
12151
+ Insert: {
12152
+ administration_code?: string | null;
12153
+ attempts?: number;
12154
+ created_at?: string;
12155
+ error_message?: string | null;
12156
+ id?: string;
12157
+ invoice_number?: string | null;
12158
+ next_attempt_at?: string;
12159
+ order_id: string;
12160
+ processed_at?: string | null;
12161
+ status?: string;
12162
+ updated_at?: string;
12163
+ };
12164
+ Update: {
12165
+ administration_code?: string | null;
12166
+ attempts?: number;
12167
+ created_at?: string;
12168
+ error_message?: string | null;
12169
+ id?: string;
12170
+ invoice_number?: string | null;
12171
+ next_attempt_at?: string;
12172
+ order_id?: string;
12173
+ processed_at?: string | null;
12174
+ status?: string;
12175
+ updated_at?: string;
12176
+ };
12177
+ Relationships: [];
12178
+ };
11015
12179
  order_items: {
11016
12180
  Row: {
11017
12181
  crates_per_layer: number | null;
@@ -11186,6 +12350,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11186
12350
  orders: {
11187
12351
  Row: {
11188
12352
  buffer_id: string | null;
12353
+ cancel_reason: string | null;
12354
+ cancelled_at: string | null;
11189
12355
  created_at: string;
11190
12356
  custom_fields: import("../integrations/supabase/types").Json;
11191
12357
  customer_id: string | null;
@@ -11194,6 +12360,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11194
12360
  delivery_date: string | null;
11195
12361
  floriday_sales_order_id: string | null;
11196
12362
  id: string;
12363
+ invoice_due_at: string | null;
11197
12364
  is_reservation: boolean;
11198
12365
  notes: string | null;
11199
12366
  order_date: string;
@@ -11207,6 +12374,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11207
12374
  };
11208
12375
  Insert: {
11209
12376
  buffer_id?: string | null;
12377
+ cancel_reason?: string | null;
12378
+ cancelled_at?: string | null;
11210
12379
  created_at?: string;
11211
12380
  custom_fields?: import("../integrations/supabase/types").Json;
11212
12381
  customer_id?: string | null;
@@ -11215,6 +12384,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11215
12384
  delivery_date?: string | null;
11216
12385
  floriday_sales_order_id?: string | null;
11217
12386
  id?: string;
12387
+ invoice_due_at?: string | null;
11218
12388
  is_reservation?: boolean;
11219
12389
  notes?: string | null;
11220
12390
  order_date?: string;
@@ -11228,6 +12398,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11228
12398
  };
11229
12399
  Update: {
11230
12400
  buffer_id?: string | null;
12401
+ cancel_reason?: string | null;
12402
+ cancelled_at?: string | null;
11231
12403
  created_at?: string;
11232
12404
  custom_fields?: import("../integrations/supabase/types").Json;
11233
12405
  customer_id?: string | null;
@@ -11236,6 +12408,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11236
12408
  delivery_date?: string | null;
11237
12409
  floriday_sales_order_id?: string | null;
11238
12410
  id?: string;
12411
+ invoice_due_at?: string | null;
11239
12412
  is_reservation?: boolean;
11240
12413
  notes?: string | null;
11241
12414
  order_date?: string;
@@ -12155,6 +13328,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12155
13328
  referencedColumns: ["id"];
12156
13329
  }];
12157
13330
  };
13331
+ pick_sync_state: {
13332
+ Row: {
13333
+ id: boolean;
13334
+ last_cleanup_at: string | null;
13335
+ last_sync_at: string | null;
13336
+ updated_at: string;
13337
+ };
13338
+ Insert: {
13339
+ id?: boolean;
13340
+ last_cleanup_at?: string | null;
13341
+ last_sync_at?: string | null;
13342
+ updated_at?: string;
13343
+ };
13344
+ Update: {
13345
+ id?: boolean;
13346
+ last_cleanup_at?: string | null;
13347
+ last_sync_at?: string | null;
13348
+ updated_at?: string;
13349
+ };
13350
+ Relationships: [];
13351
+ };
12158
13352
  pick_task_document_types: {
12159
13353
  Row: {
12160
13354
  created_at: string;
@@ -12437,6 +13631,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12437
13631
  gebruiker_id: string | null;
12438
13632
  gebruiker_naam: string;
12439
13633
  gestart_op: string | null;
13634
+ herkomst: string | null;
12440
13635
  id: string;
12441
13636
  idempotentie_sleutel: string | null;
12442
13637
  is_herprint: boolean;
@@ -12466,6 +13661,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12466
13661
  gebruiker_id?: string | null;
12467
13662
  gebruiker_naam?: string;
12468
13663
  gestart_op?: string | null;
13664
+ herkomst?: string | null;
12469
13665
  id?: string;
12470
13666
  idempotentie_sleutel?: string | null;
12471
13667
  is_herprint?: boolean;
@@ -12495,6 +13691,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12495
13691
  gebruiker_id?: string | null;
12496
13692
  gebruiker_naam?: string;
12497
13693
  gestart_op?: string | null;
13694
+ herkomst?: string | null;
12498
13695
  id?: string;
12499
13696
  idempotentie_sleutel?: string | null;
12500
13697
  is_herprint?: boolean;
@@ -12510,29 +13707,122 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12510
13707
  render_html?: string | null;
12511
13708
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12512
13709
  updated_at?: string;
12513
- volgende_poging?: string | null;
12514
- voltooid_op?: string | null;
13710
+ volgende_poging?: string | null;
13711
+ voltooid_op?: string | null;
13712
+ };
13713
+ Relationships: [{
13714
+ foreignKeyName: "print_jobs_agent_id_fkey";
13715
+ columns: ["agent_id"];
13716
+ isOneToOne: false;
13717
+ referencedRelation: "print_agents";
13718
+ referencedColumns: ["id"];
13719
+ }, {
13720
+ foreignKeyName: "print_jobs_layout_id_fkey";
13721
+ columns: ["layout_id"];
13722
+ isOneToOne: false;
13723
+ referencedRelation: "document_layouts";
13724
+ referencedColumns: ["id"];
13725
+ }, {
13726
+ foreignKeyName: "print_jobs_printer_id_fkey";
13727
+ columns: ["printer_id"];
13728
+ isOneToOne: false;
13729
+ referencedRelation: "printers";
13730
+ referencedColumns: ["id"];
13731
+ }];
13732
+ };
13733
+ print_plek_computers: {
13734
+ Row: {
13735
+ computer_naam: string;
13736
+ created_at: string;
13737
+ id: string;
13738
+ print_plek_id: string;
13739
+ updated_at: string;
13740
+ };
13741
+ Insert: {
13742
+ computer_naam: string;
13743
+ created_at?: string;
13744
+ id?: string;
13745
+ print_plek_id: string;
13746
+ updated_at?: string;
13747
+ };
13748
+ Update: {
13749
+ computer_naam?: string;
13750
+ created_at?: string;
13751
+ id?: string;
13752
+ print_plek_id?: string;
13753
+ updated_at?: string;
13754
+ };
13755
+ Relationships: [{
13756
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13757
+ columns: ["print_plek_id"];
13758
+ isOneToOne: false;
13759
+ referencedRelation: "print_plekken";
13760
+ referencedColumns: ["id"];
13761
+ }];
13762
+ };
13763
+ print_plek_koppelingen: {
13764
+ Row: {
13765
+ bron: string;
13766
+ bron_id: string;
13767
+ created_at: string;
13768
+ id: string;
13769
+ label: string | null;
13770
+ print_plek_id: string;
13771
+ updated_at: string;
13772
+ };
13773
+ Insert: {
13774
+ bron: string;
13775
+ bron_id: string;
13776
+ created_at?: string;
13777
+ id?: string;
13778
+ label?: string | null;
13779
+ print_plek_id: string;
13780
+ updated_at?: string;
13781
+ };
13782
+ Update: {
13783
+ bron?: string;
13784
+ bron_id?: string;
13785
+ created_at?: string;
13786
+ id?: string;
13787
+ label?: string | null;
13788
+ print_plek_id?: string;
13789
+ updated_at?: string;
12515
13790
  };
12516
13791
  Relationships: [{
12517
- foreignKeyName: "print_jobs_agent_id_fkey";
12518
- columns: ["agent_id"];
12519
- isOneToOne: false;
12520
- referencedRelation: "print_agents";
12521
- referencedColumns: ["id"];
12522
- }, {
12523
- foreignKeyName: "print_jobs_layout_id_fkey";
12524
- columns: ["layout_id"];
12525
- isOneToOne: false;
12526
- referencedRelation: "document_layouts";
12527
- referencedColumns: ["id"];
12528
- }, {
12529
- foreignKeyName: "print_jobs_printer_id_fkey";
12530
- columns: ["printer_id"];
13792
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13793
+ columns: ["print_plek_id"];
12531
13794
  isOneToOne: false;
12532
- referencedRelation: "printers";
13795
+ referencedRelation: "print_plekken";
12533
13796
  referencedColumns: ["id"];
12534
13797
  }];
12535
13798
  };
13799
+ print_plekken: {
13800
+ Row: {
13801
+ actief: boolean;
13802
+ created_at: string;
13803
+ id: string;
13804
+ naam: string;
13805
+ omschrijving: string | null;
13806
+ updated_at: string;
13807
+ };
13808
+ Insert: {
13809
+ actief?: boolean;
13810
+ created_at?: string;
13811
+ id?: string;
13812
+ naam: string;
13813
+ omschrijving?: string | null;
13814
+ updated_at?: string;
13815
+ };
13816
+ Update: {
13817
+ actief?: boolean;
13818
+ created_at?: string;
13819
+ id?: string;
13820
+ naam?: string;
13821
+ omschrijving?: string | null;
13822
+ updated_at?: string;
13823
+ };
13824
+ Relationships: [];
13825
+ };
12536
13826
  print_queue_runners: {
12537
13827
  Row: {
12538
13828
  actief: boolean;
@@ -12540,6 +13830,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12540
13830
  created_at: string;
12541
13831
  id: string;
12542
13832
  laatst_gezien: string;
13833
+ laatste_fout: string | null;
13834
+ laatste_request_id: number | null;
13835
+ mislukte_posts: number;
12543
13836
  tick_sleutel: string;
12544
13837
  updated_at: string;
12545
13838
  };
@@ -12549,6 +13842,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12549
13842
  created_at?: string;
12550
13843
  id?: string;
12551
13844
  laatst_gezien?: string;
13845
+ laatste_fout?: string | null;
13846
+ laatste_request_id?: number | null;
13847
+ mislukte_posts?: number;
12552
13848
  tick_sleutel?: string;
12553
13849
  updated_at?: string;
12554
13850
  };
@@ -12558,6 +13854,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12558
13854
  created_at?: string;
12559
13855
  id?: string;
12560
13856
  laatst_gezien?: string;
13857
+ laatste_fout?: string | null;
13858
+ laatste_request_id?: number | null;
13859
+ mislukte_posts?: number;
12561
13860
  tick_sleutel?: string;
12562
13861
  updated_at?: string;
12563
13862
  };
@@ -12751,6 +14050,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12751
14050
  created_at: string;
12752
14051
  driver: string;
12753
14052
  extern_printer_id: string | null;
14053
+ formaten_bijgewerkt_op: string | null;
12754
14054
  id: string;
12755
14055
  ip_adres: string | null;
12756
14056
  laatst_gezien: string | null;
@@ -12758,6 +14058,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12758
14058
  merk: string;
12759
14059
  naam: string;
12760
14060
  omschrijving: string;
14061
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14062
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
12761
14063
  online: boolean;
12762
14064
  papierformaat: string;
12763
14065
  poort: number | null;
@@ -12773,6 +14075,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12773
14075
  created_at?: string;
12774
14076
  driver?: string;
12775
14077
  extern_printer_id?: string | null;
14078
+ formaten_bijgewerkt_op?: string | null;
12776
14079
  id?: string;
12777
14080
  ip_adres?: string | null;
12778
14081
  laatst_gezien?: string | null;
@@ -12780,6 +14083,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12780
14083
  merk?: string;
12781
14084
  naam: string;
12782
14085
  omschrijving?: string;
14086
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14087
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
12783
14088
  online?: boolean;
12784
14089
  papierformaat?: string;
12785
14090
  poort?: number | null;
@@ -12795,6 +14100,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12795
14100
  created_at?: string;
12796
14101
  driver?: string;
12797
14102
  extern_printer_id?: string | null;
14103
+ formaten_bijgewerkt_op?: string | null;
12798
14104
  id?: string;
12799
14105
  ip_adres?: string | null;
12800
14106
  laatst_gezien?: string | null;
@@ -12802,6 +14108,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12802
14108
  merk?: string;
12803
14109
  naam?: string;
12804
14110
  omschrijving?: string;
14111
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14112
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
12805
14113
  online?: boolean;
12806
14114
  papierformaat?: string;
12807
14115
  poort?: number | null;
@@ -13280,6 +14588,66 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13280
14588
  };
13281
14589
  Relationships: [];
13282
14590
  };
14591
+ profile_modules: {
14592
+ Row: {
14593
+ created_at: string;
14594
+ id: string;
14595
+ module_id: string;
14596
+ profile_id: string;
14597
+ };
14598
+ Insert: {
14599
+ created_at?: string;
14600
+ id?: string;
14601
+ module_id: string;
14602
+ profile_id: string;
14603
+ };
14604
+ Update: {
14605
+ created_at?: string;
14606
+ id?: string;
14607
+ module_id?: string;
14608
+ profile_id?: string;
14609
+ };
14610
+ Relationships: [{
14611
+ foreignKeyName: "profile_modules_profile_id_fkey";
14612
+ columns: ["profile_id"];
14613
+ isOneToOne: false;
14614
+ referencedRelation: "profiles_org";
14615
+ referencedColumns: ["id"];
14616
+ }];
14617
+ };
14618
+ profile_roles: {
14619
+ Row: {
14620
+ created_at: string;
14621
+ id: string;
14622
+ profile_id: string;
14623
+ role_id: string;
14624
+ };
14625
+ Insert: {
14626
+ created_at?: string;
14627
+ id?: string;
14628
+ profile_id: string;
14629
+ role_id: string;
14630
+ };
14631
+ Update: {
14632
+ created_at?: string;
14633
+ id?: string;
14634
+ profile_id?: string;
14635
+ role_id?: string;
14636
+ };
14637
+ Relationships: [{
14638
+ foreignKeyName: "profile_roles_profile_id_fkey";
14639
+ columns: ["profile_id"];
14640
+ isOneToOne: false;
14641
+ referencedRelation: "profiles_org";
14642
+ referencedColumns: ["id"];
14643
+ }, {
14644
+ foreignKeyName: "profile_roles_role_id_fkey";
14645
+ columns: ["role_id"];
14646
+ isOneToOne: false;
14647
+ referencedRelation: "roles";
14648
+ referencedColumns: ["id"];
14649
+ }];
14650
+ };
13283
14651
  profiles: {
13284
14652
  Row: {
13285
14653
  address: string | null;
@@ -13325,6 +14693,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13325
14693
  referencedColumns: ["id"];
13326
14694
  }];
13327
14695
  };
14696
+ profiles_org: {
14697
+ Row: {
14698
+ created_at: string;
14699
+ id: string;
14700
+ is_default: boolean;
14701
+ name: string;
14702
+ tenant_id: string | null;
14703
+ updated_at: string;
14704
+ };
14705
+ Insert: {
14706
+ created_at?: string;
14707
+ id?: string;
14708
+ is_default?: boolean;
14709
+ name: string;
14710
+ tenant_id?: string | null;
14711
+ updated_at?: string;
14712
+ };
14713
+ Update: {
14714
+ created_at?: string;
14715
+ id?: string;
14716
+ is_default?: boolean;
14717
+ name?: string;
14718
+ tenant_id?: string | null;
14719
+ updated_at?: string;
14720
+ };
14721
+ Relationships: [{
14722
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14723
+ columns: ["tenant_id"];
14724
+ isOneToOne: false;
14725
+ referencedRelation: "tenants";
14726
+ referencedColumns: ["id"];
14727
+ }];
14728
+ };
13328
14729
  projects: {
13329
14730
  Row: {
13330
14731
  contact_name: string | null;
@@ -14066,6 +15467,96 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14066
15467
  referencedColumns: ["id"];
14067
15468
  }];
14068
15469
  };
15470
+ role_assignments: {
15471
+ Row: {
15472
+ created_at: string;
15473
+ id: string;
15474
+ role_id: string;
15475
+ user_id: string;
15476
+ };
15477
+ Insert: {
15478
+ created_at?: string;
15479
+ id?: string;
15480
+ role_id: string;
15481
+ user_id: string;
15482
+ };
15483
+ Update: {
15484
+ created_at?: string;
15485
+ id?: string;
15486
+ role_id?: string;
15487
+ user_id?: string;
15488
+ };
15489
+ Relationships: [{
15490
+ foreignKeyName: "role_assignments_role_id_fkey";
15491
+ columns: ["role_id"];
15492
+ isOneToOne: false;
15493
+ referencedRelation: "roles";
15494
+ referencedColumns: ["id"];
15495
+ }];
15496
+ };
15497
+ role_permissions: {
15498
+ Row: {
15499
+ can_edit: boolean;
15500
+ can_view: boolean;
15501
+ feature_id: string;
15502
+ id: string;
15503
+ module_id: string;
15504
+ role_id: string;
15505
+ updated_at: string;
15506
+ };
15507
+ Insert: {
15508
+ can_edit?: boolean;
15509
+ can_view?: boolean;
15510
+ feature_id?: string;
15511
+ id?: string;
15512
+ module_id: string;
15513
+ role_id: string;
15514
+ updated_at?: string;
15515
+ };
15516
+ Update: {
15517
+ can_edit?: boolean;
15518
+ can_view?: boolean;
15519
+ feature_id?: string;
15520
+ id?: string;
15521
+ module_id?: string;
15522
+ role_id?: string;
15523
+ updated_at?: string;
15524
+ };
15525
+ Relationships: [{
15526
+ foreignKeyName: "role_permissions_role_id_fkey";
15527
+ columns: ["role_id"];
15528
+ isOneToOne: false;
15529
+ referencedRelation: "roles";
15530
+ referencedColumns: ["id"];
15531
+ }];
15532
+ };
15533
+ roles: {
15534
+ Row: {
15535
+ created_at: string;
15536
+ id: string;
15537
+ is_protected: boolean;
15538
+ key: string;
15539
+ name: string;
15540
+ updated_at: string;
15541
+ };
15542
+ Insert: {
15543
+ created_at?: string;
15544
+ id?: string;
15545
+ is_protected?: boolean;
15546
+ key: string;
15547
+ name: string;
15548
+ updated_at?: string;
15549
+ };
15550
+ Update: {
15551
+ created_at?: string;
15552
+ id?: string;
15553
+ is_protected?: boolean;
15554
+ key?: string;
15555
+ name?: string;
15556
+ updated_at?: string;
15557
+ };
15558
+ Relationships: [];
15559
+ };
14069
15560
  rooms: {
14070
15561
  Row: {
14071
15562
  capacity: number;
@@ -14409,6 +15900,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14409
15900
  type: string;
14410
15901
  updated_at: string;
14411
15902
  vereist_medewerker: boolean;
15903
+ werkplek: string | null;
14412
15904
  };
14413
15905
  Insert: {
14414
15906
  actief?: boolean;
@@ -14422,6 +15914,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14422
15914
  type?: string;
14423
15915
  updated_at?: string;
14424
15916
  vereist_medewerker?: boolean;
15917
+ werkplek?: string | null;
14425
15918
  };
14426
15919
  Update: {
14427
15920
  actief?: boolean;
@@ -14435,9 +15928,46 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14435
15928
  type?: string;
14436
15929
  updated_at?: string;
14437
15930
  vereist_medewerker?: boolean;
15931
+ werkplek?: string | null;
14438
15932
  };
14439
15933
  Relationships: [];
14440
15934
  };
15935
+ sick_periods: {
15936
+ Row: {
15937
+ created_at: string;
15938
+ employee_id: string;
15939
+ end_date: string | null;
15940
+ id: string;
15941
+ notes: string | null;
15942
+ start_date: string;
15943
+ updated_at: string;
15944
+ };
15945
+ Insert: {
15946
+ created_at?: string;
15947
+ employee_id: string;
15948
+ end_date?: string | null;
15949
+ id?: string;
15950
+ notes?: string | null;
15951
+ start_date: string;
15952
+ updated_at?: string;
15953
+ };
15954
+ Update: {
15955
+ created_at?: string;
15956
+ employee_id?: string;
15957
+ end_date?: string | null;
15958
+ id?: string;
15959
+ notes?: string | null;
15960
+ start_date?: string;
15961
+ updated_at?: string;
15962
+ };
15963
+ Relationships: [{
15964
+ foreignKeyName: "sick_periods_employee_id_fkey";
15965
+ columns: ["employee_id"];
15966
+ isOneToOne: false;
15967
+ referencedRelation: "profiles";
15968
+ referencedColumns: ["id"];
15969
+ }];
15970
+ };
14441
15971
  sidebar_config: {
14442
15972
  Row: {
14443
15973
  id: string;
@@ -14451,7 +15981,46 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14451
15981
  };
14452
15982
  Update: {
14453
15983
  id?: string;
14454
- module_order?: string[];
15984
+ module_order?: string[];
15985
+ updated_at?: string;
15986
+ };
15987
+ Relationships: [];
15988
+ };
15989
+ stock_consumption_alerts: {
15990
+ Row: {
15991
+ alert_type: string;
15992
+ created_at: string;
15993
+ id: string;
15994
+ mutation_log_id: string | null;
15995
+ order_id: string | null;
15996
+ order_item_id: string | null;
15997
+ qty: number;
15998
+ reason: string | null;
15999
+ resolved_at: string | null;
16000
+ updated_at: string;
16001
+ };
16002
+ Insert: {
16003
+ alert_type: string;
16004
+ created_at?: string;
16005
+ id?: string;
16006
+ mutation_log_id?: string | null;
16007
+ order_id?: string | null;
16008
+ order_item_id?: string | null;
16009
+ qty?: number;
16010
+ reason?: string | null;
16011
+ resolved_at?: string | null;
16012
+ updated_at?: string;
16013
+ };
16014
+ Update: {
16015
+ alert_type?: string;
16016
+ created_at?: string;
16017
+ id?: string;
16018
+ mutation_log_id?: string | null;
16019
+ order_id?: string | null;
16020
+ order_item_id?: string | null;
16021
+ qty?: number;
16022
+ reason?: string | null;
16023
+ resolved_at?: string | null;
14455
16024
  updated_at?: string;
14456
16025
  };
14457
16026
  Relationships: [];
@@ -14735,6 +16304,54 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14735
16304
  };
14736
16305
  Relationships: [];
14737
16306
  };
16307
+ time_compensation_entries: {
16308
+ Row: {
16309
+ created_at: string;
16310
+ employee_id: string;
16311
+ entry_date: string;
16312
+ id: string;
16313
+ km: number;
16314
+ meal_allowance: number;
16315
+ notes: string | null;
16316
+ standby_evening: number;
16317
+ standby_weekend: number;
16318
+ tvt_change: number;
16319
+ updated_at: string;
16320
+ };
16321
+ Insert: {
16322
+ created_at?: string;
16323
+ employee_id: string;
16324
+ entry_date: string;
16325
+ id?: string;
16326
+ km?: number;
16327
+ meal_allowance?: number;
16328
+ notes?: string | null;
16329
+ standby_evening?: number;
16330
+ standby_weekend?: number;
16331
+ tvt_change?: number;
16332
+ updated_at?: string;
16333
+ };
16334
+ Update: {
16335
+ created_at?: string;
16336
+ employee_id?: string;
16337
+ entry_date?: string;
16338
+ id?: string;
16339
+ km?: number;
16340
+ meal_allowance?: number;
16341
+ notes?: string | null;
16342
+ standby_evening?: number;
16343
+ standby_weekend?: number;
16344
+ tvt_change?: number;
16345
+ updated_at?: string;
16346
+ };
16347
+ Relationships: [{
16348
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
16349
+ columns: ["employee_id"];
16350
+ isOneToOne: false;
16351
+ referencedRelation: "profiles";
16352
+ referencedColumns: ["id"];
16353
+ }];
16354
+ };
14738
16355
  time_entries: {
14739
16356
  Row: {
14740
16357
  created_at: string;
@@ -14769,65 +16386,170 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14769
16386
  undertime?: number;
14770
16387
  updated_at?: string;
14771
16388
  };
16389
+ Relationships: [];
16390
+ };
16391
+ time_log_week_approvals: {
16392
+ Row: {
16393
+ approved_at: string | null;
16394
+ approved_by: string | null;
16395
+ created_at: string;
16396
+ employee_id: string;
16397
+ id: string;
16398
+ locked: boolean;
16399
+ notes: string | null;
16400
+ status: string;
16401
+ submitted_at: string | null;
16402
+ updated_at: string;
16403
+ week_start: string;
16404
+ };
16405
+ Insert: {
16406
+ approved_at?: string | null;
16407
+ approved_by?: string | null;
16408
+ created_at?: string;
16409
+ employee_id: string;
16410
+ id?: string;
16411
+ locked?: boolean;
16412
+ notes?: string | null;
16413
+ status?: string;
16414
+ submitted_at?: string | null;
16415
+ updated_at?: string;
16416
+ week_start: string;
16417
+ };
16418
+ Update: {
16419
+ approved_at?: string | null;
16420
+ approved_by?: string | null;
16421
+ created_at?: string;
16422
+ employee_id?: string;
16423
+ id?: string;
16424
+ locked?: boolean;
16425
+ notes?: string | null;
16426
+ status?: string;
16427
+ submitted_at?: string | null;
16428
+ updated_at?: string;
16429
+ week_start?: string;
16430
+ };
14772
16431
  Relationships: [{
14773
- foreignKeyName: "time_entries_employee_id_fkey";
16432
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14774
16433
  columns: ["employee_id"];
14775
16434
  isOneToOne: false;
14776
- referencedRelation: "monteurs";
16435
+ referencedRelation: "profiles";
14777
16436
  referencedColumns: ["id"];
14778
16437
  }];
14779
16438
  };
14780
16439
  time_logs: {
14781
16440
  Row: {
16441
+ auto_stop_reason: string | null;
16442
+ auto_stopped: boolean;
14782
16443
  created_at: string;
16444
+ current_latitude: number | null;
16445
+ current_longitude: number | null;
16446
+ current_position_updated_at: string | null;
14783
16447
  employee_id: string;
16448
+ end_latitude: number | null;
16449
+ end_longitude: number | null;
14784
16450
  end_time: string | null;
16451
+ eta_distance_km: number | null;
16452
+ eta_minutes: number | null;
16453
+ eta_updated_at: string | null;
16454
+ hour_category: string | null;
14785
16455
  id: string;
16456
+ last_reminder_at: string | null;
14786
16457
  notes: string | null;
14787
16458
  overtime_hours: number;
14788
16459
  overtime_type: string | null;
14789
16460
  regular_hours: number;
16461
+ reminder_count: number;
16462
+ requires_review: boolean;
16463
+ start_latitude: number | null;
16464
+ start_longitude: number | null;
14790
16465
  start_time: string;
14791
16466
  travel_cost: number | null;
14792
16467
  travel_distance_km: number | null;
16468
+ travel_duration_min: number | null;
16469
+ travel_time_minutes: number | null;
14793
16470
  type: string;
14794
16471
  updated_at: string;
16472
+ work_order_id: string | null;
14795
16473
  };
14796
16474
  Insert: {
16475
+ auto_stop_reason?: string | null;
16476
+ auto_stopped?: boolean;
14797
16477
  created_at?: string;
16478
+ current_latitude?: number | null;
16479
+ current_longitude?: number | null;
16480
+ current_position_updated_at?: string | null;
14798
16481
  employee_id: string;
16482
+ end_latitude?: number | null;
16483
+ end_longitude?: number | null;
14799
16484
  end_time?: string | null;
16485
+ eta_distance_km?: number | null;
16486
+ eta_minutes?: number | null;
16487
+ eta_updated_at?: string | null;
16488
+ hour_category?: string | null;
14800
16489
  id?: string;
16490
+ last_reminder_at?: string | null;
14801
16491
  notes?: string | null;
14802
16492
  overtime_hours?: number;
14803
16493
  overtime_type?: string | null;
14804
16494
  regular_hours?: number;
16495
+ reminder_count?: number;
16496
+ requires_review?: boolean;
16497
+ start_latitude?: number | null;
16498
+ start_longitude?: number | null;
14805
16499
  start_time?: string;
14806
16500
  travel_cost?: number | null;
14807
16501
  travel_distance_km?: number | null;
16502
+ travel_duration_min?: number | null;
16503
+ travel_time_minutes?: number | null;
14808
16504
  type: string;
14809
16505
  updated_at?: string;
16506
+ work_order_id?: string | null;
14810
16507
  };
14811
16508
  Update: {
16509
+ auto_stop_reason?: string | null;
16510
+ auto_stopped?: boolean;
14812
16511
  created_at?: string;
16512
+ current_latitude?: number | null;
16513
+ current_longitude?: number | null;
16514
+ current_position_updated_at?: string | null;
14813
16515
  employee_id?: string;
16516
+ end_latitude?: number | null;
16517
+ end_longitude?: number | null;
14814
16518
  end_time?: string | null;
16519
+ eta_distance_km?: number | null;
16520
+ eta_minutes?: number | null;
16521
+ eta_updated_at?: string | null;
16522
+ hour_category?: string | null;
14815
16523
  id?: string;
16524
+ last_reminder_at?: string | null;
14816
16525
  notes?: string | null;
14817
16526
  overtime_hours?: number;
14818
16527
  overtime_type?: string | null;
14819
16528
  regular_hours?: number;
16529
+ reminder_count?: number;
16530
+ requires_review?: boolean;
16531
+ start_latitude?: number | null;
16532
+ start_longitude?: number | null;
14820
16533
  start_time?: string;
14821
16534
  travel_cost?: number | null;
14822
16535
  travel_distance_km?: number | null;
16536
+ travel_duration_min?: number | null;
16537
+ travel_time_minutes?: number | null;
14823
16538
  type?: string;
14824
16539
  updated_at?: string;
16540
+ work_order_id?: string | null;
14825
16541
  };
14826
16542
  Relationships: [{
14827
16543
  foreignKeyName: "time_logs_employee_id_fkey";
14828
16544
  columns: ["employee_id"];
14829
16545
  isOneToOne: false;
14830
- referencedRelation: "monteurs";
16546
+ referencedRelation: "profiles";
16547
+ referencedColumns: ["id"];
16548
+ }, {
16549
+ foreignKeyName: "time_logs_work_order_id_fkey";
16550
+ columns: ["work_order_id"];
16551
+ isOneToOne: false;
16552
+ referencedRelation: "work_orders";
14831
16553
  referencedColumns: ["id"];
14832
16554
  }];
14833
16555
  };
@@ -14866,7 +16588,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14866
16588
  foreignKeyName: "time_off_entries_employee_id_fkey";
14867
16589
  columns: ["employee_id"];
14868
16590
  isOneToOne: false;
14869
- referencedRelation: "monteurs";
16591
+ referencedRelation: "profiles";
14870
16592
  referencedColumns: ["id"];
14871
16593
  }];
14872
16594
  };
@@ -15115,12 +16837,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15115
16837
  company_name: string | null;
15116
16838
  connected_at: string | null;
15117
16839
  created_at: string;
16840
+ disconnected_at: string | null;
15118
16841
  environment: string;
15119
16842
  id: string;
16843
+ initial_sync_completed_at: string | null;
16844
+ initial_sync_started_at: string | null;
15120
16845
  is_active: boolean;
15121
16846
  label: string | null;
15122
16847
  office_code: string | null;
15123
16848
  redirect_uri: string | null;
16849
+ superseded_at: string | null;
15124
16850
  updated_at: string;
15125
16851
  user_id: string;
15126
16852
  };
@@ -15131,12 +16857,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15131
16857
  company_name?: string | null;
15132
16858
  connected_at?: string | null;
15133
16859
  created_at?: string;
16860
+ disconnected_at?: string | null;
15134
16861
  environment: string;
15135
16862
  id?: string;
16863
+ initial_sync_completed_at?: string | null;
16864
+ initial_sync_started_at?: string | null;
15136
16865
  is_active?: boolean;
15137
16866
  label?: string | null;
15138
16867
  office_code?: string | null;
15139
16868
  redirect_uri?: string | null;
16869
+ superseded_at?: string | null;
15140
16870
  updated_at?: string;
15141
16871
  user_id: string;
15142
16872
  };
@@ -15147,12 +16877,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15147
16877
  company_name?: string | null;
15148
16878
  connected_at?: string | null;
15149
16879
  created_at?: string;
16880
+ disconnected_at?: string | null;
15150
16881
  environment?: string;
15151
16882
  id?: string;
16883
+ initial_sync_completed_at?: string | null;
16884
+ initial_sync_started_at?: string | null;
15152
16885
  is_active?: boolean;
15153
16886
  label?: string | null;
15154
16887
  office_code?: string | null;
15155
16888
  redirect_uri?: string | null;
16889
+ superseded_at?: string | null;
15156
16890
  updated_at?: string;
15157
16891
  user_id?: string;
15158
16892
  };
@@ -15176,9 +16910,43 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15176
16910
  };
15177
16911
  Relationships: [];
15178
16912
  };
16913
+ twinfield_cron_locks: {
16914
+ Row: {
16915
+ created_at: string;
16916
+ heartbeat_at: string;
16917
+ job_name: string;
16918
+ last_error: string | null;
16919
+ last_finished_at: string | null;
16920
+ locked_at: string;
16921
+ run_id: string;
16922
+ updated_at: string;
16923
+ };
16924
+ Insert: {
16925
+ created_at?: string;
16926
+ heartbeat_at?: string;
16927
+ job_name: string;
16928
+ last_error?: string | null;
16929
+ last_finished_at?: string | null;
16930
+ locked_at?: string;
16931
+ run_id?: string;
16932
+ updated_at?: string;
16933
+ };
16934
+ Update: {
16935
+ created_at?: string;
16936
+ heartbeat_at?: string;
16937
+ job_name?: string;
16938
+ last_error?: string | null;
16939
+ last_finished_at?: string | null;
16940
+ locked_at?: string;
16941
+ run_id?: string;
16942
+ updated_at?: string;
16943
+ };
16944
+ Relationships: [];
16945
+ };
15179
16946
  twinfield_customers: {
15180
16947
  Row: {
15181
16948
  address: string | null;
16949
+ administration_code: string;
15182
16950
  city: string | null;
15183
16951
  country: string | null;
15184
16952
  created_at: string;
@@ -15198,6 +16966,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15198
16966
  };
15199
16967
  Insert: {
15200
16968
  address?: string | null;
16969
+ administration_code?: string;
15201
16970
  city?: string | null;
15202
16971
  country?: string | null;
15203
16972
  created_at?: string;
@@ -15217,6 +16986,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15217
16986
  };
15218
16987
  Update: {
15219
16988
  address?: string | null;
16989
+ administration_code?: string;
15220
16990
  city?: string | null;
15221
16991
  country?: string | null;
15222
16992
  created_at?: string;
@@ -15430,6 +17200,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15430
17200
  };
15431
17201
  twinfield_invoice_settings: {
15432
17202
  Row: {
17203
+ administration_code: string | null;
17204
+ auto_invoice_enabled: boolean;
17205
+ auto_invoice_start_date: string | null;
17206
+ auto_invoice_trigger_statuses: string[];
15433
17207
  created_at: string;
15434
17208
  debtor_gl_account: string;
15435
17209
  default_credit_invoice_type: string | null;
@@ -15442,14 +17216,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15442
17216
  invoice_enabled_fo: boolean;
15443
17217
  invoice_enabled_ho: boolean;
15444
17218
  invoice_enabled_mo: boolean;
17219
+ needs_review: boolean;
15445
17220
  payment_gl_account: string;
15446
17221
  payment_journal_code: string;
17222
+ settings_confirmed_at: string | null;
15447
17223
  updated_at: string;
15448
17224
  user_id: string;
15449
17225
  vat_code_eu_reverse: string | null;
15450
17226
  vat_code_export: string | null;
15451
17227
  };
15452
17228
  Insert: {
17229
+ administration_code?: string | null;
17230
+ auto_invoice_enabled?: boolean;
17231
+ auto_invoice_start_date?: string | null;
17232
+ auto_invoice_trigger_statuses?: string[];
15453
17233
  created_at?: string;
15454
17234
  debtor_gl_account?: string;
15455
17235
  default_credit_invoice_type?: string | null;
@@ -15462,14 +17242,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15462
17242
  invoice_enabled_fo?: boolean;
15463
17243
  invoice_enabled_ho?: boolean;
15464
17244
  invoice_enabled_mo?: boolean;
17245
+ needs_review?: boolean;
15465
17246
  payment_gl_account?: string;
15466
17247
  payment_journal_code?: string;
17248
+ settings_confirmed_at?: string | null;
15467
17249
  updated_at?: string;
15468
17250
  user_id: string;
15469
17251
  vat_code_eu_reverse?: string | null;
15470
17252
  vat_code_export?: string | null;
15471
17253
  };
15472
17254
  Update: {
17255
+ administration_code?: string | null;
17256
+ auto_invoice_enabled?: boolean;
17257
+ auto_invoice_start_date?: string | null;
17258
+ auto_invoice_trigger_statuses?: string[];
15473
17259
  created_at?: string;
15474
17260
  debtor_gl_account?: string;
15475
17261
  default_credit_invoice_type?: string | null;
@@ -15482,8 +17268,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15482
17268
  invoice_enabled_fo?: boolean;
15483
17269
  invoice_enabled_ho?: boolean;
15484
17270
  invoice_enabled_mo?: boolean;
17271
+ needs_review?: boolean;
15485
17272
  payment_gl_account?: string;
15486
17273
  payment_journal_code?: string;
17274
+ settings_confirmed_at?: string | null;
15487
17275
  updated_at?: string;
15488
17276
  user_id?: string;
15489
17277
  vat_code_eu_reverse?: string | null;
@@ -15770,6 +17558,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15770
17558
  twinfield_push_queue: {
15771
17559
  Row: {
15772
17560
  action: string;
17561
+ attempt_started_at: string | null;
15773
17562
  attempts: number;
15774
17563
  connection_id: string | null;
15775
17564
  created_at: string;
@@ -15786,6 +17575,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15786
17575
  };
15787
17576
  Insert: {
15788
17577
  action?: string;
17578
+ attempt_started_at?: string | null;
15789
17579
  attempts?: number;
15790
17580
  connection_id?: string | null;
15791
17581
  created_at?: string;
@@ -15802,6 +17592,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15802
17592
  };
15803
17593
  Update: {
15804
17594
  action?: string;
17595
+ attempt_started_at?: string | null;
15805
17596
  attempts?: number;
15806
17597
  connection_id?: string | null;
15807
17598
  created_at?: string;
@@ -15999,13 +17790,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15999
17790
  workday_end?: string | null;
16000
17791
  workday_start?: string | null;
16001
17792
  };
16002
- Relationships: [{
16003
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16004
- columns: ["monteur_id"];
16005
- isOneToOne: true;
16006
- referencedRelation: "monteurs";
16007
- referencedColumns: ["id"];
16008
- }];
17793
+ Relationships: [];
16009
17794
  };
16010
17795
  uren_entries: {
16011
17796
  Row: {
@@ -16051,12 +17836,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16051
17836
  werkbon_id?: string | null;
16052
17837
  };
16053
17838
  Relationships: [{
16054
- foreignKeyName: "uren_entries_monteur_id_fkey";
16055
- columns: ["monteur_id"];
16056
- isOneToOne: false;
16057
- referencedRelation: "monteurs";
16058
- referencedColumns: ["id"];
16059
- }, {
16060
17839
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16061
17840
  columns: ["werkbon_id"];
16062
17841
  isOneToOne: false;
@@ -16097,114 +17876,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16097
17876
  };
16098
17877
  Relationships: [];
16099
17878
  };
16100
- uren_facturen: {
16101
- Row: {
16102
- created_at: string;
16103
- created_by: string | null;
16104
- customer_id: string | null;
16105
- customer_name: string | null;
16106
- id: string;
16107
- invoice_number: string | null;
16108
- note: string | null;
16109
- status: string;
16110
- total_excl_cents: number;
16111
- total_incl_cents: number;
16112
- updated_at: string;
16113
- vat_cents: number;
16114
- vat_percentage: number;
16115
- werkbon_id: string | null;
16116
- };
16117
- Insert: {
16118
- created_at?: string;
16119
- created_by?: string | null;
16120
- customer_id?: string | null;
16121
- customer_name?: string | null;
16122
- id?: string;
16123
- invoice_number?: string | null;
16124
- note?: string | null;
16125
- status?: string;
16126
- total_excl_cents?: number;
16127
- total_incl_cents?: number;
16128
- updated_at?: string;
16129
- vat_cents?: number;
16130
- vat_percentage?: number;
16131
- werkbon_id?: string | null;
16132
- };
16133
- Update: {
16134
- created_at?: string;
16135
- created_by?: string | null;
16136
- customer_id?: string | null;
16137
- customer_name?: string | null;
16138
- id?: string;
16139
- invoice_number?: string | null;
16140
- note?: string | null;
16141
- status?: string;
16142
- total_excl_cents?: number;
16143
- total_incl_cents?: number;
16144
- updated_at?: string;
16145
- vat_cents?: number;
16146
- vat_percentage?: number;
16147
- werkbon_id?: string | null;
16148
- };
16149
- Relationships: [{
16150
- foreignKeyName: "uren_facturen_customer_id_fkey";
16151
- columns: ["customer_id"];
16152
- isOneToOne: false;
16153
- referencedRelation: "itk_customers";
16154
- referencedColumns: ["id"];
16155
- }, {
16156
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16157
- columns: ["werkbon_id"];
16158
- isOneToOne: true;
16159
- referencedRelation: "werkbonnen";
16160
- referencedColumns: ["id"];
16161
- }];
16162
- };
16163
- uren_factuur_regels: {
16164
- Row: {
16165
- created_at: string;
16166
- description: string;
16167
- factuur_id: string;
16168
- id: string;
16169
- kind: string | null;
16170
- quantity: number;
16171
- sort_order: number;
16172
- total_cents: number;
16173
- unit: string;
16174
- unit_price_cents: number;
16175
- };
16176
- Insert: {
16177
- created_at?: string;
16178
- description: string;
16179
- factuur_id: string;
16180
- id?: string;
16181
- kind?: string | null;
16182
- quantity?: number;
16183
- sort_order?: number;
16184
- total_cents?: number;
16185
- unit?: string;
16186
- unit_price_cents?: number;
16187
- };
16188
- Update: {
16189
- created_at?: string;
16190
- description?: string;
16191
- factuur_id?: string;
16192
- id?: string;
16193
- kind?: string | null;
16194
- quantity?: number;
16195
- sort_order?: number;
16196
- total_cents?: number;
16197
- unit?: string;
16198
- unit_price_cents?: number;
16199
- };
16200
- Relationships: [{
16201
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16202
- columns: ["factuur_id"];
16203
- isOneToOne: false;
16204
- referencedRelation: "uren_facturen";
16205
- referencedColumns: ["id"];
16206
- }];
16207
- };
16208
17879
  uren_offerte_regels: {
16209
17880
  Row: {
16210
17881
  created_at: string;
@@ -16524,17 +18195,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16524
18195
  submitted_at?: string | null;
16525
18196
  updated_at?: string;
16526
18197
  };
16527
- Relationships: [{
16528
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16529
- columns: ["monteur_id"];
16530
- isOneToOne: false;
16531
- referencedRelation: "monteurs";
16532
- referencedColumns: ["id"];
16533
- }];
18198
+ Relationships: [];
16534
18199
  };
16535
18200
  user_module_permissions: {
16536
18201
  Row: {
16537
18202
  created_at: string;
18203
+ feature_id: string;
16538
18204
  id: string;
16539
18205
  module_id: string;
16540
18206
  permission: string;
@@ -16543,6 +18209,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16543
18209
  };
16544
18210
  Insert: {
16545
18211
  created_at?: string;
18212
+ feature_id?: string;
16546
18213
  id?: string;
16547
18214
  module_id: string;
16548
18215
  permission: string;
@@ -16551,6 +18218,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16551
18218
  };
16552
18219
  Update: {
16553
18220
  created_at?: string;
18221
+ feature_id?: string;
16554
18222
  id?: string;
16555
18223
  module_id?: string;
16556
18224
  permission?: string;
@@ -16563,24 +18231,69 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16563
18231
  Row: {
16564
18232
  created_at: string;
16565
18233
  id: string;
16566
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
16567
- user_id: string;
18234
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
18235
+ user_id: string;
18236
+ };
18237
+ Insert: {
18238
+ created_at?: string;
18239
+ id?: string;
18240
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
18241
+ user_id: string;
18242
+ };
18243
+ Update: {
18244
+ created_at?: string;
18245
+ id?: string;
18246
+ role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
18247
+ user_id?: string;
18248
+ };
18249
+ Relationships: [{
18250
+ foreignKeyName: "user_roles_user_id_fkey";
18251
+ columns: ["user_id"];
18252
+ isOneToOne: false;
18253
+ referencedRelation: "profiles";
18254
+ referencedColumns: ["id"];
18255
+ }];
18256
+ };
18257
+ van_inventories: {
18258
+ Row: {
18259
+ barcode: string | null;
18260
+ created_at: string;
18261
+ id: string;
18262
+ monteur_id: string | null;
18263
+ price_per_unit: number;
18264
+ product_name: string;
18265
+ quantity_current: number;
18266
+ quantity_min: number;
18267
+ unit: string;
18268
+ updated_at: string;
16568
18269
  };
16569
18270
  Insert: {
18271
+ barcode?: string | null;
16570
18272
  created_at?: string;
16571
18273
  id?: string;
16572
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
16573
- user_id: string;
18274
+ monteur_id?: string | null;
18275
+ price_per_unit?: number;
18276
+ product_name: string;
18277
+ quantity_current?: number;
18278
+ quantity_min?: number;
18279
+ unit?: string;
18280
+ updated_at?: string;
16574
18281
  };
16575
18282
  Update: {
18283
+ barcode?: string | null;
16576
18284
  created_at?: string;
16577
18285
  id?: string;
16578
- role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
16579
- user_id?: string;
18286
+ monteur_id?: string | null;
18287
+ price_per_unit?: number;
18288
+ product_name?: string;
18289
+ quantity_current?: number;
18290
+ quantity_min?: number;
18291
+ unit?: string;
18292
+ updated_at?: string;
16580
18293
  };
16581
18294
  Relationships: [{
16582
- foreignKeyName: "user_roles_user_id_fkey";
16583
- columns: ["user_id"];
18295
+ foreignKeyName: "van_inventories_monteur_id_fkey";
18296
+ columns: ["monteur_id"];
16584
18297
  isOneToOne: false;
16585
18298
  referencedRelation: "profiles";
16586
18299
  referencedColumns: ["id"];
@@ -17165,6 +18878,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17165
18878
  werkbon_package_items: {
17166
18879
  Row: {
17167
18880
  article_number: string | null;
18881
+ artikel_id: string | null;
17168
18882
  created_at: string;
17169
18883
  gtin: string | null;
17170
18884
  id: string;
@@ -17182,6 +18896,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17182
18896
  };
17183
18897
  Insert: {
17184
18898
  article_number?: string | null;
18899
+ artikel_id?: string | null;
17185
18900
  created_at?: string;
17186
18901
  gtin?: string | null;
17187
18902
  id?: string;
@@ -17199,6 +18914,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17199
18914
  };
17200
18915
  Update: {
17201
18916
  article_number?: string | null;
18917
+ artikel_id?: string | null;
17202
18918
  created_at?: string;
17203
18919
  gtin?: string | null;
17204
18920
  id?: string;
@@ -17215,6 +18931,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17215
18931
  updated_at?: string;
17216
18932
  };
17217
18933
  Relationships: [{
18934
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18935
+ columns: ["artikel_id"];
18936
+ isOneToOne: false;
18937
+ referencedRelation: "artikelen_cache";
18938
+ referencedColumns: ["id"];
18939
+ }, {
17218
18940
  foreignKeyName: "werkbon_package_items_package_id_fkey";
17219
18941
  columns: ["package_id"];
17220
18942
  isOneToOne: false;
@@ -17416,6 +19138,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17416
19138
  scheduled_end_time: string | null;
17417
19139
  scheduled_start_time: string | null;
17418
19140
  sequence_number: number;
19141
+ signature_accepted_at: string | null;
19142
+ signature_by_user_id: string | null;
19143
+ signature_name: string | null;
17419
19144
  source_email_meta: import("../integrations/supabase/types").Json | null;
17420
19145
  source_mailbox_message_id: string | null;
17421
19146
  source_pdf_path: string | null;
@@ -17451,6 +19176,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17451
19176
  scheduled_end_time?: string | null;
17452
19177
  scheduled_start_time?: string | null;
17453
19178
  sequence_number: number;
19179
+ signature_accepted_at?: string | null;
19180
+ signature_by_user_id?: string | null;
19181
+ signature_name?: string | null;
17454
19182
  source_email_meta?: import("../integrations/supabase/types").Json | null;
17455
19183
  source_mailbox_message_id?: string | null;
17456
19184
  source_pdf_path?: string | null;
@@ -17486,6 +19214,9 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17486
19214
  scheduled_end_time?: string | null;
17487
19215
  scheduled_start_time?: string | null;
17488
19216
  sequence_number?: number;
19217
+ signature_accepted_at?: string | null;
19218
+ signature_by_user_id?: string | null;
19219
+ signature_name?: string | null;
17489
19220
  source_email_meta?: import("../integrations/supabase/types").Json | null;
17490
19221
  source_mailbox_message_id?: string | null;
17491
19222
  source_pdf_path?: string | null;
@@ -17536,7 +19267,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17536
19267
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17537
19268
  columns: ["monteur_id"];
17538
19269
  isOneToOne: false;
17539
- referencedRelation: "monteurs";
19270
+ referencedRelation: "profiles";
17540
19271
  referencedColumns: ["id"];
17541
19272
  }, {
17542
19273
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17546,6 +19277,60 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17546
19277
  referencedColumns: ["id"];
17547
19278
  }];
17548
19279
  };
19280
+ work_order_photos: {
19281
+ Row: {
19282
+ ai_caption: string | null;
19283
+ ai_categorized_at: string | null;
19284
+ ai_labels: import("../integrations/supabase/types").Json | null;
19285
+ caption: string | null;
19286
+ created_at: string;
19287
+ id: string;
19288
+ monteur_id: string | null;
19289
+ photo_type: string;
19290
+ storage_path: string;
19291
+ updated_at: string;
19292
+ work_order_id: string;
19293
+ };
19294
+ Insert: {
19295
+ ai_caption?: string | null;
19296
+ ai_categorized_at?: string | null;
19297
+ ai_labels?: import("../integrations/supabase/types").Json | null;
19298
+ caption?: string | null;
19299
+ created_at?: string;
19300
+ id?: string;
19301
+ monteur_id?: string | null;
19302
+ photo_type?: string;
19303
+ storage_path: string;
19304
+ updated_at?: string;
19305
+ work_order_id: string;
19306
+ };
19307
+ Update: {
19308
+ ai_caption?: string | null;
19309
+ ai_categorized_at?: string | null;
19310
+ ai_labels?: import("../integrations/supabase/types").Json | null;
19311
+ caption?: string | null;
19312
+ created_at?: string;
19313
+ id?: string;
19314
+ monteur_id?: string | null;
19315
+ photo_type?: string;
19316
+ storage_path?: string;
19317
+ updated_at?: string;
19318
+ work_order_id?: string;
19319
+ };
19320
+ Relationships: [{
19321
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
19322
+ columns: ["monteur_id"];
19323
+ isOneToOne: false;
19324
+ referencedRelation: "profiles";
19325
+ referencedColumns: ["id"];
19326
+ }, {
19327
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
19328
+ columns: ["work_order_id"];
19329
+ isOneToOne: false;
19330
+ referencedRelation: "work_orders";
19331
+ referencedColumns: ["id"];
19332
+ }];
19333
+ };
17549
19334
  work_orders: {
17550
19335
  Row: {
17551
19336
  assigned_to: string | null;
@@ -17577,7 +19362,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17577
19362
  scheduled_end_time: string | null;
17578
19363
  scheduled_start_time: string | null;
17579
19364
  status: string;
17580
- tenant_id: string;
17581
19365
  total_hours_worked: number | null;
17582
19366
  total_price: number | null;
17583
19367
  travel_time_minutes: number | null;
@@ -17615,7 +19399,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17615
19399
  scheduled_end_time?: string | null;
17616
19400
  scheduled_start_time?: string | null;
17617
19401
  status?: string;
17618
- tenant_id: string;
17619
19402
  total_hours_worked?: number | null;
17620
19403
  total_price?: number | null;
17621
19404
  travel_time_minutes?: number | null;
@@ -17653,7 +19436,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17653
19436
  scheduled_end_time?: string | null;
17654
19437
  scheduled_start_time?: string | null;
17655
19438
  status?: string;
17656
- tenant_id?: string;
17657
19439
  total_hours_worked?: number | null;
17658
19440
  total_price?: number | null;
17659
19441
  travel_time_minutes?: number | null;
@@ -17667,12 +19449,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17667
19449
  isOneToOne: false;
17668
19450
  referencedRelation: "work_orders";
17669
19451
  referencedColumns: ["id"];
17670
- }, {
17671
- foreignKeyName: "work_orders_tenant_id_fkey";
17672
- columns: ["tenant_id"];
17673
- isOneToOne: false;
17674
- referencedRelation: "tenants";
17675
- referencedColumns: ["id"];
17676
19452
  }];
17677
19453
  };
17678
19454
  };
@@ -17957,6 +19733,114 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
17957
19733
  };
17958
19734
  Relationships: [];
17959
19735
  };
19736
+ uren_facturen: {
19737
+ Row: {
19738
+ created_at: string | null;
19739
+ created_by: string | null;
19740
+ customer_id: string | null;
19741
+ customer_name: string | null;
19742
+ id: string | null;
19743
+ invoice_number: string | null;
19744
+ note: string | null;
19745
+ status: string | null;
19746
+ total_excl_cents: number | null;
19747
+ total_incl_cents: number | null;
19748
+ updated_at: string | null;
19749
+ vat_cents: number | null;
19750
+ vat_percentage: number | null;
19751
+ werkbon_id: string | null;
19752
+ };
19753
+ Insert: {
19754
+ created_at?: string | null;
19755
+ created_by?: string | null;
19756
+ customer_id?: string | null;
19757
+ customer_name?: string | null;
19758
+ id?: string | null;
19759
+ invoice_number?: string | null;
19760
+ note?: string | null;
19761
+ status?: string | null;
19762
+ total_excl_cents?: number | null;
19763
+ total_incl_cents?: number | null;
19764
+ updated_at?: string | null;
19765
+ vat_cents?: number | null;
19766
+ vat_percentage?: number | null;
19767
+ werkbon_id?: never;
19768
+ };
19769
+ Update: {
19770
+ created_at?: string | null;
19771
+ created_by?: string | null;
19772
+ customer_id?: string | null;
19773
+ customer_name?: string | null;
19774
+ id?: string | null;
19775
+ invoice_number?: string | null;
19776
+ note?: string | null;
19777
+ status?: string | null;
19778
+ total_excl_cents?: number | null;
19779
+ total_incl_cents?: number | null;
19780
+ updated_at?: string | null;
19781
+ vat_cents?: number | null;
19782
+ vat_percentage?: number | null;
19783
+ werkbon_id?: never;
19784
+ };
19785
+ Relationships: [{
19786
+ foreignKeyName: "invoices_customer_id_fkey";
19787
+ columns: ["customer_id"];
19788
+ isOneToOne: false;
19789
+ referencedRelation: "itk_customers";
19790
+ referencedColumns: ["id"];
19791
+ }];
19792
+ };
19793
+ uren_factuur_regels: {
19794
+ Row: {
19795
+ created_at: string | null;
19796
+ description: string | null;
19797
+ factuur_id: string | null;
19798
+ id: string | null;
19799
+ kind: string | null;
19800
+ quantity: number | null;
19801
+ sort_order: number | null;
19802
+ total_cents: number | null;
19803
+ unit: string | null;
19804
+ unit_price_cents: number | null;
19805
+ };
19806
+ Insert: {
19807
+ created_at?: string | null;
19808
+ description?: string | null;
19809
+ factuur_id?: string | null;
19810
+ id?: string | null;
19811
+ kind?: string | null;
19812
+ quantity?: number | null;
19813
+ sort_order?: number | null;
19814
+ total_cents?: number | null;
19815
+ unit?: string | null;
19816
+ unit_price_cents?: number | null;
19817
+ };
19818
+ Update: {
19819
+ created_at?: string | null;
19820
+ description?: string | null;
19821
+ factuur_id?: string | null;
19822
+ id?: string | null;
19823
+ kind?: string | null;
19824
+ quantity?: number | null;
19825
+ sort_order?: number | null;
19826
+ total_cents?: number | null;
19827
+ unit?: string | null;
19828
+ unit_price_cents?: number | null;
19829
+ };
19830
+ Relationships: [{
19831
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19832
+ columns: ["factuur_id"];
19833
+ isOneToOne: false;
19834
+ referencedRelation: "invoices";
19835
+ referencedColumns: ["id"];
19836
+ }, {
19837
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19838
+ columns: ["factuur_id"];
19839
+ isOneToOne: false;
19840
+ referencedRelation: "uren_facturen";
19841
+ referencedColumns: ["id"];
19842
+ }];
19843
+ };
17960
19844
  v_external_customers_exact: {
17961
19845
  Row: {
17962
19846
  account_number: string | null;
@@ -18275,6 +20159,20 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18275
20159
  referencedColumns: ["id"];
18276
20160
  }];
18277
20161
  };
20162
+ v_werkbon_totalen: {
20163
+ Row: {
20164
+ packages_cents: number | null;
20165
+ packages_minutes: number | null;
20166
+ werkbon_id: string | null;
20167
+ };
20168
+ Relationships: [{
20169
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20170
+ columns: ["werkbon_id"];
20171
+ isOneToOne: false;
20172
+ referencedRelation: "werkbonnen";
20173
+ referencedColumns: ["id"];
20174
+ }];
20175
+ };
18278
20176
  };
18279
20177
  Functions: {
18280
20178
  _floriday_schedule_job: {
@@ -18357,6 +20255,19 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18357
20255
  };
18358
20256
  Returns: undefined;
18359
20257
  };
20258
+ approve_mailbox_order_proposal: {
20259
+ Args: {
20260
+ p_custom_fields: import("../integrations/supabase/types").Json;
20261
+ p_customer_id: string;
20262
+ p_delivery_date: string;
20263
+ p_field_values?: import("../integrations/supabase/types").Json;
20264
+ p_lines: import("../integrations/supabase/types").Json;
20265
+ p_notes: string;
20266
+ p_proposal_id: string;
20267
+ p_reviewed_by: string;
20268
+ };
20269
+ Returns: import("../integrations/supabase/types").Json;
20270
+ };
18360
20271
  assign_cart_numbers: {
18361
20272
  Args: {
18362
20273
  p_carts: import("../integrations/supabase/types").Json;
@@ -18392,6 +20303,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18392
20303
  processed_items: number;
18393
20304
  }[];
18394
20305
  };
20306
+ backfill_order_auto_invoice_queue: {
20307
+ Args: never;
20308
+ Returns: number;
20309
+ };
18395
20310
  calculate_layer_stock: {
18396
20311
  Args: {
18397
20312
  p_product_id: string;
@@ -18404,6 +20319,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18404
20319
  };
18405
20320
  Returns: number;
18406
20321
  };
20322
+ can_manage_hours: {
20323
+ Args: never;
20324
+ Returns: boolean;
20325
+ };
18407
20326
  check_offer_product_available_stock: {
18408
20327
  Args: {
18409
20328
  p_campaign_product_id: string;
@@ -18441,6 +20360,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18441
20360
  gebruiker_id: string | null;
18442
20361
  gebruiker_naam: string;
18443
20362
  gestart_op: string | null;
20363
+ herkomst: string | null;
18444
20364
  id: string;
18445
20365
  idempotentie_sleutel: string | null;
18446
20366
  is_herprint: boolean;
@@ -18561,6 +20481,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18561
20481
  gebruiker_id: string | null;
18562
20482
  gebruiker_naam: string;
18563
20483
  gestart_op: string | null;
20484
+ herkomst: string | null;
18564
20485
  id: string;
18565
20486
  idempotentie_sleutel: string | null;
18566
20487
  is_herprint: boolean;
@@ -18593,6 +20514,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18593
20514
  };
18594
20515
  Returns: {
18595
20516
  action: string;
20517
+ attempt_started_at: string | null;
18596
20518
  attempts: number;
18597
20519
  connection_id: string | null;
18598
20520
  created_at: string;
@@ -18680,6 +20602,30 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18680
20602
  agent_naam: string;
18681
20603
  }[];
18682
20604
  };
20605
+ consume_van_inventory: {
20606
+ Args: {
20607
+ p_inventory_id: string;
20608
+ p_quantity: number;
20609
+ };
20610
+ Returns: {
20611
+ barcode: string | null;
20612
+ created_at: string;
20613
+ id: string;
20614
+ monteur_id: string | null;
20615
+ price_per_unit: number;
20616
+ product_name: string;
20617
+ quantity_current: number;
20618
+ quantity_min: number;
20619
+ unit: string;
20620
+ updated_at: string;
20621
+ };
20622
+ SetofOptions: {
20623
+ from: "*";
20624
+ to: "van_inventories";
20625
+ isOneToOne: true;
20626
+ isSetofReturn: false;
20627
+ };
20628
+ };
18683
20629
  control_get_todays_carts: {
18684
20630
  Args: never;
18685
20631
  Returns: {
@@ -18753,6 +20699,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18753
20699
  _user_id: string;
18754
20700
  };
18755
20701
  Returns: string;
20702
+ } | {
20703
+ Args: {
20704
+ _feature_id: string;
20705
+ _module_id: string;
20706
+ _user_id: string;
20707
+ };
20708
+ Returns: string;
18756
20709
  };
18757
20710
  email_auth_decrypt: {
18758
20711
  Args: {
@@ -18799,6 +20752,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
18799
20752
  };
18800
20753
  Returns: string;
18801
20754
  };
20755
+ employee_day_hours: {
20756
+ Args: {
20757
+ _day: string;
20758
+ _employee_id: string;
20759
+ };
20760
+ Returns: number;
20761
+ };
18802
20762
  enqueue_cart_replan_if_unlocked: {
18803
20763
  Args: {
18804
20764
  p_order_id: string;
@@ -19104,12 +21064,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19104
21064
  Args: never;
19105
21065
  Returns: string;
19106
21066
  };
19107
- get_work_order_tenant_id: {
19108
- Args: {
19109
- wo_id: string;
19110
- };
19111
- Returns: string;
19112
- };
19113
21067
  has_module_permission: {
19114
21068
  Args: {
19115
21069
  _min: string;
@@ -19129,6 +21083,46 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19129
21083
  Args: never;
19130
21084
  Returns: boolean;
19131
21085
  };
21086
+ invoice_create_from_source: {
21087
+ Args: {
21088
+ _payload?: import("../integrations/supabase/types").Json;
21089
+ _source_id: string;
21090
+ _source_type: string;
21091
+ };
21092
+ Returns: import("../integrations/supabase/types").Json;
21093
+ };
21094
+ invoice_get_billable_lines: {
21095
+ Args: {
21096
+ _invoice_id: string;
21097
+ };
21098
+ Returns: import("../integrations/supabase/types").Json;
21099
+ };
21100
+ invoice_get_for_source: {
21101
+ Args: {
21102
+ _source_id: string;
21103
+ _source_type: string;
21104
+ };
21105
+ Returns: import("../integrations/supabase/types").Json;
21106
+ };
21107
+ invoice_get_summary: {
21108
+ Args: {
21109
+ _invoice_id: string;
21110
+ };
21111
+ Returns: import("../integrations/supabase/types").Json;
21112
+ };
21113
+ invoice_list_sources: {
21114
+ Args: {
21115
+ _limit?: number;
21116
+ _source_type?: string;
21117
+ };
21118
+ Returns: import("../integrations/supabase/types").Json;
21119
+ };
21120
+ invoice_recalc_totals: {
21121
+ Args: {
21122
+ _invoice_id: string;
21123
+ };
21124
+ Returns: import("../integrations/supabase/types").Json;
21125
+ };
19132
21126
  is_authenticated: {
19133
21127
  Args: never;
19134
21128
  Returns: boolean;
@@ -19143,6 +21137,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19143
21137
  };
19144
21138
  Returns: boolean;
19145
21139
  };
21140
+ is_time_log_week_locked: {
21141
+ Args: {
21142
+ p_employee_id: string;
21143
+ p_start_time: string;
21144
+ };
21145
+ Returns: boolean;
21146
+ };
19146
21147
  is_user_admin: {
19147
21148
  Args: never;
19148
21149
  Returns: boolean;
@@ -19151,11 +21152,58 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19151
21152
  Args: never;
19152
21153
  Returns: boolean;
19153
21154
  };
19154
- jwt_has_role: {
21155
+ itk_offerte_naar_werkbon: {
21156
+ Args: {
21157
+ _offerte_id: string;
21158
+ };
21159
+ Returns: string;
21160
+ };
21161
+ itk_offerte_restant_mandaat: {
21162
+ Args: {
21163
+ _exclude_offerte_id?: string;
21164
+ _werkbon_id: string;
21165
+ };
21166
+ Returns: number;
21167
+ };
21168
+ jwt_has_role: {
21169
+ Args: {
21170
+ _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
21171
+ };
21172
+ Returns: boolean;
21173
+ };
21174
+ list_medewerkers: {
21175
+ Args: never;
21176
+ Returns: {
21177
+ avatar_url: string;
21178
+ color: string;
21179
+ display_name: string;
21180
+ email: string;
21181
+ hours_fri: number;
21182
+ hours_mon: number;
21183
+ hours_thu: number;
21184
+ hours_tue: number;
21185
+ hours_wed: number;
21186
+ id: string;
21187
+ is_active: boolean;
21188
+ leave_balance_hours: number;
21189
+ persnr: string;
21190
+ phone: string;
21191
+ roles: string[];
21192
+ }[];
21193
+ };
21194
+ list_monteur_absences: {
19155
21195
  Args: {
19156
- _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
21196
+ _from: string;
21197
+ _to: string;
19157
21198
  };
19158
- Returns: boolean;
21199
+ Returns: {
21200
+ absence_date: string;
21201
+ end_time: string;
21202
+ full_day: boolean;
21203
+ kind: string;
21204
+ monteur_id: string;
21205
+ start_time: string;
21206
+ }[];
19159
21207
  };
19160
21208
  list_monteurs: {
19161
21209
  Args: never;
@@ -19489,17 +21537,6 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19489
21537
  Returns: string;
19490
21538
  };
19491
21539
  logistics_emit_event: {
19492
- Args: {
19493
- p_event_type: string;
19494
- p_idempotency_key?: string;
19495
- p_order_ref: string;
19496
- p_payload?: import("../integrations/supabase/types").Json;
19497
- p_shadow?: boolean;
19498
- p_source_module: string;
19499
- p_strategy_id?: string;
19500
- };
19501
- Returns: import("../integrations/supabase/types").Json;
19502
- } | {
19503
21540
  Args: {
19504
21541
  p_event_type: string;
19505
21542
  p_idempotency_key?: string;
@@ -19588,6 +21625,41 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19588
21625
  };
19589
21626
  Returns: string;
19590
21627
  };
21628
+ logistics_floriday_finish_push_v2: {
21629
+ Args: {
21630
+ _error?: string;
21631
+ _error_code?: string;
21632
+ _fulfillment_order_id?: string;
21633
+ _gateway_status?: number;
21634
+ _id: string;
21635
+ _max_age_hours?: number;
21636
+ _max_attempts?: number;
21637
+ _ok: boolean;
21638
+ _permanent?: boolean;
21639
+ _response?: import("../integrations/supabase/types").Json;
21640
+ _revision: number;
21641
+ _sent_hash?: string;
21642
+ };
21643
+ Returns: string;
21644
+ };
21645
+ logistics_floriday_finish_push_v3: {
21646
+ Args: {
21647
+ _error?: string;
21648
+ _error_code?: string;
21649
+ _fulfillment_order_id?: string;
21650
+ _gateway_status?: number;
21651
+ _id: string;
21652
+ _max_age_hours?: number;
21653
+ _max_attempts?: number;
21654
+ _outcome: string;
21655
+ _permanent?: boolean;
21656
+ _response?: import("../integrations/supabase/types").Json;
21657
+ _revision: number;
21658
+ _sent_hash?: string;
21659
+ _wait_max_age_hours?: number;
21660
+ };
21661
+ Returns: string;
21662
+ };
19591
21663
  logistics_floriday_prune_pushes: {
19592
21664
  Args: {
19593
21665
  _days?: number;
@@ -19648,12 +21720,79 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19648
21720
  };
19649
21721
  Returns: import("../integrations/supabase/types").Json;
19650
21722
  };
21723
+ logistics_plan_block: {
21724
+ Args: {
21725
+ p_details?: import("../integrations/supabase/types").Json;
21726
+ p_order_ids: string[];
21727
+ p_reason: string;
21728
+ };
21729
+ Returns: number;
21730
+ };
19651
21731
  logistics_plan_buffer_sql: {
19652
21732
  Args: {
19653
21733
  p_buffer_id: string;
19654
21734
  };
19655
21735
  Returns: number;
19656
21736
  };
21737
+ logistics_plan_claim: {
21738
+ Args: {
21739
+ p_limit?: number;
21740
+ };
21741
+ Returns: {
21742
+ attempts: number;
21743
+ id: string;
21744
+ order_id: string;
21745
+ }[];
21746
+ };
21747
+ logistics_plan_enqueue: {
21748
+ Args: {
21749
+ p_order_id: string;
21750
+ p_reason?: string;
21751
+ };
21752
+ Returns: undefined;
21753
+ };
21754
+ logistics_plan_ensure_event: {
21755
+ Args: {
21756
+ p_order_id: string;
21757
+ };
21758
+ Returns: boolean;
21759
+ };
21760
+ logistics_plan_finish: {
21761
+ Args: {
21762
+ p_error?: string;
21763
+ p_id: string;
21764
+ };
21765
+ Returns: undefined;
21766
+ };
21767
+ logistics_plan_impact_orders: {
21768
+ Args: {
21769
+ p_order_id: string;
21770
+ };
21771
+ Returns: {
21772
+ buffer_id: string;
21773
+ order_id: string;
21774
+ plan_date: string;
21775
+ }[];
21776
+ };
21777
+ logistics_plan_kick: {
21778
+ Args: never;
21779
+ Returns: undefined;
21780
+ };
21781
+ logistics_plan_prune: {
21782
+ Args: never;
21783
+ Returns: number;
21784
+ };
21785
+ logistics_plan_release_stale: {
21786
+ Args: never;
21787
+ Returns: number;
21788
+ };
21789
+ logistics_plan_setting: {
21790
+ Args: {
21791
+ p_default: number;
21792
+ p_key: string;
21793
+ };
21794
+ Returns: number;
21795
+ };
19657
21796
  logistics_queue_capacity_email: {
19658
21797
  Args: {
19659
21798
  p_alert_id: string;
@@ -19895,6 +22034,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19895
22034
  my_module_permissions: {
19896
22035
  Args: never;
19897
22036
  Returns: {
22037
+ feature_id: string;
19898
22038
  module_id: string;
19899
22039
  permission: string;
19900
22040
  }[];
@@ -19956,6 +22096,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19956
22096
  verwijderd: number;
19957
22097
  }[];
19958
22098
  };
22099
+ order_departure_proof: {
22100
+ Args: {
22101
+ p_order_id: string;
22102
+ };
22103
+ Returns: import("../integrations/supabase/types").Json;
22104
+ };
19959
22105
  order_number_prefix: {
19960
22106
  Args: {
19961
22107
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19963,6 +22109,25 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
19963
22109
  };
19964
22110
  Returns: string;
19965
22111
  };
22112
+ pakket_suggesties_voor_tekst: {
22113
+ Args: {
22114
+ _tekst: string;
22115
+ };
22116
+ Returns: {
22117
+ hit_type: string;
22118
+ package_id: string;
22119
+ priority: number;
22120
+ }[];
22121
+ };
22122
+ pakket_voor_reistijd: {
22123
+ Args: {
22124
+ _minuten: number;
22125
+ };
22126
+ Returns: {
22127
+ package_id: string;
22128
+ priority: number;
22129
+ }[];
22130
+ };
19966
22131
  pick_active_printers: {
19967
22132
  Args: never;
19968
22133
  Returns: {
@@ -20070,6 +22235,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20070
22235
  isSetofReturn: false;
20071
22236
  };
20072
22237
  };
22238
+ pick_cleanup_maintenance: {
22239
+ Args: {
22240
+ _heartbeat_hours?: number;
22241
+ _log_days?: number;
22242
+ };
22243
+ Returns: import("../integrations/supabase/types").Json;
22244
+ };
20073
22245
  pick_complete_print: {
20074
22246
  Args: {
20075
22247
  _printer_id: string;
@@ -20121,6 +22293,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20121
22293
  Args: never;
20122
22294
  Returns: string;
20123
22295
  };
22296
+ pick_day_counts: {
22297
+ Args: {
22298
+ _pick_day?: string;
22299
+ _screen_id?: string;
22300
+ _station_id?: string;
22301
+ };
22302
+ Returns: import("../integrations/supabase/types").Json;
22303
+ };
20124
22304
  pick_document_layout_data: {
20125
22305
  Args: {
20126
22306
  _layout_id: string;
@@ -20148,6 +22328,18 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20148
22328
  };
20149
22329
  Returns: import("../integrations/supabase/types").Json;
20150
22330
  };
22331
+ pick_print_plekken: {
22332
+ Args: never;
22333
+ Returns: {
22334
+ id: string;
22335
+ naam: string;
22336
+ omschrijving: string;
22337
+ }[];
22338
+ };
22339
+ pick_reference_data_status: {
22340
+ Args: never;
22341
+ Returns: import("../integrations/supabase/types").Json;
22342
+ };
20151
22343
  pick_release_expired_locks: {
20152
22344
  Args: never;
20153
22345
  Returns: number;
@@ -20158,6 +22350,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20158
22350
  };
20159
22351
  Returns: undefined;
20160
22352
  };
22353
+ pick_reprint_document: {
22354
+ Args: {
22355
+ _queue_item_id: string;
22356
+ _session_id: string;
22357
+ _throttle_seconds?: number;
22358
+ };
22359
+ Returns: string;
22360
+ };
20161
22361
  pick_reset_print: {
20162
22362
  Args: {
20163
22363
  _queue_item_id: string;
@@ -20204,6 +22404,17 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20204
22404
  isSetofReturn: false;
20205
22405
  };
20206
22406
  };
22407
+ pick_seed_reference_data: {
22408
+ Args: never;
22409
+ Returns: import("../integrations/supabase/types").Json;
22410
+ };
22411
+ pick_set_station_print_plek: {
22412
+ Args: {
22413
+ _print_plek_id: string;
22414
+ _station_id: string;
22415
+ };
22416
+ Returns: string;
22417
+ };
20207
22418
  pick_station_dashboard: {
20208
22419
  Args: never;
20209
22420
  Returns: {
@@ -20216,6 +22427,25 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20216
22427
  waiting: number;
20217
22428
  }[];
20218
22429
  };
22430
+ pick_station_print_plek: {
22431
+ Args: {
22432
+ _station_id: string;
22433
+ };
22434
+ Returns: {
22435
+ naam: string;
22436
+ omschrijving: string;
22437
+ print_plek_id: string;
22438
+ }[];
22439
+ };
22440
+ pick_station_print_plekken: {
22441
+ Args: never;
22442
+ Returns: {
22443
+ naam: string;
22444
+ omschrijving: string;
22445
+ print_plek_id: string;
22446
+ station_id: string;
22447
+ }[];
22448
+ };
20219
22449
  pick_station_slugify: {
20220
22450
  Args: {
20221
22451
  _id: string;
@@ -20223,6 +22453,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20223
22453
  };
20224
22454
  Returns: string;
20225
22455
  };
22456
+ pick_sync_queue_throttled: {
22457
+ Args: {
22458
+ _min_seconds?: number;
22459
+ };
22460
+ Returns: import("../integrations/supabase/types").Json;
22461
+ };
20226
22462
  pickstation_get_orders_raw: {
20227
22463
  Args: never;
20228
22464
  Returns: import("../integrations/supabase/types").Json;
@@ -20284,6 +22520,37 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20284
22520
  };
20285
22521
  Returns: undefined;
20286
22522
  };
22523
+ quote_create_from_source: {
22524
+ Args: {
22525
+ _payload?: import("../integrations/supabase/types").Json;
22526
+ _source_id: string;
22527
+ _source_type: string;
22528
+ };
22529
+ Returns: string;
22530
+ };
22531
+ quote_get_billable_lines: {
22532
+ Args: {
22533
+ _quotation_id: string;
22534
+ };
22535
+ Returns: import("../integrations/supabase/types").Json;
22536
+ };
22537
+ quote_get_summary: {
22538
+ Args: {
22539
+ _quotation_id: string;
22540
+ };
22541
+ Returns: import("../integrations/supabase/types").Json;
22542
+ };
22543
+ quote_list_packages: {
22544
+ Args: never;
22545
+ Returns: import("../integrations/supabase/types").Json;
22546
+ };
22547
+ quote_list_sources: {
22548
+ Args: {
22549
+ _limit?: number;
22550
+ _source_type?: string;
22551
+ };
22552
+ Returns: import("../integrations/supabase/types").Json;
22553
+ };
20287
22554
  recompute_all_reserved_stock: {
20288
22555
  Args: never;
20289
22556
  Returns: undefined;
@@ -20337,6 +22604,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20337
22604
  };
20338
22605
  Returns: boolean;
20339
22606
  };
22607
+ release_stale_order_invoice_links: {
22608
+ Args: {
22609
+ _minutes?: number;
22610
+ };
22611
+ Returns: number;
22612
+ };
20340
22613
  reorder_customer_price_groups: {
20341
22614
  Args: {
20342
22615
  _ids: string[];
@@ -20775,6 +23048,16 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20775
23048
  };
20776
23049
  Returns: string[];
20777
23050
  };
23051
+ switch_time_log: {
23052
+ Args: {
23053
+ p_employee_id: string;
23054
+ p_start_lat?: number;
23055
+ p_start_lng?: number;
23056
+ p_type: string;
23057
+ p_work_order_id?: string;
23058
+ };
23059
+ Returns: import("../integrations/supabase/types").Json;
23060
+ };
20778
23061
  sync_all_layer_stocks: {
20779
23062
  Args: never;
20780
23063
  Returns: undefined;
@@ -20809,6 +23092,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20809
23092
  };
20810
23093
  Returns: undefined;
20811
23094
  };
23095
+ sync_sick_time_off: {
23096
+ Args: {
23097
+ _period_id: string;
23098
+ };
23099
+ Returns: number;
23100
+ };
20812
23101
  trade_item_stock_duplicates: {
20813
23102
  Args: never;
20814
23103
  Returns: {
@@ -20825,6 +23114,38 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20825
23114
  };
20826
23115
  Returns: boolean;
20827
23116
  };
23117
+ twinfield_cron_lock_acquire: {
23118
+ Args: {
23119
+ _job_name: string;
23120
+ _stale_seconds?: number;
23121
+ };
23122
+ Returns: boolean;
23123
+ };
23124
+ twinfield_cron_lock_release: {
23125
+ Args: {
23126
+ _error?: string;
23127
+ _job_name: string;
23128
+ };
23129
+ Returns: undefined;
23130
+ };
23131
+ twinfield_deactivate_connection: {
23132
+ Args: {
23133
+ p_connection_id: string;
23134
+ p_user_id: string;
23135
+ };
23136
+ Returns: import("../integrations/supabase/types").Json;
23137
+ };
23138
+ twinfield_handle_administration_change: {
23139
+ Args: {
23140
+ _administration_code: string;
23141
+ _user_id: string;
23142
+ };
23143
+ Returns: undefined;
23144
+ };
23145
+ twinfield_prune_push_queue: {
23146
+ Args: never;
23147
+ Returns: number;
23148
+ };
20828
23149
  twinfield_register_cron: {
20829
23150
  Args: {
20830
23151
  apikey?: string;
@@ -20840,10 +23161,11 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20840
23161
  p_company_name?: string;
20841
23162
  p_environment: string;
20842
23163
  p_office_code?: string;
23164
+ p_reset_sync?: boolean;
20843
23165
  p_status?: string;
20844
23166
  p_user_id: string;
20845
23167
  };
20846
- Returns: string;
23168
+ Returns: import("../integrations/supabase/types").Json;
20847
23169
  };
20848
23170
  upsert_auto_fulfillment_log: {
20849
23171
  Args: {
@@ -20864,11 +23186,43 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20864
23186
  Args: never;
20865
23187
  Returns: string;
20866
23188
  };
23189
+ werkbon_totalen: {
23190
+ Args: {
23191
+ _werkbon_id: string;
23192
+ };
23193
+ Returns: {
23194
+ materials_cents: number;
23195
+ packages_cents: number;
23196
+ packages_minutes: number;
23197
+ total_cents: number;
23198
+ total_minutes: number;
23199
+ }[];
23200
+ };
23201
+ wo_create_from_source: {
23202
+ Args: {
23203
+ _payload?: import("../integrations/supabase/types").Json;
23204
+ _source_id: string;
23205
+ _source_type: string;
23206
+ };
23207
+ Returns: string;
23208
+ };
23209
+ wo_get_billable_lines: {
23210
+ Args: {
23211
+ _work_order_id: string;
23212
+ };
23213
+ Returns: import("../integrations/supabase/types").Json;
23214
+ };
23215
+ wo_get_summary: {
23216
+ Args: {
23217
+ _work_order_id: string;
23218
+ };
23219
+ Returns: import("../integrations/supabase/types").Json;
23220
+ };
20867
23221
  };
20868
23222
  Enums: {
20869
23223
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20870
23224
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20871
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
23225
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
20872
23226
  doc_orientation: "portrait" | "landscape";
20873
23227
  exact_env: "staging" | "live";
20874
23228
  exact_push_status: "pending" | "sent" | "error";
@@ -20882,7 +23236,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
20882
23236
  };
20883
23237
  CompositeTypes: { [_ in never]: never; };
20884
23238
  }, {
20885
- PostgrestVersion: "14.5";
23239
+ PostgrestVersion: "14.17";
20886
23240
  }>;
20887
23241
  userId: string;
20888
23242
  claims: import("@supabase/auth-js").JwtPayload;