@flowselections/floriday-afhandeling-module 1.0.30 → 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 (45) 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/LeveringenPage.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/LeveringenPage.js +7 -24
  5. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/PickAgendaView.js +22 -24
  7. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +8 -1
  8. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/VervoerdersPage.js +17 -2
  10. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +5 -1
  11. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  12. package/dist-lib/components/afhandeling/WeekAgendaView.js +19 -29
  13. package/dist-lib/hooks/useEngineTasks.d.ts +2 -0
  14. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  15. package/dist-lib/hooks/useEngineTasks.js +19 -4
  16. package/dist-lib/hooks/useOrderPlanning.d.ts +12 -1
  17. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  18. package/dist-lib/hooks/useOrderPlanning.js +65 -26
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1351 -164
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +1351 -164
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +1351 -164
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +1360 -168
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.js +12 -1
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2614 -240
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/agendaRange.d.ts +13 -0
  31. package/dist-lib/lib/agendaRange.d.ts.map +1 -0
  32. package/dist-lib/lib/agendaRange.js +25 -0
  33. package/dist-lib/lib/carriers.functions.d.ts +6535 -600
  34. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartAssignments.functions.d.ts +6535 -600
  36. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.d.ts +13070 -1200
  38. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday.functions.d.ts +1367 -166
  40. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/floriday.functions.js +86 -20
  42. package/dist-lib/lib/logisticsEngine/engine.d.ts +16 -3
  43. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  44. package/dist-lib/lib/logisticsEngine/engine.js +13 -6
  45. package/package.json +2 -8
@@ -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;
@@ -1684,7 +1804,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1684
1804
  city: string | null;
1685
1805
  country: string | null;
1686
1806
  created_at: string;
1687
- customer_id: string | null;
1807
+ customer_id: string;
1688
1808
  external_key: string | null;
1689
1809
  external_provider: string | null;
1690
1810
  floriday_location_id: string | null;
@@ -1708,7 +1828,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1708
1828
  city?: string | null;
1709
1829
  country?: string | null;
1710
1830
  created_at?: string;
1711
- customer_id?: string | null;
1831
+ customer_id: string;
1712
1832
  external_key?: string | null;
1713
1833
  external_provider?: string | null;
1714
1834
  floriday_location_id?: string | null;
@@ -1732,7 +1852,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1852
  city?: string | null;
1733
1853
  country?: string | null;
1734
1854
  created_at?: string;
1735
- customer_id?: string | null;
1855
+ customer_id?: string;
1736
1856
  external_key?: string | null;
1737
1857
  external_provider?: string | null;
1738
1858
  floriday_location_id?: string | null;
@@ -6480,6 +6600,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6480
6600
  Row: {
6481
6601
  buyer_organization_id: string | null;
6482
6602
  connection_id: string;
6603
+ controlled_at: string | null;
6483
6604
  created_at: string;
6484
6605
  data: import("./types").Json;
6485
6606
  floriday_id: string;
@@ -6491,6 +6612,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6491
6612
  Insert: {
6492
6613
  buyer_organization_id?: string | null;
6493
6614
  connection_id: string;
6615
+ controlled_at?: string | null;
6494
6616
  created_at?: string;
6495
6617
  data: import("./types").Json;
6496
6618
  floriday_id: string;
@@ -6502,6 +6624,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
6624
  Update: {
6503
6625
  buyer_organization_id?: string | null;
6504
6626
  connection_id?: string;
6627
+ controlled_at?: string | null;
6505
6628
  created_at?: string;
6506
6629
  data?: import("./types").Json;
6507
6630
  floriday_id?: string;
@@ -7403,6 +7526,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7403
7526
  };
7404
7527
  Relationships: [];
7405
7528
  };
7529
+ invoice_timing_settings: {
7530
+ Row: {
7531
+ anchor: string;
7532
+ business_days_only: boolean;
7533
+ created_at: string;
7534
+ enabled: boolean;
7535
+ id: string;
7536
+ offset_days: number;
7537
+ pickup_anchor: string;
7538
+ pickup_business_days_only: boolean;
7539
+ pickup_offset_days: number;
7540
+ pickup_time_of_day: string;
7541
+ singleton: boolean;
7542
+ time_of_day: string;
7543
+ updated_at: string;
7544
+ };
7545
+ Insert: {
7546
+ anchor?: string;
7547
+ business_days_only?: boolean;
7548
+ created_at?: string;
7549
+ enabled?: boolean;
7550
+ id?: string;
7551
+ offset_days?: number;
7552
+ pickup_anchor?: string;
7553
+ pickup_business_days_only?: boolean;
7554
+ pickup_offset_days?: number;
7555
+ pickup_time_of_day?: string;
7556
+ singleton?: boolean;
7557
+ time_of_day?: string;
7558
+ updated_at?: string;
7559
+ };
7560
+ Update: {
7561
+ anchor?: string;
7562
+ business_days_only?: boolean;
7563
+ created_at?: string;
7564
+ enabled?: boolean;
7565
+ id?: string;
7566
+ offset_days?: number;
7567
+ pickup_anchor?: string;
7568
+ pickup_business_days_only?: boolean;
7569
+ pickup_offset_days?: number;
7570
+ pickup_time_of_day?: string;
7571
+ singleton?: boolean;
7572
+ time_of_day?: string;
7573
+ updated_at?: string;
7574
+ };
7575
+ Relationships: [];
7576
+ };
7406
7577
  itk_contact_persons: {
7407
7578
  Row: {
7408
7579
  created_at: string;
@@ -7715,7 +7886,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7715
7886
  start_date: string;
7716
7887
  start_time: string | null;
7717
7888
  status: string;
7718
- tenant_id: string;
7719
7889
  updated_at: string;
7720
7890
  user_id: string;
7721
7891
  };
@@ -7733,7 +7903,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7733
7903
  start_date: string;
7734
7904
  start_time?: string | null;
7735
7905
  status?: string;
7736
- tenant_id?: string;
7737
7906
  updated_at?: string;
7738
7907
  user_id: string;
7739
7908
  };
@@ -7751,7 +7920,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7751
7920
  start_date?: string;
7752
7921
  start_time?: string | null;
7753
7922
  status?: string;
7754
- tenant_id?: string;
7755
7923
  updated_at?: string;
7756
7924
  user_id?: string;
7757
7925
  };
@@ -7759,13 +7927,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7759
7927
  foreignKeyName: "leave_requests_monteur_id_fkey";
7760
7928
  columns: ["monteur_id"];
7761
7929
  isOneToOne: false;
7762
- referencedRelation: "monteurs";
7930
+ referencedRelation: "profiles";
7763
7931
  referencedColumns: ["id"];
7764
7932
  }, {
7765
7933
  foreignKeyName: "leave_requests_user_id_fkey";
7766
7934
  columns: ["user_id"];
7767
7935
  isOneToOne: false;
7768
- referencedRelation: "monteurs";
7936
+ referencedRelation: "profiles";
7769
7937
  referencedColumns: ["id"];
7770
7938
  }];
7771
7939
  };
@@ -8492,6 +8660,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8492
8660
  };
8493
8661
  Relationships: [];
8494
8662
  };
8663
+ logistics_floriday_pushes: {
8664
+ Row: {
8665
+ attempts: number;
8666
+ created_at: string;
8667
+ first_queued_at: string;
8668
+ fulfillment_order_id: string | null;
8669
+ id: string;
8670
+ last_error: string | null;
8671
+ last_error_at: string | null;
8672
+ last_sent_hash: string | null;
8673
+ locked_by: string | null;
8674
+ locked_until: string | null;
8675
+ next_attempt_at: string;
8676
+ order_ref: string;
8677
+ payload: import("./types").Json;
8678
+ payload_hash: string | null;
8679
+ revision: number;
8680
+ sent_at: string | null;
8681
+ status: string;
8682
+ updated_at: string;
8683
+ };
8684
+ Insert: {
8685
+ attempts?: number;
8686
+ created_at?: string;
8687
+ first_queued_at?: string;
8688
+ fulfillment_order_id?: string | null;
8689
+ id?: string;
8690
+ last_error?: string | null;
8691
+ last_error_at?: string | null;
8692
+ last_sent_hash?: string | null;
8693
+ locked_by?: string | null;
8694
+ locked_until?: string | null;
8695
+ next_attempt_at?: string;
8696
+ order_ref: string;
8697
+ payload?: import("./types").Json;
8698
+ payload_hash?: string | null;
8699
+ revision?: number;
8700
+ sent_at?: string | null;
8701
+ status?: string;
8702
+ updated_at?: string;
8703
+ };
8704
+ Update: {
8705
+ attempts?: number;
8706
+ created_at?: string;
8707
+ first_queued_at?: string;
8708
+ fulfillment_order_id?: string | null;
8709
+ id?: string;
8710
+ last_error?: string | null;
8711
+ last_error_at?: string | null;
8712
+ last_sent_hash?: string | null;
8713
+ locked_by?: string | null;
8714
+ locked_until?: string | null;
8715
+ next_attempt_at?: string;
8716
+ order_ref?: string;
8717
+ payload?: import("./types").Json;
8718
+ payload_hash?: string | null;
8719
+ revision?: number;
8720
+ sent_at?: string | null;
8721
+ status?: string;
8722
+ updated_at?: string;
8723
+ };
8724
+ Relationships: [];
8725
+ };
8495
8726
  logistics_formulas: {
8496
8727
  Row: {
8497
8728
  created_at: string;
@@ -8570,6 +8801,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8570
8801
  };
8571
8802
  Relationships: [];
8572
8803
  };
8804
+ logistics_plan_queue: {
8805
+ Row: {
8806
+ attempts: number;
8807
+ claimed_at: string | null;
8808
+ enqueued_at: string;
8809
+ error: string | null;
8810
+ id: string;
8811
+ next_attempt_at: string;
8812
+ order_id: string;
8813
+ reason: string;
8814
+ status: string;
8815
+ updated_at: string;
8816
+ };
8817
+ Insert: {
8818
+ attempts?: number;
8819
+ claimed_at?: string | null;
8820
+ enqueued_at?: string;
8821
+ error?: string | null;
8822
+ id?: string;
8823
+ next_attempt_at?: string;
8824
+ order_id: string;
8825
+ reason?: string;
8826
+ status?: string;
8827
+ updated_at?: string;
8828
+ };
8829
+ Update: {
8830
+ attempts?: number;
8831
+ claimed_at?: string | null;
8832
+ enqueued_at?: string;
8833
+ error?: string | null;
8834
+ id?: string;
8835
+ next_attempt_at?: string;
8836
+ order_id?: string;
8837
+ reason?: string;
8838
+ status?: string;
8839
+ updated_at?: string;
8840
+ };
8841
+ Relationships: [];
8842
+ };
8573
8843
  logistics_plan_runs: {
8574
8844
  Row: {
8575
8845
  created_at: string;
@@ -8645,6 +8915,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8645
8915
  referencedColumns: ["id"];
8646
8916
  }];
8647
8917
  };
8918
+ logistics_plan_settings: {
8919
+ Row: {
8920
+ key: string;
8921
+ updated_at: string;
8922
+ value: string;
8923
+ };
8924
+ Insert: {
8925
+ key: string;
8926
+ updated_at?: string;
8927
+ value: string;
8928
+ };
8929
+ Update: {
8930
+ key?: string;
8931
+ updated_at?: string;
8932
+ value?: string;
8933
+ };
8934
+ Relationships: [];
8935
+ };
8648
8936
  logistics_rebuffer_state: {
8649
8937
  Row: {
8650
8938
  created_at: string;
@@ -9355,14 +9643,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9355
9643
  };
9356
9644
  mailbox_messages: {
9357
9645
  Row: {
9646
+ attachments: import("./types").Json;
9358
9647
  body_html: string | null;
9359
9648
  body_text: string | null;
9649
+ cc_recipients: import("./types").Json;
9360
9650
  connection_id: string | null;
9361
9651
  created_at: string;
9362
9652
  error_message: string | null;
9363
9653
  external_id: string | null;
9364
9654
  from_email: string | null;
9365
9655
  from_name: string | null;
9656
+ has_attachments: boolean;
9366
9657
  id: string;
9367
9658
  message_id: string | null;
9368
9659
  profile_id: string | null;
@@ -9370,18 +9661,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9370
9661
  received_at: string | null;
9371
9662
  status: string;
9372
9663
  subject: string | null;
9664
+ to_recipients: import("./types").Json;
9373
9665
  uid: number | null;
9374
9666
  updated_at: string;
9375
9667
  };
9376
9668
  Insert: {
9669
+ attachments?: import("./types").Json;
9377
9670
  body_html?: string | null;
9378
9671
  body_text?: string | null;
9672
+ cc_recipients?: import("./types").Json;
9379
9673
  connection_id?: string | null;
9380
9674
  created_at?: string;
9381
9675
  error_message?: string | null;
9382
9676
  external_id?: string | null;
9383
9677
  from_email?: string | null;
9384
9678
  from_name?: string | null;
9679
+ has_attachments?: boolean;
9385
9680
  id?: string;
9386
9681
  message_id?: string | null;
9387
9682
  profile_id?: string | null;
@@ -9389,18 +9684,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9389
9684
  received_at?: string | null;
9390
9685
  status?: string;
9391
9686
  subject?: string | null;
9687
+ to_recipients?: import("./types").Json;
9392
9688
  uid?: number | null;
9393
9689
  updated_at?: string;
9394
9690
  };
9395
9691
  Update: {
9692
+ attachments?: import("./types").Json;
9396
9693
  body_html?: string | null;
9397
9694
  body_text?: string | null;
9695
+ cc_recipients?: import("./types").Json;
9398
9696
  connection_id?: string | null;
9399
9697
  created_at?: string;
9400
9698
  error_message?: string | null;
9401
9699
  external_id?: string | null;
9402
9700
  from_email?: string | null;
9403
9701
  from_name?: string | null;
9702
+ has_attachments?: boolean;
9404
9703
  id?: string;
9405
9704
  message_id?: string | null;
9406
9705
  profile_id?: string | null;
@@ -9408,6 +9707,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9408
9707
  received_at?: string | null;
9409
9708
  status?: string;
9410
9709
  subject?: string | null;
9710
+ to_recipients?: import("./types").Json;
9411
9711
  uid?: number | null;
9412
9712
  updated_at?: string;
9413
9713
  };
@@ -9788,6 +10088,90 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9788
10088
  };
9789
10089
  Relationships: [];
9790
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
+ };
9791
10175
  module_permissions: {
9792
10176
  Row: {
9793
10177
  created_at: string;
@@ -9815,6 +10199,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9815
10199
  };
9816
10200
  Relationships: [];
9817
10201
  };
10202
+ module_registry: {
10203
+ Row: {
10204
+ created_at: string;
10205
+ is_active: boolean;
10206
+ last_seen_at: string;
10207
+ module_id: string;
10208
+ name: string;
10209
+ shell_id: string | null;
10210
+ sort_order: number | null;
10211
+ };
10212
+ Insert: {
10213
+ created_at?: string;
10214
+ is_active?: boolean;
10215
+ last_seen_at?: string;
10216
+ module_id: string;
10217
+ name: string;
10218
+ shell_id?: string | null;
10219
+ sort_order?: number | null;
10220
+ };
10221
+ Update: {
10222
+ created_at?: string;
10223
+ is_active?: boolean;
10224
+ last_seen_at?: string;
10225
+ module_id?: string;
10226
+ name?: string;
10227
+ shell_id?: string | null;
10228
+ sort_order?: number | null;
10229
+ };
10230
+ Relationships: [];
10231
+ };
9818
10232
  module_runtime_config: {
9819
10233
  Row: {
9820
10234
  key: string;
@@ -9866,69 +10280,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9866
10280
  };
9867
10281
  Relationships: [];
9868
10282
  };
9869
- monteurs: {
10283
+ nmbrs_component_mapping: {
9870
10284
  Row: {
9871
- avatar_url: string | null;
9872
- color: string | null;
9873
10285
  created_at: string;
9874
- email: string | null;
9875
10286
  id: string;
9876
- is_active: boolean;
9877
- leave_balance_hours: number;
9878
- name: string;
9879
- persnr: number | null;
9880
- phone: string | null;
9881
- role: string;
9882
- tenant_id: string;
9883
- updated_at: string;
9884
- user_id: string | null;
9885
- };
9886
- Insert: {
9887
- avatar_url?: string | null;
9888
- color?: string | null;
9889
- created_at?: string;
9890
- email?: string | null;
9891
- id?: string;
9892
- is_active?: boolean;
9893
- leave_balance_hours?: number;
9894
- name: string;
9895
- persnr?: number | null;
9896
- phone?: string | null;
9897
- role?: string;
9898
- tenant_id: string;
9899
- updated_at?: string;
9900
- user_id?: string | null;
9901
- };
9902
- Update: {
9903
- avatar_url?: string | null;
9904
- color?: string | null;
9905
- created_at?: string;
9906
- email?: string | null;
9907
- id?: string;
9908
- is_active?: boolean;
9909
- leave_balance_hours?: number;
9910
- name?: string;
9911
- persnr?: number | null;
9912
- phone?: string | null;
9913
- role?: string;
9914
- tenant_id?: string;
9915
- updated_at?: string;
9916
- user_id?: string | null;
9917
- };
9918
- Relationships: [{
9919
- foreignKeyName: "monteurs_tenant_id_fkey";
9920
- columns: ["tenant_id"];
9921
- isOneToOne: false;
9922
- referencedRelation: "tenants";
9923
- referencedColumns: ["id"];
9924
- }];
9925
- };
9926
- nmbrs_component_mapping: {
9927
- Row: {
9928
- created_at: string;
9929
- id: string;
9930
- source_kind: string;
9931
- source_value: string | null;
10287
+ source_kind: string;
10288
+ source_value: string | null;
9932
10289
  updated_at: string;
9933
10290
  wage_code: string;
9934
10291
  };
@@ -9993,13 +10350,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9993
10350
  nmbrs_employee_number?: string;
9994
10351
  updated_at?: string;
9995
10352
  };
9996
- Relationships: [{
9997
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9998
- columns: ["monteur_id"];
9999
- isOneToOne: true;
10000
- referencedRelation: "monteurs";
10001
- referencedColumns: ["id"];
10002
- }];
10353
+ Relationships: [];
10003
10354
  };
10004
10355
  nmbrs_export_lines: {
10005
10356
  Row: {
@@ -10048,12 +10399,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10048
10399
  wage_code?: string;
10049
10400
  };
10050
10401
  Relationships: [{
10051
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10052
- columns: ["monteur_id"];
10053
- isOneToOne: false;
10054
- referencedRelation: "monteurs";
10055
- referencedColumns: ["id"];
10056
- }, {
10057
10402
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10058
10403
  columns: ["run_id"];
10059
10404
  isOneToOne: false;
@@ -10874,6 +11219,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10874
11219
  };
10875
11220
  Relationships: [];
10876
11221
  };
11222
+ order_invoice_links: {
11223
+ Row: {
11224
+ attempts: number;
11225
+ created_at: string;
11226
+ error_message: string | null;
11227
+ id: string;
11228
+ invoice_number: string | null;
11229
+ next_attempt_at: string;
11230
+ order_id: string;
11231
+ processed_at: string | null;
11232
+ status: string;
11233
+ updated_at: string;
11234
+ };
11235
+ Insert: {
11236
+ attempts?: number;
11237
+ created_at?: string;
11238
+ error_message?: string | null;
11239
+ id?: string;
11240
+ invoice_number?: string | null;
11241
+ next_attempt_at?: string;
11242
+ order_id: string;
11243
+ processed_at?: string | null;
11244
+ status?: string;
11245
+ updated_at?: string;
11246
+ };
11247
+ Update: {
11248
+ attempts?: number;
11249
+ created_at?: string;
11250
+ error_message?: string | null;
11251
+ id?: string;
11252
+ invoice_number?: string | null;
11253
+ next_attempt_at?: string;
11254
+ order_id?: string;
11255
+ processed_at?: string | null;
11256
+ status?: string;
11257
+ updated_at?: string;
11258
+ };
11259
+ Relationships: [];
11260
+ };
10877
11261
  order_items: {
10878
11262
  Row: {
10879
11263
  crates_per_layer: number | null;
@@ -11056,6 +11440,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11056
11440
  delivery_date: string | null;
11057
11441
  floriday_sales_order_id: string | null;
11058
11442
  id: string;
11443
+ invoice_due_at: string | null;
11059
11444
  is_reservation: boolean;
11060
11445
  notes: string | null;
11061
11446
  order_date: string;
@@ -11077,6 +11462,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11077
11462
  delivery_date?: string | null;
11078
11463
  floriday_sales_order_id?: string | null;
11079
11464
  id?: string;
11465
+ invoice_due_at?: string | null;
11080
11466
  is_reservation?: boolean;
11081
11467
  notes?: string | null;
11082
11468
  order_date?: string;
@@ -11098,6 +11484,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11098
11484
  delivery_date?: string | null;
11099
11485
  floriday_sales_order_id?: string | null;
11100
11486
  id?: string;
11487
+ invoice_due_at?: string | null;
11101
11488
  is_reservation?: boolean;
11102
11489
  notes?: string | null;
11103
11490
  order_date?: string;
@@ -12294,22 +12681,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12294
12681
  created_at: string;
12295
12682
  documentnaam: string;
12296
12683
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12684
+ extern_job_id: string | null;
12297
12685
  foutmelding: string | null;
12298
12686
  gebruiker_id: string | null;
12299
12687
  gebruiker_naam: string;
12300
12688
  gestart_op: string | null;
12301
12689
  id: string;
12690
+ idempotentie_sleutel: string | null;
12302
12691
  is_herprint: boolean;
12303
12692
  kopieen: number;
12304
12693
  layout_id: string | null;
12305
12694
  opgepakt_op: string | null;
12306
12695
  paginas: number;
12307
12696
  payload: import("./types").Json;
12697
+ pdf_base64: string | null;
12698
+ pdf_url: string | null;
12308
12699
  pogingen: number;
12309
12700
  printer_id: string | null;
12310
12701
  render_html: string | null;
12311
12702
  status: Database["public"]["Enums"]["print_job_status"];
12312
12703
  updated_at: string;
12704
+ volgende_poging: string | null;
12313
12705
  voltooid_op: string | null;
12314
12706
  };
12315
12707
  Insert: {
@@ -12318,22 +12710,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12318
12710
  created_at?: string;
12319
12711
  documentnaam?: string;
12320
12712
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12713
+ extern_job_id?: string | null;
12321
12714
  foutmelding?: string | null;
12322
12715
  gebruiker_id?: string | null;
12323
12716
  gebruiker_naam?: string;
12324
12717
  gestart_op?: string | null;
12325
12718
  id?: string;
12719
+ idempotentie_sleutel?: string | null;
12326
12720
  is_herprint?: boolean;
12327
12721
  kopieen?: number;
12328
12722
  layout_id?: string | null;
12329
12723
  opgepakt_op?: string | null;
12330
12724
  paginas?: number;
12331
12725
  payload?: import("./types").Json;
12726
+ pdf_base64?: string | null;
12727
+ pdf_url?: string | null;
12332
12728
  pogingen?: number;
12333
12729
  printer_id?: string | null;
12334
12730
  render_html?: string | null;
12335
12731
  status?: Database["public"]["Enums"]["print_job_status"];
12336
12732
  updated_at?: string;
12733
+ volgende_poging?: string | null;
12337
12734
  voltooid_op?: string | null;
12338
12735
  };
12339
12736
  Update: {
@@ -12342,22 +12739,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12342
12739
  created_at?: string;
12343
12740
  documentnaam?: string;
12344
12741
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12742
+ extern_job_id?: string | null;
12345
12743
  foutmelding?: string | null;
12346
12744
  gebruiker_id?: string | null;
12347
12745
  gebruiker_naam?: string;
12348
12746
  gestart_op?: string | null;
12349
12747
  id?: string;
12748
+ idempotentie_sleutel?: string | null;
12350
12749
  is_herprint?: boolean;
12351
12750
  kopieen?: number;
12352
12751
  layout_id?: string | null;
12353
12752
  opgepakt_op?: string | null;
12354
12753
  paginas?: number;
12355
12754
  payload?: import("./types").Json;
12755
+ pdf_base64?: string | null;
12756
+ pdf_url?: string | null;
12356
12757
  pogingen?: number;
12357
12758
  printer_id?: string | null;
12358
12759
  render_html?: string | null;
12359
12760
  status?: Database["public"]["Enums"]["print_job_status"];
12360
12761
  updated_at?: string;
12762
+ volgende_poging?: string | null;
12361
12763
  voltooid_op?: string | null;
12362
12764
  };
12363
12765
  Relationships: [{
@@ -12380,6 +12782,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12380
12782
  referencedColumns: ["id"];
12381
12783
  }];
12382
12784
  };
12785
+ print_queue_runners: {
12786
+ Row: {
12787
+ actief: boolean;
12788
+ basis_url: string;
12789
+ created_at: string;
12790
+ id: string;
12791
+ laatst_gezien: string;
12792
+ laatste_fout: string | null;
12793
+ laatste_request_id: number | null;
12794
+ mislukte_posts: number;
12795
+ tick_sleutel: string;
12796
+ updated_at: string;
12797
+ };
12798
+ Insert: {
12799
+ actief?: boolean;
12800
+ basis_url: string;
12801
+ created_at?: string;
12802
+ id?: string;
12803
+ laatst_gezien?: string;
12804
+ laatste_fout?: string | null;
12805
+ laatste_request_id?: number | null;
12806
+ mislukte_posts?: number;
12807
+ tick_sleutel?: string;
12808
+ updated_at?: string;
12809
+ };
12810
+ Update: {
12811
+ actief?: boolean;
12812
+ basis_url?: string;
12813
+ created_at?: string;
12814
+ id?: string;
12815
+ laatst_gezien?: string;
12816
+ laatste_fout?: string | null;
12817
+ laatste_request_id?: number | null;
12818
+ mislukte_posts?: number;
12819
+ tick_sleutel?: string;
12820
+ updated_at?: string;
12821
+ };
12822
+ Relationships: [];
12823
+ };
12824
+ print_queue_settings: {
12825
+ Row: {
12826
+ bewaar_bestanden_dagen: number;
12827
+ bewaar_opdrachten_dagen: number;
12828
+ created_at: string;
12829
+ dubbel_venster_minuten: number;
12830
+ id: string;
12831
+ updated_at: string;
12832
+ };
12833
+ Insert: {
12834
+ bewaar_bestanden_dagen?: number;
12835
+ bewaar_opdrachten_dagen?: number;
12836
+ created_at?: string;
12837
+ dubbel_venster_minuten?: number;
12838
+ id?: string;
12839
+ updated_at?: string;
12840
+ };
12841
+ Update: {
12842
+ bewaar_bestanden_dagen?: number;
12843
+ bewaar_opdrachten_dagen?: number;
12844
+ created_at?: string;
12845
+ dubbel_venster_minuten?: number;
12846
+ id?: string;
12847
+ updated_at?: string;
12848
+ };
12849
+ Relationships: [];
12850
+ };
12383
12851
  print_rules: {
12384
12852
  Row: {
12385
12853
  actief: boolean;
@@ -12540,6 +13008,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12540
13008
  agent_id: string | null;
12541
13009
  created_at: string;
12542
13010
  driver: string;
13011
+ extern_printer_id: string | null;
12543
13012
  id: string;
12544
13013
  ip_adres: string | null;
12545
13014
  laatst_gezien: string | null;
@@ -12561,6 +13030,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12561
13030
  agent_id?: string | null;
12562
13031
  created_at?: string;
12563
13032
  driver?: string;
13033
+ extern_printer_id?: string | null;
12564
13034
  id?: string;
12565
13035
  ip_adres?: string | null;
12566
13036
  laatst_gezien?: string | null;
@@ -12582,6 +13052,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12582
13052
  agent_id?: string | null;
12583
13053
  created_at?: string;
12584
13054
  driver?: string;
13055
+ extern_printer_id?: string | null;
12585
13056
  id?: string;
12586
13057
  ip_adres?: string | null;
12587
13058
  laatst_gezien?: string | null;
@@ -13853,6 +14324,96 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13853
14324
  referencedColumns: ["id"];
13854
14325
  }];
13855
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
+ };
13856
14417
  rooms: {
13857
14418
  Row: {
13858
14419
  capacity: number;
@@ -14522,101 +15083,254 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14522
15083
  };
14523
15084
  Relationships: [];
14524
15085
  };
14525
- time_entries: {
15086
+ time_compensation_entries: {
14526
15087
  Row: {
14527
15088
  created_at: string;
14528
15089
  employee_id: string;
14529
15090
  entry_date: string;
14530
- hours: number;
14531
15091
  id: string;
15092
+ km: number;
15093
+ meal_allowance: number;
14532
15094
  notes: string | null;
14533
- overtime: number;
14534
- undertime: number;
15095
+ standby_evening: number;
15096
+ standby_weekend: number;
15097
+ tvt_change: number;
14535
15098
  updated_at: string;
14536
15099
  };
14537
15100
  Insert: {
14538
15101
  created_at?: string;
14539
15102
  employee_id: string;
14540
15103
  entry_date: string;
14541
- hours?: number;
14542
15104
  id?: string;
15105
+ km?: number;
15106
+ meal_allowance?: number;
14543
15107
  notes?: string | null;
14544
- overtime?: number;
14545
- undertime?: number;
15108
+ standby_evening?: number;
15109
+ standby_weekend?: number;
15110
+ tvt_change?: number;
14546
15111
  updated_at?: string;
14547
15112
  };
14548
15113
  Update: {
14549
15114
  created_at?: string;
14550
15115
  employee_id?: string;
14551
15116
  entry_date?: string;
14552
- hours?: number;
14553
15117
  id?: string;
15118
+ km?: number;
15119
+ meal_allowance?: number;
14554
15120
  notes?: string | null;
14555
- overtime?: number;
14556
- undertime?: number;
15121
+ standby_evening?: number;
15122
+ standby_weekend?: number;
15123
+ tvt_change?: number;
14557
15124
  updated_at?: string;
14558
15125
  };
14559
15126
  Relationships: [{
14560
- foreignKeyName: "time_entries_employee_id_fkey";
15127
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
14561
15128
  columns: ["employee_id"];
14562
15129
  isOneToOne: false;
14563
- referencedRelation: "monteurs";
15130
+ referencedRelation: "profiles";
14564
15131
  referencedColumns: ["id"];
14565
15132
  }];
14566
15133
  };
14567
- time_logs: {
15134
+ time_entries: {
14568
15135
  Row: {
14569
15136
  created_at: string;
14570
15137
  employee_id: string;
14571
- end_time: string | null;
15138
+ entry_date: string;
15139
+ hours: number;
14572
15140
  id: string;
14573
15141
  notes: string | null;
14574
- overtime_hours: number;
14575
- overtime_type: string | null;
14576
- regular_hours: number;
14577
- start_time: string;
14578
- travel_cost: number | null;
14579
- travel_distance_km: number | null;
14580
- type: string;
15142
+ overtime: number;
15143
+ undertime: number;
14581
15144
  updated_at: string;
14582
15145
  };
14583
15146
  Insert: {
14584
15147
  created_at?: string;
14585
15148
  employee_id: string;
14586
- end_time?: string | null;
15149
+ entry_date: string;
15150
+ hours?: number;
14587
15151
  id?: string;
14588
15152
  notes?: string | null;
14589
- overtime_hours?: number;
14590
- overtime_type?: string | null;
14591
- regular_hours?: number;
14592
- start_time?: string;
14593
- travel_cost?: number | null;
14594
- travel_distance_km?: number | null;
14595
- type: string;
15153
+ overtime?: number;
15154
+ undertime?: number;
14596
15155
  updated_at?: string;
14597
15156
  };
14598
15157
  Update: {
14599
15158
  created_at?: string;
14600
15159
  employee_id?: string;
14601
- end_time?: string | null;
15160
+ entry_date?: string;
15161
+ hours?: number;
14602
15162
  id?: string;
14603
15163
  notes?: string | null;
14604
- overtime_hours?: number;
14605
- overtime_type?: string | null;
14606
- regular_hours?: number;
14607
- start_time?: string;
14608
- travel_cost?: number | null;
14609
- travel_distance_km?: number | null;
14610
- type?: string;
15164
+ overtime?: number;
15165
+ undertime?: number;
14611
15166
  updated_at?: string;
14612
15167
  };
14613
- Relationships: [{
14614
- foreignKeyName: "time_logs_employee_id_fkey";
14615
- columns: ["employee_id"];
14616
- isOneToOne: false;
14617
- referencedRelation: "monteurs";
14618
- referencedColumns: ["id"];
14619
- }];
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
+ };
15210
+ Relationships: [{
15211
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15212
+ columns: ["employee_id"];
15213
+ isOneToOne: false;
15214
+ referencedRelation: "profiles";
15215
+ referencedColumns: ["id"];
15216
+ }];
15217
+ };
15218
+ time_logs: {
15219
+ Row: {
15220
+ auto_stop_reason: string | null;
15221
+ auto_stopped: boolean;
15222
+ created_at: string;
15223
+ current_latitude: number | null;
15224
+ current_longitude: number | null;
15225
+ current_position_updated_at: string | null;
15226
+ employee_id: string;
15227
+ end_latitude: number | null;
15228
+ end_longitude: number | null;
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;
15234
+ id: string;
15235
+ last_reminder_at: string | null;
15236
+ notes: string | null;
15237
+ overtime_hours: number;
15238
+ overtime_type: string | null;
15239
+ regular_hours: number;
15240
+ reminder_count: number;
15241
+ requires_review: boolean;
15242
+ start_latitude: number | null;
15243
+ start_longitude: number | null;
15244
+ start_time: string;
15245
+ travel_cost: number | null;
15246
+ travel_distance_km: number | null;
15247
+ travel_duration_min: number | null;
15248
+ travel_time_minutes: number | null;
15249
+ type: string;
15250
+ updated_at: string;
15251
+ work_order_id: string | null;
15252
+ };
15253
+ Insert: {
15254
+ auto_stop_reason?: string | null;
15255
+ auto_stopped?: boolean;
15256
+ created_at?: string;
15257
+ current_latitude?: number | null;
15258
+ current_longitude?: number | null;
15259
+ current_position_updated_at?: string | null;
15260
+ employee_id: string;
15261
+ end_latitude?: number | null;
15262
+ end_longitude?: number | null;
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;
15268
+ id?: string;
15269
+ last_reminder_at?: string | null;
15270
+ notes?: string | null;
15271
+ overtime_hours?: number;
15272
+ overtime_type?: string | null;
15273
+ regular_hours?: number;
15274
+ reminder_count?: number;
15275
+ requires_review?: boolean;
15276
+ start_latitude?: number | null;
15277
+ start_longitude?: number | null;
15278
+ start_time?: string;
15279
+ travel_cost?: number | null;
15280
+ travel_distance_km?: number | null;
15281
+ travel_duration_min?: number | null;
15282
+ travel_time_minutes?: number | null;
15283
+ type: string;
15284
+ updated_at?: string;
15285
+ work_order_id?: string | null;
15286
+ };
15287
+ Update: {
15288
+ auto_stop_reason?: string | null;
15289
+ auto_stopped?: boolean;
15290
+ created_at?: string;
15291
+ current_latitude?: number | null;
15292
+ current_longitude?: number | null;
15293
+ current_position_updated_at?: string | null;
15294
+ employee_id?: string;
15295
+ end_latitude?: number | null;
15296
+ end_longitude?: number | null;
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;
15302
+ id?: string;
15303
+ last_reminder_at?: string | null;
15304
+ notes?: string | null;
15305
+ overtime_hours?: number;
15306
+ overtime_type?: string | null;
15307
+ regular_hours?: number;
15308
+ reminder_count?: number;
15309
+ requires_review?: boolean;
15310
+ start_latitude?: number | null;
15311
+ start_longitude?: number | null;
15312
+ start_time?: string;
15313
+ travel_cost?: number | null;
15314
+ travel_distance_km?: number | null;
15315
+ travel_duration_min?: number | null;
15316
+ travel_time_minutes?: number | null;
15317
+ type?: string;
15318
+ updated_at?: string;
15319
+ work_order_id?: string | null;
15320
+ };
15321
+ Relationships: [{
15322
+ foreignKeyName: "time_logs_employee_id_fkey";
15323
+ columns: ["employee_id"];
15324
+ isOneToOne: false;
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";
15332
+ referencedColumns: ["id"];
15333
+ }];
14620
15334
  };
14621
15335
  time_off_entries: {
14622
15336
  Row: {
@@ -14653,7 +15367,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14653
15367
  foreignKeyName: "time_off_entries_employee_id_fkey";
14654
15368
  columns: ["employee_id"];
14655
15369
  isOneToOne: false;
14656
- referencedRelation: "monteurs";
15370
+ referencedRelation: "profiles";
14657
15371
  referencedColumns: ["id"];
14658
15372
  }];
14659
15373
  };
@@ -14963,6 +15677,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14963
15677
  };
14964
15678
  Relationships: [];
14965
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
+ };
14966
15713
  twinfield_customers: {
14967
15714
  Row: {
14968
15715
  address: string | null;
@@ -15217,6 +15964,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15217
15964
  };
15218
15965
  twinfield_invoice_settings: {
15219
15966
  Row: {
15967
+ auto_invoice_enabled: boolean;
15968
+ auto_invoice_trigger_statuses: string[];
15220
15969
  created_at: string;
15221
15970
  debtor_gl_account: string;
15222
15971
  default_credit_invoice_type: string | null;
@@ -15237,6 +15986,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15237
15986
  vat_code_export: string | null;
15238
15987
  };
15239
15988
  Insert: {
15989
+ auto_invoice_enabled?: boolean;
15990
+ auto_invoice_trigger_statuses?: string[];
15240
15991
  created_at?: string;
15241
15992
  debtor_gl_account?: string;
15242
15993
  default_credit_invoice_type?: string | null;
@@ -15257,6 +16008,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15257
16008
  vat_code_export?: string | null;
15258
16009
  };
15259
16010
  Update: {
16011
+ auto_invoice_enabled?: boolean;
16012
+ auto_invoice_trigger_statuses?: string[];
15260
16013
  created_at?: string;
15261
16014
  debtor_gl_account?: string;
15262
16015
  default_credit_invoice_type?: string | null;
@@ -15557,6 +16310,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15557
16310
  twinfield_push_queue: {
15558
16311
  Row: {
15559
16312
  action: string;
16313
+ attempt_started_at: string | null;
15560
16314
  attempts: number;
15561
16315
  connection_id: string | null;
15562
16316
  created_at: string;
@@ -15573,6 +16327,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15573
16327
  };
15574
16328
  Insert: {
15575
16329
  action?: string;
16330
+ attempt_started_at?: string | null;
15576
16331
  attempts?: number;
15577
16332
  connection_id?: string | null;
15578
16333
  created_at?: string;
@@ -15589,6 +16344,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15589
16344
  };
15590
16345
  Update: {
15591
16346
  action?: string;
16347
+ attempt_started_at?: string | null;
15592
16348
  attempts?: number;
15593
16349
  connection_id?: string | null;
15594
16350
  created_at?: string;
@@ -15786,13 +16542,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15786
16542
  workday_end?: string | null;
15787
16543
  workday_start?: string | null;
15788
16544
  };
15789
- Relationships: [{
15790
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15791
- columns: ["monteur_id"];
15792
- isOneToOne: true;
15793
- referencedRelation: "monteurs";
15794
- referencedColumns: ["id"];
15795
- }];
16545
+ Relationships: [];
15796
16546
  };
15797
16547
  uren_entries: {
15798
16548
  Row: {
@@ -15838,12 +16588,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15838
16588
  werkbon_id?: string | null;
15839
16589
  };
15840
16590
  Relationships: [{
15841
- foreignKeyName: "uren_entries_monteur_id_fkey";
15842
- columns: ["monteur_id"];
15843
- isOneToOne: false;
15844
- referencedRelation: "monteurs";
15845
- referencedColumns: ["id"];
15846
- }, {
15847
16591
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15848
16592
  columns: ["werkbon_id"];
15849
16593
  isOneToOne: false;
@@ -16311,13 +17055,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16311
17055
  submitted_at?: string | null;
16312
17056
  updated_at?: string;
16313
17057
  };
16314
- Relationships: [{
16315
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16316
- columns: ["monteur_id"];
16317
- isOneToOne: false;
16318
- referencedRelation: "monteurs";
16319
- referencedColumns: ["id"];
16320
- }];
17058
+ Relationships: [];
17059
+ };
17060
+ user_module_permissions: {
17061
+ Row: {
17062
+ created_at: string;
17063
+ feature_id: string;
17064
+ id: string;
17065
+ module_id: string;
17066
+ permission: string;
17067
+ updated_at: string;
17068
+ user_id: string;
17069
+ };
17070
+ Insert: {
17071
+ created_at?: string;
17072
+ feature_id?: string;
17073
+ id?: string;
17074
+ module_id: string;
17075
+ permission: string;
17076
+ updated_at?: string;
17077
+ user_id: string;
17078
+ };
17079
+ Update: {
17080
+ created_at?: string;
17081
+ feature_id?: string;
17082
+ id?: string;
17083
+ module_id?: string;
17084
+ permission?: string;
17085
+ updated_at?: string;
17086
+ user_id?: string;
17087
+ };
17088
+ Relationships: [];
16321
17089
  };
16322
17090
  user_roles: {
16323
17091
  Row: {
@@ -16346,6 +17114,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16346
17114
  referencedColumns: ["id"];
16347
17115
  }];
16348
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
+ };
16349
17162
  voorraad_custom_fields: {
16350
17163
  Row: {
16351
17164
  created_at: string;
@@ -17296,7 +18109,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17296
18109
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17297
18110
  columns: ["monteur_id"];
17298
18111
  isOneToOne: false;
17299
- referencedRelation: "monteurs";
18112
+ referencedRelation: "profiles";
17300
18113
  referencedColumns: ["id"];
17301
18114
  }, {
17302
18115
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17306,6 +18119,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17306
18119
  referencedColumns: ["id"];
17307
18120
  }];
17308
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
+ };
17309
18176
  work_orders: {
17310
18177
  Row: {
17311
18178
  assigned_to: string | null;
@@ -17337,7 +18204,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17337
18204
  scheduled_end_time: string | null;
17338
18205
  scheduled_start_time: string | null;
17339
18206
  status: string;
17340
- tenant_id: string;
17341
18207
  total_hours_worked: number | null;
17342
18208
  total_price: number | null;
17343
18209
  travel_time_minutes: number | null;
@@ -17375,7 +18241,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17375
18241
  scheduled_end_time?: string | null;
17376
18242
  scheduled_start_time?: string | null;
17377
18243
  status?: string;
17378
- tenant_id: string;
17379
18244
  total_hours_worked?: number | null;
17380
18245
  total_price?: number | null;
17381
18246
  travel_time_minutes?: number | null;
@@ -17413,7 +18278,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17413
18278
  scheduled_end_time?: string | null;
17414
18279
  scheduled_start_time?: string | null;
17415
18280
  status?: string;
17416
- tenant_id?: string;
17417
18281
  total_hours_worked?: number | null;
17418
18282
  total_price?: number | null;
17419
18283
  travel_time_minutes?: number | null;
@@ -17427,12 +18291,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17427
18291
  isOneToOne: false;
17428
18292
  referencedRelation: "work_orders";
17429
18293
  referencedColumns: ["id"];
17430
- }, {
17431
- foreignKeyName: "work_orders_tenant_id_fkey";
17432
- columns: ["tenant_id"];
17433
- isOneToOne: false;
17434
- referencedRelation: "tenants";
17435
- referencedColumns: ["id"];
17436
18294
  }];
17437
18295
  };
17438
18296
  };
@@ -18152,6 +19010,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18152
19010
  processed_items: number;
18153
19011
  }[];
18154
19012
  };
19013
+ backfill_order_auto_invoice_queue: {
19014
+ Args: never;
19015
+ Returns: number;
19016
+ };
18155
19017
  calculate_layer_stock: {
18156
19018
  Args: {
18157
19019
  p_product_id: string;
@@ -18164,6 +19026,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18164
19026
  };
18165
19027
  Returns: number;
18166
19028
  };
19029
+ can_manage_hours: {
19030
+ Args: never;
19031
+ Returns: boolean;
19032
+ };
18167
19033
  check_offer_product_available_stock: {
18168
19034
  Args: {
18169
19035
  p_campaign_product_id: string;
@@ -18186,6 +19052,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18186
19052
  };
18187
19053
  Returns: import("./types").Json;
18188
19054
  };
19055
+ claim_cloud_print_jobs: {
19056
+ Args: {
19057
+ _max?: number;
19058
+ };
19059
+ Returns: {
19060
+ agent_id: string | null;
19061
+ bron_job_id: string | null;
19062
+ created_at: string;
19063
+ documentnaam: string;
19064
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19065
+ extern_job_id: string | null;
19066
+ foutmelding: string | null;
19067
+ gebruiker_id: string | null;
19068
+ gebruiker_naam: string;
19069
+ gestart_op: string | null;
19070
+ id: string;
19071
+ idempotentie_sleutel: string | null;
19072
+ is_herprint: boolean;
19073
+ kopieen: number;
19074
+ layout_id: string | null;
19075
+ opgepakt_op: string | null;
19076
+ paginas: number;
19077
+ payload: import("./types").Json;
19078
+ pdf_base64: string | null;
19079
+ pdf_url: string | null;
19080
+ pogingen: number;
19081
+ printer_id: string | null;
19082
+ render_html: string | null;
19083
+ status: Database["public"]["Enums"]["print_job_status"];
19084
+ updated_at: string;
19085
+ volgende_poging: string | null;
19086
+ voltooid_op: string | null;
19087
+ }[];
19088
+ SetofOptions: {
19089
+ from: "*";
19090
+ to: "print_jobs";
19091
+ isOneToOne: false;
19092
+ isSetofReturn: true;
19093
+ };
19094
+ };
18189
19095
  claim_floriday_stock_queue: {
18190
19096
  Args: {
18191
19097
  p_limit?: number;
@@ -18276,22 +19182,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18276
19182
  created_at: string;
18277
19183
  documentnaam: string;
18278
19184
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19185
+ extern_job_id: string | null;
18279
19186
  foutmelding: string | null;
18280
19187
  gebruiker_id: string | null;
18281
19188
  gebruiker_naam: string;
18282
19189
  gestart_op: string | null;
18283
19190
  id: string;
19191
+ idempotentie_sleutel: string | null;
18284
19192
  is_herprint: boolean;
18285
19193
  kopieen: number;
18286
19194
  layout_id: string | null;
18287
19195
  opgepakt_op: string | null;
18288
19196
  paginas: number;
18289
19197
  payload: import("./types").Json;
19198
+ pdf_base64: string | null;
19199
+ pdf_url: string | null;
18290
19200
  pogingen: number;
18291
19201
  printer_id: string | null;
18292
19202
  render_html: string | null;
18293
19203
  status: Database["public"]["Enums"]["print_job_status"];
18294
19204
  updated_at: string;
19205
+ volgende_poging: string | null;
18295
19206
  voltooid_op: string | null;
18296
19207
  }[];
18297
19208
  SetofOptions: {
@@ -18308,6 +19219,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18308
19219
  };
18309
19220
  Returns: {
18310
19221
  action: string;
19222
+ attempt_started_at: string | null;
18311
19223
  attempts: number;
18312
19224
  connection_id: string | null;
18313
19225
  created_at: string;
@@ -18337,6 +19249,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18337
19249
  Args: never;
18338
19250
  Returns: undefined;
18339
19251
  };
19252
+ cleanup_voorraad_module_history: {
19253
+ Args: never;
19254
+ Returns: undefined;
19255
+ };
18340
19256
  complete_floriday_stock_queue: {
18341
19257
  Args: {
18342
19258
  p_attempt_id?: string;
@@ -18391,6 +19307,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18391
19307
  agent_naam: string;
18392
19308
  }[];
18393
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
+ };
18394
19334
  control_get_todays_carts: {
18395
19335
  Args: never;
18396
19336
  Returns: {
@@ -18458,6 +19398,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18458
19398
  };
18459
19399
  Returns: import("./types").Json;
18460
19400
  };
19401
+ effective_module_permission: {
19402
+ Args: {
19403
+ _module_id: string;
19404
+ _user_id: string;
19405
+ };
19406
+ Returns: string;
19407
+ } | {
19408
+ Args: {
19409
+ _feature_id?: string;
19410
+ _module_id: string;
19411
+ _user_id: string;
19412
+ };
19413
+ Returns: string;
19414
+ };
18461
19415
  email_auth_decrypt: {
18462
19416
  Args: {
18463
19417
  cipher: string;
@@ -18808,12 +19762,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18808
19762
  Args: never;
18809
19763
  Returns: string;
18810
19764
  };
18811
- get_work_order_tenant_id: {
18812
- Args: {
18813
- wo_id: string;
18814
- };
18815
- Returns: string;
18816
- };
18817
19765
  has_module_permission: {
18818
19766
  Args: {
18819
19767
  _min: string;
@@ -18847,6 +19795,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18847
19795
  };
18848
19796
  Returns: boolean;
18849
19797
  };
19798
+ is_time_log_week_locked: {
19799
+ Args: {
19800
+ p_employee_id: string;
19801
+ p_start_time: string;
19802
+ };
19803
+ Returns: boolean;
19804
+ };
18850
19805
  is_user_admin: {
18851
19806
  Args: never;
18852
19807
  Returns: boolean;
@@ -18861,13 +19816,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18861
19816
  };
18862
19817
  Returns: boolean;
18863
19818
  };
18864
- list_monteurs: {
19819
+ list_medewerkers: {
18865
19820
  Args: never;
18866
19821
  Returns: {
18867
19822
  avatar_url: string;
18868
19823
  display_name: string;
18869
19824
  email: string;
18870
19825
  id: string;
19826
+ roles: string[];
18871
19827
  }[];
18872
19828
  };
18873
19829
  list_my_planning_items: {
@@ -19261,6 +20217,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19261
20217
  isSetofReturn: false;
19262
20218
  };
19263
20219
  };
20220
+ logistics_floriday_claim_pushes: {
20221
+ Args: {
20222
+ _lease_seconds?: number;
20223
+ _limit?: number;
20224
+ _worker?: string;
20225
+ };
20226
+ Returns: {
20227
+ attempts: number;
20228
+ fulfillment_order_id: string;
20229
+ id: string;
20230
+ last_sent_hash: string;
20231
+ order_ref: string;
20232
+ payload: import("./types").Json;
20233
+ payload_hash: string;
20234
+ revision: number;
20235
+ }[];
20236
+ };
20237
+ logistics_floriday_finish_push: {
20238
+ Args: {
20239
+ _error?: string;
20240
+ _fulfillment_order_id?: string;
20241
+ _id: string;
20242
+ _max_age_hours?: number;
20243
+ _max_attempts?: number;
20244
+ _ok: boolean;
20245
+ _permanent?: boolean;
20246
+ _revision: number;
20247
+ _sent_hash?: string;
20248
+ };
20249
+ Returns: string;
20250
+ };
20251
+ logistics_floriday_prune_pushes: {
20252
+ Args: {
20253
+ _days?: number;
20254
+ };
20255
+ Returns: number;
20256
+ };
20257
+ logistics_floriday_queue_push: {
20258
+ Args: {
20259
+ _order_ref: string;
20260
+ _payload?: import("./types").Json;
20261
+ _payload_hash?: string;
20262
+ };
20263
+ Returns: string;
20264
+ };
19264
20265
  logistics_live_carriers: {
19265
20266
  Args: {
19266
20267
  p_order_ref: string;
@@ -19313,6 +20314,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19313
20314
  };
19314
20315
  Returns: number;
19315
20316
  };
20317
+ logistics_plan_claim: {
20318
+ Args: {
20319
+ p_limit?: number;
20320
+ };
20321
+ Returns: {
20322
+ attempts: number;
20323
+ id: string;
20324
+ order_id: string;
20325
+ }[];
20326
+ };
20327
+ logistics_plan_enqueue: {
20328
+ Args: {
20329
+ p_order_id: string;
20330
+ p_reason?: string;
20331
+ };
20332
+ Returns: undefined;
20333
+ };
20334
+ logistics_plan_ensure_event: {
20335
+ Args: {
20336
+ p_order_id: string;
20337
+ };
20338
+ Returns: boolean;
20339
+ };
20340
+ logistics_plan_finish: {
20341
+ Args: {
20342
+ p_error?: string;
20343
+ p_id: string;
20344
+ };
20345
+ Returns: undefined;
20346
+ };
20347
+ logistics_plan_impact_orders: {
20348
+ Args: {
20349
+ p_order_id: string;
20350
+ };
20351
+ Returns: {
20352
+ buffer_id: string;
20353
+ order_id: string;
20354
+ plan_date: string;
20355
+ }[];
20356
+ };
20357
+ logistics_plan_kick: {
20358
+ Args: never;
20359
+ Returns: undefined;
20360
+ };
20361
+ logistics_plan_prune: {
20362
+ Args: never;
20363
+ Returns: number;
20364
+ };
20365
+ logistics_plan_release_stale: {
20366
+ Args: never;
20367
+ Returns: number;
20368
+ };
20369
+ logistics_plan_setting: {
20370
+ Args: {
20371
+ p_default: number;
20372
+ p_key: string;
20373
+ };
20374
+ Returns: number;
20375
+ };
19316
20376
  logistics_queue_capacity_email: {
19317
20377
  Args: {
19318
20378
  p_alert_id: string;
@@ -19551,6 +20611,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19551
20611
  };
19552
20612
  Returns: undefined;
19553
20613
  };
20614
+ my_module_permissions: {
20615
+ Args: never;
20616
+ Returns: {
20617
+ feature_id: string;
20618
+ module_id: string;
20619
+ permission: string;
20620
+ }[];
20621
+ };
19554
20622
  next_manufacture_partij: {
19555
20623
  Args: {
19556
20624
  _tenant_id: string;
@@ -19601,6 +20669,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19601
20669
  };
19602
20670
  Returns: boolean;
19603
20671
  };
20672
+ opruim_print_historie: {
20673
+ Args: never;
20674
+ Returns: {
20675
+ ontdaan: number;
20676
+ verwijderd: number;
20677
+ }[];
20678
+ };
19604
20679
  order_number_prefix: {
19605
20680
  Args: {
19606
20681
  p_custom_fields?: import("./types").Json;
@@ -19608,6 +20683,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19608
20683
  };
19609
20684
  Returns: string;
19610
20685
  };
20686
+ pick_active_printers: {
20687
+ Args: never;
20688
+ Returns: {
20689
+ id: string;
20690
+ locatie: string;
20691
+ naam: string;
20692
+ online: boolean;
20693
+ }[];
20694
+ };
19611
20695
  pick_claim_document: {
19612
20696
  Args: {
19613
20697
  _queue_item_id: string;
@@ -19794,6 +20878,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19794
20878
  };
19795
20879
  Returns: undefined;
19796
20880
  };
20881
+ pick_reset_print: {
20882
+ Args: {
20883
+ _queue_item_id: string;
20884
+ _session_id: string;
20885
+ };
20886
+ Returns: {
20887
+ announced_at: string;
20888
+ assigned_user_id: string | null;
20889
+ barcode: string | null;
20890
+ cancelled_at: string | null;
20891
+ cart_count: number;
20892
+ completed_at: string | null;
20893
+ country_code: string | null;
20894
+ created_at: string;
20895
+ customer_name: string | null;
20896
+ delivery_address: string | null;
20897
+ document_number: string | null;
20898
+ document_type_id: string | null;
20899
+ due_at: string | null;
20900
+ id: string;
20901
+ is_urgent: boolean;
20902
+ line_count: number;
20903
+ order_number: string | null;
20904
+ order_type: string | null;
20905
+ payload: import("./types").Json;
20906
+ print_count: number;
20907
+ print_job_id: string | null;
20908
+ printed_at: string | null;
20909
+ printed_by: string | null;
20910
+ printer_id: string | null;
20911
+ priority: number;
20912
+ reference: string | null;
20913
+ route: string | null;
20914
+ screen_id: string | null;
20915
+ station_id: string | null;
20916
+ status_id: string | null;
20917
+ updated_at: string;
20918
+ warnings: import("./types").Json;
20919
+ };
20920
+ SetofOptions: {
20921
+ from: "*";
20922
+ to: "pick_queue";
20923
+ isOneToOne: true;
20924
+ isSetofReturn: false;
20925
+ };
20926
+ };
19797
20927
  pick_station_dashboard: {
19798
20928
  Args: never;
19799
20929
  Returns: {
@@ -19940,6 +21070,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19940
21070
  };
19941
21071
  Returns: undefined;
19942
21072
  };
21073
+ reset_stalled_floriday_stock_queue: {
21074
+ Args: {
21075
+ p_include_failed?: boolean;
21076
+ };
21077
+ Returns: number;
21078
+ };
19943
21079
  resolve_group_allocation: {
19944
21080
  Args: {
19945
21081
  _needed: number;
@@ -19984,14 +21120,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19984
21120
  };
19985
21121
  Returns: import("./types").Json;
19986
21122
  };
21123
+ ruim_print_jobs_op: {
21124
+ Args: {
21125
+ _bewaar_dagen?: number;
21126
+ };
21127
+ Returns: number;
21128
+ };
19987
21129
  run_floriday_continuous_stock_sync: {
19988
21130
  Args: never;
19989
21131
  Returns: undefined;
19990
21132
  };
21133
+ run_floriday_stock_queue_process: {
21134
+ Args: never;
21135
+ Returns: undefined;
21136
+ };
19991
21137
  run_logistics_tasks_dispatch: {
19992
21138
  Args: never;
19993
21139
  Returns: undefined;
19994
21140
  };
21141
+ run_print_queue_ticks: {
21142
+ Args: never;
21143
+ Returns: number;
21144
+ };
19995
21145
  run_twinfield_queue_tick: {
19996
21146
  Args: never;
19997
21147
  Returns: undefined;
@@ -20345,6 +21495,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20345
21495
  };
20346
21496
  Returns: string[];
20347
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
+ };
20348
21508
  sync_all_layer_stocks: {
20349
21509
  Args: never;
20350
21510
  Returns: undefined;
@@ -20379,6 +21539,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20379
21539
  };
20380
21540
  Returns: undefined;
20381
21541
  };
21542
+ trade_item_stock_duplicates: {
21543
+ Args: never;
21544
+ Returns: {
21545
+ keys: string[];
21546
+ product_id: string;
21547
+ product_name: string;
21548
+ row_count: number;
21549
+ }[];
21550
+ };
20382
21551
  try_debtor_lock: {
20383
21552
  Args: {
20384
21553
  _group_key: string;
@@ -20386,6 +21555,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20386
21555
  };
20387
21556
  Returns: boolean;
20388
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
+ };
20389
21576
  twinfield_register_cron: {
20390
21577
  Args: {
20391
21578
  apikey?: string;
@@ -20428,7 +21615,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20428
21615
  };
20429
21616
  Enums: {
20430
21617
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20431
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21618
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20432
21619
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20433
21620
  doc_orientation: "portrait" | "landscape";
20434
21621
  exact_env: "staging" | "live";