@flowselections/pick-schermen-kwekers 1.0.10 → 1.0.12

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 (45) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/PickPublicPage.js +1 -1
  3. package/dist-lib/components/PickstationsPage.d.ts.map +1 -1
  4. package/dist-lib/components/PickstationsPage.js +23 -8
  5. package/dist-lib/components/TemplateModulePage.d.ts +2 -0
  6. package/dist-lib/components/TemplateModulePage.d.ts.map +1 -0
  7. package/dist-lib/components/TemplateModulePage.js +44 -0
  8. package/dist-lib/components/pick/LanguageTiles.d.ts.map +1 -1
  9. package/dist-lib/components/pick/LanguageTiles.js +3 -3
  10. package/dist-lib/components/pick/PickScherm.d.ts.map +1 -1
  11. package/dist-lib/components/pick/PickScherm.js +73 -11
  12. package/dist-lib/components/pick/QueueTable.d.ts.map +1 -1
  13. package/dist-lib/components/pick/QueueTable.js +22 -12
  14. package/dist-lib/hooks/usePickConfig.d.ts +6 -0
  15. package/dist-lib/hooks/usePickConfig.d.ts.map +1 -1
  16. package/dist-lib/hooks/usePickConfig.js +19 -0
  17. package/dist-lib/hooks/usePickQueue.d.ts +4 -0
  18. package/dist-lib/hooks/usePickQueue.d.ts.map +1 -1
  19. package/dist-lib/hooks/usePickQueue.js +38 -7
  20. package/dist-lib/hooks/usePrintJob.d.ts.map +1 -1
  21. package/dist-lib/hooks/usePrintJob.js +13 -2
  22. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2084 -310
  23. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.d.ts +2084 -310
  25. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/client.js +2 -1
  27. package/dist-lib/integrations/supabase/client.server.d.ts +2084 -310
  28. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  30. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  31. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  32. package/dist-lib/integrations/supabase/types.d.ts +2168 -351
  33. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.js +3 -0
  35. package/dist-lib/lib/layoutMaker/pakbonHtml.js +49 -49
  36. package/dist-lib/lib/layoutRenderer.js +17 -17
  37. package/dist-lib/lib/pickApi.d.ts +20 -5
  38. package/dist-lib/lib/pickApi.d.ts.map +1 -1
  39. package/dist-lib/lib/pickApi.js +76 -17
  40. package/dist-lib/lib/pickTypes.d.ts +15 -0
  41. package/dist-lib/lib/pickTypes.d.ts.map +1 -1
  42. package/dist-lib/lib/pickUiText.d.ts +29 -0
  43. package/dist-lib/lib/pickUiText.d.ts.map +1 -0
  44. package/dist-lib/lib/pickUiText.js +71 -0
  45. package/package.json +1 -1
@@ -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;
@@ -7229,8 +7562,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7229
7562
  };
7230
7563
  Relationships: [];
7231
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
+ };
7232
7619
  invoice_post_idempotency: {
7233
7620
  Row: {
7621
+ administration_code: string;
7234
7622
  client_request_id: string;
7235
7623
  completed_at: string | null;
7236
7624
  created_at: string;
@@ -7240,6 +7628,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7240
7628
  user_id: string;
7241
7629
  };
7242
7630
  Insert: {
7631
+ administration_code?: string;
7243
7632
  client_request_id: string;
7244
7633
  completed_at?: string | null;
7245
7634
  created_at?: string;
@@ -7249,6 +7638,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7249
7638
  user_id: string;
7250
7639
  };
7251
7640
  Update: {
7641
+ administration_code?: string;
7252
7642
  client_request_id?: string;
7253
7643
  completed_at?: string | null;
7254
7644
  created_at?: string;
@@ -7454,34 +7844,103 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7454
7844
  };
7455
7845
  Relationships: [];
7456
7846
  };
7457
- itk_contact_persons: {
7847
+ invoices: {
7458
7848
  Row: {
7459
7849
  created_at: string;
7460
- customer_id: string;
7461
- email: string | null;
7850
+ created_by: string | null;
7851
+ customer_id: string | null;
7852
+ customer_name: string | null;
7853
+ due_date: string | null;
7462
7854
  id: string;
7463
- name: string;
7464
- phone: string | null;
7465
- role: string | null;
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;
7466
7864
  updated_at: string;
7865
+ vat_cents: number;
7866
+ vat_rate: number;
7467
7867
  };
7468
7868
  Insert: {
7469
7869
  created_at?: string;
7470
- customer_id: string;
7471
- email?: string | null;
7870
+ created_by?: string | null;
7871
+ customer_id?: string | null;
7872
+ customer_name?: string | null;
7873
+ due_date?: string | null;
7472
7874
  id?: string;
7473
- name: string;
7474
- phone?: string | null;
7475
- role?: string | null;
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;
7476
7884
  updated_at?: string;
7885
+ vat_cents?: number;
7886
+ vat_rate?: number;
7477
7887
  };
7478
7888
  Update: {
7479
7889
  created_at?: string;
7480
- customer_id?: string;
7481
- email?: string | null;
7482
- id?: string;
7483
- name?: string;
7484
- phone?: string | null;
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;
7485
7944
  role?: string | null;
7486
7945
  updated_at?: string;
7487
7946
  };
@@ -7649,6 +8108,258 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7649
8108
  };
7650
8109
  Relationships: [];
7651
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
+ };
7652
8363
  itk_work_locations: {
7653
8364
  Row: {
7654
8365
  city: string | null;
@@ -7766,7 +8477,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7766
8477
  start_date: string;
7767
8478
  start_time: string | null;
7768
8479
  status: string;
7769
- tenant_id: string;
7770
8480
  updated_at: string;
7771
8481
  user_id: string;
7772
8482
  };
@@ -7784,7 +8494,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7784
8494
  start_date: string;
7785
8495
  start_time?: string | null;
7786
8496
  status?: string;
7787
- tenant_id?: string;
7788
8497
  updated_at?: string;
7789
8498
  user_id: string;
7790
8499
  };
@@ -7802,7 +8511,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7802
8511
  start_date?: string;
7803
8512
  start_time?: string | null;
7804
8513
  status?: string;
7805
- tenant_id?: string;
7806
8514
  updated_at?: string;
7807
8515
  user_id?: string;
7808
8516
  };
@@ -7810,13 +8518,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7810
8518
  foreignKeyName: "leave_requests_monteur_id_fkey";
7811
8519
  columns: ["monteur_id"];
7812
8520
  isOneToOne: false;
7813
- referencedRelation: "monteurs";
8521
+ referencedRelation: "profiles";
7814
8522
  referencedColumns: ["id"];
7815
8523
  }, {
7816
8524
  foreignKeyName: "leave_requests_user_id_fkey";
7817
8525
  columns: ["user_id"];
7818
8526
  isOneToOne: false;
7819
- referencedRelation: "monteurs";
8527
+ referencedRelation: "profiles";
7820
8528
  referencedColumns: ["id"];
7821
8529
  }];
7822
8530
  };
@@ -8552,6 +9260,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8552
9260
  id: string;
8553
9261
  last_error: string | null;
8554
9262
  last_error_at: string | null;
9263
+ last_error_code: string | null;
9264
+ last_gateway_status: number | null;
9265
+ last_response: import("./types").Json | null;
8555
9266
  last_sent_hash: string | null;
8556
9267
  locked_by: string | null;
8557
9268
  locked_until: string | null;
@@ -8572,6 +9283,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8572
9283
  id?: string;
8573
9284
  last_error?: string | null;
8574
9285
  last_error_at?: string | null;
9286
+ last_error_code?: string | null;
9287
+ last_gateway_status?: number | null;
9288
+ last_response?: import("./types").Json | null;
8575
9289
  last_sent_hash?: string | null;
8576
9290
  locked_by?: string | null;
8577
9291
  locked_until?: string | null;
@@ -8592,6 +9306,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8592
9306
  id?: string;
8593
9307
  last_error?: string | null;
8594
9308
  last_error_at?: string | null;
9309
+ last_error_code?: string | null;
9310
+ last_gateway_status?: number | null;
9311
+ last_response?: import("./types").Json | null;
8595
9312
  last_sent_hash?: string | null;
8596
9313
  locked_by?: string | null;
8597
9314
  locked_until?: string | null;
@@ -9971,38 +10688,181 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9971
10688
  };
9972
10689
  Relationships: [];
9973
10690
  };
9974
- module_permissions: {
10691
+ material_usage: {
9975
10692
  Row: {
9976
10693
  created_at: string;
9977
10694
  id: string;
9978
- module_id: string;
9979
- permission: string;
9980
- role: Database["public"]["Enums"]["app_role"];
10695
+ material_name: string;
10696
+ monteur_id: string | null;
10697
+ price_at_time: number;
10698
+ quantity_used: number;
9981
10699
  updated_at: string;
10700
+ van_inventory_id: string | null;
10701
+ work_order_id: string;
9982
10702
  };
9983
10703
  Insert: {
9984
10704
  created_at?: string;
9985
10705
  id?: string;
9986
- module_id: string;
9987
- permission: string;
9988
- role: Database["public"]["Enums"]["app_role"];
10706
+ material_name: string;
10707
+ monteur_id?: string | null;
10708
+ price_at_time?: number;
10709
+ quantity_used?: number;
9989
10710
  updated_at?: string;
10711
+ van_inventory_id?: string | null;
10712
+ work_order_id: string;
9990
10713
  };
9991
10714
  Update: {
9992
10715
  created_at?: string;
9993
10716
  id?: string;
9994
- module_id?: string;
9995
- permission?: string;
9996
- role?: Database["public"]["Enums"]["app_role"];
10717
+ material_name?: string;
10718
+ monteur_id?: string | null;
10719
+ price_at_time?: number;
10720
+ quantity_used?: number;
9997
10721
  updated_at?: string;
10722
+ van_inventory_id?: string | null;
10723
+ work_order_id?: string;
9998
10724
  };
9999
- Relationships: [];
10000
- };
10001
- module_registry: {
10725
+ Relationships: [{
10726
+ foreignKeyName: "material_usage_monteur_id_fkey";
10727
+ columns: ["monteur_id"];
10728
+ isOneToOne: false;
10729
+ referencedRelation: "profiles";
10730
+ referencedColumns: ["id"];
10731
+ }, {
10732
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10733
+ columns: ["van_inventory_id"];
10734
+ isOneToOne: false;
10735
+ referencedRelation: "van_inventories";
10736
+ referencedColumns: ["id"];
10737
+ }, {
10738
+ foreignKeyName: "material_usage_work_order_id_fkey";
10739
+ columns: ["work_order_id"];
10740
+ isOneToOne: false;
10741
+ referencedRelation: "work_orders";
10742
+ referencedColumns: ["id"];
10743
+ }];
10744
+ };
10745
+ medewerker_details: {
10746
+ Row: {
10747
+ color: string | null;
10748
+ created_at: string;
10749
+ hours_fri: number | null;
10750
+ hours_mon: number | null;
10751
+ hours_thu: number | null;
10752
+ hours_tue: number | null;
10753
+ hours_wed: number | null;
10754
+ id: string;
10755
+ is_active: boolean;
10756
+ leave_balance_hours: number;
10757
+ persnr: string | null;
10758
+ phone: string | null;
10759
+ profile_id: string;
10760
+ updated_at: string;
10761
+ };
10762
+ Insert: {
10763
+ color?: string | null;
10764
+ created_at?: string;
10765
+ hours_fri?: number | null;
10766
+ hours_mon?: number | null;
10767
+ hours_thu?: number | null;
10768
+ hours_tue?: number | null;
10769
+ hours_wed?: number | null;
10770
+ id?: string;
10771
+ is_active?: boolean;
10772
+ leave_balance_hours?: number;
10773
+ persnr?: string | null;
10774
+ phone?: string | null;
10775
+ profile_id: string;
10776
+ updated_at?: string;
10777
+ };
10778
+ Update: {
10779
+ color?: string | null;
10780
+ created_at?: string;
10781
+ hours_fri?: number | null;
10782
+ hours_mon?: number | null;
10783
+ hours_thu?: number | null;
10784
+ hours_tue?: number | null;
10785
+ hours_wed?: number | null;
10786
+ id?: string;
10787
+ is_active?: boolean;
10788
+ leave_balance_hours?: number;
10789
+ persnr?: string | null;
10790
+ phone?: string | null;
10791
+ profile_id?: string;
10792
+ updated_at?: string;
10793
+ };
10794
+ Relationships: [{
10795
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10796
+ columns: ["profile_id"];
10797
+ isOneToOne: true;
10798
+ referencedRelation: "profiles";
10799
+ referencedColumns: ["id"];
10800
+ }];
10801
+ };
10802
+ module_features: {
10803
+ Row: {
10804
+ created_at: string;
10805
+ feature_id: string;
10806
+ id: string;
10807
+ is_active: boolean;
10808
+ last_seen_at: string;
10809
+ module_id: string;
10810
+ name: string;
10811
+ };
10812
+ Insert: {
10813
+ created_at?: string;
10814
+ feature_id: string;
10815
+ id?: string;
10816
+ is_active?: boolean;
10817
+ last_seen_at?: string;
10818
+ module_id: string;
10819
+ name: string;
10820
+ };
10821
+ Update: {
10822
+ created_at?: string;
10823
+ feature_id?: string;
10824
+ id?: string;
10825
+ is_active?: boolean;
10826
+ last_seen_at?: string;
10827
+ module_id?: string;
10828
+ name?: string;
10829
+ };
10830
+ Relationships: [];
10831
+ };
10832
+ module_permissions: {
10833
+ Row: {
10834
+ created_at: string;
10835
+ id: string;
10836
+ module_id: string;
10837
+ permission: string;
10838
+ role: Database["public"]["Enums"]["app_role"];
10839
+ updated_at: string;
10840
+ };
10841
+ Insert: {
10842
+ created_at?: string;
10843
+ id?: string;
10844
+ module_id: string;
10845
+ permission: string;
10846
+ role: Database["public"]["Enums"]["app_role"];
10847
+ updated_at?: string;
10848
+ };
10849
+ Update: {
10850
+ created_at?: string;
10851
+ id?: string;
10852
+ module_id?: string;
10853
+ permission?: string;
10854
+ role?: Database["public"]["Enums"]["app_role"];
10855
+ updated_at?: string;
10856
+ };
10857
+ Relationships: [];
10858
+ };
10859
+ module_registry: {
10002
10860
  Row: {
10003
10861
  created_at: string;
10862
+ enforce: boolean;
10004
10863
  is_active: boolean;
10005
10864
  last_seen_at: string;
10865
+ missing_count: number;
10006
10866
  module_id: string;
10007
10867
  name: string;
10008
10868
  shell_id: string | null;
@@ -10010,8 +10870,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10010
10870
  };
10011
10871
  Insert: {
10012
10872
  created_at?: string;
10873
+ enforce?: boolean;
10013
10874
  is_active?: boolean;
10014
10875
  last_seen_at?: string;
10876
+ missing_count?: number;
10015
10877
  module_id: string;
10016
10878
  name: string;
10017
10879
  shell_id?: string | null;
@@ -10019,8 +10881,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10019
10881
  };
10020
10882
  Update: {
10021
10883
  created_at?: string;
10884
+ enforce?: boolean;
10022
10885
  is_active?: boolean;
10023
10886
  last_seen_at?: string;
10887
+ missing_count?: number;
10024
10888
  module_id?: string;
10025
10889
  name?: string;
10026
10890
  shell_id?: string | null;
@@ -10079,63 +10943,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10079
10943
  };
10080
10944
  Relationships: [];
10081
10945
  };
10082
- monteurs: {
10083
- Row: {
10084
- avatar_url: string | null;
10085
- color: string | null;
10086
- created_at: string;
10087
- email: string | null;
10088
- id: string;
10089
- is_active: boolean;
10090
- leave_balance_hours: number;
10091
- name: string;
10092
- persnr: number | null;
10093
- phone: string | null;
10094
- role: string;
10095
- tenant_id: string;
10096
- updated_at: string;
10097
- user_id: string | null;
10098
- };
10099
- Insert: {
10100
- avatar_url?: string | null;
10101
- color?: string | null;
10102
- created_at?: string;
10103
- email?: string | null;
10104
- id?: string;
10105
- is_active?: boolean;
10106
- leave_balance_hours?: number;
10107
- name: string;
10108
- persnr?: number | null;
10109
- phone?: string | null;
10110
- role?: string;
10111
- tenant_id: string;
10112
- updated_at?: string;
10113
- user_id?: string | null;
10114
- };
10115
- Update: {
10116
- avatar_url?: string | null;
10117
- color?: string | null;
10118
- created_at?: string;
10119
- email?: string | null;
10120
- id?: string;
10121
- is_active?: boolean;
10122
- leave_balance_hours?: number;
10123
- name?: string;
10124
- persnr?: number | null;
10125
- phone?: string | null;
10126
- role?: string;
10127
- tenant_id?: string;
10128
- updated_at?: string;
10129
- user_id?: string | null;
10130
- };
10131
- Relationships: [{
10132
- foreignKeyName: "monteurs_tenant_id_fkey";
10133
- columns: ["tenant_id"];
10134
- isOneToOne: false;
10135
- referencedRelation: "tenants";
10136
- referencedColumns: ["id"];
10137
- }];
10138
- };
10139
10946
  nmbrs_component_mapping: {
10140
10947
  Row: {
10141
10948
  created_at: string;
@@ -10206,13 +11013,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10206
11013
  nmbrs_employee_number?: string;
10207
11014
  updated_at?: string;
10208
11015
  };
10209
- Relationships: [{
10210
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10211
- columns: ["monteur_id"];
10212
- isOneToOne: true;
10213
- referencedRelation: "monteurs";
10214
- referencedColumns: ["id"];
10215
- }];
11016
+ Relationships: [];
10216
11017
  };
10217
11018
  nmbrs_export_lines: {
10218
11019
  Row: {
@@ -10261,12 +11062,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10261
11062
  wage_code?: string;
10262
11063
  };
10263
11064
  Relationships: [{
10264
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10265
- columns: ["monteur_id"];
10266
- isOneToOne: false;
10267
- referencedRelation: "monteurs";
10268
- referencedColumns: ["id"];
10269
- }, {
10270
11065
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10271
11066
  columns: ["run_id"];
10272
11067
  isOneToOne: false;
@@ -11089,6 +11884,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11089
11884
  };
11090
11885
  order_invoice_links: {
11091
11886
  Row: {
11887
+ administration_code: string | null;
11092
11888
  attempts: number;
11093
11889
  created_at: string;
11094
11890
  error_message: string | null;
@@ -11101,6 +11897,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11101
11897
  updated_at: string;
11102
11898
  };
11103
11899
  Insert: {
11900
+ administration_code?: string | null;
11104
11901
  attempts?: number;
11105
11902
  created_at?: string;
11106
11903
  error_message?: string | null;
@@ -11113,6 +11910,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11113
11910
  updated_at?: string;
11114
11911
  };
11115
11912
  Update: {
11913
+ administration_code?: string | null;
11116
11914
  attempts?: number;
11117
11915
  created_at?: string;
11118
11916
  error_message?: string | null;
@@ -11300,6 +12098,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11300
12098
  orders: {
11301
12099
  Row: {
11302
12100
  buffer_id: string | null;
12101
+ cancel_reason: string | null;
12102
+ cancelled_at: string | null;
11303
12103
  created_at: string;
11304
12104
  custom_fields: import("./types").Json;
11305
12105
  customer_id: string | null;
@@ -11322,6 +12122,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11322
12122
  };
11323
12123
  Insert: {
11324
12124
  buffer_id?: string | null;
12125
+ cancel_reason?: string | null;
12126
+ cancelled_at?: string | null;
11325
12127
  created_at?: string;
11326
12128
  custom_fields?: import("./types").Json;
11327
12129
  customer_id?: string | null;
@@ -11344,6 +12146,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11344
12146
  };
11345
12147
  Update: {
11346
12148
  buffer_id?: string | null;
12149
+ cancel_reason?: string | null;
12150
+ cancelled_at?: string | null;
11347
12151
  created_at?: string;
11348
12152
  custom_fields?: import("./types").Json;
11349
12153
  customer_id?: string | null;
@@ -12272,6 +13076,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12272
13076
  referencedColumns: ["id"];
12273
13077
  }];
12274
13078
  };
13079
+ pick_sync_state: {
13080
+ Row: {
13081
+ id: boolean;
13082
+ last_cleanup_at: string | null;
13083
+ last_sync_at: string | null;
13084
+ updated_at: string;
13085
+ };
13086
+ Insert: {
13087
+ id?: boolean;
13088
+ last_cleanup_at?: string | null;
13089
+ last_sync_at?: string | null;
13090
+ updated_at?: string;
13091
+ };
13092
+ Update: {
13093
+ id?: boolean;
13094
+ last_cleanup_at?: string | null;
13095
+ last_sync_at?: string | null;
13096
+ updated_at?: string;
13097
+ };
13098
+ Relationships: [];
13099
+ };
12275
13100
  pick_task_document_types: {
12276
13101
  Row: {
12277
13102
  created_at: string;
@@ -12554,6 +13379,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12554
13379
  gebruiker_id: string | null;
12555
13380
  gebruiker_naam: string;
12556
13381
  gestart_op: string | null;
13382
+ herkomst: string | null;
12557
13383
  id: string;
12558
13384
  idempotentie_sleutel: string | null;
12559
13385
  is_herprint: boolean;
@@ -12583,6 +13409,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12583
13409
  gebruiker_id?: string | null;
12584
13410
  gebruiker_naam?: string;
12585
13411
  gestart_op?: string | null;
13412
+ herkomst?: string | null;
12586
13413
  id?: string;
12587
13414
  idempotentie_sleutel?: string | null;
12588
13415
  is_herprint?: boolean;
@@ -12612,6 +13439,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12612
13439
  gebruiker_id?: string | null;
12613
13440
  gebruiker_naam?: string;
12614
13441
  gestart_op?: string | null;
13442
+ herkomst?: string | null;
12615
13443
  id?: string;
12616
13444
  idempotentie_sleutel?: string | null;
12617
13445
  is_herprint?: boolean;
@@ -12650,6 +13478,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12650
13478
  referencedColumns: ["id"];
12651
13479
  }];
12652
13480
  };
13481
+ print_plek_computers: {
13482
+ Row: {
13483
+ computer_naam: string;
13484
+ created_at: string;
13485
+ id: string;
13486
+ print_plek_id: string;
13487
+ updated_at: string;
13488
+ };
13489
+ Insert: {
13490
+ computer_naam: string;
13491
+ created_at?: string;
13492
+ id?: string;
13493
+ print_plek_id: string;
13494
+ updated_at?: string;
13495
+ };
13496
+ Update: {
13497
+ computer_naam?: string;
13498
+ created_at?: string;
13499
+ id?: string;
13500
+ print_plek_id?: string;
13501
+ updated_at?: string;
13502
+ };
13503
+ Relationships: [{
13504
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13505
+ columns: ["print_plek_id"];
13506
+ isOneToOne: false;
13507
+ referencedRelation: "print_plekken";
13508
+ referencedColumns: ["id"];
13509
+ }];
13510
+ };
13511
+ print_plek_koppelingen: {
13512
+ Row: {
13513
+ bron: string;
13514
+ bron_id: string;
13515
+ created_at: string;
13516
+ id: string;
13517
+ label: string | null;
13518
+ print_plek_id: string;
13519
+ updated_at: string;
13520
+ };
13521
+ Insert: {
13522
+ bron: string;
13523
+ bron_id: string;
13524
+ created_at?: string;
13525
+ id?: string;
13526
+ label?: string | null;
13527
+ print_plek_id: string;
13528
+ updated_at?: string;
13529
+ };
13530
+ Update: {
13531
+ bron?: string;
13532
+ bron_id?: string;
13533
+ created_at?: string;
13534
+ id?: string;
13535
+ label?: string | null;
13536
+ print_plek_id?: string;
13537
+ updated_at?: string;
13538
+ };
13539
+ Relationships: [{
13540
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13541
+ columns: ["print_plek_id"];
13542
+ isOneToOne: false;
13543
+ referencedRelation: "print_plekken";
13544
+ referencedColumns: ["id"];
13545
+ }];
13546
+ };
13547
+ print_plekken: {
13548
+ Row: {
13549
+ actief: boolean;
13550
+ created_at: string;
13551
+ id: string;
13552
+ naam: string;
13553
+ omschrijving: string | null;
13554
+ updated_at: string;
13555
+ };
13556
+ Insert: {
13557
+ actief?: boolean;
13558
+ created_at?: string;
13559
+ id?: string;
13560
+ naam: string;
13561
+ omschrijving?: string | null;
13562
+ updated_at?: string;
13563
+ };
13564
+ Update: {
13565
+ actief?: boolean;
13566
+ created_at?: string;
13567
+ id?: string;
13568
+ naam?: string;
13569
+ omschrijving?: string | null;
13570
+ updated_at?: string;
13571
+ };
13572
+ Relationships: [];
13573
+ };
12653
13574
  print_queue_runners: {
12654
13575
  Row: {
12655
13576
  actief: boolean;
@@ -12657,6 +13578,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12657
13578
  created_at: string;
12658
13579
  id: string;
12659
13580
  laatst_gezien: string;
13581
+ laatste_fout: string | null;
13582
+ laatste_request_id: number | null;
13583
+ mislukte_posts: number;
12660
13584
  tick_sleutel: string;
12661
13585
  updated_at: string;
12662
13586
  };
@@ -12666,6 +13590,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12666
13590
  created_at?: string;
12667
13591
  id?: string;
12668
13592
  laatst_gezien?: string;
13593
+ laatste_fout?: string | null;
13594
+ laatste_request_id?: number | null;
13595
+ mislukte_posts?: number;
12669
13596
  tick_sleutel?: string;
12670
13597
  updated_at?: string;
12671
13598
  };
@@ -12675,6 +13602,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12675
13602
  created_at?: string;
12676
13603
  id?: string;
12677
13604
  laatst_gezien?: string;
13605
+ laatste_fout?: string | null;
13606
+ laatste_request_id?: number | null;
13607
+ mislukte_posts?: number;
12678
13608
  tick_sleutel?: string;
12679
13609
  updated_at?: string;
12680
13610
  };
@@ -13397,7 +14327,67 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13397
14327
  };
13398
14328
  Relationships: [];
13399
14329
  };
13400
- profiles: {
14330
+ profile_modules: {
14331
+ Row: {
14332
+ created_at: string;
14333
+ id: string;
14334
+ module_id: string;
14335
+ profile_id: string;
14336
+ };
14337
+ Insert: {
14338
+ created_at?: string;
14339
+ id?: string;
14340
+ module_id: string;
14341
+ profile_id: string;
14342
+ };
14343
+ Update: {
14344
+ created_at?: string;
14345
+ id?: string;
14346
+ module_id?: string;
14347
+ profile_id?: string;
14348
+ };
14349
+ Relationships: [{
14350
+ foreignKeyName: "profile_modules_profile_id_fkey";
14351
+ columns: ["profile_id"];
14352
+ isOneToOne: false;
14353
+ referencedRelation: "profiles_org";
14354
+ referencedColumns: ["id"];
14355
+ }];
14356
+ };
14357
+ profile_roles: {
14358
+ Row: {
14359
+ created_at: string;
14360
+ id: string;
14361
+ profile_id: string;
14362
+ role_id: string;
14363
+ };
14364
+ Insert: {
14365
+ created_at?: string;
14366
+ id?: string;
14367
+ profile_id: string;
14368
+ role_id: string;
14369
+ };
14370
+ Update: {
14371
+ created_at?: string;
14372
+ id?: string;
14373
+ profile_id?: string;
14374
+ role_id?: string;
14375
+ };
14376
+ Relationships: [{
14377
+ foreignKeyName: "profile_roles_profile_id_fkey";
14378
+ columns: ["profile_id"];
14379
+ isOneToOne: false;
14380
+ referencedRelation: "profiles_org";
14381
+ referencedColumns: ["id"];
14382
+ }, {
14383
+ foreignKeyName: "profile_roles_role_id_fkey";
14384
+ columns: ["role_id"];
14385
+ isOneToOne: false;
14386
+ referencedRelation: "roles";
14387
+ referencedColumns: ["id"];
14388
+ }];
14389
+ };
14390
+ profiles: {
13401
14391
  Row: {
13402
14392
  address: string | null;
13403
14393
  avatar_url: string | null;
@@ -13442,6 +14432,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13442
14432
  referencedColumns: ["id"];
13443
14433
  }];
13444
14434
  };
14435
+ profiles_org: {
14436
+ Row: {
14437
+ created_at: string;
14438
+ id: string;
14439
+ is_default: boolean;
14440
+ name: string;
14441
+ tenant_id: string | null;
14442
+ updated_at: string;
14443
+ };
14444
+ Insert: {
14445
+ created_at?: string;
14446
+ id?: string;
14447
+ is_default?: boolean;
14448
+ name: string;
14449
+ tenant_id?: string | null;
14450
+ updated_at?: string;
14451
+ };
14452
+ Update: {
14453
+ created_at?: string;
14454
+ id?: string;
14455
+ is_default?: boolean;
14456
+ name?: string;
14457
+ tenant_id?: string | null;
14458
+ updated_at?: string;
14459
+ };
14460
+ Relationships: [{
14461
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14462
+ columns: ["tenant_id"];
14463
+ isOneToOne: false;
14464
+ referencedRelation: "tenants";
14465
+ referencedColumns: ["id"];
14466
+ }];
14467
+ };
13445
14468
  projects: {
13446
14469
  Row: {
13447
14470
  contact_name: string | null;
@@ -14183,6 +15206,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14183
15206
  referencedColumns: ["id"];
14184
15207
  }];
14185
15208
  };
15209
+ role_assignments: {
15210
+ Row: {
15211
+ created_at: string;
15212
+ id: string;
15213
+ role_id: string;
15214
+ user_id: string;
15215
+ };
15216
+ Insert: {
15217
+ created_at?: string;
15218
+ id?: string;
15219
+ role_id: string;
15220
+ user_id: string;
15221
+ };
15222
+ Update: {
15223
+ created_at?: string;
15224
+ id?: string;
15225
+ role_id?: string;
15226
+ user_id?: string;
15227
+ };
15228
+ Relationships: [{
15229
+ foreignKeyName: "role_assignments_role_id_fkey";
15230
+ columns: ["role_id"];
15231
+ isOneToOne: false;
15232
+ referencedRelation: "roles";
15233
+ referencedColumns: ["id"];
15234
+ }];
15235
+ };
15236
+ role_permissions: {
15237
+ Row: {
15238
+ can_edit: boolean;
15239
+ can_view: boolean;
15240
+ feature_id: string;
15241
+ id: string;
15242
+ module_id: string;
15243
+ role_id: string;
15244
+ updated_at: string;
15245
+ };
15246
+ Insert: {
15247
+ can_edit?: boolean;
15248
+ can_view?: boolean;
15249
+ feature_id?: string;
15250
+ id?: string;
15251
+ module_id: string;
15252
+ role_id: string;
15253
+ updated_at?: string;
15254
+ };
15255
+ Update: {
15256
+ can_edit?: boolean;
15257
+ can_view?: boolean;
15258
+ feature_id?: string;
15259
+ id?: string;
15260
+ module_id?: string;
15261
+ role_id?: string;
15262
+ updated_at?: string;
15263
+ };
15264
+ Relationships: [{
15265
+ foreignKeyName: "role_permissions_role_id_fkey";
15266
+ columns: ["role_id"];
15267
+ isOneToOne: false;
15268
+ referencedRelation: "roles";
15269
+ referencedColumns: ["id"];
15270
+ }];
15271
+ };
15272
+ roles: {
15273
+ Row: {
15274
+ created_at: string;
15275
+ id: string;
15276
+ is_protected: boolean;
15277
+ key: string;
15278
+ name: string;
15279
+ updated_at: string;
15280
+ };
15281
+ Insert: {
15282
+ created_at?: string;
15283
+ id?: string;
15284
+ is_protected?: boolean;
15285
+ key: string;
15286
+ name: string;
15287
+ updated_at?: string;
15288
+ };
15289
+ Update: {
15290
+ created_at?: string;
15291
+ id?: string;
15292
+ is_protected?: boolean;
15293
+ key?: string;
15294
+ name?: string;
15295
+ updated_at?: string;
15296
+ };
15297
+ Relationships: [];
15298
+ };
14186
15299
  rooms: {
14187
15300
  Row: {
14188
15301
  capacity: number;
@@ -14526,6 +15639,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14526
15639
  type: string;
14527
15640
  updated_at: string;
14528
15641
  vereist_medewerker: boolean;
15642
+ werkplek: string | null;
14529
15643
  };
14530
15644
  Insert: {
14531
15645
  actief?: boolean;
@@ -14539,6 +15653,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14539
15653
  type?: string;
14540
15654
  updated_at?: string;
14541
15655
  vereist_medewerker?: boolean;
15656
+ werkplek?: string | null;
14542
15657
  };
14543
15658
  Update: {
14544
15659
  actief?: boolean;
@@ -14552,9 +15667,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14552
15667
  type?: string;
14553
15668
  updated_at?: string;
14554
15669
  vereist_medewerker?: boolean;
15670
+ werkplek?: string | null;
14555
15671
  };
14556
15672
  Relationships: [];
14557
15673
  };
15674
+ sick_periods: {
15675
+ Row: {
15676
+ created_at: string;
15677
+ employee_id: string;
15678
+ end_date: string | null;
15679
+ id: string;
15680
+ notes: string | null;
15681
+ start_date: string;
15682
+ updated_at: string;
15683
+ };
15684
+ Insert: {
15685
+ created_at?: string;
15686
+ employee_id: string;
15687
+ end_date?: string | null;
15688
+ id?: string;
15689
+ notes?: string | null;
15690
+ start_date: string;
15691
+ updated_at?: string;
15692
+ };
15693
+ Update: {
15694
+ created_at?: string;
15695
+ employee_id?: string;
15696
+ end_date?: string | null;
15697
+ id?: string;
15698
+ notes?: string | null;
15699
+ start_date?: string;
15700
+ updated_at?: string;
15701
+ };
15702
+ Relationships: [{
15703
+ foreignKeyName: "sick_periods_employee_id_fkey";
15704
+ columns: ["employee_id"];
15705
+ isOneToOne: false;
15706
+ referencedRelation: "profiles";
15707
+ referencedColumns: ["id"];
15708
+ }];
15709
+ };
14558
15710
  sidebar_config: {
14559
15711
  Row: {
14560
15712
  id: string;
@@ -14852,6 +16004,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14852
16004
  };
14853
16005
  Relationships: [];
14854
16006
  };
16007
+ time_compensation_entries: {
16008
+ Row: {
16009
+ created_at: string;
16010
+ employee_id: string;
16011
+ entry_date: string;
16012
+ id: string;
16013
+ km: number;
16014
+ meal_allowance: number;
16015
+ notes: string | null;
16016
+ standby_evening: number;
16017
+ standby_weekend: number;
16018
+ tvt_change: number;
16019
+ updated_at: string;
16020
+ };
16021
+ Insert: {
16022
+ created_at?: string;
16023
+ employee_id: string;
16024
+ entry_date: string;
16025
+ id?: string;
16026
+ km?: number;
16027
+ meal_allowance?: number;
16028
+ notes?: string | null;
16029
+ standby_evening?: number;
16030
+ standby_weekend?: number;
16031
+ tvt_change?: number;
16032
+ updated_at?: string;
16033
+ };
16034
+ Update: {
16035
+ created_at?: string;
16036
+ employee_id?: string;
16037
+ entry_date?: string;
16038
+ id?: string;
16039
+ km?: number;
16040
+ meal_allowance?: number;
16041
+ notes?: string | null;
16042
+ standby_evening?: number;
16043
+ standby_weekend?: number;
16044
+ tvt_change?: number;
16045
+ updated_at?: string;
16046
+ };
16047
+ Relationships: [{
16048
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
16049
+ columns: ["employee_id"];
16050
+ isOneToOne: false;
16051
+ referencedRelation: "profiles";
16052
+ referencedColumns: ["id"];
16053
+ }];
16054
+ };
14855
16055
  time_entries: {
14856
16056
  Row: {
14857
16057
  created_at: string;
@@ -14886,65 +16086,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14886
16086
  undertime?: number;
14887
16087
  updated_at?: string;
14888
16088
  };
16089
+ Relationships: [];
16090
+ };
16091
+ time_log_week_approvals: {
16092
+ Row: {
16093
+ approved_at: string | null;
16094
+ approved_by: string | null;
16095
+ created_at: string;
16096
+ employee_id: string;
16097
+ id: string;
16098
+ locked: boolean;
16099
+ notes: string | null;
16100
+ status: string;
16101
+ submitted_at: string | null;
16102
+ updated_at: string;
16103
+ week_start: string;
16104
+ };
16105
+ Insert: {
16106
+ approved_at?: string | null;
16107
+ approved_by?: string | null;
16108
+ created_at?: string;
16109
+ employee_id: string;
16110
+ id?: string;
16111
+ locked?: boolean;
16112
+ notes?: string | null;
16113
+ status?: string;
16114
+ submitted_at?: string | null;
16115
+ updated_at?: string;
16116
+ week_start: string;
16117
+ };
16118
+ Update: {
16119
+ approved_at?: string | null;
16120
+ approved_by?: string | null;
16121
+ created_at?: string;
16122
+ employee_id?: string;
16123
+ id?: string;
16124
+ locked?: boolean;
16125
+ notes?: string | null;
16126
+ status?: string;
16127
+ submitted_at?: string | null;
16128
+ updated_at?: string;
16129
+ week_start?: string;
16130
+ };
14889
16131
  Relationships: [{
14890
- foreignKeyName: "time_entries_employee_id_fkey";
16132
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14891
16133
  columns: ["employee_id"];
14892
16134
  isOneToOne: false;
14893
- referencedRelation: "monteurs";
16135
+ referencedRelation: "profiles";
14894
16136
  referencedColumns: ["id"];
14895
16137
  }];
14896
16138
  };
14897
16139
  time_logs: {
14898
16140
  Row: {
16141
+ auto_stop_reason: string | null;
16142
+ auto_stopped: boolean;
14899
16143
  created_at: string;
16144
+ current_latitude: number | null;
16145
+ current_longitude: number | null;
16146
+ current_position_updated_at: string | null;
14900
16147
  employee_id: string;
16148
+ end_latitude: number | null;
16149
+ end_longitude: number | null;
14901
16150
  end_time: string | null;
16151
+ eta_distance_km: number | null;
16152
+ eta_minutes: number | null;
16153
+ eta_updated_at: string | null;
16154
+ hour_category: string | null;
14902
16155
  id: string;
16156
+ last_reminder_at: string | null;
14903
16157
  notes: string | null;
14904
16158
  overtime_hours: number;
14905
16159
  overtime_type: string | null;
14906
16160
  regular_hours: number;
16161
+ reminder_count: number;
16162
+ requires_review: boolean;
16163
+ start_latitude: number | null;
16164
+ start_longitude: number | null;
14907
16165
  start_time: string;
14908
16166
  travel_cost: number | null;
14909
16167
  travel_distance_km: number | null;
16168
+ travel_duration_min: number | null;
16169
+ travel_time_minutes: number | null;
14910
16170
  type: string;
14911
16171
  updated_at: string;
16172
+ work_order_id: string | null;
14912
16173
  };
14913
16174
  Insert: {
16175
+ auto_stop_reason?: string | null;
16176
+ auto_stopped?: boolean;
14914
16177
  created_at?: string;
16178
+ current_latitude?: number | null;
16179
+ current_longitude?: number | null;
16180
+ current_position_updated_at?: string | null;
14915
16181
  employee_id: string;
16182
+ end_latitude?: number | null;
16183
+ end_longitude?: number | null;
14916
16184
  end_time?: string | null;
16185
+ eta_distance_km?: number | null;
16186
+ eta_minutes?: number | null;
16187
+ eta_updated_at?: string | null;
16188
+ hour_category?: string | null;
14917
16189
  id?: string;
16190
+ last_reminder_at?: string | null;
14918
16191
  notes?: string | null;
14919
16192
  overtime_hours?: number;
14920
16193
  overtime_type?: string | null;
14921
16194
  regular_hours?: number;
16195
+ reminder_count?: number;
16196
+ requires_review?: boolean;
16197
+ start_latitude?: number | null;
16198
+ start_longitude?: number | null;
14922
16199
  start_time?: string;
14923
16200
  travel_cost?: number | null;
14924
16201
  travel_distance_km?: number | null;
16202
+ travel_duration_min?: number | null;
16203
+ travel_time_minutes?: number | null;
14925
16204
  type: string;
14926
16205
  updated_at?: string;
16206
+ work_order_id?: string | null;
14927
16207
  };
14928
16208
  Update: {
16209
+ auto_stop_reason?: string | null;
16210
+ auto_stopped?: boolean;
14929
16211
  created_at?: string;
16212
+ current_latitude?: number | null;
16213
+ current_longitude?: number | null;
16214
+ current_position_updated_at?: string | null;
14930
16215
  employee_id?: string;
16216
+ end_latitude?: number | null;
16217
+ end_longitude?: number | null;
14931
16218
  end_time?: string | null;
16219
+ eta_distance_km?: number | null;
16220
+ eta_minutes?: number | null;
16221
+ eta_updated_at?: string | null;
16222
+ hour_category?: string | null;
14932
16223
  id?: string;
16224
+ last_reminder_at?: string | null;
14933
16225
  notes?: string | null;
14934
16226
  overtime_hours?: number;
14935
16227
  overtime_type?: string | null;
14936
16228
  regular_hours?: number;
16229
+ reminder_count?: number;
16230
+ requires_review?: boolean;
16231
+ start_latitude?: number | null;
16232
+ start_longitude?: number | null;
14937
16233
  start_time?: string;
14938
16234
  travel_cost?: number | null;
14939
16235
  travel_distance_km?: number | null;
16236
+ travel_duration_min?: number | null;
16237
+ travel_time_minutes?: number | null;
14940
16238
  type?: string;
14941
16239
  updated_at?: string;
16240
+ work_order_id?: string | null;
14942
16241
  };
14943
16242
  Relationships: [{
14944
16243
  foreignKeyName: "time_logs_employee_id_fkey";
14945
16244
  columns: ["employee_id"];
14946
16245
  isOneToOne: false;
14947
- referencedRelation: "monteurs";
16246
+ referencedRelation: "profiles";
16247
+ referencedColumns: ["id"];
16248
+ }, {
16249
+ foreignKeyName: "time_logs_work_order_id_fkey";
16250
+ columns: ["work_order_id"];
16251
+ isOneToOne: false;
16252
+ referencedRelation: "work_orders";
14948
16253
  referencedColumns: ["id"];
14949
16254
  }];
14950
16255
  };
@@ -14983,7 +16288,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14983
16288
  foreignKeyName: "time_off_entries_employee_id_fkey";
14984
16289
  columns: ["employee_id"];
14985
16290
  isOneToOne: false;
14986
- referencedRelation: "monteurs";
16291
+ referencedRelation: "profiles";
14987
16292
  referencedColumns: ["id"];
14988
16293
  }];
14989
16294
  };
@@ -15232,12 +16537,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15232
16537
  company_name: string | null;
15233
16538
  connected_at: string | null;
15234
16539
  created_at: string;
16540
+ disconnected_at: string | null;
15235
16541
  environment: string;
15236
16542
  id: string;
16543
+ initial_sync_completed_at: string | null;
16544
+ initial_sync_started_at: string | null;
15237
16545
  is_active: boolean;
15238
16546
  label: string | null;
15239
16547
  office_code: string | null;
15240
16548
  redirect_uri: string | null;
16549
+ superseded_at: string | null;
15241
16550
  updated_at: string;
15242
16551
  user_id: string;
15243
16552
  };
@@ -15248,12 +16557,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15248
16557
  company_name?: string | null;
15249
16558
  connected_at?: string | null;
15250
16559
  created_at?: string;
16560
+ disconnected_at?: string | null;
15251
16561
  environment: string;
15252
16562
  id?: string;
16563
+ initial_sync_completed_at?: string | null;
16564
+ initial_sync_started_at?: string | null;
15253
16565
  is_active?: boolean;
15254
16566
  label?: string | null;
15255
16567
  office_code?: string | null;
15256
16568
  redirect_uri?: string | null;
16569
+ superseded_at?: string | null;
15257
16570
  updated_at?: string;
15258
16571
  user_id: string;
15259
16572
  };
@@ -15264,12 +16577,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15264
16577
  company_name?: string | null;
15265
16578
  connected_at?: string | null;
15266
16579
  created_at?: string;
16580
+ disconnected_at?: string | null;
15267
16581
  environment?: string;
15268
16582
  id?: string;
16583
+ initial_sync_completed_at?: string | null;
16584
+ initial_sync_started_at?: string | null;
15269
16585
  is_active?: boolean;
15270
16586
  label?: string | null;
15271
16587
  office_code?: string | null;
15272
16588
  redirect_uri?: string | null;
16589
+ superseded_at?: string | null;
15273
16590
  updated_at?: string;
15274
16591
  user_id?: string;
15275
16592
  };
@@ -15293,9 +16610,43 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15293
16610
  };
15294
16611
  Relationships: [];
15295
16612
  };
16613
+ twinfield_cron_locks: {
16614
+ Row: {
16615
+ created_at: string;
16616
+ heartbeat_at: string;
16617
+ job_name: string;
16618
+ last_error: string | null;
16619
+ last_finished_at: string | null;
16620
+ locked_at: string;
16621
+ run_id: string;
16622
+ updated_at: string;
16623
+ };
16624
+ Insert: {
16625
+ created_at?: string;
16626
+ heartbeat_at?: string;
16627
+ job_name: string;
16628
+ last_error?: string | null;
16629
+ last_finished_at?: string | null;
16630
+ locked_at?: string;
16631
+ run_id?: string;
16632
+ updated_at?: string;
16633
+ };
16634
+ Update: {
16635
+ created_at?: string;
16636
+ heartbeat_at?: string;
16637
+ job_name?: string;
16638
+ last_error?: string | null;
16639
+ last_finished_at?: string | null;
16640
+ locked_at?: string;
16641
+ run_id?: string;
16642
+ updated_at?: string;
16643
+ };
16644
+ Relationships: [];
16645
+ };
15296
16646
  twinfield_customers: {
15297
16647
  Row: {
15298
16648
  address: string | null;
16649
+ administration_code: string;
15299
16650
  city: string | null;
15300
16651
  country: string | null;
15301
16652
  created_at: string;
@@ -15315,6 +16666,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15315
16666
  };
15316
16667
  Insert: {
15317
16668
  address?: string | null;
16669
+ administration_code?: string;
15318
16670
  city?: string | null;
15319
16671
  country?: string | null;
15320
16672
  created_at?: string;
@@ -15334,6 +16686,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15334
16686
  };
15335
16687
  Update: {
15336
16688
  address?: string | null;
16689
+ administration_code?: string;
15337
16690
  city?: string | null;
15338
16691
  country?: string | null;
15339
16692
  created_at?: string;
@@ -15547,7 +16900,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15547
16900
  };
15548
16901
  twinfield_invoice_settings: {
15549
16902
  Row: {
16903
+ administration_code: string | null;
15550
16904
  auto_invoice_enabled: boolean;
16905
+ auto_invoice_start_date: string | null;
15551
16906
  auto_invoice_trigger_statuses: string[];
15552
16907
  created_at: string;
15553
16908
  debtor_gl_account: string;
@@ -15561,15 +16916,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15561
16916
  invoice_enabled_fo: boolean;
15562
16917
  invoice_enabled_ho: boolean;
15563
16918
  invoice_enabled_mo: boolean;
16919
+ needs_review: boolean;
15564
16920
  payment_gl_account: string;
15565
16921
  payment_journal_code: string;
16922
+ settings_confirmed_at: string | null;
15566
16923
  updated_at: string;
15567
16924
  user_id: string;
15568
16925
  vat_code_eu_reverse: string | null;
15569
16926
  vat_code_export: string | null;
15570
16927
  };
15571
16928
  Insert: {
16929
+ administration_code?: string | null;
15572
16930
  auto_invoice_enabled?: boolean;
16931
+ auto_invoice_start_date?: string | null;
15573
16932
  auto_invoice_trigger_statuses?: string[];
15574
16933
  created_at?: string;
15575
16934
  debtor_gl_account?: string;
@@ -15583,15 +16942,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15583
16942
  invoice_enabled_fo?: boolean;
15584
16943
  invoice_enabled_ho?: boolean;
15585
16944
  invoice_enabled_mo?: boolean;
16945
+ needs_review?: boolean;
15586
16946
  payment_gl_account?: string;
15587
16947
  payment_journal_code?: string;
16948
+ settings_confirmed_at?: string | null;
15588
16949
  updated_at?: string;
15589
16950
  user_id: string;
15590
16951
  vat_code_eu_reverse?: string | null;
15591
16952
  vat_code_export?: string | null;
15592
16953
  };
15593
16954
  Update: {
16955
+ administration_code?: string | null;
15594
16956
  auto_invoice_enabled?: boolean;
16957
+ auto_invoice_start_date?: string | null;
15595
16958
  auto_invoice_trigger_statuses?: string[];
15596
16959
  created_at?: string;
15597
16960
  debtor_gl_account?: string;
@@ -15605,8 +16968,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15605
16968
  invoice_enabled_fo?: boolean;
15606
16969
  invoice_enabled_ho?: boolean;
15607
16970
  invoice_enabled_mo?: boolean;
16971
+ needs_review?: boolean;
15608
16972
  payment_gl_account?: string;
15609
16973
  payment_journal_code?: string;
16974
+ settings_confirmed_at?: string | null;
15610
16975
  updated_at?: string;
15611
16976
  user_id?: string;
15612
16977
  vat_code_eu_reverse?: string | null;
@@ -15893,6 +17258,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15893
17258
  twinfield_push_queue: {
15894
17259
  Row: {
15895
17260
  action: string;
17261
+ attempt_started_at: string | null;
15896
17262
  attempts: number;
15897
17263
  connection_id: string | null;
15898
17264
  created_at: string;
@@ -15909,6 +17275,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15909
17275
  };
15910
17276
  Insert: {
15911
17277
  action?: string;
17278
+ attempt_started_at?: string | null;
15912
17279
  attempts?: number;
15913
17280
  connection_id?: string | null;
15914
17281
  created_at?: string;
@@ -15925,6 +17292,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15925
17292
  };
15926
17293
  Update: {
15927
17294
  action?: string;
17295
+ attempt_started_at?: string | null;
15928
17296
  attempts?: number;
15929
17297
  connection_id?: string | null;
15930
17298
  created_at?: string;
@@ -16122,13 +17490,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16122
17490
  workday_end?: string | null;
16123
17491
  workday_start?: string | null;
16124
17492
  };
16125
- Relationships: [{
16126
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16127
- columns: ["monteur_id"];
16128
- isOneToOne: true;
16129
- referencedRelation: "monteurs";
16130
- referencedColumns: ["id"];
16131
- }];
17493
+ Relationships: [];
16132
17494
  };
16133
17495
  uren_entries: {
16134
17496
  Row: {
@@ -16148,185 +17510,71 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16148
17510
  Insert: {
16149
17511
  created_at?: string;
16150
17512
  created_by?: string | null;
16151
- entry_date: string;
16152
- hours?: number;
16153
- id?: string;
16154
- kind?: string;
16155
- monteur_id: string;
16156
- note?: string | null;
16157
- source?: string;
16158
- travel_km?: number;
16159
- updated_at?: string;
16160
- werkbon_id?: string | null;
16161
- };
16162
- Update: {
16163
- created_at?: string;
16164
- created_by?: string | null;
16165
- entry_date?: string;
16166
- hours?: number;
16167
- id?: string;
16168
- kind?: string;
16169
- monteur_id?: string;
16170
- note?: string | null;
16171
- source?: string;
16172
- travel_km?: number;
16173
- updated_at?: string;
16174
- werkbon_id?: string | null;
16175
- };
16176
- Relationships: [{
16177
- foreignKeyName: "uren_entries_monteur_id_fkey";
16178
- columns: ["monteur_id"];
16179
- isOneToOne: false;
16180
- referencedRelation: "monteurs";
16181
- referencedColumns: ["id"];
16182
- }, {
16183
- foreignKeyName: "uren_entries_werkbon_id_fkey";
16184
- columns: ["werkbon_id"];
16185
- isOneToOne: false;
16186
- referencedRelation: "werkbonnen";
16187
- referencedColumns: ["id"];
16188
- }];
16189
- };
16190
- uren_exports: {
16191
- Row: {
16192
- created_at: string;
16193
- created_by: string | null;
16194
- file_name: string | null;
16195
- id: string;
16196
- monteur_ids: string[];
16197
- period_end: string;
16198
- period_start: string;
16199
- row_count: number;
16200
- };
16201
- Insert: {
16202
- created_at?: string;
16203
- created_by?: string | null;
16204
- file_name?: string | null;
16205
- id?: string;
16206
- monteur_ids?: string[];
16207
- period_end: string;
16208
- period_start: string;
16209
- row_count?: number;
16210
- };
16211
- Update: {
16212
- created_at?: string;
16213
- created_by?: string | null;
16214
- file_name?: string | null;
16215
- id?: string;
16216
- monteur_ids?: string[];
16217
- period_end?: string;
16218
- period_start?: string;
16219
- row_count?: number;
16220
- };
16221
- Relationships: [];
16222
- };
16223
- uren_facturen: {
16224
- Row: {
16225
- created_at: string;
16226
- created_by: string | null;
16227
- customer_id: string | null;
16228
- customer_name: string | null;
16229
- id: string;
16230
- invoice_number: string | null;
16231
- note: string | null;
16232
- status: string;
16233
- total_excl_cents: number;
16234
- total_incl_cents: number;
16235
- updated_at: string;
16236
- vat_cents: number;
16237
- vat_percentage: number;
16238
- werkbon_id: string | null;
16239
- };
16240
- Insert: {
16241
- created_at?: string;
16242
- created_by?: string | null;
16243
- customer_id?: string | null;
16244
- customer_name?: string | null;
17513
+ entry_date: string;
17514
+ hours?: number;
16245
17515
  id?: string;
16246
- invoice_number?: string | null;
17516
+ kind?: string;
17517
+ monteur_id: string;
16247
17518
  note?: string | null;
16248
- status?: string;
16249
- total_excl_cents?: number;
16250
- total_incl_cents?: number;
17519
+ source?: string;
17520
+ travel_km?: number;
16251
17521
  updated_at?: string;
16252
- vat_cents?: number;
16253
- vat_percentage?: number;
16254
17522
  werkbon_id?: string | null;
16255
17523
  };
16256
17524
  Update: {
16257
17525
  created_at?: string;
16258
17526
  created_by?: string | null;
16259
- customer_id?: string | null;
16260
- customer_name?: string | null;
17527
+ entry_date?: string;
17528
+ hours?: number;
16261
17529
  id?: string;
16262
- invoice_number?: string | null;
17530
+ kind?: string;
17531
+ monteur_id?: string;
16263
17532
  note?: string | null;
16264
- status?: string;
16265
- total_excl_cents?: number;
16266
- total_incl_cents?: number;
17533
+ source?: string;
17534
+ travel_km?: number;
16267
17535
  updated_at?: string;
16268
- vat_cents?: number;
16269
- vat_percentage?: number;
16270
17536
  werkbon_id?: string | null;
16271
17537
  };
16272
17538
  Relationships: [{
16273
- foreignKeyName: "uren_facturen_customer_id_fkey";
16274
- columns: ["customer_id"];
16275
- isOneToOne: false;
16276
- referencedRelation: "itk_customers";
16277
- referencedColumns: ["id"];
16278
- }, {
16279
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17539
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
16280
17540
  columns: ["werkbon_id"];
16281
- isOneToOne: true;
17541
+ isOneToOne: false;
16282
17542
  referencedRelation: "werkbonnen";
16283
17543
  referencedColumns: ["id"];
16284
17544
  }];
16285
17545
  };
16286
- uren_factuur_regels: {
17546
+ uren_exports: {
16287
17547
  Row: {
16288
17548
  created_at: string;
16289
- description: string;
16290
- factuur_id: string;
17549
+ created_by: string | null;
17550
+ file_name: string | null;
16291
17551
  id: string;
16292
- kind: string | null;
16293
- quantity: number;
16294
- sort_order: number;
16295
- total_cents: number;
16296
- unit: string;
16297
- unit_price_cents: number;
17552
+ monteur_ids: string[];
17553
+ period_end: string;
17554
+ period_start: string;
17555
+ row_count: number;
16298
17556
  };
16299
17557
  Insert: {
16300
17558
  created_at?: string;
16301
- description: string;
16302
- factuur_id: string;
17559
+ created_by?: string | null;
17560
+ file_name?: string | null;
16303
17561
  id?: string;
16304
- kind?: string | null;
16305
- quantity?: number;
16306
- sort_order?: number;
16307
- total_cents?: number;
16308
- unit?: string;
16309
- unit_price_cents?: number;
17562
+ monteur_ids?: string[];
17563
+ period_end: string;
17564
+ period_start: string;
17565
+ row_count?: number;
16310
17566
  };
16311
17567
  Update: {
16312
17568
  created_at?: string;
16313
- description?: string;
16314
- factuur_id?: string;
17569
+ created_by?: string | null;
17570
+ file_name?: string | null;
16315
17571
  id?: string;
16316
- kind?: string | null;
16317
- quantity?: number;
16318
- sort_order?: number;
16319
- total_cents?: number;
16320
- unit?: string;
16321
- unit_price_cents?: number;
17572
+ monteur_ids?: string[];
17573
+ period_end?: string;
17574
+ period_start?: string;
17575
+ row_count?: number;
16322
17576
  };
16323
- Relationships: [{
16324
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16325
- columns: ["factuur_id"];
16326
- isOneToOne: false;
16327
- referencedRelation: "uren_facturen";
16328
- referencedColumns: ["id"];
16329
- }];
17577
+ Relationships: [];
16330
17578
  };
16331
17579
  uren_offerte_regels: {
16332
17580
  Row: {
@@ -16647,17 +17895,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16647
17895
  submitted_at?: string | null;
16648
17896
  updated_at?: string;
16649
17897
  };
16650
- Relationships: [{
16651
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16652
- columns: ["monteur_id"];
16653
- isOneToOne: false;
16654
- referencedRelation: "monteurs";
16655
- referencedColumns: ["id"];
16656
- }];
17898
+ Relationships: [];
16657
17899
  };
16658
17900
  user_module_permissions: {
16659
17901
  Row: {
16660
17902
  created_at: string;
17903
+ feature_id: string;
16661
17904
  id: string;
16662
17905
  module_id: string;
16663
17906
  permission: string;
@@ -16666,6 +17909,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16666
17909
  };
16667
17910
  Insert: {
16668
17911
  created_at?: string;
17912
+ feature_id?: string;
16669
17913
  id?: string;
16670
17914
  module_id: string;
16671
17915
  permission: string;
@@ -16674,6 +17918,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16674
17918
  };
16675
17919
  Update: {
16676
17920
  created_at?: string;
17921
+ feature_id?: string;
16677
17922
  id?: string;
16678
17923
  module_id?: string;
16679
17924
  permission?: string;
@@ -16709,6 +17954,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16709
17954
  referencedColumns: ["id"];
16710
17955
  }];
16711
17956
  };
17957
+ van_inventories: {
17958
+ Row: {
17959
+ barcode: string | null;
17960
+ created_at: string;
17961
+ id: string;
17962
+ monteur_id: string | null;
17963
+ price_per_unit: number;
17964
+ product_name: string;
17965
+ quantity_current: number;
17966
+ quantity_min: number;
17967
+ unit: string;
17968
+ updated_at: string;
17969
+ };
17970
+ Insert: {
17971
+ barcode?: string | null;
17972
+ created_at?: string;
17973
+ id?: string;
17974
+ monteur_id?: string | null;
17975
+ price_per_unit?: number;
17976
+ product_name: string;
17977
+ quantity_current?: number;
17978
+ quantity_min?: number;
17979
+ unit?: string;
17980
+ updated_at?: string;
17981
+ };
17982
+ Update: {
17983
+ barcode?: string | null;
17984
+ created_at?: string;
17985
+ id?: string;
17986
+ monteur_id?: string | null;
17987
+ price_per_unit?: number;
17988
+ product_name?: string;
17989
+ quantity_current?: number;
17990
+ quantity_min?: number;
17991
+ unit?: string;
17992
+ updated_at?: string;
17993
+ };
17994
+ Relationships: [{
17995
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17996
+ columns: ["monteur_id"];
17997
+ isOneToOne: false;
17998
+ referencedRelation: "profiles";
17999
+ referencedColumns: ["id"];
18000
+ }];
18001
+ };
16712
18002
  voorraad_custom_fields: {
16713
18003
  Row: {
16714
18004
  created_at: string;
@@ -17539,6 +18829,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17539
18829
  scheduled_end_time: string | null;
17540
18830
  scheduled_start_time: string | null;
17541
18831
  sequence_number: number;
18832
+ signature_accepted_at: string | null;
18833
+ signature_by_user_id: string | null;
18834
+ signature_name: string | null;
17542
18835
  source_email_meta: import("./types").Json | null;
17543
18836
  source_mailbox_message_id: string | null;
17544
18837
  source_pdf_path: string | null;
@@ -17574,6 +18867,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17574
18867
  scheduled_end_time?: string | null;
17575
18868
  scheduled_start_time?: string | null;
17576
18869
  sequence_number: number;
18870
+ signature_accepted_at?: string | null;
18871
+ signature_by_user_id?: string | null;
18872
+ signature_name?: string | null;
17577
18873
  source_email_meta?: import("./types").Json | null;
17578
18874
  source_mailbox_message_id?: string | null;
17579
18875
  source_pdf_path?: string | null;
@@ -17609,6 +18905,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17609
18905
  scheduled_end_time?: string | null;
17610
18906
  scheduled_start_time?: string | null;
17611
18907
  sequence_number?: number;
18908
+ signature_accepted_at?: string | null;
18909
+ signature_by_user_id?: string | null;
18910
+ signature_name?: string | null;
17612
18911
  source_email_meta?: import("./types").Json | null;
17613
18912
  source_mailbox_message_id?: string | null;
17614
18913
  source_pdf_path?: string | null;
@@ -17659,7 +18958,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17659
18958
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17660
18959
  columns: ["monteur_id"];
17661
18960
  isOneToOne: false;
17662
- referencedRelation: "monteurs";
18961
+ referencedRelation: "profiles";
17663
18962
  referencedColumns: ["id"];
17664
18963
  }, {
17665
18964
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17669,6 +18968,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17669
18968
  referencedColumns: ["id"];
17670
18969
  }];
17671
18970
  };
18971
+ work_order_photos: {
18972
+ Row: {
18973
+ ai_caption: string | null;
18974
+ ai_categorized_at: string | null;
18975
+ ai_labels: import("./types").Json | null;
18976
+ caption: string | null;
18977
+ created_at: string;
18978
+ id: string;
18979
+ monteur_id: string | null;
18980
+ photo_type: string;
18981
+ storage_path: string;
18982
+ updated_at: string;
18983
+ work_order_id: string;
18984
+ };
18985
+ Insert: {
18986
+ ai_caption?: string | null;
18987
+ ai_categorized_at?: string | null;
18988
+ ai_labels?: import("./types").Json | null;
18989
+ caption?: string | null;
18990
+ created_at?: string;
18991
+ id?: string;
18992
+ monteur_id?: string | null;
18993
+ photo_type?: string;
18994
+ storage_path: string;
18995
+ updated_at?: string;
18996
+ work_order_id: string;
18997
+ };
18998
+ Update: {
18999
+ ai_caption?: string | null;
19000
+ ai_categorized_at?: string | null;
19001
+ ai_labels?: import("./types").Json | null;
19002
+ caption?: string | null;
19003
+ created_at?: string;
19004
+ id?: string;
19005
+ monteur_id?: string | null;
19006
+ photo_type?: string;
19007
+ storage_path?: string;
19008
+ updated_at?: string;
19009
+ work_order_id?: string;
19010
+ };
19011
+ Relationships: [{
19012
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
19013
+ columns: ["monteur_id"];
19014
+ isOneToOne: false;
19015
+ referencedRelation: "profiles";
19016
+ referencedColumns: ["id"];
19017
+ }, {
19018
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
19019
+ columns: ["work_order_id"];
19020
+ isOneToOne: false;
19021
+ referencedRelation: "work_orders";
19022
+ referencedColumns: ["id"];
19023
+ }];
19024
+ };
17672
19025
  work_orders: {
17673
19026
  Row: {
17674
19027
  assigned_to: string | null;
@@ -17700,7 +19053,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17700
19053
  scheduled_end_time: string | null;
17701
19054
  scheduled_start_time: string | null;
17702
19055
  status: string;
17703
- tenant_id: string;
17704
19056
  total_hours_worked: number | null;
17705
19057
  total_price: number | null;
17706
19058
  travel_time_minutes: number | null;
@@ -17738,7 +19090,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17738
19090
  scheduled_end_time?: string | null;
17739
19091
  scheduled_start_time?: string | null;
17740
19092
  status?: string;
17741
- tenant_id: string;
17742
19093
  total_hours_worked?: number | null;
17743
19094
  total_price?: number | null;
17744
19095
  travel_time_minutes?: number | null;
@@ -17776,7 +19127,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17776
19127
  scheduled_end_time?: string | null;
17777
19128
  scheduled_start_time?: string | null;
17778
19129
  status?: string;
17779
- tenant_id?: string;
17780
19130
  total_hours_worked?: number | null;
17781
19131
  total_price?: number | null;
17782
19132
  travel_time_minutes?: number | null;
@@ -17790,12 +19140,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17790
19140
  isOneToOne: false;
17791
19141
  referencedRelation: "work_orders";
17792
19142
  referencedColumns: ["id"];
17793
- }, {
17794
- foreignKeyName: "work_orders_tenant_id_fkey";
17795
- columns: ["tenant_id"];
17796
- isOneToOne: false;
17797
- referencedRelation: "tenants";
17798
- referencedColumns: ["id"];
17799
19143
  }];
17800
19144
  };
17801
19145
  };
@@ -18066,20 +19410,128 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18066
19410
  total_stock: number | null;
18067
19411
  };
18068
19412
  Relationships: [{
18069
- foreignKeyName: "product_group_items_product_group_id_fkey";
18070
- columns: ["product_group_id"];
19413
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19414
+ columns: ["product_group_id"];
19415
+ isOneToOne: false;
19416
+ referencedRelation: "product_groups";
19417
+ referencedColumns: ["id"];
19418
+ }];
19419
+ };
19420
+ trade_item_stock_view: {
19421
+ Row: {
19422
+ stock: number | null;
19423
+ trade_item_id: string | null;
19424
+ };
19425
+ Relationships: [];
19426
+ };
19427
+ uren_facturen: {
19428
+ Row: {
19429
+ created_at: string | null;
19430
+ created_by: string | null;
19431
+ customer_id: string | null;
19432
+ customer_name: string | null;
19433
+ id: string | null;
19434
+ invoice_number: string | null;
19435
+ note: string | null;
19436
+ status: string | null;
19437
+ total_excl_cents: number | null;
19438
+ total_incl_cents: number | null;
19439
+ updated_at: string | null;
19440
+ vat_cents: number | null;
19441
+ vat_percentage: number | null;
19442
+ werkbon_id: string | null;
19443
+ };
19444
+ Insert: {
19445
+ created_at?: string | null;
19446
+ created_by?: string | null;
19447
+ customer_id?: string | null;
19448
+ customer_name?: string | null;
19449
+ id?: string | null;
19450
+ invoice_number?: string | null;
19451
+ note?: string | null;
19452
+ status?: string | null;
19453
+ total_excl_cents?: number | null;
19454
+ total_incl_cents?: number | null;
19455
+ updated_at?: string | null;
19456
+ vat_cents?: number | null;
19457
+ vat_percentage?: number | null;
19458
+ werkbon_id?: never;
19459
+ };
19460
+ Update: {
19461
+ created_at?: string | null;
19462
+ created_by?: string | null;
19463
+ customer_id?: string | null;
19464
+ customer_name?: string | null;
19465
+ id?: string | null;
19466
+ invoice_number?: string | null;
19467
+ note?: string | null;
19468
+ status?: string | null;
19469
+ total_excl_cents?: number | null;
19470
+ total_incl_cents?: number | null;
19471
+ updated_at?: string | null;
19472
+ vat_cents?: number | null;
19473
+ vat_percentage?: number | null;
19474
+ werkbon_id?: never;
19475
+ };
19476
+ Relationships: [{
19477
+ foreignKeyName: "invoices_customer_id_fkey";
19478
+ columns: ["customer_id"];
19479
+ isOneToOne: false;
19480
+ referencedRelation: "itk_customers";
19481
+ referencedColumns: ["id"];
19482
+ }];
19483
+ };
19484
+ uren_factuur_regels: {
19485
+ Row: {
19486
+ created_at: string | null;
19487
+ description: string | null;
19488
+ factuur_id: string | null;
19489
+ id: string | null;
19490
+ kind: string | null;
19491
+ quantity: number | null;
19492
+ sort_order: number | null;
19493
+ total_cents: number | null;
19494
+ unit: string | null;
19495
+ unit_price_cents: number | null;
19496
+ };
19497
+ Insert: {
19498
+ created_at?: string | null;
19499
+ description?: string | null;
19500
+ factuur_id?: string | null;
19501
+ id?: string | null;
19502
+ kind?: string | null;
19503
+ quantity?: number | null;
19504
+ sort_order?: number | null;
19505
+ total_cents?: number | null;
19506
+ unit?: string | null;
19507
+ unit_price_cents?: number | null;
19508
+ };
19509
+ Update: {
19510
+ created_at?: string | null;
19511
+ description?: string | null;
19512
+ factuur_id?: string | null;
19513
+ id?: string | null;
19514
+ kind?: string | null;
19515
+ quantity?: number | null;
19516
+ sort_order?: number | null;
19517
+ total_cents?: number | null;
19518
+ unit?: string | null;
19519
+ unit_price_cents?: number | null;
19520
+ };
19521
+ Relationships: [{
19522
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19523
+ columns: ["factuur_id"];
18071
19524
  isOneToOne: false;
18072
- referencedRelation: "product_groups";
19525
+ referencedRelation: "invoices";
19526
+ referencedColumns: ["id"];
19527
+ }, {
19528
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19529
+ columns: ["factuur_id"];
19530
+ isOneToOne: false;
19531
+ referencedRelation: "uren_facturen";
18073
19532
  referencedColumns: ["id"];
18074
19533
  }];
18075
19534
  };
18076
- trade_item_stock_view: {
18077
- Row: {
18078
- stock: number | null;
18079
- trade_item_id: string | null;
18080
- };
18081
- Relationships: [];
18082
- };
18083
19535
  v_external_customers_exact: {
18084
19536
  Row: {
18085
19537
  account_number: string | null;
@@ -18480,6 +19932,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18480
19932
  };
18481
19933
  Returns: undefined;
18482
19934
  };
19935
+ approve_mailbox_order_proposal: {
19936
+ Args: {
19937
+ p_custom_fields: import("./types").Json;
19938
+ p_customer_id: string;
19939
+ p_delivery_date: string;
19940
+ p_field_values?: import("./types").Json;
19941
+ p_lines: import("./types").Json;
19942
+ p_notes: string;
19943
+ p_proposal_id: string;
19944
+ p_reviewed_by: string;
19945
+ };
19946
+ Returns: import("./types").Json;
19947
+ };
18483
19948
  assign_cart_numbers: {
18484
19949
  Args: {
18485
19950
  p_carts: import("./types").Json;
@@ -18531,6 +19996,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18531
19996
  };
18532
19997
  Returns: number;
18533
19998
  };
19999
+ can_manage_hours: {
20000
+ Args: never;
20001
+ Returns: boolean;
20002
+ };
18534
20003
  check_offer_product_available_stock: {
18535
20004
  Args: {
18536
20005
  p_campaign_product_id: string;
@@ -18568,6 +20037,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18568
20037
  gebruiker_id: string | null;
18569
20038
  gebruiker_naam: string;
18570
20039
  gestart_op: string | null;
20040
+ herkomst: string | null;
18571
20041
  id: string;
18572
20042
  idempotentie_sleutel: string | null;
18573
20043
  is_herprint: boolean;
@@ -18688,6 +20158,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18688
20158
  gebruiker_id: string | null;
18689
20159
  gebruiker_naam: string;
18690
20160
  gestart_op: string | null;
20161
+ herkomst: string | null;
18691
20162
  id: string;
18692
20163
  idempotentie_sleutel: string | null;
18693
20164
  is_herprint: boolean;
@@ -18720,6 +20191,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
20191
  };
18721
20192
  Returns: {
18722
20193
  action: string;
20194
+ attempt_started_at: string | null;
18723
20195
  attempts: number;
18724
20196
  connection_id: string | null;
18725
20197
  created_at: string;
@@ -18807,6 +20279,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18807
20279
  agent_naam: string;
18808
20280
  }[];
18809
20281
  };
20282
+ consume_van_inventory: {
20283
+ Args: {
20284
+ p_inventory_id: string;
20285
+ p_quantity: number;
20286
+ };
20287
+ Returns: {
20288
+ barcode: string | null;
20289
+ created_at: string;
20290
+ id: string;
20291
+ monteur_id: string | null;
20292
+ price_per_unit: number;
20293
+ product_name: string;
20294
+ quantity_current: number;
20295
+ quantity_min: number;
20296
+ unit: string;
20297
+ updated_at: string;
20298
+ };
20299
+ SetofOptions: {
20300
+ from: "*";
20301
+ to: "van_inventories";
20302
+ isOneToOne: true;
20303
+ isSetofReturn: false;
20304
+ };
20305
+ };
18810
20306
  control_get_todays_carts: {
18811
20307
  Args: never;
18812
20308
  Returns: {
@@ -18880,6 +20376,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18880
20376
  _user_id: string;
18881
20377
  };
18882
20378
  Returns: string;
20379
+ } | {
20380
+ Args: {
20381
+ _feature_id: string;
20382
+ _module_id: string;
20383
+ _user_id: string;
20384
+ };
20385
+ Returns: string;
18883
20386
  };
18884
20387
  email_auth_decrypt: {
18885
20388
  Args: {
@@ -18926,6 +20429,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18926
20429
  };
18927
20430
  Returns: string;
18928
20431
  };
20432
+ employee_day_hours: {
20433
+ Args: {
20434
+ _day: string;
20435
+ _employee_id: string;
20436
+ };
20437
+ Returns: number;
20438
+ };
18929
20439
  enqueue_cart_replan_if_unlocked: {
18930
20440
  Args: {
18931
20441
  p_order_id: string;
@@ -19231,12 +20741,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19231
20741
  Args: never;
19232
20742
  Returns: string;
19233
20743
  };
19234
- get_work_order_tenant_id: {
19235
- Args: {
19236
- wo_id: string;
19237
- };
19238
- Returns: string;
19239
- };
19240
20744
  has_module_permission: {
19241
20745
  Args: {
19242
20746
  _min: string;
@@ -19256,6 +20760,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19256
20760
  Args: never;
19257
20761
  Returns: boolean;
19258
20762
  };
20763
+ invoice_create_from_source: {
20764
+ Args: {
20765
+ _payload?: import("./types").Json;
20766
+ _source_id: string;
20767
+ _source_type: string;
20768
+ };
20769
+ Returns: import("./types").Json;
20770
+ };
20771
+ invoice_get_billable_lines: {
20772
+ Args: {
20773
+ _invoice_id: string;
20774
+ };
20775
+ Returns: import("./types").Json;
20776
+ };
20777
+ invoice_get_for_source: {
20778
+ Args: {
20779
+ _source_id: string;
20780
+ _source_type: string;
20781
+ };
20782
+ Returns: import("./types").Json;
20783
+ };
20784
+ invoice_get_summary: {
20785
+ Args: {
20786
+ _invoice_id: string;
20787
+ };
20788
+ Returns: import("./types").Json;
20789
+ };
20790
+ invoice_list_sources: {
20791
+ Args: {
20792
+ _limit?: number;
20793
+ _source_type?: string;
20794
+ };
20795
+ Returns: import("./types").Json;
20796
+ };
20797
+ invoice_recalc_totals: {
20798
+ Args: {
20799
+ _invoice_id: string;
20800
+ };
20801
+ Returns: import("./types").Json;
20802
+ };
19259
20803
  is_authenticated: {
19260
20804
  Args: never;
19261
20805
  Returns: boolean;
@@ -19270,6 +20814,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19270
20814
  };
19271
20815
  Returns: boolean;
19272
20816
  };
20817
+ is_time_log_week_locked: {
20818
+ Args: {
20819
+ p_employee_id: string;
20820
+ p_start_time: string;
20821
+ };
20822
+ Returns: boolean;
20823
+ };
19273
20824
  is_user_admin: {
19274
20825
  Args: never;
19275
20826
  Returns: boolean;
@@ -19278,12 +20829,59 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19278
20829
  Args: never;
19279
20830
  Returns: boolean;
19280
20831
  };
20832
+ itk_offerte_naar_werkbon: {
20833
+ Args: {
20834
+ _offerte_id: string;
20835
+ };
20836
+ Returns: string;
20837
+ };
20838
+ itk_offerte_restant_mandaat: {
20839
+ Args: {
20840
+ _exclude_offerte_id?: string;
20841
+ _werkbon_id: string;
20842
+ };
20843
+ Returns: number;
20844
+ };
19281
20845
  jwt_has_role: {
19282
20846
  Args: {
19283
20847
  _role: Database["public"]["Enums"]["app_role"];
19284
20848
  };
19285
20849
  Returns: boolean;
19286
20850
  };
20851
+ list_medewerkers: {
20852
+ Args: never;
20853
+ Returns: {
20854
+ avatar_url: string;
20855
+ color: string;
20856
+ display_name: string;
20857
+ email: string;
20858
+ hours_fri: number;
20859
+ hours_mon: number;
20860
+ hours_thu: number;
20861
+ hours_tue: number;
20862
+ hours_wed: number;
20863
+ id: string;
20864
+ is_active: boolean;
20865
+ leave_balance_hours: number;
20866
+ persnr: string;
20867
+ phone: string;
20868
+ roles: string[];
20869
+ }[];
20870
+ };
20871
+ list_monteur_absences: {
20872
+ Args: {
20873
+ _from: string;
20874
+ _to: string;
20875
+ };
20876
+ Returns: {
20877
+ absence_date: string;
20878
+ end_time: string;
20879
+ full_day: boolean;
20880
+ kind: string;
20881
+ monteur_id: string;
20882
+ start_time: string;
20883
+ }[];
20884
+ };
19287
20885
  list_monteurs: {
19288
20886
  Args: never;
19289
20887
  Returns: {
@@ -19616,17 +21214,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19616
21214
  Returns: string;
19617
21215
  };
19618
21216
  logistics_emit_event: {
19619
- Args: {
19620
- p_event_type: string;
19621
- p_idempotency_key?: string;
19622
- p_order_ref: string;
19623
- p_payload?: import("./types").Json;
19624
- p_shadow?: boolean;
19625
- p_source_module: string;
19626
- p_strategy_id?: string;
19627
- };
19628
- Returns: import("./types").Json;
19629
- } | {
19630
21217
  Args: {
19631
21218
  p_event_type: string;
19632
21219
  p_idempotency_key?: string;
@@ -19715,6 +21302,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19715
21302
  };
19716
21303
  Returns: string;
19717
21304
  };
21305
+ logistics_floriday_finish_push_v2: {
21306
+ Args: {
21307
+ _error?: string;
21308
+ _error_code?: string;
21309
+ _fulfillment_order_id?: string;
21310
+ _gateway_status?: number;
21311
+ _id: string;
21312
+ _max_age_hours?: number;
21313
+ _max_attempts?: number;
21314
+ _ok: boolean;
21315
+ _permanent?: boolean;
21316
+ _response?: import("./types").Json;
21317
+ _revision: number;
21318
+ _sent_hash?: string;
21319
+ };
21320
+ Returns: string;
21321
+ };
19718
21322
  logistics_floriday_prune_pushes: {
19719
21323
  Args: {
19720
21324
  _days?: number;
@@ -20081,6 +21685,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20081
21685
  my_module_permissions: {
20082
21686
  Args: never;
20083
21687
  Returns: {
21688
+ feature_id: string;
20084
21689
  module_id: string;
20085
21690
  permission: string;
20086
21691
  }[];
@@ -20256,6 +21861,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20256
21861
  isSetofReturn: false;
20257
21862
  };
20258
21863
  };
21864
+ pick_cleanup_maintenance: {
21865
+ Args: {
21866
+ _heartbeat_hours?: number;
21867
+ _log_days?: number;
21868
+ };
21869
+ Returns: import("./types").Json;
21870
+ };
20259
21871
  pick_complete_print: {
20260
21872
  Args: {
20261
21873
  _printer_id: string;
@@ -20307,6 +21919,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20307
21919
  Args: never;
20308
21920
  Returns: string;
20309
21921
  };
21922
+ pick_day_counts: {
21923
+ Args: {
21924
+ _pick_day?: string;
21925
+ _screen_id?: string;
21926
+ _station_id?: string;
21927
+ };
21928
+ Returns: import("./types").Json;
21929
+ };
20310
21930
  pick_document_layout_data: {
20311
21931
  Args: {
20312
21932
  _layout_id: string;
@@ -20334,6 +21954,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20334
21954
  };
20335
21955
  Returns: import("./types").Json;
20336
21956
  };
21957
+ pick_print_plekken: {
21958
+ Args: never;
21959
+ Returns: {
21960
+ id: string;
21961
+ naam: string;
21962
+ omschrijving: string;
21963
+ }[];
21964
+ };
20337
21965
  pick_release_expired_locks: {
20338
21966
  Args: never;
20339
21967
  Returns: number;
@@ -20344,6 +21972,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20344
21972
  };
20345
21973
  Returns: undefined;
20346
21974
  };
21975
+ pick_reprint_document: {
21976
+ Args: {
21977
+ _queue_item_id: string;
21978
+ _session_id: string;
21979
+ _throttle_seconds?: number;
21980
+ };
21981
+ Returns: string;
21982
+ };
20347
21983
  pick_reset_print: {
20348
21984
  Args: {
20349
21985
  _queue_item_id: string;
@@ -20390,6 +22026,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20390
22026
  isSetofReturn: false;
20391
22027
  };
20392
22028
  };
22029
+ pick_set_station_print_plek: {
22030
+ Args: {
22031
+ _print_plek_id: string;
22032
+ _station_id: string;
22033
+ };
22034
+ Returns: string;
22035
+ };
20393
22036
  pick_station_dashboard: {
20394
22037
  Args: never;
20395
22038
  Returns: {
@@ -20402,6 +22045,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20402
22045
  waiting: number;
20403
22046
  }[];
20404
22047
  };
22048
+ pick_station_print_plek: {
22049
+ Args: {
22050
+ _station_id: string;
22051
+ };
22052
+ Returns: {
22053
+ naam: string;
22054
+ omschrijving: string;
22055
+ print_plek_id: string;
22056
+ }[];
22057
+ };
22058
+ pick_station_print_plekken: {
22059
+ Args: never;
22060
+ Returns: {
22061
+ naam: string;
22062
+ omschrijving: string;
22063
+ print_plek_id: string;
22064
+ station_id: string;
22065
+ }[];
22066
+ };
20405
22067
  pick_station_slugify: {
20406
22068
  Args: {
20407
22069
  _id: string;
@@ -20409,6 +22071,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20409
22071
  };
20410
22072
  Returns: string;
20411
22073
  };
22074
+ pick_sync_queue_throttled: {
22075
+ Args: {
22076
+ _min_seconds?: number;
22077
+ };
22078
+ Returns: import("./types").Json;
22079
+ };
20412
22080
  pickstation_get_orders_raw: {
20413
22081
  Args: never;
20414
22082
  Returns: import("./types").Json;
@@ -20470,6 +22138,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20470
22138
  };
20471
22139
  Returns: undefined;
20472
22140
  };
22141
+ quote_create_from_source: {
22142
+ Args: {
22143
+ _payload?: import("./types").Json;
22144
+ _source_id: string;
22145
+ _source_type: string;
22146
+ };
22147
+ Returns: string;
22148
+ };
22149
+ quote_get_billable_lines: {
22150
+ Args: {
22151
+ _quotation_id: string;
22152
+ };
22153
+ Returns: import("./types").Json;
22154
+ };
22155
+ quote_get_summary: {
22156
+ Args: {
22157
+ _quotation_id: string;
22158
+ };
22159
+ Returns: import("./types").Json;
22160
+ };
22161
+ quote_list_packages: {
22162
+ Args: never;
22163
+ Returns: import("./types").Json;
22164
+ };
22165
+ quote_list_sources: {
22166
+ Args: {
22167
+ _limit?: number;
22168
+ _source_type?: string;
22169
+ };
22170
+ Returns: import("./types").Json;
22171
+ };
20473
22172
  recompute_all_reserved_stock: {
20474
22173
  Args: never;
20475
22174
  Returns: undefined;
@@ -20523,6 +22222,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20523
22222
  };
20524
22223
  Returns: boolean;
20525
22224
  };
22225
+ release_stale_order_invoice_links: {
22226
+ Args: {
22227
+ _minutes?: number;
22228
+ };
22229
+ Returns: number;
22230
+ };
20526
22231
  reorder_customer_price_groups: {
20527
22232
  Args: {
20528
22233
  _ids: string[];
@@ -20961,6 +22666,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20961
22666
  };
20962
22667
  Returns: string[];
20963
22668
  };
22669
+ switch_time_log: {
22670
+ Args: {
22671
+ p_employee_id: string;
22672
+ p_start_lat?: number;
22673
+ p_start_lng?: number;
22674
+ p_type: string;
22675
+ p_work_order_id?: string;
22676
+ };
22677
+ Returns: import("./types").Json;
22678
+ };
20964
22679
  sync_all_layer_stocks: {
20965
22680
  Args: never;
20966
22681
  Returns: undefined;
@@ -20995,6 +22710,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20995
22710
  };
20996
22711
  Returns: undefined;
20997
22712
  };
22713
+ sync_sick_time_off: {
22714
+ Args: {
22715
+ _period_id: string;
22716
+ };
22717
+ Returns: number;
22718
+ };
20998
22719
  trade_item_stock_duplicates: {
20999
22720
  Args: never;
21000
22721
  Returns: {
@@ -21011,6 +22732,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21011
22732
  };
21012
22733
  Returns: boolean;
21013
22734
  };
22735
+ twinfield_cron_lock_acquire: {
22736
+ Args: {
22737
+ _job_name: string;
22738
+ _stale_seconds?: number;
22739
+ };
22740
+ Returns: boolean;
22741
+ };
22742
+ twinfield_cron_lock_release: {
22743
+ Args: {
22744
+ _error?: string;
22745
+ _job_name: string;
22746
+ };
22747
+ Returns: undefined;
22748
+ };
22749
+ twinfield_deactivate_connection: {
22750
+ Args: {
22751
+ p_connection_id: string;
22752
+ p_user_id: string;
22753
+ };
22754
+ Returns: import("./types").Json;
22755
+ };
22756
+ twinfield_handle_administration_change: {
22757
+ Args: {
22758
+ _administration_code: string;
22759
+ _user_id: string;
22760
+ };
22761
+ Returns: undefined;
22762
+ };
22763
+ twinfield_prune_push_queue: {
22764
+ Args: never;
22765
+ Returns: number;
22766
+ };
21014
22767
  twinfield_register_cron: {
21015
22768
  Args: {
21016
22769
  apikey?: string;
@@ -21026,10 +22779,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21026
22779
  p_company_name?: string;
21027
22780
  p_environment: string;
21028
22781
  p_office_code?: string;
22782
+ p_reset_sync?: boolean;
21029
22783
  p_status?: string;
21030
22784
  p_user_id: string;
21031
22785
  };
21032
- Returns: string;
22786
+ Returns: import("./types").Json;
21033
22787
  };
21034
22788
  upsert_auto_fulfillment_log: {
21035
22789
  Args: {
@@ -21050,11 +22804,31 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21050
22804
  Args: never;
21051
22805
  Returns: string;
21052
22806
  };
22807
+ wo_create_from_source: {
22808
+ Args: {
22809
+ _payload?: import("./types").Json;
22810
+ _source_id: string;
22811
+ _source_type: string;
22812
+ };
22813
+ Returns: string;
22814
+ };
22815
+ wo_get_billable_lines: {
22816
+ Args: {
22817
+ _work_order_id: string;
22818
+ };
22819
+ Returns: import("./types").Json;
22820
+ };
22821
+ wo_get_summary: {
22822
+ Args: {
22823
+ _work_order_id: string;
22824
+ };
22825
+ Returns: import("./types").Json;
22826
+ };
21053
22827
  };
21054
22828
  Enums: {
21055
22829
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21056
22830
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21057
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22831
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21058
22832
  doc_orientation: "portrait" | "landscape";
21059
22833
  exact_env: "staging" | "live";
21060
22834
  exact_push_status: "pending" | "sent" | "error";