@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.32

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 (24) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControlePage.js +23 -10
  3. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
  4. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +678 -116
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +678 -116
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +678 -116
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +694 -127
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1356 -232
  15. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/carriers.functions.d.ts +3390 -580
  17. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cartAssignments.functions.d.ts +3390 -580
  19. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/cartControl.functions.d.ts +6780 -1160
  21. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday.functions.d.ts +678 -116
  23. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  24. package/package.json +1 -7
@@ -872,6 +872,126 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
872
872
  };
873
873
  Relationships: [];
874
874
  };
875
+ cao_holidays: {
876
+ Row: {
877
+ created_at: string;
878
+ description: string | null;
879
+ holiday_date: string;
880
+ id: string;
881
+ updated_at: string;
882
+ };
883
+ Insert: {
884
+ created_at?: string;
885
+ description?: string | null;
886
+ holiday_date: string;
887
+ id?: string;
888
+ updated_at?: string;
889
+ };
890
+ Update: {
891
+ created_at?: string;
892
+ description?: string | null;
893
+ holiday_date?: string;
894
+ id?: string;
895
+ updated_at?: string;
896
+ };
897
+ Relationships: [];
898
+ };
899
+ cao_settings: {
900
+ Row: {
901
+ auto_break_after_hours: number;
902
+ auto_break_minutes: number;
903
+ auto_break_unpaid: boolean;
904
+ auto_stop_after_hours: number;
905
+ callout_fee: number;
906
+ created_at: string;
907
+ daily_regular_hours: number;
908
+ default_hourly_rate: number;
909
+ id: string;
910
+ materials_markup_percent: number;
911
+ max_daily_hours: number;
912
+ max_weekly_hours: number;
913
+ meal_allowance_amount: number;
914
+ overtime_pct_178: number;
915
+ overtime_pct_189: number;
916
+ overtime_pct_212: number;
917
+ reminder_after_hours: number;
918
+ standby_evening_amount: number;
919
+ standby_weekend_amount: number;
920
+ travel_cost_per_km: number | null;
921
+ travel_cost_threshold_km: number | null;
922
+ travel_counts_as_work: boolean;
923
+ travel_hourly_rate: number;
924
+ travel_rate_per_hour: number;
925
+ travel_threshold_minutes: number;
926
+ updated_at: string;
927
+ weekend_always_212: boolean;
928
+ window_end: string;
929
+ window_start: string;
930
+ };
931
+ Insert: {
932
+ auto_break_after_hours?: number;
933
+ auto_break_minutes?: number;
934
+ auto_break_unpaid?: boolean;
935
+ auto_stop_after_hours?: number;
936
+ callout_fee?: number;
937
+ created_at?: string;
938
+ daily_regular_hours?: number;
939
+ default_hourly_rate?: number;
940
+ id?: string;
941
+ materials_markup_percent?: number;
942
+ max_daily_hours?: number;
943
+ max_weekly_hours?: number;
944
+ meal_allowance_amount?: number;
945
+ overtime_pct_178?: number;
946
+ overtime_pct_189?: number;
947
+ overtime_pct_212?: number;
948
+ reminder_after_hours?: number;
949
+ standby_evening_amount?: number;
950
+ standby_weekend_amount?: number;
951
+ travel_cost_per_km?: number | null;
952
+ travel_cost_threshold_km?: number | null;
953
+ travel_counts_as_work?: boolean;
954
+ travel_hourly_rate?: number;
955
+ travel_rate_per_hour?: number;
956
+ travel_threshold_minutes?: number;
957
+ updated_at?: string;
958
+ weekend_always_212?: boolean;
959
+ window_end?: string;
960
+ window_start?: string;
961
+ };
962
+ Update: {
963
+ auto_break_after_hours?: number;
964
+ auto_break_minutes?: number;
965
+ auto_break_unpaid?: boolean;
966
+ auto_stop_after_hours?: number;
967
+ callout_fee?: number;
968
+ created_at?: string;
969
+ daily_regular_hours?: number;
970
+ default_hourly_rate?: number;
971
+ id?: string;
972
+ materials_markup_percent?: number;
973
+ max_daily_hours?: number;
974
+ max_weekly_hours?: number;
975
+ meal_allowance_amount?: number;
976
+ overtime_pct_178?: number;
977
+ overtime_pct_189?: number;
978
+ overtime_pct_212?: number;
979
+ reminder_after_hours?: number;
980
+ standby_evening_amount?: number;
981
+ standby_weekend_amount?: number;
982
+ travel_cost_per_km?: number | null;
983
+ travel_cost_threshold_km?: number | null;
984
+ travel_counts_as_work?: boolean;
985
+ travel_hourly_rate?: number;
986
+ travel_rate_per_hour?: number;
987
+ travel_threshold_minutes?: number;
988
+ updated_at?: string;
989
+ weekend_always_212?: boolean;
990
+ window_end?: string;
991
+ window_start?: string;
992
+ };
993
+ Relationships: [];
994
+ };
875
995
  carrier_shipping_rates: {
876
996
  Row: {
877
997
  carrier_id: string;
@@ -7766,7 +7886,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7766
7886
  start_date: string;
7767
7887
  start_time: string | null;
7768
7888
  status: string;
7769
- tenant_id: string;
7770
7889
  updated_at: string;
7771
7890
  user_id: string;
7772
7891
  };
@@ -7784,7 +7903,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7784
7903
  start_date: string;
7785
7904
  start_time?: string | null;
7786
7905
  status?: string;
7787
- tenant_id?: string;
7788
7906
  updated_at?: string;
7789
7907
  user_id: string;
7790
7908
  };
@@ -7802,7 +7920,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7802
7920
  start_date?: string;
7803
7921
  start_time?: string | null;
7804
7922
  status?: string;
7805
- tenant_id?: string;
7806
7923
  updated_at?: string;
7807
7924
  user_id?: string;
7808
7925
  };
@@ -7810,13 +7927,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7810
7927
  foreignKeyName: "leave_requests_monteur_id_fkey";
7811
7928
  columns: ["monteur_id"];
7812
7929
  isOneToOne: false;
7813
- referencedRelation: "monteurs";
7930
+ referencedRelation: "profiles";
7814
7931
  referencedColumns: ["id"];
7815
7932
  }, {
7816
7933
  foreignKeyName: "leave_requests_user_id_fkey";
7817
7934
  columns: ["user_id"];
7818
7935
  isOneToOne: false;
7819
- referencedRelation: "monteurs";
7936
+ referencedRelation: "profiles";
7820
7937
  referencedColumns: ["id"];
7821
7938
  }];
7822
7939
  };
@@ -9971,6 +10088,90 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9971
10088
  };
9972
10089
  Relationships: [];
9973
10090
  };
10091
+ material_usage: {
10092
+ Row: {
10093
+ created_at: string;
10094
+ id: string;
10095
+ material_name: string;
10096
+ monteur_id: string | null;
10097
+ price_at_time: number;
10098
+ quantity_used: number;
10099
+ updated_at: string;
10100
+ van_inventory_id: string | null;
10101
+ work_order_id: string;
10102
+ };
10103
+ Insert: {
10104
+ created_at?: string;
10105
+ id?: string;
10106
+ material_name: string;
10107
+ monteur_id?: string | null;
10108
+ price_at_time?: number;
10109
+ quantity_used?: number;
10110
+ updated_at?: string;
10111
+ van_inventory_id?: string | null;
10112
+ work_order_id: string;
10113
+ };
10114
+ Update: {
10115
+ created_at?: string;
10116
+ id?: string;
10117
+ material_name?: string;
10118
+ monteur_id?: string | null;
10119
+ price_at_time?: number;
10120
+ quantity_used?: number;
10121
+ updated_at?: string;
10122
+ van_inventory_id?: string | null;
10123
+ work_order_id?: string;
10124
+ };
10125
+ Relationships: [{
10126
+ foreignKeyName: "material_usage_monteur_id_fkey";
10127
+ columns: ["monteur_id"];
10128
+ isOneToOne: false;
10129
+ referencedRelation: "profiles";
10130
+ referencedColumns: ["id"];
10131
+ }, {
10132
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10133
+ columns: ["van_inventory_id"];
10134
+ isOneToOne: false;
10135
+ referencedRelation: "van_inventories";
10136
+ referencedColumns: ["id"];
10137
+ }, {
10138
+ foreignKeyName: "material_usage_work_order_id_fkey";
10139
+ columns: ["work_order_id"];
10140
+ isOneToOne: false;
10141
+ referencedRelation: "work_orders";
10142
+ referencedColumns: ["id"];
10143
+ }];
10144
+ };
10145
+ module_features: {
10146
+ Row: {
10147
+ created_at: string;
10148
+ feature_id: string;
10149
+ id: string;
10150
+ is_active: boolean;
10151
+ last_seen_at: string;
10152
+ module_id: string;
10153
+ name: string;
10154
+ };
10155
+ Insert: {
10156
+ created_at?: string;
10157
+ feature_id: string;
10158
+ id?: string;
10159
+ is_active?: boolean;
10160
+ last_seen_at?: string;
10161
+ module_id: string;
10162
+ name: string;
10163
+ };
10164
+ Update: {
10165
+ created_at?: string;
10166
+ feature_id?: string;
10167
+ id?: string;
10168
+ is_active?: boolean;
10169
+ last_seen_at?: string;
10170
+ module_id?: string;
10171
+ name?: string;
10172
+ };
10173
+ Relationships: [];
10174
+ };
9974
10175
  module_permissions: {
9975
10176
  Row: {
9976
10177
  created_at: string;
@@ -10079,63 +10280,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10079
10280
  };
10080
10281
  Relationships: [];
10081
10282
  };
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
10283
  nmbrs_component_mapping: {
10140
10284
  Row: {
10141
10285
  created_at: string;
@@ -10206,13 +10350,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10206
10350
  nmbrs_employee_number?: string;
10207
10351
  updated_at?: string;
10208
10352
  };
10209
- Relationships: [{
10210
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10211
- columns: ["monteur_id"];
10212
- isOneToOne: true;
10213
- referencedRelation: "monteurs";
10214
- referencedColumns: ["id"];
10215
- }];
10353
+ Relationships: [];
10216
10354
  };
10217
10355
  nmbrs_export_lines: {
10218
10356
  Row: {
@@ -10261,12 +10399,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10261
10399
  wage_code?: string;
10262
10400
  };
10263
10401
  Relationships: [{
10264
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10265
- columns: ["monteur_id"];
10266
- isOneToOne: false;
10267
- referencedRelation: "monteurs";
10268
- referencedColumns: ["id"];
10269
- }, {
10270
10402
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10271
10403
  columns: ["run_id"];
10272
10404
  isOneToOne: false;
@@ -12657,6 +12789,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12657
12789
  created_at: string;
12658
12790
  id: string;
12659
12791
  laatst_gezien: string;
12792
+ laatste_fout: string | null;
12793
+ laatste_request_id: number | null;
12794
+ mislukte_posts: number;
12660
12795
  tick_sleutel: string;
12661
12796
  updated_at: string;
12662
12797
  };
@@ -12666,6 +12801,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12666
12801
  created_at?: string;
12667
12802
  id?: string;
12668
12803
  laatst_gezien?: string;
12804
+ laatste_fout?: string | null;
12805
+ laatste_request_id?: number | null;
12806
+ mislukte_posts?: number;
12669
12807
  tick_sleutel?: string;
12670
12808
  updated_at?: string;
12671
12809
  };
@@ -12675,6 +12813,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12675
12813
  created_at?: string;
12676
12814
  id?: string;
12677
12815
  laatst_gezien?: string;
12816
+ laatste_fout?: string | null;
12817
+ laatste_request_id?: number | null;
12818
+ mislukte_posts?: number;
12678
12819
  tick_sleutel?: string;
12679
12820
  updated_at?: string;
12680
12821
  };
@@ -14183,6 +14324,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14183
14324
  referencedColumns: ["id"];
14184
14325
  }];
14185
14326
  };
14327
+ role_assignments: {
14328
+ Row: {
14329
+ created_at: string;
14330
+ id: string;
14331
+ role_id: string;
14332
+ user_id: string;
14333
+ };
14334
+ Insert: {
14335
+ created_at?: string;
14336
+ id?: string;
14337
+ role_id: string;
14338
+ user_id: string;
14339
+ };
14340
+ Update: {
14341
+ created_at?: string;
14342
+ id?: string;
14343
+ role_id?: string;
14344
+ user_id?: string;
14345
+ };
14346
+ Relationships: [{
14347
+ foreignKeyName: "role_assignments_role_id_fkey";
14348
+ columns: ["role_id"];
14349
+ isOneToOne: false;
14350
+ referencedRelation: "roles";
14351
+ referencedColumns: ["id"];
14352
+ }];
14353
+ };
14354
+ role_permissions: {
14355
+ Row: {
14356
+ can_edit: boolean;
14357
+ can_view: boolean;
14358
+ feature_id: string;
14359
+ id: string;
14360
+ module_id: string;
14361
+ role_id: string;
14362
+ updated_at: string;
14363
+ };
14364
+ Insert: {
14365
+ can_edit?: boolean;
14366
+ can_view?: boolean;
14367
+ feature_id?: string;
14368
+ id?: string;
14369
+ module_id: string;
14370
+ role_id: string;
14371
+ updated_at?: string;
14372
+ };
14373
+ Update: {
14374
+ can_edit?: boolean;
14375
+ can_view?: boolean;
14376
+ feature_id?: string;
14377
+ id?: string;
14378
+ module_id?: string;
14379
+ role_id?: string;
14380
+ updated_at?: string;
14381
+ };
14382
+ Relationships: [{
14383
+ foreignKeyName: "role_permissions_role_id_fkey";
14384
+ columns: ["role_id"];
14385
+ isOneToOne: false;
14386
+ referencedRelation: "roles";
14387
+ referencedColumns: ["id"];
14388
+ }];
14389
+ };
14390
+ roles: {
14391
+ Row: {
14392
+ created_at: string;
14393
+ id: string;
14394
+ is_protected: boolean;
14395
+ key: string;
14396
+ name: string;
14397
+ updated_at: string;
14398
+ };
14399
+ Insert: {
14400
+ created_at?: string;
14401
+ id?: string;
14402
+ is_protected?: boolean;
14403
+ key: string;
14404
+ name: string;
14405
+ updated_at?: string;
14406
+ };
14407
+ Update: {
14408
+ created_at?: string;
14409
+ id?: string;
14410
+ is_protected?: boolean;
14411
+ key?: string;
14412
+ name?: string;
14413
+ updated_at?: string;
14414
+ };
14415
+ Relationships: [];
14416
+ };
14186
14417
  rooms: {
14187
14418
  Row: {
14188
14419
  capacity: number;
@@ -14852,6 +15083,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14852
15083
  };
14853
15084
  Relationships: [];
14854
15085
  };
15086
+ time_compensation_entries: {
15087
+ Row: {
15088
+ created_at: string;
15089
+ employee_id: string;
15090
+ entry_date: string;
15091
+ id: string;
15092
+ km: number;
15093
+ meal_allowance: number;
15094
+ notes: string | null;
15095
+ standby_evening: number;
15096
+ standby_weekend: number;
15097
+ tvt_change: number;
15098
+ updated_at: string;
15099
+ };
15100
+ Insert: {
15101
+ created_at?: string;
15102
+ employee_id: string;
15103
+ entry_date: string;
15104
+ id?: string;
15105
+ km?: number;
15106
+ meal_allowance?: number;
15107
+ notes?: string | null;
15108
+ standby_evening?: number;
15109
+ standby_weekend?: number;
15110
+ tvt_change?: number;
15111
+ updated_at?: string;
15112
+ };
15113
+ Update: {
15114
+ created_at?: string;
15115
+ employee_id?: string;
15116
+ entry_date?: string;
15117
+ id?: string;
15118
+ km?: number;
15119
+ meal_allowance?: number;
15120
+ notes?: string | null;
15121
+ standby_evening?: number;
15122
+ standby_weekend?: number;
15123
+ tvt_change?: number;
15124
+ updated_at?: string;
15125
+ };
15126
+ Relationships: [{
15127
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15128
+ columns: ["employee_id"];
15129
+ isOneToOne: false;
15130
+ referencedRelation: "profiles";
15131
+ referencedColumns: ["id"];
15132
+ }];
15133
+ };
14855
15134
  time_entries: {
14856
15135
  Row: {
14857
15136
  created_at: string;
@@ -14886,65 +15165,170 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14886
15165
  undertime?: number;
14887
15166
  updated_at?: string;
14888
15167
  };
15168
+ Relationships: [];
15169
+ };
15170
+ time_log_week_approvals: {
15171
+ Row: {
15172
+ approved_at: string | null;
15173
+ approved_by: string | null;
15174
+ created_at: string;
15175
+ employee_id: string;
15176
+ id: string;
15177
+ locked: boolean;
15178
+ notes: string | null;
15179
+ status: string;
15180
+ submitted_at: string | null;
15181
+ updated_at: string;
15182
+ week_start: string;
15183
+ };
15184
+ Insert: {
15185
+ approved_at?: string | null;
15186
+ approved_by?: string | null;
15187
+ created_at?: string;
15188
+ employee_id: string;
15189
+ id?: string;
15190
+ locked?: boolean;
15191
+ notes?: string | null;
15192
+ status?: string;
15193
+ submitted_at?: string | null;
15194
+ updated_at?: string;
15195
+ week_start: string;
15196
+ };
15197
+ Update: {
15198
+ approved_at?: string | null;
15199
+ approved_by?: string | null;
15200
+ created_at?: string;
15201
+ employee_id?: string;
15202
+ id?: string;
15203
+ locked?: boolean;
15204
+ notes?: string | null;
15205
+ status?: string;
15206
+ submitted_at?: string | null;
15207
+ updated_at?: string;
15208
+ week_start?: string;
15209
+ };
14889
15210
  Relationships: [{
14890
- foreignKeyName: "time_entries_employee_id_fkey";
15211
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14891
15212
  columns: ["employee_id"];
14892
15213
  isOneToOne: false;
14893
- referencedRelation: "monteurs";
15214
+ referencedRelation: "profiles";
14894
15215
  referencedColumns: ["id"];
14895
15216
  }];
14896
15217
  };
14897
15218
  time_logs: {
14898
15219
  Row: {
15220
+ auto_stop_reason: string | null;
15221
+ auto_stopped: boolean;
14899
15222
  created_at: string;
15223
+ current_latitude: number | null;
15224
+ current_longitude: number | null;
15225
+ current_position_updated_at: string | null;
14900
15226
  employee_id: string;
15227
+ end_latitude: number | null;
15228
+ end_longitude: number | null;
14901
15229
  end_time: string | null;
15230
+ eta_distance_km: number | null;
15231
+ eta_minutes: number | null;
15232
+ eta_updated_at: string | null;
15233
+ hour_category: string | null;
14902
15234
  id: string;
15235
+ last_reminder_at: string | null;
14903
15236
  notes: string | null;
14904
15237
  overtime_hours: number;
14905
15238
  overtime_type: string | null;
14906
15239
  regular_hours: number;
15240
+ reminder_count: number;
15241
+ requires_review: boolean;
15242
+ start_latitude: number | null;
15243
+ start_longitude: number | null;
14907
15244
  start_time: string;
14908
15245
  travel_cost: number | null;
14909
15246
  travel_distance_km: number | null;
15247
+ travel_duration_min: number | null;
15248
+ travel_time_minutes: number | null;
14910
15249
  type: string;
14911
15250
  updated_at: string;
15251
+ work_order_id: string | null;
14912
15252
  };
14913
15253
  Insert: {
15254
+ auto_stop_reason?: string | null;
15255
+ auto_stopped?: boolean;
14914
15256
  created_at?: string;
15257
+ current_latitude?: number | null;
15258
+ current_longitude?: number | null;
15259
+ current_position_updated_at?: string | null;
14915
15260
  employee_id: string;
15261
+ end_latitude?: number | null;
15262
+ end_longitude?: number | null;
14916
15263
  end_time?: string | null;
15264
+ eta_distance_km?: number | null;
15265
+ eta_minutes?: number | null;
15266
+ eta_updated_at?: string | null;
15267
+ hour_category?: string | null;
14917
15268
  id?: string;
15269
+ last_reminder_at?: string | null;
14918
15270
  notes?: string | null;
14919
15271
  overtime_hours?: number;
14920
15272
  overtime_type?: string | null;
14921
15273
  regular_hours?: number;
15274
+ reminder_count?: number;
15275
+ requires_review?: boolean;
15276
+ start_latitude?: number | null;
15277
+ start_longitude?: number | null;
14922
15278
  start_time?: string;
14923
15279
  travel_cost?: number | null;
14924
15280
  travel_distance_km?: number | null;
15281
+ travel_duration_min?: number | null;
15282
+ travel_time_minutes?: number | null;
14925
15283
  type: string;
14926
15284
  updated_at?: string;
15285
+ work_order_id?: string | null;
14927
15286
  };
14928
15287
  Update: {
15288
+ auto_stop_reason?: string | null;
15289
+ auto_stopped?: boolean;
14929
15290
  created_at?: string;
15291
+ current_latitude?: number | null;
15292
+ current_longitude?: number | null;
15293
+ current_position_updated_at?: string | null;
14930
15294
  employee_id?: string;
15295
+ end_latitude?: number | null;
15296
+ end_longitude?: number | null;
14931
15297
  end_time?: string | null;
15298
+ eta_distance_km?: number | null;
15299
+ eta_minutes?: number | null;
15300
+ eta_updated_at?: string | null;
15301
+ hour_category?: string | null;
14932
15302
  id?: string;
15303
+ last_reminder_at?: string | null;
14933
15304
  notes?: string | null;
14934
15305
  overtime_hours?: number;
14935
15306
  overtime_type?: string | null;
14936
15307
  regular_hours?: number;
15308
+ reminder_count?: number;
15309
+ requires_review?: boolean;
15310
+ start_latitude?: number | null;
15311
+ start_longitude?: number | null;
14937
15312
  start_time?: string;
14938
15313
  travel_cost?: number | null;
14939
15314
  travel_distance_km?: number | null;
15315
+ travel_duration_min?: number | null;
15316
+ travel_time_minutes?: number | null;
14940
15317
  type?: string;
14941
15318
  updated_at?: string;
15319
+ work_order_id?: string | null;
14942
15320
  };
14943
15321
  Relationships: [{
14944
15322
  foreignKeyName: "time_logs_employee_id_fkey";
14945
15323
  columns: ["employee_id"];
14946
15324
  isOneToOne: false;
14947
- referencedRelation: "monteurs";
15325
+ referencedRelation: "profiles";
15326
+ referencedColumns: ["id"];
15327
+ }, {
15328
+ foreignKeyName: "time_logs_work_order_id_fkey";
15329
+ columns: ["work_order_id"];
15330
+ isOneToOne: false;
15331
+ referencedRelation: "work_orders";
14948
15332
  referencedColumns: ["id"];
14949
15333
  }];
14950
15334
  };
@@ -14983,7 +15367,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14983
15367
  foreignKeyName: "time_off_entries_employee_id_fkey";
14984
15368
  columns: ["employee_id"];
14985
15369
  isOneToOne: false;
14986
- referencedRelation: "monteurs";
15370
+ referencedRelation: "profiles";
14987
15371
  referencedColumns: ["id"];
14988
15372
  }];
14989
15373
  };
@@ -15293,6 +15677,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15293
15677
  };
15294
15678
  Relationships: [];
15295
15679
  };
15680
+ twinfield_cron_locks: {
15681
+ Row: {
15682
+ created_at: string;
15683
+ heartbeat_at: string;
15684
+ job_name: string;
15685
+ last_error: string | null;
15686
+ last_finished_at: string | null;
15687
+ locked_at: string;
15688
+ run_id: string;
15689
+ updated_at: string;
15690
+ };
15691
+ Insert: {
15692
+ created_at?: string;
15693
+ heartbeat_at?: string;
15694
+ job_name: string;
15695
+ last_error?: string | null;
15696
+ last_finished_at?: string | null;
15697
+ locked_at?: string;
15698
+ run_id?: string;
15699
+ updated_at?: string;
15700
+ };
15701
+ Update: {
15702
+ created_at?: string;
15703
+ heartbeat_at?: string;
15704
+ job_name?: string;
15705
+ last_error?: string | null;
15706
+ last_finished_at?: string | null;
15707
+ locked_at?: string;
15708
+ run_id?: string;
15709
+ updated_at?: string;
15710
+ };
15711
+ Relationships: [];
15712
+ };
15296
15713
  twinfield_customers: {
15297
15714
  Row: {
15298
15715
  address: string | null;
@@ -15893,6 +16310,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15893
16310
  twinfield_push_queue: {
15894
16311
  Row: {
15895
16312
  action: string;
16313
+ attempt_started_at: string | null;
15896
16314
  attempts: number;
15897
16315
  connection_id: string | null;
15898
16316
  created_at: string;
@@ -15909,6 +16327,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15909
16327
  };
15910
16328
  Insert: {
15911
16329
  action?: string;
16330
+ attempt_started_at?: string | null;
15912
16331
  attempts?: number;
15913
16332
  connection_id?: string | null;
15914
16333
  created_at?: string;
@@ -15925,6 +16344,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15925
16344
  };
15926
16345
  Update: {
15927
16346
  action?: string;
16347
+ attempt_started_at?: string | null;
15928
16348
  attempts?: number;
15929
16349
  connection_id?: string | null;
15930
16350
  created_at?: string;
@@ -16122,13 +16542,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16122
16542
  workday_end?: string | null;
16123
16543
  workday_start?: string | null;
16124
16544
  };
16125
- Relationships: [{
16126
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16127
- columns: ["monteur_id"];
16128
- isOneToOne: true;
16129
- referencedRelation: "monteurs";
16130
- referencedColumns: ["id"];
16131
- }];
16545
+ Relationships: [];
16132
16546
  };
16133
16547
  uren_entries: {
16134
16548
  Row: {
@@ -16174,12 +16588,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16174
16588
  werkbon_id?: string | null;
16175
16589
  };
16176
16590
  Relationships: [{
16177
- foreignKeyName: "uren_entries_monteur_id_fkey";
16178
- columns: ["monteur_id"];
16179
- isOneToOne: false;
16180
- referencedRelation: "monteurs";
16181
- referencedColumns: ["id"];
16182
- }, {
16183
16591
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16184
16592
  columns: ["werkbon_id"];
16185
16593
  isOneToOne: false;
@@ -16647,17 +17055,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16647
17055
  submitted_at?: string | null;
16648
17056
  updated_at?: string;
16649
17057
  };
16650
- Relationships: [{
16651
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16652
- columns: ["monteur_id"];
16653
- isOneToOne: false;
16654
- referencedRelation: "monteurs";
16655
- referencedColumns: ["id"];
16656
- }];
17058
+ Relationships: [];
16657
17059
  };
16658
17060
  user_module_permissions: {
16659
17061
  Row: {
16660
17062
  created_at: string;
17063
+ feature_id: string;
16661
17064
  id: string;
16662
17065
  module_id: string;
16663
17066
  permission: string;
@@ -16666,6 +17069,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16666
17069
  };
16667
17070
  Insert: {
16668
17071
  created_at?: string;
17072
+ feature_id?: string;
16669
17073
  id?: string;
16670
17074
  module_id: string;
16671
17075
  permission: string;
@@ -16674,6 +17078,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16674
17078
  };
16675
17079
  Update: {
16676
17080
  created_at?: string;
17081
+ feature_id?: string;
16677
17082
  id?: string;
16678
17083
  module_id?: string;
16679
17084
  permission?: string;
@@ -16709,6 +17114,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16709
17114
  referencedColumns: ["id"];
16710
17115
  }];
16711
17116
  };
17117
+ van_inventories: {
17118
+ Row: {
17119
+ barcode: string | null;
17120
+ created_at: string;
17121
+ id: string;
17122
+ monteur_id: string | null;
17123
+ price_per_unit: number;
17124
+ product_name: string;
17125
+ quantity_current: number;
17126
+ quantity_min: number;
17127
+ unit: string;
17128
+ updated_at: string;
17129
+ };
17130
+ Insert: {
17131
+ barcode?: string | null;
17132
+ created_at?: string;
17133
+ id?: string;
17134
+ monteur_id?: string | null;
17135
+ price_per_unit?: number;
17136
+ product_name: string;
17137
+ quantity_current?: number;
17138
+ quantity_min?: number;
17139
+ unit?: string;
17140
+ updated_at?: string;
17141
+ };
17142
+ Update: {
17143
+ barcode?: string | null;
17144
+ created_at?: string;
17145
+ id?: string;
17146
+ monteur_id?: string | null;
17147
+ price_per_unit?: number;
17148
+ product_name?: string;
17149
+ quantity_current?: number;
17150
+ quantity_min?: number;
17151
+ unit?: string;
17152
+ updated_at?: string;
17153
+ };
17154
+ Relationships: [{
17155
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17156
+ columns: ["monteur_id"];
17157
+ isOneToOne: false;
17158
+ referencedRelation: "profiles";
17159
+ referencedColumns: ["id"];
17160
+ }];
17161
+ };
16712
17162
  voorraad_custom_fields: {
16713
17163
  Row: {
16714
17164
  created_at: string;
@@ -17659,7 +18109,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17659
18109
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17660
18110
  columns: ["monteur_id"];
17661
18111
  isOneToOne: false;
17662
- referencedRelation: "monteurs";
18112
+ referencedRelation: "profiles";
17663
18113
  referencedColumns: ["id"];
17664
18114
  }, {
17665
18115
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17669,6 +18119,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17669
18119
  referencedColumns: ["id"];
17670
18120
  }];
17671
18121
  };
18122
+ work_order_photos: {
18123
+ Row: {
18124
+ ai_caption: string | null;
18125
+ ai_categorized_at: string | null;
18126
+ ai_labels: import("./types").Json | null;
18127
+ caption: string | null;
18128
+ created_at: string;
18129
+ id: string;
18130
+ monteur_id: string | null;
18131
+ photo_type: string;
18132
+ storage_path: string;
18133
+ updated_at: string;
18134
+ work_order_id: string;
18135
+ };
18136
+ Insert: {
18137
+ ai_caption?: string | null;
18138
+ ai_categorized_at?: string | null;
18139
+ ai_labels?: import("./types").Json | null;
18140
+ caption?: string | null;
18141
+ created_at?: string;
18142
+ id?: string;
18143
+ monteur_id?: string | null;
18144
+ photo_type?: string;
18145
+ storage_path: string;
18146
+ updated_at?: string;
18147
+ work_order_id: string;
18148
+ };
18149
+ Update: {
18150
+ ai_caption?: string | null;
18151
+ ai_categorized_at?: string | null;
18152
+ ai_labels?: import("./types").Json | null;
18153
+ caption?: string | null;
18154
+ created_at?: string;
18155
+ id?: string;
18156
+ monteur_id?: string | null;
18157
+ photo_type?: string;
18158
+ storage_path?: string;
18159
+ updated_at?: string;
18160
+ work_order_id?: string;
18161
+ };
18162
+ Relationships: [{
18163
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18164
+ columns: ["monteur_id"];
18165
+ isOneToOne: false;
18166
+ referencedRelation: "profiles";
18167
+ referencedColumns: ["id"];
18168
+ }, {
18169
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18170
+ columns: ["work_order_id"];
18171
+ isOneToOne: false;
18172
+ referencedRelation: "work_orders";
18173
+ referencedColumns: ["id"];
18174
+ }];
18175
+ };
17672
18176
  work_orders: {
17673
18177
  Row: {
17674
18178
  assigned_to: string | null;
@@ -17700,7 +18204,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17700
18204
  scheduled_end_time: string | null;
17701
18205
  scheduled_start_time: string | null;
17702
18206
  status: string;
17703
- tenant_id: string;
17704
18207
  total_hours_worked: number | null;
17705
18208
  total_price: number | null;
17706
18209
  travel_time_minutes: number | null;
@@ -17738,7 +18241,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17738
18241
  scheduled_end_time?: string | null;
17739
18242
  scheduled_start_time?: string | null;
17740
18243
  status?: string;
17741
- tenant_id: string;
17742
18244
  total_hours_worked?: number | null;
17743
18245
  total_price?: number | null;
17744
18246
  travel_time_minutes?: number | null;
@@ -17776,7 +18278,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17776
18278
  scheduled_end_time?: string | null;
17777
18279
  scheduled_start_time?: string | null;
17778
18280
  status?: string;
17779
- tenant_id?: string;
17780
18281
  total_hours_worked?: number | null;
17781
18282
  total_price?: number | null;
17782
18283
  travel_time_minutes?: number | null;
@@ -17790,12 +18291,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17790
18291
  isOneToOne: false;
17791
18292
  referencedRelation: "work_orders";
17792
18293
  referencedColumns: ["id"];
17793
- }, {
17794
- foreignKeyName: "work_orders_tenant_id_fkey";
17795
- columns: ["tenant_id"];
17796
- isOneToOne: false;
17797
- referencedRelation: "tenants";
17798
- referencedColumns: ["id"];
17799
18294
  }];
17800
18295
  };
17801
18296
  };
@@ -18531,6 +19026,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18531
19026
  };
18532
19027
  Returns: number;
18533
19028
  };
19029
+ can_manage_hours: {
19030
+ Args: never;
19031
+ Returns: boolean;
19032
+ };
18534
19033
  check_offer_product_available_stock: {
18535
19034
  Args: {
18536
19035
  p_campaign_product_id: string;
@@ -18720,6 +19219,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18720
19219
  };
18721
19220
  Returns: {
18722
19221
  action: string;
19222
+ attempt_started_at: string | null;
18723
19223
  attempts: number;
18724
19224
  connection_id: string | null;
18725
19225
  created_at: string;
@@ -18807,6 +19307,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18807
19307
  agent_naam: string;
18808
19308
  }[];
18809
19309
  };
19310
+ consume_van_inventory: {
19311
+ Args: {
19312
+ p_inventory_id: string;
19313
+ p_quantity: number;
19314
+ };
19315
+ Returns: {
19316
+ barcode: string | null;
19317
+ created_at: string;
19318
+ id: string;
19319
+ monteur_id: string | null;
19320
+ price_per_unit: number;
19321
+ product_name: string;
19322
+ quantity_current: number;
19323
+ quantity_min: number;
19324
+ unit: string;
19325
+ updated_at: string;
19326
+ };
19327
+ SetofOptions: {
19328
+ from: "*";
19329
+ to: "van_inventories";
19330
+ isOneToOne: true;
19331
+ isSetofReturn: false;
19332
+ };
19333
+ };
18810
19334
  control_get_todays_carts: {
18811
19335
  Args: never;
18812
19336
  Returns: {
@@ -18880,6 +19404,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18880
19404
  _user_id: string;
18881
19405
  };
18882
19406
  Returns: string;
19407
+ } | {
19408
+ Args: {
19409
+ _feature_id?: string;
19410
+ _module_id: string;
19411
+ _user_id: string;
19412
+ };
19413
+ Returns: string;
18883
19414
  };
18884
19415
  email_auth_decrypt: {
18885
19416
  Args: {
@@ -19231,12 +19762,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19231
19762
  Args: never;
19232
19763
  Returns: string;
19233
19764
  };
19234
- get_work_order_tenant_id: {
19235
- Args: {
19236
- wo_id: string;
19237
- };
19238
- Returns: string;
19239
- };
19240
19765
  has_module_permission: {
19241
19766
  Args: {
19242
19767
  _min: string;
@@ -19270,6 +19795,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19270
19795
  };
19271
19796
  Returns: boolean;
19272
19797
  };
19798
+ is_time_log_week_locked: {
19799
+ Args: {
19800
+ p_employee_id: string;
19801
+ p_start_time: string;
19802
+ };
19803
+ Returns: boolean;
19804
+ };
19273
19805
  is_user_admin: {
19274
19806
  Args: never;
19275
19807
  Returns: boolean;
@@ -19284,13 +19816,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19284
19816
  };
19285
19817
  Returns: boolean;
19286
19818
  };
19287
- list_monteurs: {
19819
+ list_medewerkers: {
19288
19820
  Args: never;
19289
19821
  Returns: {
19290
19822
  avatar_url: string;
19291
19823
  display_name: string;
19292
19824
  email: string;
19293
19825
  id: string;
19826
+ roles: string[];
19294
19827
  }[];
19295
19828
  };
19296
19829
  list_my_planning_items: {
@@ -20081,6 +20614,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20081
20614
  my_module_permissions: {
20082
20615
  Args: never;
20083
20616
  Returns: {
20617
+ feature_id: string;
20084
20618
  module_id: string;
20085
20619
  permission: string;
20086
20620
  }[];
@@ -20961,6 +21495,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20961
21495
  };
20962
21496
  Returns: string[];
20963
21497
  };
21498
+ switch_time_log: {
21499
+ Args: {
21500
+ p_employee_id: string;
21501
+ p_start_lat?: number;
21502
+ p_start_lng?: number;
21503
+ p_type: string;
21504
+ p_work_order_id?: string;
21505
+ };
21506
+ Returns: import("./types").Json;
21507
+ };
20964
21508
  sync_all_layer_stocks: {
20965
21509
  Args: never;
20966
21510
  Returns: undefined;
@@ -21011,6 +21555,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21011
21555
  };
21012
21556
  Returns: boolean;
21013
21557
  };
21558
+ twinfield_cron_lock_acquire: {
21559
+ Args: {
21560
+ _job_name: string;
21561
+ _stale_seconds?: number;
21562
+ };
21563
+ Returns: boolean;
21564
+ };
21565
+ twinfield_cron_lock_release: {
21566
+ Args: {
21567
+ _error?: string;
21568
+ _job_name: string;
21569
+ };
21570
+ Returns: undefined;
21571
+ };
21572
+ twinfield_prune_push_queue: {
21573
+ Args: never;
21574
+ Returns: number;
21575
+ };
21014
21576
  twinfield_register_cron: {
21015
21577
  Args: {
21016
21578
  apikey?: string;