@flowselections/floriday-voorraad 1.0.36 → 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 +2 -2
@@ -674,6 +674,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
674
674
  };
675
675
  Relationships: [];
676
676
  };
677
+ artikelen_cache: {
678
+ Row: {
679
+ artikelcode: string;
680
+ bron: string;
681
+ bruto_prijs_cent: number | null;
682
+ created_at: string;
683
+ eenheid: string;
684
+ fabrikant: string | null;
685
+ fetched_at: string;
686
+ gtin: string | null;
687
+ id: string;
688
+ naam: string;
689
+ netto_prijs_cent: number | null;
690
+ omschrijving: string | null;
691
+ raw: import("./types").Json;
692
+ updated_at: string;
693
+ valuta: string;
694
+ };
695
+ Insert: {
696
+ artikelcode: string;
697
+ bron?: string;
698
+ bruto_prijs_cent?: number | null;
699
+ created_at?: string;
700
+ eenheid?: string;
701
+ fabrikant?: string | null;
702
+ fetched_at?: string;
703
+ gtin?: string | null;
704
+ id?: string;
705
+ naam: string;
706
+ netto_prijs_cent?: number | null;
707
+ omschrijving?: string | null;
708
+ raw?: import("./types").Json;
709
+ updated_at?: string;
710
+ valuta?: string;
711
+ };
712
+ Update: {
713
+ artikelcode?: string;
714
+ bron?: string;
715
+ bruto_prijs_cent?: number | null;
716
+ created_at?: string;
717
+ eenheid?: string;
718
+ fabrikant?: string | null;
719
+ fetched_at?: string;
720
+ gtin?: string | null;
721
+ id?: string;
722
+ naam?: string;
723
+ netto_prijs_cent?: number | null;
724
+ omschrijving?: string | null;
725
+ raw?: import("./types").Json;
726
+ updated_at?: string;
727
+ valuta?: string;
728
+ };
729
+ Relationships: [];
730
+ };
731
+ artikelen_veldconfig: {
732
+ Row: {
733
+ bron_pad: string;
734
+ created_at: string;
735
+ id: string;
736
+ label: string;
737
+ sort_order: number;
738
+ type: string;
739
+ updated_at: string;
740
+ veld_key: string;
741
+ zichtbaar_in_detail: boolean;
742
+ zichtbaar_in_lijst: boolean;
743
+ };
744
+ Insert: {
745
+ bron_pad: string;
746
+ created_at?: string;
747
+ id?: string;
748
+ label: string;
749
+ sort_order?: number;
750
+ type?: string;
751
+ updated_at?: string;
752
+ veld_key: string;
753
+ zichtbaar_in_detail?: boolean;
754
+ zichtbaar_in_lijst?: boolean;
755
+ };
756
+ Update: {
757
+ bron_pad?: string;
758
+ created_at?: string;
759
+ id?: string;
760
+ label?: string;
761
+ sort_order?: number;
762
+ type?: string;
763
+ updated_at?: string;
764
+ veld_key?: string;
765
+ zichtbaar_in_detail?: boolean;
766
+ zichtbaar_in_lijst?: boolean;
767
+ };
768
+ Relationships: [];
769
+ };
677
770
  booking_items: {
678
771
  Row: {
679
772
  booking_id: string;
@@ -872,6 +965,126 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
872
965
  };
873
966
  Relationships: [];
874
967
  };
968
+ cao_holidays: {
969
+ Row: {
970
+ created_at: string;
971
+ description: string | null;
972
+ holiday_date: string;
973
+ id: string;
974
+ updated_at: string;
975
+ };
976
+ Insert: {
977
+ created_at?: string;
978
+ description?: string | null;
979
+ holiday_date: string;
980
+ id?: string;
981
+ updated_at?: string;
982
+ };
983
+ Update: {
984
+ created_at?: string;
985
+ description?: string | null;
986
+ holiday_date?: string;
987
+ id?: string;
988
+ updated_at?: string;
989
+ };
990
+ Relationships: [];
991
+ };
992
+ cao_settings: {
993
+ Row: {
994
+ auto_break_after_hours: number;
995
+ auto_break_minutes: number;
996
+ auto_break_unpaid: boolean;
997
+ auto_stop_after_hours: number;
998
+ callout_fee: number;
999
+ created_at: string;
1000
+ daily_regular_hours: number;
1001
+ default_hourly_rate: number;
1002
+ id: string;
1003
+ materials_markup_percent: number;
1004
+ max_daily_hours: number;
1005
+ max_weekly_hours: number;
1006
+ meal_allowance_amount: number;
1007
+ overtime_pct_178: number;
1008
+ overtime_pct_189: number;
1009
+ overtime_pct_212: number;
1010
+ reminder_after_hours: number;
1011
+ standby_evening_amount: number;
1012
+ standby_weekend_amount: number;
1013
+ travel_cost_per_km: number | null;
1014
+ travel_cost_threshold_km: number | null;
1015
+ travel_counts_as_work: boolean;
1016
+ travel_hourly_rate: number;
1017
+ travel_rate_per_hour: number;
1018
+ travel_threshold_minutes: number;
1019
+ updated_at: string;
1020
+ weekend_always_212: boolean;
1021
+ window_end: string;
1022
+ window_start: string;
1023
+ };
1024
+ Insert: {
1025
+ auto_break_after_hours?: number;
1026
+ auto_break_minutes?: number;
1027
+ auto_break_unpaid?: boolean;
1028
+ auto_stop_after_hours?: number;
1029
+ callout_fee?: number;
1030
+ created_at?: string;
1031
+ daily_regular_hours?: number;
1032
+ default_hourly_rate?: number;
1033
+ id?: string;
1034
+ materials_markup_percent?: number;
1035
+ max_daily_hours?: number;
1036
+ max_weekly_hours?: number;
1037
+ meal_allowance_amount?: number;
1038
+ overtime_pct_178?: number;
1039
+ overtime_pct_189?: number;
1040
+ overtime_pct_212?: number;
1041
+ reminder_after_hours?: number;
1042
+ standby_evening_amount?: number;
1043
+ standby_weekend_amount?: number;
1044
+ travel_cost_per_km?: number | null;
1045
+ travel_cost_threshold_km?: number | null;
1046
+ travel_counts_as_work?: boolean;
1047
+ travel_hourly_rate?: number;
1048
+ travel_rate_per_hour?: number;
1049
+ travel_threshold_minutes?: number;
1050
+ updated_at?: string;
1051
+ weekend_always_212?: boolean;
1052
+ window_end?: string;
1053
+ window_start?: string;
1054
+ };
1055
+ Update: {
1056
+ auto_break_after_hours?: number;
1057
+ auto_break_minutes?: number;
1058
+ auto_break_unpaid?: boolean;
1059
+ auto_stop_after_hours?: number;
1060
+ callout_fee?: number;
1061
+ created_at?: string;
1062
+ daily_regular_hours?: number;
1063
+ default_hourly_rate?: number;
1064
+ id?: string;
1065
+ materials_markup_percent?: number;
1066
+ max_daily_hours?: number;
1067
+ max_weekly_hours?: number;
1068
+ meal_allowance_amount?: number;
1069
+ overtime_pct_178?: number;
1070
+ overtime_pct_189?: number;
1071
+ overtime_pct_212?: number;
1072
+ reminder_after_hours?: number;
1073
+ standby_evening_amount?: number;
1074
+ standby_weekend_amount?: number;
1075
+ travel_cost_per_km?: number | null;
1076
+ travel_cost_threshold_km?: number | null;
1077
+ travel_counts_as_work?: boolean;
1078
+ travel_hourly_rate?: number;
1079
+ travel_rate_per_hour?: number;
1080
+ travel_threshold_minutes?: number;
1081
+ updated_at?: string;
1082
+ weekend_always_212?: boolean;
1083
+ window_end?: string;
1084
+ window_start?: string;
1085
+ };
1086
+ Relationships: [];
1087
+ };
875
1088
  carrier_shipping_rates: {
876
1089
  Row: {
877
1090
  carrier_id: string;
@@ -2639,6 +2852,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2639
2852
  };
2640
2853
  Relationships: [];
2641
2854
  };
2855
+ document_bronregels: {
2856
+ Row: {
2857
+ bron: string;
2858
+ created_at: string;
2859
+ documenttype: string;
2860
+ herkomst: string;
2861
+ id: string;
2862
+ layout_id: string | null;
2863
+ updated_at: string;
2864
+ };
2865
+ Insert: {
2866
+ bron?: string;
2867
+ created_at?: string;
2868
+ documenttype: string;
2869
+ herkomst: string;
2870
+ id?: string;
2871
+ layout_id?: string | null;
2872
+ updated_at?: string;
2873
+ };
2874
+ Update: {
2875
+ bron?: string;
2876
+ created_at?: string;
2877
+ documenttype?: string;
2878
+ herkomst?: string;
2879
+ id?: string;
2880
+ layout_id?: string | null;
2881
+ updated_at?: string;
2882
+ };
2883
+ Relationships: [{
2884
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2885
+ columns: ["layout_id"];
2886
+ isOneToOne: false;
2887
+ referencedRelation: "document_layouts";
2888
+ referencedColumns: ["id"];
2889
+ }];
2890
+ };
2642
2891
  document_formaat_printers: {
2643
2892
  Row: {
2644
2893
  created_at: string;
@@ -2916,6 +3165,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2916
3165
  Row: {
2917
3166
  actief: boolean;
2918
3167
  breedte_mm: number;
3168
+ bron: string;
2919
3169
  config: import("./types").Json;
2920
3170
  created_at: string;
2921
3171
  created_by: string | null;
@@ -2933,12 +3183,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2933
3183
  orientatie: Database["public"]["Enums"]["doc_orientation"];
2934
3184
  page_settings: import("./types").Json;
2935
3185
  papierformaat: string;
3186
+ systeem: boolean;
2936
3187
  thumbnail_url: string | null;
2937
3188
  updated_at: string;
2938
3189
  };
2939
3190
  Insert: {
2940
3191
  actief?: boolean;
2941
3192
  breedte_mm?: number;
3193
+ bron?: string;
2942
3194
  config?: import("./types").Json;
2943
3195
  created_at?: string;
2944
3196
  created_by?: string | null;
@@ -2956,12 +3208,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2956
3208
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
2957
3209
  page_settings?: import("./types").Json;
2958
3210
  papierformaat?: string;
3211
+ systeem?: boolean;
2959
3212
  thumbnail_url?: string | null;
2960
3213
  updated_at?: string;
2961
3214
  };
2962
3215
  Update: {
2963
3216
  actief?: boolean;
2964
3217
  breedte_mm?: number;
3218
+ bron?: string;
2965
3219
  config?: import("./types").Json;
2966
3220
  created_at?: string;
2967
3221
  created_by?: string | null;
@@ -2979,11 +3233,90 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2979
3233
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
2980
3234
  page_settings?: import("./types").Json;
2981
3235
  papierformaat?: string;
3236
+ systeem?: boolean;
2982
3237
  thumbnail_url?: string | null;
2983
3238
  updated_at?: string;
2984
3239
  };
2985
3240
  Relationships: [];
2986
3241
  };
3242
+ document_printplek_printers: {
3243
+ Row: {
3244
+ created_at: string;
3245
+ documenttype: string;
3246
+ id: string;
3247
+ papierformaat: string | null;
3248
+ print_plek_id: string;
3249
+ printer_id: string | null;
3250
+ updated_at: string;
3251
+ };
3252
+ Insert: {
3253
+ created_at?: string;
3254
+ documenttype: string;
3255
+ id?: string;
3256
+ papierformaat?: string | null;
3257
+ print_plek_id: string;
3258
+ printer_id?: string | null;
3259
+ updated_at?: string;
3260
+ };
3261
+ Update: {
3262
+ created_at?: string;
3263
+ documenttype?: string;
3264
+ id?: string;
3265
+ papierformaat?: string | null;
3266
+ print_plek_id?: string;
3267
+ printer_id?: string | null;
3268
+ updated_at?: string;
3269
+ };
3270
+ Relationships: [{
3271
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3272
+ columns: ["print_plek_id"];
3273
+ isOneToOne: false;
3274
+ referencedRelation: "print_plekken";
3275
+ referencedColumns: ["id"];
3276
+ }, {
3277
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3278
+ columns: ["printer_id"];
3279
+ isOneToOne: false;
3280
+ referencedRelation: "printers";
3281
+ referencedColumns: ["id"];
3282
+ }];
3283
+ };
3284
+ document_werkplek_printers: {
3285
+ Row: {
3286
+ created_at: string;
3287
+ documenttype: string;
3288
+ id: string;
3289
+ papierformaat: string | null;
3290
+ printer_id: string | null;
3291
+ updated_at: string;
3292
+ werkplek: string;
3293
+ };
3294
+ Insert: {
3295
+ created_at?: string;
3296
+ documenttype: string;
3297
+ id?: string;
3298
+ papierformaat?: string | null;
3299
+ printer_id?: string | null;
3300
+ updated_at?: string;
3301
+ werkplek: string;
3302
+ };
3303
+ Update: {
3304
+ created_at?: string;
3305
+ documenttype?: string;
3306
+ id?: string;
3307
+ papierformaat?: string | null;
3308
+ printer_id?: string | null;
3309
+ updated_at?: string;
3310
+ werkplek?: string;
3311
+ };
3312
+ Relationships: [{
3313
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3314
+ columns: ["printer_id"];
3315
+ isOneToOne: false;
3316
+ referencedRelation: "printers";
3317
+ referencedColumns: ["id"];
3318
+ }];
3319
+ };
2987
3320
  email_auth_connections: {
2988
3321
  Row: {
2989
3322
  access_token_encrypted: string | null;
@@ -6480,6 +6813,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6480
6813
  Row: {
6481
6814
  buyer_organization_id: string | null;
6482
6815
  connection_id: string;
6816
+ controlled_at: string | null;
6483
6817
  created_at: string;
6484
6818
  data: import("./types").Json;
6485
6819
  floriday_id: string;
@@ -6491,6 +6825,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6491
6825
  Insert: {
6492
6826
  buyer_organization_id?: string | null;
6493
6827
  connection_id: string;
6828
+ controlled_at?: string | null;
6494
6829
  created_at?: string;
6495
6830
  data: import("./types").Json;
6496
6831
  floriday_id: string;
@@ -6502,6 +6837,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
6837
  Update: {
6503
6838
  buyer_organization_id?: string | null;
6504
6839
  connection_id?: string;
6840
+ controlled_at?: string | null;
6505
6841
  created_at?: string;
6506
6842
  data?: import("./types").Json;
6507
6843
  floriday_id?: string;
@@ -7226,8 +7562,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7226
7562
  };
7227
7563
  Relationships: [];
7228
7564
  };
7565
+ invoice_items: {
7566
+ Row: {
7567
+ created_at: string;
7568
+ description: string;
7569
+ id: string;
7570
+ invoice_id: string;
7571
+ kind: string;
7572
+ quantity: number;
7573
+ sort_order: number;
7574
+ source_line_ref: string | null;
7575
+ total_cents: number;
7576
+ unit: string;
7577
+ unit_price_cents: number;
7578
+ };
7579
+ Insert: {
7580
+ created_at?: string;
7581
+ description?: string;
7582
+ id?: string;
7583
+ invoice_id: string;
7584
+ kind?: string;
7585
+ quantity?: number;
7586
+ sort_order?: number;
7587
+ source_line_ref?: string | null;
7588
+ total_cents?: number;
7589
+ unit?: string;
7590
+ unit_price_cents?: number;
7591
+ };
7592
+ Update: {
7593
+ created_at?: string;
7594
+ description?: string;
7595
+ id?: string;
7596
+ invoice_id?: string;
7597
+ kind?: string;
7598
+ quantity?: number;
7599
+ sort_order?: number;
7600
+ source_line_ref?: string | null;
7601
+ total_cents?: number;
7602
+ unit?: string;
7603
+ unit_price_cents?: number;
7604
+ };
7605
+ Relationships: [{
7606
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7607
+ columns: ["invoice_id"];
7608
+ isOneToOne: false;
7609
+ referencedRelation: "invoices";
7610
+ referencedColumns: ["id"];
7611
+ }, {
7612
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7613
+ columns: ["invoice_id"];
7614
+ isOneToOne: false;
7615
+ referencedRelation: "uren_facturen";
7616
+ referencedColumns: ["id"];
7617
+ }];
7618
+ };
7229
7619
  invoice_post_idempotency: {
7230
7620
  Row: {
7621
+ administration_code: string;
7231
7622
  client_request_id: string;
7232
7623
  completed_at: string | null;
7233
7624
  created_at: string;
@@ -7237,6 +7628,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7237
7628
  user_id: string;
7238
7629
  };
7239
7630
  Insert: {
7631
+ administration_code?: string;
7240
7632
  client_request_id: string;
7241
7633
  completed_at?: string | null;
7242
7634
  created_at?: string;
@@ -7246,6 +7638,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7246
7638
  user_id: string;
7247
7639
  };
7248
7640
  Update: {
7641
+ administration_code?: string;
7249
7642
  client_request_id?: string;
7250
7643
  completed_at?: string | null;
7251
7644
  created_at?: string;
@@ -7403,52 +7796,169 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7403
7796
  };
7404
7797
  Relationships: [];
7405
7798
  };
7406
- itk_contact_persons: {
7799
+ invoice_timing_settings: {
7407
7800
  Row: {
7801
+ anchor: string;
7802
+ business_days_only: boolean;
7408
7803
  created_at: string;
7409
- customer_id: string;
7410
- email: string | null;
7804
+ enabled: boolean;
7411
7805
  id: string;
7412
- name: string;
7413
- phone: string | null;
7414
- role: string | null;
7806
+ offset_days: number;
7807
+ pickup_anchor: string;
7808
+ pickup_business_days_only: boolean;
7809
+ pickup_offset_days: number;
7810
+ pickup_time_of_day: string;
7811
+ singleton: boolean;
7812
+ time_of_day: string;
7415
7813
  updated_at: string;
7416
7814
  };
7417
7815
  Insert: {
7816
+ anchor?: string;
7817
+ business_days_only?: boolean;
7418
7818
  created_at?: string;
7419
- customer_id: string;
7420
- email?: string | null;
7819
+ enabled?: boolean;
7421
7820
  id?: string;
7422
- name: string;
7423
- phone?: string | null;
7424
- role?: string | null;
7821
+ offset_days?: number;
7822
+ pickup_anchor?: string;
7823
+ pickup_business_days_only?: boolean;
7824
+ pickup_offset_days?: number;
7825
+ pickup_time_of_day?: string;
7826
+ singleton?: boolean;
7827
+ time_of_day?: string;
7425
7828
  updated_at?: string;
7426
7829
  };
7427
7830
  Update: {
7831
+ anchor?: string;
7832
+ business_days_only?: boolean;
7428
7833
  created_at?: string;
7429
- customer_id?: string;
7430
- email?: string | null;
7834
+ enabled?: boolean;
7431
7835
  id?: string;
7432
- name?: string;
7433
- phone?: string | null;
7434
- role?: string | null;
7836
+ offset_days?: number;
7837
+ pickup_anchor?: string;
7838
+ pickup_business_days_only?: boolean;
7839
+ pickup_offset_days?: number;
7840
+ pickup_time_of_day?: string;
7841
+ singleton?: boolean;
7842
+ time_of_day?: string;
7435
7843
  updated_at?: string;
7436
7844
  };
7437
- Relationships: [{
7438
- foreignKeyName: "itk_contact_persons_customer_id_fkey";
7439
- columns: ["customer_id"];
7440
- isOneToOne: false;
7441
- referencedRelation: "itk_customers";
7442
- referencedColumns: ["id"];
7443
- }];
7845
+ Relationships: [];
7444
7846
  };
7445
- itk_customer_dynamic_values: {
7847
+ invoices: {
7446
7848
  Row: {
7447
7849
  created_at: string;
7448
- customer_id: string;
7449
- field_id: string;
7850
+ created_by: string | null;
7851
+ customer_id: string | null;
7852
+ customer_name: string | null;
7853
+ due_date: string | null;
7450
7854
  id: string;
7451
- updated_at: string;
7855
+ invoice_date: string;
7856
+ invoice_number: string | null;
7857
+ note: string | null;
7858
+ source_number: string | null;
7859
+ source_ref: string | null;
7860
+ source_type: string;
7861
+ status: string;
7862
+ subtotal_cents: number;
7863
+ total_cents: number;
7864
+ updated_at: string;
7865
+ vat_cents: number;
7866
+ vat_rate: number;
7867
+ };
7868
+ Insert: {
7869
+ created_at?: string;
7870
+ created_by?: string | null;
7871
+ customer_id?: string | null;
7872
+ customer_name?: string | null;
7873
+ due_date?: string | null;
7874
+ id?: string;
7875
+ invoice_date?: string;
7876
+ invoice_number?: string | null;
7877
+ note?: string | null;
7878
+ source_number?: string | null;
7879
+ source_ref?: string | null;
7880
+ source_type?: string;
7881
+ status?: string;
7882
+ subtotal_cents?: number;
7883
+ total_cents?: number;
7884
+ updated_at?: string;
7885
+ vat_cents?: number;
7886
+ vat_rate?: number;
7887
+ };
7888
+ Update: {
7889
+ created_at?: string;
7890
+ created_by?: string | null;
7891
+ customer_id?: string | null;
7892
+ customer_name?: string | null;
7893
+ due_date?: string | null;
7894
+ id?: string;
7895
+ invoice_date?: string;
7896
+ invoice_number?: string | null;
7897
+ note?: string | null;
7898
+ source_number?: string | null;
7899
+ source_ref?: string | null;
7900
+ source_type?: string;
7901
+ status?: string;
7902
+ subtotal_cents?: number;
7903
+ total_cents?: number;
7904
+ updated_at?: string;
7905
+ vat_cents?: number;
7906
+ vat_rate?: number;
7907
+ };
7908
+ Relationships: [{
7909
+ foreignKeyName: "invoices_customer_id_fkey";
7910
+ columns: ["customer_id"];
7911
+ isOneToOne: false;
7912
+ referencedRelation: "itk_customers";
7913
+ referencedColumns: ["id"];
7914
+ }];
7915
+ };
7916
+ itk_contact_persons: {
7917
+ Row: {
7918
+ created_at: string;
7919
+ customer_id: string;
7920
+ email: string | null;
7921
+ id: string;
7922
+ name: string;
7923
+ phone: string | null;
7924
+ role: string | null;
7925
+ updated_at: string;
7926
+ };
7927
+ Insert: {
7928
+ created_at?: string;
7929
+ customer_id: string;
7930
+ email?: string | null;
7931
+ id?: string;
7932
+ name: string;
7933
+ phone?: string | null;
7934
+ role?: string | null;
7935
+ updated_at?: string;
7936
+ };
7937
+ Update: {
7938
+ created_at?: string;
7939
+ customer_id?: string;
7940
+ email?: string | null;
7941
+ id?: string;
7942
+ name?: string;
7943
+ phone?: string | null;
7944
+ role?: string | null;
7945
+ updated_at?: string;
7946
+ };
7947
+ Relationships: [{
7948
+ foreignKeyName: "itk_contact_persons_customer_id_fkey";
7949
+ columns: ["customer_id"];
7950
+ isOneToOne: false;
7951
+ referencedRelation: "itk_customers";
7952
+ referencedColumns: ["id"];
7953
+ }];
7954
+ };
7955
+ itk_customer_dynamic_values: {
7956
+ Row: {
7957
+ created_at: string;
7958
+ customer_id: string;
7959
+ field_id: string;
7960
+ id: string;
7961
+ updated_at: string;
7452
7962
  value: string | null;
7453
7963
  };
7454
7964
  Insert: {
@@ -7598,6 +8108,258 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7598
8108
  };
7599
8109
  Relationships: [];
7600
8110
  };
8111
+ itk_offerte_events: {
8112
+ Row: {
8113
+ created_at: string;
8114
+ event_type: string;
8115
+ id: string;
8116
+ metadata: import("./types").Json;
8117
+ offerte_id: string;
8118
+ omschrijving: string | null;
8119
+ user_id: string | null;
8120
+ };
8121
+ Insert: {
8122
+ created_at?: string;
8123
+ event_type: string;
8124
+ id?: string;
8125
+ metadata?: import("./types").Json;
8126
+ offerte_id: string;
8127
+ omschrijving?: string | null;
8128
+ user_id?: string | null;
8129
+ };
8130
+ Update: {
8131
+ created_at?: string;
8132
+ event_type?: string;
8133
+ id?: string;
8134
+ metadata?: import("./types").Json;
8135
+ offerte_id?: string;
8136
+ omschrijving?: string | null;
8137
+ user_id?: string | null;
8138
+ };
8139
+ Relationships: [{
8140
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8141
+ columns: ["offerte_id"];
8142
+ isOneToOne: false;
8143
+ referencedRelation: "itk_offertes";
8144
+ referencedColumns: ["id"];
8145
+ }];
8146
+ };
8147
+ itk_offerte_regels: {
8148
+ Row: {
8149
+ created_at: string;
8150
+ id: string;
8151
+ line_total_cents: number;
8152
+ offerte_id: string;
8153
+ omschrijving: string;
8154
+ package_id: string | null;
8155
+ quantity: number;
8156
+ sort_order: number;
8157
+ source: string;
8158
+ unit_price_cents: number;
8159
+ updated_at: string;
8160
+ };
8161
+ Insert: {
8162
+ created_at?: string;
8163
+ id?: string;
8164
+ line_total_cents?: number;
8165
+ offerte_id: string;
8166
+ omschrijving?: string;
8167
+ package_id?: string | null;
8168
+ quantity?: number;
8169
+ sort_order?: number;
8170
+ source?: string;
8171
+ unit_price_cents?: number;
8172
+ updated_at?: string;
8173
+ };
8174
+ Update: {
8175
+ created_at?: string;
8176
+ id?: string;
8177
+ line_total_cents?: number;
8178
+ offerte_id?: string;
8179
+ omschrijving?: string;
8180
+ package_id?: string | null;
8181
+ quantity?: number;
8182
+ sort_order?: number;
8183
+ source?: string;
8184
+ unit_price_cents?: number;
8185
+ updated_at?: string;
8186
+ };
8187
+ Relationships: [{
8188
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8189
+ columns: ["offerte_id"];
8190
+ isOneToOne: false;
8191
+ referencedRelation: "itk_offertes";
8192
+ referencedColumns: ["id"];
8193
+ }, {
8194
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8195
+ columns: ["package_id"];
8196
+ isOneToOne: false;
8197
+ referencedRelation: "werkbon_packages";
8198
+ referencedColumns: ["id"];
8199
+ }];
8200
+ };
8201
+ itk_offerte_settings: {
8202
+ Row: {
8203
+ auto_convert_binnen_mandaat: boolean;
8204
+ created_at: string;
8205
+ default_geldigheid_dagen: number;
8206
+ default_vat_rate: number;
8207
+ id: string;
8208
+ singleton: boolean;
8209
+ updated_at: string;
8210
+ };
8211
+ Insert: {
8212
+ auto_convert_binnen_mandaat?: boolean;
8213
+ created_at?: string;
8214
+ default_geldigheid_dagen?: number;
8215
+ default_vat_rate?: number;
8216
+ id?: string;
8217
+ singleton?: boolean;
8218
+ updated_at?: string;
8219
+ };
8220
+ Update: {
8221
+ auto_convert_binnen_mandaat?: boolean;
8222
+ created_at?: string;
8223
+ default_geldigheid_dagen?: number;
8224
+ default_vat_rate?: number;
8225
+ id?: string;
8226
+ singleton?: boolean;
8227
+ updated_at?: string;
8228
+ };
8229
+ Relationships: [];
8230
+ };
8231
+ itk_offertes: {
8232
+ Row: {
8233
+ ai_generated: boolean;
8234
+ approved_at: string | null;
8235
+ binnen_mandaat: boolean;
8236
+ contact_id: string | null;
8237
+ converted_at: string | null;
8238
+ created_at: string;
8239
+ created_by: string | null;
8240
+ customer_id: string | null;
8241
+ follow_up_werkbon_id: string | null;
8242
+ id: string;
8243
+ jaar: number;
8244
+ mandaat_restant_cents: number;
8245
+ notities: string | null;
8246
+ offerte_number: string | null;
8247
+ omschrijving: string;
8248
+ rejected_at: string | null;
8249
+ sent_at: string | null;
8250
+ source_number: string | null;
8251
+ source_ref: string | null;
8252
+ source_type: string;
8253
+ status: string;
8254
+ subtotal_cents: number;
8255
+ total_cents: number;
8256
+ updated_at: string;
8257
+ valid_until: string | null;
8258
+ vat_cents: number;
8259
+ vat_rate: number;
8260
+ viewed_at: string | null;
8261
+ volgnummer: number | null;
8262
+ werkbon_id: string | null;
8263
+ work_location_id: string | null;
8264
+ };
8265
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
8332
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8333
+ columns: ["contact_id"];
8334
+ isOneToOne: false;
8335
+ referencedRelation: "itk_contact_persons";
8336
+ referencedColumns: ["id"];
8337
+ }, {
8338
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8339
+ columns: ["customer_id"];
8340
+ isOneToOne: false;
8341
+ referencedRelation: "itk_customers";
8342
+ referencedColumns: ["id"];
8343
+ }, {
8344
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8345
+ columns: ["follow_up_werkbon_id"];
8346
+ isOneToOne: false;
8347
+ referencedRelation: "werkbonnen";
8348
+ referencedColumns: ["id"];
8349
+ }, {
8350
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8351
+ columns: ["werkbon_id"];
8352
+ isOneToOne: false;
8353
+ referencedRelation: "werkbonnen";
8354
+ referencedColumns: ["id"];
8355
+ }, {
8356
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8357
+ columns: ["work_location_id"];
8358
+ isOneToOne: false;
8359
+ referencedRelation: "itk_work_locations";
8360
+ referencedColumns: ["id"];
8361
+ }];
8362
+ };
7601
8363
  itk_work_locations: {
7602
8364
  Row: {
7603
8365
  city: string | null;
@@ -7715,7 +8477,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7715
8477
  start_date: string;
7716
8478
  start_time: string | null;
7717
8479
  status: string;
7718
- tenant_id: string;
7719
8480
  updated_at: string;
7720
8481
  user_id: string;
7721
8482
  };
@@ -7733,7 +8494,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7733
8494
  start_date: string;
7734
8495
  start_time?: string | null;
7735
8496
  status?: string;
7736
- tenant_id?: string;
7737
8497
  updated_at?: string;
7738
8498
  user_id: string;
7739
8499
  };
@@ -7751,7 +8511,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7751
8511
  start_date?: string;
7752
8512
  start_time?: string | null;
7753
8513
  status?: string;
7754
- tenant_id?: string;
7755
8514
  updated_at?: string;
7756
8515
  user_id?: string;
7757
8516
  };
@@ -7759,13 +8518,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7759
8518
  foreignKeyName: "leave_requests_monteur_id_fkey";
7760
8519
  columns: ["monteur_id"];
7761
8520
  isOneToOne: false;
7762
- referencedRelation: "monteurs";
8521
+ referencedRelation: "profiles";
7763
8522
  referencedColumns: ["id"];
7764
8523
  }, {
7765
8524
  foreignKeyName: "leave_requests_user_id_fkey";
7766
8525
  columns: ["user_id"];
7767
8526
  isOneToOne: false;
7768
- referencedRelation: "monteurs";
8527
+ referencedRelation: "profiles";
7769
8528
  referencedColumns: ["id"];
7770
8529
  }];
7771
8530
  };
@@ -8501,6 +9260,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8501
9260
  id: string;
8502
9261
  last_error: string | null;
8503
9262
  last_error_at: string | null;
9263
+ last_error_code: string | null;
9264
+ last_gateway_status: number | null;
9265
+ last_queued_at: string | null;
9266
+ last_response: import("./types").Json | null;
8504
9267
  last_sent_hash: string | null;
8505
9268
  locked_by: string | null;
8506
9269
  locked_until: string | null;
@@ -8521,6 +9284,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8521
9284
  id?: string;
8522
9285
  last_error?: string | null;
8523
9286
  last_error_at?: string | null;
9287
+ last_error_code?: string | null;
9288
+ last_gateway_status?: number | null;
9289
+ last_queued_at?: string | null;
9290
+ last_response?: import("./types").Json | null;
8524
9291
  last_sent_hash?: string | null;
8525
9292
  locked_by?: string | null;
8526
9293
  locked_until?: string | null;
@@ -8541,6 +9308,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8541
9308
  id?: string;
8542
9309
  last_error?: string | null;
8543
9310
  last_error_at?: string | null;
9311
+ last_error_code?: string | null;
9312
+ last_gateway_status?: number | null;
9313
+ last_queued_at?: string | null;
9314
+ last_response?: import("./types").Json | null;
8544
9315
  last_sent_hash?: string | null;
8545
9316
  locked_by?: string | null;
8546
9317
  locked_until?: string | null;
@@ -8633,6 +9404,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8633
9404
  };
8634
9405
  Relationships: [];
8635
9406
  };
9407
+ logistics_plan_queue: {
9408
+ Row: {
9409
+ attempts: number;
9410
+ claimed_at: string | null;
9411
+ enqueued_at: string;
9412
+ error: string | null;
9413
+ id: string;
9414
+ next_attempt_at: string;
9415
+ order_id: string;
9416
+ reason: string;
9417
+ status: string;
9418
+ updated_at: string;
9419
+ };
9420
+ Insert: {
9421
+ attempts?: number;
9422
+ claimed_at?: string | null;
9423
+ enqueued_at?: string;
9424
+ error?: string | null;
9425
+ id?: string;
9426
+ next_attempt_at?: string;
9427
+ order_id: string;
9428
+ reason?: string;
9429
+ status?: string;
9430
+ updated_at?: string;
9431
+ };
9432
+ Update: {
9433
+ attempts?: number;
9434
+ claimed_at?: string | null;
9435
+ enqueued_at?: string;
9436
+ error?: string | null;
9437
+ id?: string;
9438
+ next_attempt_at?: string;
9439
+ order_id?: string;
9440
+ reason?: string;
9441
+ status?: string;
9442
+ updated_at?: string;
9443
+ };
9444
+ Relationships: [];
9445
+ };
8636
9446
  logistics_plan_runs: {
8637
9447
  Row: {
8638
9448
  created_at: string;
@@ -8708,6 +9518,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8708
9518
  referencedColumns: ["id"];
8709
9519
  }];
8710
9520
  };
9521
+ logistics_plan_settings: {
9522
+ Row: {
9523
+ key: string;
9524
+ updated_at: string;
9525
+ value: string;
9526
+ };
9527
+ Insert: {
9528
+ key: string;
9529
+ updated_at?: string;
9530
+ value: string;
9531
+ };
9532
+ Update: {
9533
+ key?: string;
9534
+ updated_at?: string;
9535
+ value?: string;
9536
+ };
9537
+ Relationships: [];
9538
+ };
8711
9539
  logistics_rebuffer_state: {
8712
9540
  Row: {
8713
9541
  created_at: string;
@@ -9776,90 +10604,447 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9776
10604
  };
9777
10605
  Relationships: [];
9778
10606
  };
9779
- manufacture_product_components: {
10607
+ manufacture_product_components: {
10608
+ Row: {
10609
+ component_type: string;
10610
+ created_at: string;
10611
+ id: string;
10612
+ manufacture_product_id: string;
10613
+ product_group_id: string | null;
10614
+ quantity: number;
10615
+ trade_item_id: string | null;
10616
+ unit: string;
10617
+ };
10618
+ Insert: {
10619
+ component_type: string;
10620
+ created_at?: string;
10621
+ id?: string;
10622
+ manufacture_product_id: string;
10623
+ product_group_id?: string | null;
10624
+ quantity?: number;
10625
+ trade_item_id?: string | null;
10626
+ unit?: string;
10627
+ };
10628
+ Update: {
10629
+ component_type?: string;
10630
+ created_at?: string;
10631
+ id?: string;
10632
+ manufacture_product_id?: string;
10633
+ product_group_id?: string | null;
10634
+ quantity?: number;
10635
+ trade_item_id?: string | null;
10636
+ unit?: string;
10637
+ };
10638
+ Relationships: [{
10639
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
10640
+ columns: ["manufacture_product_id"];
10641
+ isOneToOne: false;
10642
+ referencedRelation: "manufacture_product_possible_stock_view";
10643
+ referencedColumns: ["manufacture_product_id"];
10644
+ }, {
10645
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
10646
+ columns: ["manufacture_product_id"];
10647
+ isOneToOne: false;
10648
+ referencedRelation: "manufacture_products";
10649
+ referencedColumns: ["id"];
10650
+ }, {
10651
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
10652
+ columns: ["product_group_id"];
10653
+ isOneToOne: false;
10654
+ referencedRelation: "product_groups";
10655
+ referencedColumns: ["id"];
10656
+ }];
10657
+ };
10658
+ manufacture_products: {
10659
+ Row: {
10660
+ created_at: string;
10661
+ description: string | null;
10662
+ id: string;
10663
+ is_active: boolean;
10664
+ name: string;
10665
+ produced_stock: number;
10666
+ product_code: string;
10667
+ tenant_id: string;
10668
+ updated_at: string;
10669
+ };
10670
+ Insert: {
10671
+ created_at?: string;
10672
+ description?: string | null;
10673
+ id?: string;
10674
+ is_active?: boolean;
10675
+ name: string;
10676
+ produced_stock?: number;
10677
+ product_code: string;
10678
+ tenant_id: string;
10679
+ updated_at?: string;
10680
+ };
10681
+ Update: {
10682
+ created_at?: string;
10683
+ description?: string | null;
10684
+ id?: string;
10685
+ is_active?: boolean;
10686
+ name?: string;
10687
+ produced_stock?: number;
10688
+ product_code?: string;
10689
+ tenant_id?: string;
10690
+ updated_at?: string;
10691
+ };
10692
+ Relationships: [];
10693
+ };
10694
+ maps_addresses: {
10695
+ Row: {
10696
+ address_hash: string;
10697
+ created_at: string;
10698
+ error_reason: string | null;
10699
+ formatted_address: string | null;
10700
+ id: string;
10701
+ lat: number | null;
10702
+ lng: number | null;
10703
+ place_id: string | null;
10704
+ raw_address: string;
10705
+ resolved_at: string | null;
10706
+ status: string;
10707
+ updated_at: string;
10708
+ };
10709
+ Insert: {
10710
+ address_hash: string;
10711
+ created_at?: string;
10712
+ error_reason?: string | null;
10713
+ formatted_address?: string | null;
10714
+ id?: string;
10715
+ lat?: number | null;
10716
+ lng?: number | null;
10717
+ place_id?: string | null;
10718
+ raw_address: string;
10719
+ resolved_at?: string | null;
10720
+ status?: string;
10721
+ updated_at?: string;
10722
+ };
10723
+ Update: {
10724
+ address_hash?: string;
10725
+ created_at?: string;
10726
+ error_reason?: string | null;
10727
+ formatted_address?: string | null;
10728
+ id?: string;
10729
+ lat?: number | null;
10730
+ lng?: number | null;
10731
+ place_id?: string | null;
10732
+ raw_address?: string;
10733
+ resolved_at?: string | null;
10734
+ status?: string;
10735
+ updated_at?: string;
10736
+ };
10737
+ Relationships: [];
10738
+ };
10739
+ maps_request_queue: {
10740
+ Row: {
10741
+ attempts: number;
10742
+ created_at: string;
10743
+ destination_hash: string | null;
10744
+ id: string;
10745
+ kind: string;
10746
+ last_error: string | null;
10747
+ mode: string;
10748
+ origin_hash: string | null;
10749
+ processed_at: string | null;
10750
+ raw_destination: string | null;
10751
+ raw_origin: string | null;
10752
+ requested_by: string | null;
10753
+ status: string;
10754
+ updated_at: string;
10755
+ };
10756
+ Insert: {
10757
+ attempts?: number;
10758
+ created_at?: string;
10759
+ destination_hash?: string | null;
10760
+ id?: string;
10761
+ kind: string;
10762
+ last_error?: string | null;
10763
+ mode?: string;
10764
+ origin_hash?: string | null;
10765
+ processed_at?: string | null;
10766
+ raw_destination?: string | null;
10767
+ raw_origin?: string | null;
10768
+ requested_by?: string | null;
10769
+ status?: string;
10770
+ updated_at?: string;
10771
+ };
10772
+ Update: {
10773
+ attempts?: number;
10774
+ created_at?: string;
10775
+ destination_hash?: string | null;
10776
+ id?: string;
10777
+ kind?: string;
10778
+ last_error?: string | null;
10779
+ mode?: string;
10780
+ origin_hash?: string | null;
10781
+ processed_at?: string | null;
10782
+ raw_destination?: string | null;
10783
+ raw_origin?: string | null;
10784
+ requested_by?: string | null;
10785
+ status?: string;
10786
+ updated_at?: string;
10787
+ };
10788
+ Relationships: [];
10789
+ };
10790
+ maps_settings: {
10791
+ Row: {
10792
+ allow_estimate_fallback: boolean;
10793
+ cache_ttl_days: number;
10794
+ created_at: string;
10795
+ daily_call_limit: number;
10796
+ id: string;
10797
+ last_error: string | null;
10798
+ last_error_at: string | null;
10799
+ last_success_at: string | null;
10800
+ updated_at: string;
10801
+ };
10802
+ Insert: {
10803
+ allow_estimate_fallback?: boolean;
10804
+ cache_ttl_days?: number;
10805
+ created_at?: string;
10806
+ daily_call_limit?: number;
10807
+ id?: string;
10808
+ last_error?: string | null;
10809
+ last_error_at?: string | null;
10810
+ last_success_at?: string | null;
10811
+ updated_at?: string;
10812
+ };
10813
+ Update: {
10814
+ allow_estimate_fallback?: boolean;
10815
+ cache_ttl_days?: number;
10816
+ created_at?: string;
10817
+ daily_call_limit?: number;
10818
+ id?: string;
10819
+ last_error?: string | null;
10820
+ last_error_at?: string | null;
10821
+ last_success_at?: string | null;
10822
+ updated_at?: string;
10823
+ };
10824
+ Relationships: [];
10825
+ };
10826
+ maps_travel_times: {
10827
+ Row: {
10828
+ created_at: string;
10829
+ destination_id: string;
10830
+ distance_m: number | null;
10831
+ duration_sec: number;
10832
+ expires_at: string;
10833
+ id: string;
10834
+ mode: string;
10835
+ origin_id: string;
10836
+ source: string;
10837
+ updated_at: string;
10838
+ };
10839
+ Insert: {
10840
+ created_at?: string;
10841
+ destination_id: string;
10842
+ distance_m?: number | null;
10843
+ duration_sec: number;
10844
+ expires_at?: string;
10845
+ id?: string;
10846
+ mode?: string;
10847
+ origin_id: string;
10848
+ source?: string;
10849
+ updated_at?: string;
10850
+ };
10851
+ Update: {
10852
+ created_at?: string;
10853
+ destination_id?: string;
10854
+ distance_m?: number | null;
10855
+ duration_sec?: number;
10856
+ expires_at?: string;
10857
+ id?: string;
10858
+ mode?: string;
10859
+ origin_id?: string;
10860
+ source?: string;
10861
+ updated_at?: string;
10862
+ };
10863
+ Relationships: [{
10864
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10865
+ columns: ["destination_id"];
10866
+ isOneToOne: false;
10867
+ referencedRelation: "maps_addresses";
10868
+ referencedColumns: ["id"];
10869
+ }, {
10870
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10871
+ columns: ["origin_id"];
10872
+ isOneToOne: false;
10873
+ referencedRelation: "maps_addresses";
10874
+ referencedColumns: ["id"];
10875
+ }];
10876
+ };
10877
+ maps_usage_log: {
10878
+ Row: {
10879
+ cache_hits: number;
10880
+ call_type: string;
10881
+ created_at: string;
10882
+ day: string;
10883
+ detail: string | null;
10884
+ elements: number;
10885
+ id: string;
10886
+ outcome: string;
10887
+ };
10888
+ Insert: {
10889
+ cache_hits?: number;
10890
+ call_type: string;
10891
+ created_at?: string;
10892
+ day?: string;
10893
+ detail?: string | null;
10894
+ elements?: number;
10895
+ id?: string;
10896
+ outcome?: string;
10897
+ };
10898
+ Update: {
10899
+ cache_hits?: number;
10900
+ call_type?: string;
10901
+ created_at?: string;
10902
+ day?: string;
10903
+ detail?: string | null;
10904
+ elements?: number;
10905
+ id?: string;
10906
+ outcome?: string;
10907
+ };
10908
+ Relationships: [];
10909
+ };
10910
+ material_usage: {
10911
+ Row: {
10912
+ created_at: string;
10913
+ id: string;
10914
+ material_name: string;
10915
+ monteur_id: string | null;
10916
+ price_at_time: number;
10917
+ quantity_used: number;
10918
+ updated_at: string;
10919
+ van_inventory_id: string | null;
10920
+ work_order_id: string;
10921
+ };
10922
+ Insert: {
10923
+ created_at?: string;
10924
+ id?: string;
10925
+ material_name: string;
10926
+ monteur_id?: string | null;
10927
+ price_at_time?: number;
10928
+ quantity_used?: number;
10929
+ updated_at?: string;
10930
+ van_inventory_id?: string | null;
10931
+ work_order_id: string;
10932
+ };
10933
+ Update: {
10934
+ created_at?: string;
10935
+ id?: string;
10936
+ material_name?: string;
10937
+ monteur_id?: string | null;
10938
+ price_at_time?: number;
10939
+ quantity_used?: number;
10940
+ updated_at?: string;
10941
+ van_inventory_id?: string | null;
10942
+ work_order_id?: string;
10943
+ };
10944
+ Relationships: [{
10945
+ foreignKeyName: "material_usage_monteur_id_fkey";
10946
+ columns: ["monteur_id"];
10947
+ isOneToOne: false;
10948
+ referencedRelation: "profiles";
10949
+ referencedColumns: ["id"];
10950
+ }, {
10951
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10952
+ columns: ["van_inventory_id"];
10953
+ isOneToOne: false;
10954
+ referencedRelation: "van_inventories";
10955
+ referencedColumns: ["id"];
10956
+ }, {
10957
+ foreignKeyName: "material_usage_work_order_id_fkey";
10958
+ columns: ["work_order_id"];
10959
+ isOneToOne: false;
10960
+ referencedRelation: "work_orders";
10961
+ referencedColumns: ["id"];
10962
+ }];
10963
+ };
10964
+ medewerker_details: {
9780
10965
  Row: {
9781
- component_type: string;
10966
+ color: string | null;
9782
10967
  created_at: string;
10968
+ hours_fri: number | null;
10969
+ hours_mon: number | null;
10970
+ hours_thu: number | null;
10971
+ hours_tue: number | null;
10972
+ hours_wed: number | null;
9783
10973
  id: string;
9784
- manufacture_product_id: string;
9785
- product_group_id: string | null;
9786
- quantity: number;
9787
- trade_item_id: string | null;
9788
- unit: string;
10974
+ is_active: boolean;
10975
+ leave_balance_hours: number;
10976
+ persnr: string | null;
10977
+ phone: string | null;
10978
+ profile_id: string;
10979
+ updated_at: string;
9789
10980
  };
9790
10981
  Insert: {
9791
- component_type: string;
10982
+ color?: string | null;
9792
10983
  created_at?: string;
10984
+ hours_fri?: number | null;
10985
+ hours_mon?: number | null;
10986
+ hours_thu?: number | null;
10987
+ hours_tue?: number | null;
10988
+ hours_wed?: number | null;
9793
10989
  id?: string;
9794
- manufacture_product_id: string;
9795
- product_group_id?: string | null;
9796
- quantity?: number;
9797
- trade_item_id?: string | null;
9798
- unit?: string;
10990
+ is_active?: boolean;
10991
+ leave_balance_hours?: number;
10992
+ persnr?: string | null;
10993
+ phone?: string | null;
10994
+ profile_id: string;
10995
+ updated_at?: string;
9799
10996
  };
9800
10997
  Update: {
9801
- component_type?: string;
10998
+ color?: string | null;
9802
10999
  created_at?: string;
11000
+ hours_fri?: number | null;
11001
+ hours_mon?: number | null;
11002
+ hours_thu?: number | null;
11003
+ hours_tue?: number | null;
11004
+ hours_wed?: number | null;
9803
11005
  id?: string;
9804
- manufacture_product_id?: string;
9805
- product_group_id?: string | null;
9806
- quantity?: number;
9807
- trade_item_id?: string | null;
9808
- unit?: string;
11006
+ is_active?: boolean;
11007
+ leave_balance_hours?: number;
11008
+ persnr?: string | null;
11009
+ phone?: string | null;
11010
+ profile_id?: string;
11011
+ updated_at?: string;
9809
11012
  };
9810
11013
  Relationships: [{
9811
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
9812
- columns: ["manufacture_product_id"];
9813
- isOneToOne: false;
9814
- referencedRelation: "manufacture_product_possible_stock_view";
9815
- referencedColumns: ["manufacture_product_id"];
9816
- }, {
9817
- foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
9818
- columns: ["manufacture_product_id"];
9819
- isOneToOne: false;
9820
- referencedRelation: "manufacture_products";
9821
- referencedColumns: ["id"];
9822
- }, {
9823
- foreignKeyName: "manufacture_product_components_product_group_id_fkey";
9824
- columns: ["product_group_id"];
9825
- isOneToOne: false;
9826
- referencedRelation: "product_groups";
11014
+ foreignKeyName: "medewerker_details_profile_id_fkey";
11015
+ columns: ["profile_id"];
11016
+ isOneToOne: true;
11017
+ referencedRelation: "profiles";
9827
11018
  referencedColumns: ["id"];
9828
11019
  }];
9829
11020
  };
9830
- manufacture_products: {
11021
+ module_features: {
9831
11022
  Row: {
9832
11023
  created_at: string;
9833
- description: string | null;
11024
+ feature_id: string;
9834
11025
  id: string;
9835
11026
  is_active: boolean;
11027
+ last_seen_at: string;
11028
+ module_id: string;
9836
11029
  name: string;
9837
- produced_stock: number;
9838
- product_code: string;
9839
- tenant_id: string;
9840
- updated_at: string;
9841
11030
  };
9842
11031
  Insert: {
9843
11032
  created_at?: string;
9844
- description?: string | null;
11033
+ feature_id: string;
9845
11034
  id?: string;
9846
11035
  is_active?: boolean;
11036
+ last_seen_at?: string;
11037
+ module_id: string;
9847
11038
  name: string;
9848
- produced_stock?: number;
9849
- product_code: string;
9850
- tenant_id: string;
9851
- updated_at?: string;
9852
11039
  };
9853
11040
  Update: {
9854
11041
  created_at?: string;
9855
- description?: string | null;
11042
+ feature_id?: string;
9856
11043
  id?: string;
9857
11044
  is_active?: boolean;
11045
+ last_seen_at?: string;
11046
+ module_id?: string;
9858
11047
  name?: string;
9859
- produced_stock?: number;
9860
- product_code?: string;
9861
- tenant_id?: string;
9862
- updated_at?: string;
9863
11048
  };
9864
11049
  Relationships: [];
9865
11050
  };
@@ -9893,8 +11078,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9893
11078
  module_registry: {
9894
11079
  Row: {
9895
11080
  created_at: string;
11081
+ enforce: boolean;
9896
11082
  is_active: boolean;
9897
11083
  last_seen_at: string;
11084
+ missing_count: number;
9898
11085
  module_id: string;
9899
11086
  name: string;
9900
11087
  shell_id: string | null;
@@ -9902,8 +11089,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9902
11089
  };
9903
11090
  Insert: {
9904
11091
  created_at?: string;
11092
+ enforce?: boolean;
9905
11093
  is_active?: boolean;
9906
11094
  last_seen_at?: string;
11095
+ missing_count?: number;
9907
11096
  module_id: string;
9908
11097
  name: string;
9909
11098
  shell_id?: string | null;
@@ -9911,8 +11100,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9911
11100
  };
9912
11101
  Update: {
9913
11102
  created_at?: string;
11103
+ enforce?: boolean;
9914
11104
  is_active?: boolean;
9915
11105
  last_seen_at?: string;
11106
+ missing_count?: number;
9916
11107
  module_id?: string;
9917
11108
  name?: string;
9918
11109
  shell_id?: string | null;
@@ -9971,63 +11162,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9971
11162
  };
9972
11163
  Relationships: [];
9973
11164
  };
9974
- monteurs: {
9975
- Row: {
9976
- avatar_url: string | null;
9977
- color: string | null;
9978
- created_at: string;
9979
- email: string | null;
9980
- id: string;
9981
- is_active: boolean;
9982
- leave_balance_hours: number;
9983
- name: string;
9984
- persnr: number | null;
9985
- phone: string | null;
9986
- role: string;
9987
- tenant_id: string;
9988
- updated_at: string;
9989
- user_id: string | null;
9990
- };
9991
- Insert: {
9992
- avatar_url?: string | null;
9993
- color?: string | null;
9994
- created_at?: string;
9995
- email?: string | null;
9996
- id?: string;
9997
- is_active?: boolean;
9998
- leave_balance_hours?: number;
9999
- name: string;
10000
- persnr?: number | null;
10001
- phone?: string | null;
10002
- role?: string;
10003
- tenant_id: string;
10004
- updated_at?: string;
10005
- user_id?: string | null;
10006
- };
10007
- Update: {
10008
- avatar_url?: string | null;
10009
- color?: string | null;
10010
- created_at?: string;
10011
- email?: string | null;
10012
- id?: string;
10013
- is_active?: boolean;
10014
- leave_balance_hours?: number;
10015
- name?: string;
10016
- persnr?: number | null;
10017
- phone?: string | null;
10018
- role?: string;
10019
- tenant_id?: string;
10020
- updated_at?: string;
10021
- user_id?: string | null;
10022
- };
10023
- Relationships: [{
10024
- foreignKeyName: "monteurs_tenant_id_fkey";
10025
- columns: ["tenant_id"];
10026
- isOneToOne: false;
10027
- referencedRelation: "tenants";
10028
- referencedColumns: ["id"];
10029
- }];
10030
- };
10031
11165
  nmbrs_component_mapping: {
10032
11166
  Row: {
10033
11167
  created_at: string;
@@ -10098,13 +11232,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10098
11232
  nmbrs_employee_number?: string;
10099
11233
  updated_at?: string;
10100
11234
  };
10101
- Relationships: [{
10102
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10103
- columns: ["monteur_id"];
10104
- isOneToOne: true;
10105
- referencedRelation: "monteurs";
10106
- referencedColumns: ["id"];
10107
- }];
11235
+ Relationships: [];
10108
11236
  };
10109
11237
  nmbrs_export_lines: {
10110
11238
  Row: {
@@ -10153,12 +11281,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10153
11281
  wage_code?: string;
10154
11282
  };
10155
11283
  Relationships: [{
10156
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10157
- columns: ["monteur_id"];
10158
- isOneToOne: false;
10159
- referencedRelation: "monteurs";
10160
- referencedColumns: ["id"];
10161
- }, {
10162
11284
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10163
11285
  columns: ["run_id"];
10164
11286
  isOneToOne: false;
@@ -10979,6 +12101,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10979
12101
  };
10980
12102
  Relationships: [];
10981
12103
  };
12104
+ order_invoice_links: {
12105
+ Row: {
12106
+ administration_code: string | null;
12107
+ attempts: number;
12108
+ created_at: string;
12109
+ error_message: string | null;
12110
+ id: string;
12111
+ invoice_number: string | null;
12112
+ next_attempt_at: string;
12113
+ order_id: string;
12114
+ processed_at: string | null;
12115
+ status: string;
12116
+ updated_at: string;
12117
+ };
12118
+ Insert: {
12119
+ administration_code?: string | null;
12120
+ attempts?: number;
12121
+ created_at?: string;
12122
+ error_message?: string | null;
12123
+ id?: string;
12124
+ invoice_number?: string | null;
12125
+ next_attempt_at?: string;
12126
+ order_id: string;
12127
+ processed_at?: string | null;
12128
+ status?: string;
12129
+ updated_at?: string;
12130
+ };
12131
+ Update: {
12132
+ administration_code?: string | null;
12133
+ attempts?: number;
12134
+ created_at?: string;
12135
+ error_message?: string | null;
12136
+ id?: string;
12137
+ invoice_number?: string | null;
12138
+ next_attempt_at?: string;
12139
+ order_id?: string;
12140
+ processed_at?: string | null;
12141
+ status?: string;
12142
+ updated_at?: string;
12143
+ };
12144
+ Relationships: [];
12145
+ };
10982
12146
  order_items: {
10983
12147
  Row: {
10984
12148
  crates_per_layer: number | null;
@@ -11153,6 +12317,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11153
12317
  orders: {
11154
12318
  Row: {
11155
12319
  buffer_id: string | null;
12320
+ cancel_reason: string | null;
12321
+ cancelled_at: string | null;
11156
12322
  created_at: string;
11157
12323
  custom_fields: import("./types").Json;
11158
12324
  customer_id: string | null;
@@ -11161,6 +12327,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11161
12327
  delivery_date: string | null;
11162
12328
  floriday_sales_order_id: string | null;
11163
12329
  id: string;
12330
+ invoice_due_at: string | null;
11164
12331
  is_reservation: boolean;
11165
12332
  notes: string | null;
11166
12333
  order_date: string;
@@ -11174,6 +12341,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11174
12341
  };
11175
12342
  Insert: {
11176
12343
  buffer_id?: string | null;
12344
+ cancel_reason?: string | null;
12345
+ cancelled_at?: string | null;
11177
12346
  created_at?: string;
11178
12347
  custom_fields?: import("./types").Json;
11179
12348
  customer_id?: string | null;
@@ -11182,6 +12351,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11182
12351
  delivery_date?: string | null;
11183
12352
  floriday_sales_order_id?: string | null;
11184
12353
  id?: string;
12354
+ invoice_due_at?: string | null;
11185
12355
  is_reservation?: boolean;
11186
12356
  notes?: string | null;
11187
12357
  order_date?: string;
@@ -11195,6 +12365,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11195
12365
  };
11196
12366
  Update: {
11197
12367
  buffer_id?: string | null;
12368
+ cancel_reason?: string | null;
12369
+ cancelled_at?: string | null;
11198
12370
  created_at?: string;
11199
12371
  custom_fields?: import("./types").Json;
11200
12372
  customer_id?: string | null;
@@ -11203,6 +12375,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11203
12375
  delivery_date?: string | null;
11204
12376
  floriday_sales_order_id?: string | null;
11205
12377
  id?: string;
12378
+ invoice_due_at?: string | null;
11206
12379
  is_reservation?: boolean;
11207
12380
  notes?: string | null;
11208
12381
  order_date?: string;
@@ -12122,6 +13295,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12122
13295
  referencedColumns: ["id"];
12123
13296
  }];
12124
13297
  };
13298
+ pick_sync_state: {
13299
+ Row: {
13300
+ id: boolean;
13301
+ last_cleanup_at: string | null;
13302
+ last_sync_at: string | null;
13303
+ updated_at: string;
13304
+ };
13305
+ Insert: {
13306
+ id?: boolean;
13307
+ last_cleanup_at?: string | null;
13308
+ last_sync_at?: string | null;
13309
+ updated_at?: string;
13310
+ };
13311
+ Update: {
13312
+ id?: boolean;
13313
+ last_cleanup_at?: string | null;
13314
+ last_sync_at?: string | null;
13315
+ updated_at?: string;
13316
+ };
13317
+ Relationships: [];
13318
+ };
12125
13319
  pick_task_document_types: {
12126
13320
  Row: {
12127
13321
  created_at: string;
@@ -12404,6 +13598,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12404
13598
  gebruiker_id: string | null;
12405
13599
  gebruiker_naam: string;
12406
13600
  gestart_op: string | null;
13601
+ herkomst: string | null;
12407
13602
  id: string;
12408
13603
  idempotentie_sleutel: string | null;
12409
13604
  is_herprint: boolean;
@@ -12433,6 +13628,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12433
13628
  gebruiker_id?: string | null;
12434
13629
  gebruiker_naam?: string;
12435
13630
  gestart_op?: string | null;
13631
+ herkomst?: string | null;
12436
13632
  id?: string;
12437
13633
  idempotentie_sleutel?: string | null;
12438
13634
  is_herprint?: boolean;
@@ -12462,6 +13658,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12462
13658
  gebruiker_id?: string | null;
12463
13659
  gebruiker_naam?: string;
12464
13660
  gestart_op?: string | null;
13661
+ herkomst?: string | null;
12465
13662
  id?: string;
12466
13663
  idempotentie_sleutel?: string | null;
12467
13664
  is_herprint?: boolean;
@@ -12477,29 +13674,122 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12477
13674
  render_html?: string | null;
12478
13675
  status?: Database["public"]["Enums"]["print_job_status"];
12479
13676
  updated_at?: string;
12480
- volgende_poging?: string | null;
12481
- voltooid_op?: string | null;
13677
+ volgende_poging?: string | null;
13678
+ voltooid_op?: string | null;
13679
+ };
13680
+ Relationships: [{
13681
+ foreignKeyName: "print_jobs_agent_id_fkey";
13682
+ columns: ["agent_id"];
13683
+ isOneToOne: false;
13684
+ referencedRelation: "print_agents";
13685
+ referencedColumns: ["id"];
13686
+ }, {
13687
+ foreignKeyName: "print_jobs_layout_id_fkey";
13688
+ columns: ["layout_id"];
13689
+ isOneToOne: false;
13690
+ referencedRelation: "document_layouts";
13691
+ referencedColumns: ["id"];
13692
+ }, {
13693
+ foreignKeyName: "print_jobs_printer_id_fkey";
13694
+ columns: ["printer_id"];
13695
+ isOneToOne: false;
13696
+ referencedRelation: "printers";
13697
+ referencedColumns: ["id"];
13698
+ }];
13699
+ };
13700
+ print_plek_computers: {
13701
+ Row: {
13702
+ computer_naam: string;
13703
+ created_at: string;
13704
+ id: string;
13705
+ print_plek_id: string;
13706
+ updated_at: string;
13707
+ };
13708
+ Insert: {
13709
+ computer_naam: string;
13710
+ created_at?: string;
13711
+ id?: string;
13712
+ print_plek_id: string;
13713
+ updated_at?: string;
13714
+ };
13715
+ Update: {
13716
+ computer_naam?: string;
13717
+ created_at?: string;
13718
+ id?: string;
13719
+ print_plek_id?: string;
13720
+ updated_at?: string;
13721
+ };
13722
+ Relationships: [{
13723
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13724
+ columns: ["print_plek_id"];
13725
+ isOneToOne: false;
13726
+ referencedRelation: "print_plekken";
13727
+ referencedColumns: ["id"];
13728
+ }];
13729
+ };
13730
+ print_plek_koppelingen: {
13731
+ Row: {
13732
+ bron: string;
13733
+ bron_id: string;
13734
+ created_at: string;
13735
+ id: string;
13736
+ label: string | null;
13737
+ print_plek_id: string;
13738
+ updated_at: string;
13739
+ };
13740
+ Insert: {
13741
+ bron: string;
13742
+ bron_id: string;
13743
+ created_at?: string;
13744
+ id?: string;
13745
+ label?: string | null;
13746
+ print_plek_id: string;
13747
+ updated_at?: string;
13748
+ };
13749
+ Update: {
13750
+ bron?: string;
13751
+ bron_id?: string;
13752
+ created_at?: string;
13753
+ id?: string;
13754
+ label?: string | null;
13755
+ print_plek_id?: string;
13756
+ updated_at?: string;
12482
13757
  };
12483
13758
  Relationships: [{
12484
- foreignKeyName: "print_jobs_agent_id_fkey";
12485
- columns: ["agent_id"];
12486
- isOneToOne: false;
12487
- referencedRelation: "print_agents";
12488
- referencedColumns: ["id"];
12489
- }, {
12490
- foreignKeyName: "print_jobs_layout_id_fkey";
12491
- columns: ["layout_id"];
12492
- isOneToOne: false;
12493
- referencedRelation: "document_layouts";
12494
- referencedColumns: ["id"];
12495
- }, {
12496
- foreignKeyName: "print_jobs_printer_id_fkey";
12497
- columns: ["printer_id"];
13759
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13760
+ columns: ["print_plek_id"];
12498
13761
  isOneToOne: false;
12499
- referencedRelation: "printers";
13762
+ referencedRelation: "print_plekken";
12500
13763
  referencedColumns: ["id"];
12501
13764
  }];
12502
13765
  };
13766
+ print_plekken: {
13767
+ Row: {
13768
+ actief: boolean;
13769
+ created_at: string;
13770
+ id: string;
13771
+ naam: string;
13772
+ omschrijving: string | null;
13773
+ updated_at: string;
13774
+ };
13775
+ Insert: {
13776
+ actief?: boolean;
13777
+ created_at?: string;
13778
+ id?: string;
13779
+ naam: string;
13780
+ omschrijving?: string | null;
13781
+ updated_at?: string;
13782
+ };
13783
+ Update: {
13784
+ actief?: boolean;
13785
+ created_at?: string;
13786
+ id?: string;
13787
+ naam?: string;
13788
+ omschrijving?: string | null;
13789
+ updated_at?: string;
13790
+ };
13791
+ Relationships: [];
13792
+ };
12503
13793
  print_queue_runners: {
12504
13794
  Row: {
12505
13795
  actief: boolean;
@@ -12507,6 +13797,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12507
13797
  created_at: string;
12508
13798
  id: string;
12509
13799
  laatst_gezien: string;
13800
+ laatste_fout: string | null;
13801
+ laatste_request_id: number | null;
13802
+ mislukte_posts: number;
12510
13803
  tick_sleutel: string;
12511
13804
  updated_at: string;
12512
13805
  };
@@ -12516,6 +13809,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12516
13809
  created_at?: string;
12517
13810
  id?: string;
12518
13811
  laatst_gezien?: string;
13812
+ laatste_fout?: string | null;
13813
+ laatste_request_id?: number | null;
13814
+ mislukte_posts?: number;
12519
13815
  tick_sleutel?: string;
12520
13816
  updated_at?: string;
12521
13817
  };
@@ -12525,6 +13821,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12525
13821
  created_at?: string;
12526
13822
  id?: string;
12527
13823
  laatst_gezien?: string;
13824
+ laatste_fout?: string | null;
13825
+ laatste_request_id?: number | null;
13826
+ mislukte_posts?: number;
12528
13827
  tick_sleutel?: string;
12529
13828
  updated_at?: string;
12530
13829
  };
@@ -12718,6 +14017,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12718
14017
  created_at: string;
12719
14018
  driver: string;
12720
14019
  extern_printer_id: string | null;
14020
+ formaten_bijgewerkt_op: string | null;
12721
14021
  id: string;
12722
14022
  ip_adres: string | null;
12723
14023
  laatst_gezien: string | null;
@@ -12725,6 +14025,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12725
14025
  merk: string;
12726
14026
  naam: string;
12727
14027
  omschrijving: string;
14028
+ ondersteunde_formaten: import("./types").Json | null;
14029
+ ondersteunde_laden: import("./types").Json | null;
12728
14030
  online: boolean;
12729
14031
  papierformaat: string;
12730
14032
  poort: number | null;
@@ -12740,6 +14042,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12740
14042
  created_at?: string;
12741
14043
  driver?: string;
12742
14044
  extern_printer_id?: string | null;
14045
+ formaten_bijgewerkt_op?: string | null;
12743
14046
  id?: string;
12744
14047
  ip_adres?: string | null;
12745
14048
  laatst_gezien?: string | null;
@@ -12747,6 +14050,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12747
14050
  merk?: string;
12748
14051
  naam: string;
12749
14052
  omschrijving?: string;
14053
+ ondersteunde_formaten?: import("./types").Json | null;
14054
+ ondersteunde_laden?: import("./types").Json | null;
12750
14055
  online?: boolean;
12751
14056
  papierformaat?: string;
12752
14057
  poort?: number | null;
@@ -12762,6 +14067,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12762
14067
  created_at?: string;
12763
14068
  driver?: string;
12764
14069
  extern_printer_id?: string | null;
14070
+ formaten_bijgewerkt_op?: string | null;
12765
14071
  id?: string;
12766
14072
  ip_adres?: string | null;
12767
14073
  laatst_gezien?: string | null;
@@ -12769,6 +14075,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12769
14075
  merk?: string;
12770
14076
  naam?: string;
12771
14077
  omschrijving?: string;
14078
+ ondersteunde_formaten?: import("./types").Json | null;
14079
+ ondersteunde_laden?: import("./types").Json | null;
12772
14080
  online?: boolean;
12773
14081
  papierformaat?: string;
12774
14082
  poort?: number | null;
@@ -13247,6 +14555,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13247
14555
  };
13248
14556
  Relationships: [];
13249
14557
  };
14558
+ profile_modules: {
14559
+ Row: {
14560
+ created_at: string;
14561
+ id: string;
14562
+ module_id: string;
14563
+ profile_id: string;
14564
+ };
14565
+ Insert: {
14566
+ created_at?: string;
14567
+ id?: string;
14568
+ module_id: string;
14569
+ profile_id: string;
14570
+ };
14571
+ Update: {
14572
+ created_at?: string;
14573
+ id?: string;
14574
+ module_id?: string;
14575
+ profile_id?: string;
14576
+ };
14577
+ Relationships: [{
14578
+ foreignKeyName: "profile_modules_profile_id_fkey";
14579
+ columns: ["profile_id"];
14580
+ isOneToOne: false;
14581
+ referencedRelation: "profiles_org";
14582
+ referencedColumns: ["id"];
14583
+ }];
14584
+ };
14585
+ profile_roles: {
14586
+ Row: {
14587
+ created_at: string;
14588
+ id: string;
14589
+ profile_id: string;
14590
+ role_id: string;
14591
+ };
14592
+ Insert: {
14593
+ created_at?: string;
14594
+ id?: string;
14595
+ profile_id: string;
14596
+ role_id: string;
14597
+ };
14598
+ Update: {
14599
+ created_at?: string;
14600
+ id?: string;
14601
+ profile_id?: string;
14602
+ role_id?: string;
14603
+ };
14604
+ Relationships: [{
14605
+ foreignKeyName: "profile_roles_profile_id_fkey";
14606
+ columns: ["profile_id"];
14607
+ isOneToOne: false;
14608
+ referencedRelation: "profiles_org";
14609
+ referencedColumns: ["id"];
14610
+ }, {
14611
+ foreignKeyName: "profile_roles_role_id_fkey";
14612
+ columns: ["role_id"];
14613
+ isOneToOne: false;
14614
+ referencedRelation: "roles";
14615
+ referencedColumns: ["id"];
14616
+ }];
14617
+ };
13250
14618
  profiles: {
13251
14619
  Row: {
13252
14620
  address: string | null;
@@ -13292,6 +14660,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13292
14660
  referencedColumns: ["id"];
13293
14661
  }];
13294
14662
  };
14663
+ profiles_org: {
14664
+ Row: {
14665
+ created_at: string;
14666
+ id: string;
14667
+ is_default: boolean;
14668
+ name: string;
14669
+ tenant_id: string | null;
14670
+ updated_at: string;
14671
+ };
14672
+ Insert: {
14673
+ created_at?: string;
14674
+ id?: string;
14675
+ is_default?: boolean;
14676
+ name: string;
14677
+ tenant_id?: string | null;
14678
+ updated_at?: string;
14679
+ };
14680
+ Update: {
14681
+ created_at?: string;
14682
+ id?: string;
14683
+ is_default?: boolean;
14684
+ name?: string;
14685
+ tenant_id?: string | null;
14686
+ updated_at?: string;
14687
+ };
14688
+ Relationships: [{
14689
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14690
+ columns: ["tenant_id"];
14691
+ isOneToOne: false;
14692
+ referencedRelation: "tenants";
14693
+ referencedColumns: ["id"];
14694
+ }];
14695
+ };
13295
14696
  projects: {
13296
14697
  Row: {
13297
14698
  contact_name: string | null;
@@ -14033,6 +15434,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14033
15434
  referencedColumns: ["id"];
14034
15435
  }];
14035
15436
  };
15437
+ role_assignments: {
15438
+ Row: {
15439
+ created_at: string;
15440
+ id: string;
15441
+ role_id: string;
15442
+ user_id: string;
15443
+ };
15444
+ Insert: {
15445
+ created_at?: string;
15446
+ id?: string;
15447
+ role_id: string;
15448
+ user_id: string;
15449
+ };
15450
+ Update: {
15451
+ created_at?: string;
15452
+ id?: string;
15453
+ role_id?: string;
15454
+ user_id?: string;
15455
+ };
15456
+ Relationships: [{
15457
+ foreignKeyName: "role_assignments_role_id_fkey";
15458
+ columns: ["role_id"];
15459
+ isOneToOne: false;
15460
+ referencedRelation: "roles";
15461
+ referencedColumns: ["id"];
15462
+ }];
15463
+ };
15464
+ role_permissions: {
15465
+ Row: {
15466
+ can_edit: boolean;
15467
+ can_view: boolean;
15468
+ feature_id: string;
15469
+ id: string;
15470
+ module_id: string;
15471
+ role_id: string;
15472
+ updated_at: string;
15473
+ };
15474
+ Insert: {
15475
+ can_edit?: boolean;
15476
+ can_view?: boolean;
15477
+ feature_id?: string;
15478
+ id?: string;
15479
+ module_id: string;
15480
+ role_id: string;
15481
+ updated_at?: string;
15482
+ };
15483
+ Update: {
15484
+ can_edit?: boolean;
15485
+ can_view?: boolean;
15486
+ feature_id?: string;
15487
+ id?: string;
15488
+ module_id?: string;
15489
+ role_id?: string;
15490
+ updated_at?: string;
15491
+ };
15492
+ Relationships: [{
15493
+ foreignKeyName: "role_permissions_role_id_fkey";
15494
+ columns: ["role_id"];
15495
+ isOneToOne: false;
15496
+ referencedRelation: "roles";
15497
+ referencedColumns: ["id"];
15498
+ }];
15499
+ };
15500
+ roles: {
15501
+ Row: {
15502
+ created_at: string;
15503
+ id: string;
15504
+ is_protected: boolean;
15505
+ key: string;
15506
+ name: string;
15507
+ updated_at: string;
15508
+ };
15509
+ Insert: {
15510
+ created_at?: string;
15511
+ id?: string;
15512
+ is_protected?: boolean;
15513
+ key: string;
15514
+ name: string;
15515
+ updated_at?: string;
15516
+ };
15517
+ Update: {
15518
+ created_at?: string;
15519
+ id?: string;
15520
+ is_protected?: boolean;
15521
+ key?: string;
15522
+ name?: string;
15523
+ updated_at?: string;
15524
+ };
15525
+ Relationships: [];
15526
+ };
14036
15527
  rooms: {
14037
15528
  Row: {
14038
15529
  capacity: number;
@@ -14376,6 +15867,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14376
15867
  type: string;
14377
15868
  updated_at: string;
14378
15869
  vereist_medewerker: boolean;
15870
+ werkplek: string | null;
14379
15871
  };
14380
15872
  Insert: {
14381
15873
  actief?: boolean;
@@ -14389,6 +15881,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14389
15881
  type?: string;
14390
15882
  updated_at?: string;
14391
15883
  vereist_medewerker?: boolean;
15884
+ werkplek?: string | null;
14392
15885
  };
14393
15886
  Update: {
14394
15887
  actief?: boolean;
@@ -14402,9 +15895,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14402
15895
  type?: string;
14403
15896
  updated_at?: string;
14404
15897
  vereist_medewerker?: boolean;
15898
+ werkplek?: string | null;
14405
15899
  };
14406
15900
  Relationships: [];
14407
15901
  };
15902
+ sick_periods: {
15903
+ Row: {
15904
+ created_at: string;
15905
+ employee_id: string;
15906
+ end_date: string | null;
15907
+ id: string;
15908
+ notes: string | null;
15909
+ start_date: string;
15910
+ updated_at: string;
15911
+ };
15912
+ Insert: {
15913
+ created_at?: string;
15914
+ employee_id: string;
15915
+ end_date?: string | null;
15916
+ id?: string;
15917
+ notes?: string | null;
15918
+ start_date: string;
15919
+ updated_at?: string;
15920
+ };
15921
+ Update: {
15922
+ created_at?: string;
15923
+ employee_id?: string;
15924
+ end_date?: string | null;
15925
+ id?: string;
15926
+ notes?: string | null;
15927
+ start_date?: string;
15928
+ updated_at?: string;
15929
+ };
15930
+ Relationships: [{
15931
+ foreignKeyName: "sick_periods_employee_id_fkey";
15932
+ columns: ["employee_id"];
15933
+ isOneToOne: false;
15934
+ referencedRelation: "profiles";
15935
+ referencedColumns: ["id"];
15936
+ }];
15937
+ };
14408
15938
  sidebar_config: {
14409
15939
  Row: {
14410
15940
  id: string;
@@ -14418,7 +15948,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14418
15948
  };
14419
15949
  Update: {
14420
15950
  id?: string;
14421
- module_order?: string[];
15951
+ module_order?: string[];
15952
+ updated_at?: string;
15953
+ };
15954
+ Relationships: [];
15955
+ };
15956
+ stock_consumption_alerts: {
15957
+ Row: {
15958
+ alert_type: string;
15959
+ created_at: string;
15960
+ id: string;
15961
+ mutation_log_id: string | null;
15962
+ order_id: string | null;
15963
+ order_item_id: string | null;
15964
+ qty: number;
15965
+ reason: string | null;
15966
+ resolved_at: string | null;
15967
+ updated_at: string;
15968
+ };
15969
+ Insert: {
15970
+ alert_type: string;
15971
+ created_at?: string;
15972
+ id?: string;
15973
+ mutation_log_id?: string | null;
15974
+ order_id?: string | null;
15975
+ order_item_id?: string | null;
15976
+ qty?: number;
15977
+ reason?: string | null;
15978
+ resolved_at?: string | null;
15979
+ updated_at?: string;
15980
+ };
15981
+ Update: {
15982
+ alert_type?: string;
15983
+ created_at?: string;
15984
+ id?: string;
15985
+ mutation_log_id?: string | null;
15986
+ order_id?: string | null;
15987
+ order_item_id?: string | null;
15988
+ qty?: number;
15989
+ reason?: string | null;
15990
+ resolved_at?: string | null;
14422
15991
  updated_at?: string;
14423
15992
  };
14424
15993
  Relationships: [];
@@ -14702,6 +16271,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14702
16271
  };
14703
16272
  Relationships: [];
14704
16273
  };
16274
+ time_compensation_entries: {
16275
+ Row: {
16276
+ created_at: string;
16277
+ employee_id: string;
16278
+ entry_date: string;
16279
+ id: string;
16280
+ km: number;
16281
+ meal_allowance: number;
16282
+ notes: string | null;
16283
+ standby_evening: number;
16284
+ standby_weekend: number;
16285
+ tvt_change: number;
16286
+ updated_at: string;
16287
+ };
16288
+ Insert: {
16289
+ created_at?: string;
16290
+ employee_id: string;
16291
+ entry_date: string;
16292
+ id?: string;
16293
+ km?: number;
16294
+ meal_allowance?: number;
16295
+ notes?: string | null;
16296
+ standby_evening?: number;
16297
+ standby_weekend?: number;
16298
+ tvt_change?: number;
16299
+ updated_at?: string;
16300
+ };
16301
+ Update: {
16302
+ created_at?: string;
16303
+ employee_id?: string;
16304
+ entry_date?: string;
16305
+ id?: string;
16306
+ km?: number;
16307
+ meal_allowance?: number;
16308
+ notes?: string | null;
16309
+ standby_evening?: number;
16310
+ standby_weekend?: number;
16311
+ tvt_change?: number;
16312
+ updated_at?: string;
16313
+ };
16314
+ Relationships: [{
16315
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
16316
+ columns: ["employee_id"];
16317
+ isOneToOne: false;
16318
+ referencedRelation: "profiles";
16319
+ referencedColumns: ["id"];
16320
+ }];
16321
+ };
14705
16322
  time_entries: {
14706
16323
  Row: {
14707
16324
  created_at: string;
@@ -14736,65 +16353,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14736
16353
  undertime?: number;
14737
16354
  updated_at?: string;
14738
16355
  };
16356
+ Relationships: [];
16357
+ };
16358
+ time_log_week_approvals: {
16359
+ Row: {
16360
+ approved_at: string | null;
16361
+ approved_by: string | null;
16362
+ created_at: string;
16363
+ employee_id: string;
16364
+ id: string;
16365
+ locked: boolean;
16366
+ notes: string | null;
16367
+ status: string;
16368
+ submitted_at: string | null;
16369
+ updated_at: string;
16370
+ week_start: string;
16371
+ };
16372
+ Insert: {
16373
+ approved_at?: string | null;
16374
+ approved_by?: string | null;
16375
+ created_at?: string;
16376
+ employee_id: string;
16377
+ id?: string;
16378
+ locked?: boolean;
16379
+ notes?: string | null;
16380
+ status?: string;
16381
+ submitted_at?: string | null;
16382
+ updated_at?: string;
16383
+ week_start: string;
16384
+ };
16385
+ Update: {
16386
+ approved_at?: string | null;
16387
+ approved_by?: string | null;
16388
+ created_at?: string;
16389
+ employee_id?: string;
16390
+ id?: string;
16391
+ locked?: boolean;
16392
+ notes?: string | null;
16393
+ status?: string;
16394
+ submitted_at?: string | null;
16395
+ updated_at?: string;
16396
+ week_start?: string;
16397
+ };
14739
16398
  Relationships: [{
14740
- foreignKeyName: "time_entries_employee_id_fkey";
16399
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14741
16400
  columns: ["employee_id"];
14742
16401
  isOneToOne: false;
14743
- referencedRelation: "monteurs";
16402
+ referencedRelation: "profiles";
14744
16403
  referencedColumns: ["id"];
14745
16404
  }];
14746
16405
  };
14747
16406
  time_logs: {
14748
16407
  Row: {
16408
+ auto_stop_reason: string | null;
16409
+ auto_stopped: boolean;
14749
16410
  created_at: string;
16411
+ current_latitude: number | null;
16412
+ current_longitude: number | null;
16413
+ current_position_updated_at: string | null;
14750
16414
  employee_id: string;
16415
+ end_latitude: number | null;
16416
+ end_longitude: number | null;
14751
16417
  end_time: string | null;
16418
+ eta_distance_km: number | null;
16419
+ eta_minutes: number | null;
16420
+ eta_updated_at: string | null;
16421
+ hour_category: string | null;
14752
16422
  id: string;
16423
+ last_reminder_at: string | null;
14753
16424
  notes: string | null;
14754
16425
  overtime_hours: number;
14755
16426
  overtime_type: string | null;
14756
16427
  regular_hours: number;
16428
+ reminder_count: number;
16429
+ requires_review: boolean;
16430
+ start_latitude: number | null;
16431
+ start_longitude: number | null;
14757
16432
  start_time: string;
14758
16433
  travel_cost: number | null;
14759
16434
  travel_distance_km: number | null;
16435
+ travel_duration_min: number | null;
16436
+ travel_time_minutes: number | null;
14760
16437
  type: string;
14761
16438
  updated_at: string;
16439
+ work_order_id: string | null;
14762
16440
  };
14763
16441
  Insert: {
16442
+ auto_stop_reason?: string | null;
16443
+ auto_stopped?: boolean;
14764
16444
  created_at?: string;
16445
+ current_latitude?: number | null;
16446
+ current_longitude?: number | null;
16447
+ current_position_updated_at?: string | null;
14765
16448
  employee_id: string;
16449
+ end_latitude?: number | null;
16450
+ end_longitude?: number | null;
14766
16451
  end_time?: string | null;
16452
+ eta_distance_km?: number | null;
16453
+ eta_minutes?: number | null;
16454
+ eta_updated_at?: string | null;
16455
+ hour_category?: string | null;
14767
16456
  id?: string;
16457
+ last_reminder_at?: string | null;
14768
16458
  notes?: string | null;
14769
16459
  overtime_hours?: number;
14770
16460
  overtime_type?: string | null;
14771
16461
  regular_hours?: number;
16462
+ reminder_count?: number;
16463
+ requires_review?: boolean;
16464
+ start_latitude?: number | null;
16465
+ start_longitude?: number | null;
14772
16466
  start_time?: string;
14773
16467
  travel_cost?: number | null;
14774
16468
  travel_distance_km?: number | null;
16469
+ travel_duration_min?: number | null;
16470
+ travel_time_minutes?: number | null;
14775
16471
  type: string;
14776
16472
  updated_at?: string;
16473
+ work_order_id?: string | null;
14777
16474
  };
14778
16475
  Update: {
16476
+ auto_stop_reason?: string | null;
16477
+ auto_stopped?: boolean;
14779
16478
  created_at?: string;
16479
+ current_latitude?: number | null;
16480
+ current_longitude?: number | null;
16481
+ current_position_updated_at?: string | null;
14780
16482
  employee_id?: string;
16483
+ end_latitude?: number | null;
16484
+ end_longitude?: number | null;
14781
16485
  end_time?: string | null;
16486
+ eta_distance_km?: number | null;
16487
+ eta_minutes?: number | null;
16488
+ eta_updated_at?: string | null;
16489
+ hour_category?: string | null;
14782
16490
  id?: string;
16491
+ last_reminder_at?: string | null;
14783
16492
  notes?: string | null;
14784
16493
  overtime_hours?: number;
14785
16494
  overtime_type?: string | null;
14786
16495
  regular_hours?: number;
16496
+ reminder_count?: number;
16497
+ requires_review?: boolean;
16498
+ start_latitude?: number | null;
16499
+ start_longitude?: number | null;
14787
16500
  start_time?: string;
14788
16501
  travel_cost?: number | null;
14789
16502
  travel_distance_km?: number | null;
16503
+ travel_duration_min?: number | null;
16504
+ travel_time_minutes?: number | null;
14790
16505
  type?: string;
14791
16506
  updated_at?: string;
16507
+ work_order_id?: string | null;
14792
16508
  };
14793
16509
  Relationships: [{
14794
16510
  foreignKeyName: "time_logs_employee_id_fkey";
14795
16511
  columns: ["employee_id"];
14796
16512
  isOneToOne: false;
14797
- referencedRelation: "monteurs";
16513
+ referencedRelation: "profiles";
16514
+ referencedColumns: ["id"];
16515
+ }, {
16516
+ foreignKeyName: "time_logs_work_order_id_fkey";
16517
+ columns: ["work_order_id"];
16518
+ isOneToOne: false;
16519
+ referencedRelation: "work_orders";
14798
16520
  referencedColumns: ["id"];
14799
16521
  }];
14800
16522
  };
@@ -14833,7 +16555,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14833
16555
  foreignKeyName: "time_off_entries_employee_id_fkey";
14834
16556
  columns: ["employee_id"];
14835
16557
  isOneToOne: false;
14836
- referencedRelation: "monteurs";
16558
+ referencedRelation: "profiles";
14837
16559
  referencedColumns: ["id"];
14838
16560
  }];
14839
16561
  };
@@ -15082,12 +16804,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15082
16804
  company_name: string | null;
15083
16805
  connected_at: string | null;
15084
16806
  created_at: string;
16807
+ disconnected_at: string | null;
15085
16808
  environment: string;
15086
16809
  id: string;
16810
+ initial_sync_completed_at: string | null;
16811
+ initial_sync_started_at: string | null;
15087
16812
  is_active: boolean;
15088
16813
  label: string | null;
15089
16814
  office_code: string | null;
15090
16815
  redirect_uri: string | null;
16816
+ superseded_at: string | null;
15091
16817
  updated_at: string;
15092
16818
  user_id: string;
15093
16819
  };
@@ -15098,12 +16824,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15098
16824
  company_name?: string | null;
15099
16825
  connected_at?: string | null;
15100
16826
  created_at?: string;
16827
+ disconnected_at?: string | null;
15101
16828
  environment: string;
15102
16829
  id?: string;
16830
+ initial_sync_completed_at?: string | null;
16831
+ initial_sync_started_at?: string | null;
15103
16832
  is_active?: boolean;
15104
16833
  label?: string | null;
15105
16834
  office_code?: string | null;
15106
16835
  redirect_uri?: string | null;
16836
+ superseded_at?: string | null;
15107
16837
  updated_at?: string;
15108
16838
  user_id: string;
15109
16839
  };
@@ -15114,12 +16844,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15114
16844
  company_name?: string | null;
15115
16845
  connected_at?: string | null;
15116
16846
  created_at?: string;
16847
+ disconnected_at?: string | null;
15117
16848
  environment?: string;
15118
16849
  id?: string;
16850
+ initial_sync_completed_at?: string | null;
16851
+ initial_sync_started_at?: string | null;
15119
16852
  is_active?: boolean;
15120
16853
  label?: string | null;
15121
16854
  office_code?: string | null;
15122
16855
  redirect_uri?: string | null;
16856
+ superseded_at?: string | null;
15123
16857
  updated_at?: string;
15124
16858
  user_id?: string;
15125
16859
  };
@@ -15143,9 +16877,43 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15143
16877
  };
15144
16878
  Relationships: [];
15145
16879
  };
16880
+ twinfield_cron_locks: {
16881
+ Row: {
16882
+ created_at: string;
16883
+ heartbeat_at: string;
16884
+ job_name: string;
16885
+ last_error: string | null;
16886
+ last_finished_at: string | null;
16887
+ locked_at: string;
16888
+ run_id: string;
16889
+ updated_at: string;
16890
+ };
16891
+ Insert: {
16892
+ created_at?: string;
16893
+ heartbeat_at?: string;
16894
+ job_name: string;
16895
+ last_error?: string | null;
16896
+ last_finished_at?: string | null;
16897
+ locked_at?: string;
16898
+ run_id?: string;
16899
+ updated_at?: string;
16900
+ };
16901
+ Update: {
16902
+ created_at?: string;
16903
+ heartbeat_at?: string;
16904
+ job_name?: string;
16905
+ last_error?: string | null;
16906
+ last_finished_at?: string | null;
16907
+ locked_at?: string;
16908
+ run_id?: string;
16909
+ updated_at?: string;
16910
+ };
16911
+ Relationships: [];
16912
+ };
15146
16913
  twinfield_customers: {
15147
16914
  Row: {
15148
16915
  address: string | null;
16916
+ administration_code: string;
15149
16917
  city: string | null;
15150
16918
  country: string | null;
15151
16919
  created_at: string;
@@ -15165,6 +16933,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15165
16933
  };
15166
16934
  Insert: {
15167
16935
  address?: string | null;
16936
+ administration_code?: string;
15168
16937
  city?: string | null;
15169
16938
  country?: string | null;
15170
16939
  created_at?: string;
@@ -15184,6 +16953,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15184
16953
  };
15185
16954
  Update: {
15186
16955
  address?: string | null;
16956
+ administration_code?: string;
15187
16957
  city?: string | null;
15188
16958
  country?: string | null;
15189
16959
  created_at?: string;
@@ -15397,6 +17167,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15397
17167
  };
15398
17168
  twinfield_invoice_settings: {
15399
17169
  Row: {
17170
+ administration_code: string | null;
17171
+ auto_invoice_enabled: boolean;
17172
+ auto_invoice_start_date: string | null;
17173
+ auto_invoice_trigger_statuses: string[];
15400
17174
  created_at: string;
15401
17175
  debtor_gl_account: string;
15402
17176
  default_credit_invoice_type: string | null;
@@ -15409,14 +17183,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15409
17183
  invoice_enabled_fo: boolean;
15410
17184
  invoice_enabled_ho: boolean;
15411
17185
  invoice_enabled_mo: boolean;
17186
+ needs_review: boolean;
15412
17187
  payment_gl_account: string;
15413
17188
  payment_journal_code: string;
17189
+ settings_confirmed_at: string | null;
15414
17190
  updated_at: string;
15415
17191
  user_id: string;
15416
17192
  vat_code_eu_reverse: string | null;
15417
17193
  vat_code_export: string | null;
15418
17194
  };
15419
17195
  Insert: {
17196
+ administration_code?: string | null;
17197
+ auto_invoice_enabled?: boolean;
17198
+ auto_invoice_start_date?: string | null;
17199
+ auto_invoice_trigger_statuses?: string[];
15420
17200
  created_at?: string;
15421
17201
  debtor_gl_account?: string;
15422
17202
  default_credit_invoice_type?: string | null;
@@ -15429,14 +17209,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15429
17209
  invoice_enabled_fo?: boolean;
15430
17210
  invoice_enabled_ho?: boolean;
15431
17211
  invoice_enabled_mo?: boolean;
17212
+ needs_review?: boolean;
15432
17213
  payment_gl_account?: string;
15433
17214
  payment_journal_code?: string;
17215
+ settings_confirmed_at?: string | null;
15434
17216
  updated_at?: string;
15435
17217
  user_id: string;
15436
17218
  vat_code_eu_reverse?: string | null;
15437
17219
  vat_code_export?: string | null;
15438
17220
  };
15439
17221
  Update: {
17222
+ administration_code?: string | null;
17223
+ auto_invoice_enabled?: boolean;
17224
+ auto_invoice_start_date?: string | null;
17225
+ auto_invoice_trigger_statuses?: string[];
15440
17226
  created_at?: string;
15441
17227
  debtor_gl_account?: string;
15442
17228
  default_credit_invoice_type?: string | null;
@@ -15449,8 +17235,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15449
17235
  invoice_enabled_fo?: boolean;
15450
17236
  invoice_enabled_ho?: boolean;
15451
17237
  invoice_enabled_mo?: boolean;
17238
+ needs_review?: boolean;
15452
17239
  payment_gl_account?: string;
15453
17240
  payment_journal_code?: string;
17241
+ settings_confirmed_at?: string | null;
15454
17242
  updated_at?: string;
15455
17243
  user_id?: string;
15456
17244
  vat_code_eu_reverse?: string | null;
@@ -15737,6 +17525,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15737
17525
  twinfield_push_queue: {
15738
17526
  Row: {
15739
17527
  action: string;
17528
+ attempt_started_at: string | null;
15740
17529
  attempts: number;
15741
17530
  connection_id: string | null;
15742
17531
  created_at: string;
@@ -15753,6 +17542,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15753
17542
  };
15754
17543
  Insert: {
15755
17544
  action?: string;
17545
+ attempt_started_at?: string | null;
15756
17546
  attempts?: number;
15757
17547
  connection_id?: string | null;
15758
17548
  created_at?: string;
@@ -15769,6 +17559,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15769
17559
  };
15770
17560
  Update: {
15771
17561
  action?: string;
17562
+ attempt_started_at?: string | null;
15772
17563
  attempts?: number;
15773
17564
  connection_id?: string | null;
15774
17565
  created_at?: string;
@@ -15966,13 +17757,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15966
17757
  workday_end?: string | null;
15967
17758
  workday_start?: string | null;
15968
17759
  };
15969
- Relationships: [{
15970
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15971
- columns: ["monteur_id"];
15972
- isOneToOne: true;
15973
- referencedRelation: "monteurs";
15974
- referencedColumns: ["id"];
15975
- }];
17760
+ Relationships: [];
15976
17761
  };
15977
17762
  uren_entries: {
15978
17763
  Row: {
@@ -16018,12 +17803,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16018
17803
  werkbon_id?: string | null;
16019
17804
  };
16020
17805
  Relationships: [{
16021
- foreignKeyName: "uren_entries_monteur_id_fkey";
16022
- columns: ["monteur_id"];
16023
- isOneToOne: false;
16024
- referencedRelation: "monteurs";
16025
- referencedColumns: ["id"];
16026
- }, {
16027
17806
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16028
17807
  columns: ["werkbon_id"];
16029
17808
  isOneToOne: false;
@@ -16064,114 +17843,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16064
17843
  };
16065
17844
  Relationships: [];
16066
17845
  };
16067
- uren_facturen: {
16068
- Row: {
16069
- created_at: string;
16070
- created_by: string | null;
16071
- customer_id: string | null;
16072
- customer_name: string | null;
16073
- id: string;
16074
- invoice_number: string | null;
16075
- note: string | null;
16076
- status: string;
16077
- total_excl_cents: number;
16078
- total_incl_cents: number;
16079
- updated_at: string;
16080
- vat_cents: number;
16081
- vat_percentage: number;
16082
- werkbon_id: string | null;
16083
- };
16084
- Insert: {
16085
- created_at?: string;
16086
- created_by?: string | null;
16087
- customer_id?: string | null;
16088
- customer_name?: string | null;
16089
- id?: string;
16090
- invoice_number?: string | null;
16091
- note?: string | null;
16092
- status?: string;
16093
- total_excl_cents?: number;
16094
- total_incl_cents?: number;
16095
- updated_at?: string;
16096
- vat_cents?: number;
16097
- vat_percentage?: number;
16098
- werkbon_id?: string | null;
16099
- };
16100
- Update: {
16101
- created_at?: string;
16102
- created_by?: string | null;
16103
- customer_id?: string | null;
16104
- customer_name?: string | null;
16105
- id?: string;
16106
- invoice_number?: string | null;
16107
- note?: string | null;
16108
- status?: string;
16109
- total_excl_cents?: number;
16110
- total_incl_cents?: number;
16111
- updated_at?: string;
16112
- vat_cents?: number;
16113
- vat_percentage?: number;
16114
- werkbon_id?: string | null;
16115
- };
16116
- Relationships: [{
16117
- foreignKeyName: "uren_facturen_customer_id_fkey";
16118
- columns: ["customer_id"];
16119
- isOneToOne: false;
16120
- referencedRelation: "itk_customers";
16121
- referencedColumns: ["id"];
16122
- }, {
16123
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16124
- columns: ["werkbon_id"];
16125
- isOneToOne: true;
16126
- referencedRelation: "werkbonnen";
16127
- referencedColumns: ["id"];
16128
- }];
16129
- };
16130
- uren_factuur_regels: {
16131
- Row: {
16132
- created_at: string;
16133
- description: string;
16134
- factuur_id: string;
16135
- id: string;
16136
- kind: string | null;
16137
- quantity: number;
16138
- sort_order: number;
16139
- total_cents: number;
16140
- unit: string;
16141
- unit_price_cents: number;
16142
- };
16143
- Insert: {
16144
- created_at?: string;
16145
- description: string;
16146
- factuur_id: string;
16147
- id?: string;
16148
- kind?: string | null;
16149
- quantity?: number;
16150
- sort_order?: number;
16151
- total_cents?: number;
16152
- unit?: string;
16153
- unit_price_cents?: number;
16154
- };
16155
- Update: {
16156
- created_at?: string;
16157
- description?: string;
16158
- factuur_id?: string;
16159
- id?: string;
16160
- kind?: string | null;
16161
- quantity?: number;
16162
- sort_order?: number;
16163
- total_cents?: number;
16164
- unit?: string;
16165
- unit_price_cents?: number;
16166
- };
16167
- Relationships: [{
16168
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16169
- columns: ["factuur_id"];
16170
- isOneToOne: false;
16171
- referencedRelation: "uren_facturen";
16172
- referencedColumns: ["id"];
16173
- }];
16174
- };
16175
17846
  uren_offerte_regels: {
16176
17847
  Row: {
16177
17848
  created_at: string;
@@ -16491,17 +18162,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16491
18162
  submitted_at?: string | null;
16492
18163
  updated_at?: string;
16493
18164
  };
16494
- Relationships: [{
16495
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16496
- columns: ["monteur_id"];
16497
- isOneToOne: false;
16498
- referencedRelation: "monteurs";
16499
- referencedColumns: ["id"];
16500
- }];
18165
+ Relationships: [];
16501
18166
  };
16502
18167
  user_module_permissions: {
16503
18168
  Row: {
16504
18169
  created_at: string;
18170
+ feature_id: string;
16505
18171
  id: string;
16506
18172
  module_id: string;
16507
18173
  permission: string;
@@ -16510,6 +18176,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16510
18176
  };
16511
18177
  Insert: {
16512
18178
  created_at?: string;
18179
+ feature_id?: string;
16513
18180
  id?: string;
16514
18181
  module_id: string;
16515
18182
  permission: string;
@@ -16518,6 +18185,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16518
18185
  };
16519
18186
  Update: {
16520
18187
  created_at?: string;
18188
+ feature_id?: string;
16521
18189
  id?: string;
16522
18190
  module_id?: string;
16523
18191
  permission?: string;
@@ -16530,24 +18198,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16530
18198
  Row: {
16531
18199
  created_at: string;
16532
18200
  id: string;
16533
- role: Database["public"]["Enums"]["app_role"];
16534
- user_id: string;
18201
+ role: Database["public"]["Enums"]["app_role"];
18202
+ user_id: string;
18203
+ };
18204
+ Insert: {
18205
+ created_at?: string;
18206
+ id?: string;
18207
+ role: Database["public"]["Enums"]["app_role"];
18208
+ user_id: string;
18209
+ };
18210
+ Update: {
18211
+ created_at?: string;
18212
+ id?: string;
18213
+ role?: Database["public"]["Enums"]["app_role"];
18214
+ user_id?: string;
18215
+ };
18216
+ Relationships: [{
18217
+ foreignKeyName: "user_roles_user_id_fkey";
18218
+ columns: ["user_id"];
18219
+ isOneToOne: false;
18220
+ referencedRelation: "profiles";
18221
+ referencedColumns: ["id"];
18222
+ }];
18223
+ };
18224
+ van_inventories: {
18225
+ Row: {
18226
+ barcode: string | null;
18227
+ created_at: string;
18228
+ id: string;
18229
+ monteur_id: string | null;
18230
+ price_per_unit: number;
18231
+ product_name: string;
18232
+ quantity_current: number;
18233
+ quantity_min: number;
18234
+ unit: string;
18235
+ updated_at: string;
16535
18236
  };
16536
18237
  Insert: {
18238
+ barcode?: string | null;
16537
18239
  created_at?: string;
16538
18240
  id?: string;
16539
- role: Database["public"]["Enums"]["app_role"];
16540
- user_id: string;
18241
+ monteur_id?: string | null;
18242
+ price_per_unit?: number;
18243
+ product_name: string;
18244
+ quantity_current?: number;
18245
+ quantity_min?: number;
18246
+ unit?: string;
18247
+ updated_at?: string;
16541
18248
  };
16542
18249
  Update: {
18250
+ barcode?: string | null;
16543
18251
  created_at?: string;
16544
18252
  id?: string;
16545
- role?: Database["public"]["Enums"]["app_role"];
16546
- user_id?: string;
18253
+ monteur_id?: string | null;
18254
+ price_per_unit?: number;
18255
+ product_name?: string;
18256
+ quantity_current?: number;
18257
+ quantity_min?: number;
18258
+ unit?: string;
18259
+ updated_at?: string;
16547
18260
  };
16548
18261
  Relationships: [{
16549
- foreignKeyName: "user_roles_user_id_fkey";
16550
- columns: ["user_id"];
18262
+ foreignKeyName: "van_inventories_monteur_id_fkey";
18263
+ columns: ["monteur_id"];
16551
18264
  isOneToOne: false;
16552
18265
  referencedRelation: "profiles";
16553
18266
  referencedColumns: ["id"];
@@ -17132,6 +18845,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17132
18845
  werkbon_package_items: {
17133
18846
  Row: {
17134
18847
  article_number: string | null;
18848
+ artikel_id: string | null;
17135
18849
  created_at: string;
17136
18850
  gtin: string | null;
17137
18851
  id: string;
@@ -17149,6 +18863,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17149
18863
  };
17150
18864
  Insert: {
17151
18865
  article_number?: string | null;
18866
+ artikel_id?: string | null;
17152
18867
  created_at?: string;
17153
18868
  gtin?: string | null;
17154
18869
  id?: string;
@@ -17166,6 +18881,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17166
18881
  };
17167
18882
  Update: {
17168
18883
  article_number?: string | null;
18884
+ artikel_id?: string | null;
17169
18885
  created_at?: string;
17170
18886
  gtin?: string | null;
17171
18887
  id?: string;
@@ -17182,6 +18898,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17182
18898
  updated_at?: string;
17183
18899
  };
17184
18900
  Relationships: [{
18901
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18902
+ columns: ["artikel_id"];
18903
+ isOneToOne: false;
18904
+ referencedRelation: "artikelen_cache";
18905
+ referencedColumns: ["id"];
18906
+ }, {
17185
18907
  foreignKeyName: "werkbon_package_items_package_id_fkey";
17186
18908
  columns: ["package_id"];
17187
18909
  isOneToOne: false;
@@ -17383,6 +19105,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17383
19105
  scheduled_end_time: string | null;
17384
19106
  scheduled_start_time: string | null;
17385
19107
  sequence_number: number;
19108
+ signature_accepted_at: string | null;
19109
+ signature_by_user_id: string | null;
19110
+ signature_name: string | null;
17386
19111
  source_email_meta: import("./types").Json | null;
17387
19112
  source_mailbox_message_id: string | null;
17388
19113
  source_pdf_path: string | null;
@@ -17418,6 +19143,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17418
19143
  scheduled_end_time?: string | null;
17419
19144
  scheduled_start_time?: string | null;
17420
19145
  sequence_number: number;
19146
+ signature_accepted_at?: string | null;
19147
+ signature_by_user_id?: string | null;
19148
+ signature_name?: string | null;
17421
19149
  source_email_meta?: import("./types").Json | null;
17422
19150
  source_mailbox_message_id?: string | null;
17423
19151
  source_pdf_path?: string | null;
@@ -17453,6 +19181,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17453
19181
  scheduled_end_time?: string | null;
17454
19182
  scheduled_start_time?: string | null;
17455
19183
  sequence_number?: number;
19184
+ signature_accepted_at?: string | null;
19185
+ signature_by_user_id?: string | null;
19186
+ signature_name?: string | null;
17456
19187
  source_email_meta?: import("./types").Json | null;
17457
19188
  source_mailbox_message_id?: string | null;
17458
19189
  source_pdf_path?: string | null;
@@ -17503,7 +19234,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17503
19234
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17504
19235
  columns: ["monteur_id"];
17505
19236
  isOneToOne: false;
17506
- referencedRelation: "monteurs";
19237
+ referencedRelation: "profiles";
17507
19238
  referencedColumns: ["id"];
17508
19239
  }, {
17509
19240
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17513,6 +19244,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17513
19244
  referencedColumns: ["id"];
17514
19245
  }];
17515
19246
  };
19247
+ work_order_photos: {
19248
+ Row: {
19249
+ ai_caption: string | null;
19250
+ ai_categorized_at: string | null;
19251
+ ai_labels: import("./types").Json | null;
19252
+ caption: string | null;
19253
+ created_at: string;
19254
+ id: string;
19255
+ monteur_id: string | null;
19256
+ photo_type: string;
19257
+ storage_path: string;
19258
+ updated_at: string;
19259
+ work_order_id: string;
19260
+ };
19261
+ Insert: {
19262
+ ai_caption?: string | null;
19263
+ ai_categorized_at?: string | null;
19264
+ ai_labels?: import("./types").Json | null;
19265
+ caption?: string | null;
19266
+ created_at?: string;
19267
+ id?: string;
19268
+ monteur_id?: string | null;
19269
+ photo_type?: string;
19270
+ storage_path: string;
19271
+ updated_at?: string;
19272
+ work_order_id: string;
19273
+ };
19274
+ Update: {
19275
+ ai_caption?: string | null;
19276
+ ai_categorized_at?: string | null;
19277
+ ai_labels?: import("./types").Json | null;
19278
+ caption?: string | null;
19279
+ created_at?: string;
19280
+ id?: string;
19281
+ monteur_id?: string | null;
19282
+ photo_type?: string;
19283
+ storage_path?: string;
19284
+ updated_at?: string;
19285
+ work_order_id?: string;
19286
+ };
19287
+ Relationships: [{
19288
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
19289
+ columns: ["monteur_id"];
19290
+ isOneToOne: false;
19291
+ referencedRelation: "profiles";
19292
+ referencedColumns: ["id"];
19293
+ }, {
19294
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
19295
+ columns: ["work_order_id"];
19296
+ isOneToOne: false;
19297
+ referencedRelation: "work_orders";
19298
+ referencedColumns: ["id"];
19299
+ }];
19300
+ };
17516
19301
  work_orders: {
17517
19302
  Row: {
17518
19303
  assigned_to: string | null;
@@ -17544,7 +19329,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17544
19329
  scheduled_end_time: string | null;
17545
19330
  scheduled_start_time: string | null;
17546
19331
  status: string;
17547
- tenant_id: string;
17548
19332
  total_hours_worked: number | null;
17549
19333
  total_price: number | null;
17550
19334
  travel_time_minutes: number | null;
@@ -17582,7 +19366,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17582
19366
  scheduled_end_time?: string | null;
17583
19367
  scheduled_start_time?: string | null;
17584
19368
  status?: string;
17585
- tenant_id: string;
17586
19369
  total_hours_worked?: number | null;
17587
19370
  total_price?: number | null;
17588
19371
  travel_time_minutes?: number | null;
@@ -17620,7 +19403,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17620
19403
  scheduled_end_time?: string | null;
17621
19404
  scheduled_start_time?: string | null;
17622
19405
  status?: string;
17623
- tenant_id?: string;
17624
19406
  total_hours_worked?: number | null;
17625
19407
  total_price?: number | null;
17626
19408
  travel_time_minutes?: number | null;
@@ -17634,12 +19416,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17634
19416
  isOneToOne: false;
17635
19417
  referencedRelation: "work_orders";
17636
19418
  referencedColumns: ["id"];
17637
- }, {
17638
- foreignKeyName: "work_orders_tenant_id_fkey";
17639
- columns: ["tenant_id"];
17640
- isOneToOne: false;
17641
- referencedRelation: "tenants";
17642
- referencedColumns: ["id"];
17643
19419
  }];
17644
19420
  };
17645
19421
  };
@@ -17924,6 +19700,114 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17924
19700
  };
17925
19701
  Relationships: [];
17926
19702
  };
19703
+ uren_facturen: {
19704
+ Row: {
19705
+ created_at: string | null;
19706
+ created_by: string | null;
19707
+ customer_id: string | null;
19708
+ customer_name: string | null;
19709
+ id: string | null;
19710
+ invoice_number: string | null;
19711
+ note: string | null;
19712
+ status: string | null;
19713
+ total_excl_cents: number | null;
19714
+ total_incl_cents: number | null;
19715
+ updated_at: string | null;
19716
+ vat_cents: number | null;
19717
+ vat_percentage: number | null;
19718
+ werkbon_id: string | null;
19719
+ };
19720
+ Insert: {
19721
+ created_at?: string | null;
19722
+ created_by?: string | null;
19723
+ customer_id?: string | null;
19724
+ customer_name?: string | null;
19725
+ id?: string | null;
19726
+ invoice_number?: string | null;
19727
+ note?: string | null;
19728
+ status?: string | null;
19729
+ total_excl_cents?: number | null;
19730
+ total_incl_cents?: number | null;
19731
+ updated_at?: string | null;
19732
+ vat_cents?: number | null;
19733
+ vat_percentage?: number | null;
19734
+ werkbon_id?: never;
19735
+ };
19736
+ Update: {
19737
+ created_at?: string | null;
19738
+ created_by?: string | null;
19739
+ customer_id?: string | null;
19740
+ customer_name?: string | null;
19741
+ id?: string | null;
19742
+ invoice_number?: string | null;
19743
+ note?: string | null;
19744
+ status?: string | null;
19745
+ total_excl_cents?: number | null;
19746
+ total_incl_cents?: number | null;
19747
+ updated_at?: string | null;
19748
+ vat_cents?: number | null;
19749
+ vat_percentage?: number | null;
19750
+ werkbon_id?: never;
19751
+ };
19752
+ Relationships: [{
19753
+ foreignKeyName: "invoices_customer_id_fkey";
19754
+ columns: ["customer_id"];
19755
+ isOneToOne: false;
19756
+ referencedRelation: "itk_customers";
19757
+ referencedColumns: ["id"];
19758
+ }];
19759
+ };
19760
+ uren_factuur_regels: {
19761
+ Row: {
19762
+ created_at: string | null;
19763
+ description: string | null;
19764
+ factuur_id: string | null;
19765
+ id: string | null;
19766
+ kind: string | null;
19767
+ quantity: number | null;
19768
+ sort_order: number | null;
19769
+ total_cents: number | null;
19770
+ unit: string | null;
19771
+ unit_price_cents: number | null;
19772
+ };
19773
+ Insert: {
19774
+ created_at?: string | null;
19775
+ description?: string | null;
19776
+ factuur_id?: string | null;
19777
+ id?: string | null;
19778
+ kind?: string | null;
19779
+ quantity?: number | null;
19780
+ sort_order?: number | null;
19781
+ total_cents?: number | null;
19782
+ unit?: string | null;
19783
+ unit_price_cents?: number | null;
19784
+ };
19785
+ Update: {
19786
+ created_at?: string | null;
19787
+ description?: string | null;
19788
+ factuur_id?: string | null;
19789
+ id?: string | null;
19790
+ kind?: string | null;
19791
+ quantity?: number | null;
19792
+ sort_order?: number | null;
19793
+ total_cents?: number | null;
19794
+ unit?: string | null;
19795
+ unit_price_cents?: number | null;
19796
+ };
19797
+ Relationships: [{
19798
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19799
+ columns: ["factuur_id"];
19800
+ isOneToOne: false;
19801
+ referencedRelation: "invoices";
19802
+ referencedColumns: ["id"];
19803
+ }, {
19804
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19805
+ columns: ["factuur_id"];
19806
+ isOneToOne: false;
19807
+ referencedRelation: "uren_facturen";
19808
+ referencedColumns: ["id"];
19809
+ }];
19810
+ };
17927
19811
  v_external_customers_exact: {
17928
19812
  Row: {
17929
19813
  account_number: string | null;
@@ -18242,6 +20126,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18242
20126
  referencedColumns: ["id"];
18243
20127
  }];
18244
20128
  };
20129
+ v_werkbon_totalen: {
20130
+ Row: {
20131
+ packages_cents: number | null;
20132
+ packages_minutes: number | null;
20133
+ werkbon_id: string | null;
20134
+ };
20135
+ Relationships: [{
20136
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20137
+ columns: ["werkbon_id"];
20138
+ isOneToOne: false;
20139
+ referencedRelation: "werkbonnen";
20140
+ referencedColumns: ["id"];
20141
+ }];
20142
+ };
18245
20143
  };
18246
20144
  Functions: {
18247
20145
  _floriday_schedule_job: {
@@ -18324,6 +20222,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18324
20222
  };
18325
20223
  Returns: undefined;
18326
20224
  };
20225
+ approve_mailbox_order_proposal: {
20226
+ Args: {
20227
+ p_custom_fields: import("./types").Json;
20228
+ p_customer_id: string;
20229
+ p_delivery_date: string;
20230
+ p_field_values?: import("./types").Json;
20231
+ p_lines: import("./types").Json;
20232
+ p_notes: string;
20233
+ p_proposal_id: string;
20234
+ p_reviewed_by: string;
20235
+ };
20236
+ Returns: import("./types").Json;
20237
+ };
18327
20238
  assign_cart_numbers: {
18328
20239
  Args: {
18329
20240
  p_carts: import("./types").Json;
@@ -18359,6 +20270,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18359
20270
  processed_items: number;
18360
20271
  }[];
18361
20272
  };
20273
+ backfill_order_auto_invoice_queue: {
20274
+ Args: never;
20275
+ Returns: number;
20276
+ };
18362
20277
  calculate_layer_stock: {
18363
20278
  Args: {
18364
20279
  p_product_id: string;
@@ -18371,6 +20286,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18371
20286
  };
18372
20287
  Returns: number;
18373
20288
  };
20289
+ can_manage_hours: {
20290
+ Args: never;
20291
+ Returns: boolean;
20292
+ };
18374
20293
  check_offer_product_available_stock: {
18375
20294
  Args: {
18376
20295
  p_campaign_product_id: string;
@@ -18408,6 +20327,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18408
20327
  gebruiker_id: string | null;
18409
20328
  gebruiker_naam: string;
18410
20329
  gestart_op: string | null;
20330
+ herkomst: string | null;
18411
20331
  id: string;
18412
20332
  idempotentie_sleutel: string | null;
18413
20333
  is_herprint: boolean;
@@ -18528,6 +20448,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18528
20448
  gebruiker_id: string | null;
18529
20449
  gebruiker_naam: string;
18530
20450
  gestart_op: string | null;
20451
+ herkomst: string | null;
18531
20452
  id: string;
18532
20453
  idempotentie_sleutel: string | null;
18533
20454
  is_herprint: boolean;
@@ -18560,6 +20481,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18560
20481
  };
18561
20482
  Returns: {
18562
20483
  action: string;
20484
+ attempt_started_at: string | null;
18563
20485
  attempts: number;
18564
20486
  connection_id: string | null;
18565
20487
  created_at: string;
@@ -18647,6 +20569,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18647
20569
  agent_naam: string;
18648
20570
  }[];
18649
20571
  };
20572
+ consume_van_inventory: {
20573
+ Args: {
20574
+ p_inventory_id: string;
20575
+ p_quantity: number;
20576
+ };
20577
+ Returns: {
20578
+ barcode: string | null;
20579
+ created_at: string;
20580
+ id: string;
20581
+ monteur_id: string | null;
20582
+ price_per_unit: number;
20583
+ product_name: string;
20584
+ quantity_current: number;
20585
+ quantity_min: number;
20586
+ unit: string;
20587
+ updated_at: string;
20588
+ };
20589
+ SetofOptions: {
20590
+ from: "*";
20591
+ to: "van_inventories";
20592
+ isOneToOne: true;
20593
+ isSetofReturn: false;
20594
+ };
20595
+ };
18650
20596
  control_get_todays_carts: {
18651
20597
  Args: never;
18652
20598
  Returns: {
@@ -18720,6 +20666,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
20666
  _user_id: string;
18721
20667
  };
18722
20668
  Returns: string;
20669
+ } | {
20670
+ Args: {
20671
+ _feature_id: string;
20672
+ _module_id: string;
20673
+ _user_id: string;
20674
+ };
20675
+ Returns: string;
18723
20676
  };
18724
20677
  email_auth_decrypt: {
18725
20678
  Args: {
@@ -18766,6 +20719,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18766
20719
  };
18767
20720
  Returns: string;
18768
20721
  };
20722
+ employee_day_hours: {
20723
+ Args: {
20724
+ _day: string;
20725
+ _employee_id: string;
20726
+ };
20727
+ Returns: number;
20728
+ };
18769
20729
  enqueue_cart_replan_if_unlocked: {
18770
20730
  Args: {
18771
20731
  p_order_id: string;
@@ -19071,12 +21031,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19071
21031
  Args: never;
19072
21032
  Returns: string;
19073
21033
  };
19074
- get_work_order_tenant_id: {
19075
- Args: {
19076
- wo_id: string;
19077
- };
19078
- Returns: string;
19079
- };
19080
21034
  has_module_permission: {
19081
21035
  Args: {
19082
21036
  _min: string;
@@ -19096,6 +21050,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19096
21050
  Args: never;
19097
21051
  Returns: boolean;
19098
21052
  };
21053
+ invoice_create_from_source: {
21054
+ Args: {
21055
+ _payload?: import("./types").Json;
21056
+ _source_id: string;
21057
+ _source_type: string;
21058
+ };
21059
+ Returns: import("./types").Json;
21060
+ };
21061
+ invoice_get_billable_lines: {
21062
+ Args: {
21063
+ _invoice_id: string;
21064
+ };
21065
+ Returns: import("./types").Json;
21066
+ };
21067
+ invoice_get_for_source: {
21068
+ Args: {
21069
+ _source_id: string;
21070
+ _source_type: string;
21071
+ };
21072
+ Returns: import("./types").Json;
21073
+ };
21074
+ invoice_get_summary: {
21075
+ Args: {
21076
+ _invoice_id: string;
21077
+ };
21078
+ Returns: import("./types").Json;
21079
+ };
21080
+ invoice_list_sources: {
21081
+ Args: {
21082
+ _limit?: number;
21083
+ _source_type?: string;
21084
+ };
21085
+ Returns: import("./types").Json;
21086
+ };
21087
+ invoice_recalc_totals: {
21088
+ Args: {
21089
+ _invoice_id: string;
21090
+ };
21091
+ Returns: import("./types").Json;
21092
+ };
19099
21093
  is_authenticated: {
19100
21094
  Args: never;
19101
21095
  Returns: boolean;
@@ -19110,6 +21104,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19110
21104
  };
19111
21105
  Returns: boolean;
19112
21106
  };
21107
+ is_time_log_week_locked: {
21108
+ Args: {
21109
+ p_employee_id: string;
21110
+ p_start_time: string;
21111
+ };
21112
+ Returns: boolean;
21113
+ };
19113
21114
  is_user_admin: {
19114
21115
  Args: never;
19115
21116
  Returns: boolean;
@@ -19118,11 +21119,58 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19118
21119
  Args: never;
19119
21120
  Returns: boolean;
19120
21121
  };
19121
- jwt_has_role: {
21122
+ itk_offerte_naar_werkbon: {
21123
+ Args: {
21124
+ _offerte_id: string;
21125
+ };
21126
+ Returns: string;
21127
+ };
21128
+ itk_offerte_restant_mandaat: {
21129
+ Args: {
21130
+ _exclude_offerte_id?: string;
21131
+ _werkbon_id: string;
21132
+ };
21133
+ Returns: number;
21134
+ };
21135
+ jwt_has_role: {
21136
+ Args: {
21137
+ _role: Database["public"]["Enums"]["app_role"];
21138
+ };
21139
+ Returns: boolean;
21140
+ };
21141
+ list_medewerkers: {
21142
+ Args: never;
21143
+ Returns: {
21144
+ avatar_url: string;
21145
+ color: string;
21146
+ display_name: string;
21147
+ email: string;
21148
+ hours_fri: number;
21149
+ hours_mon: number;
21150
+ hours_thu: number;
21151
+ hours_tue: number;
21152
+ hours_wed: number;
21153
+ id: string;
21154
+ is_active: boolean;
21155
+ leave_balance_hours: number;
21156
+ persnr: string;
21157
+ phone: string;
21158
+ roles: string[];
21159
+ }[];
21160
+ };
21161
+ list_monteur_absences: {
19122
21162
  Args: {
19123
- _role: Database["public"]["Enums"]["app_role"];
21163
+ _from: string;
21164
+ _to: string;
19124
21165
  };
19125
- Returns: boolean;
21166
+ Returns: {
21167
+ absence_date: string;
21168
+ end_time: string;
21169
+ full_day: boolean;
21170
+ kind: string;
21171
+ monteur_id: string;
21172
+ start_time: string;
21173
+ }[];
19126
21174
  };
19127
21175
  list_monteurs: {
19128
21176
  Args: never;
@@ -19456,17 +21504,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19456
21504
  Returns: string;
19457
21505
  };
19458
21506
  logistics_emit_event: {
19459
- Args: {
19460
- p_event_type: string;
19461
- p_idempotency_key?: string;
19462
- p_order_ref: string;
19463
- p_payload?: import("./types").Json;
19464
- p_shadow?: boolean;
19465
- p_source_module: string;
19466
- p_strategy_id?: string;
19467
- };
19468
- Returns: import("./types").Json;
19469
- } | {
19470
21507
  Args: {
19471
21508
  p_event_type: string;
19472
21509
  p_idempotency_key?: string;
@@ -19555,6 +21592,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19555
21592
  };
19556
21593
  Returns: string;
19557
21594
  };
21595
+ logistics_floriday_finish_push_v2: {
21596
+ Args: {
21597
+ _error?: string;
21598
+ _error_code?: string;
21599
+ _fulfillment_order_id?: string;
21600
+ _gateway_status?: number;
21601
+ _id: string;
21602
+ _max_age_hours?: number;
21603
+ _max_attempts?: number;
21604
+ _ok: boolean;
21605
+ _permanent?: boolean;
21606
+ _response?: import("./types").Json;
21607
+ _revision: number;
21608
+ _sent_hash?: string;
21609
+ };
21610
+ Returns: string;
21611
+ };
21612
+ logistics_floriday_finish_push_v3: {
21613
+ Args: {
21614
+ _error?: string;
21615
+ _error_code?: string;
21616
+ _fulfillment_order_id?: string;
21617
+ _gateway_status?: number;
21618
+ _id: string;
21619
+ _max_age_hours?: number;
21620
+ _max_attempts?: number;
21621
+ _outcome: string;
21622
+ _permanent?: boolean;
21623
+ _response?: import("./types").Json;
21624
+ _revision: number;
21625
+ _sent_hash?: string;
21626
+ _wait_max_age_hours?: number;
21627
+ };
21628
+ Returns: string;
21629
+ };
19558
21630
  logistics_floriday_prune_pushes: {
19559
21631
  Args: {
19560
21632
  _days?: number;
@@ -19615,12 +21687,79 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19615
21687
  };
19616
21688
  Returns: import("./types").Json;
19617
21689
  };
21690
+ logistics_plan_block: {
21691
+ Args: {
21692
+ p_details?: import("./types").Json;
21693
+ p_order_ids: string[];
21694
+ p_reason: string;
21695
+ };
21696
+ Returns: number;
21697
+ };
19618
21698
  logistics_plan_buffer_sql: {
19619
21699
  Args: {
19620
21700
  p_buffer_id: string;
19621
21701
  };
19622
21702
  Returns: number;
19623
21703
  };
21704
+ logistics_plan_claim: {
21705
+ Args: {
21706
+ p_limit?: number;
21707
+ };
21708
+ Returns: {
21709
+ attempts: number;
21710
+ id: string;
21711
+ order_id: string;
21712
+ }[];
21713
+ };
21714
+ logistics_plan_enqueue: {
21715
+ Args: {
21716
+ p_order_id: string;
21717
+ p_reason?: string;
21718
+ };
21719
+ Returns: undefined;
21720
+ };
21721
+ logistics_plan_ensure_event: {
21722
+ Args: {
21723
+ p_order_id: string;
21724
+ };
21725
+ Returns: boolean;
21726
+ };
21727
+ logistics_plan_finish: {
21728
+ Args: {
21729
+ p_error?: string;
21730
+ p_id: string;
21731
+ };
21732
+ Returns: undefined;
21733
+ };
21734
+ logistics_plan_impact_orders: {
21735
+ Args: {
21736
+ p_order_id: string;
21737
+ };
21738
+ Returns: {
21739
+ buffer_id: string;
21740
+ order_id: string;
21741
+ plan_date: string;
21742
+ }[];
21743
+ };
21744
+ logistics_plan_kick: {
21745
+ Args: never;
21746
+ Returns: undefined;
21747
+ };
21748
+ logistics_plan_prune: {
21749
+ Args: never;
21750
+ Returns: number;
21751
+ };
21752
+ logistics_plan_release_stale: {
21753
+ Args: never;
21754
+ Returns: number;
21755
+ };
21756
+ logistics_plan_setting: {
21757
+ Args: {
21758
+ p_default: number;
21759
+ p_key: string;
21760
+ };
21761
+ Returns: number;
21762
+ };
19624
21763
  logistics_queue_capacity_email: {
19625
21764
  Args: {
19626
21765
  p_alert_id: string;
@@ -19862,6 +22001,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19862
22001
  my_module_permissions: {
19863
22002
  Args: never;
19864
22003
  Returns: {
22004
+ feature_id: string;
19865
22005
  module_id: string;
19866
22006
  permission: string;
19867
22007
  }[];
@@ -19923,6 +22063,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19923
22063
  verwijderd: number;
19924
22064
  }[];
19925
22065
  };
22066
+ order_departure_proof: {
22067
+ Args: {
22068
+ p_order_id: string;
22069
+ };
22070
+ Returns: import("./types").Json;
22071
+ };
19926
22072
  order_number_prefix: {
19927
22073
  Args: {
19928
22074
  p_custom_fields?: import("./types").Json;
@@ -19930,6 +22076,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19930
22076
  };
19931
22077
  Returns: string;
19932
22078
  };
22079
+ pakket_suggesties_voor_tekst: {
22080
+ Args: {
22081
+ _tekst: string;
22082
+ };
22083
+ Returns: {
22084
+ hit_type: string;
22085
+ package_id: string;
22086
+ priority: number;
22087
+ }[];
22088
+ };
22089
+ pakket_voor_reistijd: {
22090
+ Args: {
22091
+ _minuten: number;
22092
+ };
22093
+ Returns: {
22094
+ package_id: string;
22095
+ priority: number;
22096
+ }[];
22097
+ };
19933
22098
  pick_active_printers: {
19934
22099
  Args: never;
19935
22100
  Returns: {
@@ -20037,6 +22202,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20037
22202
  isSetofReturn: false;
20038
22203
  };
20039
22204
  };
22205
+ pick_cleanup_maintenance: {
22206
+ Args: {
22207
+ _heartbeat_hours?: number;
22208
+ _log_days?: number;
22209
+ };
22210
+ Returns: import("./types").Json;
22211
+ };
20040
22212
  pick_complete_print: {
20041
22213
  Args: {
20042
22214
  _printer_id: string;
@@ -20088,6 +22260,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20088
22260
  Args: never;
20089
22261
  Returns: string;
20090
22262
  };
22263
+ pick_day_counts: {
22264
+ Args: {
22265
+ _pick_day?: string;
22266
+ _screen_id?: string;
22267
+ _station_id?: string;
22268
+ };
22269
+ Returns: import("./types").Json;
22270
+ };
20091
22271
  pick_document_layout_data: {
20092
22272
  Args: {
20093
22273
  _layout_id: string;
@@ -20115,6 +22295,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20115
22295
  };
20116
22296
  Returns: import("./types").Json;
20117
22297
  };
22298
+ pick_print_plekken: {
22299
+ Args: never;
22300
+ Returns: {
22301
+ id: string;
22302
+ naam: string;
22303
+ omschrijving: string;
22304
+ }[];
22305
+ };
22306
+ pick_reference_data_status: {
22307
+ Args: never;
22308
+ Returns: import("./types").Json;
22309
+ };
20118
22310
  pick_release_expired_locks: {
20119
22311
  Args: never;
20120
22312
  Returns: number;
@@ -20125,6 +22317,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20125
22317
  };
20126
22318
  Returns: undefined;
20127
22319
  };
22320
+ pick_reprint_document: {
22321
+ Args: {
22322
+ _queue_item_id: string;
22323
+ _session_id: string;
22324
+ _throttle_seconds?: number;
22325
+ };
22326
+ Returns: string;
22327
+ };
20128
22328
  pick_reset_print: {
20129
22329
  Args: {
20130
22330
  _queue_item_id: string;
@@ -20171,6 +22371,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20171
22371
  isSetofReturn: false;
20172
22372
  };
20173
22373
  };
22374
+ pick_seed_reference_data: {
22375
+ Args: never;
22376
+ Returns: import("./types").Json;
22377
+ };
22378
+ pick_set_station_print_plek: {
22379
+ Args: {
22380
+ _print_plek_id: string;
22381
+ _station_id: string;
22382
+ };
22383
+ Returns: string;
22384
+ };
20174
22385
  pick_station_dashboard: {
20175
22386
  Args: never;
20176
22387
  Returns: {
@@ -20183,6 +22394,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20183
22394
  waiting: number;
20184
22395
  }[];
20185
22396
  };
22397
+ pick_station_print_plek: {
22398
+ Args: {
22399
+ _station_id: string;
22400
+ };
22401
+ Returns: {
22402
+ naam: string;
22403
+ omschrijving: string;
22404
+ print_plek_id: string;
22405
+ }[];
22406
+ };
22407
+ pick_station_print_plekken: {
22408
+ Args: never;
22409
+ Returns: {
22410
+ naam: string;
22411
+ omschrijving: string;
22412
+ print_plek_id: string;
22413
+ station_id: string;
22414
+ }[];
22415
+ };
20186
22416
  pick_station_slugify: {
20187
22417
  Args: {
20188
22418
  _id: string;
@@ -20190,6 +22420,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20190
22420
  };
20191
22421
  Returns: string;
20192
22422
  };
22423
+ pick_sync_queue_throttled: {
22424
+ Args: {
22425
+ _min_seconds?: number;
22426
+ };
22427
+ Returns: import("./types").Json;
22428
+ };
20193
22429
  pickstation_get_orders_raw: {
20194
22430
  Args: never;
20195
22431
  Returns: import("./types").Json;
@@ -20251,6 +22487,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20251
22487
  };
20252
22488
  Returns: undefined;
20253
22489
  };
22490
+ quote_create_from_source: {
22491
+ Args: {
22492
+ _payload?: import("./types").Json;
22493
+ _source_id: string;
22494
+ _source_type: string;
22495
+ };
22496
+ Returns: string;
22497
+ };
22498
+ quote_get_billable_lines: {
22499
+ Args: {
22500
+ _quotation_id: string;
22501
+ };
22502
+ Returns: import("./types").Json;
22503
+ };
22504
+ quote_get_summary: {
22505
+ Args: {
22506
+ _quotation_id: string;
22507
+ };
22508
+ Returns: import("./types").Json;
22509
+ };
22510
+ quote_list_packages: {
22511
+ Args: never;
22512
+ Returns: import("./types").Json;
22513
+ };
22514
+ quote_list_sources: {
22515
+ Args: {
22516
+ _limit?: number;
22517
+ _source_type?: string;
22518
+ };
22519
+ Returns: import("./types").Json;
22520
+ };
20254
22521
  recompute_all_reserved_stock: {
20255
22522
  Args: never;
20256
22523
  Returns: undefined;
@@ -20304,6 +22571,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20304
22571
  };
20305
22572
  Returns: boolean;
20306
22573
  };
22574
+ release_stale_order_invoice_links: {
22575
+ Args: {
22576
+ _minutes?: number;
22577
+ };
22578
+ Returns: number;
22579
+ };
20307
22580
  reorder_customer_price_groups: {
20308
22581
  Args: {
20309
22582
  _ids: string[];
@@ -20742,6 +23015,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20742
23015
  };
20743
23016
  Returns: string[];
20744
23017
  };
23018
+ switch_time_log: {
23019
+ Args: {
23020
+ p_employee_id: string;
23021
+ p_start_lat?: number;
23022
+ p_start_lng?: number;
23023
+ p_type: string;
23024
+ p_work_order_id?: string;
23025
+ };
23026
+ Returns: import("./types").Json;
23027
+ };
20745
23028
  sync_all_layer_stocks: {
20746
23029
  Args: never;
20747
23030
  Returns: undefined;
@@ -20776,6 +23059,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20776
23059
  };
20777
23060
  Returns: undefined;
20778
23061
  };
23062
+ sync_sick_time_off: {
23063
+ Args: {
23064
+ _period_id: string;
23065
+ };
23066
+ Returns: number;
23067
+ };
20779
23068
  trade_item_stock_duplicates: {
20780
23069
  Args: never;
20781
23070
  Returns: {
@@ -20792,6 +23081,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20792
23081
  };
20793
23082
  Returns: boolean;
20794
23083
  };
23084
+ twinfield_cron_lock_acquire: {
23085
+ Args: {
23086
+ _job_name: string;
23087
+ _stale_seconds?: number;
23088
+ };
23089
+ Returns: boolean;
23090
+ };
23091
+ twinfield_cron_lock_release: {
23092
+ Args: {
23093
+ _error?: string;
23094
+ _job_name: string;
23095
+ };
23096
+ Returns: undefined;
23097
+ };
23098
+ twinfield_deactivate_connection: {
23099
+ Args: {
23100
+ p_connection_id: string;
23101
+ p_user_id: string;
23102
+ };
23103
+ Returns: import("./types").Json;
23104
+ };
23105
+ twinfield_handle_administration_change: {
23106
+ Args: {
23107
+ _administration_code: string;
23108
+ _user_id: string;
23109
+ };
23110
+ Returns: undefined;
23111
+ };
23112
+ twinfield_prune_push_queue: {
23113
+ Args: never;
23114
+ Returns: number;
23115
+ };
20795
23116
  twinfield_register_cron: {
20796
23117
  Args: {
20797
23118
  apikey?: string;
@@ -20807,10 +23128,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20807
23128
  p_company_name?: string;
20808
23129
  p_environment: string;
20809
23130
  p_office_code?: string;
23131
+ p_reset_sync?: boolean;
20810
23132
  p_status?: string;
20811
23133
  p_user_id: string;
20812
23134
  };
20813
- Returns: string;
23135
+ Returns: import("./types").Json;
20814
23136
  };
20815
23137
  upsert_auto_fulfillment_log: {
20816
23138
  Args: {
@@ -20831,11 +23153,43 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20831
23153
  Args: never;
20832
23154
  Returns: string;
20833
23155
  };
23156
+ werkbon_totalen: {
23157
+ Args: {
23158
+ _werkbon_id: string;
23159
+ };
23160
+ Returns: {
23161
+ materials_cents: number;
23162
+ packages_cents: number;
23163
+ packages_minutes: number;
23164
+ total_cents: number;
23165
+ total_minutes: number;
23166
+ }[];
23167
+ };
23168
+ wo_create_from_source: {
23169
+ Args: {
23170
+ _payload?: import("./types").Json;
23171
+ _source_id: string;
23172
+ _source_type: string;
23173
+ };
23174
+ Returns: string;
23175
+ };
23176
+ wo_get_billable_lines: {
23177
+ Args: {
23178
+ _work_order_id: string;
23179
+ };
23180
+ Returns: import("./types").Json;
23181
+ };
23182
+ wo_get_summary: {
23183
+ Args: {
23184
+ _work_order_id: string;
23185
+ };
23186
+ Returns: import("./types").Json;
23187
+ };
20834
23188
  };
20835
23189
  Enums: {
20836
23190
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20837
23191
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20838
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
23192
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
20839
23193
  doc_orientation: "portrait" | "landscape";
20840
23194
  exact_env: "staging" | "live";
20841
23195
  exact_push_status: "pending" | "sent" | "error";
@@ -20849,7 +23203,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20849
23203
  };
20850
23204
  CompositeTypes: { [_ in never]: never; };
20851
23205
  }, {
20852
- PostgrestVersion: "14.5";
23206
+ PostgrestVersion: "14.17";
20853
23207
  }>;
20854
23208
  userId: string;
20855
23209
  claims: import("@supabase/auth-js").JwtPayload;