@flowselections/floriday-afhandeling-module 1.0.31 → 1.0.33

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 (66) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.js +1 -1
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +6 -6
  3. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/ControleLijstPrint.js +73 -48
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/ControlePage.js +47 -14
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.js +48 -24
  9. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
  10. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
  12. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  13. package/dist-lib/components/afhandeling/WeekAgendaView.js +16 -5
  14. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +10 -0
  15. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts.map +1 -0
  16. package/dist-lib/components/afhandeling/WerkplekWaarschuwing.js +28 -0
  17. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  18. package/dist-lib/components/pickstation/printDocuments.d.ts +9 -2
  19. package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -1
  20. package/dist-lib/components/pickstation/printDocuments.js +8 -52
  21. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  22. package/dist-lib/components/settings/AfhandelingSettingsCard.js +12 -1
  23. package/dist-lib/hooks/useEngineTasks.js +1 -1
  24. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  25. package/dist-lib/hooks/useOrderPlanning.js +32 -14
  26. package/dist-lib/integrations/supabase/auth-middleware.d.ts +695 -128
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.server.d.ts +695 -128
  29. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/{client.d.ts → moduleClient.d.ts} +697 -129
  31. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
  32. package/dist-lib/integrations/supabase/moduleClient.js +38 -0
  33. package/dist-lib/integrations/supabase/types.d.ts +727 -155
  34. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/types.js +3 -0
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1390 -256
  37. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  39. package/dist-lib/lib/carriers.functions.d.ts +3475 -640
  40. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/cartAssignments.functions.d.ts +3475 -640
  42. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/cartControl.functions.d.ts +6950 -1280
  44. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/deliveryNotePrint.d.ts +14 -6
  46. package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -1
  47. package/dist-lib/lib/deliveryNotePrint.js +61 -14
  48. package/dist-lib/lib/floriday.functions.d.ts +695 -128
  49. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floridayAutoProcess.js +1 -1
  51. package/dist-lib/lib/logisticsEngine/capacity.js +1 -1
  52. package/dist-lib/lib/logisticsEngine/emitQueue.d.ts +20 -0
  53. package/dist-lib/lib/logisticsEngine/emitQueue.d.ts.map +1 -0
  54. package/dist-lib/lib/logisticsEngine/emitQueue.js +88 -0
  55. package/dist-lib/lib/logisticsEngine/engine.js +1 -1
  56. package/dist-lib/lib/logisticsEngine/reschedule.js +1 -1
  57. package/dist-lib/lib/logisticsEngine/staffPlanning.js +1 -1
  58. package/dist-lib/lib/printing.d.ts +56 -0
  59. package/dist-lib/lib/printing.d.ts.map +1 -0
  60. package/dist-lib/lib/printing.js +209 -0
  61. package/package.json +3 -7
  62. package/dist-lib/integrations/supabase/auth-attacher.d.ts +0 -2
  63. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +0 -1
  64. package/dist-lib/integrations/supabase/auth-attacher.js +0 -12
  65. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  66. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -1,4 +1,5 @@
1
1
  import type { Database } from './types';
2
+ /** Lazy: pas bij het eerste gebruik wordt de client gemaakt (SSR-veilig). */
2
3
  export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
3
4
  Tables: {
4
5
  afhandeling_settings: {
@@ -871,6 +872,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
871
872
  };
872
873
  Relationships: [];
873
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
+ };
874
995
  carrier_shipping_rates: {
875
996
  Row: {
876
997
  carrier_id: string;
@@ -7765,7 +7886,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7765
7886
  start_date: string;
7766
7887
  start_time: string | null;
7767
7888
  status: string;
7768
- tenant_id: string;
7769
7889
  updated_at: string;
7770
7890
  user_id: string;
7771
7891
  };
@@ -7783,7 +7903,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7783
7903
  start_date: string;
7784
7904
  start_time?: string | null;
7785
7905
  status?: string;
7786
- tenant_id?: string;
7787
7906
  updated_at?: string;
7788
7907
  user_id: string;
7789
7908
  };
@@ -7801,7 +7920,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7801
7920
  start_date?: string;
7802
7921
  start_time?: string | null;
7803
7922
  status?: string;
7804
- tenant_id?: string;
7805
7923
  updated_at?: string;
7806
7924
  user_id?: string;
7807
7925
  };
@@ -7809,13 +7927,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7809
7927
  foreignKeyName: "leave_requests_monteur_id_fkey";
7810
7928
  columns: ["monteur_id"];
7811
7929
  isOneToOne: false;
7812
- referencedRelation: "monteurs";
7930
+ referencedRelation: "profiles";
7813
7931
  referencedColumns: ["id"];
7814
7932
  }, {
7815
7933
  foreignKeyName: "leave_requests_user_id_fkey";
7816
7934
  columns: ["user_id"];
7817
7935
  isOneToOne: false;
7818
- referencedRelation: "monteurs";
7936
+ referencedRelation: "profiles";
7819
7937
  referencedColumns: ["id"];
7820
7938
  }];
7821
7939
  };
@@ -9970,6 +10088,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9970
10088
  };
9971
10089
  Relationships: [];
9972
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
+ };
9973
10175
  module_permissions: {
9974
10176
  Row: {
9975
10177
  created_at: string;
@@ -10000,6 +10202,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10000
10202
  module_registry: {
10001
10203
  Row: {
10002
10204
  created_at: string;
10205
+ enforce: boolean;
10003
10206
  is_active: boolean;
10004
10207
  last_seen_at: string;
10005
10208
  module_id: string;
@@ -10009,6 +10212,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10009
10212
  };
10010
10213
  Insert: {
10011
10214
  created_at?: string;
10215
+ enforce?: boolean;
10012
10216
  is_active?: boolean;
10013
10217
  last_seen_at?: string;
10014
10218
  module_id: string;
@@ -10018,6 +10222,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10018
10222
  };
10019
10223
  Update: {
10020
10224
  created_at?: string;
10225
+ enforce?: boolean;
10021
10226
  is_active?: boolean;
10022
10227
  last_seen_at?: string;
10023
10228
  module_id?: string;
@@ -10078,63 +10283,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10078
10283
  };
10079
10284
  Relationships: [];
10080
10285
  };
10081
- monteurs: {
10082
- Row: {
10083
- avatar_url: string | null;
10084
- color: string | null;
10085
- created_at: string;
10086
- email: string | null;
10087
- id: string;
10088
- is_active: boolean;
10089
- leave_balance_hours: number;
10090
- name: string;
10091
- persnr: number | null;
10092
- phone: string | null;
10093
- role: string;
10094
- tenant_id: string;
10095
- updated_at: string;
10096
- user_id: string | null;
10097
- };
10098
- Insert: {
10099
- avatar_url?: string | null;
10100
- color?: string | null;
10101
- created_at?: string;
10102
- email?: string | null;
10103
- id?: string;
10104
- is_active?: boolean;
10105
- leave_balance_hours?: number;
10106
- name: string;
10107
- persnr?: number | null;
10108
- phone?: string | null;
10109
- role?: string;
10110
- tenant_id: string;
10111
- updated_at?: string;
10112
- user_id?: string | null;
10113
- };
10114
- Update: {
10115
- avatar_url?: string | null;
10116
- color?: string | null;
10117
- created_at?: string;
10118
- email?: string | null;
10119
- id?: string;
10120
- is_active?: boolean;
10121
- leave_balance_hours?: number;
10122
- name?: string;
10123
- persnr?: number | null;
10124
- phone?: string | null;
10125
- role?: string;
10126
- tenant_id?: string;
10127
- updated_at?: string;
10128
- user_id?: string | null;
10129
- };
10130
- Relationships: [{
10131
- foreignKeyName: "monteurs_tenant_id_fkey";
10132
- columns: ["tenant_id"];
10133
- isOneToOne: false;
10134
- referencedRelation: "tenants";
10135
- referencedColumns: ["id"];
10136
- }];
10137
- };
10138
10286
  nmbrs_component_mapping: {
10139
10287
  Row: {
10140
10288
  created_at: string;
@@ -10205,13 +10353,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10205
10353
  nmbrs_employee_number?: string;
10206
10354
  updated_at?: string;
10207
10355
  };
10208
- Relationships: [{
10209
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10210
- columns: ["monteur_id"];
10211
- isOneToOne: true;
10212
- referencedRelation: "monteurs";
10213
- referencedColumns: ["id"];
10214
- }];
10356
+ Relationships: [];
10215
10357
  };
10216
10358
  nmbrs_export_lines: {
10217
10359
  Row: {
@@ -10260,12 +10402,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10260
10402
  wage_code?: string;
10261
10403
  };
10262
10404
  Relationships: [{
10263
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10264
- columns: ["monteur_id"];
10265
- isOneToOne: false;
10266
- referencedRelation: "monteurs";
10267
- referencedColumns: ["id"];
10268
- }, {
10269
10405
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10270
10406
  columns: ["run_id"];
10271
10407
  isOneToOne: false;
@@ -12656,6 +12792,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12656
12792
  created_at: string;
12657
12793
  id: string;
12658
12794
  laatst_gezien: string;
12795
+ laatste_fout: string | null;
12796
+ laatste_request_id: number | null;
12797
+ mislukte_posts: number;
12659
12798
  tick_sleutel: string;
12660
12799
  updated_at: string;
12661
12800
  };
@@ -12665,6 +12804,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12665
12804
  created_at?: string;
12666
12805
  id?: string;
12667
12806
  laatst_gezien?: string;
12807
+ laatste_fout?: string | null;
12808
+ laatste_request_id?: number | null;
12809
+ mislukte_posts?: number;
12668
12810
  tick_sleutel?: string;
12669
12811
  updated_at?: string;
12670
12812
  };
@@ -12674,6 +12816,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12674
12816
  created_at?: string;
12675
12817
  id?: string;
12676
12818
  laatst_gezien?: string;
12819
+ laatste_fout?: string | null;
12820
+ laatste_request_id?: number | null;
12821
+ mislukte_posts?: number;
12677
12822
  tick_sleutel?: string;
12678
12823
  updated_at?: string;
12679
12824
  };
@@ -14182,6 +14327,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14182
14327
  referencedColumns: ["id"];
14183
14328
  }];
14184
14329
  };
14330
+ role_assignments: {
14331
+ Row: {
14332
+ created_at: string;
14333
+ id: string;
14334
+ role_id: string;
14335
+ user_id: string;
14336
+ };
14337
+ Insert: {
14338
+ created_at?: string;
14339
+ id?: string;
14340
+ role_id: string;
14341
+ user_id: string;
14342
+ };
14343
+ Update: {
14344
+ created_at?: string;
14345
+ id?: string;
14346
+ role_id?: string;
14347
+ user_id?: string;
14348
+ };
14349
+ Relationships: [{
14350
+ foreignKeyName: "role_assignments_role_id_fkey";
14351
+ columns: ["role_id"];
14352
+ isOneToOne: false;
14353
+ referencedRelation: "roles";
14354
+ referencedColumns: ["id"];
14355
+ }];
14356
+ };
14357
+ role_permissions: {
14358
+ Row: {
14359
+ can_edit: boolean;
14360
+ can_view: boolean;
14361
+ feature_id: string;
14362
+ id: string;
14363
+ module_id: string;
14364
+ role_id: string;
14365
+ updated_at: string;
14366
+ };
14367
+ Insert: {
14368
+ can_edit?: boolean;
14369
+ can_view?: boolean;
14370
+ feature_id?: string;
14371
+ id?: string;
14372
+ module_id: string;
14373
+ role_id: string;
14374
+ updated_at?: string;
14375
+ };
14376
+ Update: {
14377
+ can_edit?: boolean;
14378
+ can_view?: boolean;
14379
+ feature_id?: string;
14380
+ id?: string;
14381
+ module_id?: string;
14382
+ role_id?: string;
14383
+ updated_at?: string;
14384
+ };
14385
+ Relationships: [{
14386
+ foreignKeyName: "role_permissions_role_id_fkey";
14387
+ columns: ["role_id"];
14388
+ isOneToOne: false;
14389
+ referencedRelation: "roles";
14390
+ referencedColumns: ["id"];
14391
+ }];
14392
+ };
14393
+ roles: {
14394
+ Row: {
14395
+ created_at: string;
14396
+ id: string;
14397
+ is_protected: boolean;
14398
+ key: string;
14399
+ name: string;
14400
+ updated_at: string;
14401
+ };
14402
+ Insert: {
14403
+ created_at?: string;
14404
+ id?: string;
14405
+ is_protected?: boolean;
14406
+ key: string;
14407
+ name: string;
14408
+ updated_at?: string;
14409
+ };
14410
+ Update: {
14411
+ created_at?: string;
14412
+ id?: string;
14413
+ is_protected?: boolean;
14414
+ key?: string;
14415
+ name?: string;
14416
+ updated_at?: string;
14417
+ };
14418
+ Relationships: [];
14419
+ };
14185
14420
  rooms: {
14186
14421
  Row: {
14187
14422
  capacity: number;
@@ -14851,6 +15086,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14851
15086
  };
14852
15087
  Relationships: [];
14853
15088
  };
15089
+ time_compensation_entries: {
15090
+ Row: {
15091
+ created_at: string;
15092
+ employee_id: string;
15093
+ entry_date: string;
15094
+ id: string;
15095
+ km: number;
15096
+ meal_allowance: number;
15097
+ notes: string | null;
15098
+ standby_evening: number;
15099
+ standby_weekend: number;
15100
+ tvt_change: number;
15101
+ updated_at: string;
15102
+ };
15103
+ Insert: {
15104
+ created_at?: string;
15105
+ employee_id: string;
15106
+ entry_date: string;
15107
+ id?: string;
15108
+ km?: number;
15109
+ meal_allowance?: number;
15110
+ notes?: string | null;
15111
+ standby_evening?: number;
15112
+ standby_weekend?: number;
15113
+ tvt_change?: number;
15114
+ updated_at?: string;
15115
+ };
15116
+ Update: {
15117
+ created_at?: string;
15118
+ employee_id?: string;
15119
+ entry_date?: string;
15120
+ id?: string;
15121
+ km?: number;
15122
+ meal_allowance?: number;
15123
+ notes?: string | null;
15124
+ standby_evening?: number;
15125
+ standby_weekend?: number;
15126
+ tvt_change?: number;
15127
+ updated_at?: string;
15128
+ };
15129
+ Relationships: [{
15130
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15131
+ columns: ["employee_id"];
15132
+ isOneToOne: false;
15133
+ referencedRelation: "profiles";
15134
+ referencedColumns: ["id"];
15135
+ }];
15136
+ };
14854
15137
  time_entries: {
14855
15138
  Row: {
14856
15139
  created_at: string;
@@ -14885,65 +15168,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14885
15168
  undertime?: number;
14886
15169
  updated_at?: string;
14887
15170
  };
15171
+ Relationships: [];
15172
+ };
15173
+ time_log_week_approvals: {
15174
+ Row: {
15175
+ approved_at: string | null;
15176
+ approved_by: string | null;
15177
+ created_at: string;
15178
+ employee_id: string;
15179
+ id: string;
15180
+ locked: boolean;
15181
+ notes: string | null;
15182
+ status: string;
15183
+ submitted_at: string | null;
15184
+ updated_at: string;
15185
+ week_start: string;
15186
+ };
15187
+ Insert: {
15188
+ approved_at?: string | null;
15189
+ approved_by?: string | null;
15190
+ created_at?: string;
15191
+ employee_id: string;
15192
+ id?: string;
15193
+ locked?: boolean;
15194
+ notes?: string | null;
15195
+ status?: string;
15196
+ submitted_at?: string | null;
15197
+ updated_at?: string;
15198
+ week_start: string;
15199
+ };
15200
+ Update: {
15201
+ approved_at?: string | null;
15202
+ approved_by?: string | null;
15203
+ created_at?: string;
15204
+ employee_id?: string;
15205
+ id?: string;
15206
+ locked?: boolean;
15207
+ notes?: string | null;
15208
+ status?: string;
15209
+ submitted_at?: string | null;
15210
+ updated_at?: string;
15211
+ week_start?: string;
15212
+ };
14888
15213
  Relationships: [{
14889
- foreignKeyName: "time_entries_employee_id_fkey";
15214
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14890
15215
  columns: ["employee_id"];
14891
15216
  isOneToOne: false;
14892
- referencedRelation: "monteurs";
15217
+ referencedRelation: "profiles";
14893
15218
  referencedColumns: ["id"];
14894
15219
  }];
14895
15220
  };
14896
15221
  time_logs: {
14897
15222
  Row: {
15223
+ auto_stop_reason: string | null;
15224
+ auto_stopped: boolean;
14898
15225
  created_at: string;
15226
+ current_latitude: number | null;
15227
+ current_longitude: number | null;
15228
+ current_position_updated_at: string | null;
14899
15229
  employee_id: string;
15230
+ end_latitude: number | null;
15231
+ end_longitude: number | null;
14900
15232
  end_time: string | null;
15233
+ eta_distance_km: number | null;
15234
+ eta_minutes: number | null;
15235
+ eta_updated_at: string | null;
15236
+ hour_category: string | null;
14901
15237
  id: string;
15238
+ last_reminder_at: string | null;
14902
15239
  notes: string | null;
14903
15240
  overtime_hours: number;
14904
15241
  overtime_type: string | null;
14905
15242
  regular_hours: number;
15243
+ reminder_count: number;
15244
+ requires_review: boolean;
15245
+ start_latitude: number | null;
15246
+ start_longitude: number | null;
14906
15247
  start_time: string;
14907
15248
  travel_cost: number | null;
14908
15249
  travel_distance_km: number | null;
15250
+ travel_duration_min: number | null;
15251
+ travel_time_minutes: number | null;
14909
15252
  type: string;
14910
15253
  updated_at: string;
15254
+ work_order_id: string | null;
14911
15255
  };
14912
15256
  Insert: {
15257
+ auto_stop_reason?: string | null;
15258
+ auto_stopped?: boolean;
14913
15259
  created_at?: string;
15260
+ current_latitude?: number | null;
15261
+ current_longitude?: number | null;
15262
+ current_position_updated_at?: string | null;
14914
15263
  employee_id: string;
15264
+ end_latitude?: number | null;
15265
+ end_longitude?: number | null;
14915
15266
  end_time?: string | null;
15267
+ eta_distance_km?: number | null;
15268
+ eta_minutes?: number | null;
15269
+ eta_updated_at?: string | null;
15270
+ hour_category?: string | null;
14916
15271
  id?: string;
15272
+ last_reminder_at?: string | null;
14917
15273
  notes?: string | null;
14918
15274
  overtime_hours?: number;
14919
15275
  overtime_type?: string | null;
14920
15276
  regular_hours?: number;
15277
+ reminder_count?: number;
15278
+ requires_review?: boolean;
15279
+ start_latitude?: number | null;
15280
+ start_longitude?: number | null;
14921
15281
  start_time?: string;
14922
15282
  travel_cost?: number | null;
14923
15283
  travel_distance_km?: number | null;
15284
+ travel_duration_min?: number | null;
15285
+ travel_time_minutes?: number | null;
14924
15286
  type: string;
14925
15287
  updated_at?: string;
15288
+ work_order_id?: string | null;
14926
15289
  };
14927
15290
  Update: {
15291
+ auto_stop_reason?: string | null;
15292
+ auto_stopped?: boolean;
14928
15293
  created_at?: string;
15294
+ current_latitude?: number | null;
15295
+ current_longitude?: number | null;
15296
+ current_position_updated_at?: string | null;
14929
15297
  employee_id?: string;
15298
+ end_latitude?: number | null;
15299
+ end_longitude?: number | null;
14930
15300
  end_time?: string | null;
15301
+ eta_distance_km?: number | null;
15302
+ eta_minutes?: number | null;
15303
+ eta_updated_at?: string | null;
15304
+ hour_category?: string | null;
14931
15305
  id?: string;
15306
+ last_reminder_at?: string | null;
14932
15307
  notes?: string | null;
14933
15308
  overtime_hours?: number;
14934
15309
  overtime_type?: string | null;
14935
15310
  regular_hours?: number;
15311
+ reminder_count?: number;
15312
+ requires_review?: boolean;
15313
+ start_latitude?: number | null;
15314
+ start_longitude?: number | null;
14936
15315
  start_time?: string;
14937
15316
  travel_cost?: number | null;
14938
15317
  travel_distance_km?: number | null;
15318
+ travel_duration_min?: number | null;
15319
+ travel_time_minutes?: number | null;
14939
15320
  type?: string;
14940
15321
  updated_at?: string;
15322
+ work_order_id?: string | null;
14941
15323
  };
14942
15324
  Relationships: [{
14943
15325
  foreignKeyName: "time_logs_employee_id_fkey";
14944
15326
  columns: ["employee_id"];
14945
15327
  isOneToOne: false;
14946
- referencedRelation: "monteurs";
15328
+ referencedRelation: "profiles";
15329
+ referencedColumns: ["id"];
15330
+ }, {
15331
+ foreignKeyName: "time_logs_work_order_id_fkey";
15332
+ columns: ["work_order_id"];
15333
+ isOneToOne: false;
15334
+ referencedRelation: "work_orders";
14947
15335
  referencedColumns: ["id"];
14948
15336
  }];
14949
15337
  };
@@ -14982,7 +15370,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14982
15370
  foreignKeyName: "time_off_entries_employee_id_fkey";
14983
15371
  columns: ["employee_id"];
14984
15372
  isOneToOne: false;
14985
- referencedRelation: "monteurs";
15373
+ referencedRelation: "profiles";
14986
15374
  referencedColumns: ["id"];
14987
15375
  }];
14988
15376
  };
@@ -15292,6 +15680,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15292
15680
  };
15293
15681
  Relationships: [];
15294
15682
  };
15683
+ twinfield_cron_locks: {
15684
+ Row: {
15685
+ created_at: string;
15686
+ heartbeat_at: string;
15687
+ job_name: string;
15688
+ last_error: string | null;
15689
+ last_finished_at: string | null;
15690
+ locked_at: string;
15691
+ run_id: string;
15692
+ updated_at: string;
15693
+ };
15694
+ Insert: {
15695
+ created_at?: string;
15696
+ heartbeat_at?: string;
15697
+ job_name: string;
15698
+ last_error?: string | null;
15699
+ last_finished_at?: string | null;
15700
+ locked_at?: string;
15701
+ run_id?: string;
15702
+ updated_at?: string;
15703
+ };
15704
+ Update: {
15705
+ created_at?: string;
15706
+ heartbeat_at?: string;
15707
+ job_name?: string;
15708
+ last_error?: string | null;
15709
+ last_finished_at?: string | null;
15710
+ locked_at?: string;
15711
+ run_id?: string;
15712
+ updated_at?: string;
15713
+ };
15714
+ Relationships: [];
15715
+ };
15295
15716
  twinfield_customers: {
15296
15717
  Row: {
15297
15718
  address: string | null;
@@ -15892,6 +16313,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15892
16313
  twinfield_push_queue: {
15893
16314
  Row: {
15894
16315
  action: string;
16316
+ attempt_started_at: string | null;
15895
16317
  attempts: number;
15896
16318
  connection_id: string | null;
15897
16319
  created_at: string;
@@ -15908,6 +16330,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15908
16330
  };
15909
16331
  Insert: {
15910
16332
  action?: string;
16333
+ attempt_started_at?: string | null;
15911
16334
  attempts?: number;
15912
16335
  connection_id?: string | null;
15913
16336
  created_at?: string;
@@ -15924,6 +16347,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15924
16347
  };
15925
16348
  Update: {
15926
16349
  action?: string;
16350
+ attempt_started_at?: string | null;
15927
16351
  attempts?: number;
15928
16352
  connection_id?: string | null;
15929
16353
  created_at?: string;
@@ -16121,13 +16545,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16121
16545
  workday_end?: string | null;
16122
16546
  workday_start?: string | null;
16123
16547
  };
16124
- Relationships: [{
16125
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16126
- columns: ["monteur_id"];
16127
- isOneToOne: true;
16128
- referencedRelation: "monteurs";
16129
- referencedColumns: ["id"];
16130
- }];
16548
+ Relationships: [];
16131
16549
  };
16132
16550
  uren_entries: {
16133
16551
  Row: {
@@ -16173,12 +16591,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16173
16591
  werkbon_id?: string | null;
16174
16592
  };
16175
16593
  Relationships: [{
16176
- foreignKeyName: "uren_entries_monteur_id_fkey";
16177
- columns: ["monteur_id"];
16178
- isOneToOne: false;
16179
- referencedRelation: "monteurs";
16180
- referencedColumns: ["id"];
16181
- }, {
16182
16594
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16183
16595
  columns: ["werkbon_id"];
16184
16596
  isOneToOne: false;
@@ -16646,17 +17058,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16646
17058
  submitted_at?: string | null;
16647
17059
  updated_at?: string;
16648
17060
  };
16649
- Relationships: [{
16650
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16651
- columns: ["monteur_id"];
16652
- isOneToOne: false;
16653
- referencedRelation: "monteurs";
16654
- referencedColumns: ["id"];
16655
- }];
17061
+ Relationships: [];
16656
17062
  };
16657
17063
  user_module_permissions: {
16658
17064
  Row: {
16659
17065
  created_at: string;
17066
+ feature_id: string;
16660
17067
  id: string;
16661
17068
  module_id: string;
16662
17069
  permission: string;
@@ -16665,6 +17072,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16665
17072
  };
16666
17073
  Insert: {
16667
17074
  created_at?: string;
17075
+ feature_id?: string;
16668
17076
  id?: string;
16669
17077
  module_id: string;
16670
17078
  permission: string;
@@ -16673,6 +17081,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16673
17081
  };
16674
17082
  Update: {
16675
17083
  created_at?: string;
17084
+ feature_id?: string;
16676
17085
  id?: string;
16677
17086
  module_id?: string;
16678
17087
  permission?: string;
@@ -16708,6 +17117,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16708
17117
  referencedColumns: ["id"];
16709
17118
  }];
16710
17119
  };
17120
+ van_inventories: {
17121
+ Row: {
17122
+ barcode: string | null;
17123
+ created_at: string;
17124
+ id: string;
17125
+ monteur_id: string | null;
17126
+ price_per_unit: number;
17127
+ product_name: string;
17128
+ quantity_current: number;
17129
+ quantity_min: number;
17130
+ unit: string;
17131
+ updated_at: string;
17132
+ };
17133
+ Insert: {
17134
+ barcode?: string | null;
17135
+ created_at?: string;
17136
+ id?: string;
17137
+ monteur_id?: string | null;
17138
+ price_per_unit?: number;
17139
+ product_name: string;
17140
+ quantity_current?: number;
17141
+ quantity_min?: number;
17142
+ unit?: string;
17143
+ updated_at?: string;
17144
+ };
17145
+ Update: {
17146
+ barcode?: string | null;
17147
+ created_at?: string;
17148
+ id?: string;
17149
+ monteur_id?: string | null;
17150
+ price_per_unit?: number;
17151
+ product_name?: string;
17152
+ quantity_current?: number;
17153
+ quantity_min?: number;
17154
+ unit?: string;
17155
+ updated_at?: string;
17156
+ };
17157
+ Relationships: [{
17158
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17159
+ columns: ["monteur_id"];
17160
+ isOneToOne: false;
17161
+ referencedRelation: "profiles";
17162
+ referencedColumns: ["id"];
17163
+ }];
17164
+ };
16711
17165
  voorraad_custom_fields: {
16712
17166
  Row: {
16713
17167
  created_at: string;
@@ -17658,7 +18112,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17658
18112
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17659
18113
  columns: ["monteur_id"];
17660
18114
  isOneToOne: false;
17661
- referencedRelation: "monteurs";
18115
+ referencedRelation: "profiles";
17662
18116
  referencedColumns: ["id"];
17663
18117
  }, {
17664
18118
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17668,6 +18122,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17668
18122
  referencedColumns: ["id"];
17669
18123
  }];
17670
18124
  };
18125
+ work_order_photos: {
18126
+ Row: {
18127
+ ai_caption: string | null;
18128
+ ai_categorized_at: string | null;
18129
+ ai_labels: import("./types").Json | null;
18130
+ caption: string | null;
18131
+ created_at: string;
18132
+ id: string;
18133
+ monteur_id: string | null;
18134
+ photo_type: string;
18135
+ storage_path: string;
18136
+ updated_at: string;
18137
+ work_order_id: string;
18138
+ };
18139
+ Insert: {
18140
+ ai_caption?: string | null;
18141
+ ai_categorized_at?: string | null;
18142
+ ai_labels?: import("./types").Json | null;
18143
+ caption?: string | null;
18144
+ created_at?: string;
18145
+ id?: string;
18146
+ monteur_id?: string | null;
18147
+ photo_type?: string;
18148
+ storage_path: string;
18149
+ updated_at?: string;
18150
+ work_order_id: string;
18151
+ };
18152
+ Update: {
18153
+ ai_caption?: string | null;
18154
+ ai_categorized_at?: string | null;
18155
+ ai_labels?: import("./types").Json | null;
18156
+ caption?: string | null;
18157
+ created_at?: string;
18158
+ id?: string;
18159
+ monteur_id?: string | null;
18160
+ photo_type?: string;
18161
+ storage_path?: string;
18162
+ updated_at?: string;
18163
+ work_order_id?: string;
18164
+ };
18165
+ Relationships: [{
18166
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18167
+ columns: ["monteur_id"];
18168
+ isOneToOne: false;
18169
+ referencedRelation: "profiles";
18170
+ referencedColumns: ["id"];
18171
+ }, {
18172
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18173
+ columns: ["work_order_id"];
18174
+ isOneToOne: false;
18175
+ referencedRelation: "work_orders";
18176
+ referencedColumns: ["id"];
18177
+ }];
18178
+ };
17671
18179
  work_orders: {
17672
18180
  Row: {
17673
18181
  assigned_to: string | null;
@@ -17699,7 +18207,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17699
18207
  scheduled_end_time: string | null;
17700
18208
  scheduled_start_time: string | null;
17701
18209
  status: string;
17702
- tenant_id: string;
17703
18210
  total_hours_worked: number | null;
17704
18211
  total_price: number | null;
17705
18212
  travel_time_minutes: number | null;
@@ -17737,7 +18244,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17737
18244
  scheduled_end_time?: string | null;
17738
18245
  scheduled_start_time?: string | null;
17739
18246
  status?: string;
17740
- tenant_id: string;
17741
18247
  total_hours_worked?: number | null;
17742
18248
  total_price?: number | null;
17743
18249
  travel_time_minutes?: number | null;
@@ -17775,7 +18281,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17775
18281
  scheduled_end_time?: string | null;
17776
18282
  scheduled_start_time?: string | null;
17777
18283
  status?: string;
17778
- tenant_id?: string;
17779
18284
  total_hours_worked?: number | null;
17780
18285
  total_price?: number | null;
17781
18286
  travel_time_minutes?: number | null;
@@ -17789,12 +18294,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17789
18294
  isOneToOne: false;
17790
18295
  referencedRelation: "work_orders";
17791
18296
  referencedColumns: ["id"];
17792
- }, {
17793
- foreignKeyName: "work_orders_tenant_id_fkey";
17794
- columns: ["tenant_id"];
17795
- isOneToOne: false;
17796
- referencedRelation: "tenants";
17797
- referencedColumns: ["id"];
17798
18297
  }];
17799
18298
  };
17800
18299
  };
@@ -18479,6 +18978,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18479
18978
  };
18480
18979
  Returns: undefined;
18481
18980
  };
18981
+ approve_mailbox_order_proposal: {
18982
+ Args: {
18983
+ p_custom_fields: import("./types").Json;
18984
+ p_customer_id: string;
18985
+ p_delivery_date: string;
18986
+ p_field_values?: import("./types").Json;
18987
+ p_lines: import("./types").Json;
18988
+ p_notes: string;
18989
+ p_proposal_id: string;
18990
+ p_reviewed_by: string;
18991
+ };
18992
+ Returns: import("./types").Json;
18993
+ };
18482
18994
  assign_cart_numbers: {
18483
18995
  Args: {
18484
18996
  p_carts: import("./types").Json;
@@ -18530,6 +19042,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18530
19042
  };
18531
19043
  Returns: number;
18532
19044
  };
19045
+ can_manage_hours: {
19046
+ Args: never;
19047
+ Returns: boolean;
19048
+ };
18533
19049
  check_offer_product_available_stock: {
18534
19050
  Args: {
18535
19051
  p_campaign_product_id: string;
@@ -18719,6 +19235,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18719
19235
  };
18720
19236
  Returns: {
18721
19237
  action: string;
19238
+ attempt_started_at: string | null;
18722
19239
  attempts: number;
18723
19240
  connection_id: string | null;
18724
19241
  created_at: string;
@@ -18806,6 +19323,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18806
19323
  agent_naam: string;
18807
19324
  }[];
18808
19325
  };
19326
+ consume_van_inventory: {
19327
+ Args: {
19328
+ p_inventory_id: string;
19329
+ p_quantity: number;
19330
+ };
19331
+ Returns: {
19332
+ barcode: string | null;
19333
+ created_at: string;
19334
+ id: string;
19335
+ monteur_id: string | null;
19336
+ price_per_unit: number;
19337
+ product_name: string;
19338
+ quantity_current: number;
19339
+ quantity_min: number;
19340
+ unit: string;
19341
+ updated_at: string;
19342
+ };
19343
+ SetofOptions: {
19344
+ from: "*";
19345
+ to: "van_inventories";
19346
+ isOneToOne: true;
19347
+ isSetofReturn: false;
19348
+ };
19349
+ };
18809
19350
  control_get_todays_carts: {
18810
19351
  Args: never;
18811
19352
  Returns: {
@@ -18879,6 +19420,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18879
19420
  _user_id: string;
18880
19421
  };
18881
19422
  Returns: string;
19423
+ } | {
19424
+ Args: {
19425
+ _feature_id: string;
19426
+ _module_id: string;
19427
+ _user_id: string;
19428
+ };
19429
+ Returns: string;
18882
19430
  };
18883
19431
  email_auth_decrypt: {
18884
19432
  Args: {
@@ -19230,12 +19778,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19230
19778
  Args: never;
19231
19779
  Returns: string;
19232
19780
  };
19233
- get_work_order_tenant_id: {
19234
- Args: {
19235
- wo_id: string;
19236
- };
19237
- Returns: string;
19238
- };
19239
19781
  has_module_permission: {
19240
19782
  Args: {
19241
19783
  _min: string;
@@ -19269,6 +19811,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19269
19811
  };
19270
19812
  Returns: boolean;
19271
19813
  };
19814
+ is_time_log_week_locked: {
19815
+ Args: {
19816
+ p_employee_id: string;
19817
+ p_start_time: string;
19818
+ };
19819
+ Returns: boolean;
19820
+ };
19272
19821
  is_user_admin: {
19273
19822
  Args: never;
19274
19823
  Returns: boolean;
@@ -19283,13 +19832,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19283
19832
  };
19284
19833
  Returns: boolean;
19285
19834
  };
19286
- list_monteurs: {
19835
+ list_medewerkers: {
19287
19836
  Args: never;
19288
19837
  Returns: {
19289
19838
  avatar_url: string;
19290
19839
  display_name: string;
19291
19840
  email: string;
19292
19841
  id: string;
19842
+ roles: string[];
19293
19843
  }[];
19294
19844
  };
19295
19845
  list_my_planning_items: {
@@ -19615,17 +20165,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19615
20165
  Returns: string;
19616
20166
  };
19617
20167
  logistics_emit_event: {
19618
- Args: {
19619
- p_event_type: string;
19620
- p_idempotency_key?: string;
19621
- p_order_ref: string;
19622
- p_payload?: import("./types").Json;
19623
- p_shadow?: boolean;
19624
- p_source_module: string;
19625
- p_strategy_id?: string;
19626
- };
19627
- Returns: import("./types").Json;
19628
- } | {
19629
20168
  Args: {
19630
20169
  p_event_type: string;
19631
20170
  p_idempotency_key?: string;
@@ -20080,6 +20619,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20080
20619
  my_module_permissions: {
20081
20620
  Args: never;
20082
20621
  Returns: {
20622
+ feature_id: string;
20083
20623
  module_id: string;
20084
20624
  permission: string;
20085
20625
  }[];
@@ -20960,6 +21500,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20960
21500
  };
20961
21501
  Returns: string[];
20962
21502
  };
21503
+ switch_time_log: {
21504
+ Args: {
21505
+ p_employee_id: string;
21506
+ p_start_lat?: number;
21507
+ p_start_lng?: number;
21508
+ p_type: string;
21509
+ p_work_order_id?: string;
21510
+ };
21511
+ Returns: import("./types").Json;
21512
+ };
20963
21513
  sync_all_layer_stocks: {
20964
21514
  Args: never;
20965
21515
  Returns: undefined;
@@ -21010,6 +21560,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21010
21560
  };
21011
21561
  Returns: boolean;
21012
21562
  };
21563
+ twinfield_cron_lock_acquire: {
21564
+ Args: {
21565
+ _job_name: string;
21566
+ _stale_seconds?: number;
21567
+ };
21568
+ Returns: boolean;
21569
+ };
21570
+ twinfield_cron_lock_release: {
21571
+ Args: {
21572
+ _error?: string;
21573
+ _job_name: string;
21574
+ };
21575
+ Returns: undefined;
21576
+ };
21577
+ twinfield_prune_push_queue: {
21578
+ Args: never;
21579
+ Returns: number;
21580
+ };
21013
21581
  twinfield_register_cron: {
21014
21582
  Args: {
21015
21583
  apikey?: string;
@@ -21053,7 +21621,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21053
21621
  Enums: {
21054
21622
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21055
21623
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21056
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
21624
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21057
21625
  doc_orientation: "portrait" | "landscape";
21058
21626
  exact_env: "staging" | "live";
21059
21627
  exact_push_status: "pending" | "sent" | "error";
@@ -21069,4 +21637,4 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21069
21637
  }, {
21070
21638
  PostgrestVersion: "14.5";
21071
21639
  }>;
21072
- //# sourceMappingURL=client.d.ts.map
21640
+ //# sourceMappingURL=moduleClient.d.ts.map